public static final class SparseValues.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SparseValues.Builder> implements SparseValuesOrBuilder
Vector sparse data. Represented as a list of indices and a list of corresponded values, which must be with the same length.Protobuf type
SparseValues| Modifier and Type | Method and Description |
|---|---|
SparseValues.Builder |
addAllIndices(java.lang.Iterable<? extends java.lang.Integer> values)
The indices of the sparse data.
|
SparseValues.Builder |
addAllValues(java.lang.Iterable<? extends java.lang.Float> values)
The corresponding values of the sparse data, which must be with the same length as the indices.
|
SparseValues.Builder |
addIndices(int value)
The indices of the sparse data.
|
SparseValues.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
SparseValues.Builder |
addValues(float value)
The corresponding values of the sparse data, which must be with the same length as the indices.
|
SparseValues |
build() |
SparseValues |
buildPartial() |
SparseValues.Builder |
clear() |
SparseValues.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
SparseValues.Builder |
clearIndices()
The indices of the sparse data.
|
SparseValues.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
SparseValues.Builder |
clearValues()
The corresponding values of the sparse data, which must be with the same length as the indices.
|
SparseValues.Builder |
clone() |
SparseValues |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getIndices(int index)
The indices of the sparse data.
|
int |
getIndicesCount()
The indices of the sparse data.
|
java.util.List<java.lang.Integer> |
getIndicesList()
The indices of the sparse data.
|
float |
getValues(int index)
The corresponding values of the sparse data, which must be with the same length as the indices.
|
int |
getValuesCount()
The corresponding values of the sparse data, which must be with the same length as the indices.
|
java.util.List<java.lang.Float> |
getValuesList()
The corresponding values of the sparse data, which must be with the same length as the indices.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SparseValues.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SparseValues.Builder |
mergeFrom(com.google.protobuf.Message other) |
SparseValues.Builder |
mergeFrom(SparseValues other) |
SparseValues.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SparseValues.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
SparseValues.Builder |
setIndices(int index,
int value)
The indices of the sparse data.
|
SparseValues.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
SparseValues.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SparseValues.Builder |
setValues(int index,
float value)
The corresponding values of the sparse data, which must be with the same length as the indices.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SparseValues.Builder>public SparseValues.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SparseValues.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SparseValues.Builder>public SparseValues getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SparseValues build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SparseValues buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SparseValues.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SparseValues.Builder>public SparseValues.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<SparseValues.Builder>public SparseValues.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SparseValues.Builder>public SparseValues.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SparseValues.Builder>public SparseValues.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SparseValues.Builder>public SparseValues.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SparseValues.Builder>public SparseValues.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SparseValues.Builder>public SparseValues.Builder mergeFrom(SparseValues other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SparseValues.Builder>public SparseValues.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SparseValues.Builder>java.io.IOExceptionpublic java.util.List<java.lang.Integer> getIndicesList()
The indices of the sparse data.
repeated uint32 indices = 1;getIndicesList in interface SparseValuesOrBuilderpublic int getIndicesCount()
The indices of the sparse data.
repeated uint32 indices = 1;getIndicesCount in interface SparseValuesOrBuilderpublic int getIndices(int index)
The indices of the sparse data.
repeated uint32 indices = 1;getIndices in interface SparseValuesOrBuilderindex - The index of the element to return.public SparseValues.Builder setIndices(int index, int value)
The indices of the sparse data.
repeated uint32 indices = 1;index - The index to set the value at.value - The indices to set.public SparseValues.Builder addIndices(int value)
The indices of the sparse data.
repeated uint32 indices = 1;value - The indices to add.public SparseValues.Builder addAllIndices(java.lang.Iterable<? extends java.lang.Integer> values)
The indices of the sparse data.
repeated uint32 indices = 1;values - The indices to add.public SparseValues.Builder clearIndices()
The indices of the sparse data.
repeated uint32 indices = 1;public java.util.List<java.lang.Float> getValuesList()
The corresponding values of the sparse data, which must be with the same length as the indices.
repeated float values = 2;getValuesList in interface SparseValuesOrBuilderpublic int getValuesCount()
The corresponding values of the sparse data, which must be with the same length as the indices.
repeated float values = 2;getValuesCount in interface SparseValuesOrBuilderpublic float getValues(int index)
The corresponding values of the sparse data, which must be with the same length as the indices.
repeated float values = 2;getValues in interface SparseValuesOrBuilderindex - The index of the element to return.public SparseValues.Builder setValues(int index, float value)
The corresponding values of the sparse data, which must be with the same length as the indices.
repeated float values = 2;index - The index to set the value at.value - The values to set.public SparseValues.Builder addValues(float value)
The corresponding values of the sparse data, which must be with the same length as the indices.
repeated float values = 2;value - The values to add.public SparseValues.Builder addAllValues(java.lang.Iterable<? extends java.lang.Float> values)
The corresponding values of the sparse data, which must be with the same length as the indices.
repeated float values = 2;values - The values to add.public SparseValues.Builder clearValues()
The corresponding values of the sparse data, which must be with the same length as the indices.
repeated float values = 2;public final SparseValues.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SparseValues.Builder>public final SparseValues.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SparseValues.Builder>