Package ucar.nc2.grib.collection
Class GribCollectionProto.Variable.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<GribCollectionProto.Variable.Builder>
-
- ucar.nc2.grib.collection.GribCollectionProto.Variable.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,GribCollectionProto.VariableOrBuilder
- Enclosing class:
- GribCollectionProto.Variable
public static final class GribCollectionProto.Variable.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GribCollectionProto.Variable.Builder> implements GribCollectionProto.VariableOrBuilder
Protobuf typeVariable
-
-
Method Summary
-
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<GribCollectionProto.Variable.Builder>
-
clear
public GribCollectionProto.Variable.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<GribCollectionProto.Variable.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<GribCollectionProto.Variable.Builder>
-
getDefaultInstanceForType
public GribCollectionProto.Variable getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public GribCollectionProto.Variable build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GribCollectionProto.Variable buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GribCollectionProto.Variable.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<GribCollectionProto.Variable.Builder>
-
setField
public GribCollectionProto.Variable.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<GribCollectionProto.Variable.Builder>
-
clearField
public GribCollectionProto.Variable.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GribCollectionProto.Variable.Builder>
-
clearOneof
public GribCollectionProto.Variable.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<GribCollectionProto.Variable.Builder>
-
setRepeatedField
public GribCollectionProto.Variable.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<GribCollectionProto.Variable.Builder>
-
addRepeatedField
public GribCollectionProto.Variable.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<GribCollectionProto.Variable.Builder>
-
mergeFrom
public GribCollectionProto.Variable.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GribCollectionProto.Variable.Builder>
-
mergeFrom
public GribCollectionProto.Variable.Builder mergeFrom(GribCollectionProto.Variable other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<GribCollectionProto.Variable.Builder>
-
mergeFrom
public GribCollectionProto.Variable.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<GribCollectionProto.Variable.Builder>- Throws:
IOException
-
getDiscipline
public int getDiscipline()
uint32 discipline = 1;- Specified by:
getDisciplinein interfaceGribCollectionProto.VariableOrBuilder- Returns:
- The discipline.
-
setDiscipline
public GribCollectionProto.Variable.Builder setDiscipline(int value)
uint32 discipline = 1;- Parameters:
value- The discipline to set.- Returns:
- This builder for chaining.
-
clearDiscipline
public GribCollectionProto.Variable.Builder clearDiscipline()
uint32 discipline = 1;- Returns:
- This builder for chaining.
-
getPds
public com.google.protobuf.ByteString getPds()
raw pds
bytes pds = 2;- Specified by:
getPdsin interfaceGribCollectionProto.VariableOrBuilder- Returns:
- The pds.
-
setPds
public GribCollectionProto.Variable.Builder setPds(com.google.protobuf.ByteString value)
raw pds
bytes pds = 2;- Parameters:
value- The pds to set.- Returns:
- This builder for chaining.
-
clearPds
public GribCollectionProto.Variable.Builder clearPds()
raw pds
bytes pds = 2;- Returns:
- This builder for chaining.
-
getIdsList
public List<Integer> getIdsList()
extra info not in pds; grib2 id section
repeated uint32 ids = 3 [packed = true];- Specified by:
getIdsListin interfaceGribCollectionProto.VariableOrBuilder- Returns:
- A list containing the ids.
-
getIdsCount
public int getIdsCount()
extra info not in pds; grib2 id section
repeated uint32 ids = 3 [packed = true];- Specified by:
getIdsCountin interfaceGribCollectionProto.VariableOrBuilder- Returns:
- The count of ids.
-
getIds
public int getIds(int index)
extra info not in pds; grib2 id section
repeated uint32 ids = 3 [packed = true];- Specified by:
getIdsin interfaceGribCollectionProto.VariableOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The ids at the given index.
-
setIds
public GribCollectionProto.Variable.Builder setIds(int index, int value)
extra info not in pds; grib2 id section
repeated uint32 ids = 3 [packed = true];- Parameters:
index- The index to set the value at.value- The ids to set.- Returns:
- This builder for chaining.
-
addIds
public GribCollectionProto.Variable.Builder addIds(int value)
extra info not in pds; grib2 id section
repeated uint32 ids = 3 [packed = true];- Parameters:
value- The ids to add.- Returns:
- This builder for chaining.
-
addAllIds
public GribCollectionProto.Variable.Builder addAllIds(Iterable<? extends Integer> values)
extra info not in pds; grib2 id section
repeated uint32 ids = 3 [packed = true];- Parameters:
values- The ids to add.- Returns:
- This builder for chaining.
-
clearIds
public GribCollectionProto.Variable.Builder clearIds()
extra info not in pds; grib2 id section
repeated uint32 ids = 3 [packed = true];- Returns:
- This builder for chaining.
-
getRecordsPos
public long getRecordsPos()
offset of SparseArray message for this Variable
uint64 recordsPos = 4;- Specified by:
getRecordsPosin interfaceGribCollectionProto.VariableOrBuilder- Returns:
- The recordsPos.
-
setRecordsPos
public GribCollectionProto.Variable.Builder setRecordsPos(long value)
offset of SparseArray message for this Variable
uint64 recordsPos = 4;- Parameters:
value- The recordsPos to set.- Returns:
- This builder for chaining.
-
clearRecordsPos
public GribCollectionProto.Variable.Builder clearRecordsPos()
offset of SparseArray message for this Variable
uint64 recordsPos = 4;- Returns:
- This builder for chaining.
-
getRecordsLen
public int getRecordsLen()
size of SparseArray message for this Variable
uint32 recordsLen = 5;- Specified by:
getRecordsLenin interfaceGribCollectionProto.VariableOrBuilder- Returns:
- The recordsLen.
-
setRecordsLen
public GribCollectionProto.Variable.Builder setRecordsLen(int value)
size of SparseArray message for this Variable
uint32 recordsLen = 5;- Parameters:
value- The recordsLen to set.- Returns:
- This builder for chaining.
-
clearRecordsLen
public GribCollectionProto.Variable.Builder clearRecordsLen()
size of SparseArray message for this Variable
uint32 recordsLen = 5;- Returns:
- This builder for chaining.
-
getCoordIdxList
public List<Integer> getCoordIdxList()
indexes into Group.coords
repeated uint32 coordIdx = 6 [packed = true];- Specified by:
getCoordIdxListin interfaceGribCollectionProto.VariableOrBuilder- Returns:
- A list containing the coordIdx.
-
getCoordIdxCount
public int getCoordIdxCount()
indexes into Group.coords
repeated uint32 coordIdx = 6 [packed = true];- Specified by:
getCoordIdxCountin interfaceGribCollectionProto.VariableOrBuilder- Returns:
- The count of coordIdx.
-
getCoordIdx
public int getCoordIdx(int index)
indexes into Group.coords
repeated uint32 coordIdx = 6 [packed = true];- Specified by:
getCoordIdxin interfaceGribCollectionProto.VariableOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The coordIdx at the given index.
-
setCoordIdx
public GribCollectionProto.Variable.Builder setCoordIdx(int index, int value)
indexes into Group.coords
repeated uint32 coordIdx = 6 [packed = true];- Parameters:
index- The index to set the value at.value- The coordIdx to set.- Returns:
- This builder for chaining.
-
addCoordIdx
public GribCollectionProto.Variable.Builder addCoordIdx(int value)
indexes into Group.coords
repeated uint32 coordIdx = 6 [packed = true];- Parameters:
value- The coordIdx to add.- Returns:
- This builder for chaining.
-
addAllCoordIdx
public GribCollectionProto.Variable.Builder addAllCoordIdx(Iterable<? extends Integer> values)
indexes into Group.coords
repeated uint32 coordIdx = 6 [packed = true];- Parameters:
values- The coordIdx to add.- Returns:
- This builder for chaining.
-
clearCoordIdx
public GribCollectionProto.Variable.Builder clearCoordIdx()
indexes into Group.coords
repeated uint32 coordIdx = 6 [packed = true];- Returns:
- This builder for chaining.
-
getNdups
public int getNdups()
optionally keep stats
uint32 ndups = 8;- Specified by:
getNdupsin interfaceGribCollectionProto.VariableOrBuilder- Returns:
- The ndups.
-
setNdups
public GribCollectionProto.Variable.Builder setNdups(int value)
optionally keep stats
uint32 ndups = 8;- Parameters:
value- The ndups to set.- Returns:
- This builder for chaining.
-
clearNdups
public GribCollectionProto.Variable.Builder clearNdups()
optionally keep stats
uint32 ndups = 8;- Returns:
- This builder for chaining.
-
getNrecords
public int getNrecords()
uint32 nrecords = 9;- Specified by:
getNrecordsin interfaceGribCollectionProto.VariableOrBuilder- Returns:
- The nrecords.
-
setNrecords
public GribCollectionProto.Variable.Builder setNrecords(int value)
uint32 nrecords = 9;- Parameters:
value- The nrecords to set.- Returns:
- This builder for chaining.
-
clearNrecords
public GribCollectionProto.Variable.Builder clearNrecords()
uint32 nrecords = 9;- Returns:
- This builder for chaining.
-
getMissing
public int getMissing()
uint32 missing = 10;- Specified by:
getMissingin interfaceGribCollectionProto.VariableOrBuilder- Returns:
- The missing.
-
setMissing
public GribCollectionProto.Variable.Builder setMissing(int value)
uint32 missing = 10;- Parameters:
value- The missing to set.- Returns:
- This builder for chaining.
-
clearMissing
public GribCollectionProto.Variable.Builder clearMissing()
uint32 missing = 10;- Returns:
- This builder for chaining.
-
getPartVariableList
public List<GribCollectionProto.PartitionVariable> getPartVariableList()
partition only
repeated .PartitionVariable partVariable = 100;- Specified by:
getPartVariableListin interfaceGribCollectionProto.VariableOrBuilder
-
getPartVariableCount
public int getPartVariableCount()
partition only
repeated .PartitionVariable partVariable = 100;- Specified by:
getPartVariableCountin interfaceGribCollectionProto.VariableOrBuilder
-
getPartVariable
public GribCollectionProto.PartitionVariable getPartVariable(int index)
partition only
repeated .PartitionVariable partVariable = 100;- Specified by:
getPartVariablein interfaceGribCollectionProto.VariableOrBuilder
-
setPartVariable
public GribCollectionProto.Variable.Builder setPartVariable(int index, GribCollectionProto.PartitionVariable value)
partition only
repeated .PartitionVariable partVariable = 100;
-
setPartVariable
public GribCollectionProto.Variable.Builder setPartVariable(int index, GribCollectionProto.PartitionVariable.Builder builderForValue)
partition only
repeated .PartitionVariable partVariable = 100;
-
addPartVariable
public GribCollectionProto.Variable.Builder addPartVariable(GribCollectionProto.PartitionVariable value)
partition only
repeated .PartitionVariable partVariable = 100;
-
addPartVariable
public GribCollectionProto.Variable.Builder addPartVariable(int index, GribCollectionProto.PartitionVariable value)
partition only
repeated .PartitionVariable partVariable = 100;
-
addPartVariable
public GribCollectionProto.Variable.Builder addPartVariable(GribCollectionProto.PartitionVariable.Builder builderForValue)
partition only
repeated .PartitionVariable partVariable = 100;
-
addPartVariable
public GribCollectionProto.Variable.Builder addPartVariable(int index, GribCollectionProto.PartitionVariable.Builder builderForValue)
partition only
repeated .PartitionVariable partVariable = 100;
-
addAllPartVariable
public GribCollectionProto.Variable.Builder addAllPartVariable(Iterable<? extends GribCollectionProto.PartitionVariable> values)
partition only
repeated .PartitionVariable partVariable = 100;
-
clearPartVariable
public GribCollectionProto.Variable.Builder clearPartVariable()
partition only
repeated .PartitionVariable partVariable = 100;
-
removePartVariable
public GribCollectionProto.Variable.Builder removePartVariable(int index)
partition only
repeated .PartitionVariable partVariable = 100;
-
getPartVariableBuilder
public GribCollectionProto.PartitionVariable.Builder getPartVariableBuilder(int index)
partition only
repeated .PartitionVariable partVariable = 100;
-
getPartVariableOrBuilder
public GribCollectionProto.PartitionVariableOrBuilder getPartVariableOrBuilder(int index)
partition only
repeated .PartitionVariable partVariable = 100;- Specified by:
getPartVariableOrBuilderin interfaceGribCollectionProto.VariableOrBuilder
-
getPartVariableOrBuilderList
public List<? extends GribCollectionProto.PartitionVariableOrBuilder> getPartVariableOrBuilderList()
partition only
repeated .PartitionVariable partVariable = 100;- Specified by:
getPartVariableOrBuilderListin interfaceGribCollectionProto.VariableOrBuilder
-
addPartVariableBuilder
public GribCollectionProto.PartitionVariable.Builder addPartVariableBuilder()
partition only
repeated .PartitionVariable partVariable = 100;
-
addPartVariableBuilder
public GribCollectionProto.PartitionVariable.Builder addPartVariableBuilder(int index)
partition only
repeated .PartitionVariable partVariable = 100;
-
getPartVariableBuilderList
public List<GribCollectionProto.PartitionVariable.Builder> getPartVariableBuilderList()
partition only
repeated .PartitionVariable partVariable = 100;
-
setUnknownFields
public final GribCollectionProto.Variable.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GribCollectionProto.Variable.Builder>
-
mergeUnknownFields
public final GribCollectionProto.Variable.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GribCollectionProto.Variable.Builder>
-
-