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.Builder
addAllBlocks(java.lang.Iterable<java.lang.String> values)
the block arrayBlocksProtos.ChunkProto.Builder
addAllLocation(java.lang.Iterable<? extends java.lang.Integer> values)
the location of the chunk, represented as an array of 3 integers.BlocksProtos.ChunkProto.Builder
addAllSize(java.lang.Iterable<? extends java.lang.Integer> values)
the size of the chunk, represented as an array of 3 integers.BlocksProtos.ChunkProto.Builder
addBlocks(java.lang.String value)
the block arrayBlocksProtos.ChunkProto.Builder
addBlocksBytes(com.google.protobuf.ByteString value)
the block arrayBlocksProtos.ChunkProto.Builder
addLocation(int value)
the location of the chunk, represented as an array of 3 integers.BlocksProtos.ChunkProto.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
BlocksProtos.ChunkProto.Builder
addSize(int value)
the size of the chunk, represented as an array of 3 integers.BlocksProtos.ChunkProto
build()
BlocksProtos.ChunkProto
buildPartial()
BlocksProtos.ChunkProto.Builder
clear()
BlocksProtos.ChunkProto.Builder
clearBlocks()
the block arrayBlocksProtos.ChunkProto.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
BlocksProtos.ChunkProto.Builder
clearLocation()
the location of the chunk, represented as an array of 3 integers.BlocksProtos.ChunkProto.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
BlocksProtos.ChunkProto.Builder
clearSize()
the size of the chunk, represented as an array of 3 integers.BlocksProtos.ChunkProto.Builder
clone()
java.lang.String
getBlocks(int index)
the block arraycom.google.protobuf.ByteString
getBlocksBytes(int index)
the block arrayint
getBlocksCount()
the block arraycom.google.protobuf.ProtocolStringList
getBlocksList()
the block arrayBlocksProtos.ChunkProto
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
int
getLocation(int index)
the location of the chunk, represented as an array of 3 integers.int
getLocationCount()
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.int
getSize(int index)
the size of the chunk, represented as an array of 3 integers.int
getSizeCount()
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.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
BlocksProtos.ChunkProto.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
BlocksProtos.ChunkProto.Builder
mergeFrom(com.google.protobuf.Message other)
BlocksProtos.ChunkProto.Builder
mergeFrom(BlocksProtos.ChunkProto other)
BlocksProtos.ChunkProto.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
BlocksProtos.ChunkProto.Builder
setBlocks(int index, java.lang.String value)
the block arrayBlocksProtos.ChunkProto.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
BlocksProtos.ChunkProto.Builder
setLocation(int index, int value)
the location of the chunk, represented as an array of 3 integers.BlocksProtos.ChunkProto.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
BlocksProtos.ChunkProto.Builder
setSize(int index, int value)
the size of the chunk, represented as an array of 3 integers.BlocksProtos.ChunkProto.Builder
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
-
-
-
-
Method Detail
-
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
public 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
public BlocksProtos.ChunkProto getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public BlocksProtos.ChunkProto build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BlocksProtos.ChunkProto buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BlocksProtos.ChunkProto.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, java.lang.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, java.lang.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, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BlocksProtos.ChunkProto.Builder>
-
mergeFrom
public BlocksProtos.ChunkProto.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BlocksProtos.ChunkProto.Builder>
-
mergeFrom
public BlocksProtos.ChunkProto.Builder mergeFrom(BlocksProtos.ChunkProto other)
-
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 java.io.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:
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:
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
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:
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
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:
getBlocksList
in interfaceBlocksProtos.ChunkProtoOrBuilder
-
getBlocksCount
public int getBlocksCount()
the block array
repeated string blocks = 3;
- Specified by:
getBlocksCount
in interfaceBlocksProtos.ChunkProtoOrBuilder
-
getBlocks
public java.lang.String getBlocks(int index)
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
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:
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>
-
-