Package io.kubernetes.client.proto
Class V1beta1Apiextensions.CustomResourceConversion.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>
io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,V1beta1Apiextensions.CustomResourceConversionOrBuilder
,Cloneable
- Enclosing class:
- V1beta1Apiextensions.CustomResourceConversion
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
-
Method Summary
Modifier and TypeMethodDescriptionaddAllConversionReviewVersions
(Iterable<String> values) conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects.conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects.addConversionReviewVersionsBytes
(com.google.protobuf.ByteString value) conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects.addRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) strategy specifies how custom resources are converted between versions.webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`.clone()
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
conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects.com.google.protobuf.ProtocolStringList
conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
strategy specifies how custom resources are converted between versions.com.google.protobuf.ByteString
strategy specifies how custom resources are converted between versions.webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`.webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`.webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`.boolean
strategy specifies how custom resources are converted between versions.boolean
webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`.setConversionReviewVersions
(int index, String value) conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStrategy
(String value) strategy specifies how custom resources are converted between versions.setStrategyBytes
(com.google.protobuf.ByteString value) strategy specifies how custom resources are converted between versions.setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`.setWebhookClientConfig
(V1beta1Apiextensions.WebhookClientConfig.Builder builderForValue) webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, 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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>
-
setField
public V1beta1Apiextensions.CustomResourceConversion.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>
-
clearField
public V1beta1Apiextensions.CustomResourceConversion.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>
-
clearOneof
public V1beta1Apiextensions.CustomResourceConversion.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>
-
setRepeatedField
public V1beta1Apiextensions.CustomResourceConversion.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>
-
addRepeatedField
public V1beta1Apiextensions.CustomResourceConversion.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>
-
mergeFrom
public V1beta1Apiextensions.CustomResourceConversion.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>
-
mergeFrom
public V1beta1Apiextensions.CustomResourceConversion.Builder mergeFrom(V1beta1Apiextensions.CustomResourceConversion other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>
-
mergeFrom
public V1beta1Apiextensions.CustomResourceConversion.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>
- Throws:
IOException
-
hasStrategy
public 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;
- Specified by:
hasStrategy
in interfaceV1beta1Apiextensions.CustomResourceConversionOrBuilder
-
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;
- Specified by:
getStrategy
in interfaceV1beta1Apiextensions.CustomResourceConversionOrBuilder
-
getStrategyBytes
public 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;
- Specified by:
getStrategyBytes
in interfaceV1beta1Apiextensions.CustomResourceConversionOrBuilder
-
setStrategy
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;
-
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;
-
setStrategyBytes
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;
-
hasWebhookClientConfig
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;
- Specified by:
hasWebhookClientConfig
in interfaceV1beta1Apiextensions.CustomResourceConversionOrBuilder
-
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;
- Specified by:
getWebhookClientConfig
in interfaceV1beta1Apiextensions.CustomResourceConversionOrBuilder
-
setWebhookClientConfig
public 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;
-
setWebhookClientConfig
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;
-
mergeWebhookClientConfig
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;
-
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;
-
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;
-
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;
- Specified by:
getWebhookClientConfigOrBuilder
in interfaceV1beta1Apiextensions.CustomResourceConversionOrBuilder
-
getConversionReviewVersionsList
public 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;
- Specified by:
getConversionReviewVersionsList
in interfaceV1beta1Apiextensions.CustomResourceConversionOrBuilder
-
getConversionReviewVersionsCount
public 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;
- Specified by:
getConversionReviewVersionsCount
in interfaceV1beta1Apiextensions.CustomResourceConversionOrBuilder
-
getConversionReviewVersions
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;
- Specified by:
getConversionReviewVersions
in interfaceV1beta1Apiextensions.CustomResourceConversionOrBuilder
-
getConversionReviewVersionsBytes
public 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;
- Specified by:
getConversionReviewVersionsBytes
in interfaceV1beta1Apiextensions.CustomResourceConversionOrBuilder
-
setConversionReviewVersions
public 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;
-
addConversionReviewVersions
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;
-
addAllConversionReviewVersions
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;
-
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;
-
addConversionReviewVersionsBytes
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;
-
setUnknownFields
public final V1beta1Apiextensions.CustomResourceConversion.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>
-
mergeUnknownFields
public final V1beta1Apiextensions.CustomResourceConversion.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>
-