Class Gnmi.SubscribeResponse.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.SubscribeResponseOrBuilder
    Enclosing class:
    Gnmi.SubscribeResponse

    public static final class Gnmi.SubscribeResponse.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.SubscribeResponse.Builder>
    implements Gnmi.SubscribeResponseOrBuilder
     SubscribeResponse is the message used by the target within a Subscribe RPC.
     The target includes a Notification message which is used to transmit values
     of the path(s) that are associated with the subscription. The same message
     is to indicate that the target has sent all data values once (is
     synchronized).
     Reference: gNMI Specification Section 3.5.1.4
     
    Protobuf type gnmi.SubscribeResponse
    • 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.SubscribeResponse.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

        public Gnmi.Notification.Builder getUpdateBuilder()
         Changed or sampled value for a path.
         
        .gnmi.Notification update = 1;
      • getSyncResponse

        public boolean getSyncResponse()
         Indicate target has sent all values associated with the subscription
         at least once.
         
        bool sync_response = 3;
        Specified by:
        getSyncResponse in interface Gnmi.SubscribeResponseOrBuilder
      • setSyncResponse

        public Gnmi.SubscribeResponse.Builder setSyncResponse​(boolean value)
         Indicate target has sent all values associated with the subscription
         at least once.
         
        bool sync_response = 3;
      • clearSyncResponse

        public Gnmi.SubscribeResponse.Builder clearSyncResponse()
         Indicate target has sent all values associated with the subscription
         at least once.
         
        bool sync_response = 3;
      • hasError

        @Deprecated
        public boolean hasError()
        Deprecated.
         Deprecated in favour of google.golang.org/genproto/googleapis/rpc/status
         
        .gnmi.Error error = 4 [deprecated = true];
        Specified by:
        hasError in interface Gnmi.SubscribeResponseOrBuilder
      • getError

        @Deprecated
        public Gnmi.Error getError()
        Deprecated.
         Deprecated in favour of google.golang.org/genproto/googleapis/rpc/status
         
        .gnmi.Error error = 4 [deprecated = true];
        Specified by:
        getError in interface Gnmi.SubscribeResponseOrBuilder
      • setError

        @Deprecated
        public Gnmi.SubscribeResponse.Builder setError​(Gnmi.Error value)
        Deprecated.
         Deprecated in favour of google.golang.org/genproto/googleapis/rpc/status
         
        .gnmi.Error error = 4 [deprecated = true];
      • mergeError

        @Deprecated
        public Gnmi.SubscribeResponse.Builder mergeError​(Gnmi.Error value)
        Deprecated.
         Deprecated in favour of google.golang.org/genproto/googleapis/rpc/status
         
        .gnmi.Error error = 4 [deprecated = true];
      • clearError

        @Deprecated
        public Gnmi.SubscribeResponse.Builder clearError()
        Deprecated.
         Deprecated in favour of google.golang.org/genproto/googleapis/rpc/status
         
        .gnmi.Error error = 4 [deprecated = true];
      • getErrorBuilder

        @Deprecated
        public Gnmi.Error.Builder getErrorBuilder()
        Deprecated.
         Deprecated in favour of google.golang.org/genproto/googleapis/rpc/status
         
        .gnmi.Error error = 4 [deprecated = true];
      • getExtensionList

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

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

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

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

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

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

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

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

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

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

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

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

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

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