Class Gnmi.SetResponse.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.SetResponseOrBuilder
    Enclosing class:
    Gnmi.SetResponse

    public static final class Gnmi.SetResponse.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.SetResponse.Builder>
    implements Gnmi.SetResponseOrBuilder
     SetResponse is the response to a SetRequest, sent from the target to the
     client. It reports the result of the modifications to the data tree that were
     specified by the client. Errors for this RPC should be reported using the
     https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto
     message in the RPC return. The gnmi.Error message can be used to add additional
     details where required.
     Reference: gNMI Specification Section 3.4.2
     
    Protobuf type gnmi.SetResponse
    • 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.SetResponse.Builder>
      • clear

        public Gnmi.SetResponse.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.SetResponse.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.SetResponse.Builder>
      • getDefaultInstanceForType

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

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

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

        public Gnmi.SetResponse.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.SetResponse.Builder>
      • setField

        public Gnmi.SetResponse.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.SetResponse.Builder>
      • clearField

        public Gnmi.SetResponse.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.SetResponse.Builder>
      • clearOneof

        public Gnmi.SetResponse.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.SetResponse.Builder>
      • setRepeatedField

        public Gnmi.SetResponse.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.SetResponse.Builder>
      • addRepeatedField

        public Gnmi.SetResponse.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.SetResponse.Builder>
      • mergeFrom

        public Gnmi.SetResponse.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.SetResponse.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.SetResponse.Builder>
      • mergeFrom

        public Gnmi.SetResponse.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.SetResponse.Builder>
        Throws:
        java.io.IOException
      • getPrefixBuilder

        public Gnmi.Path.Builder getPrefixBuilder()
         Prefix used for paths.
         
        .gnmi.Path prefix = 1;
      • getResponseCount

        public int getResponseCount()
         A set of responses specifying the result of the operations specified in
         the SetRequest.
         
        repeated .gnmi.UpdateResult response = 2;
        Specified by:
        getResponseCount in interface Gnmi.SetResponseOrBuilder
      • setResponse

        public Gnmi.SetResponse.Builder setResponse​(int index,
                                                    Gnmi.UpdateResult value)
         A set of responses specifying the result of the operations specified in
         the SetRequest.
         
        repeated .gnmi.UpdateResult response = 2;
      • setResponse

        public Gnmi.SetResponse.Builder setResponse​(int index,
                                                    Gnmi.UpdateResult.Builder builderForValue)
         A set of responses specifying the result of the operations specified in
         the SetRequest.
         
        repeated .gnmi.UpdateResult response = 2;
      • addResponse

        public Gnmi.SetResponse.Builder addResponse​(Gnmi.UpdateResult value)
         A set of responses specifying the result of the operations specified in
         the SetRequest.
         
        repeated .gnmi.UpdateResult response = 2;
      • addResponse

        public Gnmi.SetResponse.Builder addResponse​(int index,
                                                    Gnmi.UpdateResult value)
         A set of responses specifying the result of the operations specified in
         the SetRequest.
         
        repeated .gnmi.UpdateResult response = 2;
      • addResponse

        public Gnmi.SetResponse.Builder addResponse​(int index,
                                                    Gnmi.UpdateResult.Builder builderForValue)
         A set of responses specifying the result of the operations specified in
         the SetRequest.
         
        repeated .gnmi.UpdateResult response = 2;
      • addAllResponse

        public Gnmi.SetResponse.Builder addAllResponse​(java.lang.Iterable<? extends Gnmi.UpdateResult> values)
         A set of responses specifying the result of the operations specified in
         the SetRequest.
         
        repeated .gnmi.UpdateResult response = 2;
      • clearResponse

        public Gnmi.SetResponse.Builder clearResponse()
         A set of responses specifying the result of the operations specified in
         the SetRequest.
         
        repeated .gnmi.UpdateResult response = 2;
      • removeResponse

        public Gnmi.SetResponse.Builder removeResponse​(int index)
         A set of responses specifying the result of the operations specified in
         the SetRequest.
         
        repeated .gnmi.UpdateResult response = 2;
      • getResponseBuilder

        public Gnmi.UpdateResult.Builder getResponseBuilder​(int index)
         A set of responses specifying the result of the operations specified in
         the SetRequest.
         
        repeated .gnmi.UpdateResult response = 2;
      • addResponseBuilder

        public Gnmi.UpdateResult.Builder addResponseBuilder()
         A set of responses specifying the result of the operations specified in
         the SetRequest.
         
        repeated .gnmi.UpdateResult response = 2;
      • addResponseBuilder

        public Gnmi.UpdateResult.Builder addResponseBuilder​(int index)
         A set of responses specifying the result of the operations specified in
         the SetRequest.
         
        repeated .gnmi.UpdateResult response = 2;
      • getResponseBuilderList

        public java.util.List<Gnmi.UpdateResult.Builder> getResponseBuilderList()
         A set of responses specifying the result of the operations specified in
         the SetRequest.
         
        repeated .gnmi.UpdateResult response = 2;
      • hasMessage

        @Deprecated
        public boolean hasMessage()
        Deprecated.
         The overall status of the transaction.
         
        .gnmi.Error message = 3 [deprecated = true];
        Specified by:
        hasMessage in interface Gnmi.SetResponseOrBuilder
      • setMessage

        @Deprecated
        public Gnmi.SetResponse.Builder setMessage​(Gnmi.Error value)
        Deprecated.
         The overall status of the transaction.
         
        .gnmi.Error message = 3 [deprecated = true];
      • mergeMessage

        @Deprecated
        public Gnmi.SetResponse.Builder mergeMessage​(Gnmi.Error value)
        Deprecated.
         The overall status of the transaction.
         
        .gnmi.Error message = 3 [deprecated = true];
      • clearMessage

        @Deprecated
        public Gnmi.SetResponse.Builder clearMessage()
        Deprecated.
         The overall status of the transaction.
         
        .gnmi.Error message = 3 [deprecated = true];
      • getMessageBuilder

        @Deprecated
        public Gnmi.Error.Builder getMessageBuilder()
        Deprecated.
         The overall status of the transaction.
         
        .gnmi.Error message = 3 [deprecated = true];
      • setTimestamp

        public Gnmi.SetResponse.Builder setTimestamp​(long value)
         Timestamp of transaction (ns since epoch).
         
        int64 timestamp = 4;
      • clearTimestamp

        public Gnmi.SetResponse.Builder clearTimestamp()
         Timestamp of transaction (ns since epoch).
         
        int64 timestamp = 4;
      • getExtensionList

        public java.util.List<GnmiExt.Extension> getExtensionList()
         Extension messages associated with the SetResponse. See the
         gNMI extension specification for further definition.
         
        repeated .gnmi_ext.Extension extension = 5;
        Specified by:
        getExtensionList in interface Gnmi.SetResponseOrBuilder
      • getExtensionCount

        public int getExtensionCount()
         Extension messages associated with the SetResponse. See the
         gNMI extension specification for further definition.
         
        repeated .gnmi_ext.Extension extension = 5;
        Specified by:
        getExtensionCount in interface Gnmi.SetResponseOrBuilder
      • getExtension

        public GnmiExt.Extension getExtension​(int index)
         Extension messages associated with the SetResponse. See the
         gNMI extension specification for further definition.
         
        repeated .gnmi_ext.Extension extension = 5;
        Specified by:
        getExtension in interface Gnmi.SetResponseOrBuilder
      • setExtension

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

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

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

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

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

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

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

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

        public Gnmi.SetResponse.Builder removeExtension​(int index)
         Extension messages associated with the SetResponse. 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 SetResponse. 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 SetResponse. 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 SetResponse. 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 SetResponse. See the
         gNMI extension specification for further definition.
         
        repeated .gnmi_ext.Extension extension = 5;
      • setUnknownFields

        public final Gnmi.SetResponse.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.SetResponse.Builder>
      • mergeUnknownFields

        public final Gnmi.SetResponse.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.SetResponse.Builder>