Package io.kubernetes.client.proto
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 ClassesModifier and TypeClassDescriptionstatic 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<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
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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 TypeMethodDescriptionboolean
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 Meta.APIResource
static final com.google.protobuf.Descriptors.Descriptor
getGroup()
group is the preferred group of the resource.com.google.protobuf.ByteString
group is the preferred group of the resource.getKind()
kind is the kind for the resource (e.g.com.google.protobuf.ByteString
kind is the kind for the resource (e.g.getName()
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
getVerbs()
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
hasGroup()
group is the preferred group of the resource.int
hashCode()
boolean
hasKind()
kind is the kind for the resource (e.g.boolean
hasName()
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
hasVerbs()
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
static Meta.APIResource.Builder
static Meta.APIResource.Builder
newBuilder
(Meta.APIResource prototype) protected Meta.APIResource.Builder
newBuilderForType
(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) static Meta.APIResource
parseDelimitedFrom
(InputStream input) static Meta.APIResource
parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Meta.APIResource
parseFrom
(byte[] data) static Meta.APIResource
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Meta.APIResource
parseFrom
(com.google.protobuf.ByteString data) static Meta.APIResource
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Meta.APIResource
parseFrom
(com.google.protobuf.CodedInputStream input) static Meta.APIResource
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Meta.APIResource
parseFrom
(InputStream input) static Meta.APIResource
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Meta.APIResource
parseFrom
(ByteBuffer data) static Meta.APIResource
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Meta.APIResource>
parser()
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, makeMutableCopy, 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
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
SINGULARNAME_FIELD_NUMBER
public static final int SINGULARNAME_FIELD_NUMBER- See Also:
-
NAMESPACED_FIELD_NUMBER
public static final int NAMESPACED_FIELD_NUMBER- See Also:
-
GROUP_FIELD_NUMBER
public static final int GROUP_FIELD_NUMBER- See Also:
-
VERSION_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER- See Also:
-
KIND_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER- See Also:
-
VERBS_FIELD_NUMBER
public static final int VERBS_FIELD_NUMBER- See Also:
-
SHORTNAMES_FIELD_NUMBER
public static final int SHORTNAMES_FIELD_NUMBER- See Also:
-
CATEGORIES_FIELD_NUMBER
public static final int CATEGORIES_FIELD_NUMBER- See Also:
-
STORAGEVERSIONHASH_FIELD_NUMBER
public static final int STORAGEVERSIONHASH_FIELD_NUMBER- See Also:
-
PARSER
Deprecated.
-
-
Method Details
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()- Specified by:
getUnknownFields
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getUnknownFields
in classcom.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 classcom.google.protobuf.GeneratedMessageV3
-
hasName
public boolean hasName()name is the plural name of the resource.
optional string name = 1;
- Specified by:
hasName
in interfaceMeta.APIResourceOrBuilder
-
getName
name is the plural name of the resource.
optional string name = 1;
- Specified by:
getName
in interfaceMeta.APIResourceOrBuilder
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()name is the plural name of the resource.
optional string name = 1;
- Specified by:
getNameBytes
in interfaceMeta.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 interfaceMeta.APIResourceOrBuilder
-
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 interfaceMeta.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 interfaceMeta.APIResourceOrBuilder
-
hasNamespaced
public boolean hasNamespaced()namespaced indicates if a resource is namespaced or not.
optional bool namespaced = 2;
- Specified by:
hasNamespaced
in interfaceMeta.APIResourceOrBuilder
-
getNamespaced
public boolean getNamespaced()namespaced indicates if a resource is namespaced or not.
optional bool namespaced = 2;
- Specified by:
getNamespaced
in interfaceMeta.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 interfaceMeta.APIResourceOrBuilder
-
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 interfaceMeta.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 interfaceMeta.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 interfaceMeta.APIResourceOrBuilder
-
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 interfaceMeta.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 interfaceMeta.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 interfaceMeta.APIResourceOrBuilder
-
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 interfaceMeta.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 interfaceMeta.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 interfaceMeta.APIResourceOrBuilder
-
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 interfaceMeta.APIResourceOrBuilder
-
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 interfaceMeta.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 interfaceMeta.APIResourceOrBuilder
-
getShortNamesCount
public int getShortNamesCount()shortNames is a list of suggested short names of the resource.
repeated string shortNames = 5;
- Specified by:
getShortNamesCount
in interfaceMeta.APIResourceOrBuilder
-
getShortNames
shortNames is a list of suggested short names of the resource.
repeated string shortNames = 5;
- Specified by:
getShortNames
in interfaceMeta.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 interfaceMeta.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 interfaceMeta.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 interfaceMeta.APIResourceOrBuilder
-
getCategories
categories is a list of the grouped resources this resource belongs to (e.g. 'all')
repeated string categories = 7;
- Specified by:
getCategories
in interfaceMeta.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 interfaceMeta.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 interfaceMeta.APIResourceOrBuilder
-
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 interfaceMeta.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 interfaceMeta.APIResourceOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.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
- Throws:
IOException
-
parseFrom
public static Meta.APIResource parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Meta.APIResource.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-