Class Gnmi.GetResponse.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.GetResponseOrBuilder
    Enclosing class:
    Gnmi.GetResponse

    public static final class Gnmi.GetResponse.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.GetResponse.Builder>
    implements Gnmi.GetResponseOrBuilder
     GetResponse is used by the target to respond to a GetRequest from a client.
     The set of Notifications corresponds to the data values that are requested
     by the client in the GetRequest.
     Reference: gNMI Specification Section 3.3.2
     
    Protobuf type gnmi.GetResponse
    • 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.GetResponse.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public Gnmi.GetResponse.Builder clearNotification()
         Data values.
         
        repeated .gnmi.Notification notification = 1;
      • removeNotification

        public Gnmi.GetResponse.Builder removeNotification​(int index)
         Data values.
         
        repeated .gnmi.Notification notification = 1;
      • getNotificationBuilder

        public Gnmi.Notification.Builder getNotificationBuilder​(int index)
         Data values.
         
        repeated .gnmi.Notification notification = 1;
      • addNotificationBuilder

        public Gnmi.Notification.Builder addNotificationBuilder()
         Data values.
         
        repeated .gnmi.Notification notification = 1;
      • addNotificationBuilder

        public Gnmi.Notification.Builder addNotificationBuilder​(int index)
         Data values.
         
        repeated .gnmi.Notification notification = 1;
      • getNotificationBuilderList

        public java.util.List<Gnmi.Notification.Builder> getNotificationBuilderList()
         Data values.
         
        repeated .gnmi.Notification notification = 1;
      • hasError

        @Deprecated
        public boolean hasError()
        Deprecated.
         Errors that occurred in the Get.
         
        .gnmi.Error error = 2 [deprecated = true];
        Specified by:
        hasError in interface Gnmi.GetResponseOrBuilder
      • setError

        @Deprecated
        public Gnmi.GetResponse.Builder setError​(Gnmi.Error value)
        Deprecated.
         Errors that occurred in the Get.
         
        .gnmi.Error error = 2 [deprecated = true];
      • mergeError

        @Deprecated
        public Gnmi.GetResponse.Builder mergeError​(Gnmi.Error value)
        Deprecated.
         Errors that occurred in the Get.
         
        .gnmi.Error error = 2 [deprecated = true];
      • clearError

        @Deprecated
        public Gnmi.GetResponse.Builder clearError()
        Deprecated.
         Errors that occurred in the Get.
         
        .gnmi.Error error = 2 [deprecated = true];
      • getErrorBuilder

        @Deprecated
        public Gnmi.Error.Builder getErrorBuilder()
        Deprecated.
         Errors that occurred in the Get.
         
        .gnmi.Error error = 2 [deprecated = true];
      • getExtensionList

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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