Class Gnmi.SetRequest
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- org.opennms.features.openconfig.proto.gnmi.Gnmi.SetRequest
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,Gnmi.SetRequestOrBuilder
- Enclosing class:
- Gnmi
public static final class Gnmi.SetRequest extends com.google.protobuf.GeneratedMessageV3 implements Gnmi.SetRequestOrBuilder
SetRequest is sent from a client to the target to update values in the data tree. Paths are either deleted by the client, or modified by means of being updated, or replaced. Where a replace is used, unspecified values are considered to be replaced, whereas when update is used the changes are considered to be incremental. The set of changes that are specified within a single SetRequest are considered to be a transaction. Reference: gNMI Specification Section 3.4.1
Protobuf typegnmi.SetRequest- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGnmi.SetRequest.BuilderSetRequest is sent from a client to the target to update values in the data tree.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intDELETE_FIELD_NUMBERstatic intEXTENSION_FIELD_NUMBERstatic intPREFIX_FIELD_NUMBERstatic intREPLACE_FIELD_NUMBERstatic intUPDATE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static Gnmi.SetRequestgetDefaultInstance()Gnmi.SetRequestgetDefaultInstanceForType()Gnmi.PathgetDelete(int index)Paths to be deleted from the data tree.intgetDeleteCount()Paths to be deleted from the data tree.List<Gnmi.Path>getDeleteList()Paths to be deleted from the data tree.Gnmi.PathOrBuildergetDeleteOrBuilder(int index)Paths to be deleted from the data tree.List<? extends Gnmi.PathOrBuilder>getDeleteOrBuilderList()Paths to be deleted from the data tree.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()GnmiExt.ExtensiongetExtension(int index)Extension messages associated with the SetRequest.intgetExtensionCount()Extension messages associated with the SetRequest.List<GnmiExt.Extension>getExtensionList()Extension messages associated with the SetRequest.GnmiExt.ExtensionOrBuildergetExtensionOrBuilder(int index)Extension messages associated with the SetRequest.List<? extends GnmiExt.ExtensionOrBuilder>getExtensionOrBuilderList()Extension messages associated with the SetRequest.com.google.protobuf.Parser<Gnmi.SetRequest>getParserForType()Gnmi.PathgetPrefix()Prefix used for paths in the message.Gnmi.PathOrBuildergetPrefixOrBuilder()Prefix used for paths in the message.Gnmi.UpdategetReplace(int index)Updates specifying elements to be replaced.intgetReplaceCount()Updates specifying elements to be replaced.List<Gnmi.Update>getReplaceList()Updates specifying elements to be replaced.Gnmi.UpdateOrBuildergetReplaceOrBuilder(int index)Updates specifying elements to be replaced.List<? extends Gnmi.UpdateOrBuilder>getReplaceOrBuilderList()Updates specifying elements to be replaced.intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()Gnmi.UpdategetUpdate(int index)Updates specifying elements to updated.intgetUpdateCount()Updates specifying elements to updated.List<Gnmi.Update>getUpdateList()Updates specifying elements to updated.Gnmi.UpdateOrBuildergetUpdateOrBuilder(int index)Updates specifying elements to updated.List<? extends Gnmi.UpdateOrBuilder>getUpdateOrBuilderList()Updates specifying elements to updated.inthashCode()booleanhasPrefix()Prefix used for paths in the message.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Gnmi.SetRequest.BuildernewBuilder()static Gnmi.SetRequest.BuildernewBuilder(Gnmi.SetRequest prototype)Gnmi.SetRequest.BuildernewBuilderForType()protected Gnmi.SetRequest.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Gnmi.SetRequestparseDelimitedFrom(InputStream input)static Gnmi.SetRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Gnmi.SetRequestparseFrom(byte[] data)static Gnmi.SetRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Gnmi.SetRequestparseFrom(com.google.protobuf.ByteString data)static Gnmi.SetRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Gnmi.SetRequestparseFrom(com.google.protobuf.CodedInputStream input)static Gnmi.SetRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Gnmi.SetRequestparseFrom(InputStream input)static Gnmi.SetRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Gnmi.SetRequestparseFrom(ByteBuffer data)static Gnmi.SetRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Gnmi.SetRequest>parser()Gnmi.SetRequest.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
PREFIX_FIELD_NUMBER
public static final int PREFIX_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DELETE_FIELD_NUMBER
public static final int DELETE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REPLACE_FIELD_NUMBER
public static final int REPLACE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UPDATE_FIELD_NUMBER
public static final int UPDATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXTENSION_FIELD_NUMBER
public static final int EXTENSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasPrefix
public boolean hasPrefix()
Prefix used for paths in the message.
.gnmi.Path prefix = 1;- Specified by:
hasPrefixin interfaceGnmi.SetRequestOrBuilder
-
getPrefix
public Gnmi.Path getPrefix()
Prefix used for paths in the message.
.gnmi.Path prefix = 1;- Specified by:
getPrefixin interfaceGnmi.SetRequestOrBuilder
-
getPrefixOrBuilder
public Gnmi.PathOrBuilder getPrefixOrBuilder()
Prefix used for paths in the message.
.gnmi.Path prefix = 1;- Specified by:
getPrefixOrBuilderin interfaceGnmi.SetRequestOrBuilder
-
getDeleteList
public List<Gnmi.Path> getDeleteList()
Paths to be deleted from the data tree.
repeated .gnmi.Path delete = 2;- Specified by:
getDeleteListin interfaceGnmi.SetRequestOrBuilder
-
getDeleteOrBuilderList
public List<? extends Gnmi.PathOrBuilder> getDeleteOrBuilderList()
Paths to be deleted from the data tree.
repeated .gnmi.Path delete = 2;- Specified by:
getDeleteOrBuilderListin interfaceGnmi.SetRequestOrBuilder
-
getDeleteCount
public int getDeleteCount()
Paths to be deleted from the data tree.
repeated .gnmi.Path delete = 2;- Specified by:
getDeleteCountin interfaceGnmi.SetRequestOrBuilder
-
getDelete
public Gnmi.Path getDelete(int index)
Paths to be deleted from the data tree.
repeated .gnmi.Path delete = 2;- Specified by:
getDeletein interfaceGnmi.SetRequestOrBuilder
-
getDeleteOrBuilder
public Gnmi.PathOrBuilder getDeleteOrBuilder(int index)
Paths to be deleted from the data tree.
repeated .gnmi.Path delete = 2;- Specified by:
getDeleteOrBuilderin interfaceGnmi.SetRequestOrBuilder
-
getReplaceList
public List<Gnmi.Update> getReplaceList()
Updates specifying elements to be replaced.
repeated .gnmi.Update replace = 3;- Specified by:
getReplaceListin interfaceGnmi.SetRequestOrBuilder
-
getReplaceOrBuilderList
public List<? extends Gnmi.UpdateOrBuilder> getReplaceOrBuilderList()
Updates specifying elements to be replaced.
repeated .gnmi.Update replace = 3;- Specified by:
getReplaceOrBuilderListin interfaceGnmi.SetRequestOrBuilder
-
getReplaceCount
public int getReplaceCount()
Updates specifying elements to be replaced.
repeated .gnmi.Update replace = 3;- Specified by:
getReplaceCountin interfaceGnmi.SetRequestOrBuilder
-
getReplace
public Gnmi.Update getReplace(int index)
Updates specifying elements to be replaced.
repeated .gnmi.Update replace = 3;- Specified by:
getReplacein interfaceGnmi.SetRequestOrBuilder
-
getReplaceOrBuilder
public Gnmi.UpdateOrBuilder getReplaceOrBuilder(int index)
Updates specifying elements to be replaced.
repeated .gnmi.Update replace = 3;- Specified by:
getReplaceOrBuilderin interfaceGnmi.SetRequestOrBuilder
-
getUpdateList
public List<Gnmi.Update> getUpdateList()
Updates specifying elements to updated.
repeated .gnmi.Update update = 4;- Specified by:
getUpdateListin interfaceGnmi.SetRequestOrBuilder
-
getUpdateOrBuilderList
public List<? extends Gnmi.UpdateOrBuilder> getUpdateOrBuilderList()
Updates specifying elements to updated.
repeated .gnmi.Update update = 4;- Specified by:
getUpdateOrBuilderListin interfaceGnmi.SetRequestOrBuilder
-
getUpdateCount
public int getUpdateCount()
Updates specifying elements to updated.
repeated .gnmi.Update update = 4;- Specified by:
getUpdateCountin interfaceGnmi.SetRequestOrBuilder
-
getUpdate
public Gnmi.Update getUpdate(int index)
Updates specifying elements to updated.
repeated .gnmi.Update update = 4;- Specified by:
getUpdatein interfaceGnmi.SetRequestOrBuilder
-
getUpdateOrBuilder
public Gnmi.UpdateOrBuilder getUpdateOrBuilder(int index)
Updates specifying elements to updated.
repeated .gnmi.Update update = 4;- Specified by:
getUpdateOrBuilderin interfaceGnmi.SetRequestOrBuilder
-
getExtensionList
public List<GnmiExt.Extension> getExtensionList()
Extension messages associated with the SetRequest. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 5;- Specified by:
getExtensionListin interfaceGnmi.SetRequestOrBuilder
-
getExtensionOrBuilderList
public List<? extends GnmiExt.ExtensionOrBuilder> getExtensionOrBuilderList()
Extension messages associated with the SetRequest. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 5;- Specified by:
getExtensionOrBuilderListin interfaceGnmi.SetRequestOrBuilder
-
getExtensionCount
public int getExtensionCount()
Extension messages associated with the SetRequest. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 5;- Specified by:
getExtensionCountin interfaceGnmi.SetRequestOrBuilder
-
getExtension
public GnmiExt.Extension getExtension(int index)
Extension messages associated with the SetRequest. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 5;- Specified by:
getExtensionin interfaceGnmi.SetRequestOrBuilder
-
getExtensionOrBuilder
public GnmiExt.ExtensionOrBuilder getExtensionOrBuilder(int index)
Extension messages associated with the SetRequest. See the gNMI extension specification for further definition.
repeated .gnmi_ext.Extension extension = 5;- Specified by:
getExtensionOrBuilderin interfaceGnmi.SetRequestOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Gnmi.SetRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Gnmi.SetRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Gnmi.SetRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Gnmi.SetRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Gnmi.SetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Gnmi.SetRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Gnmi.SetRequest parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Gnmi.SetRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Gnmi.SetRequest parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Gnmi.SetRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Gnmi.SetRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Gnmi.SetRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Gnmi.SetRequest.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Gnmi.SetRequest.Builder newBuilder()
-
newBuilder
public static Gnmi.SetRequest.Builder newBuilder(Gnmi.SetRequest prototype)
-
toBuilder
public Gnmi.SetRequest.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Gnmi.SetRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Gnmi.SetRequest getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Gnmi.SetRequest> parser()
-
getParserForType
public com.google.protobuf.Parser<Gnmi.SetRequest> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Gnmi.SetRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-