Class Generated.APIResource.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Generated.APIResource.Builder>
-
- k8s.io.apimachinery.pkg.apis.meta.v1.Generated.APIResource.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Generated.APIResourceOrBuilder
- Enclosing class:
- Generated.APIResource
public static final class Generated.APIResource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.APIResource.Builder> implements Generated.APIResourceOrBuilder
APIResource specifies the name of a resource and whether it is namespaced.
Protobuf typek8s.io.apimachinery.pkg.apis.meta.v1.APIResource
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Generated.APIResource.BuilderaddAllCategories(Iterable<String> values)categories is a list of the grouped resources this resource belongs to (e.g.Generated.APIResource.BuilderaddAllShortNames(Iterable<String> values)shortNames is a list of suggested short names of the resource.Generated.APIResource.BuilderaddCategories(String value)categories is a list of the grouped resources this resource belongs to (e.g.Generated.APIResource.BuilderaddCategoriesBytes(com.google.protobuf.ByteString value)categories is a list of the grouped resources this resource belongs to (e.g.Generated.APIResource.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.APIResource.BuilderaddShortNames(String value)shortNames is a list of suggested short names of the resource.Generated.APIResource.BuilderaddShortNamesBytes(com.google.protobuf.ByteString value)shortNames is a list of suggested short names of the resource.Generated.APIResourcebuild()Generated.APIResourcebuildPartial()Generated.APIResource.Builderclear()Generated.APIResource.BuilderclearCategories()categories is a list of the grouped resources this resource belongs to (e.g.Generated.APIResource.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Generated.APIResource.BuilderclearGroup()group is the preferred group of the resource.Generated.APIResource.BuilderclearKind()kind is the kind for the resource (e.g.Generated.APIResource.BuilderclearName()name is the plural name of the resource.Generated.APIResource.BuilderclearNamespaced()namespaced indicates if a resource is namespaced or not.Generated.APIResource.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Generated.APIResource.BuilderclearShortNames()shortNames is a list of suggested short names of the resource.Generated.APIResource.BuilderclearSingularName()singularName is the singular name of the resource.Generated.APIResource.BuilderclearStorageVersionHash()The hash value of the storage version, the version this resource is converted to when written to the data store.Generated.APIResource.BuilderclearVerbs()verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)Generated.APIResource.BuilderclearVersion()version is the preferred version of the resource.Generated.APIResource.Builderclone()StringgetCategories(int index)categories is a list of the grouped resources this resource belongs to (e.g.com.google.protobuf.ByteStringgetCategoriesBytes(int index)categories is a list of the grouped resources this resource belongs to (e.g.intgetCategoriesCount()categories is a list of the grouped resources this resource belongs to (e.g.com.google.protobuf.ProtocolStringListgetCategoriesList()categories is a list of the grouped resources this resource belongs to (e.g.Generated.APIResourcegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetGroup()group is the preferred group of the resource.com.google.protobuf.ByteStringgetGroupBytes()group is the preferred group of the resource.StringgetKind()kind is the kind for the resource (e.g.com.google.protobuf.ByteStringgetKindBytes()kind is the kind for the resource (e.g.StringgetName()name is the plural name of the resource.com.google.protobuf.ByteStringgetNameBytes()name is the plural name of the resource.booleangetNamespaced()namespaced indicates if a resource is namespaced or not.StringgetShortNames(int index)shortNames is a list of suggested short names of the resource.com.google.protobuf.ByteStringgetShortNamesBytes(int index)shortNames is a list of suggested short names of the resource.intgetShortNamesCount()shortNames is a list of suggested short names of the resource.com.google.protobuf.ProtocolStringListgetShortNamesList()shortNames is a list of suggested short names of the resource.StringgetSingularName()singularName is the singular name of the resource.com.google.protobuf.ByteStringgetSingularNameBytes()singularName is the singular name of the resource.StringgetStorageVersionHash()The hash value of the storage version, the version this resource is converted to when written to the data store.com.google.protobuf.ByteStringgetStorageVersionHashBytes()The hash value of the storage version, the version this resource is converted to when written to the data store.Generated.VerbsgetVerbs()verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)Generated.Verbs.BuildergetVerbsBuilder()verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)Generated.VerbsOrBuildergetVerbsOrBuilder()verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)StringgetVersion()version is the preferred version of the resource.com.google.protobuf.ByteStringgetVersionBytes()version is the preferred version of the resource.booleanhasGroup()group is the preferred group of the resource.booleanhasKind()kind is the kind for the resource (e.g.booleanhasName()name is the plural name of the resource.booleanhasNamespaced()namespaced indicates if a resource is namespaced or not.booleanhasSingularName()singularName is the singular name of the resource.booleanhasStorageVersionHash()The hash value of the storage version, the version this resource is converted to when written to the data store.booleanhasVerbs()verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)booleanhasVersion()version is the preferred version of the resource.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Generated.APIResource.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Generated.APIResource.BuildermergeFrom(com.google.protobuf.Message other)Generated.APIResource.BuildermergeFrom(Generated.APIResource other)Generated.APIResource.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.APIResource.BuildermergeVerbs(Generated.Verbs value)verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)Generated.APIResource.BuildersetCategories(int index, String value)categories is a list of the grouped resources this resource belongs to (e.g.Generated.APIResource.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.APIResource.BuildersetGroup(String value)group is the preferred group of the resource.Generated.APIResource.BuildersetGroupBytes(com.google.protobuf.ByteString value)group is the preferred group of the resource.Generated.APIResource.BuildersetKind(String value)kind is the kind for the resource (e.g.Generated.APIResource.BuildersetKindBytes(com.google.protobuf.ByteString value)kind is the kind for the resource (e.g.Generated.APIResource.BuildersetName(String value)name is the plural name of the resource.Generated.APIResource.BuildersetNameBytes(com.google.protobuf.ByteString value)name is the plural name of the resource.Generated.APIResource.BuildersetNamespaced(boolean value)namespaced indicates if a resource is namespaced or not.Generated.APIResource.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Generated.APIResource.BuildersetShortNames(int index, String value)shortNames is a list of suggested short names of the resource.Generated.APIResource.BuildersetSingularName(String value)singularName is the singular name of the resource.Generated.APIResource.BuildersetSingularNameBytes(com.google.protobuf.ByteString value)singularName is the singular name of the resource.Generated.APIResource.BuildersetStorageVersionHash(String value)The hash value of the storage version, the version this resource is converted to when written to the data store.Generated.APIResource.BuildersetStorageVersionHashBytes(com.google.protobuf.ByteString value)The hash value of the storage version, the version this resource is converted to when written to the data store.Generated.APIResource.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.APIResource.BuildersetVerbs(Generated.Verbs value)verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)Generated.APIResource.BuildersetVerbs(Generated.Verbs.Builder builderForValue)verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)Generated.APIResource.BuildersetVersion(String value)version is the preferred version of the resource.Generated.APIResource.BuildersetVersionBytes(com.google.protobuf.ByteString value)version is the preferred version of the resource.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.APIResource.Builder>
-
clear
public Generated.APIResource.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.APIResource.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.APIResource.Builder>
-
getDefaultInstanceForType
public Generated.APIResource getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Generated.APIResource build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Generated.APIResource buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Generated.APIResource.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.APIResource.Builder>
-
setField
public Generated.APIResource.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.APIResource.Builder>
-
clearField
public Generated.APIResource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.APIResource.Builder>
-
clearOneof
public Generated.APIResource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.APIResource.Builder>
-
setRepeatedField
public Generated.APIResource.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.APIResource.Builder>
-
addRepeatedField
public Generated.APIResource.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.APIResource.Builder>
-
mergeFrom
public Generated.APIResource.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.APIResource.Builder>
-
mergeFrom
public Generated.APIResource.Builder mergeFrom(Generated.APIResource other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.APIResource.Builder>
-
mergeFrom
public Generated.APIResource.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.APIResource.Builder>- Throws:
IOException
-
hasName
public boolean hasName()
name is the plural name of the resource.
optional string name = 1;- Specified by:
hasNamein interfaceGenerated.APIResourceOrBuilder- Returns:
- Whether the name field is set.
-
getName
public String getName()
name is the plural name of the resource.
optional string name = 1;- Specified by:
getNamein interfaceGenerated.APIResourceOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
name is the plural name of the resource.
optional string name = 1;- Specified by:
getNameBytesin interfaceGenerated.APIResourceOrBuilder- Returns:
- The bytes for name.
-
setName
public Generated.APIResource.Builder setName(String value)
name is the plural name of the resource.
optional string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Generated.APIResource.Builder clearName()
name is the plural name of the resource.
optional string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public Generated.APIResource.Builder setNameBytes(com.google.protobuf.ByteString value)
name is the plural name of the resource.
optional string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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:
hasSingularNamein interfaceGenerated.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:
getSingularNamein interfaceGenerated.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:
getSingularNameBytesin interfaceGenerated.APIResourceOrBuilder- Returns:
- The bytes for singularName.
-
setSingularName
public Generated.APIResource.Builder setSingularName(String value)
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;- Parameters:
value- The singularName to set.- Returns:
- This builder for chaining.
-
clearSingularName
public Generated.APIResource.Builder clearSingularName()
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;- Returns:
- This builder for chaining.
-
setSingularNameBytes
public Generated.APIResource.Builder setSingularNameBytes(com.google.protobuf.ByteString value)
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;- Parameters:
value- The bytes for singularName to set.- Returns:
- This builder for chaining.
-
hasNamespaced
public boolean hasNamespaced()
namespaced indicates if a resource is namespaced or not.
optional bool namespaced = 2;- Specified by:
hasNamespacedin interfaceGenerated.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:
getNamespacedin interfaceGenerated.APIResourceOrBuilder- Returns:
- The namespaced.
-
setNamespaced
public Generated.APIResource.Builder setNamespaced(boolean value)
namespaced indicates if a resource is namespaced or not.
optional bool namespaced = 2;- Parameters:
value- The namespaced to set.- Returns:
- This builder for chaining.
-
clearNamespaced
public Generated.APIResource.Builder clearNamespaced()
namespaced indicates if a resource is namespaced or not.
optional bool namespaced = 2;- Returns:
- This builder for chaining.
-
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:
hasGroupin interfaceGenerated.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:
getGroupin interfaceGenerated.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:
getGroupBytesin interfaceGenerated.APIResourceOrBuilder- Returns:
- The bytes for group.
-
setGroup
public Generated.APIResource.Builder setGroup(String value)
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;- Parameters:
value- The group to set.- Returns:
- This builder for chaining.
-
clearGroup
public Generated.APIResource.Builder clearGroup()
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;- Returns:
- This builder for chaining.
-
setGroupBytes
public Generated.APIResource.Builder setGroupBytes(com.google.protobuf.ByteString value)
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;- Parameters:
value- The bytes for group to set.- Returns:
- This builder for chaining.
-
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:
hasVersionin interfaceGenerated.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:
getVersionin interfaceGenerated.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:
getVersionBytesin interfaceGenerated.APIResourceOrBuilder- Returns:
- The bytes for version.
-
setVersion
public Generated.APIResource.Builder setVersion(String value)
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;- Parameters:
value- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
public Generated.APIResource.Builder clearVersion()
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;- Returns:
- This builder for chaining.
-
setVersionBytes
public Generated.APIResource.Builder setVersionBytes(com.google.protobuf.ByteString value)
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;- Parameters:
value- The bytes for version to set.- Returns:
- This builder for chaining.
-
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:
hasKindin interfaceGenerated.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:
getKindin interfaceGenerated.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:
getKindBytesin interfaceGenerated.APIResourceOrBuilder- Returns:
- The bytes for kind.
-
setKind
public Generated.APIResource.Builder setKind(String value)
kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')
optional string kind = 3;- Parameters:
value- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
public Generated.APIResource.Builder clearKind()
kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')
optional string kind = 3;- Returns:
- This builder for chaining.
-
setKindBytes
public Generated.APIResource.Builder setKindBytes(com.google.protobuf.ByteString value)
kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')
optional string kind = 3;- Parameters:
value- The bytes for kind to set.- Returns:
- This builder for chaining.
-
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:
hasVerbsin interfaceGenerated.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:
getVerbsin interfaceGenerated.APIResourceOrBuilder- Returns:
- The verbs.
-
setVerbs
public Generated.APIResource.Builder setVerbs(Generated.Verbs value)
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;
-
setVerbs
public Generated.APIResource.Builder setVerbs(Generated.Verbs.Builder builderForValue)
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;
-
mergeVerbs
public Generated.APIResource.Builder mergeVerbs(Generated.Verbs value)
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;
-
clearVerbs
public Generated.APIResource.Builder clearVerbs()
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;
-
getVerbsBuilder
public Generated.Verbs.Builder getVerbsBuilder()
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
public Generated.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:
getVerbsOrBuilderin interfaceGenerated.APIResourceOrBuilder
-
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:
getShortNamesListin interfaceGenerated.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:
getShortNamesCountin interfaceGenerated.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:
getShortNamesin interfaceGenerated.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:
getShortNamesBytesin interfaceGenerated.APIResourceOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the shortNames at the given index.
-
setShortNames
public Generated.APIResource.Builder setShortNames(int index, String value)
shortNames is a list of suggested short names of the resource. +listType=atomic
repeated string shortNames = 5;- Parameters:
index- The index to set the value at.value- The shortNames to set.- Returns:
- This builder for chaining.
-
addShortNames
public Generated.APIResource.Builder addShortNames(String value)
shortNames is a list of suggested short names of the resource. +listType=atomic
repeated string shortNames = 5;- Parameters:
value- The shortNames to add.- Returns:
- This builder for chaining.
-
addAllShortNames
public Generated.APIResource.Builder addAllShortNames(Iterable<String> values)
shortNames is a list of suggested short names of the resource. +listType=atomic
repeated string shortNames = 5;- Parameters:
values- The shortNames to add.- Returns:
- This builder for chaining.
-
clearShortNames
public Generated.APIResource.Builder clearShortNames()
shortNames is a list of suggested short names of the resource. +listType=atomic
repeated string shortNames = 5;- Returns:
- This builder for chaining.
-
addShortNamesBytes
public Generated.APIResource.Builder addShortNamesBytes(com.google.protobuf.ByteString value)
shortNames is a list of suggested short names of the resource. +listType=atomic
repeated string shortNames = 5;- Parameters:
value- The bytes of the shortNames to add.- Returns:
- This builder for chaining.
-
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:
getCategoriesListin interfaceGenerated.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:
getCategoriesCountin interfaceGenerated.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:
getCategoriesin interfaceGenerated.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:
getCategoriesBytesin interfaceGenerated.APIResourceOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the categories at the given index.
-
setCategories
public Generated.APIResource.Builder setCategories(int index, String value)
categories is a list of the grouped resources this resource belongs to (e.g. 'all') +listType=atomic
repeated string categories = 7;- Parameters:
index- The index to set the value at.value- The categories to set.- Returns:
- This builder for chaining.
-
addCategories
public Generated.APIResource.Builder addCategories(String value)
categories is a list of the grouped resources this resource belongs to (e.g. 'all') +listType=atomic
repeated string categories = 7;- Parameters:
value- The categories to add.- Returns:
- This builder for chaining.
-
addAllCategories
public Generated.APIResource.Builder addAllCategories(Iterable<String> values)
categories is a list of the grouped resources this resource belongs to (e.g. 'all') +listType=atomic
repeated string categories = 7;- Parameters:
values- The categories to add.- Returns:
- This builder for chaining.
-
clearCategories
public Generated.APIResource.Builder clearCategories()
categories is a list of the grouped resources this resource belongs to (e.g. 'all') +listType=atomic
repeated string categories = 7;- Returns:
- This builder for chaining.
-
addCategoriesBytes
public Generated.APIResource.Builder addCategoriesBytes(com.google.protobuf.ByteString value)
categories is a list of the grouped resources this resource belongs to (e.g. 'all') +listType=atomic
repeated string categories = 7;- Parameters:
value- The bytes of the categories to add.- Returns:
- This builder for chaining.
-
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:
hasStorageVersionHashin interfaceGenerated.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:
getStorageVersionHashin interfaceGenerated.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:
getStorageVersionHashBytesin interfaceGenerated.APIResourceOrBuilder- Returns:
- The bytes for storageVersionHash.
-
setStorageVersionHash
public Generated.APIResource.Builder setStorageVersionHash(String value)
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;- Parameters:
value- The storageVersionHash to set.- Returns:
- This builder for chaining.
-
clearStorageVersionHash
public Generated.APIResource.Builder clearStorageVersionHash()
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;- Returns:
- This builder for chaining.
-
setStorageVersionHashBytes
public Generated.APIResource.Builder setStorageVersionHashBytes(com.google.protobuf.ByteString value)
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;- Parameters:
value- The bytes for storageVersionHash to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Generated.APIResource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.APIResource.Builder>
-
mergeUnknownFields
public final Generated.APIResource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.APIResource.Builder>
-
-