Package ucar.nc2.grib.collection
Class GribCollectionProto.Coord.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<GribCollectionProto.Coord.Builder>
-
- ucar.nc2.grib.collection.GribCollectionProto.Coord.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,GribCollectionProto.CoordOrBuilder
- Enclosing class:
- GribCollectionProto.Coord
public static final class GribCollectionProto.Coord.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GribCollectionProto.Coord.Builder> implements GribCollectionProto.CoordOrBuilder
Protobuf typeCoord
-
-
Method Summary
-
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<GribCollectionProto.Coord.Builder>
-
clear
public GribCollectionProto.Coord.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<GribCollectionProto.Coord.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<GribCollectionProto.Coord.Builder>
-
getDefaultInstanceForType
public GribCollectionProto.Coord getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public GribCollectionProto.Coord build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GribCollectionProto.Coord buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public GribCollectionProto.Coord.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GribCollectionProto.Coord.Builder>
-
mergeFrom
public GribCollectionProto.Coord.Builder mergeFrom(GribCollectionProto.Coord other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<GribCollectionProto.Coord.Builder>
-
mergeFrom
public GribCollectionProto.Coord.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<GribCollectionProto.Coord.Builder>
- Throws:
IOException
-
getAxisTypeValue
public int getAxisTypeValue()
.GribAxisType axisType = 1;
- Specified by:
getAxisTypeValue
in interfaceGribCollectionProto.CoordOrBuilder
- Returns:
- The enum numeric value on the wire for axisType.
-
setAxisTypeValue
public GribCollectionProto.Coord.Builder setAxisTypeValue(int value)
.GribAxisType axisType = 1;
- Parameters:
value
- The enum numeric value on the wire for axisType to set.- Returns:
- This builder for chaining.
-
getAxisType
public GribCollectionProto.GribAxisType getAxisType()
.GribAxisType axisType = 1;
- Specified by:
getAxisType
in interfaceGribCollectionProto.CoordOrBuilder
- Returns:
- The axisType.
-
setAxisType
public GribCollectionProto.Coord.Builder setAxisType(GribCollectionProto.GribAxisType value)
.GribAxisType axisType = 1;
- Parameters:
value
- The axisType to set.- Returns:
- This builder for chaining.
-
clearAxisType
public GribCollectionProto.Coord.Builder clearAxisType()
.GribAxisType axisType = 1;
- Returns:
- This builder for chaining.
-
getCode
public int getCode()
time unit; level type
int32 code = 2;
- Specified by:
getCode
in interfaceGribCollectionProto.CoordOrBuilder
- Returns:
- The code.
-
setCode
public GribCollectionProto.Coord.Builder setCode(int value)
time unit; level type
int32 code = 2;
- Parameters:
value
- The code to set.- Returns:
- This builder for chaining.
-
clearCode
public GribCollectionProto.Coord.Builder clearCode()
time unit; level type
int32 code = 2;
- Returns:
- This builder for chaining.
-
getUnit
public String getUnit()
string unit = 3;
- Specified by:
getUnit
in interfaceGribCollectionProto.CoordOrBuilder
- Returns:
- The unit.
-
getUnitBytes
public com.google.protobuf.ByteString getUnitBytes()
string unit = 3;
- Specified by:
getUnitBytes
in interfaceGribCollectionProto.CoordOrBuilder
- Returns:
- The bytes for unit.
-
setUnit
public GribCollectionProto.Coord.Builder setUnit(String value)
string unit = 3;
- Parameters:
value
- The unit to set.- Returns:
- This builder for chaining.
-
clearUnit
public GribCollectionProto.Coord.Builder clearUnit()
string unit = 3;
- Returns:
- This builder for chaining.
-
setUnitBytes
public GribCollectionProto.Coord.Builder setUnitBytes(com.google.protobuf.ByteString value)
string unit = 3;
- Parameters:
value
- The bytes for unit to set.- Returns:
- This builder for chaining.
-
getValuesList
public List<Float> getValuesList()
repeated float values = 4 [packed = true];
- Specified by:
getValuesList
in interfaceGribCollectionProto.CoordOrBuilder
- Returns:
- A list containing the values.
-
getValuesCount
public int getValuesCount()
repeated float values = 4 [packed = true];
- Specified by:
getValuesCount
in interfaceGribCollectionProto.CoordOrBuilder
- Returns:
- The count of values.
-
getValues
public float getValues(int index)
repeated float values = 4 [packed = true];
- Specified by:
getValues
in interfaceGribCollectionProto.CoordOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The values at the given index.
-
setValues
public GribCollectionProto.Coord.Builder setValues(int index, float value)
repeated float values = 4 [packed = true];
- Parameters:
index
- The index to set the value at.value
- The values to set.- Returns:
- This builder for chaining.
-
addValues
public GribCollectionProto.Coord.Builder addValues(float value)
repeated float values = 4 [packed = true];
- Parameters:
value
- The values to add.- Returns:
- This builder for chaining.
-
addAllValues
public GribCollectionProto.Coord.Builder addAllValues(Iterable<? extends Float> values)
repeated float values = 4 [packed = true];
- Parameters:
values
- The values to add.- Returns:
- This builder for chaining.
-
clearValues
public GribCollectionProto.Coord.Builder clearValues()
repeated float values = 4 [packed = true];
- Returns:
- This builder for chaining.
-
getBoundList
public List<Float> getBoundList()
only used if interval, then = (value, bound)
repeated float bound = 5 [packed = true];
- Specified by:
getBoundList
in interfaceGribCollectionProto.CoordOrBuilder
- Returns:
- A list containing the bound.
-
getBoundCount
public int getBoundCount()
only used if interval, then = (value, bound)
repeated float bound = 5 [packed = true];
- Specified by:
getBoundCount
in interfaceGribCollectionProto.CoordOrBuilder
- Returns:
- The count of bound.
-
getBound
public float getBound(int index)
only used if interval, then = (value, bound)
repeated float bound = 5 [packed = true];
- Specified by:
getBound
in interfaceGribCollectionProto.CoordOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The bound at the given index.
-
setBound
public GribCollectionProto.Coord.Builder setBound(int index, float value)
only used if interval, then = (value, bound)
repeated float bound = 5 [packed = true];
- Parameters:
index
- The index to set the value at.value
- The bound to set.- Returns:
- This builder for chaining.
-
addBound
public GribCollectionProto.Coord.Builder addBound(float value)
only used if interval, then = (value, bound)
repeated float bound = 5 [packed = true];
- Parameters:
value
- The bound to add.- Returns:
- This builder for chaining.
-
addAllBound
public GribCollectionProto.Coord.Builder addAllBound(Iterable<? extends Float> values)
only used if interval, then = (value, bound)
repeated float bound = 5 [packed = true];
- Parameters:
values
- The bound to add.- Returns:
- This builder for chaining.
-
clearBound
public GribCollectionProto.Coord.Builder clearBound()
only used if interval, then = (value, bound)
repeated float bound = 5 [packed = true];
- Returns:
- This builder for chaining.
-
getMsecsList
public List<Long> getMsecsList()
calendar date : runtime, time2D
repeated int64 msecs = 6 [packed = true];
- Specified by:
getMsecsList
in interfaceGribCollectionProto.CoordOrBuilder
- Returns:
- A list containing the msecs.
-
getMsecsCount
public int getMsecsCount()
calendar date : runtime, time2D
repeated int64 msecs = 6 [packed = true];
- Specified by:
getMsecsCount
in interfaceGribCollectionProto.CoordOrBuilder
- Returns:
- The count of msecs.
-
getMsecs
public long getMsecs(int index)
calendar date : runtime, time2D
repeated int64 msecs = 6 [packed = true];
- Specified by:
getMsecs
in interfaceGribCollectionProto.CoordOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The msecs at the given index.
-
setMsecs
public GribCollectionProto.Coord.Builder setMsecs(int index, long value)
calendar date : runtime, time2D
repeated int64 msecs = 6 [packed = true];
- Parameters:
index
- The index to set the value at.value
- The msecs to set.- Returns:
- This builder for chaining.
-
addMsecs
public GribCollectionProto.Coord.Builder addMsecs(long value)
calendar date : runtime, time2D
repeated int64 msecs = 6 [packed = true];
- Parameters:
value
- The msecs to add.- Returns:
- This builder for chaining.
-
addAllMsecs
public GribCollectionProto.Coord.Builder addAllMsecs(Iterable<? extends Long> values)
calendar date : runtime, time2D
repeated int64 msecs = 6 [packed = true];
- Parameters:
values
- The msecs to add.- Returns:
- This builder for chaining.
-
clearMsecs
public GribCollectionProto.Coord.Builder clearMsecs()
calendar date : runtime, time2D
repeated int64 msecs = 6 [packed = true];
- Returns:
- This builder for chaining.
-
getTimesList
public List<GribCollectionProto.Coord> getTimesList()
time2D only
repeated .Coord times = 7;
- Specified by:
getTimesList
in interfaceGribCollectionProto.CoordOrBuilder
-
getTimesCount
public int getTimesCount()
time2D only
repeated .Coord times = 7;
- Specified by:
getTimesCount
in interfaceGribCollectionProto.CoordOrBuilder
-
getTimes
public GribCollectionProto.Coord getTimes(int index)
time2D only
repeated .Coord times = 7;
- Specified by:
getTimes
in interfaceGribCollectionProto.CoordOrBuilder
-
setTimes
public GribCollectionProto.Coord.Builder setTimes(int index, GribCollectionProto.Coord value)
time2D only
repeated .Coord times = 7;
-
setTimes
public GribCollectionProto.Coord.Builder setTimes(int index, GribCollectionProto.Coord.Builder builderForValue)
time2D only
repeated .Coord times = 7;
-
addTimes
public GribCollectionProto.Coord.Builder addTimes(GribCollectionProto.Coord value)
time2D only
repeated .Coord times = 7;
-
addTimes
public GribCollectionProto.Coord.Builder addTimes(int index, GribCollectionProto.Coord value)
time2D only
repeated .Coord times = 7;
-
addTimes
public GribCollectionProto.Coord.Builder addTimes(GribCollectionProto.Coord.Builder builderForValue)
time2D only
repeated .Coord times = 7;
-
addTimes
public GribCollectionProto.Coord.Builder addTimes(int index, GribCollectionProto.Coord.Builder builderForValue)
time2D only
repeated .Coord times = 7;
-
addAllTimes
public GribCollectionProto.Coord.Builder addAllTimes(Iterable<? extends GribCollectionProto.Coord> values)
time2D only
repeated .Coord times = 7;
-
clearTimes
public GribCollectionProto.Coord.Builder clearTimes()
time2D only
repeated .Coord times = 7;
-
removeTimes
public GribCollectionProto.Coord.Builder removeTimes(int index)
time2D only
repeated .Coord times = 7;
-
getTimesBuilder
public GribCollectionProto.Coord.Builder getTimesBuilder(int index)
time2D only
repeated .Coord times = 7;
-
getTimesOrBuilder
public GribCollectionProto.CoordOrBuilder getTimesOrBuilder(int index)
time2D only
repeated .Coord times = 7;
- Specified by:
getTimesOrBuilder
in interfaceGribCollectionProto.CoordOrBuilder
-
getTimesOrBuilderList
public List<? extends GribCollectionProto.CoordOrBuilder> getTimesOrBuilderList()
time2D only
repeated .Coord times = 7;
- Specified by:
getTimesOrBuilderList
in interfaceGribCollectionProto.CoordOrBuilder
-
addTimesBuilder
public GribCollectionProto.Coord.Builder addTimesBuilder()
time2D only
repeated .Coord times = 7;
-
addTimesBuilder
public GribCollectionProto.Coord.Builder addTimesBuilder(int index)
time2D only
repeated .Coord times = 7;
-
getTimesBuilderList
public List<GribCollectionProto.Coord.Builder> getTimesBuilderList()
time2D only
repeated .Coord times = 7;
-
getIsOrthogonal
public boolean getIsOrthogonal()
time2D only
bool isOrthogonal = 8;
- Specified by:
getIsOrthogonal
in interfaceGribCollectionProto.CoordOrBuilder
- Returns:
- The isOrthogonal.
-
setIsOrthogonal
public GribCollectionProto.Coord.Builder setIsOrthogonal(boolean value)
time2D only
bool isOrthogonal = 8;
- Parameters:
value
- The isOrthogonal to set.- Returns:
- This builder for chaining.
-
clearIsOrthogonal
public GribCollectionProto.Coord.Builder clearIsOrthogonal()
time2D only
bool isOrthogonal = 8;
- Returns:
- This builder for chaining.
-
getIsRegular
public boolean getIsRegular()
time2D only
bool isRegular = 9;
- Specified by:
getIsRegular
in interfaceGribCollectionProto.CoordOrBuilder
- Returns:
- The isRegular.
-
setIsRegular
public GribCollectionProto.Coord.Builder setIsRegular(boolean value)
time2D only
bool isRegular = 9;
- Parameters:
value
- The isRegular to set.- Returns:
- This builder for chaining.
-
clearIsRegular
public GribCollectionProto.Coord.Builder clearIsRegular()
time2D only
bool isRegular = 9;
- Returns:
- This builder for chaining.
-
getTime2RuntimeList
public List<Integer> getTime2RuntimeList()
time index to runtime index, Best Time only
repeated uint32 time2runtime = 10 [packed = true];
- Specified by:
getTime2RuntimeList
in interfaceGribCollectionProto.CoordOrBuilder
- Returns:
- A list containing the time2runtime.
-
getTime2RuntimeCount
public int getTime2RuntimeCount()
time index to runtime index, Best Time only
repeated uint32 time2runtime = 10 [packed = true];
- Specified by:
getTime2RuntimeCount
in interfaceGribCollectionProto.CoordOrBuilder
- Returns:
- The count of time2runtime.
-
getTime2Runtime
public int getTime2Runtime(int index)
time index to runtime index, Best Time only
repeated uint32 time2runtime = 10 [packed = true];
- Specified by:
getTime2Runtime
in interfaceGribCollectionProto.CoordOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The time2runtime at the given index.
-
setTime2Runtime
public GribCollectionProto.Coord.Builder setTime2Runtime(int index, int value)
time index to runtime index, Best Time only
repeated uint32 time2runtime = 10 [packed = true];
- Parameters:
index
- The index to set the value at.value
- The time2runtime to set.- Returns:
- This builder for chaining.
-
addTime2Runtime
public GribCollectionProto.Coord.Builder addTime2Runtime(int value)
time index to runtime index, Best Time only
repeated uint32 time2runtime = 10 [packed = true];
- Parameters:
value
- The time2runtime to add.- Returns:
- This builder for chaining.
-
addAllTime2Runtime
public GribCollectionProto.Coord.Builder addAllTime2Runtime(Iterable<? extends Integer> values)
time index to runtime index, Best Time only
repeated uint32 time2runtime = 10 [packed = true];
- Parameters:
values
- The time2runtime to add.- Returns:
- This builder for chaining.
-
clearTime2Runtime
public GribCollectionProto.Coord.Builder clearTime2Runtime()
time index to runtime index, Best Time only
repeated uint32 time2runtime = 10 [packed = true];
- Returns:
- This builder for chaining.
-
setUnknownFields
public final GribCollectionProto.Coord.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GribCollectionProto.Coord.Builder>
-
mergeUnknownFields
public final GribCollectionProto.Coord.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GribCollectionProto.Coord.Builder>
-
-