Class Generated.APIResource

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, Generated.APIResourceOrBuilder
    Enclosing class:
    Generated

    public static final class Generated.APIResource
    extends com.google.protobuf.GeneratedMessageV3
    implements Generated.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:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Generated.APIResource.Builder
      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<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,​BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,​BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, 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
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance 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 Generated.APIResourceOrBuilder
        Returns:
        Whether the name field is set.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         name is the plural name of the resource.
         
        optional string name = 1;
        Specified by:
        getNameBytes in interface Generated.APIResourceOrBuilder
        Returns:
        The bytes for name.
      • 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 Generated.APIResourceOrBuilder
        Returns:
        Whether the singularName field is set.
      • 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 Generated.APIResourceOrBuilder
        Returns:
        The singularName.
      • 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 Generated.APIResourceOrBuilder
        Returns:
        The bytes for singularName.
      • hasNamespaced

        public boolean hasNamespaced()
         namespaced indicates if a resource is namespaced or not.
         
        optional bool namespaced = 2;
        Specified by:
        hasNamespaced in interface Generated.APIResourceOrBuilder
        Returns:
        Whether the namespaced field is set.
      • getNamespaced

        public boolean getNamespaced()
         namespaced indicates if a resource is namespaced or not.
         
        optional bool namespaced = 2;
        Specified by:
        getNamespaced in interface Generated.APIResourceOrBuilder
        Returns:
        The namespaced.
      • 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 Generated.APIResourceOrBuilder
        Returns:
        Whether the group field is set.
      • 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 Generated.APIResourceOrBuilder
        Returns:
        The group.
      • 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 Generated.APIResourceOrBuilder
        Returns:
        The bytes for group.
      • 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 Generated.APIResourceOrBuilder
        Returns:
        Whether the version field is set.
      • 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 Generated.APIResourceOrBuilder
        Returns:
        The version.
      • 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 Generated.APIResourceOrBuilder
        Returns:
        The bytes for version.
      • 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 Generated.APIResourceOrBuilder
        Returns:
        Whether the kind field is set.
      • 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 Generated.APIResourceOrBuilder
        Returns:
        The kind.
      • 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 Generated.APIResourceOrBuilder
        Returns:
        The bytes for kind.
      • 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 Generated.APIResourceOrBuilder
        Returns:
        Whether the verbs field is set.
      • getVerbs

        public Generated.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 Generated.APIResourceOrBuilder
        Returns:
        The verbs.
      • getShortNamesList

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

        public int getShortNamesCount()
         shortNames is a list of suggested short names of the resource.
         +listType=atomic
         
        repeated string shortNames = 5;
        Specified by:
        getShortNamesCount in interface Generated.APIResourceOrBuilder
        Returns:
        The count of shortNames.
      • getShortNames

        public String getShortNames​(int index)
         shortNames is a list of suggested short names of the resource.
         +listType=atomic
         
        repeated string shortNames = 5;
        Specified by:
        getShortNames in interface Generated.APIResourceOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The shortNames at the given index.
      • getShortNamesBytes

        public com.google.protobuf.ByteString getShortNamesBytes​(int index)
         shortNames is a list of suggested short names of the resource.
         +listType=atomic
         
        repeated string shortNames = 5;
        Specified by:
        getShortNamesBytes in interface Generated.APIResourceOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the shortNames at the given index.
      • getCategoriesList

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

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

        public String getCategories​(int index)
         categories is a list of the grouped resources this resource belongs to (e.g. 'all')
         +listType=atomic
         
        repeated string categories = 7;
        Specified by:
        getCategories in interface Generated.APIResourceOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The categories at the given index.
      • getCategoriesBytes

        public com.google.protobuf.ByteString getCategoriesBytes​(int index)
         categories is a list of the grouped resources this resource belongs to (e.g. 'all')
         +listType=atomic
         
        repeated string categories = 7;
        Specified by:
        getCategoriesBytes in interface Generated.APIResourceOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the categories at the given index.
      • 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 Generated.APIResourceOrBuilder
        Returns:
        Whether the storageVersionHash field is set.
      • 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 Generated.APIResourceOrBuilder
        Returns:
        The storageVersionHash.
      • 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 Generated.APIResourceOrBuilder
        Returns:
        The bytes for storageVersionHash.
      • 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 Generated.APIResource parseFrom​(ByteBuffer data)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

        public static Generated.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 Generated.APIResource parseFrom​(byte[] data)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

        protected Generated.APIResource.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<Generated.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 Generated.APIResource getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder