Class V1beta1Apiextensions.CustomResourceConversion.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>
    • getDefaultInstanceForType

      public V1beta1Apiextensions.CustomResourceConversion getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>
    • clearField

      public V1beta1Apiextensions.CustomResourceConversion.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>
    • clearOneof

      public V1beta1Apiextensions.CustomResourceConversion.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>
    • mergeFrom

      public V1beta1Apiextensions.CustomResourceConversion.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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 interface V1beta1Apiextensions.CustomResourceConversionOrBuilder
    • getStrategy

      public 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;
      Specified by:
      getStrategy in interface V1beta1Apiextensions.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 interface V1beta1Apiextensions.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 interface V1beta1Apiextensions.CustomResourceConversionOrBuilder
    • getWebhookClientConfig

      public 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;
      Specified by:
      getWebhookClientConfig in interface V1beta1Apiextensions.CustomResourceConversionOrBuilder
    • setWebhookClientConfig

       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

       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

       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

      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;
    • getWebhookClientConfigBuilder

      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;
    • getWebhookClientConfigOrBuilder

      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;
      Specified by:
      getWebhookClientConfigOrBuilder in interface V1beta1Apiextensions.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 interface V1beta1Apiextensions.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 interface V1beta1Apiextensions.CustomResourceConversionOrBuilder
    • getConversionReviewVersions

      public 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;
      Specified by:
      getConversionReviewVersions in interface V1beta1Apiextensions.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 interface V1beta1Apiextensions.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

      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;
    • 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 interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>
    • mergeUnknownFields

      public final V1beta1Apiextensions.CustomResourceConversion.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.CustomResourceConversion.Builder>