Class Gnmi.ScalarArray.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.ScalarArray.Builder>
-
- org.opennms.features.openconfig.proto.gnmi.Gnmi.ScalarArray.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
,Gnmi.ScalarArrayOrBuilder
- Enclosing class:
- Gnmi.ScalarArray
public static final class Gnmi.ScalarArray.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.ScalarArray.Builder> implements Gnmi.ScalarArrayOrBuilder
ScalarArray is used to encode a mixed-type array of values.
Protobuf typegnmi.ScalarArray
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Gnmi.ScalarArray.Builder
addAllElement(java.lang.Iterable<? extends Gnmi.TypedValue> values)
The set of elements within the array.Gnmi.ScalarArray.Builder
addElement(int index, Gnmi.TypedValue value)
The set of elements within the array.Gnmi.ScalarArray.Builder
addElement(int index, Gnmi.TypedValue.Builder builderForValue)
The set of elements within the array.Gnmi.ScalarArray.Builder
addElement(Gnmi.TypedValue value)
The set of elements within the array.Gnmi.ScalarArray.Builder
addElement(Gnmi.TypedValue.Builder builderForValue)
The set of elements within the array.Gnmi.TypedValue.Builder
addElementBuilder()
The set of elements within the array.Gnmi.TypedValue.Builder
addElementBuilder(int index)
The set of elements within the array.Gnmi.ScalarArray.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Gnmi.ScalarArray
build()
Gnmi.ScalarArray
buildPartial()
Gnmi.ScalarArray.Builder
clear()
Gnmi.ScalarArray.Builder
clearElement()
The set of elements within the array.Gnmi.ScalarArray.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Gnmi.ScalarArray.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Gnmi.ScalarArray.Builder
clone()
Gnmi.ScalarArray
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Gnmi.TypedValue
getElement(int index)
The set of elements within the array.Gnmi.TypedValue.Builder
getElementBuilder(int index)
The set of elements within the array.java.util.List<Gnmi.TypedValue.Builder>
getElementBuilderList()
The set of elements within the array.int
getElementCount()
The set of elements within the array.java.util.List<Gnmi.TypedValue>
getElementList()
The set of elements within the array.Gnmi.TypedValueOrBuilder
getElementOrBuilder(int index)
The set of elements within the array.java.util.List<? extends Gnmi.TypedValueOrBuilder>
getElementOrBuilderList()
The set of elements within the array.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Gnmi.ScalarArray.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Gnmi.ScalarArray.Builder
mergeFrom(com.google.protobuf.Message other)
Gnmi.ScalarArray.Builder
mergeFrom(Gnmi.ScalarArray other)
Gnmi.ScalarArray.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Gnmi.ScalarArray.Builder
removeElement(int index)
The set of elements within the array.Gnmi.ScalarArray.Builder
setElement(int index, Gnmi.TypedValue value)
The set of elements within the array.Gnmi.ScalarArray.Builder
setElement(int index, Gnmi.TypedValue.Builder builderForValue)
The set of elements within the array.Gnmi.ScalarArray.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Gnmi.ScalarArray.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Gnmi.ScalarArray.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
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<Gnmi.ScalarArray.Builder>
-
clear
public Gnmi.ScalarArray.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<Gnmi.ScalarArray.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<Gnmi.ScalarArray.Builder>
-
getDefaultInstanceForType
public Gnmi.ScalarArray getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Gnmi.ScalarArray build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Gnmi.ScalarArray buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Gnmi.ScalarArray.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.ScalarArray.Builder>
-
setField
public Gnmi.ScalarArray.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.ScalarArray.Builder>
-
clearField
public Gnmi.ScalarArray.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.ScalarArray.Builder>
-
clearOneof
public Gnmi.ScalarArray.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.ScalarArray.Builder>
-
setRepeatedField
public Gnmi.ScalarArray.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.ScalarArray.Builder>
-
addRepeatedField
public Gnmi.ScalarArray.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.ScalarArray.Builder>
-
mergeFrom
public Gnmi.ScalarArray.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Gnmi.ScalarArray.Builder>
-
mergeFrom
public Gnmi.ScalarArray.Builder mergeFrom(Gnmi.ScalarArray other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.ScalarArray.Builder>
-
mergeFrom
public Gnmi.ScalarArray.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.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<Gnmi.ScalarArray.Builder>
- Throws:
java.io.IOException
-
getElementList
public java.util.List<Gnmi.TypedValue> getElementList()
The set of elements within the array. Each TypedValue message should specify only elements that have a field identifier of 1-7 (i.e., the values are scalar values).
repeated .gnmi.TypedValue element = 1;
- Specified by:
getElementList
in interfaceGnmi.ScalarArrayOrBuilder
-
getElementCount
public int getElementCount()
The set of elements within the array. Each TypedValue message should specify only elements that have a field identifier of 1-7 (i.e., the values are scalar values).
repeated .gnmi.TypedValue element = 1;
- Specified by:
getElementCount
in interfaceGnmi.ScalarArrayOrBuilder
-
getElement
public Gnmi.TypedValue getElement(int index)
The set of elements within the array. Each TypedValue message should specify only elements that have a field identifier of 1-7 (i.e., the values are scalar values).
repeated .gnmi.TypedValue element = 1;
- Specified by:
getElement
in interfaceGnmi.ScalarArrayOrBuilder
-
setElement
public Gnmi.ScalarArray.Builder setElement(int index, Gnmi.TypedValue value)
The set of elements within the array. Each TypedValue message should specify only elements that have a field identifier of 1-7 (i.e., the values are scalar values).
repeated .gnmi.TypedValue element = 1;
-
setElement
public Gnmi.ScalarArray.Builder setElement(int index, Gnmi.TypedValue.Builder builderForValue)
The set of elements within the array. Each TypedValue message should specify only elements that have a field identifier of 1-7 (i.e., the values are scalar values).
repeated .gnmi.TypedValue element = 1;
-
addElement
public Gnmi.ScalarArray.Builder addElement(Gnmi.TypedValue value)
The set of elements within the array. Each TypedValue message should specify only elements that have a field identifier of 1-7 (i.e., the values are scalar values).
repeated .gnmi.TypedValue element = 1;
-
addElement
public Gnmi.ScalarArray.Builder addElement(int index, Gnmi.TypedValue value)
The set of elements within the array. Each TypedValue message should specify only elements that have a field identifier of 1-7 (i.e., the values are scalar values).
repeated .gnmi.TypedValue element = 1;
-
addElement
public Gnmi.ScalarArray.Builder addElement(Gnmi.TypedValue.Builder builderForValue)
The set of elements within the array. Each TypedValue message should specify only elements that have a field identifier of 1-7 (i.e., the values are scalar values).
repeated .gnmi.TypedValue element = 1;
-
addElement
public Gnmi.ScalarArray.Builder addElement(int index, Gnmi.TypedValue.Builder builderForValue)
The set of elements within the array. Each TypedValue message should specify only elements that have a field identifier of 1-7 (i.e., the values are scalar values).
repeated .gnmi.TypedValue element = 1;
-
addAllElement
public Gnmi.ScalarArray.Builder addAllElement(java.lang.Iterable<? extends Gnmi.TypedValue> values)
The set of elements within the array. Each TypedValue message should specify only elements that have a field identifier of 1-7 (i.e., the values are scalar values).
repeated .gnmi.TypedValue element = 1;
-
clearElement
public Gnmi.ScalarArray.Builder clearElement()
The set of elements within the array. Each TypedValue message should specify only elements that have a field identifier of 1-7 (i.e., the values are scalar values).
repeated .gnmi.TypedValue element = 1;
-
removeElement
public Gnmi.ScalarArray.Builder removeElement(int index)
The set of elements within the array. Each TypedValue message should specify only elements that have a field identifier of 1-7 (i.e., the values are scalar values).
repeated .gnmi.TypedValue element = 1;
-
getElementBuilder
public Gnmi.TypedValue.Builder getElementBuilder(int index)
The set of elements within the array. Each TypedValue message should specify only elements that have a field identifier of 1-7 (i.e., the values are scalar values).
repeated .gnmi.TypedValue element = 1;
-
getElementOrBuilder
public Gnmi.TypedValueOrBuilder getElementOrBuilder(int index)
The set of elements within the array. Each TypedValue message should specify only elements that have a field identifier of 1-7 (i.e., the values are scalar values).
repeated .gnmi.TypedValue element = 1;
- Specified by:
getElementOrBuilder
in interfaceGnmi.ScalarArrayOrBuilder
-
getElementOrBuilderList
public java.util.List<? extends Gnmi.TypedValueOrBuilder> getElementOrBuilderList()
The set of elements within the array. Each TypedValue message should specify only elements that have a field identifier of 1-7 (i.e., the values are scalar values).
repeated .gnmi.TypedValue element = 1;
- Specified by:
getElementOrBuilderList
in interfaceGnmi.ScalarArrayOrBuilder
-
addElementBuilder
public Gnmi.TypedValue.Builder addElementBuilder()
The set of elements within the array. Each TypedValue message should specify only elements that have a field identifier of 1-7 (i.e., the values are scalar values).
repeated .gnmi.TypedValue element = 1;
-
addElementBuilder
public Gnmi.TypedValue.Builder addElementBuilder(int index)
The set of elements within the array. Each TypedValue message should specify only elements that have a field identifier of 1-7 (i.e., the values are scalar values).
repeated .gnmi.TypedValue element = 1;
-
getElementBuilderList
public java.util.List<Gnmi.TypedValue.Builder> getElementBuilderList()
The set of elements within the array. Each TypedValue message should specify only elements that have a field identifier of 1-7 (i.e., the values are scalar values).
repeated .gnmi.TypedValue element = 1;
-
setUnknownFields
public final Gnmi.ScalarArray.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.ScalarArray.Builder>
-
mergeUnknownFields
public final Gnmi.ScalarArray.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.ScalarArray.Builder>
-
-