Class Meta.GroupVersionForDiscovery.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Meta.GroupVersionForDiscovery.Builder>
io.kubernetes.client.proto.Meta.GroupVersionForDiscovery.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Meta.GroupVersionForDiscoveryOrBuilder, Cloneable
Enclosing class:
Meta.GroupVersionForDiscovery

public static final class Meta.GroupVersionForDiscovery.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Meta.GroupVersionForDiscovery.Builder> implements Meta.GroupVersionForDiscoveryOrBuilder
 GroupVersion contains the "group/version" and "version" string of a version.
 It is made a struct to keep extensibility.
 
Protobuf type k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery
  • Method Details

    • 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<Meta.GroupVersionForDiscovery.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<Meta.GroupVersionForDiscovery.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<Meta.GroupVersionForDiscovery.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Meta.GroupVersionForDiscovery buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<Meta.GroupVersionForDiscovery.Builder>
    • setField

      public Meta.GroupVersionForDiscovery.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<Meta.GroupVersionForDiscovery.Builder>
    • clearField

      public Meta.GroupVersionForDiscovery.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<Meta.GroupVersionForDiscovery.Builder>
    • clearOneof

      public Meta.GroupVersionForDiscovery.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<Meta.GroupVersionForDiscovery.Builder>
    • setRepeatedField

      public Meta.GroupVersionForDiscovery.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<Meta.GroupVersionForDiscovery.Builder>
    • addRepeatedField

      public Meta.GroupVersionForDiscovery.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<Meta.GroupVersionForDiscovery.Builder>
    • mergeFrom

      public Meta.GroupVersionForDiscovery.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<Meta.GroupVersionForDiscovery.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.GroupVersionForDiscovery.Builder>
    • mergeFrom

      public Meta.GroupVersionForDiscovery.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<Meta.GroupVersionForDiscovery.Builder>
      Throws:
      IOException
    • hasGroupVersion

      public boolean hasGroupVersion()
       groupVersion specifies the API group and version in the form "group/version"
       
      optional string groupVersion = 1;
      Specified by:
      hasGroupVersion in interface Meta.GroupVersionForDiscoveryOrBuilder
    • getGroupVersion

      public String getGroupVersion()
       groupVersion specifies the API group and version in the form "group/version"
       
      optional string groupVersion = 1;
      Specified by:
      getGroupVersion in interface Meta.GroupVersionForDiscoveryOrBuilder
    • getGroupVersionBytes

      public com.google.protobuf.ByteString getGroupVersionBytes()
       groupVersion specifies the API group and version in the form "group/version"
       
      optional string groupVersion = 1;
      Specified by:
      getGroupVersionBytes in interface Meta.GroupVersionForDiscoveryOrBuilder
    • setGroupVersion

      public Meta.GroupVersionForDiscovery.Builder setGroupVersion(String value)
       groupVersion specifies the API group and version in the form "group/version"
       
      optional string groupVersion = 1;
    • clearGroupVersion

      public Meta.GroupVersionForDiscovery.Builder clearGroupVersion()
       groupVersion specifies the API group and version in the form "group/version"
       
      optional string groupVersion = 1;
    • setGroupVersionBytes

      public Meta.GroupVersionForDiscovery.Builder setGroupVersionBytes(com.google.protobuf.ByteString value)
       groupVersion specifies the API group and version in the form "group/version"
       
      optional string groupVersion = 1;
    • hasVersion

      public boolean hasVersion()
       version specifies the version in the form of "version". This is to save
       the clients the trouble of splitting the GroupVersion.
       
      optional string version = 2;
      Specified by:
      hasVersion in interface Meta.GroupVersionForDiscoveryOrBuilder
    • getVersion

      public String getVersion()
       version specifies the version in the form of "version". This is to save
       the clients the trouble of splitting the GroupVersion.
       
      optional string version = 2;
      Specified by:
      getVersion in interface Meta.GroupVersionForDiscoveryOrBuilder
    • getVersionBytes

      public com.google.protobuf.ByteString getVersionBytes()
       version specifies the version in the form of "version". This is to save
       the clients the trouble of splitting the GroupVersion.
       
      optional string version = 2;
      Specified by:
      getVersionBytes in interface Meta.GroupVersionForDiscoveryOrBuilder
    • setVersion

      public Meta.GroupVersionForDiscovery.Builder setVersion(String value)
       version specifies the version in the form of "version". This is to save
       the clients the trouble of splitting the GroupVersion.
       
      optional string version = 2;
    • clearVersion

       version specifies the version in the form of "version". This is to save
       the clients the trouble of splitting the GroupVersion.
       
      optional string version = 2;
    • setVersionBytes

      public Meta.GroupVersionForDiscovery.Builder setVersionBytes(com.google.protobuf.ByteString value)
       version specifies the version in the form of "version". This is to save
       the clients the trouble of splitting the GroupVersion.
       
      optional string version = 2;
    • setUnknownFields

      public final Meta.GroupVersionForDiscovery.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<Meta.GroupVersionForDiscovery.Builder>
    • mergeUnknownFields

      public final Meta.GroupVersionForDiscovery.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<Meta.GroupVersionForDiscovery.Builder>