Class Gnmi.CapabilityResponse.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.CapabilityResponseOrBuilder
    Enclosing class:
    Gnmi.CapabilityResponse

    public static final class Gnmi.CapabilityResponse.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.CapabilityResponse.Builder>
    implements Gnmi.CapabilityResponseOrBuilder
     CapabilityResponse is used by the target to report its capabilities to the
     client within the Capabilities RPC.
     Reference: gNMI Specification Section 3.2.2
     
    Protobuf type gnmi.CapabilityResponse
    • 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.CapabilityResponse.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

        public Gnmi.CapabilityResponse.Builder clearSupportedModels()
         Supported schema models.
         
        repeated .gnmi.ModelData supported_models = 1;
      • removeSupportedModels

        public Gnmi.CapabilityResponse.Builder removeSupportedModels​(int index)
         Supported schema models.
         
        repeated .gnmi.ModelData supported_models = 1;
      • getSupportedModelsBuilder

        public Gnmi.ModelData.Builder getSupportedModelsBuilder​(int index)
         Supported schema models.
         
        repeated .gnmi.ModelData supported_models = 1;
      • addSupportedModelsBuilder

        public Gnmi.ModelData.Builder addSupportedModelsBuilder()
         Supported schema models.
         
        repeated .gnmi.ModelData supported_models = 1;
      • addSupportedModelsBuilder

        public Gnmi.ModelData.Builder addSupportedModelsBuilder​(int index)
         Supported schema models.
         
        repeated .gnmi.ModelData supported_models = 1;
      • getSupportedModelsBuilderList

        public java.util.List<Gnmi.ModelData.Builder> getSupportedModelsBuilderList()
         Supported schema models.
         
        repeated .gnmi.ModelData supported_models = 1;
      • clearSupportedEncodings

        public Gnmi.CapabilityResponse.Builder clearSupportedEncodings()
         Supported encodings.
         
        repeated .gnmi.Encoding supported_encodings = 2;
      • setSupportedEncodingsValue

        public Gnmi.CapabilityResponse.Builder setSupportedEncodingsValue​(int index,
                                                                          int value)
         Supported encodings.
         
        repeated .gnmi.Encoding supported_encodings = 2;
      • addSupportedEncodingsValue

        public Gnmi.CapabilityResponse.Builder addSupportedEncodingsValue​(int value)
         Supported encodings.
         
        repeated .gnmi.Encoding supported_encodings = 2;
      • addAllSupportedEncodingsValue

        public Gnmi.CapabilityResponse.Builder addAllSupportedEncodingsValue​(java.lang.Iterable<java.lang.Integer> values)
         Supported encodings.
         
        repeated .gnmi.Encoding supported_encodings = 2;
      • setGNMIVersionBytes

        public Gnmi.CapabilityResponse.Builder setGNMIVersionBytes​(com.google.protobuf.ByteString value)
         Supported gNMI version.
         
        string gNMI_version = 3;
      • getExtensionCount

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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