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,java.lang.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 typeChunkProto
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BlocksProtos.ChunkProto.BuilderaddAllBlocks(java.lang.Iterable<java.lang.String> values)the block arrayBlocksProtos.ChunkProto.BuilderaddAllLocation(java.lang.Iterable<? extends java.lang.Integer> values)the location of the chunk, represented as an array of 3 integers.BlocksProtos.ChunkProto.BuilderaddAllSize(java.lang.Iterable<? extends java.lang.Integer> values)the size of the chunk, represented as an array of 3 integers.BlocksProtos.ChunkProto.BuilderaddBlocks(java.lang.String value)the block arrayBlocksProtos.ChunkProto.BuilderaddBlocksBytes(com.google.protobuf.ByteString value)the block arrayBlocksProtos.ChunkProto.BuilderaddLocation(int value)the location of the chunk, represented as an array of 3 integers.BlocksProtos.ChunkProto.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)BlocksProtos.ChunkProto.BuilderaddSize(int value)the size of the chunk, represented as an array of 3 integers.BlocksProtos.ChunkProtobuild()BlocksProtos.ChunkProtobuildPartial()BlocksProtos.ChunkProto.Builderclear()BlocksProtos.ChunkProto.BuilderclearBlocks()the block arrayBlocksProtos.ChunkProto.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)BlocksProtos.ChunkProto.BuilderclearLocation()the location of the chunk, represented as an array of 3 integers.BlocksProtos.ChunkProto.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)BlocksProtos.ChunkProto.BuilderclearSize()the size of the chunk, represented as an array of 3 integers.BlocksProtos.ChunkProto.Builderclone()java.lang.StringgetBlocks(int index)the block arraycom.google.protobuf.ByteStringgetBlocksBytes(int index)the block arrayintgetBlocksCount()the block arraycom.google.protobuf.ProtocolStringListgetBlocksList()the block arrayBlocksProtos.ChunkProtogetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()intgetLocation(int index)the location of the chunk, represented as an array of 3 integers.intgetLocationCount()the location of the chunk, represented as an array of 3 integers.java.util.List<java.lang.Integer>getLocationList()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.intgetSizeCount()the size of the chunk, represented as an array of 3 integers.java.util.List<java.lang.Integer>getSizeList()the size of the chunk, represented as an array of 3 integers.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()BlocksProtos.ChunkProto.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)BlocksProtos.ChunkProto.BuildermergeFrom(com.google.protobuf.Message other)BlocksProtos.ChunkProto.BuildermergeFrom(BlocksProtos.ChunkProto other)BlocksProtos.ChunkProto.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)BlocksProtos.ChunkProto.BuildersetBlocks(int index, java.lang.String value)the block arrayBlocksProtos.ChunkProto.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)BlocksProtos.ChunkProto.BuildersetLocation(int index, int value)the location of the chunk, represented as an array of 3 integers.BlocksProtos.ChunkProto.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)BlocksProtos.ChunkProto.BuildersetSize(int index, int value)the size of the chunk, represented as an array of 3 integers.BlocksProtos.ChunkProto.BuildersetUnknownFields(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
-
-
-
-
Method Detail
-
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
public 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
public BlocksProtos.ChunkProto getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public BlocksProtos.ChunkProto build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BlocksProtos.ChunkProto buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BlocksProtos.ChunkProto.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, java.lang.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, java.lang.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, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BlocksProtos.ChunkProto.Builder>
-
mergeFrom
public BlocksProtos.ChunkProto.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BlocksProtos.ChunkProto.Builder>
-
mergeFrom
public BlocksProtos.ChunkProto.Builder mergeFrom(BlocksProtos.ChunkProto other)
-
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 java.io.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:
java.io.IOException
-
getLocationList
public java.util.List<java.lang.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:
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
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(java.lang.Iterable<? extends java.lang.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 java.util.List<java.lang.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:
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
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(java.lang.Iterable<? extends java.lang.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:
getBlocksListin interfaceBlocksProtos.ChunkProtoOrBuilder
-
getBlocksCount
public int getBlocksCount()
the block array
repeated string blocks = 3;- Specified by:
getBlocksCountin interfaceBlocksProtos.ChunkProtoOrBuilder
-
getBlocks
public java.lang.String getBlocks(int index)
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
public BlocksProtos.ChunkProto.Builder setBlocks(int index, java.lang.String value)
the block array
repeated string blocks = 3;
-
addBlocks
public BlocksProtos.ChunkProto.Builder addBlocks(java.lang.String value)
the block array
repeated string blocks = 3;
-
addAllBlocks
public BlocksProtos.ChunkProto.Builder addAllBlocks(java.lang.Iterable<java.lang.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:
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>
-
-