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 Summary
Modifier and TypeMethodDescriptionaddAllBlocks(Iterable<String> values) the block arrayaddAllLocation(Iterable<? extends Integer> values) the location of the chunk, represented as an array of 3 integers.addAllSize(Iterable<? extends Integer> values) the size of the chunk, represented as an array of 3 integers.the block arrayaddBlocksBytes(com.google.protobuf.ByteString value) the block arrayaddLocation(int value) the location of the chunk, represented as an array of 3 integers.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addSize(int value) the size of the chunk, represented as an array of 3 integers.build()clear()the block arrayclearField(com.google.protobuf.Descriptors.FieldDescriptor field) the location of the chunk, represented as an array of 3 integers.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) the size of the chunk, represented as an array of 3 integers.clone()getBlocks(int index) the block arraycom.google.protobuf.ByteStringgetBlocksBytes(int index) the block arrayintthe block arraycom.google.protobuf.ProtocolStringListthe block arraystatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintgetLocation(int index) the location of the chunk, represented as an array of 3 integers.intthe location of the chunk, represented as an array of 3 integers.the location of the chunk, represented as an array of 3 integers.intgetSize(int index) the size of the chunk, represented as an array of 3 integers.intthe size of the chunk, represented as an array of 3 integers.the size of the chunk, represented as an array of 3 integers.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(BlocksProtos.ChunkProto other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) the block arraysetLocation(int index, int value) the location of the chunk, represented as an array of 3 integers.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSize(int index, int value) the size of the chunk, represented as an array of 3 integers.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<BlocksProtos.ChunkProto.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<BlocksProtos.ChunkProto.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<BlocksProtos.ChunkProto.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<BlocksProtos.ChunkProto.Builder>
-
setField
public BlocksProtos.ChunkProto.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BlocksProtos.ChunkProto.Builder>
-
clearField
public BlocksProtos.ChunkProto.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BlocksProtos.ChunkProto.Builder>
-
clearOneof
public BlocksProtos.ChunkProto.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BlocksProtos.ChunkProto.Builder>
-
addRepeatedField
public BlocksProtos.ChunkProto.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BlocksProtos.ChunkProto.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BlocksProtos.ChunkProto.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BlocksProtos.ChunkProto.Builder>- Throws:
IOException
-
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:
getLocationListin interfaceBlocksProtos.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:
getLocationCountin interfaceBlocksProtos.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:
getLocationin interfaceBlocksProtos.ChunkProtoOrBuilder
-
setLocation
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
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
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
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
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:
getSizeListin interfaceBlocksProtos.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:
getSizeCountin interfaceBlocksProtos.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:
getSizein interfaceBlocksProtos.ChunkProtoOrBuilder
-
setSize
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
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
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
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:
getBlocksListin interfaceBlocksProtos.ChunkProtoOrBuilder
-
getBlocksCount
public int getBlocksCount()the block array
repeated string blocks = 3;- Specified by:
getBlocksCountin interfaceBlocksProtos.ChunkProtoOrBuilder
-
getBlocks
the block array
repeated string blocks = 3;- Specified by:
getBlocksin interfaceBlocksProtos.ChunkProtoOrBuilder
-
getBlocksBytes
public com.google.protobuf.ByteString getBlocksBytes(int index) the block array
repeated string blocks = 3;- Specified by:
getBlocksBytesin interfaceBlocksProtos.ChunkProtoOrBuilder
-
setBlocks
the block array
repeated string blocks = 3; -
addBlocks
the block array
repeated string blocks = 3; -
addAllBlocks
the block array
repeated string blocks = 3; -
clearBlocks
the block array
repeated string blocks = 3; -
addBlocksBytes
the block array
repeated string blocks = 3; -
setUnknownFields
public final BlocksProtos.ChunkProto.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BlocksProtos.ChunkProto.Builder>
-
mergeUnknownFields
public final BlocksProtos.ChunkProto.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BlocksProtos.ChunkProto.Builder>
-