Class Gnmi.Value.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Value.Builder>
-
- org.opennms.features.openconfig.proto.gnmi.Gnmi.Value.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,Gnmi.ValueOrBuilder
- Enclosing class:
- Gnmi.Value
public static final class Gnmi.Value.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Value.Builder> implements Gnmi.ValueOrBuilder
Value encodes a data tree node's value - along with the way in which the value is encoded. This message is deprecated by gNMI 0.3.0. Reference: gNMI Specification Section 2.2.3.
Protobuf typegnmi.Value
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Gnmi.Value.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Gnmi.Value
build()
Gnmi.Value
buildPartial()
Gnmi.Value.Builder
clear()
Gnmi.Value.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Gnmi.Value.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Gnmi.Value.Builder
clearType()
Encoding used for the value field.Gnmi.Value.Builder
clearValue()
Value of the variable being transmitted.Gnmi.Value.Builder
clone()
Gnmi.Value
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Gnmi.Encoding
getType()
Encoding used for the value field.int
getTypeValue()
Encoding used for the value field.com.google.protobuf.ByteString
getValue()
Value of the variable being transmitted.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Gnmi.Value.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Gnmi.Value.Builder
mergeFrom(com.google.protobuf.Message other)
Gnmi.Value.Builder
mergeFrom(Gnmi.Value other)
Gnmi.Value.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Gnmi.Value.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Gnmi.Value.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Gnmi.Value.Builder
setType(Gnmi.Encoding value)
Encoding used for the value field.Gnmi.Value.Builder
setTypeValue(int value)
Encoding used for the value field.Gnmi.Value.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Gnmi.Value.Builder
setValue(com.google.protobuf.ByteString value)
Value of the variable being transmitted.-
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.Value.Builder>
-
clear
public Gnmi.Value.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.Value.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.Value.Builder>
-
getDefaultInstanceForType
public Gnmi.Value getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Gnmi.Value build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Gnmi.Value buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Gnmi.Value.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.Value.Builder>
-
setField
public Gnmi.Value.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Value.Builder>
-
clearField
public Gnmi.Value.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.Value.Builder>
-
clearOneof
public Gnmi.Value.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.Value.Builder>
-
setRepeatedField
public Gnmi.Value.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Value.Builder>
-
addRepeatedField
public Gnmi.Value.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Value.Builder>
-
mergeFrom
public Gnmi.Value.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.Value.Builder>
-
mergeFrom
public Gnmi.Value.Builder mergeFrom(Gnmi.Value other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Value.Builder>
-
mergeFrom
public Gnmi.Value.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<Gnmi.Value.Builder>
- Throws:
IOException
-
getValue
public com.google.protobuf.ByteString getValue()
Value of the variable being transmitted.
bytes value = 1;
- Specified by:
getValue
in interfaceGnmi.ValueOrBuilder
-
setValue
public Gnmi.Value.Builder setValue(com.google.protobuf.ByteString value)
Value of the variable being transmitted.
bytes value = 1;
-
clearValue
public Gnmi.Value.Builder clearValue()
Value of the variable being transmitted.
bytes value = 1;
-
getTypeValue
public int getTypeValue()
Encoding used for the value field.
.gnmi.Encoding type = 2;
- Specified by:
getTypeValue
in interfaceGnmi.ValueOrBuilder
-
setTypeValue
public Gnmi.Value.Builder setTypeValue(int value)
Encoding used for the value field.
.gnmi.Encoding type = 2;
-
getType
public Gnmi.Encoding getType()
Encoding used for the value field.
.gnmi.Encoding type = 2;
- Specified by:
getType
in interfaceGnmi.ValueOrBuilder
-
setType
public Gnmi.Value.Builder setType(Gnmi.Encoding value)
Encoding used for the value field.
.gnmi.Encoding type = 2;
-
clearType
public Gnmi.Value.Builder clearType()
Encoding used for the value field.
.gnmi.Encoding type = 2;
-
setUnknownFields
public final Gnmi.Value.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.Value.Builder>
-
mergeUnknownFields
public final Gnmi.Value.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.Value.Builder>
-
-