Package ucar.nc2.grib.grib2
Class Grib2IndexProto.GribIdSection.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Grib2IndexProto.GribIdSection.Builder>
-
- ucar.nc2.grib.grib2.Grib2IndexProto.GribIdSection.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Grib2IndexProto.GribIdSectionOrBuilder
- Enclosing class:
- Grib2IndexProto.GribIdSection
public static final class Grib2IndexProto.GribIdSection.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Grib2IndexProto.GribIdSection.Builder> implements Grib2IndexProto.GribIdSectionOrBuilder
Protobuf typeGribIdSection
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Grib2IndexProto.GribIdSection.BuilderaddAllRefDate(Iterable<? extends Integer> values)year, month, day, hour, minute, second;Grib2IndexProto.GribIdSection.BuilderaddRefDate(int value)year, month, day, hour, minute, second;Grib2IndexProto.GribIdSection.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Grib2IndexProto.GribIdSectionbuild()Grib2IndexProto.GribIdSectionbuildPartial()Grib2IndexProto.GribIdSection.Builderclear()Grib2IndexProto.GribIdSection.BuilderclearCenterId()required uint32 center_id = 1;Grib2IndexProto.GribIdSection.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Grib2IndexProto.GribIdSection.BuilderclearLocalTableVersion()required uint32 local_table_version = 4;Grib2IndexProto.GribIdSection.BuilderclearMasterTableVersion()required uint32 master_table_version = 3;Grib2IndexProto.GribIdSection.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Grib2IndexProto.GribIdSection.BuilderclearProcessedDataType()required uint32 processedDataType = 8;Grib2IndexProto.GribIdSection.BuilderclearProductionStatus()required uint32 productionStatus = 7;Grib2IndexProto.GribIdSection.BuilderclearRefDate()year, month, day, hour, minute, second;Grib2IndexProto.GribIdSection.BuilderclearSignificanceOfRT()required uint32 significanceOfRT = 5;Grib2IndexProto.GribIdSection.BuilderclearSubcenterId()required uint32 subcenter_id = 2;Grib2IndexProto.GribIdSection.Builderclone()intgetCenterId()required uint32 center_id = 1;Grib2IndexProto.GribIdSectiongetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()intgetLocalTableVersion()required uint32 local_table_version = 4;intgetMasterTableVersion()required uint32 master_table_version = 3;intgetProcessedDataType()required uint32 processedDataType = 8;intgetProductionStatus()required uint32 productionStatus = 7;intgetRefDate(int index)year, month, day, hour, minute, second;intgetRefDateCount()year, month, day, hour, minute, second;List<Integer>getRefDateList()year, month, day, hour, minute, second;intgetSignificanceOfRT()required uint32 significanceOfRT = 5;intgetSubcenterId()required uint32 subcenter_id = 2;booleanhasCenterId()required uint32 center_id = 1;booleanhasLocalTableVersion()required uint32 local_table_version = 4;booleanhasMasterTableVersion()required uint32 master_table_version = 3;booleanhasProcessedDataType()required uint32 processedDataType = 8;booleanhasProductionStatus()required uint32 productionStatus = 7;booleanhasSignificanceOfRT()required uint32 significanceOfRT = 5;booleanhasSubcenterId()required uint32 subcenter_id = 2;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Grib2IndexProto.GribIdSection.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Grib2IndexProto.GribIdSection.BuildermergeFrom(com.google.protobuf.Message other)Grib2IndexProto.GribIdSection.BuildermergeFrom(Grib2IndexProto.GribIdSection other)Grib2IndexProto.GribIdSection.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Grib2IndexProto.GribIdSection.BuildersetCenterId(int value)required uint32 center_id = 1;Grib2IndexProto.GribIdSection.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Grib2IndexProto.GribIdSection.BuildersetLocalTableVersion(int value)required uint32 local_table_version = 4;Grib2IndexProto.GribIdSection.BuildersetMasterTableVersion(int value)required uint32 master_table_version = 3;Grib2IndexProto.GribIdSection.BuildersetProcessedDataType(int value)required uint32 processedDataType = 8;Grib2IndexProto.GribIdSection.BuildersetProductionStatus(int value)required uint32 productionStatus = 7;Grib2IndexProto.GribIdSection.BuildersetRefDate(int index, int value)year, month, day, hour, minute, second;Grib2IndexProto.GribIdSection.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Grib2IndexProto.GribIdSection.BuildersetSignificanceOfRT(int value)required uint32 significanceOfRT = 5;Grib2IndexProto.GribIdSection.BuildersetSubcenterId(int value)required uint32 subcenter_id = 2;Grib2IndexProto.GribIdSection.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<Grib2IndexProto.GribIdSection.Builder>
-
clear
public Grib2IndexProto.GribIdSection.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<Grib2IndexProto.GribIdSection.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<Grib2IndexProto.GribIdSection.Builder>
-
getDefaultInstanceForType
public Grib2IndexProto.GribIdSection getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Grib2IndexProto.GribIdSection build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Grib2IndexProto.GribIdSection buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Grib2IndexProto.GribIdSection.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<Grib2IndexProto.GribIdSection.Builder>
-
setField
public Grib2IndexProto.GribIdSection.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<Grib2IndexProto.GribIdSection.Builder>
-
clearField
public Grib2IndexProto.GribIdSection.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Grib2IndexProto.GribIdSection.Builder>
-
clearOneof
public Grib2IndexProto.GribIdSection.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Grib2IndexProto.GribIdSection.Builder>
-
setRepeatedField
public Grib2IndexProto.GribIdSection.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<Grib2IndexProto.GribIdSection.Builder>
-
addRepeatedField
public Grib2IndexProto.GribIdSection.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<Grib2IndexProto.GribIdSection.Builder>
-
mergeFrom
public Grib2IndexProto.GribIdSection.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Grib2IndexProto.GribIdSection.Builder>
-
mergeFrom
public Grib2IndexProto.GribIdSection.Builder mergeFrom(Grib2IndexProto.GribIdSection other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Grib2IndexProto.GribIdSection.Builder>
-
mergeFrom
public Grib2IndexProto.GribIdSection.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<Grib2IndexProto.GribIdSection.Builder>- Throws:
IOException
-
hasCenterId
public boolean hasCenterId()
required uint32 center_id = 1;- Specified by:
hasCenterIdin interfaceGrib2IndexProto.GribIdSectionOrBuilder- Returns:
- Whether the centerId field is set.
-
getCenterId
public int getCenterId()
required uint32 center_id = 1;- Specified by:
getCenterIdin interfaceGrib2IndexProto.GribIdSectionOrBuilder- Returns:
- The centerId.
-
setCenterId
public Grib2IndexProto.GribIdSection.Builder setCenterId(int value)
required uint32 center_id = 1;- Parameters:
value- The centerId to set.- Returns:
- This builder for chaining.
-
clearCenterId
public Grib2IndexProto.GribIdSection.Builder clearCenterId()
required uint32 center_id = 1;- Returns:
- This builder for chaining.
-
hasSubcenterId
public boolean hasSubcenterId()
required uint32 subcenter_id = 2;- Specified by:
hasSubcenterIdin interfaceGrib2IndexProto.GribIdSectionOrBuilder- Returns:
- Whether the subcenterId field is set.
-
getSubcenterId
public int getSubcenterId()
required uint32 subcenter_id = 2;- Specified by:
getSubcenterIdin interfaceGrib2IndexProto.GribIdSectionOrBuilder- Returns:
- The subcenterId.
-
setSubcenterId
public Grib2IndexProto.GribIdSection.Builder setSubcenterId(int value)
required uint32 subcenter_id = 2;- Parameters:
value- The subcenterId to set.- Returns:
- This builder for chaining.
-
clearSubcenterId
public Grib2IndexProto.GribIdSection.Builder clearSubcenterId()
required uint32 subcenter_id = 2;- Returns:
- This builder for chaining.
-
hasMasterTableVersion
public boolean hasMasterTableVersion()
required uint32 master_table_version = 3;- Specified by:
hasMasterTableVersionin interfaceGrib2IndexProto.GribIdSectionOrBuilder- Returns:
- Whether the masterTableVersion field is set.
-
getMasterTableVersion
public int getMasterTableVersion()
required uint32 master_table_version = 3;- Specified by:
getMasterTableVersionin interfaceGrib2IndexProto.GribIdSectionOrBuilder- Returns:
- The masterTableVersion.
-
setMasterTableVersion
public Grib2IndexProto.GribIdSection.Builder setMasterTableVersion(int value)
required uint32 master_table_version = 3;- Parameters:
value- The masterTableVersion to set.- Returns:
- This builder for chaining.
-
clearMasterTableVersion
public Grib2IndexProto.GribIdSection.Builder clearMasterTableVersion()
required uint32 master_table_version = 3;- Returns:
- This builder for chaining.
-
hasLocalTableVersion
public boolean hasLocalTableVersion()
required uint32 local_table_version = 4;- Specified by:
hasLocalTableVersionin interfaceGrib2IndexProto.GribIdSectionOrBuilder- Returns:
- Whether the localTableVersion field is set.
-
getLocalTableVersion
public int getLocalTableVersion()
required uint32 local_table_version = 4;- Specified by:
getLocalTableVersionin interfaceGrib2IndexProto.GribIdSectionOrBuilder- Returns:
- The localTableVersion.
-
setLocalTableVersion
public Grib2IndexProto.GribIdSection.Builder setLocalTableVersion(int value)
required uint32 local_table_version = 4;- Parameters:
value- The localTableVersion to set.- Returns:
- This builder for chaining.
-
clearLocalTableVersion
public Grib2IndexProto.GribIdSection.Builder clearLocalTableVersion()
required uint32 local_table_version = 4;- Returns:
- This builder for chaining.
-
hasSignificanceOfRT
public boolean hasSignificanceOfRT()
required uint32 significanceOfRT = 5;- Specified by:
hasSignificanceOfRTin interfaceGrib2IndexProto.GribIdSectionOrBuilder- Returns:
- Whether the significanceOfRT field is set.
-
getSignificanceOfRT
public int getSignificanceOfRT()
required uint32 significanceOfRT = 5;- Specified by:
getSignificanceOfRTin interfaceGrib2IndexProto.GribIdSectionOrBuilder- Returns:
- The significanceOfRT.
-
setSignificanceOfRT
public Grib2IndexProto.GribIdSection.Builder setSignificanceOfRT(int value)
required uint32 significanceOfRT = 5;- Parameters:
value- The significanceOfRT to set.- Returns:
- This builder for chaining.
-
clearSignificanceOfRT
public Grib2IndexProto.GribIdSection.Builder clearSignificanceOfRT()
required uint32 significanceOfRT = 5;- Returns:
- This builder for chaining.
-
getRefDateList
public List<Integer> getRefDateList()
year, month, day, hour, minute, second;
repeated uint32 refDate = 6 [packed = true];- Specified by:
getRefDateListin interfaceGrib2IndexProto.GribIdSectionOrBuilder- Returns:
- A list containing the refDate.
-
getRefDateCount
public int getRefDateCount()
year, month, day, hour, minute, second;
repeated uint32 refDate = 6 [packed = true];- Specified by:
getRefDateCountin interfaceGrib2IndexProto.GribIdSectionOrBuilder- Returns:
- The count of refDate.
-
getRefDate
public int getRefDate(int index)
year, month, day, hour, minute, second;
repeated uint32 refDate = 6 [packed = true];- Specified by:
getRefDatein interfaceGrib2IndexProto.GribIdSectionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The refDate at the given index.
-
setRefDate
public Grib2IndexProto.GribIdSection.Builder setRefDate(int index, int value)
year, month, day, hour, minute, second;
repeated uint32 refDate = 6 [packed = true];- Parameters:
index- The index to set the value at.value- The refDate to set.- Returns:
- This builder for chaining.
-
addRefDate
public Grib2IndexProto.GribIdSection.Builder addRefDate(int value)
year, month, day, hour, minute, second;
repeated uint32 refDate = 6 [packed = true];- Parameters:
value- The refDate to add.- Returns:
- This builder for chaining.
-
addAllRefDate
public Grib2IndexProto.GribIdSection.Builder addAllRefDate(Iterable<? extends Integer> values)
year, month, day, hour, minute, second;
repeated uint32 refDate = 6 [packed = true];- Parameters:
values- The refDate to add.- Returns:
- This builder for chaining.
-
clearRefDate
public Grib2IndexProto.GribIdSection.Builder clearRefDate()
year, month, day, hour, minute, second;
repeated uint32 refDate = 6 [packed = true];- Returns:
- This builder for chaining.
-
hasProductionStatus
public boolean hasProductionStatus()
required uint32 productionStatus = 7;- Specified by:
hasProductionStatusin interfaceGrib2IndexProto.GribIdSectionOrBuilder- Returns:
- Whether the productionStatus field is set.
-
getProductionStatus
public int getProductionStatus()
required uint32 productionStatus = 7;- Specified by:
getProductionStatusin interfaceGrib2IndexProto.GribIdSectionOrBuilder- Returns:
- The productionStatus.
-
setProductionStatus
public Grib2IndexProto.GribIdSection.Builder setProductionStatus(int value)
required uint32 productionStatus = 7;- Parameters:
value- The productionStatus to set.- Returns:
- This builder for chaining.
-
clearProductionStatus
public Grib2IndexProto.GribIdSection.Builder clearProductionStatus()
required uint32 productionStatus = 7;- Returns:
- This builder for chaining.
-
hasProcessedDataType
public boolean hasProcessedDataType()
required uint32 processedDataType = 8;- Specified by:
hasProcessedDataTypein interfaceGrib2IndexProto.GribIdSectionOrBuilder- Returns:
- Whether the processedDataType field is set.
-
getProcessedDataType
public int getProcessedDataType()
required uint32 processedDataType = 8;- Specified by:
getProcessedDataTypein interfaceGrib2IndexProto.GribIdSectionOrBuilder- Returns:
- The processedDataType.
-
setProcessedDataType
public Grib2IndexProto.GribIdSection.Builder setProcessedDataType(int value)
required uint32 processedDataType = 8;- Parameters:
value- The processedDataType to set.- Returns:
- This builder for chaining.
-
clearProcessedDataType
public Grib2IndexProto.GribIdSection.Builder clearProcessedDataType()
required uint32 processedDataType = 8;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Grib2IndexProto.GribIdSection.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Grib2IndexProto.GribIdSection.Builder>
-
mergeUnknownFields
public final Grib2IndexProto.GribIdSection.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Grib2IndexProto.GribIdSection.Builder>
-
-