Class Gnmi.SubscribeRequest.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.SubscribeRequestOrBuilder
    Enclosing class:
    Gnmi.SubscribeRequest

    public static final class Gnmi.SubscribeRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.SubscribeRequest.Builder>
    implements Gnmi.SubscribeRequestOrBuilder
     SubscribeRequest is the message sent by the client to the target when
     initiating a subscription to a set of paths within the data tree. The
     request field must be populated and the initial message must specify a
     SubscriptionList to initiate a subscription. The message is subsequently
     used to define aliases or trigger polled data to be sent by the target.
     Reference: gNMI Specification Section 3.5.1.1
     
    Protobuf type gnmi.SubscribeRequest
    • 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.SubscribeRequest.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

        public Gnmi.SubscribeRequest.Builder clearSubscribe()
         Specify the paths within a subscription.
         
        .gnmi.SubscriptionList subscribe = 1;
      • getSubscribeBuilder

        public Gnmi.SubscriptionList.Builder getSubscribeBuilder()
         Specify the paths within a subscription.
         
        .gnmi.SubscriptionList subscribe = 1;
      • getPollBuilder

        public Gnmi.Poll.Builder getPollBuilder()
         Trigger a polled update.
         
        .gnmi.Poll poll = 3;
      • getAliasesBuilder

        public Gnmi.AliasList.Builder getAliasesBuilder()
         Aliases to be created.
         
        .gnmi.AliasList aliases = 4;
      • getExtensionList

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

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

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

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

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

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

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

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

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

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

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

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

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

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