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.ByteStringgetConversionReviewVersionsBytes(int index) conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects.intconversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects.com.google.protobuf.ProtocolStringListconversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorstrategy specifies how custom resources are converted between versions.com.google.protobuf.ByteStringstrategy 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`.booleanstrategy specifies how custom resources are converted between versions.booleanwebhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.CustomResourceConversion.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<V1beta1Apiextensions.CustomResourceConversion.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<V1beta1Apiextensions.CustomResourceConversion.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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<V1beta1Apiextensions.CustomResourceConversion.Builder>
-
setField
public V1beta1Apiextensions.CustomResourceConversion.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<V1beta1Apiextensions.CustomResourceConversion.Builder>
-
clearField
public V1beta1Apiextensions.CustomResourceConversion.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>
-
clearOneof
public V1beta1Apiextensions.CustomResourceConversion.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin 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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>
-
addRepeatedField
public V1beta1Apiextensions.CustomResourceConversion.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<V1beta1Apiextensions.CustomResourceConversion.Builder>
-
mergeFrom
public V1beta1Apiextensions.CustomResourceConversion.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>
-
mergeFrom
public V1beta1Apiextensions.CustomResourceConversion.Builder mergeFrom(V1beta1Apiextensions.CustomResourceConversion other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
hasStrategyin 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:
getStrategyin 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:
getStrategyBytesin 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:
hasWebhookClientConfigin 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:
getWebhookClientConfigin 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:
getWebhookClientConfigOrBuilderin 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:
getConversionReviewVersionsListin 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:
getConversionReviewVersionsCountin 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:
getConversionReviewVersionsin 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:
getConversionReviewVersionsBytesin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>
-
mergeUnknownFields
public final V1beta1Apiextensions.CustomResourceConversion.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>
-