Class Gnmi.SetRequest.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.SetRequestOrBuilder
    Enclosing class:
    Gnmi.SetRequest

    public static final class Gnmi.SetRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.SetRequest.Builder>
    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 type gnmi.SetRequest
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.SetRequest.Builder>
      • clear

        public Gnmi.SetRequest.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.SetRequest.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.SetRequest.Builder>
      • getDefaultInstanceForType

        public Gnmi.SetRequest getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Gnmi.SetRequest build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Gnmi.SetRequest buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Gnmi.SetRequest.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.SetRequest.Builder>
      • setField

        public Gnmi.SetRequest.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.SetRequest.Builder>
      • clearField

        public Gnmi.SetRequest.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.SetRequest.Builder>
      • clearOneof

        public Gnmi.SetRequest.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.SetRequest.Builder>
      • setRepeatedField

        public Gnmi.SetRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        int index,
                                                        java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.SetRequest.Builder>
      • addRepeatedField

        public Gnmi.SetRequest.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.SetRequest.Builder>
      • mergeFrom

        public Gnmi.SetRequest.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Gnmi.SetRequest.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.SetRequest.Builder>
      • mergeFrom

        public Gnmi.SetRequest.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Gnmi.SetRequest.Builder>
        Throws:
        java.io.IOException
      • hasPrefix

        public boolean hasPrefix()
         Prefix used for paths in the message.
         
        .gnmi.Path prefix = 1;
        Specified by:
        hasPrefix in interface Gnmi.SetRequestOrBuilder
      • clearPrefix

        public Gnmi.SetRequest.Builder clearPrefix()
         Prefix used for paths in the message.
         
        .gnmi.Path prefix = 1;
      • getPrefixBuilder

        public Gnmi.Path.Builder getPrefixBuilder()
         Prefix used for paths in the message.
         
        .gnmi.Path prefix = 1;
      • addAllDelete

        public Gnmi.SetRequest.Builder addAllDelete​(java.lang.Iterable<? extends Gnmi.Path> values)
         Paths to be deleted from the data tree.
         
        repeated .gnmi.Path delete = 2;
      • clearDelete

        public Gnmi.SetRequest.Builder clearDelete()
         Paths to be deleted from the data tree.
         
        repeated .gnmi.Path delete = 2;
      • removeDelete

        public Gnmi.SetRequest.Builder removeDelete​(int index)
         Paths to be deleted from the data tree.
         
        repeated .gnmi.Path delete = 2;
      • getDeleteBuilder

        public Gnmi.Path.Builder getDeleteBuilder​(int index)
         Paths to be deleted from the data tree.
         
        repeated .gnmi.Path delete = 2;
      • addDeleteBuilder

        public Gnmi.Path.Builder addDeleteBuilder()
         Paths to be deleted from the data tree.
         
        repeated .gnmi.Path delete = 2;
      • addDeleteBuilder

        public Gnmi.Path.Builder addDeleteBuilder​(int index)
         Paths to be deleted from the data tree.
         
        repeated .gnmi.Path delete = 2;
      • getDeleteBuilderList

        public java.util.List<Gnmi.Path.Builder> getDeleteBuilderList()
         Paths to be deleted from the data tree.
         
        repeated .gnmi.Path delete = 2;
      • getReplaceCount

        public int getReplaceCount()
         Updates specifying elements to be replaced.
         
        repeated .gnmi.Update replace = 3;
        Specified by:
        getReplaceCount in interface Gnmi.SetRequestOrBuilder
      • setReplace

        public Gnmi.SetRequest.Builder setReplace​(int index,
                                                  Gnmi.Update value)
         Updates specifying elements to be replaced.
         
        repeated .gnmi.Update replace = 3;
      • addReplace

        public Gnmi.SetRequest.Builder addReplace​(int index,
                                                  Gnmi.Update value)
         Updates specifying elements to be replaced.
         
        repeated .gnmi.Update replace = 3;
      • addAllReplace

        public Gnmi.SetRequest.Builder addAllReplace​(java.lang.Iterable<? extends Gnmi.Update> values)
         Updates specifying elements to be replaced.
         
        repeated .gnmi.Update replace = 3;
      • clearReplace

        public Gnmi.SetRequest.Builder clearReplace()
         Updates specifying elements to be replaced.
         
        repeated .gnmi.Update replace = 3;
      • removeReplace

        public Gnmi.SetRequest.Builder removeReplace​(int index)
         Updates specifying elements to be replaced.
         
        repeated .gnmi.Update replace = 3;
      • getReplaceBuilder

        public Gnmi.Update.Builder getReplaceBuilder​(int index)
         Updates specifying elements to be replaced.
         
        repeated .gnmi.Update replace = 3;
      • addReplaceBuilder

        public Gnmi.Update.Builder addReplaceBuilder()
         Updates specifying elements to be replaced.
         
        repeated .gnmi.Update replace = 3;
      • addReplaceBuilder

        public Gnmi.Update.Builder addReplaceBuilder​(int index)
         Updates specifying elements to be replaced.
         
        repeated .gnmi.Update replace = 3;
      • getReplaceBuilderList

        public java.util.List<Gnmi.Update.Builder> getReplaceBuilderList()
         Updates specifying elements to be replaced.
         
        repeated .gnmi.Update replace = 3;
      • addAllUpdate

        public Gnmi.SetRequest.Builder addAllUpdate​(java.lang.Iterable<? extends Gnmi.Update> values)
         Updates specifying elements to updated.
         
        repeated .gnmi.Update update = 4;
      • clearUpdate

        public Gnmi.SetRequest.Builder clearUpdate()
         Updates specifying elements to updated.
         
        repeated .gnmi.Update update = 4;
      • removeUpdate

        public Gnmi.SetRequest.Builder removeUpdate​(int index)
         Updates specifying elements to updated.
         
        repeated .gnmi.Update update = 4;
      • getUpdateBuilder

        public Gnmi.Update.Builder getUpdateBuilder​(int index)
         Updates specifying elements to updated.
         
        repeated .gnmi.Update update = 4;
      • addUpdateBuilder

        public Gnmi.Update.Builder addUpdateBuilder()
         Updates specifying elements to updated.
         
        repeated .gnmi.Update update = 4;
      • addUpdateBuilder

        public Gnmi.Update.Builder addUpdateBuilder​(int index)
         Updates specifying elements to updated.
         
        repeated .gnmi.Update update = 4;
      • getUpdateBuilderList

        public java.util.List<Gnmi.Update.Builder> getUpdateBuilderList()
         Updates specifying elements to updated.
         
        repeated .gnmi.Update update = 4;
      • getExtensionList

        public java.util.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:
        getExtensionList in interface Gnmi.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:
        getExtensionCount in interface Gnmi.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:
        getExtension in interface Gnmi.SetRequestOrBuilder
      • setExtension

        public Gnmi.SetRequest.Builder setExtension​(int index,
                                                    GnmiExt.Extension value)
         Extension messages associated with the SetRequest. See the
         gNMI extension specification for further definition.
         
        repeated .gnmi_ext.Extension extension = 5;
      • setExtension

        public Gnmi.SetRequest.Builder setExtension​(int index,
                                                    GnmiExt.Extension.Builder builderForValue)
         Extension messages associated with the SetRequest. See the
         gNMI extension specification for further definition.
         
        repeated .gnmi_ext.Extension extension = 5;
      • addExtension

        public Gnmi.SetRequest.Builder addExtension​(GnmiExt.Extension value)
         Extension messages associated with the SetRequest. See the
         gNMI extension specification for further definition.
         
        repeated .gnmi_ext.Extension extension = 5;
      • addExtension

        public Gnmi.SetRequest.Builder addExtension​(int index,
                                                    GnmiExt.Extension value)
         Extension messages associated with the SetRequest. See the
         gNMI extension specification for further definition.
         
        repeated .gnmi_ext.Extension extension = 5;
      • addExtension

        public Gnmi.SetRequest.Builder addExtension​(GnmiExt.Extension.Builder builderForValue)
         Extension messages associated with the SetRequest. See the
         gNMI extension specification for further definition.
         
        repeated .gnmi_ext.Extension extension = 5;
      • addExtension

        public Gnmi.SetRequest.Builder addExtension​(int index,
                                                    GnmiExt.Extension.Builder builderForValue)
         Extension messages associated with the SetRequest. See the
         gNMI extension specification for further definition.
         
        repeated .gnmi_ext.Extension extension = 5;
      • addAllExtension

        public Gnmi.SetRequest.Builder addAllExtension​(java.lang.Iterable<? extends GnmiExt.Extension> values)
         Extension messages associated with the SetRequest. See the
         gNMI extension specification for further definition.
         
        repeated .gnmi_ext.Extension extension = 5;
      • clearExtension

        public Gnmi.SetRequest.Builder clearExtension()
         Extension messages associated with the SetRequest. See the
         gNMI extension specification for further definition.
         
        repeated .gnmi_ext.Extension extension = 5;
      • removeExtension

        public Gnmi.SetRequest.Builder removeExtension​(int index)
         Extension messages associated with the SetRequest. See the
         gNMI extension specification for further definition.
         
        repeated .gnmi_ext.Extension extension = 5;
      • getExtensionBuilder

        public GnmiExt.Extension.Builder getExtensionBuilder​(int index)
         Extension messages associated with the SetRequest. See the
         gNMI extension specification for further definition.
         
        repeated .gnmi_ext.Extension extension = 5;
      • addExtensionBuilder

        public GnmiExt.Extension.Builder addExtensionBuilder()
         Extension messages associated with the SetRequest. See the
         gNMI extension specification for further definition.
         
        repeated .gnmi_ext.Extension extension = 5;
      • addExtensionBuilder

        public GnmiExt.Extension.Builder addExtensionBuilder​(int index)
         Extension messages associated with the SetRequest. See the
         gNMI extension specification for further definition.
         
        repeated .gnmi_ext.Extension extension = 5;
      • getExtensionBuilderList

        public java.util.List<GnmiExt.Extension.Builder> getExtensionBuilderList()
         Extension messages associated with the SetRequest. See the
         gNMI extension specification for further definition.
         
        repeated .gnmi_ext.Extension extension = 5;
      • setUnknownFields

        public final Gnmi.SetRequest.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.SetRequest.Builder>
      • mergeUnknownFields

        public final Gnmi.SetRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.SetRequest.Builder>