Class V1beta1Apiextensions.CustomResourceConversion

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.kubernetes.client.proto.V1beta1Apiextensions.CustomResourceConversion
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1beta1Apiextensions.CustomResourceConversionOrBuilder, Serializable
Enclosing class:
V1beta1Apiextensions

public static final class V1beta1Apiextensions.CustomResourceConversion extends com.google.protobuf.GeneratedMessageV3 implements V1beta1Apiextensions.CustomResourceConversionOrBuilder
 CustomResourceConversion describes how to convert different versions of a CR.
 
Protobuf type k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceConversion
See Also:
  • Field Details

  • Method Details

    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields in class com.google.protobuf.GeneratedMessageV3
    • 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
    • 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
    • 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
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static V1beta1Apiextensions.CustomResourceConversion parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1beta1Apiextensions.CustomResourceConversion parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1beta1Apiextensions.CustomResourceConversion parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1beta1Apiextensions.CustomResourceConversion parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1beta1Apiextensions.CustomResourceConversion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1beta1Apiextensions.CustomResourceConversion parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      Throws:
      IOException
    • parseFrom

      public static V1beta1Apiextensions.CustomResourceConversion parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static V1beta1Apiextensions.CustomResourceConversion parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static V1beta1Apiextensions.CustomResourceConversion parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1beta1Apiextensions.CustomResourceConversion parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1beta1Apiextensions.CustomResourceConversion parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected V1beta1Apiextensions.CustomResourceConversion.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static V1beta1Apiextensions.CustomResourceConversion getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<V1beta1Apiextensions.CustomResourceConversion> parser()
    • getParserForType

      public com.google.protobuf.Parser<V1beta1Apiextensions.CustomResourceConversion> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

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