Class BlocksProtos.ChunkProto.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<BlocksProtos.ChunkProto.Builder>
com.rvandoosselaer.blocks.protobuf.BlocksProtos.ChunkProto.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, BlocksProtos.ChunkProtoOrBuilder, Cloneable
Enclosing class:
BlocksProtos.ChunkProto

public static final class BlocksProtos.ChunkProto.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BlocksProtos.ChunkProto.Builder> implements BlocksProtos.ChunkProtoOrBuilder
Protobuf type ChunkProto
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<BlocksProtos.ChunkProto.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<BlocksProtos.ChunkProto.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<BlocksProtos.ChunkProto.Builder>
    • getDefaultInstanceForType

      public BlocksProtos.ChunkProto getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public BlocksProtos.ChunkProto build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public BlocksProtos.ChunkProto buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<BlocksProtos.ChunkProto.Builder>
    • setField

      public BlocksProtos.ChunkProto.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<BlocksProtos.ChunkProto.Builder>
    • clearField

      public BlocksProtos.ChunkProto.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<BlocksProtos.ChunkProto.Builder>
    • clearOneof

      public BlocksProtos.ChunkProto.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<BlocksProtos.ChunkProto.Builder>
    • setRepeatedField

      public BlocksProtos.ChunkProto.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BlocksProtos.ChunkProto.Builder>
    • addRepeatedField

      public BlocksProtos.ChunkProto.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BlocksProtos.ChunkProto.Builder>
    • mergeFrom

      public BlocksProtos.ChunkProto.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<BlocksProtos.ChunkProto.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<BlocksProtos.ChunkProto.Builder>
    • mergeFrom

      public BlocksProtos.ChunkProto.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<BlocksProtos.ChunkProto.Builder>
      Throws:
      IOException
    • getLocationList

      public List<Integer> getLocationList()
       the location of the chunk, represented as an array of 3 integers. Where location[0] = x, location[1] = y, location[2] = z
       
      repeated sint32 location = 1 [packed = true];
      Specified by:
      getLocationList in interface BlocksProtos.ChunkProtoOrBuilder
    • getLocationCount

      public int getLocationCount()
       the location of the chunk, represented as an array of 3 integers. Where location[0] = x, location[1] = y, location[2] = z
       
      repeated sint32 location = 1 [packed = true];
      Specified by:
      getLocationCount in interface BlocksProtos.ChunkProtoOrBuilder
    • getLocation

      public int getLocation(int index)
       the location of the chunk, represented as an array of 3 integers. Where location[0] = x, location[1] = y, location[2] = z
       
      repeated sint32 location = 1 [packed = true];
      Specified by:
      getLocation in interface BlocksProtos.ChunkProtoOrBuilder
    • setLocation

      public BlocksProtos.ChunkProto.Builder setLocation(int index, int value)
       the location of the chunk, represented as an array of 3 integers. Where location[0] = x, location[1] = y, location[2] = z
       
      repeated sint32 location = 1 [packed = true];
    • addLocation

      public BlocksProtos.ChunkProto.Builder addLocation(int value)
       the location of the chunk, represented as an array of 3 integers. Where location[0] = x, location[1] = y, location[2] = z
       
      repeated sint32 location = 1 [packed = true];
    • addAllLocation

      public BlocksProtos.ChunkProto.Builder addAllLocation(Iterable<? extends Integer> values)
       the location of the chunk, represented as an array of 3 integers. Where location[0] = x, location[1] = y, location[2] = z
       
      repeated sint32 location = 1 [packed = true];
    • clearLocation

      public BlocksProtos.ChunkProto.Builder clearLocation()
       the location of the chunk, represented as an array of 3 integers. Where location[0] = x, location[1] = y, location[2] = z
       
      repeated sint32 location = 1 [packed = true];
    • getSizeList

      public List<Integer> getSizeList()
       the size of the chunk, represented as an array of 3 integers. where size[0] = x, size[1] = y, size[2] = z
       
      repeated sint32 size = 2 [packed = true];
      Specified by:
      getSizeList in interface BlocksProtos.ChunkProtoOrBuilder
    • getSizeCount

      public int getSizeCount()
       the size of the chunk, represented as an array of 3 integers. where size[0] = x, size[1] = y, size[2] = z
       
      repeated sint32 size = 2 [packed = true];
      Specified by:
      getSizeCount in interface BlocksProtos.ChunkProtoOrBuilder
    • getSize

      public int getSize(int index)
       the size of the chunk, represented as an array of 3 integers. where size[0] = x, size[1] = y, size[2] = z
       
      repeated sint32 size = 2 [packed = true];
      Specified by:
      getSize in interface BlocksProtos.ChunkProtoOrBuilder
    • setSize

      public BlocksProtos.ChunkProto.Builder setSize(int index, int value)
       the size of the chunk, represented as an array of 3 integers. where size[0] = x, size[1] = y, size[2] = z
       
      repeated sint32 size = 2 [packed = true];
    • addSize

      public BlocksProtos.ChunkProto.Builder addSize(int value)
       the size of the chunk, represented as an array of 3 integers. where size[0] = x, size[1] = y, size[2] = z
       
      repeated sint32 size = 2 [packed = true];
    • addAllSize

      public BlocksProtos.ChunkProto.Builder addAllSize(Iterable<? extends Integer> values)
       the size of the chunk, represented as an array of 3 integers. where size[0] = x, size[1] = y, size[2] = z
       
      repeated sint32 size = 2 [packed = true];
    • clearSize

      public BlocksProtos.ChunkProto.Builder clearSize()
       the size of the chunk, represented as an array of 3 integers. where size[0] = x, size[1] = y, size[2] = z
       
      repeated sint32 size = 2 [packed = true];
    • getBlocksList

      public com.google.protobuf.ProtocolStringList getBlocksList()
       the block array
       
      repeated string blocks = 3;
      Specified by:
      getBlocksList in interface BlocksProtos.ChunkProtoOrBuilder
    • getBlocksCount

      public int getBlocksCount()
       the block array
       
      repeated string blocks = 3;
      Specified by:
      getBlocksCount in interface BlocksProtos.ChunkProtoOrBuilder
    • getBlocks

      public String getBlocks(int index)
       the block array
       
      repeated string blocks = 3;
      Specified by:
      getBlocks in interface BlocksProtos.ChunkProtoOrBuilder
    • getBlocksBytes

      public com.google.protobuf.ByteString getBlocksBytes(int index)
       the block array
       
      repeated string blocks = 3;
      Specified by:
      getBlocksBytes in interface BlocksProtos.ChunkProtoOrBuilder
    • setBlocks

      public BlocksProtos.ChunkProto.Builder setBlocks(int index, String value)
       the block array
       
      repeated string blocks = 3;
    • addBlocks

      public BlocksProtos.ChunkProto.Builder addBlocks(String value)
       the block array
       
      repeated string blocks = 3;
    • addAllBlocks

      public BlocksProtos.ChunkProto.Builder addAllBlocks(Iterable<String> values)
       the block array
       
      repeated string blocks = 3;
    • clearBlocks

      public BlocksProtos.ChunkProto.Builder clearBlocks()
       the block array
       
      repeated string blocks = 3;
    • addBlocksBytes

      public BlocksProtos.ChunkProto.Builder addBlocksBytes(com.google.protobuf.ByteString value)
       the block array
       
      repeated string blocks = 3;
    • setUnknownFields

      public final BlocksProtos.ChunkProto.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BlocksProtos.ChunkProto.Builder>
    • mergeUnknownFields

      public final BlocksProtos.ChunkProto.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BlocksProtos.ChunkProto.Builder>