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.ByteString
getBlocksBytes
(int index) the block arrayint
the block arraycom.google.protobuf.ProtocolStringList
the block arraystatic final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
int
getLocation
(int index) the location of the chunk, represented as an array of 3 integers.int
the location of the chunk, represented as an array of 3 integers.the location of the chunk, represented as an array of 3 integers.int
getSize
(int index) the size of the chunk, represented as an array of 3 integers.int
the 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.FieldAccessorTable
final boolean
mergeFrom
(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, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<BlocksProtos.ChunkProto.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<BlocksProtos.ChunkProto.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<BlocksProtos.ChunkProto.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BlocksProtos.ChunkProto.Builder>
-
clearField
public BlocksProtos.ChunkProto.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BlocksProtos.ChunkProto.Builder>
-
clearOneof
public BlocksProtos.ChunkProto.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BlocksProtos.ChunkProto.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BlocksProtos.ChunkProto.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getLocationList
in 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:
getLocationCount
in 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:
getLocation
in 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:
getSizeList
in 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:
getSizeCount
in 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:
getSize
in 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:
getBlocksList
in interfaceBlocksProtos.ChunkProtoOrBuilder
-
getBlocksCount
public int getBlocksCount()the block array
repeated string blocks = 3;
- Specified by:
getBlocksCount
in interfaceBlocksProtos.ChunkProtoOrBuilder
-
getBlocks
the block array
repeated string blocks = 3;
- Specified by:
getBlocks
in interfaceBlocksProtos.ChunkProtoOrBuilder
-
getBlocksBytes
public com.google.protobuf.ByteString getBlocksBytes(int index) the block array
repeated string blocks = 3;
- Specified by:
getBlocksBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BlocksProtos.ChunkProto.Builder>
-
mergeUnknownFields
public final BlocksProtos.ChunkProto.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BlocksProtos.ChunkProto.Builder>
-