Package ucar.nc2.stream
Class NcStreamProto.StructureData.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<NcStreamProto.StructureData.Builder>
-
- ucar.nc2.stream.NcStreamProto.StructureData.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,NcStreamProto.StructureDataOrBuilder
- Enclosing class:
- NcStreamProto.StructureData
public static final class NcStreamProto.StructureData.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<NcStreamProto.StructureData.Builder> implements NcStreamProto.StructureDataOrBuilder
Protobuf typeStructureData
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NcStreamProto.StructureData.Builder
addAllHeapCount(Iterable<? extends Integer> values)
heap String countNcStreamProto.StructureData.Builder
addAllMember(Iterable<? extends Integer> values)
list of members present, if none then all, these are the index in StructureNcStreamProto.StructureData.Builder
addAllSdata(Iterable<String> values)
StringsNcStreamProto.StructureData.Builder
addHeapCount(int value)
heap String countNcStreamProto.StructureData.Builder
addMember(int value)
list of members present, if none then all, these are the index in StructureNcStreamProto.StructureData.Builder
addSdata(String value)
StringsNcStreamProto.StructureData.Builder
addSdataBytes(com.google.protobuf.ByteString value)
StringsNcStreamProto.StructureData
build()
NcStreamProto.StructureData
buildPartial()
NcStreamProto.StructureData.Builder
clear()
NcStreamProto.StructureData.Builder
clearData()
fixed length dataNcStreamProto.StructureData.Builder
clearHeapCount()
heap String countNcStreamProto.StructureData.Builder
clearMember()
list of members present, if none then all, these are the index in StructureNcStreamProto.StructureData.Builder
clearNrows()
[default = 1] number of rows in this messageNcStreamProto.StructureData.Builder
clearRowLength()
length in bytes of each rowNcStreamProto.StructureData.Builder
clearSdata()
Stringscom.google.protobuf.ByteString
getData()
fixed length dataNcStreamProto.StructureData
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
int
getHeapCount(int index)
heap String countint
getHeapCountCount()
heap String countList<Integer>
getHeapCountList()
heap String countint
getMember(int index)
list of members present, if none then all, these are the index in Structureint
getMemberCount()
list of members present, if none then all, these are the index in StructureList<Integer>
getMemberList()
list of members present, if none then all, these are the index in Structurelong
getNrows()
[default = 1] number of rows in this messageint
getRowLength()
length in bytes of each rowString
getSdata(int index)
Stringscom.google.protobuf.ByteString
getSdataBytes(int index)
Stringsint
getSdataCount()
Stringscom.google.protobuf.ProtocolStringList
getSdataList()
Stringsprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
NcStreamProto.StructureData.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
NcStreamProto.StructureData.Builder
mergeFrom(com.google.protobuf.Message other)
NcStreamProto.StructureData.Builder
mergeFrom(NcStreamProto.StructureData other)
NcStreamProto.StructureData.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
NcStreamProto.StructureData.Builder
setData(com.google.protobuf.ByteString value)
fixed length dataNcStreamProto.StructureData.Builder
setHeapCount(int index, int value)
heap String countNcStreamProto.StructureData.Builder
setMember(int index, int value)
list of members present, if none then all, these are the index in StructureNcStreamProto.StructureData.Builder
setNrows(long value)
[default = 1] number of rows in this messageNcStreamProto.StructureData.Builder
setRowLength(int value)
length in bytes of each rowNcStreamProto.StructureData.Builder
setSdata(int index, String value)
StringsNcStreamProto.StructureData.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<NcStreamProto.StructureData.Builder>
-
clear
public NcStreamProto.StructureData.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<NcStreamProto.StructureData.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<NcStreamProto.StructureData.Builder>
-
getDefaultInstanceForType
public NcStreamProto.StructureData getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public NcStreamProto.StructureData build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public NcStreamProto.StructureData buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public NcStreamProto.StructureData.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<NcStreamProto.StructureData.Builder>
-
mergeFrom
public NcStreamProto.StructureData.Builder mergeFrom(NcStreamProto.StructureData other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<NcStreamProto.StructureData.Builder>
-
mergeFrom
public NcStreamProto.StructureData.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<NcStreamProto.StructureData.Builder>
- Throws:
IOException
-
getMemberList
public List<Integer> getMemberList()
list of members present, if none then all, these are the index in Structure
repeated uint32 member = 1;
- Specified by:
getMemberList
in interfaceNcStreamProto.StructureDataOrBuilder
- Returns:
- A list containing the member.
-
getMemberCount
public int getMemberCount()
list of members present, if none then all, these are the index in Structure
repeated uint32 member = 1;
- Specified by:
getMemberCount
in interfaceNcStreamProto.StructureDataOrBuilder
- Returns:
- The count of member.
-
getMember
public int getMember(int index)
list of members present, if none then all, these are the index in Structure
repeated uint32 member = 1;
- Specified by:
getMember
in interfaceNcStreamProto.StructureDataOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The member at the given index.
-
setMember
public NcStreamProto.StructureData.Builder setMember(int index, int value)
list of members present, if none then all, these are the index in Structure
repeated uint32 member = 1;
- Parameters:
index
- The index to set the value at.value
- The member to set.- Returns:
- This builder for chaining.
-
addMember
public NcStreamProto.StructureData.Builder addMember(int value)
list of members present, if none then all, these are the index in Structure
repeated uint32 member = 1;
- Parameters:
value
- The member to add.- Returns:
- This builder for chaining.
-
addAllMember
public NcStreamProto.StructureData.Builder addAllMember(Iterable<? extends Integer> values)
list of members present, if none then all, these are the index in Structure
repeated uint32 member = 1;
- Parameters:
values
- The member to add.- Returns:
- This builder for chaining.
-
clearMember
public NcStreamProto.StructureData.Builder clearMember()
list of members present, if none then all, these are the index in Structure
repeated uint32 member = 1;
- Returns:
- This builder for chaining.
-
getData
public com.google.protobuf.ByteString getData()
fixed length data
bytes data = 2;
- Specified by:
getData
in interfaceNcStreamProto.StructureDataOrBuilder
- Returns:
- The data.
-
setData
public NcStreamProto.StructureData.Builder setData(com.google.protobuf.ByteString value)
fixed length data
bytes data = 2;
- Parameters:
value
- The data to set.- Returns:
- This builder for chaining.
-
clearData
public NcStreamProto.StructureData.Builder clearData()
fixed length data
bytes data = 2;
- Returns:
- This builder for chaining.
-
getHeapCountList
public List<Integer> getHeapCountList()
heap String count
repeated uint32 heapCount = 3;
- Specified by:
getHeapCountList
in interfaceNcStreamProto.StructureDataOrBuilder
- Returns:
- A list containing the heapCount.
-
getHeapCountCount
public int getHeapCountCount()
heap String count
repeated uint32 heapCount = 3;
- Specified by:
getHeapCountCount
in interfaceNcStreamProto.StructureDataOrBuilder
- Returns:
- The count of heapCount.
-
getHeapCount
public int getHeapCount(int index)
heap String count
repeated uint32 heapCount = 3;
- Specified by:
getHeapCount
in interfaceNcStreamProto.StructureDataOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The heapCount at the given index.
-
setHeapCount
public NcStreamProto.StructureData.Builder setHeapCount(int index, int value)
heap String count
repeated uint32 heapCount = 3;
- Parameters:
index
- The index to set the value at.value
- The heapCount to set.- Returns:
- This builder for chaining.
-
addHeapCount
public NcStreamProto.StructureData.Builder addHeapCount(int value)
heap String count
repeated uint32 heapCount = 3;
- Parameters:
value
- The heapCount to add.- Returns:
- This builder for chaining.
-
addAllHeapCount
public NcStreamProto.StructureData.Builder addAllHeapCount(Iterable<? extends Integer> values)
heap String count
repeated uint32 heapCount = 3;
- Parameters:
values
- The heapCount to add.- Returns:
- This builder for chaining.
-
clearHeapCount
public NcStreamProto.StructureData.Builder clearHeapCount()
heap String count
repeated uint32 heapCount = 3;
- Returns:
- This builder for chaining.
-
getSdataList
public com.google.protobuf.ProtocolStringList getSdataList()
Strings
repeated string sdata = 4;
- Specified by:
getSdataList
in interfaceNcStreamProto.StructureDataOrBuilder
- Returns:
- A list containing the sdata.
-
getSdataCount
public int getSdataCount()
Strings
repeated string sdata = 4;
- Specified by:
getSdataCount
in interfaceNcStreamProto.StructureDataOrBuilder
- Returns:
- The count of sdata.
-
getSdata
public String getSdata(int index)
Strings
repeated string sdata = 4;
- Specified by:
getSdata
in interfaceNcStreamProto.StructureDataOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The sdata at the given index.
-
getSdataBytes
public com.google.protobuf.ByteString getSdataBytes(int index)
Strings
repeated string sdata = 4;
- Specified by:
getSdataBytes
in interfaceNcStreamProto.StructureDataOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the sdata at the given index.
-
setSdata
public NcStreamProto.StructureData.Builder setSdata(int index, String value)
Strings
repeated string sdata = 4;
- Parameters:
index
- The index to set the value at.value
- The sdata to set.- Returns:
- This builder for chaining.
-
addSdata
public NcStreamProto.StructureData.Builder addSdata(String value)
Strings
repeated string sdata = 4;
- Parameters:
value
- The sdata to add.- Returns:
- This builder for chaining.
-
addAllSdata
public NcStreamProto.StructureData.Builder addAllSdata(Iterable<String> values)
Strings
repeated string sdata = 4;
- Parameters:
values
- The sdata to add.- Returns:
- This builder for chaining.
-
clearSdata
public NcStreamProto.StructureData.Builder clearSdata()
Strings
repeated string sdata = 4;
- Returns:
- This builder for chaining.
-
addSdataBytes
public NcStreamProto.StructureData.Builder addSdataBytes(com.google.protobuf.ByteString value)
Strings
repeated string sdata = 4;
- Parameters:
value
- The bytes of the sdata to add.- Returns:
- This builder for chaining.
-
getNrows
public long getNrows()
[default = 1] number of rows in this message
uint64 nrows = 5;
- Specified by:
getNrows
in interfaceNcStreamProto.StructureDataOrBuilder
- Returns:
- The nrows.
-
setNrows
public NcStreamProto.StructureData.Builder setNrows(long value)
[default = 1] number of rows in this message
uint64 nrows = 5;
- Parameters:
value
- The nrows to set.- Returns:
- This builder for chaining.
-
clearNrows
public NcStreamProto.StructureData.Builder clearNrows()
[default = 1] number of rows in this message
uint64 nrows = 5;
- Returns:
- This builder for chaining.
-
getRowLength
public int getRowLength()
length in bytes of each row
uint32 rowLength = 6;
- Specified by:
getRowLength
in interfaceNcStreamProto.StructureDataOrBuilder
- Returns:
- The rowLength.
-
setRowLength
public NcStreamProto.StructureData.Builder setRowLength(int value)
length in bytes of each row
uint32 rowLength = 6;
- Parameters:
value
- The rowLength to set.- Returns:
- This builder for chaining.
-
clearRowLength
public NcStreamProto.StructureData.Builder clearRowLength()
length in bytes of each row
uint32 rowLength = 6;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final NcStreamProto.StructureData.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<NcStreamProto.StructureData.Builder>
-
mergeUnknownFields
public final NcStreamProto.StructureData.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<NcStreamProto.StructureData.Builder>
-
-