Package ucar.nc2.stream
Interface NcStreamProto.AttributeOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
NcStreamProto.Attribute
,NcStreamProto.Attribute.Builder
- Enclosing class:
- NcStreamProto
public static interface NcStreamProto.AttributeOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.google.protobuf.ByteString
getData()
not needed if len == 0, Attribute with name but no valueNcStreamProto.DataType
getDataType()
5.0: cant use STRUCTURE or SEQUENCE or OPAQUE or ENUM; CHAR deprecated, use STRINGint
getDataTypeValue()
5.0: cant use STRUCTURE or SEQUENCE or OPAQUE or ENUM; CHAR deprecated, use STRINGint
getLen()
uint32 len = 3;
String
getName()
string name = 1;
com.google.protobuf.ByteString
getNameBytes()
string name = 1;
String
getSdata(int index)
used for string datacom.google.protobuf.ByteString
getSdataBytes(int index)
used for string dataint
getSdataCount()
used for string dataList<String>
getSdataList()
used for string dataNcStreamProto.Attribute.Type
getType()
< 5.0int
getTypeValue()
< 5.0boolean
getUnsigned()
not used-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getName
String getName()
string name = 1;
- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
string name = 1;
- Returns:
- The bytes for name.
-
getTypeValue
int getTypeValue()
< 5.0
.Attribute.Type type = 2;
- Returns:
- The enum numeric value on the wire for type.
-
getType
NcStreamProto.Attribute.Type getType()
< 5.0
.Attribute.Type type = 2;
- Returns:
- The type.
-
getLen
int getLen()
uint32 len = 3;
- Returns:
- The len.
-
getData
com.google.protobuf.ByteString getData()
not needed if len == 0, Attribute with name but no value
bytes data = 4;
- Returns:
- The data.
-
getSdataList
List<String> getSdataList()
used for string data
repeated string sdata = 5;
- Returns:
- A list containing the sdata.
-
getSdataCount
int getSdataCount()
used for string data
repeated string sdata = 5;
- Returns:
- The count of sdata.
-
getSdata
String getSdata(int index)
used for string data
repeated string sdata = 5;
- Parameters:
index
- The index of the element to return.- Returns:
- The sdata at the given index.
-
getSdataBytes
com.google.protobuf.ByteString getSdataBytes(int index)
used for string data
repeated string sdata = 5;
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the sdata at the given index.
-
getUnsigned
boolean getUnsigned()
not used
bool unsigned = 6;
- Returns:
- The unsigned.
-
getDataTypeValue
int getDataTypeValue()
5.0: cant use STRUCTURE or SEQUENCE or OPAQUE or ENUM; CHAR deprecated, use STRING
.DataType dataType = 7;
- Returns:
- The enum numeric value on the wire for dataType.
-
getDataType
NcStreamProto.DataType getDataType()
5.0: cant use STRUCTURE or SEQUENCE or OPAQUE or ENUM; CHAR deprecated, use STRING
.DataType dataType = 7;
- Returns:
- The dataType.
-
-