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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<GribCollectionProto.Coord.Builder>
-
clear
public GribCollectionProto.Coord.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.Coord.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.Coord.Builder>
-
getDefaultInstanceForType
public GribCollectionProto.Coord getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public GribCollectionProto.Coord build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GribCollectionProto.Coord buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public GribCollectionProto.Coord.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GribCollectionProto.Coord.Builder>
-
mergeFrom
public GribCollectionProto.Coord.Builder mergeFrom(GribCollectionProto.Coord other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GribCollectionProto.Coord.Builder>- Throws:
IOException
-
getAxisTypeValue
public int getAxisTypeValue()
.GribAxisType axisType = 1;- Specified by:
getAxisTypeValuein 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:
getAxisTypein 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:
getCodein 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:
getUnitin interfaceGribCollectionProto.CoordOrBuilder- Returns:
- The unit.
-
getUnitBytes
public com.google.protobuf.ByteString getUnitBytes()
string unit = 3;- Specified by:
getUnitBytesin 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:
getValuesListin interfaceGribCollectionProto.CoordOrBuilder- Returns:
- A list containing the values.
-
getValuesCount
public int getValuesCount()
repeated float values = 4 [packed = true];- Specified by:
getValuesCountin interfaceGribCollectionProto.CoordOrBuilder- Returns:
- The count of values.
-
getValues
public float getValues(int index)
repeated float values = 4 [packed = true];- Specified by:
getValuesin 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:
getBoundListin 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:
getBoundCountin 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:
getBoundin 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:
getMsecsListin interfaceGribCollectionProto.CoordOrBuilder- Returns:
- A list containing the msecs.
-
getMsecsCount
public int getMsecsCount()
calendar date : runtime, time2D
repeated int64 msecs = 6 [packed = true];- Specified by:
getMsecsCountin 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:
getMsecsin 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:
getTimesListin interfaceGribCollectionProto.CoordOrBuilder
-
getTimesCount
public int getTimesCount()
time2D only
repeated .Coord times = 7;- Specified by:
getTimesCountin interfaceGribCollectionProto.CoordOrBuilder
-
getTimes
public GribCollectionProto.Coord getTimes(int index)
time2D only
repeated .Coord times = 7;- Specified by:
getTimesin 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:
getTimesOrBuilderin interfaceGribCollectionProto.CoordOrBuilder
-
getTimesOrBuilderList
public List<? extends GribCollectionProto.CoordOrBuilder> getTimesOrBuilderList()
time2D only
repeated .Coord times = 7;- Specified by:
getTimesOrBuilderListin 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:
getIsOrthogonalin 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:
getIsRegularin 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:
getTime2RuntimeListin 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:
getTime2RuntimeCountin 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:
getTime2Runtimein 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GribCollectionProto.Coord.Builder>
-
mergeUnknownFields
public final GribCollectionProto.Coord.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GribCollectionProto.Coord.Builder>
-
-