Class Meta.APIResource

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.kubernetes.client.proto.Meta.APIResource
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Meta.APIResourceOrBuilder, Serializable
Enclosing class:
Meta

public static final class Meta.APIResource extends com.google.protobuf.GeneratedMessageV3 implements Meta.APIResourceOrBuilder
 APIResource specifies the name of a resource and whether it is namespaced.
 
Protobuf type k8s.io.apimachinery.pkg.apis.meta.v1.APIResource
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    APIResource specifies the name of a resource and whether it is namespaced.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

    com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final com.google.protobuf.Parser<Meta.APIResource>
    Deprecated.
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageV3

    alwaysUseFieldBuilders, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    getCategories(int index)
    categories is a list of the grouped resources this resource belongs to (e.g.
    com.google.protobuf.ByteString
    getCategoriesBytes(int index)
    categories is a list of the grouped resources this resource belongs to (e.g.
    int
    categories is a list of the grouped resources this resource belongs to (e.g.
    com.google.protobuf.ProtocolStringList
    categories is a list of the grouped resources this resource belongs to (e.g.
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    group is the preferred group of the resource.
    com.google.protobuf.ByteString
    group is the preferred group of the resource.
    kind is the kind for the resource (e.g.
    com.google.protobuf.ByteString
    kind is the kind for the resource (e.g.
    name is the plural name of the resource.
    com.google.protobuf.ByteString
    name is the plural name of the resource.
    boolean
    namespaced indicates if a resource is namespaced or not.
    com.google.protobuf.Parser<Meta.APIResource>
     
    int
     
    getShortNames(int index)
    shortNames is a list of suggested short names of the resource.
    com.google.protobuf.ByteString
    getShortNamesBytes(int index)
    shortNames is a list of suggested short names of the resource.
    int
    shortNames is a list of suggested short names of the resource.
    com.google.protobuf.ProtocolStringList
    shortNames is a list of suggested short names of the resource.
    singularName is the singular name of the resource.
    com.google.protobuf.ByteString
    singularName is the singular name of the resource.
    The hash value of the storage version, the version this resource is converted to when written to the data store.
    com.google.protobuf.ByteString
    The hash value of the storage version, the version this resource is converted to when written to the data store.
    final com.google.protobuf.UnknownFieldSet
     
    verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)
    verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)
    version is the preferred version of the resource.
    com.google.protobuf.ByteString
    version is the preferred version of the resource.
    boolean
    group is the preferred group of the resource.
    int
     
    boolean
    kind is the kind for the resource (e.g.
    boolean
    name is the plural name of the resource.
    boolean
    namespaced indicates if a resource is namespaced or not.
    boolean
    singularName is the singular name of the resource.
    boolean
    The hash value of the storage version, the version this resource is converted to when written to the data store.
    boolean
    verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)
    boolean
    version is the preferred version of the resource.
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<Meta.APIResource>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessageV3

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newInstance, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
  • Field Details

  • Method Details

    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields in class com.google.protobuf.GeneratedMessageV3
    • 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
    • hasName

      public boolean hasName()
       name is the plural name of the resource.
       
      optional string name = 1;
      Specified by:
      hasName in interface Meta.APIResourceOrBuilder
    • getName

      public String getName()
       name is the plural name of the resource.
       
      optional string name = 1;
      Specified by:
      getName in interface Meta.APIResourceOrBuilder
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       name is the plural name of the resource.
       
      optional string name = 1;
      Specified by:
      getNameBytes in interface Meta.APIResourceOrBuilder
    • hasSingularName

      public boolean hasSingularName()
       singularName is the singular name of the resource.  This allows clients to handle plural and singular opaquely.
       The singularName is more correct for reporting status on a single item and both singular and plural are allowed
       from the kubectl CLI interface.
       
      optional string singularName = 6;
      Specified by:
      hasSingularName in interface Meta.APIResourceOrBuilder
    • getSingularName

      public String getSingularName()
       singularName is the singular name of the resource.  This allows clients to handle plural and singular opaquely.
       The singularName is more correct for reporting status on a single item and both singular and plural are allowed
       from the kubectl CLI interface.
       
      optional string singularName = 6;
      Specified by:
      getSingularName in interface Meta.APIResourceOrBuilder
    • getSingularNameBytes

      public com.google.protobuf.ByteString getSingularNameBytes()
       singularName is the singular name of the resource.  This allows clients to handle plural and singular opaquely.
       The singularName is more correct for reporting status on a single item and both singular and plural are allowed
       from the kubectl CLI interface.
       
      optional string singularName = 6;
      Specified by:
      getSingularNameBytes in interface Meta.APIResourceOrBuilder
    • hasNamespaced

      public boolean hasNamespaced()
       namespaced indicates if a resource is namespaced or not.
       
      optional bool namespaced = 2;
      Specified by:
      hasNamespaced in interface Meta.APIResourceOrBuilder
    • getNamespaced

      public boolean getNamespaced()
       namespaced indicates if a resource is namespaced or not.
       
      optional bool namespaced = 2;
      Specified by:
      getNamespaced in interface Meta.APIResourceOrBuilder
    • hasGroup

      public boolean hasGroup()
       group is the preferred group of the resource.  Empty implies the group of the containing resource list.
       For subresources, this may have a different value, for example: Scale".
       
      optional string group = 8;
      Specified by:
      hasGroup in interface Meta.APIResourceOrBuilder
    • getGroup

      public String getGroup()
       group is the preferred group of the resource.  Empty implies the group of the containing resource list.
       For subresources, this may have a different value, for example: Scale".
       
      optional string group = 8;
      Specified by:
      getGroup in interface Meta.APIResourceOrBuilder
    • getGroupBytes

      public com.google.protobuf.ByteString getGroupBytes()
       group is the preferred group of the resource.  Empty implies the group of the containing resource list.
       For subresources, this may have a different value, for example: Scale".
       
      optional string group = 8;
      Specified by:
      getGroupBytes in interface Meta.APIResourceOrBuilder
    • hasVersion

      public boolean hasVersion()
       version is the preferred version of the resource.  Empty implies the version of the containing resource list
       For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
       
      optional string version = 9;
      Specified by:
      hasVersion in interface Meta.APIResourceOrBuilder
    • getVersion

      public String getVersion()
       version is the preferred version of the resource.  Empty implies the version of the containing resource list
       For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
       
      optional string version = 9;
      Specified by:
      getVersion in interface Meta.APIResourceOrBuilder
    • getVersionBytes

      public com.google.protobuf.ByteString getVersionBytes()
       version is the preferred version of the resource.  Empty implies the version of the containing resource list
       For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
       
      optional string version = 9;
      Specified by:
      getVersionBytes in interface Meta.APIResourceOrBuilder
    • hasKind

      public boolean hasKind()
       kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')
       
      optional string kind = 3;
      Specified by:
      hasKind in interface Meta.APIResourceOrBuilder
    • getKind

      public String getKind()
       kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')
       
      optional string kind = 3;
      Specified by:
      getKind in interface Meta.APIResourceOrBuilder
    • getKindBytes

      public com.google.protobuf.ByteString getKindBytes()
       kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')
       
      optional string kind = 3;
      Specified by:
      getKindBytes in interface Meta.APIResourceOrBuilder
    • hasVerbs

      public boolean hasVerbs()
       verbs is a list of supported kube verbs (this includes get, list, watch, create,
       update, patch, delete, deletecollection, and proxy)
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.Verbs verbs = 4;
      Specified by:
      hasVerbs in interface Meta.APIResourceOrBuilder
    • getVerbs

      public Meta.Verbs getVerbs()
       verbs is a list of supported kube verbs (this includes get, list, watch, create,
       update, patch, delete, deletecollection, and proxy)
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.Verbs verbs = 4;
      Specified by:
      getVerbs in interface Meta.APIResourceOrBuilder
    • getVerbsOrBuilder

      public Meta.VerbsOrBuilder getVerbsOrBuilder()
       verbs is a list of supported kube verbs (this includes get, list, watch, create,
       update, patch, delete, deletecollection, and proxy)
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.Verbs verbs = 4;
      Specified by:
      getVerbsOrBuilder in interface Meta.APIResourceOrBuilder
    • getShortNamesList

      public com.google.protobuf.ProtocolStringList getShortNamesList()
       shortNames is a list of suggested short names of the resource.
       
      repeated string shortNames = 5;
      Specified by:
      getShortNamesList in interface Meta.APIResourceOrBuilder
    • getShortNamesCount

      public int getShortNamesCount()
       shortNames is a list of suggested short names of the resource.
       
      repeated string shortNames = 5;
      Specified by:
      getShortNamesCount in interface Meta.APIResourceOrBuilder
    • getShortNames

      public String getShortNames(int index)
       shortNames is a list of suggested short names of the resource.
       
      repeated string shortNames = 5;
      Specified by:
      getShortNames in interface Meta.APIResourceOrBuilder
    • getShortNamesBytes

      public com.google.protobuf.ByteString getShortNamesBytes(int index)
       shortNames is a list of suggested short names of the resource.
       
      repeated string shortNames = 5;
      Specified by:
      getShortNamesBytes in interface Meta.APIResourceOrBuilder
    • getCategoriesList

      public com.google.protobuf.ProtocolStringList getCategoriesList()
       categories is a list of the grouped resources this resource belongs to (e.g. 'all')
       
      repeated string categories = 7;
      Specified by:
      getCategoriesList in interface Meta.APIResourceOrBuilder
    • getCategoriesCount

      public int getCategoriesCount()
       categories is a list of the grouped resources this resource belongs to (e.g. 'all')
       
      repeated string categories = 7;
      Specified by:
      getCategoriesCount in interface Meta.APIResourceOrBuilder
    • getCategories

      public String getCategories(int index)
       categories is a list of the grouped resources this resource belongs to (e.g. 'all')
       
      repeated string categories = 7;
      Specified by:
      getCategories in interface Meta.APIResourceOrBuilder
    • getCategoriesBytes

      public com.google.protobuf.ByteString getCategoriesBytes(int index)
       categories is a list of the grouped resources this resource belongs to (e.g. 'all')
       
      repeated string categories = 7;
      Specified by:
      getCategoriesBytes in interface Meta.APIResourceOrBuilder
    • hasStorageVersionHash

      public boolean hasStorageVersionHash()
       The hash value of the storage version, the version this resource is
       converted to when written to the data store. Value must be treated
       as opaque by clients. Only equality comparison on the value is valid.
       This is an alpha feature and may change or be removed in the future.
       The field is populated by the apiserver only if the
       StorageVersionHash feature gate is enabled.
       This field will remain optional even if it graduates.
       +optional
       
      optional string storageVersionHash = 10;
      Specified by:
      hasStorageVersionHash in interface Meta.APIResourceOrBuilder
    • getStorageVersionHash

      public String getStorageVersionHash()
       The hash value of the storage version, the version this resource is
       converted to when written to the data store. Value must be treated
       as opaque by clients. Only equality comparison on the value is valid.
       This is an alpha feature and may change or be removed in the future.
       The field is populated by the apiserver only if the
       StorageVersionHash feature gate is enabled.
       This field will remain optional even if it graduates.
       +optional
       
      optional string storageVersionHash = 10;
      Specified by:
      getStorageVersionHash in interface Meta.APIResourceOrBuilder
    • getStorageVersionHashBytes

      public com.google.protobuf.ByteString getStorageVersionHashBytes()
       The hash value of the storage version, the version this resource is
       converted to when written to the data store. Value must be treated
       as opaque by clients. Only equality comparison on the value is valid.
       This is an alpha feature and may change or be removed in the future.
       The field is populated by the apiserver only if the
       StorageVersionHash feature gate is enabled.
       This field will remain optional even if it graduates.
       +optional
       
      optional string storageVersionHash = 10;
      Specified by:
      getStorageVersionHashBytes in interface Meta.APIResourceOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Meta.APIResource parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Meta.APIResource parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Meta.APIResource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Meta.APIResource parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Meta.APIResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Meta.APIResource parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Meta.APIResource parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Meta.APIResource parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Meta.APIResource parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Meta.APIResource parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Meta.APIResource parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Meta.APIResource parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Meta.APIResource.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Meta.APIResource.Builder newBuilder()
    • newBuilder

      public static Meta.APIResource.Builder newBuilder(Meta.APIResource prototype)
    • toBuilder

      public Meta.APIResource.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Meta.APIResource.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static Meta.APIResource getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Meta.APIResource> parser()
    • getParserForType

      public com.google.protobuf.Parser<Meta.APIResource> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

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