Package ucar.nc2.grib.collection
Class GribCollectionProto.SparseArray.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<GribCollectionProto.SparseArray.Builder>
-
- ucar.nc2.grib.collection.GribCollectionProto.SparseArray.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,GribCollectionProto.SparseArrayOrBuilder
- Enclosing class:
- GribCollectionProto.SparseArray
public static final class GribCollectionProto.SparseArray.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GribCollectionProto.SparseArray.Builder> implements GribCollectionProto.SparseArrayOrBuilder
SparseArray only at the GCs (MRC and SRC) not at the Partitions dont need SparseArray in memory until someone wants to read from the variable
Protobuf typeSparseArray
-
-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<GribCollectionProto.SparseArray.Builder>
-
clear
public GribCollectionProto.SparseArray.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.SparseArray.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.SparseArray.Builder>
-
getDefaultInstanceForType
public GribCollectionProto.SparseArray getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public GribCollectionProto.SparseArray build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GribCollectionProto.SparseArray buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public GribCollectionProto.SparseArray.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.SparseArray.Builder>
-
mergeFrom
public GribCollectionProto.SparseArray.Builder mergeFrom(GribCollectionProto.SparseArray other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<GribCollectionProto.SparseArray.Builder>
-
mergeFrom
public GribCollectionProto.SparseArray.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.SparseArray.Builder>
- Throws:
IOException
-
getSizeList
public List<Integer> getSizeList()
multidim sizes = shape[]
repeated uint32 size = 2 [packed = true];
- Specified by:
getSizeList
in interfaceGribCollectionProto.SparseArrayOrBuilder
- Returns:
- A list containing the size.
-
getSizeCount
public int getSizeCount()
multidim sizes = shape[]
repeated uint32 size = 2 [packed = true];
- Specified by:
getSizeCount
in interfaceGribCollectionProto.SparseArrayOrBuilder
- Returns:
- The count of size.
-
getSize
public int getSize(int index)
multidim sizes = shape[]
repeated uint32 size = 2 [packed = true];
- Specified by:
getSize
in interfaceGribCollectionProto.SparseArrayOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The size at the given index.
-
setSize
public GribCollectionProto.SparseArray.Builder setSize(int index, int value)
multidim sizes = shape[]
repeated uint32 size = 2 [packed = true];
- Parameters:
index
- The index to set the value at.value
- The size to set.- Returns:
- This builder for chaining.
-
addSize
public GribCollectionProto.SparseArray.Builder addSize(int value)
multidim sizes = shape[]
repeated uint32 size = 2 [packed = true];
- Parameters:
value
- The size to add.- Returns:
- This builder for chaining.
-
addAllSize
public GribCollectionProto.SparseArray.Builder addAllSize(Iterable<? extends Integer> values)
multidim sizes = shape[]
repeated uint32 size = 2 [packed = true];
- Parameters:
values
- The size to add.- Returns:
- This builder for chaining.
-
clearSize
public GribCollectionProto.SparseArray.Builder clearSize()
multidim sizes = shape[]
repeated uint32 size = 2 [packed = true];
- Returns:
- This builder for chaining.
-
getTrackList
public List<Integer> getTrackList()
1-based index into record list, 0 == missing
repeated uint32 track = 3 [packed = true];
- Specified by:
getTrackList
in interfaceGribCollectionProto.SparseArrayOrBuilder
- Returns:
- A list containing the track.
-
getTrackCount
public int getTrackCount()
1-based index into record list, 0 == missing
repeated uint32 track = 3 [packed = true];
- Specified by:
getTrackCount
in interfaceGribCollectionProto.SparseArrayOrBuilder
- Returns:
- The count of track.
-
getTrack
public int getTrack(int index)
1-based index into record list, 0 == missing
repeated uint32 track = 3 [packed = true];
- Specified by:
getTrack
in interfaceGribCollectionProto.SparseArrayOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The track at the given index.
-
setTrack
public GribCollectionProto.SparseArray.Builder setTrack(int index, int value)
1-based index into record list, 0 == missing
repeated uint32 track = 3 [packed = true];
- Parameters:
index
- The index to set the value at.value
- The track to set.- Returns:
- This builder for chaining.
-
addTrack
public GribCollectionProto.SparseArray.Builder addTrack(int value)
1-based index into record list, 0 == missing
repeated uint32 track = 3 [packed = true];
- Parameters:
value
- The track to add.- Returns:
- This builder for chaining.
-
addAllTrack
public GribCollectionProto.SparseArray.Builder addAllTrack(Iterable<? extends Integer> values)
1-based index into record list, 0 == missing
repeated uint32 track = 3 [packed = true];
- Parameters:
values
- The track to add.- Returns:
- This builder for chaining.
-
clearTrack
public GribCollectionProto.SparseArray.Builder clearTrack()
1-based index into record list, 0 == missing
repeated uint32 track = 3 [packed = true];
- Returns:
- This builder for chaining.
-
getRecordsList
public List<GribCollectionProto.Record> getRecordsList()
List<Record>
repeated .Record records = 4;
- Specified by:
getRecordsList
in interfaceGribCollectionProto.SparseArrayOrBuilder
-
getRecordsCount
public int getRecordsCount()
List<Record>
repeated .Record records = 4;
- Specified by:
getRecordsCount
in interfaceGribCollectionProto.SparseArrayOrBuilder
-
getRecords
public GribCollectionProto.Record getRecords(int index)
List<Record>
repeated .Record records = 4;
- Specified by:
getRecords
in interfaceGribCollectionProto.SparseArrayOrBuilder
-
setRecords
public GribCollectionProto.SparseArray.Builder setRecords(int index, GribCollectionProto.Record value)
List<Record>
repeated .Record records = 4;
-
setRecords
public GribCollectionProto.SparseArray.Builder setRecords(int index, GribCollectionProto.Record.Builder builderForValue)
List<Record>
repeated .Record records = 4;
-
addRecords
public GribCollectionProto.SparseArray.Builder addRecords(GribCollectionProto.Record value)
List<Record>
repeated .Record records = 4;
-
addRecords
public GribCollectionProto.SparseArray.Builder addRecords(int index, GribCollectionProto.Record value)
List<Record>
repeated .Record records = 4;
-
addRecords
public GribCollectionProto.SparseArray.Builder addRecords(GribCollectionProto.Record.Builder builderForValue)
List<Record>
repeated .Record records = 4;
-
addRecords
public GribCollectionProto.SparseArray.Builder addRecords(int index, GribCollectionProto.Record.Builder builderForValue)
List<Record>
repeated .Record records = 4;
-
addAllRecords
public GribCollectionProto.SparseArray.Builder addAllRecords(Iterable<? extends GribCollectionProto.Record> values)
List<Record>
repeated .Record records = 4;
-
clearRecords
public GribCollectionProto.SparseArray.Builder clearRecords()
List<Record>
repeated .Record records = 4;
-
removeRecords
public GribCollectionProto.SparseArray.Builder removeRecords(int index)
List<Record>
repeated .Record records = 4;
-
getRecordsBuilder
public GribCollectionProto.Record.Builder getRecordsBuilder(int index)
List<Record>
repeated .Record records = 4;
-
getRecordsOrBuilder
public GribCollectionProto.RecordOrBuilder getRecordsOrBuilder(int index)
List<Record>
repeated .Record records = 4;
- Specified by:
getRecordsOrBuilder
in interfaceGribCollectionProto.SparseArrayOrBuilder
-
getRecordsOrBuilderList
public List<? extends GribCollectionProto.RecordOrBuilder> getRecordsOrBuilderList()
List<Record>
repeated .Record records = 4;
- Specified by:
getRecordsOrBuilderList
in interfaceGribCollectionProto.SparseArrayOrBuilder
-
addRecordsBuilder
public GribCollectionProto.Record.Builder addRecordsBuilder()
List<Record>
repeated .Record records = 4;
-
addRecordsBuilder
public GribCollectionProto.Record.Builder addRecordsBuilder(int index)
List<Record>
repeated .Record records = 4;
-
getRecordsBuilderList
public List<GribCollectionProto.Record.Builder> getRecordsBuilderList()
List<Record>
repeated .Record records = 4;
-
getNdups
public int getNdups()
duplicates found when creating
uint32 ndups = 5;
- Specified by:
getNdups
in interfaceGribCollectionProto.SparseArrayOrBuilder
- Returns:
- The ndups.
-
setNdups
public GribCollectionProto.SparseArray.Builder setNdups(int value)
duplicates found when creating
uint32 ndups = 5;
- Parameters:
value
- The ndups to set.- Returns:
- This builder for chaining.
-
clearNdups
public GribCollectionProto.SparseArray.Builder clearNdups()
duplicates found when creating
uint32 ndups = 5;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final GribCollectionProto.SparseArray.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.SparseArray.Builder>
-
mergeUnknownFields
public final GribCollectionProto.SparseArray.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.SparseArray.Builder>
-
-