Package ucar.nc2.grib.collection
Class GribCollectionProto.Parameter.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<GribCollectionProto.Parameter.Builder>
-
- ucar.nc2.grib.collection.GribCollectionProto.Parameter.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,GribCollectionProto.ParameterOrBuilder
- Enclosing class:
- GribCollectionProto.Parameter
public static final class GribCollectionProto.Parameter.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GribCollectionProto.Parameter.Builder> implements GribCollectionProto.ParameterOrBuilder
Protobuf typeParameter
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GribCollectionProto.Parameter.Builder
addAllData(Iterable<? extends Double> values)
repeated double data = 2;
GribCollectionProto.Parameter.Builder
addData(double value)
repeated double data = 2;
GribCollectionProto.Parameter
build()
GribCollectionProto.Parameter
buildPartial()
GribCollectionProto.Parameter.Builder
clear()
GribCollectionProto.Parameter.Builder
clearData()
repeated double data = 2;
GribCollectionProto.Parameter.Builder
clearName()
string name = 1;
GribCollectionProto.Parameter.Builder
clearSdata()
used for string datadouble
getData(int index)
repeated double data = 2;
int
getDataCount()
repeated double data = 2;
List<Double>
getDataList()
repeated double data = 2;
GribCollectionProto.Parameter
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getName()
string name = 1;
com.google.protobuf.ByteString
getNameBytes()
string name = 1;
String
getSdata()
used for string datacom.google.protobuf.ByteString
getSdataBytes()
used for string dataprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
GribCollectionProto.Parameter.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
GribCollectionProto.Parameter.Builder
mergeFrom(com.google.protobuf.Message other)
GribCollectionProto.Parameter.Builder
mergeFrom(GribCollectionProto.Parameter other)
GribCollectionProto.Parameter.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
GribCollectionProto.Parameter.Builder
setData(int index, double value)
repeated double data = 2;
GribCollectionProto.Parameter.Builder
setName(String value)
string name = 1;
GribCollectionProto.Parameter.Builder
setNameBytes(com.google.protobuf.ByteString value)
string name = 1;
GribCollectionProto.Parameter.Builder
setSdata(String value)
used for string dataGribCollectionProto.Parameter.Builder
setSdataBytes(com.google.protobuf.ByteString value)
used for string dataGribCollectionProto.Parameter.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<GribCollectionProto.Parameter.Builder>
-
clear
public GribCollectionProto.Parameter.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.Parameter.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.Parameter.Builder>
-
getDefaultInstanceForType
public GribCollectionProto.Parameter getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public GribCollectionProto.Parameter build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GribCollectionProto.Parameter buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public GribCollectionProto.Parameter.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.Parameter.Builder>
-
mergeFrom
public GribCollectionProto.Parameter.Builder mergeFrom(GribCollectionProto.Parameter other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<GribCollectionProto.Parameter.Builder>
-
mergeFrom
public GribCollectionProto.Parameter.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.Parameter.Builder>
- Throws:
IOException
-
getName
public String getName()
string name = 1;
- Specified by:
getName
in interfaceGribCollectionProto.ParameterOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
string name = 1;
- Specified by:
getNameBytes
in interfaceGribCollectionProto.ParameterOrBuilder
- Returns:
- The bytes for name.
-
setName
public GribCollectionProto.Parameter.Builder setName(String value)
string name = 1;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public GribCollectionProto.Parameter.Builder clearName()
string name = 1;
- Returns:
- This builder for chaining.
-
setNameBytes
public GribCollectionProto.Parameter.Builder setNameBytes(com.google.protobuf.ByteString value)
string name = 1;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDataList
public List<Double> getDataList()
repeated double data = 2;
- Specified by:
getDataList
in interfaceGribCollectionProto.ParameterOrBuilder
- Returns:
- A list containing the data.
-
getDataCount
public int getDataCount()
repeated double data = 2;
- Specified by:
getDataCount
in interfaceGribCollectionProto.ParameterOrBuilder
- Returns:
- The count of data.
-
getData
public double getData(int index)
repeated double data = 2;
- Specified by:
getData
in interfaceGribCollectionProto.ParameterOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The data at the given index.
-
setData
public GribCollectionProto.Parameter.Builder setData(int index, double value)
repeated double data = 2;
- Parameters:
index
- The index to set the value at.value
- The data to set.- Returns:
- This builder for chaining.
-
addData
public GribCollectionProto.Parameter.Builder addData(double value)
repeated double data = 2;
- Parameters:
value
- The data to add.- Returns:
- This builder for chaining.
-
addAllData
public GribCollectionProto.Parameter.Builder addAllData(Iterable<? extends Double> values)
repeated double data = 2;
- Parameters:
values
- The data to add.- Returns:
- This builder for chaining.
-
clearData
public GribCollectionProto.Parameter.Builder clearData()
repeated double data = 2;
- Returns:
- This builder for chaining.
-
getSdata
public String getSdata()
used for string data
string sdata = 3;
- Specified by:
getSdata
in interfaceGribCollectionProto.ParameterOrBuilder
- Returns:
- The sdata.
-
getSdataBytes
public com.google.protobuf.ByteString getSdataBytes()
used for string data
string sdata = 3;
- Specified by:
getSdataBytes
in interfaceGribCollectionProto.ParameterOrBuilder
- Returns:
- The bytes for sdata.
-
setSdata
public GribCollectionProto.Parameter.Builder setSdata(String value)
used for string data
string sdata = 3;
- Parameters:
value
- The sdata to set.- Returns:
- This builder for chaining.
-
clearSdata
public GribCollectionProto.Parameter.Builder clearSdata()
used for string data
string sdata = 3;
- Returns:
- This builder for chaining.
-
setSdataBytes
public GribCollectionProto.Parameter.Builder setSdataBytes(com.google.protobuf.ByteString value)
used for string data
string sdata = 3;
- Parameters:
value
- The bytes for sdata to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final GribCollectionProto.Parameter.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.Parameter.Builder>
-
mergeUnknownFields
public final GribCollectionProto.Parameter.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.Parameter.Builder>
-
-