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| Modifier and Type | Class and Description |
|---|---|
static class |
Meta.APIResource.Builder
APIResource specifies the name of a resource and whether it is namespaced.
|
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| Modifier and Type | Field and Description |
|---|---|
static int |
CATEGORIES_FIELD_NUMBER |
static int |
GROUP_FIELD_NUMBER |
static int |
KIND_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
NAMESPACED_FIELD_NUMBER |
static com.google.protobuf.Parser<Meta.APIResource> |
PARSER
Deprecated.
|
static int |
SHORTNAMES_FIELD_NUMBER |
static int |
SINGULARNAME_FIELD_NUMBER |
static int |
STORAGEVERSIONHASH_FIELD_NUMBER |
static int |
VERBS_FIELD_NUMBER |
static int |
VERSION_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
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 |
getCategoriesCount()
categories is a list of the grouped resources this resource belongs to (e.g.
|
com.google.protobuf.ProtocolStringList |
getCategoriesList()
categories is a list of the grouped resources this resource belongs to (e.g.
|
static Meta.APIResource |
getDefaultInstance() |
Meta.APIResource |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getGroup()
group is the preferred group of the resource.
|
com.google.protobuf.ByteString |
getGroupBytes()
group is the preferred group of the resource.
|
String |
getKind()
kind is the kind for the resource (e.g.
|
com.google.protobuf.ByteString |
getKindBytes()
kind is the kind for the resource (e.g.
|
String |
getName()
name is the plural name of the resource.
|
com.google.protobuf.ByteString |
getNameBytes()
name is the plural name of the resource.
|
boolean |
getNamespaced()
namespaced indicates if a resource is namespaced or not.
|
com.google.protobuf.Parser<Meta.APIResource> |
getParserForType() |
int |
getSerializedSize() |
String |
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 |
getShortNamesCount()
shortNames is a list of suggested short names of the resource.
|
com.google.protobuf.ProtocolStringList |
getShortNamesList()
shortNames is a list of suggested short names of the resource.
|
String |
getSingularName()
singularName is the singular name of the resource.
|
com.google.protobuf.ByteString |
getSingularNameBytes()
singularName is the singular name of the resource.
|
String |
getStorageVersionHash()
The hash value of the storage version, the version this resource is
converted to when written to the data store.
|
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.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
Meta.Verbs |
getVerbs()
verbs is a list of supported kube verbs (this includes get, list, watch, create,
update, patch, delete, deletecollection, and proxy)
|
Meta.VerbsOrBuilder |
getVerbsOrBuilder()
verbs is a list of supported kube verbs (this includes get, list, watch, create,
update, patch, delete, deletecollection, and proxy)
|
String |
getVersion()
version is the preferred version of the resource.
|
com.google.protobuf.ByteString |
getVersionBytes()
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 |
hasNamespaced()
namespaced indicates if a resource is namespaced or not.
|
boolean |
hasSingularName()
singularName is the singular name of the resource.
|
boolean |
hasStorageVersionHash()
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 |
hasVersion()
version is the preferred version of the resource.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Meta.APIResource.Builder |
newBuilder() |
static Meta.APIResource.Builder |
newBuilder(Meta.APIResource prototype) |
Meta.APIResource.Builder |
newBuilderForType() |
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(ByteBuffer data) |
static Meta.APIResource |
parseFrom(ByteBuffer 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 com.google.protobuf.Parser<Meta.APIResource> |
parser() |
Meta.APIResource.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int SINGULARNAME_FIELD_NUMBER
public static final int NAMESPACED_FIELD_NUMBER
public static final int GROUP_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
public static final int VERBS_FIELD_NUMBER
public static final int SHORTNAMES_FIELD_NUMBER
public static final int CATEGORIES_FIELD_NUMBER
public static final int STORAGEVERSIONHASH_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<Meta.APIResource> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasName()
name is the plural name of the resource.
optional string name = 1;hasName in interface Meta.APIResourceOrBuilderpublic String getName()
name is the plural name of the resource.
optional string name = 1;getName in interface Meta.APIResourceOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
name is the plural name of the resource.
optional string name = 1;getNameBytes in interface Meta.APIResourceOrBuilderpublic 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;hasSingularName in interface Meta.APIResourceOrBuilderpublic 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;getSingularName in interface Meta.APIResourceOrBuilderpublic 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;getSingularNameBytes in interface Meta.APIResourceOrBuilderpublic boolean hasNamespaced()
namespaced indicates if a resource is namespaced or not.
optional bool namespaced = 2;hasNamespaced in interface Meta.APIResourceOrBuilderpublic boolean getNamespaced()
namespaced indicates if a resource is namespaced or not.
optional bool namespaced = 2;getNamespaced in interface Meta.APIResourceOrBuilderpublic 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;hasGroup in interface Meta.APIResourceOrBuilderpublic 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;getGroup in interface Meta.APIResourceOrBuilderpublic 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;getGroupBytes in interface Meta.APIResourceOrBuilderpublic 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;hasVersion in interface Meta.APIResourceOrBuilderpublic 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;getVersion in interface Meta.APIResourceOrBuilderpublic 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;getVersionBytes in interface Meta.APIResourceOrBuilderpublic boolean hasKind()
kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')
optional string kind = 3;hasKind in interface Meta.APIResourceOrBuilderpublic String getKind()
kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')
optional string kind = 3;getKind in interface Meta.APIResourceOrBuilderpublic 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;getKindBytes in interface Meta.APIResourceOrBuilderpublic 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;hasVerbs in interface Meta.APIResourceOrBuilderpublic 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;getVerbs in interface Meta.APIResourceOrBuilderpublic 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;getVerbsOrBuilder in interface Meta.APIResourceOrBuilderpublic com.google.protobuf.ProtocolStringList getShortNamesList()
shortNames is a list of suggested short names of the resource.
repeated string shortNames = 5;getShortNamesList in interface Meta.APIResourceOrBuilderpublic int getShortNamesCount()
shortNames is a list of suggested short names of the resource.
repeated string shortNames = 5;getShortNamesCount in interface Meta.APIResourceOrBuilderpublic String getShortNames(int index)
shortNames is a list of suggested short names of the resource.
repeated string shortNames = 5;getShortNames in interface Meta.APIResourceOrBuilderpublic com.google.protobuf.ByteString getShortNamesBytes(int index)
shortNames is a list of suggested short names of the resource.
repeated string shortNames = 5;getShortNamesBytes in interface Meta.APIResourceOrBuilderpublic com.google.protobuf.ProtocolStringList getCategoriesList()
categories is a list of the grouped resources this resource belongs to (e.g. 'all')
repeated string categories = 7;getCategoriesList in interface Meta.APIResourceOrBuilderpublic int getCategoriesCount()
categories is a list of the grouped resources this resource belongs to (e.g. 'all')
repeated string categories = 7;getCategoriesCount in interface Meta.APIResourceOrBuilderpublic String getCategories(int index)
categories is a list of the grouped resources this resource belongs to (e.g. 'all')
repeated string categories = 7;getCategories in interface Meta.APIResourceOrBuilderpublic 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;getCategoriesBytes in interface Meta.APIResourceOrBuilderpublic 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;hasStorageVersionHash in interface Meta.APIResourceOrBuilderpublic 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;getStorageVersionHash in interface Meta.APIResourceOrBuilderpublic 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;getStorageVersionHashBytes in interface Meta.APIResourceOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Meta.APIResource parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Meta.APIResource parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Meta.APIResource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Meta.APIResource parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Meta.APIResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Meta.APIResource parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Meta.APIResource parseFrom(InputStream input) throws IOException
IOExceptionpublic static Meta.APIResource parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Meta.APIResource parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Meta.APIResource parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Meta.APIResource parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Meta.APIResource parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Meta.APIResource.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Meta.APIResource.Builder newBuilder()
public static Meta.APIResource.Builder newBuilder(Meta.APIResource prototype)
public Meta.APIResource.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Meta.APIResource.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Meta.APIResource getDefaultInstance()
public static com.google.protobuf.Parser<Meta.APIResource> parser()
public com.google.protobuf.Parser<Meta.APIResource> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Meta.APIResource getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2020. All rights reserved.