Class V1beta1Apiextensions.ConversionResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.ConversionResponse.Builder>
io.kubernetes.client.proto.V1beta1Apiextensions.ConversionResponse.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1beta1Apiextensions.ConversionResponseOrBuilder, Cloneable
Enclosing class:
V1beta1Apiextensions.ConversionResponse

public static final class V1beta1Apiextensions.ConversionResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apiextensions.ConversionResponse.Builder> implements V1beta1Apiextensions.ConversionResponseOrBuilder
 ConversionResponse describes a conversion response.
 
Protobuf type k8s.io.apiextensions_apiserver.pkg.apis.apiextensions.v1beta1.ConversionResponse
  • 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.ConversionResponse.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.ConversionResponse.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.ConversionResponse.Builder>
    • getDefaultInstanceForType

      public V1beta1Apiextensions.ConversionResponse 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.ConversionResponse.Builder>
    • setField

      public V1beta1Apiextensions.ConversionResponse.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.ConversionResponse.Builder>
    • clearField

      public V1beta1Apiextensions.ConversionResponse.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.ConversionResponse.Builder>
    • clearOneof

      public V1beta1Apiextensions.ConversionResponse.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.ConversionResponse.Builder>
    • setRepeatedField

      public V1beta1Apiextensions.ConversionResponse.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.ConversionResponse.Builder>
    • addRepeatedField

      public V1beta1Apiextensions.ConversionResponse.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.ConversionResponse.Builder>
    • mergeFrom

      public V1beta1Apiextensions.ConversionResponse.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.ConversionResponse.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.ConversionResponse.Builder>
    • mergeFrom

      public V1beta1Apiextensions.ConversionResponse.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.ConversionResponse.Builder>
      Throws:
      IOException
    • hasUid

      public boolean hasUid()
       uid is an identifier for the individual request/response.
       This should be copied over from the corresponding `request.uid`.
       
      optional string uid = 1;
      Specified by:
      hasUid in interface V1beta1Apiextensions.ConversionResponseOrBuilder
    • getUid

      public String getUid()
       uid is an identifier for the individual request/response.
       This should be copied over from the corresponding `request.uid`.
       
      optional string uid = 1;
      Specified by:
      getUid in interface V1beta1Apiextensions.ConversionResponseOrBuilder
    • getUidBytes

      public com.google.protobuf.ByteString getUidBytes()
       uid is an identifier for the individual request/response.
       This should be copied over from the corresponding `request.uid`.
       
      optional string uid = 1;
      Specified by:
      getUidBytes in interface V1beta1Apiextensions.ConversionResponseOrBuilder
    • setUid

       uid is an identifier for the individual request/response.
       This should be copied over from the corresponding `request.uid`.
       
      optional string uid = 1;
    • clearUid

       uid is an identifier for the individual request/response.
       This should be copied over from the corresponding `request.uid`.
       
      optional string uid = 1;
    • setUidBytes

      public V1beta1Apiextensions.ConversionResponse.Builder setUidBytes(com.google.protobuf.ByteString value)
       uid is an identifier for the individual request/response.
       This should be copied over from the corresponding `request.uid`.
       
      optional string uid = 1;
    • getConvertedObjectsList

      public List<Runtime.RawExtension> getConvertedObjectsList()
       convertedObjects is the list of converted version of `request.objects` if the `result` is successful, otherwise empty.
       The webhook is expected to set `apiVersion` of these objects to the `request.desiredAPIVersion`. The list
       must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
       The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
       
      repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2;
      Specified by:
      getConvertedObjectsList in interface V1beta1Apiextensions.ConversionResponseOrBuilder
    • getConvertedObjectsCount

      public int getConvertedObjectsCount()
       convertedObjects is the list of converted version of `request.objects` if the `result` is successful, otherwise empty.
       The webhook is expected to set `apiVersion` of these objects to the `request.desiredAPIVersion`. The list
       must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
       The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
       
      repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2;
      Specified by:
      getConvertedObjectsCount in interface V1beta1Apiextensions.ConversionResponseOrBuilder
    • getConvertedObjects

      public Runtime.RawExtension getConvertedObjects(int index)
       convertedObjects is the list of converted version of `request.objects` if the `result` is successful, otherwise empty.
       The webhook is expected to set `apiVersion` of these objects to the `request.desiredAPIVersion`. The list
       must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
       The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
       
      repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2;
      Specified by:
      getConvertedObjects in interface V1beta1Apiextensions.ConversionResponseOrBuilder
    • setConvertedObjects

      public V1beta1Apiextensions.ConversionResponse.Builder setConvertedObjects(int index, Runtime.RawExtension value)
       convertedObjects is the list of converted version of `request.objects` if the `result` is successful, otherwise empty.
       The webhook is expected to set `apiVersion` of these objects to the `request.desiredAPIVersion`. The list
       must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
       The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
       
      repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2;
    • setConvertedObjects

      public V1beta1Apiextensions.ConversionResponse.Builder setConvertedObjects(int index, Runtime.RawExtension.Builder builderForValue)
       convertedObjects is the list of converted version of `request.objects` if the `result` is successful, otherwise empty.
       The webhook is expected to set `apiVersion` of these objects to the `request.desiredAPIVersion`. The list
       must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
       The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
       
      repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2;
    • addConvertedObjects

       convertedObjects is the list of converted version of `request.objects` if the `result` is successful, otherwise empty.
       The webhook is expected to set `apiVersion` of these objects to the `request.desiredAPIVersion`. The list
       must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
       The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
       
      repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2;
    • addConvertedObjects

      public V1beta1Apiextensions.ConversionResponse.Builder addConvertedObjects(int index, Runtime.RawExtension value)
       convertedObjects is the list of converted version of `request.objects` if the `result` is successful, otherwise empty.
       The webhook is expected to set `apiVersion` of these objects to the `request.desiredAPIVersion`. The list
       must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
       The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
       
      repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2;
    • addConvertedObjects

       convertedObjects is the list of converted version of `request.objects` if the `result` is successful, otherwise empty.
       The webhook is expected to set `apiVersion` of these objects to the `request.desiredAPIVersion`. The list
       must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
       The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
       
      repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2;
    • addConvertedObjects

      public V1beta1Apiextensions.ConversionResponse.Builder addConvertedObjects(int index, Runtime.RawExtension.Builder builderForValue)
       convertedObjects is the list of converted version of `request.objects` if the `result` is successful, otherwise empty.
       The webhook is expected to set `apiVersion` of these objects to the `request.desiredAPIVersion`. The list
       must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
       The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
       
      repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2;
    • addAllConvertedObjects

      public V1beta1Apiextensions.ConversionResponse.Builder addAllConvertedObjects(Iterable<? extends Runtime.RawExtension> values)
       convertedObjects is the list of converted version of `request.objects` if the `result` is successful, otherwise empty.
       The webhook is expected to set `apiVersion` of these objects to the `request.desiredAPIVersion`. The list
       must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
       The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
       
      repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2;
    • clearConvertedObjects

      public V1beta1Apiextensions.ConversionResponse.Builder clearConvertedObjects()
       convertedObjects is the list of converted version of `request.objects` if the `result` is successful, otherwise empty.
       The webhook is expected to set `apiVersion` of these objects to the `request.desiredAPIVersion`. The list
       must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
       The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
       
      repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2;
    • removeConvertedObjects

      public V1beta1Apiextensions.ConversionResponse.Builder removeConvertedObjects(int index)
       convertedObjects is the list of converted version of `request.objects` if the `result` is successful, otherwise empty.
       The webhook is expected to set `apiVersion` of these objects to the `request.desiredAPIVersion`. The list
       must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
       The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
       
      repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2;
    • getConvertedObjectsBuilder

      public Runtime.RawExtension.Builder getConvertedObjectsBuilder(int index)
       convertedObjects is the list of converted version of `request.objects` if the `result` is successful, otherwise empty.
       The webhook is expected to set `apiVersion` of these objects to the `request.desiredAPIVersion`. The list
       must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
       The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
       
      repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2;
    • getConvertedObjectsOrBuilder

      public Runtime.RawExtensionOrBuilder getConvertedObjectsOrBuilder(int index)
       convertedObjects is the list of converted version of `request.objects` if the `result` is successful, otherwise empty.
       The webhook is expected to set `apiVersion` of these objects to the `request.desiredAPIVersion`. The list
       must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
       The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
       
      repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2;
      Specified by:
      getConvertedObjectsOrBuilder in interface V1beta1Apiextensions.ConversionResponseOrBuilder
    • getConvertedObjectsOrBuilderList

      public List<? extends Runtime.RawExtensionOrBuilder> getConvertedObjectsOrBuilderList()
       convertedObjects is the list of converted version of `request.objects` if the `result` is successful, otherwise empty.
       The webhook is expected to set `apiVersion` of these objects to the `request.desiredAPIVersion`. The list
       must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
       The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
       
      repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2;
      Specified by:
      getConvertedObjectsOrBuilderList in interface V1beta1Apiextensions.ConversionResponseOrBuilder
    • addConvertedObjectsBuilder

      public Runtime.RawExtension.Builder addConvertedObjectsBuilder()
       convertedObjects is the list of converted version of `request.objects` if the `result` is successful, otherwise empty.
       The webhook is expected to set `apiVersion` of these objects to the `request.desiredAPIVersion`. The list
       must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
       The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
       
      repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2;
    • addConvertedObjectsBuilder

      public Runtime.RawExtension.Builder addConvertedObjectsBuilder(int index)
       convertedObjects is the list of converted version of `request.objects` if the `result` is successful, otherwise empty.
       The webhook is expected to set `apiVersion` of these objects to the `request.desiredAPIVersion`. The list
       must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
       The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
       
      repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2;
    • getConvertedObjectsBuilderList

      public List<Runtime.RawExtension.Builder> getConvertedObjectsBuilderList()
       convertedObjects is the list of converted version of `request.objects` if the `result` is successful, otherwise empty.
       The webhook is expected to set `apiVersion` of these objects to the `request.desiredAPIVersion`. The list
       must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
       The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
       
      repeated .k8s.io.apimachinery.pkg.runtime.RawExtension convertedObjects = 2;
    • hasResult

      public boolean hasResult()
       result contains the result of conversion with extra details if the conversion failed. `result.status` determines if
       the conversion failed or succeeded. The `result.status` field is required and represents the success or failure of the
       conversion. A successful conversion must set `result.status` to `Success`. A failed conversion must set
       `result.status` to `Failure` and provide more details in `result.message` and return http status 200. The `result.message`
       will be used to construct an error message for the end user.
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.Status result = 3;
      Specified by:
      hasResult in interface V1beta1Apiextensions.ConversionResponseOrBuilder
    • getResult

      public Meta.Status getResult()
       result contains the result of conversion with extra details if the conversion failed. `result.status` determines if
       the conversion failed or succeeded. The `result.status` field is required and represents the success or failure of the
       conversion. A successful conversion must set `result.status` to `Success`. A failed conversion must set
       `result.status` to `Failure` and provide more details in `result.message` and return http status 200. The `result.message`
       will be used to construct an error message for the end user.
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.Status result = 3;
      Specified by:
      getResult in interface V1beta1Apiextensions.ConversionResponseOrBuilder
    • setResult

       result contains the result of conversion with extra details if the conversion failed. `result.status` determines if
       the conversion failed or succeeded. The `result.status` field is required and represents the success or failure of the
       conversion. A successful conversion must set `result.status` to `Success`. A failed conversion must set
       `result.status` to `Failure` and provide more details in `result.message` and return http status 200. The `result.message`
       will be used to construct an error message for the end user.
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.Status result = 3;
    • setResult

       result contains the result of conversion with extra details if the conversion failed. `result.status` determines if
       the conversion failed or succeeded. The `result.status` field is required and represents the success or failure of the
       conversion. A successful conversion must set `result.status` to `Success`. A failed conversion must set
       `result.status` to `Failure` and provide more details in `result.message` and return http status 200. The `result.message`
       will be used to construct an error message for the end user.
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.Status result = 3;
    • mergeResult

       result contains the result of conversion with extra details if the conversion failed. `result.status` determines if
       the conversion failed or succeeded. The `result.status` field is required and represents the success or failure of the
       conversion. A successful conversion must set `result.status` to `Success`. A failed conversion must set
       `result.status` to `Failure` and provide more details in `result.message` and return http status 200. The `result.message`
       will be used to construct an error message for the end user.
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.Status result = 3;
    • clearResult

       result contains the result of conversion with extra details if the conversion failed. `result.status` determines if
       the conversion failed or succeeded. The `result.status` field is required and represents the success or failure of the
       conversion. A successful conversion must set `result.status` to `Success`. A failed conversion must set
       `result.status` to `Failure` and provide more details in `result.message` and return http status 200. The `result.message`
       will be used to construct an error message for the end user.
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.Status result = 3;
    • getResultBuilder

      public Meta.Status.Builder getResultBuilder()
       result contains the result of conversion with extra details if the conversion failed. `result.status` determines if
       the conversion failed or succeeded. The `result.status` field is required and represents the success or failure of the
       conversion. A successful conversion must set `result.status` to `Success`. A failed conversion must set
       `result.status` to `Failure` and provide more details in `result.message` and return http status 200. The `result.message`
       will be used to construct an error message for the end user.
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.Status result = 3;
    • getResultOrBuilder

      public Meta.StatusOrBuilder getResultOrBuilder()
       result contains the result of conversion with extra details if the conversion failed. `result.status` determines if
       the conversion failed or succeeded. The `result.status` field is required and represents the success or failure of the
       conversion. A successful conversion must set `result.status` to `Success`. A failed conversion must set
       `result.status` to `Failure` and provide more details in `result.message` and return http status 200. The `result.message`
       will be used to construct an error message for the end user.
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.Status result = 3;
      Specified by:
      getResultOrBuilder in interface V1beta1Apiextensions.ConversionResponseOrBuilder
    • setUnknownFields

      public final V1beta1Apiextensions.ConversionResponse.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.ConversionResponse.Builder>
    • mergeUnknownFields

      public final V1beta1Apiextensions.ConversionResponse.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.ConversionResponse.Builder>