Class Gnmi.UpdateResult.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.UpdateResultOrBuilder
    Enclosing class:
    Gnmi.UpdateResult

    public static final class Gnmi.UpdateResult.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.UpdateResult.Builder>
    implements Gnmi.UpdateResultOrBuilder
     UpdateResult is used within the SetResponse message to communicate the
     result of an operation specified within a SetRequest message.
     Reference: gNMI Specification Section 3.4.2
     
    Protobuf type gnmi.UpdateResult
    • 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.UpdateResult.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        @Deprecated
        public long getTimestamp()
        Deprecated.
         Deprecated timestamp for the UpdateResult, this field has been
         replaced by the timestamp within the SetResponse message, since
         all mutations effected by a set should be applied as a single
         transaction.
         
        int64 timestamp = 1 [deprecated = true];
        Specified by:
        getTimestamp in interface Gnmi.UpdateResultOrBuilder
      • setTimestamp

        @Deprecated
        public Gnmi.UpdateResult.Builder setTimestamp​(long value)
        Deprecated.
         Deprecated timestamp for the UpdateResult, this field has been
         replaced by the timestamp within the SetResponse message, since
         all mutations effected by a set should be applied as a single
         transaction.
         
        int64 timestamp = 1 [deprecated = true];
      • clearTimestamp

        @Deprecated
        public Gnmi.UpdateResult.Builder clearTimestamp()
        Deprecated.
         Deprecated timestamp for the UpdateResult, this field has been
         replaced by the timestamp within the SetResponse message, since
         all mutations effected by a set should be applied as a single
         transaction.
         
        int64 timestamp = 1 [deprecated = true];
      • getPathBuilder

        public Gnmi.Path.Builder getPathBuilder()
         Path associated with the update.
         
        .gnmi.Path path = 2;
      • hasMessage

        @Deprecated
        public boolean hasMessage()
        Deprecated.
         Status of the update operation.
         
        .gnmi.Error message = 3 [deprecated = true];
        Specified by:
        hasMessage in interface Gnmi.UpdateResultOrBuilder
      • setMessage

        @Deprecated
        public Gnmi.UpdateResult.Builder setMessage​(Gnmi.Error value)
        Deprecated.
         Status of the update operation.
         
        .gnmi.Error message = 3 [deprecated = true];
      • mergeMessage

        @Deprecated
        public Gnmi.UpdateResult.Builder mergeMessage​(Gnmi.Error value)
        Deprecated.
         Status of the update operation.
         
        .gnmi.Error message = 3 [deprecated = true];
      • clearMessage

        @Deprecated
        public Gnmi.UpdateResult.Builder clearMessage()
        Deprecated.
         Status of the update operation.
         
        .gnmi.Error message = 3 [deprecated = true];
      • getMessageBuilder

        @Deprecated
        public Gnmi.Error.Builder getMessageBuilder()
        Deprecated.
         Status of the update operation.
         
        .gnmi.Error message = 3 [deprecated = true];
      • setOpValue

        public Gnmi.UpdateResult.Builder setOpValue​(int value)
         Update operation type.
         
        .gnmi.UpdateResult.Operation op = 4;
      • setUnknownFields

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

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