Class NetcdfVariable.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<NetcdfVariable.Builder>
com.google.protobuf.GeneratedMessage.Builder<NetcdfVariable.Builder>
ai.pipestream.parsed.data.climate.v1.NetcdfVariable.Builder
- All Implemented Interfaces:
NetcdfVariableOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
NetcdfVariable
public static final class NetcdfVariable.Builder
extends com.google.protobuf.GeneratedMessage.Builder<NetcdfVariable.Builder>
implements NetcdfVariableOrBuilder
Represents a NetCDF variableProtobuf type
ai.pipestream.parsed.data.climate.v1.NetcdfVariable-
Method Summary
Modifier and TypeMethodDescriptionaddAllAttributes(Iterable<? extends NetcdfAttribute> values) Variable attributesaddAllDimensionNames(Iterable<String> values) Dimensions used by this variableaddAttributes(int index, NetcdfAttribute value) Variable attributesaddAttributes(int index, NetcdfAttribute.Builder builderForValue) Variable attributesaddAttributes(NetcdfAttribute value) Variable attributesaddAttributes(NetcdfAttribute.Builder builderForValue) Variable attributesVariable attributesaddAttributesBuilder(int index) Variable attributesaddDimensionNames(String value) Dimensions used by this variableaddDimensionNamesBytes(com.google.protobuf.ByteString value) Dimensions used by this variablebuild()clear()Variable attributesCF standard name (if applicable)Data type (e.g., "float", "double", "int", "char")Dimensions used by this variableLong descriptive nameVariable nameFull name and dimensions (e.g., "float temp(time, lat, lon)")Units of measurementValid range for the variablegetAttributes(int index) Variable attributesgetAttributesBuilder(int index) Variable attributesVariable attributesintVariable attributesVariable attributesgetAttributesOrBuilder(int index) Variable attributesList<? extends NetcdfAttributeOrBuilder> Variable attributesCF standard name (if applicable)com.google.protobuf.ByteStringCF standard name (if applicable)Data type (e.g., "float", "double", "int", "char")com.google.protobuf.ByteStringData type (e.g., "float", "double", "int", "char")static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetDimensionNames(int index) Dimensions used by this variablecom.google.protobuf.ByteStringgetDimensionNamesBytes(int index) Dimensions used by this variableintDimensions used by this variablecom.google.protobuf.ProtocolStringListDimensions used by this variableLong descriptive namecom.google.protobuf.ByteStringLong descriptive namegetName()Variable nameFull name and dimensions (e.g., "float temp(time, lat, lon)")com.google.protobuf.ByteStringFull name and dimensions (e.g., "float temp(time, lat, lon)")com.google.protobuf.ByteStringVariable namegetUnits()Units of measurementcom.google.protobuf.ByteStringUnits of measurementValid range for the variableValid range for the variableValid range for the variablebooleanCF standard name (if applicable)booleanLong descriptive namebooleanFull name and dimensions (e.g., "float temp(time, lat, lon)")booleanhasUnits()Units of measurementbooleanValid range for the variableprotected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(NetcdfVariable other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeValidRange(NetcdfRange value) Valid range for the variableremoveAttributes(int index) Variable attributessetAttributes(int index, NetcdfAttribute value) Variable attributessetAttributes(int index, NetcdfAttribute.Builder builderForValue) Variable attributessetCfStandardName(String value) CF standard name (if applicable)setCfStandardNameBytes(com.google.protobuf.ByteString value) CF standard name (if applicable)setDataType(String value) Data type (e.g., "float", "double", "int", "char")setDataTypeBytes(com.google.protobuf.ByteString value) Data type (e.g., "float", "double", "int", "char")setDimensionNames(int index, String value) Dimensions used by this variablesetLongName(String value) Long descriptive namesetLongNameBytes(com.google.protobuf.ByteString value) Long descriptive nameVariable namesetNameAndDimensions(String value) Full name and dimensions (e.g., "float temp(time, lat, lon)")setNameAndDimensionsBytes(com.google.protobuf.ByteString value) Full name and dimensions (e.g., "float temp(time, lat, lon)")setNameBytes(com.google.protobuf.ByteString value) Variable nameUnits of measurementsetUnitsBytes(com.google.protobuf.ByteString value) Units of measurementsetValidRange(NetcdfRange value) Valid range for the variablesetValidRange(NetcdfRange.Builder builderForValue) Valid range for the variableMethods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<NetcdfVariable.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<NetcdfVariable.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.GeneratedMessage.Builder<NetcdfVariable.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NetcdfVariable.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<NetcdfVariable.Builder>
-
mergeFrom
public NetcdfVariable.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<NetcdfVariable.Builder>- Throws:
IOException
-
getName
Variable name
string name = 1 [json_name = "name"];- Specified by:
getNamein interfaceNetcdfVariableOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Variable name
string name = 1 [json_name = "name"];- Specified by:
getNameBytesin interfaceNetcdfVariableOrBuilder- Returns:
- The bytes for name.
-
setName
Variable name
string name = 1 [json_name = "name"];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Variable name
string name = 1 [json_name = "name"];- Returns:
- This builder for chaining.
-
setNameBytes
Variable name
string name = 1 [json_name = "name"];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDataType
Data type (e.g., "float", "double", "int", "char")
string data_type = 2 [json_name = "dataType"];- Specified by:
getDataTypein interfaceNetcdfVariableOrBuilder- Returns:
- The dataType.
-
getDataTypeBytes
public com.google.protobuf.ByteString getDataTypeBytes()Data type (e.g., "float", "double", "int", "char")
string data_type = 2 [json_name = "dataType"];- Specified by:
getDataTypeBytesin interfaceNetcdfVariableOrBuilder- Returns:
- The bytes for dataType.
-
setDataType
Data type (e.g., "float", "double", "int", "char")
string data_type = 2 [json_name = "dataType"];- Parameters:
value- The dataType to set.- Returns:
- This builder for chaining.
-
clearDataType
Data type (e.g., "float", "double", "int", "char")
string data_type = 2 [json_name = "dataType"];- Returns:
- This builder for chaining.
-
setDataTypeBytes
Data type (e.g., "float", "double", "int", "char")
string data_type = 2 [json_name = "dataType"];- Parameters:
value- The bytes for dataType to set.- Returns:
- This builder for chaining.
-
getDimensionNamesList
public com.google.protobuf.ProtocolStringList getDimensionNamesList()Dimensions used by this variable
repeated string dimension_names = 3 [json_name = "dimensionNames"];- Specified by:
getDimensionNamesListin interfaceNetcdfVariableOrBuilder- Returns:
- A list containing the dimensionNames.
-
getDimensionNamesCount
public int getDimensionNamesCount()Dimensions used by this variable
repeated string dimension_names = 3 [json_name = "dimensionNames"];- Specified by:
getDimensionNamesCountin interfaceNetcdfVariableOrBuilder- Returns:
- The count of dimensionNames.
-
getDimensionNames
Dimensions used by this variable
repeated string dimension_names = 3 [json_name = "dimensionNames"];- Specified by:
getDimensionNamesin interfaceNetcdfVariableOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The dimensionNames at the given index.
-
getDimensionNamesBytes
public com.google.protobuf.ByteString getDimensionNamesBytes(int index) Dimensions used by this variable
repeated string dimension_names = 3 [json_name = "dimensionNames"];- Specified by:
getDimensionNamesBytesin interfaceNetcdfVariableOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the dimensionNames at the given index.
-
setDimensionNames
Dimensions used by this variable
repeated string dimension_names = 3 [json_name = "dimensionNames"];- Parameters:
index- The index to set the value at.value- The dimensionNames to set.- Returns:
- This builder for chaining.
-
addDimensionNames
Dimensions used by this variable
repeated string dimension_names = 3 [json_name = "dimensionNames"];- Parameters:
value- The dimensionNames to add.- Returns:
- This builder for chaining.
-
addAllDimensionNames
Dimensions used by this variable
repeated string dimension_names = 3 [json_name = "dimensionNames"];- Parameters:
values- The dimensionNames to add.- Returns:
- This builder for chaining.
-
clearDimensionNames
Dimensions used by this variable
repeated string dimension_names = 3 [json_name = "dimensionNames"];- Returns:
- This builder for chaining.
-
addDimensionNamesBytes
Dimensions used by this variable
repeated string dimension_names = 3 [json_name = "dimensionNames"];- Parameters:
value- The bytes of the dimensionNames to add.- Returns:
- This builder for chaining.
-
getAttributesList
Variable attributes
repeated .ai.pipestream.parsed.data.climate.v1.NetcdfAttribute attributes = 4 [json_name = "attributes"];- Specified by:
getAttributesListin interfaceNetcdfVariableOrBuilder
-
getAttributesCount
public int getAttributesCount()Variable attributes
repeated .ai.pipestream.parsed.data.climate.v1.NetcdfAttribute attributes = 4 [json_name = "attributes"];- Specified by:
getAttributesCountin interfaceNetcdfVariableOrBuilder
-
getAttributes
Variable attributes
repeated .ai.pipestream.parsed.data.climate.v1.NetcdfAttribute attributes = 4 [json_name = "attributes"];- Specified by:
getAttributesin interfaceNetcdfVariableOrBuilder
-
setAttributes
Variable attributes
repeated .ai.pipestream.parsed.data.climate.v1.NetcdfAttribute attributes = 4 [json_name = "attributes"]; -
setAttributes
Variable attributes
repeated .ai.pipestream.parsed.data.climate.v1.NetcdfAttribute attributes = 4 [json_name = "attributes"]; -
addAttributes
Variable attributes
repeated .ai.pipestream.parsed.data.climate.v1.NetcdfAttribute attributes = 4 [json_name = "attributes"]; -
addAttributes
Variable attributes
repeated .ai.pipestream.parsed.data.climate.v1.NetcdfAttribute attributes = 4 [json_name = "attributes"]; -
addAttributes
Variable attributes
repeated .ai.pipestream.parsed.data.climate.v1.NetcdfAttribute attributes = 4 [json_name = "attributes"]; -
addAttributes
Variable attributes
repeated .ai.pipestream.parsed.data.climate.v1.NetcdfAttribute attributes = 4 [json_name = "attributes"]; -
addAllAttributes
Variable attributes
repeated .ai.pipestream.parsed.data.climate.v1.NetcdfAttribute attributes = 4 [json_name = "attributes"]; -
clearAttributes
Variable attributes
repeated .ai.pipestream.parsed.data.climate.v1.NetcdfAttribute attributes = 4 [json_name = "attributes"]; -
removeAttributes
Variable attributes
repeated .ai.pipestream.parsed.data.climate.v1.NetcdfAttribute attributes = 4 [json_name = "attributes"]; -
getAttributesBuilder
Variable attributes
repeated .ai.pipestream.parsed.data.climate.v1.NetcdfAttribute attributes = 4 [json_name = "attributes"]; -
getAttributesOrBuilder
Variable attributes
repeated .ai.pipestream.parsed.data.climate.v1.NetcdfAttribute attributes = 4 [json_name = "attributes"];- Specified by:
getAttributesOrBuilderin interfaceNetcdfVariableOrBuilder
-
getAttributesOrBuilderList
Variable attributes
repeated .ai.pipestream.parsed.data.climate.v1.NetcdfAttribute attributes = 4 [json_name = "attributes"];- Specified by:
getAttributesOrBuilderListin interfaceNetcdfVariableOrBuilder
-
addAttributesBuilder
Variable attributes
repeated .ai.pipestream.parsed.data.climate.v1.NetcdfAttribute attributes = 4 [json_name = "attributes"]; -
addAttributesBuilder
Variable attributes
repeated .ai.pipestream.parsed.data.climate.v1.NetcdfAttribute attributes = 4 [json_name = "attributes"]; -
getAttributesBuilderList
Variable attributes
repeated .ai.pipestream.parsed.data.climate.v1.NetcdfAttribute attributes = 4 [json_name = "attributes"]; -
hasNameAndDimensions
public boolean hasNameAndDimensions()Full name and dimensions (e.g., "float temp(time, lat, lon)")
optional string name_and_dimensions = 5 [json_name = "nameAndDimensions"];- Specified by:
hasNameAndDimensionsin interfaceNetcdfVariableOrBuilder- Returns:
- Whether the nameAndDimensions field is set.
-
getNameAndDimensions
Full name and dimensions (e.g., "float temp(time, lat, lon)")
optional string name_and_dimensions = 5 [json_name = "nameAndDimensions"];- Specified by:
getNameAndDimensionsin interfaceNetcdfVariableOrBuilder- Returns:
- The nameAndDimensions.
-
getNameAndDimensionsBytes
public com.google.protobuf.ByteString getNameAndDimensionsBytes()Full name and dimensions (e.g., "float temp(time, lat, lon)")
optional string name_and_dimensions = 5 [json_name = "nameAndDimensions"];- Specified by:
getNameAndDimensionsBytesin interfaceNetcdfVariableOrBuilder- Returns:
- The bytes for nameAndDimensions.
-
setNameAndDimensions
Full name and dimensions (e.g., "float temp(time, lat, lon)")
optional string name_and_dimensions = 5 [json_name = "nameAndDimensions"];- Parameters:
value- The nameAndDimensions to set.- Returns:
- This builder for chaining.
-
clearNameAndDimensions
Full name and dimensions (e.g., "float temp(time, lat, lon)")
optional string name_and_dimensions = 5 [json_name = "nameAndDimensions"];- Returns:
- This builder for chaining.
-
setNameAndDimensionsBytes
Full name and dimensions (e.g., "float temp(time, lat, lon)")
optional string name_and_dimensions = 5 [json_name = "nameAndDimensions"];- Parameters:
value- The bytes for nameAndDimensions to set.- Returns:
- This builder for chaining.
-
hasCfStandardName
public boolean hasCfStandardName()CF standard name (if applicable)
optional string cf_standard_name = 6 [json_name = "cfStandardName"];- Specified by:
hasCfStandardNamein interfaceNetcdfVariableOrBuilder- Returns:
- Whether the cfStandardName field is set.
-
getCfStandardName
CF standard name (if applicable)
optional string cf_standard_name = 6 [json_name = "cfStandardName"];- Specified by:
getCfStandardNamein interfaceNetcdfVariableOrBuilder- Returns:
- The cfStandardName.
-
getCfStandardNameBytes
public com.google.protobuf.ByteString getCfStandardNameBytes()CF standard name (if applicable)
optional string cf_standard_name = 6 [json_name = "cfStandardName"];- Specified by:
getCfStandardNameBytesin interfaceNetcdfVariableOrBuilder- Returns:
- The bytes for cfStandardName.
-
setCfStandardName
CF standard name (if applicable)
optional string cf_standard_name = 6 [json_name = "cfStandardName"];- Parameters:
value- The cfStandardName to set.- Returns:
- This builder for chaining.
-
clearCfStandardName
CF standard name (if applicable)
optional string cf_standard_name = 6 [json_name = "cfStandardName"];- Returns:
- This builder for chaining.
-
setCfStandardNameBytes
CF standard name (if applicable)
optional string cf_standard_name = 6 [json_name = "cfStandardName"];- Parameters:
value- The bytes for cfStandardName to set.- Returns:
- This builder for chaining.
-
hasLongName
public boolean hasLongName()Long descriptive name
optional string long_name = 7 [json_name = "longName"];- Specified by:
hasLongNamein interfaceNetcdfVariableOrBuilder- Returns:
- Whether the longName field is set.
-
getLongName
Long descriptive name
optional string long_name = 7 [json_name = "longName"];- Specified by:
getLongNamein interfaceNetcdfVariableOrBuilder- Returns:
- The longName.
-
getLongNameBytes
public com.google.protobuf.ByteString getLongNameBytes()Long descriptive name
optional string long_name = 7 [json_name = "longName"];- Specified by:
getLongNameBytesin interfaceNetcdfVariableOrBuilder- Returns:
- The bytes for longName.
-
setLongName
Long descriptive name
optional string long_name = 7 [json_name = "longName"];- Parameters:
value- The longName to set.- Returns:
- This builder for chaining.
-
clearLongName
Long descriptive name
optional string long_name = 7 [json_name = "longName"];- Returns:
- This builder for chaining.
-
setLongNameBytes
Long descriptive name
optional string long_name = 7 [json_name = "longName"];- Parameters:
value- The bytes for longName to set.- Returns:
- This builder for chaining.
-
hasUnits
public boolean hasUnits()Units of measurement
optional string units = 8 [json_name = "units"];- Specified by:
hasUnitsin interfaceNetcdfVariableOrBuilder- Returns:
- Whether the units field is set.
-
getUnits
Units of measurement
optional string units = 8 [json_name = "units"];- Specified by:
getUnitsin interfaceNetcdfVariableOrBuilder- Returns:
- The units.
-
getUnitsBytes
public com.google.protobuf.ByteString getUnitsBytes()Units of measurement
optional string units = 8 [json_name = "units"];- Specified by:
getUnitsBytesin interfaceNetcdfVariableOrBuilder- Returns:
- The bytes for units.
-
setUnits
Units of measurement
optional string units = 8 [json_name = "units"];- Parameters:
value- The units to set.- Returns:
- This builder for chaining.
-
clearUnits
Units of measurement
optional string units = 8 [json_name = "units"];- Returns:
- This builder for chaining.
-
setUnitsBytes
Units of measurement
optional string units = 8 [json_name = "units"];- Parameters:
value- The bytes for units to set.- Returns:
- This builder for chaining.
-
hasValidRange
public boolean hasValidRange()Valid range for the variable
optional .ai.pipestream.parsed.data.climate.v1.NetcdfRange valid_range = 9 [json_name = "validRange"];- Specified by:
hasValidRangein interfaceNetcdfVariableOrBuilder- Returns:
- Whether the validRange field is set.
-
getValidRange
Valid range for the variable
optional .ai.pipestream.parsed.data.climate.v1.NetcdfRange valid_range = 9 [json_name = "validRange"];- Specified by:
getValidRangein interfaceNetcdfVariableOrBuilder- Returns:
- The validRange.
-
setValidRange
Valid range for the variable
optional .ai.pipestream.parsed.data.climate.v1.NetcdfRange valid_range = 9 [json_name = "validRange"]; -
setValidRange
Valid range for the variable
optional .ai.pipestream.parsed.data.climate.v1.NetcdfRange valid_range = 9 [json_name = "validRange"]; -
mergeValidRange
Valid range for the variable
optional .ai.pipestream.parsed.data.climate.v1.NetcdfRange valid_range = 9 [json_name = "validRange"]; -
clearValidRange
Valid range for the variable
optional .ai.pipestream.parsed.data.climate.v1.NetcdfRange valid_range = 9 [json_name = "validRange"]; -
getValidRangeBuilder
Valid range for the variable
optional .ai.pipestream.parsed.data.climate.v1.NetcdfRange valid_range = 9 [json_name = "validRange"]; -
getValidRangeOrBuilder
Valid range for the variable
optional .ai.pipestream.parsed.data.climate.v1.NetcdfRange valid_range = 9 [json_name = "validRange"];- Specified by:
getValidRangeOrBuilderin interfaceNetcdfVariableOrBuilder
-