Class Gnmi.GetRequest.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.GetRequestOrBuilder
    Enclosing class:
    Gnmi.GetRequest

    public static final class Gnmi.GetRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.GetRequest.Builder>
    implements Gnmi.GetRequestOrBuilder
     GetRequest is sent when a client initiates a Get RPC. It is used to specify
     the set of data elements for which the target should return a snapshot of
     data. The use_models field specifies the set of schema modules that are to
     be used by the target - where use_models is not specified then the target
     must use all schema models that it has.
     Reference: gNMI Specification Section 3.3.1
     
    Protobuf type gnmi.GetRequest
    • 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.GetRequest.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public Gnmi.Path.Builder getPrefixBuilder()
         Prefix used for paths.
         
        .gnmi.Path prefix = 1;
      • addAllPath

        public Gnmi.GetRequest.Builder addAllPath​(java.lang.Iterable<? extends Gnmi.Path> values)
         Paths requested by the client.
         
        repeated .gnmi.Path path = 2;
      • clearPath

        public Gnmi.GetRequest.Builder clearPath()
         Paths requested by the client.
         
        repeated .gnmi.Path path = 2;
      • removePath

        public Gnmi.GetRequest.Builder removePath​(int index)
         Paths requested by the client.
         
        repeated .gnmi.Path path = 2;
      • getPathBuilder

        public Gnmi.Path.Builder getPathBuilder​(int index)
         Paths requested by the client.
         
        repeated .gnmi.Path path = 2;
      • addPathBuilder

        public Gnmi.Path.Builder addPathBuilder()
         Paths requested by the client.
         
        repeated .gnmi.Path path = 2;
      • addPathBuilder

        public Gnmi.Path.Builder addPathBuilder​(int index)
         Paths requested by the client.
         
        repeated .gnmi.Path path = 2;
      • getPathBuilderList

        public java.util.List<Gnmi.Path.Builder> getPathBuilderList()
         Paths requested by the client.
         
        repeated .gnmi.Path path = 2;
      • setTypeValue

        public Gnmi.GetRequest.Builder setTypeValue​(int value)
         The type of data being requested.
         
        .gnmi.GetRequest.DataType type = 3;
      • clearType

        public Gnmi.GetRequest.Builder clearType()
         The type of data being requested.
         
        .gnmi.GetRequest.DataType type = 3;
      • setEncodingValue

        public Gnmi.GetRequest.Builder setEncodingValue​(int value)
         Encoding to be used.
         
        .gnmi.Encoding encoding = 5;
      • addAllUseModels

        public Gnmi.GetRequest.Builder addAllUseModels​(java.lang.Iterable<? extends Gnmi.ModelData> values)
         The schema models to be used.
         
        repeated .gnmi.ModelData use_models = 6;
      • clearUseModels

        public Gnmi.GetRequest.Builder clearUseModels()
         The schema models to be used.
         
        repeated .gnmi.ModelData use_models = 6;
      • removeUseModels

        public Gnmi.GetRequest.Builder removeUseModels​(int index)
         The schema models to be used.
         
        repeated .gnmi.ModelData use_models = 6;
      • getUseModelsBuilder

        public Gnmi.ModelData.Builder getUseModelsBuilder​(int index)
         The schema models to be used.
         
        repeated .gnmi.ModelData use_models = 6;
      • addUseModelsBuilder

        public Gnmi.ModelData.Builder addUseModelsBuilder()
         The schema models to be used.
         
        repeated .gnmi.ModelData use_models = 6;
      • addUseModelsBuilder

        public Gnmi.ModelData.Builder addUseModelsBuilder​(int index)
         The schema models to be used.
         
        repeated .gnmi.ModelData use_models = 6;
      • getUseModelsBuilderList

        public java.util.List<Gnmi.ModelData.Builder> getUseModelsBuilderList()
         The schema models to be used.
         
        repeated .gnmi.ModelData use_models = 6;
      • getExtensionList

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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