public static final class V1beta1Apiextensions.CustomResourceConversion.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder> implements V1beta1Apiextensions.CustomResourceConversionOrBuilder
CustomResourceConversion describes how to convert different versions of a CR.Protobuf type
k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceConversion| Modifier and Type | Method and Description |
|---|---|
V1beta1Apiextensions.CustomResourceConversion.Builder |
addAllConversionReviewVersions(Iterable<String> values)
conversionReviewVersions is an ordered list of preferred `ConversionReview`
versions the Webhook expects.
|
V1beta1Apiextensions.CustomResourceConversion.Builder |
addConversionReviewVersions(String value)
conversionReviewVersions is an ordered list of preferred `ConversionReview`
versions the Webhook expects.
|
V1beta1Apiextensions.CustomResourceConversion.Builder |
addConversionReviewVersionsBytes(com.google.protobuf.ByteString value)
conversionReviewVersions is an ordered list of preferred `ConversionReview`
versions the Webhook expects.
|
V1beta1Apiextensions.CustomResourceConversion.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1beta1Apiextensions.CustomResourceConversion |
build() |
V1beta1Apiextensions.CustomResourceConversion |
buildPartial() |
V1beta1Apiextensions.CustomResourceConversion.Builder |
clear() |
V1beta1Apiextensions.CustomResourceConversion.Builder |
clearConversionReviewVersions()
conversionReviewVersions is an ordered list of preferred `ConversionReview`
versions the Webhook expects.
|
V1beta1Apiextensions.CustomResourceConversion.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
V1beta1Apiextensions.CustomResourceConversion.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
V1beta1Apiextensions.CustomResourceConversion.Builder |
clearStrategy()
strategy specifies how custom resources are converted between versions.
|
V1beta1Apiextensions.CustomResourceConversion.Builder |
clearWebhookClientConfig()
webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`.
|
V1beta1Apiextensions.CustomResourceConversion.Builder |
clone() |
String |
getConversionReviewVersions(int index)
conversionReviewVersions is an ordered list of preferred `ConversionReview`
versions the Webhook expects.
|
com.google.protobuf.ByteString |
getConversionReviewVersionsBytes(int index)
conversionReviewVersions is an ordered list of preferred `ConversionReview`
versions the Webhook expects.
|
int |
getConversionReviewVersionsCount()
conversionReviewVersions is an ordered list of preferred `ConversionReview`
versions the Webhook expects.
|
com.google.protobuf.ProtocolStringList |
getConversionReviewVersionsList()
conversionReviewVersions is an ordered list of preferred `ConversionReview`
versions the Webhook expects.
|
V1beta1Apiextensions.CustomResourceConversion |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getStrategy()
strategy specifies how custom resources are converted between versions.
|
com.google.protobuf.ByteString |
getStrategyBytes()
strategy specifies how custom resources are converted between versions.
|
V1beta1Apiextensions.WebhookClientConfig |
getWebhookClientConfig()
webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`.
|
V1beta1Apiextensions.WebhookClientConfig.Builder |
getWebhookClientConfigBuilder()
webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`.
|
V1beta1Apiextensions.WebhookClientConfigOrBuilder |
getWebhookClientConfigOrBuilder()
webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`.
|
boolean |
hasStrategy()
strategy specifies how custom resources are converted between versions.
|
boolean |
hasWebhookClientConfig()
webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
V1beta1Apiextensions.CustomResourceConversion.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
V1beta1Apiextensions.CustomResourceConversion.Builder |
mergeFrom(com.google.protobuf.Message other) |
V1beta1Apiextensions.CustomResourceConversion.Builder |
mergeFrom(V1beta1Apiextensions.CustomResourceConversion other) |
V1beta1Apiextensions.CustomResourceConversion.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V1beta1Apiextensions.CustomResourceConversion.Builder |
mergeWebhookClientConfig(V1beta1Apiextensions.WebhookClientConfig value)
webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`.
|
V1beta1Apiextensions.CustomResourceConversion.Builder |
setConversionReviewVersions(int index,
String value)
conversionReviewVersions is an ordered list of preferred `ConversionReview`
versions the Webhook expects.
|
V1beta1Apiextensions.CustomResourceConversion.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1beta1Apiextensions.CustomResourceConversion.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
V1beta1Apiextensions.CustomResourceConversion.Builder |
setStrategy(String value)
strategy specifies how custom resources are converted between versions.
|
V1beta1Apiextensions.CustomResourceConversion.Builder |
setStrategyBytes(com.google.protobuf.ByteString value)
strategy specifies how custom resources are converted between versions.
|
V1beta1Apiextensions.CustomResourceConversion.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V1beta1Apiextensions.CustomResourceConversion.Builder |
setWebhookClientConfig(V1beta1Apiextensions.WebhookClientConfig.Builder builderForValue)
webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`.
|
V1beta1Apiextensions.CustomResourceConversion.Builder |
setWebhookClientConfig(V1beta1Apiextensions.WebhookClientConfig value)
webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>public V1beta1Apiextensions.CustomResourceConversion.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>public V1beta1Apiextensions.CustomResourceConversion getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic V1beta1Apiextensions.CustomResourceConversion build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic V1beta1Apiextensions.CustomResourceConversion buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic V1beta1Apiextensions.CustomResourceConversion.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>public V1beta1Apiextensions.CustomResourceConversion.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>public V1beta1Apiextensions.CustomResourceConversion.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>public V1beta1Apiextensions.CustomResourceConversion.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>public V1beta1Apiextensions.CustomResourceConversion.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>public V1beta1Apiextensions.CustomResourceConversion.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>public V1beta1Apiextensions.CustomResourceConversion.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>public V1beta1Apiextensions.CustomResourceConversion.Builder mergeFrom(V1beta1Apiextensions.CustomResourceConversion other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>public V1beta1Apiextensions.CustomResourceConversion.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>IOExceptionpublic boolean hasStrategy()
strategy specifies how custom resources are converted between versions. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhookClientConfig to be set.
optional string strategy = 1;hasStrategy in interface V1beta1Apiextensions.CustomResourceConversionOrBuilderpublic String getStrategy()
strategy specifies how custom resources are converted between versions. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhookClientConfig to be set.
optional string strategy = 1;getStrategy in interface V1beta1Apiextensions.CustomResourceConversionOrBuilderpublic com.google.protobuf.ByteString getStrategyBytes()
strategy specifies how custom resources are converted between versions. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhookClientConfig to be set.
optional string strategy = 1;getStrategyBytes in interface V1beta1Apiextensions.CustomResourceConversionOrBuilderpublic V1beta1Apiextensions.CustomResourceConversion.Builder setStrategy(String value)
strategy specifies how custom resources are converted between versions. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhookClientConfig to be set.
optional string strategy = 1;public V1beta1Apiextensions.CustomResourceConversion.Builder clearStrategy()
strategy specifies how custom resources are converted between versions. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhookClientConfig to be set.
optional string strategy = 1;public V1beta1Apiextensions.CustomResourceConversion.Builder setStrategyBytes(com.google.protobuf.ByteString value)
strategy specifies how custom resources are converted between versions. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhookClientConfig to be set.
optional string strategy = 1;public boolean hasWebhookClientConfig()
webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`. Required when `strategy` is set to `Webhook`. +optional
optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.WebhookClientConfig webhookClientConfig = 2;
hasWebhookClientConfig in interface V1beta1Apiextensions.CustomResourceConversionOrBuilderpublic V1beta1Apiextensions.WebhookClientConfig getWebhookClientConfig()
webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`. Required when `strategy` is set to `Webhook`. +optional
optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.WebhookClientConfig webhookClientConfig = 2;
getWebhookClientConfig in interface V1beta1Apiextensions.CustomResourceConversionOrBuilderpublic V1beta1Apiextensions.CustomResourceConversion.Builder setWebhookClientConfig(V1beta1Apiextensions.WebhookClientConfig value)
webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`. Required when `strategy` is set to `Webhook`. +optional
optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.WebhookClientConfig webhookClientConfig = 2;
public V1beta1Apiextensions.CustomResourceConversion.Builder setWebhookClientConfig(V1beta1Apiextensions.WebhookClientConfig.Builder builderForValue)
webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`. Required when `strategy` is set to `Webhook`. +optional
optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.WebhookClientConfig webhookClientConfig = 2;
public V1beta1Apiextensions.CustomResourceConversion.Builder mergeWebhookClientConfig(V1beta1Apiextensions.WebhookClientConfig value)
webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`. Required when `strategy` is set to `Webhook`. +optional
optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.WebhookClientConfig webhookClientConfig = 2;
public V1beta1Apiextensions.CustomResourceConversion.Builder clearWebhookClientConfig()
webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`. Required when `strategy` is set to `Webhook`. +optional
optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.WebhookClientConfig webhookClientConfig = 2;
public V1beta1Apiextensions.WebhookClientConfig.Builder getWebhookClientConfigBuilder()
webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`. Required when `strategy` is set to `Webhook`. +optional
optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.WebhookClientConfig webhookClientConfig = 2;
public V1beta1Apiextensions.WebhookClientConfigOrBuilder getWebhookClientConfigOrBuilder()
webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`. Required when `strategy` is set to `Webhook`. +optional
optional .k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.WebhookClientConfig webhookClientConfig = 2;
getWebhookClientConfigOrBuilder in interface V1beta1Apiextensions.CustomResourceConversionOrBuilderpublic com.google.protobuf.ProtocolStringList getConversionReviewVersionsList()
conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. Defaults to `["v1beta1"]`. +optional
repeated string conversionReviewVersions = 3;getConversionReviewVersionsList in interface V1beta1Apiextensions.CustomResourceConversionOrBuilderpublic int getConversionReviewVersionsCount()
conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. Defaults to `["v1beta1"]`. +optional
repeated string conversionReviewVersions = 3;getConversionReviewVersionsCount in interface V1beta1Apiextensions.CustomResourceConversionOrBuilderpublic String getConversionReviewVersions(int index)
conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. Defaults to `["v1beta1"]`. +optional
repeated string conversionReviewVersions = 3;getConversionReviewVersions in interface V1beta1Apiextensions.CustomResourceConversionOrBuilderpublic com.google.protobuf.ByteString getConversionReviewVersionsBytes(int index)
conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. Defaults to `["v1beta1"]`. +optional
repeated string conversionReviewVersions = 3;getConversionReviewVersionsBytes in interface V1beta1Apiextensions.CustomResourceConversionOrBuilderpublic V1beta1Apiextensions.CustomResourceConversion.Builder setConversionReviewVersions(int index, String value)
conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. Defaults to `["v1beta1"]`. +optional
repeated string conversionReviewVersions = 3;public V1beta1Apiextensions.CustomResourceConversion.Builder addConversionReviewVersions(String value)
conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. Defaults to `["v1beta1"]`. +optional
repeated string conversionReviewVersions = 3;public V1beta1Apiextensions.CustomResourceConversion.Builder addAllConversionReviewVersions(Iterable<String> values)
conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. Defaults to `["v1beta1"]`. +optional
repeated string conversionReviewVersions = 3;public V1beta1Apiextensions.CustomResourceConversion.Builder clearConversionReviewVersions()
conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. Defaults to `["v1beta1"]`. +optional
repeated string conversionReviewVersions = 3;public V1beta1Apiextensions.CustomResourceConversion.Builder addConversionReviewVersionsBytes(com.google.protobuf.ByteString value)
conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. Defaults to `["v1beta1"]`. +optional
repeated string conversionReviewVersions = 3;public final V1beta1Apiextensions.CustomResourceConversion.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>public final V1beta1Apiextensions.CustomResourceConversion.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>Copyright © 2023. All rights reserved.