Class Gnmi.ModelData.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Gnmi.ModelDataOrBuilder
    Enclosing class:
    Gnmi.ModelData

    public static final class Gnmi.ModelData.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.ModelData.Builder>
    implements Gnmi.ModelDataOrBuilder
     ModelData is used to describe a set of schema modules. It can be used in a
     CapabilityResponse where a target reports the set of modules that it
     supports, and within the SubscribeRequest and GetRequest messages to specify
     the set of models from which data tree elements should be reported.
     Reference: gNMI Specification Section 3.2.3
     
    Protobuf type gnmi.ModelData
    • 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.ModelData.Builder>
      • clear

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

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

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

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

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

        public Gnmi.ModelData.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.ModelData.Builder>
      • clearField

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

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

        public Gnmi.ModelData.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       int index,
                                                       Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.ModelData.Builder>
      • addRepeatedField

        public Gnmi.ModelData.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Gnmi.ModelData.Builder>
      • mergeFrom

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

        public Gnmi.ModelData.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws 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.ModelData.Builder>
        Throws:
        IOException
      • setNameBytes

        public Gnmi.ModelData.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Name of the model.
         
        string name = 1;
      • getOrganizationBytes

        public com.google.protobuf.ByteString getOrganizationBytes()
         Organization publishing the model.
         
        string organization = 2;
        Specified by:
        getOrganizationBytes in interface Gnmi.ModelDataOrBuilder
      • setOrganization

        public Gnmi.ModelData.Builder setOrganization​(String value)
         Organization publishing the model.
         
        string organization = 2;
      • clearOrganization

        public Gnmi.ModelData.Builder clearOrganization()
         Organization publishing the model.
         
        string organization = 2;
      • setOrganizationBytes

        public Gnmi.ModelData.Builder setOrganizationBytes​(com.google.protobuf.ByteString value)
         Organization publishing the model.
         
        string organization = 2;
      • getVersionBytes

        public com.google.protobuf.ByteString getVersionBytes()
         Semantic version of the model.
         
        string version = 3;
        Specified by:
        getVersionBytes in interface Gnmi.ModelDataOrBuilder
      • clearVersion

        public Gnmi.ModelData.Builder clearVersion()
         Semantic version of the model.
         
        string version = 3;
      • setVersionBytes

        public Gnmi.ModelData.Builder setVersionBytes​(com.google.protobuf.ByteString value)
         Semantic version of the model.
         
        string version = 3;
      • setUnknownFields

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

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