Package ucar.nc2.grib.grib2
Class Grib2IndexProto.GribIdSection.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- 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.Builder
addAllRefDate(Iterable<? extends Integer> values)
year, month, day, hour, minute, second;Grib2IndexProto.GribIdSection.Builder
addRefDate(int value)
year, month, day, hour, minute, second;Grib2IndexProto.GribIdSection
build()
Grib2IndexProto.GribIdSection
buildPartial()
Grib2IndexProto.GribIdSection.Builder
clear()
Grib2IndexProto.GribIdSection.Builder
clearCenterId()
required uint32 center_id = 1;
Grib2IndexProto.GribIdSection.Builder
clearLocalTableVersion()
required uint32 local_table_version = 4;
Grib2IndexProto.GribIdSection.Builder
clearMasterTableVersion()
required uint32 master_table_version = 3;
Grib2IndexProto.GribIdSection.Builder
clearProcessedDataType()
required uint32 processedDataType = 8;
Grib2IndexProto.GribIdSection.Builder
clearProductionStatus()
required uint32 productionStatus = 7;
Grib2IndexProto.GribIdSection.Builder
clearRefDate()
year, month, day, hour, minute, second;Grib2IndexProto.GribIdSection.Builder
clearSignificanceOfRT()
required uint32 significanceOfRT = 5;
Grib2IndexProto.GribIdSection.Builder
clearSubcenterId()
required uint32 subcenter_id = 2;
int
getCenterId()
required uint32 center_id = 1;
Grib2IndexProto.GribIdSection
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
int
getLocalTableVersion()
required uint32 local_table_version = 4;
int
getMasterTableVersion()
required uint32 master_table_version = 3;
int
getProcessedDataType()
required uint32 processedDataType = 8;
int
getProductionStatus()
required uint32 productionStatus = 7;
int
getRefDate(int index)
year, month, day, hour, minute, second;int
getRefDateCount()
year, month, day, hour, minute, second;List<Integer>
getRefDateList()
year, month, day, hour, minute, second;int
getSignificanceOfRT()
required uint32 significanceOfRT = 5;
int
getSubcenterId()
required uint32 subcenter_id = 2;
boolean
hasCenterId()
required uint32 center_id = 1;
boolean
hasLocalTableVersion()
required uint32 local_table_version = 4;
boolean
hasMasterTableVersion()
required uint32 master_table_version = 3;
boolean
hasProcessedDataType()
required uint32 processedDataType = 8;
boolean
hasProductionStatus()
required uint32 productionStatus = 7;
boolean
hasSignificanceOfRT()
required uint32 significanceOfRT = 5;
boolean
hasSubcenterId()
required uint32 subcenter_id = 2;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Grib2IndexProto.GribIdSection.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Grib2IndexProto.GribIdSection.Builder
mergeFrom(com.google.protobuf.Message other)
Grib2IndexProto.GribIdSection.Builder
mergeFrom(Grib2IndexProto.GribIdSection other)
Grib2IndexProto.GribIdSection.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Grib2IndexProto.GribIdSection.Builder
setCenterId(int value)
required uint32 center_id = 1;
Grib2IndexProto.GribIdSection.Builder
setLocalTableVersion(int value)
required uint32 local_table_version = 4;
Grib2IndexProto.GribIdSection.Builder
setMasterTableVersion(int value)
required uint32 master_table_version = 3;
Grib2IndexProto.GribIdSection.Builder
setProcessedDataType(int value)
required uint32 processedDataType = 8;
Grib2IndexProto.GribIdSection.Builder
setProductionStatus(int value)
required uint32 productionStatus = 7;
Grib2IndexProto.GribIdSection.Builder
setRefDate(int index, int value)
year, month, day, hour, minute, second;Grib2IndexProto.GribIdSection.Builder
setSignificanceOfRT(int value)
required uint32 significanceOfRT = 5;
Grib2IndexProto.GribIdSection.Builder
setSubcenterId(int value)
required uint32 subcenter_id = 2;
Grib2IndexProto.GribIdSection.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
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<Grib2IndexProto.GribIdSection.Builder>
-
clear
public Grib2IndexProto.GribIdSection.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<Grib2IndexProto.GribIdSection.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<Grib2IndexProto.GribIdSection.Builder>
-
getDefaultInstanceForType
public Grib2IndexProto.GribIdSection getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Grib2IndexProto.GribIdSection build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Grib2IndexProto.GribIdSection buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public Grib2IndexProto.GribIdSection.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Grib2IndexProto.GribIdSection.Builder>
-
mergeFrom
public Grib2IndexProto.GribIdSection.Builder mergeFrom(Grib2IndexProto.GribIdSection other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Grib2IndexProto.GribIdSection.Builder>
- Throws:
IOException
-
hasCenterId
public boolean hasCenterId()
required uint32 center_id = 1;
- Specified by:
hasCenterId
in interfaceGrib2IndexProto.GribIdSectionOrBuilder
- Returns:
- Whether the centerId field is set.
-
getCenterId
public int getCenterId()
required uint32 center_id = 1;
- Specified by:
getCenterId
in 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:
hasSubcenterId
in interfaceGrib2IndexProto.GribIdSectionOrBuilder
- Returns:
- Whether the subcenterId field is set.
-
getSubcenterId
public int getSubcenterId()
required uint32 subcenter_id = 2;
- Specified by:
getSubcenterId
in 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:
hasMasterTableVersion
in interfaceGrib2IndexProto.GribIdSectionOrBuilder
- Returns:
- Whether the masterTableVersion field is set.
-
getMasterTableVersion
public int getMasterTableVersion()
required uint32 master_table_version = 3;
- Specified by:
getMasterTableVersion
in 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:
hasLocalTableVersion
in interfaceGrib2IndexProto.GribIdSectionOrBuilder
- Returns:
- Whether the localTableVersion field is set.
-
getLocalTableVersion
public int getLocalTableVersion()
required uint32 local_table_version = 4;
- Specified by:
getLocalTableVersion
in 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:
hasSignificanceOfRT
in interfaceGrib2IndexProto.GribIdSectionOrBuilder
- Returns:
- Whether the significanceOfRT field is set.
-
getSignificanceOfRT
public int getSignificanceOfRT()
required uint32 significanceOfRT = 5;
- Specified by:
getSignificanceOfRT
in 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:
getRefDateList
in 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:
getRefDateCount
in 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:
getRefDate
in 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:
hasProductionStatus
in interfaceGrib2IndexProto.GribIdSectionOrBuilder
- Returns:
- Whether the productionStatus field is set.
-
getProductionStatus
public int getProductionStatus()
required uint32 productionStatus = 7;
- Specified by:
getProductionStatus
in 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:
hasProcessedDataType
in interfaceGrib2IndexProto.GribIdSectionOrBuilder
- Returns:
- Whether the processedDataType field is set.
-
getProcessedDataType
public int getProcessedDataType()
required uint32 processedDataType = 8;
- Specified by:
getProcessedDataType
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Grib2IndexProto.GribIdSection.Builder>
-
mergeUnknownFields
public final Grib2IndexProto.GribIdSection.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Grib2IndexProto.GribIdSection.Builder>
-
-