Class Gnmi.Error.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Gnmi.ErrorOrBuilder
    Enclosing class:
    Gnmi.Error

    public static final class Gnmi.Error.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.Error.Builder>
    implements Gnmi.ErrorOrBuilder
     Error message previously utilised to return errors to the client. Deprecated
     in favour of using the google.golang.org/genproto/googleapis/rpc/status
     message in the RPC response.
     Reference: gNMI Specification Section 2.5
     
    Protobuf type gnmi.Error
    • 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.Error.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

        public Gnmi.Error.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws 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.Error.Builder>
        Throws:
        IOException
      • getCode

        public int getCode()
         Canonical gRPC error code.
         
        uint32 code = 1;
        Specified by:
        getCode in interface Gnmi.ErrorOrBuilder
      • setCode

        public Gnmi.Error.Builder setCode​(int value)
         Canonical gRPC error code.
         
        uint32 code = 1;
      • clearCode

        public Gnmi.Error.Builder clearCode()
         Canonical gRPC error code.
         
        uint32 code = 1;
      • getMessageBytes

        public com.google.protobuf.ByteString getMessageBytes()
         Human readable error.
         
        string message = 2;
        Specified by:
        getMessageBytes in interface Gnmi.ErrorOrBuilder
      • clearMessage

        public Gnmi.Error.Builder clearMessage()
         Human readable error.
         
        string message = 2;
      • setMessageBytes

        public Gnmi.Error.Builder setMessageBytes​(com.google.protobuf.ByteString value)
         Human readable error.
         
        string message = 2;
      • hasData

        public boolean hasData()
         Optional additional information.
         
        .google.protobuf.Any data = 3;
        Specified by:
        hasData in interface Gnmi.ErrorOrBuilder
      • getData

        public com.google.protobuf.Any getData()
         Optional additional information.
         
        .google.protobuf.Any data = 3;
        Specified by:
        getData in interface Gnmi.ErrorOrBuilder
      • setData

        public Gnmi.Error.Builder setData​(com.google.protobuf.Any value)
         Optional additional information.
         
        .google.protobuf.Any data = 3;
      • setData

        public Gnmi.Error.Builder setData​(com.google.protobuf.Any.Builder builderForValue)
         Optional additional information.
         
        .google.protobuf.Any data = 3;
      • mergeData

        public Gnmi.Error.Builder mergeData​(com.google.protobuf.Any value)
         Optional additional information.
         
        .google.protobuf.Any data = 3;
      • clearData

        public Gnmi.Error.Builder clearData()
         Optional additional information.
         
        .google.protobuf.Any data = 3;
      • getDataBuilder

        public com.google.protobuf.Any.Builder getDataBuilder()
         Optional additional information.
         
        .google.protobuf.Any data = 3;
      • getDataOrBuilder

        public com.google.protobuf.AnyOrBuilder getDataOrBuilder()
         Optional additional information.
         
        .google.protobuf.Any data = 3;
        Specified by:
        getDataOrBuilder in interface Gnmi.ErrorOrBuilder
      • setUnknownFields

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

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