All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.kubernetes.client.proto.V1beta1Admissionregistration Maven / Gradle / Ivy

/*
Copyright 2021 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package io.kubernetes.client.proto;

public final class V1beta1Admissionregistration {
  private V1beta1Admissionregistration() {}

  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}

  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
  }

  public interface MutatingWebhookOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:k8s.io.api.admissionregistration.v1beta1.MutatingWebhook)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * 
     * The name of the admission webhook.
     * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
     * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
     * of the organization.
     * Required.
     * 
* * optional string name = 1; */ boolean hasName(); /** * * *
     * The name of the admission webhook.
     * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
     * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
     * of the organization.
     * Required.
     * 
* * optional string name = 1; */ java.lang.String getName(); /** * * *
     * The name of the admission webhook.
     * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
     * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
     * of the organization.
     * Required.
     * 
* * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * * *
     * ClientConfig defines how to communicate with the hook.
     * Required
     * 
* * * optional .k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig clientConfig = 2; * */ boolean hasClientConfig(); /** * * *
     * ClientConfig defines how to communicate with the hook.
     * Required
     * 
* * * optional .k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig clientConfig = 2; * */ io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig getClientConfig(); /** * * *
     * ClientConfig defines how to communicate with the hook.
     * Required
     * 
* * * optional .k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig clientConfig = 2; * */ io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfigOrBuilder getClientConfigOrBuilder(); /** * * *
     * Rules describes what operations on what resources/subresources the webhook cares about.
     * The webhook cares about an operation if it matches _any_ Rule.
     * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
     * from putting the cluster in a state which cannot be recovered from without completely
     * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
     * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; */ java.util.List getRulesList(); /** * * *
     * Rules describes what operations on what resources/subresources the webhook cares about.
     * The webhook cares about an operation if it matches _any_ Rule.
     * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
     * from putting the cluster in a state which cannot be recovered from without completely
     * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
     * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; */ io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations getRules(int index); /** * * *
     * Rules describes what operations on what resources/subresources the webhook cares about.
     * The webhook cares about an operation if it matches _any_ Rule.
     * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
     * from putting the cluster in a state which cannot be recovered from without completely
     * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
     * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; */ int getRulesCount(); /** * * *
     * Rules describes what operations on what resources/subresources the webhook cares about.
     * The webhook cares about an operation if it matches _any_ Rule.
     * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
     * from putting the cluster in a state which cannot be recovered from without completely
     * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
     * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; */ java.util.List< ? extends io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperationsOrBuilder> getRulesOrBuilderList(); /** * * *
     * Rules describes what operations on what resources/subresources the webhook cares about.
     * The webhook cares about an operation if it matches _any_ Rule.
     * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
     * from putting the cluster in a state which cannot be recovered from without completely
     * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
     * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; */ io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperationsOrBuilder getRulesOrBuilder(int index); /** * * *
     * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
     * allowed values are Ignore or Fail. Defaults to Ignore.
     * +optional
     * 
* * optional string failurePolicy = 4; */ boolean hasFailurePolicy(); /** * * *
     * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
     * allowed values are Ignore or Fail. Defaults to Ignore.
     * +optional
     * 
* * optional string failurePolicy = 4; */ java.lang.String getFailurePolicy(); /** * * *
     * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
     * allowed values are Ignore or Fail. Defaults to Ignore.
     * +optional
     * 
* * optional string failurePolicy = 4; */ com.google.protobuf.ByteString getFailurePolicyBytes(); /** * * *
     * matchPolicy defines how the "rules" list is used to match incoming requests.
     * Allowed values are "Exact" or "Equivalent".
     * - Exact: match a request only if it exactly matches a specified rule.
     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
     * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
     * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
     * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
     * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
     * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
     * Defaults to "Exact"
     * +optional
     * 
* * optional string matchPolicy = 9; */ boolean hasMatchPolicy(); /** * * *
     * matchPolicy defines how the "rules" list is used to match incoming requests.
     * Allowed values are "Exact" or "Equivalent".
     * - Exact: match a request only if it exactly matches a specified rule.
     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
     * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
     * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
     * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
     * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
     * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
     * Defaults to "Exact"
     * +optional
     * 
* * optional string matchPolicy = 9; */ java.lang.String getMatchPolicy(); /** * * *
     * matchPolicy defines how the "rules" list is used to match incoming requests.
     * Allowed values are "Exact" or "Equivalent".
     * - Exact: match a request only if it exactly matches a specified rule.
     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
     * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
     * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
     * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
     * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
     * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
     * Defaults to "Exact"
     * +optional
     * 
* * optional string matchPolicy = 9; */ com.google.protobuf.ByteString getMatchPolicyBytes(); /** * * *
     * NamespaceSelector decides whether to run the webhook on an object based
     * on whether the namespace for that object matches the selector. If the
     * object itself is a namespace, the matching is performed on
     * object.metadata.labels. If the object is another cluster scoped resource,
     * it never skips the webhook.
     * For example, to run the webhook on any objects whose namespace is not
     * associated with "runlevel" of "0" or "1";  you will set the selector as
     * follows:
     * "namespaceSelector": {
     *   "matchExpressions": [
     *     {
     *       "key": "runlevel",
     *       "operator": "NotIn",
     *       "values": [
     *         "0",
     *         "1"
     *       ]
     *     }
     *   ]
     * }
     * If instead you want to only run the webhook on any objects whose
     * namespace is associated with the "environment" of "prod" or "staging";
     * you will set the selector as follows:
     * "namespaceSelector": {
     *   "matchExpressions": [
     *     {
     *       "key": "environment",
     *       "operator": "In",
     *       "values": [
     *         "prod",
     *         "staging"
     *       ]
     *     }
     *   ]
     * }
     * See
     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
     * for more examples of label selectors.
     * Default to the empty LabelSelector, which matches everything.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; * */ boolean hasNamespaceSelector(); /** * * *
     * NamespaceSelector decides whether to run the webhook on an object based
     * on whether the namespace for that object matches the selector. If the
     * object itself is a namespace, the matching is performed on
     * object.metadata.labels. If the object is another cluster scoped resource,
     * it never skips the webhook.
     * For example, to run the webhook on any objects whose namespace is not
     * associated with "runlevel" of "0" or "1";  you will set the selector as
     * follows:
     * "namespaceSelector": {
     *   "matchExpressions": [
     *     {
     *       "key": "runlevel",
     *       "operator": "NotIn",
     *       "values": [
     *         "0",
     *         "1"
     *       ]
     *     }
     *   ]
     * }
     * If instead you want to only run the webhook on any objects whose
     * namespace is associated with the "environment" of "prod" or "staging";
     * you will set the selector as follows:
     * "namespaceSelector": {
     *   "matchExpressions": [
     *     {
     *       "key": "environment",
     *       "operator": "In",
     *       "values": [
     *         "prod",
     *         "staging"
     *       ]
     *     }
     *   ]
     * }
     * See
     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
     * for more examples of label selectors.
     * Default to the empty LabelSelector, which matches everything.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; * */ io.kubernetes.client.proto.Meta.LabelSelector getNamespaceSelector(); /** * * *
     * NamespaceSelector decides whether to run the webhook on an object based
     * on whether the namespace for that object matches the selector. If the
     * object itself is a namespace, the matching is performed on
     * object.metadata.labels. If the object is another cluster scoped resource,
     * it never skips the webhook.
     * For example, to run the webhook on any objects whose namespace is not
     * associated with "runlevel" of "0" or "1";  you will set the selector as
     * follows:
     * "namespaceSelector": {
     *   "matchExpressions": [
     *     {
     *       "key": "runlevel",
     *       "operator": "NotIn",
     *       "values": [
     *         "0",
     *         "1"
     *       ]
     *     }
     *   ]
     * }
     * If instead you want to only run the webhook on any objects whose
     * namespace is associated with the "environment" of "prod" or "staging";
     * you will set the selector as follows:
     * "namespaceSelector": {
     *   "matchExpressions": [
     *     {
     *       "key": "environment",
     *       "operator": "In",
     *       "values": [
     *         "prod",
     *         "staging"
     *       ]
     *     }
     *   ]
     * }
     * See
     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
     * for more examples of label selectors.
     * Default to the empty LabelSelector, which matches everything.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; * */ io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getNamespaceSelectorOrBuilder(); /** * * *
     * ObjectSelector decides whether to run the webhook based on if the
     * object has matching labels. objectSelector is evaluated against both
     * the oldObject and newObject that would be sent to the webhook, and
     * is considered to match if either object matches the selector. A null
     * object (oldObject in the case of create, or newObject in the case of
     * delete) or an object that cannot have labels (like a
     * DeploymentRollback or a PodProxyOptions object) is not considered to
     * match.
     * Use the object selector only if the webhook is opt-in, because end
     * users may skip the admission webhook by setting the labels.
     * Default to the empty LabelSelector, which matches everything.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 11; * */ boolean hasObjectSelector(); /** * * *
     * ObjectSelector decides whether to run the webhook based on if the
     * object has matching labels. objectSelector is evaluated against both
     * the oldObject and newObject that would be sent to the webhook, and
     * is considered to match if either object matches the selector. A null
     * object (oldObject in the case of create, or newObject in the case of
     * delete) or an object that cannot have labels (like a
     * DeploymentRollback or a PodProxyOptions object) is not considered to
     * match.
     * Use the object selector only if the webhook is opt-in, because end
     * users may skip the admission webhook by setting the labels.
     * Default to the empty LabelSelector, which matches everything.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 11; * */ io.kubernetes.client.proto.Meta.LabelSelector getObjectSelector(); /** * * *
     * ObjectSelector decides whether to run the webhook based on if the
     * object has matching labels. objectSelector is evaluated against both
     * the oldObject and newObject that would be sent to the webhook, and
     * is considered to match if either object matches the selector. A null
     * object (oldObject in the case of create, or newObject in the case of
     * delete) or an object that cannot have labels (like a
     * DeploymentRollback or a PodProxyOptions object) is not considered to
     * match.
     * Use the object selector only if the webhook is opt-in, because end
     * users may skip the admission webhook by setting the labels.
     * Default to the empty LabelSelector, which matches everything.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 11; * */ io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getObjectSelectorOrBuilder(); /** * * *
     * SideEffects states whether this webhook has side effects.
     * Acceptable values are: Unknown, None, Some, NoneOnDryRun
     * Webhooks with side effects MUST implement a reconciliation system, since a request may be
     * rejected by a future step in the admission chain and the side effects therefore need to be undone.
     * Requests with the dryRun attribute will be auto-rejected if they match a webhook with
     * sideEffects == Unknown or Some. Defaults to Unknown.
     * +optional
     * 
* * optional string sideEffects = 6; */ boolean hasSideEffects(); /** * * *
     * SideEffects states whether this webhook has side effects.
     * Acceptable values are: Unknown, None, Some, NoneOnDryRun
     * Webhooks with side effects MUST implement a reconciliation system, since a request may be
     * rejected by a future step in the admission chain and the side effects therefore need to be undone.
     * Requests with the dryRun attribute will be auto-rejected if they match a webhook with
     * sideEffects == Unknown or Some. Defaults to Unknown.
     * +optional
     * 
* * optional string sideEffects = 6; */ java.lang.String getSideEffects(); /** * * *
     * SideEffects states whether this webhook has side effects.
     * Acceptable values are: Unknown, None, Some, NoneOnDryRun
     * Webhooks with side effects MUST implement a reconciliation system, since a request may be
     * rejected by a future step in the admission chain and the side effects therefore need to be undone.
     * Requests with the dryRun attribute will be auto-rejected if they match a webhook with
     * sideEffects == Unknown or Some. Defaults to Unknown.
     * +optional
     * 
* * optional string sideEffects = 6; */ com.google.protobuf.ByteString getSideEffectsBytes(); /** * * *
     * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes,
     * the webhook call will be ignored or the API call will fail based on the
     * failure policy.
     * The timeout value must be between 1 and 30 seconds.
     * Default to 30 seconds.
     * +optional
     * 
* * optional int32 timeoutSeconds = 7; */ boolean hasTimeoutSeconds(); /** * * *
     * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes,
     * the webhook call will be ignored or the API call will fail based on the
     * failure policy.
     * The timeout value must be between 1 and 30 seconds.
     * Default to 30 seconds.
     * +optional
     * 
* * optional int32 timeoutSeconds = 7; */ int getTimeoutSeconds(); /** * * *
     * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
     * versions the Webhook expects. API server will try to use first version in
     * the list which it supports. If none of the versions specified in this list
     * supported by API server, validation will fail for this object.
     * 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
     * and be subject to the failure policy.
     * Default to `['v1beta1']`.
     * +optional
     * 
* * repeated string admissionReviewVersions = 8; */ java.util.List getAdmissionReviewVersionsList(); /** * * *
     * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
     * versions the Webhook expects. API server will try to use first version in
     * the list which it supports. If none of the versions specified in this list
     * supported by API server, validation will fail for this object.
     * 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
     * and be subject to the failure policy.
     * Default to `['v1beta1']`.
     * +optional
     * 
* * repeated string admissionReviewVersions = 8; */ int getAdmissionReviewVersionsCount(); /** * * *
     * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
     * versions the Webhook expects. API server will try to use first version in
     * the list which it supports. If none of the versions specified in this list
     * supported by API server, validation will fail for this object.
     * 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
     * and be subject to the failure policy.
     * Default to `['v1beta1']`.
     * +optional
     * 
* * repeated string admissionReviewVersions = 8; */ java.lang.String getAdmissionReviewVersions(int index); /** * * *
     * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
     * versions the Webhook expects. API server will try to use first version in
     * the list which it supports. If none of the versions specified in this list
     * supported by API server, validation will fail for this object.
     * 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
     * and be subject to the failure policy.
     * Default to `['v1beta1']`.
     * +optional
     * 
* * repeated string admissionReviewVersions = 8; */ com.google.protobuf.ByteString getAdmissionReviewVersionsBytes(int index); /** * * *
     * reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation.
     * Allowed values are "Never" and "IfNeeded".
     * Never: the webhook will not be called more than once in a single admission evaluation.
     * IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation
     * if the object being admitted is modified by other admission plugins after the initial webhook call.
     * Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted.
     * Note:
     * * the number of additional invocations is not guaranteed to be exactly one.
     * * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again.
     * * webhooks that use this option may be reordered to minimize the number of additional invocations.
     * * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.
     * Defaults to "Never".
     * +optional
     * 
* * optional string reinvocationPolicy = 10; */ boolean hasReinvocationPolicy(); /** * * *
     * reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation.
     * Allowed values are "Never" and "IfNeeded".
     * Never: the webhook will not be called more than once in a single admission evaluation.
     * IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation
     * if the object being admitted is modified by other admission plugins after the initial webhook call.
     * Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted.
     * Note:
     * * the number of additional invocations is not guaranteed to be exactly one.
     * * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again.
     * * webhooks that use this option may be reordered to minimize the number of additional invocations.
     * * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.
     * Defaults to "Never".
     * +optional
     * 
* * optional string reinvocationPolicy = 10; */ java.lang.String getReinvocationPolicy(); /** * * *
     * reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation.
     * Allowed values are "Never" and "IfNeeded".
     * Never: the webhook will not be called more than once in a single admission evaluation.
     * IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation
     * if the object being admitted is modified by other admission plugins after the initial webhook call.
     * Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted.
     * Note:
     * * the number of additional invocations is not guaranteed to be exactly one.
     * * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again.
     * * webhooks that use this option may be reordered to minimize the number of additional invocations.
     * * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.
     * Defaults to "Never".
     * +optional
     * 
* * optional string reinvocationPolicy = 10; */ com.google.protobuf.ByteString getReinvocationPolicyBytes(); } /** * * *
   * MutatingWebhook describes an admission webhook and the resources and operations it applies to.
   * 
* * Protobuf type {@code k8s.io.api.admissionregistration.v1beta1.MutatingWebhook} */ public static final class MutatingWebhook extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.admissionregistration.v1beta1.MutatingWebhook) MutatingWebhookOrBuilder { private static final long serialVersionUID = 0L; // Use MutatingWebhook.newBuilder() to construct. private MutatingWebhook(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MutatingWebhook() { name_ = ""; rules_ = java.util.Collections.emptyList(); failurePolicy_ = ""; matchPolicy_ = ""; sideEffects_ = ""; timeoutSeconds_ = 0; admissionReviewVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; reinvocationPolicy_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MutatingWebhook( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; name_ = bs; break; } case 18: { io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = clientConfig_.toBuilder(); } clientConfig_ = input.readMessage( io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig .PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(clientConfig_); clientConfig_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { rules_ = new java.util.ArrayList< io.kubernetes.client.proto.V1beta1Admissionregistration .RuleWithOperations>(); mutable_bitField0_ |= 0x00000004; } rules_.add( input.readMessage( io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations .PARSER, extensionRegistry)); break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; failurePolicy_ = bs; break; } case 42: { io.kubernetes.client.proto.Meta.LabelSelector.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = namespaceSelector_.toBuilder(); } namespaceSelector_ = input.readMessage( io.kubernetes.client.proto.Meta.LabelSelector.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(namespaceSelector_); namespaceSelector_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000040; sideEffects_ = bs; break; } case 56: { bitField0_ |= 0x00000080; timeoutSeconds_ = input.readInt32(); break; } case 66: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { admissionReviewVersions_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000200; } admissionReviewVersions_.add(bs); break; } case 74: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; matchPolicy_ = bs; break; } case 82: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000100; reinvocationPolicy_ = bs; break; } case 90: { io.kubernetes.client.proto.Meta.LabelSelector.Builder subBuilder = null; if (((bitField0_ & 0x00000020) == 0x00000020)) { subBuilder = objectSelector_.toBuilder(); } objectSelector_ = input.readMessage( io.kubernetes.client.proto.Meta.LabelSelector.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(objectSelector_); objectSelector_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { rules_ = java.util.Collections.unmodifiableList(rules_); } if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { admissionReviewVersions_ = admissionReviewVersions_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_MutatingWebhook_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_MutatingWebhook_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook.class, io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook.Builder .class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * * *
     * The name of the admission webhook.
     * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
     * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
     * of the organization.
     * Required.
     * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * The name of the admission webhook.
     * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
     * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
     * of the organization.
     * Required.
     * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * * *
     * The name of the admission webhook.
     * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
     * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
     * of the organization.
     * Required.
     * 
* * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CLIENTCONFIG_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig clientConfig_; /** * * *
     * ClientConfig defines how to communicate with the hook.
     * Required
     * 
* * * optional .k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig clientConfig = 2; * */ public boolean hasClientConfig() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * ClientConfig defines how to communicate with the hook.
     * Required
     * 
* * * optional .k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig clientConfig = 2; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig getClientConfig() { return clientConfig_ == null ? io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig .getDefaultInstance() : clientConfig_; } /** * * *
     * ClientConfig defines how to communicate with the hook.
     * Required
     * 
* * * optional .k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig clientConfig = 2; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfigOrBuilder getClientConfigOrBuilder() { return clientConfig_ == null ? io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig .getDefaultInstance() : clientConfig_; } public static final int RULES_FIELD_NUMBER = 3; private java.util.List< io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations> rules_; /** * * *
     * Rules describes what operations on what resources/subresources the webhook cares about.
     * The webhook cares about an operation if it matches _any_ Rule.
     * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
     * from putting the cluster in a state which cannot be recovered from without completely
     * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
     * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; */ public java.util.List< io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations> getRulesList() { return rules_; } /** * * *
     * Rules describes what operations on what resources/subresources the webhook cares about.
     * The webhook cares about an operation if it matches _any_ Rule.
     * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
     * from putting the cluster in a state which cannot be recovered from without completely
     * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
     * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperationsOrBuilder> getRulesOrBuilderList() { return rules_; } /** * * *
     * Rules describes what operations on what resources/subresources the webhook cares about.
     * The webhook cares about an operation if it matches _any_ Rule.
     * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
     * from putting the cluster in a state which cannot be recovered from without completely
     * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
     * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; */ public int getRulesCount() { return rules_.size(); } /** * * *
     * Rules describes what operations on what resources/subresources the webhook cares about.
     * The webhook cares about an operation if it matches _any_ Rule.
     * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
     * from putting the cluster in a state which cannot be recovered from without completely
     * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
     * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; */ public io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations getRules( int index) { return rules_.get(index); } /** * * *
     * Rules describes what operations on what resources/subresources the webhook cares about.
     * The webhook cares about an operation if it matches _any_ Rule.
     * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
     * from putting the cluster in a state which cannot be recovered from without completely
     * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
     * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; */ public io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperationsOrBuilder getRulesOrBuilder(int index) { return rules_.get(index); } public static final int FAILUREPOLICY_FIELD_NUMBER = 4; private volatile java.lang.Object failurePolicy_; /** * * *
     * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
     * allowed values are Ignore or Fail. Defaults to Ignore.
     * +optional
     * 
* * optional string failurePolicy = 4; */ public boolean hasFailurePolicy() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
     * allowed values are Ignore or Fail. Defaults to Ignore.
     * +optional
     * 
* * optional string failurePolicy = 4; */ public java.lang.String getFailurePolicy() { java.lang.Object ref = failurePolicy_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { failurePolicy_ = s; } return s; } } /** * * *
     * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
     * allowed values are Ignore or Fail. Defaults to Ignore.
     * +optional
     * 
* * optional string failurePolicy = 4; */ public com.google.protobuf.ByteString getFailurePolicyBytes() { java.lang.Object ref = failurePolicy_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); failurePolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MATCHPOLICY_FIELD_NUMBER = 9; private volatile java.lang.Object matchPolicy_; /** * * *
     * matchPolicy defines how the "rules" list is used to match incoming requests.
     * Allowed values are "Exact" or "Equivalent".
     * - Exact: match a request only if it exactly matches a specified rule.
     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
     * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
     * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
     * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
     * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
     * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
     * Defaults to "Exact"
     * +optional
     * 
* * optional string matchPolicy = 9; */ public boolean hasMatchPolicy() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * matchPolicy defines how the "rules" list is used to match incoming requests.
     * Allowed values are "Exact" or "Equivalent".
     * - Exact: match a request only if it exactly matches a specified rule.
     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
     * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
     * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
     * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
     * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
     * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
     * Defaults to "Exact"
     * +optional
     * 
* * optional string matchPolicy = 9; */ public java.lang.String getMatchPolicy() { java.lang.Object ref = matchPolicy_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { matchPolicy_ = s; } return s; } } /** * * *
     * matchPolicy defines how the "rules" list is used to match incoming requests.
     * Allowed values are "Exact" or "Equivalent".
     * - Exact: match a request only if it exactly matches a specified rule.
     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
     * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
     * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
     * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
     * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
     * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
     * Defaults to "Exact"
     * +optional
     * 
* * optional string matchPolicy = 9; */ public com.google.protobuf.ByteString getMatchPolicyBytes() { java.lang.Object ref = matchPolicy_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); matchPolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAMESPACESELECTOR_FIELD_NUMBER = 5; private io.kubernetes.client.proto.Meta.LabelSelector namespaceSelector_; /** * * *
     * NamespaceSelector decides whether to run the webhook on an object based
     * on whether the namespace for that object matches the selector. If the
     * object itself is a namespace, the matching is performed on
     * object.metadata.labels. If the object is another cluster scoped resource,
     * it never skips the webhook.
     * For example, to run the webhook on any objects whose namespace is not
     * associated with "runlevel" of "0" or "1";  you will set the selector as
     * follows:
     * "namespaceSelector": {
     *   "matchExpressions": [
     *     {
     *       "key": "runlevel",
     *       "operator": "NotIn",
     *       "values": [
     *         "0",
     *         "1"
     *       ]
     *     }
     *   ]
     * }
     * If instead you want to only run the webhook on any objects whose
     * namespace is associated with the "environment" of "prod" or "staging";
     * you will set the selector as follows:
     * "namespaceSelector": {
     *   "matchExpressions": [
     *     {
     *       "key": "environment",
     *       "operator": "In",
     *       "values": [
     *         "prod",
     *         "staging"
     *       ]
     *     }
     *   ]
     * }
     * See
     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
     * for more examples of label selectors.
     * Default to the empty LabelSelector, which matches everything.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; * */ public boolean hasNamespaceSelector() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * NamespaceSelector decides whether to run the webhook on an object based
     * on whether the namespace for that object matches the selector. If the
     * object itself is a namespace, the matching is performed on
     * object.metadata.labels. If the object is another cluster scoped resource,
     * it never skips the webhook.
     * For example, to run the webhook on any objects whose namespace is not
     * associated with "runlevel" of "0" or "1";  you will set the selector as
     * follows:
     * "namespaceSelector": {
     *   "matchExpressions": [
     *     {
     *       "key": "runlevel",
     *       "operator": "NotIn",
     *       "values": [
     *         "0",
     *         "1"
     *       ]
     *     }
     *   ]
     * }
     * If instead you want to only run the webhook on any objects whose
     * namespace is associated with the "environment" of "prod" or "staging";
     * you will set the selector as follows:
     * "namespaceSelector": {
     *   "matchExpressions": [
     *     {
     *       "key": "environment",
     *       "operator": "In",
     *       "values": [
     *         "prod",
     *         "staging"
     *       ]
     *     }
     *   ]
     * }
     * See
     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
     * for more examples of label selectors.
     * Default to the empty LabelSelector, which matches everything.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; * */ public io.kubernetes.client.proto.Meta.LabelSelector getNamespaceSelector() { return namespaceSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : namespaceSelector_; } /** * * *
     * NamespaceSelector decides whether to run the webhook on an object based
     * on whether the namespace for that object matches the selector. If the
     * object itself is a namespace, the matching is performed on
     * object.metadata.labels. If the object is another cluster scoped resource,
     * it never skips the webhook.
     * For example, to run the webhook on any objects whose namespace is not
     * associated with "runlevel" of "0" or "1";  you will set the selector as
     * follows:
     * "namespaceSelector": {
     *   "matchExpressions": [
     *     {
     *       "key": "runlevel",
     *       "operator": "NotIn",
     *       "values": [
     *         "0",
     *         "1"
     *       ]
     *     }
     *   ]
     * }
     * If instead you want to only run the webhook on any objects whose
     * namespace is associated with the "environment" of "prod" or "staging";
     * you will set the selector as follows:
     * "namespaceSelector": {
     *   "matchExpressions": [
     *     {
     *       "key": "environment",
     *       "operator": "In",
     *       "values": [
     *         "prod",
     *         "staging"
     *       ]
     *     }
     *   ]
     * }
     * See
     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
     * for more examples of label selectors.
     * Default to the empty LabelSelector, which matches everything.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; * */ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getNamespaceSelectorOrBuilder() { return namespaceSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : namespaceSelector_; } public static final int OBJECTSELECTOR_FIELD_NUMBER = 11; private io.kubernetes.client.proto.Meta.LabelSelector objectSelector_; /** * * *
     * ObjectSelector decides whether to run the webhook based on if the
     * object has matching labels. objectSelector is evaluated against both
     * the oldObject and newObject that would be sent to the webhook, and
     * is considered to match if either object matches the selector. A null
     * object (oldObject in the case of create, or newObject in the case of
     * delete) or an object that cannot have labels (like a
     * DeploymentRollback or a PodProxyOptions object) is not considered to
     * match.
     * Use the object selector only if the webhook is opt-in, because end
     * users may skip the admission webhook by setting the labels.
     * Default to the empty LabelSelector, which matches everything.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 11; * */ public boolean hasObjectSelector() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * ObjectSelector decides whether to run the webhook based on if the
     * object has matching labels. objectSelector is evaluated against both
     * the oldObject and newObject that would be sent to the webhook, and
     * is considered to match if either object matches the selector. A null
     * object (oldObject in the case of create, or newObject in the case of
     * delete) or an object that cannot have labels (like a
     * DeploymentRollback or a PodProxyOptions object) is not considered to
     * match.
     * Use the object selector only if the webhook is opt-in, because end
     * users may skip the admission webhook by setting the labels.
     * Default to the empty LabelSelector, which matches everything.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 11; * */ public io.kubernetes.client.proto.Meta.LabelSelector getObjectSelector() { return objectSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : objectSelector_; } /** * * *
     * ObjectSelector decides whether to run the webhook based on if the
     * object has matching labels. objectSelector is evaluated against both
     * the oldObject and newObject that would be sent to the webhook, and
     * is considered to match if either object matches the selector. A null
     * object (oldObject in the case of create, or newObject in the case of
     * delete) or an object that cannot have labels (like a
     * DeploymentRollback or a PodProxyOptions object) is not considered to
     * match.
     * Use the object selector only if the webhook is opt-in, because end
     * users may skip the admission webhook by setting the labels.
     * Default to the empty LabelSelector, which matches everything.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 11; * */ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getObjectSelectorOrBuilder() { return objectSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : objectSelector_; } public static final int SIDEEFFECTS_FIELD_NUMBER = 6; private volatile java.lang.Object sideEffects_; /** * * *
     * SideEffects states whether this webhook has side effects.
     * Acceptable values are: Unknown, None, Some, NoneOnDryRun
     * Webhooks with side effects MUST implement a reconciliation system, since a request may be
     * rejected by a future step in the admission chain and the side effects therefore need to be undone.
     * Requests with the dryRun attribute will be auto-rejected if they match a webhook with
     * sideEffects == Unknown or Some. Defaults to Unknown.
     * +optional
     * 
* * optional string sideEffects = 6; */ public boolean hasSideEffects() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
     * SideEffects states whether this webhook has side effects.
     * Acceptable values are: Unknown, None, Some, NoneOnDryRun
     * Webhooks with side effects MUST implement a reconciliation system, since a request may be
     * rejected by a future step in the admission chain and the side effects therefore need to be undone.
     * Requests with the dryRun attribute will be auto-rejected if they match a webhook with
     * sideEffects == Unknown or Some. Defaults to Unknown.
     * +optional
     * 
* * optional string sideEffects = 6; */ public java.lang.String getSideEffects() { java.lang.Object ref = sideEffects_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { sideEffects_ = s; } return s; } } /** * * *
     * SideEffects states whether this webhook has side effects.
     * Acceptable values are: Unknown, None, Some, NoneOnDryRun
     * Webhooks with side effects MUST implement a reconciliation system, since a request may be
     * rejected by a future step in the admission chain and the side effects therefore need to be undone.
     * Requests with the dryRun attribute will be auto-rejected if they match a webhook with
     * sideEffects == Unknown or Some. Defaults to Unknown.
     * +optional
     * 
* * optional string sideEffects = 6; */ public com.google.protobuf.ByteString getSideEffectsBytes() { java.lang.Object ref = sideEffects_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sideEffects_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TIMEOUTSECONDS_FIELD_NUMBER = 7; private int timeoutSeconds_; /** * * *
     * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes,
     * the webhook call will be ignored or the API call will fail based on the
     * failure policy.
     * The timeout value must be between 1 and 30 seconds.
     * Default to 30 seconds.
     * +optional
     * 
* * optional int32 timeoutSeconds = 7; */ public boolean hasTimeoutSeconds() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
     * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes,
     * the webhook call will be ignored or the API call will fail based on the
     * failure policy.
     * The timeout value must be between 1 and 30 seconds.
     * Default to 30 seconds.
     * +optional
     * 
* * optional int32 timeoutSeconds = 7; */ public int getTimeoutSeconds() { return timeoutSeconds_; } public static final int ADMISSIONREVIEWVERSIONS_FIELD_NUMBER = 8; private com.google.protobuf.LazyStringList admissionReviewVersions_; /** * * *
     * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
     * versions the Webhook expects. API server will try to use first version in
     * the list which it supports. If none of the versions specified in this list
     * supported by API server, validation will fail for this object.
     * 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
     * and be subject to the failure policy.
     * Default to `['v1beta1']`.
     * +optional
     * 
* * repeated string admissionReviewVersions = 8; */ public com.google.protobuf.ProtocolStringList getAdmissionReviewVersionsList() { return admissionReviewVersions_; } /** * * *
     * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
     * versions the Webhook expects. API server will try to use first version in
     * the list which it supports. If none of the versions specified in this list
     * supported by API server, validation will fail for this object.
     * 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
     * and be subject to the failure policy.
     * Default to `['v1beta1']`.
     * +optional
     * 
* * repeated string admissionReviewVersions = 8; */ public int getAdmissionReviewVersionsCount() { return admissionReviewVersions_.size(); } /** * * *
     * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
     * versions the Webhook expects. API server will try to use first version in
     * the list which it supports. If none of the versions specified in this list
     * supported by API server, validation will fail for this object.
     * 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
     * and be subject to the failure policy.
     * Default to `['v1beta1']`.
     * +optional
     * 
* * repeated string admissionReviewVersions = 8; */ public java.lang.String getAdmissionReviewVersions(int index) { return admissionReviewVersions_.get(index); } /** * * *
     * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
     * versions the Webhook expects. API server will try to use first version in
     * the list which it supports. If none of the versions specified in this list
     * supported by API server, validation will fail for this object.
     * 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
     * and be subject to the failure policy.
     * Default to `['v1beta1']`.
     * +optional
     * 
* * repeated string admissionReviewVersions = 8; */ public com.google.protobuf.ByteString getAdmissionReviewVersionsBytes(int index) { return admissionReviewVersions_.getByteString(index); } public static final int REINVOCATIONPOLICY_FIELD_NUMBER = 10; private volatile java.lang.Object reinvocationPolicy_; /** * * *
     * reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation.
     * Allowed values are "Never" and "IfNeeded".
     * Never: the webhook will not be called more than once in a single admission evaluation.
     * IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation
     * if the object being admitted is modified by other admission plugins after the initial webhook call.
     * Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted.
     * Note:
     * * the number of additional invocations is not guaranteed to be exactly one.
     * * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again.
     * * webhooks that use this option may be reordered to minimize the number of additional invocations.
     * * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.
     * Defaults to "Never".
     * +optional
     * 
* * optional string reinvocationPolicy = 10; */ public boolean hasReinvocationPolicy() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * * *
     * reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation.
     * Allowed values are "Never" and "IfNeeded".
     * Never: the webhook will not be called more than once in a single admission evaluation.
     * IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation
     * if the object being admitted is modified by other admission plugins after the initial webhook call.
     * Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted.
     * Note:
     * * the number of additional invocations is not guaranteed to be exactly one.
     * * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again.
     * * webhooks that use this option may be reordered to minimize the number of additional invocations.
     * * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.
     * Defaults to "Never".
     * +optional
     * 
* * optional string reinvocationPolicy = 10; */ public java.lang.String getReinvocationPolicy() { java.lang.Object ref = reinvocationPolicy_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { reinvocationPolicy_ = s; } return s; } } /** * * *
     * reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation.
     * Allowed values are "Never" and "IfNeeded".
     * Never: the webhook will not be called more than once in a single admission evaluation.
     * IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation
     * if the object being admitted is modified by other admission plugins after the initial webhook call.
     * Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted.
     * Note:
     * * the number of additional invocations is not guaranteed to be exactly one.
     * * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again.
     * * webhooks that use this option may be reordered to minimize the number of additional invocations.
     * * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.
     * Defaults to "Never".
     * +optional
     * 
* * optional string reinvocationPolicy = 10; */ public com.google.protobuf.ByteString getReinvocationPolicyBytes() { java.lang.Object ref = reinvocationPolicy_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reinvocationPolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getClientConfig()); } for (int i = 0; i < rules_.size(); i++) { output.writeMessage(3, rules_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, failurePolicy_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(5, getNamespaceSelector()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, sideEffects_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeInt32(7, timeoutSeconds_); } for (int i = 0; i < admissionReviewVersions_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString( output, 8, admissionReviewVersions_.getRaw(i)); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, matchPolicy_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, reinvocationPolicy_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(11, getObjectSelector()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getClientConfig()); } for (int i = 0; i < rules_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, rules_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, failurePolicy_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getNamespaceSelector()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, sideEffects_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, timeoutSeconds_); } { int dataSize = 0; for (int i = 0; i < admissionReviewVersions_.size(); i++) { dataSize += computeStringSizeNoTag(admissionReviewVersions_.getRaw(i)); } size += dataSize; size += 1 * getAdmissionReviewVersionsList().size(); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, matchPolicy_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, reinvocationPolicy_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getObjectSelector()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook other = (io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName().equals(other.getName()); } result = result && (hasClientConfig() == other.hasClientConfig()); if (hasClientConfig()) { result = result && getClientConfig().equals(other.getClientConfig()); } result = result && getRulesList().equals(other.getRulesList()); result = result && (hasFailurePolicy() == other.hasFailurePolicy()); if (hasFailurePolicy()) { result = result && getFailurePolicy().equals(other.getFailurePolicy()); } result = result && (hasMatchPolicy() == other.hasMatchPolicy()); if (hasMatchPolicy()) { result = result && getMatchPolicy().equals(other.getMatchPolicy()); } result = result && (hasNamespaceSelector() == other.hasNamespaceSelector()); if (hasNamespaceSelector()) { result = result && getNamespaceSelector().equals(other.getNamespaceSelector()); } result = result && (hasObjectSelector() == other.hasObjectSelector()); if (hasObjectSelector()) { result = result && getObjectSelector().equals(other.getObjectSelector()); } result = result && (hasSideEffects() == other.hasSideEffects()); if (hasSideEffects()) { result = result && getSideEffects().equals(other.getSideEffects()); } result = result && (hasTimeoutSeconds() == other.hasTimeoutSeconds()); if (hasTimeoutSeconds()) { result = result && (getTimeoutSeconds() == other.getTimeoutSeconds()); } result = result && getAdmissionReviewVersionsList().equals(other.getAdmissionReviewVersionsList()); result = result && (hasReinvocationPolicy() == other.hasReinvocationPolicy()); if (hasReinvocationPolicy()) { result = result && getReinvocationPolicy().equals(other.getReinvocationPolicy()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasClientConfig()) { hash = (37 * hash) + CLIENTCONFIG_FIELD_NUMBER; hash = (53 * hash) + getClientConfig().hashCode(); } if (getRulesCount() > 0) { hash = (37 * hash) + RULES_FIELD_NUMBER; hash = (53 * hash) + getRulesList().hashCode(); } if (hasFailurePolicy()) { hash = (37 * hash) + FAILUREPOLICY_FIELD_NUMBER; hash = (53 * hash) + getFailurePolicy().hashCode(); } if (hasMatchPolicy()) { hash = (37 * hash) + MATCHPOLICY_FIELD_NUMBER; hash = (53 * hash) + getMatchPolicy().hashCode(); } if (hasNamespaceSelector()) { hash = (37 * hash) + NAMESPACESELECTOR_FIELD_NUMBER; hash = (53 * hash) + getNamespaceSelector().hashCode(); } if (hasObjectSelector()) { hash = (37 * hash) + OBJECTSELECTOR_FIELD_NUMBER; hash = (53 * hash) + getObjectSelector().hashCode(); } if (hasSideEffects()) { hash = (37 * hash) + SIDEEFFECTS_FIELD_NUMBER; hash = (53 * hash) + getSideEffects().hashCode(); } if (hasTimeoutSeconds()) { hash = (37 * hash) + TIMEOUTSECONDS_FIELD_NUMBER; hash = (53 * hash) + getTimeoutSeconds(); } if (getAdmissionReviewVersionsCount() > 0) { hash = (37 * hash) + ADMISSIONREVIEWVERSIONS_FIELD_NUMBER; hash = (53 * hash) + getAdmissionReviewVersionsList().hashCode(); } if (hasReinvocationPolicy()) { hash = (37 * hash) + REINVOCATIONPOLICY_FIELD_NUMBER; hash = (53 * hash) + getReinvocationPolicy().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * MutatingWebhook describes an admission webhook and the resources and operations it applies to.
     * 
* * Protobuf type {@code k8s.io.api.admissionregistration.v1beta1.MutatingWebhook} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.admissionregistration.v1beta1.MutatingWebhook) io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_MutatingWebhook_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_MutatingWebhook_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook.class, io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook.Builder .class); } // Construct using // io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getClientConfigFieldBuilder(); getRulesFieldBuilder(); getNamespaceSelectorFieldBuilder(); getObjectSelectorFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (clientConfigBuilder_ == null) { clientConfig_ = null; } else { clientConfigBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (rulesBuilder_ == null) { rules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { rulesBuilder_.clear(); } failurePolicy_ = ""; bitField0_ = (bitField0_ & ~0x00000008); matchPolicy_ = ""; bitField0_ = (bitField0_ & ~0x00000010); if (namespaceSelectorBuilder_ == null) { namespaceSelector_ = null; } else { namespaceSelectorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); if (objectSelectorBuilder_ == null) { objectSelector_ = null; } else { objectSelectorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); sideEffects_ = ""; bitField0_ = (bitField0_ & ~0x00000080); timeoutSeconds_ = 0; bitField0_ = (bitField0_ & ~0x00000100); admissionReviewVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000200); reinvocationPolicy_ = ""; bitField0_ = (bitField0_ & ~0x00000400); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_MutatingWebhook_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook .getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook build() { io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook buildPartial() { io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook result = new io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (clientConfigBuilder_ == null) { result.clientConfig_ = clientConfig_; } else { result.clientConfig_ = clientConfigBuilder_.build(); } if (rulesBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { rules_ = java.util.Collections.unmodifiableList(rules_); bitField0_ = (bitField0_ & ~0x00000004); } result.rules_ = rules_; } else { result.rules_ = rulesBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } result.failurePolicy_ = failurePolicy_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000008; } result.matchPolicy_ = matchPolicy_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000010; } if (namespaceSelectorBuilder_ == null) { result.namespaceSelector_ = namespaceSelector_; } else { result.namespaceSelector_ = namespaceSelectorBuilder_.build(); } if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000020; } if (objectSelectorBuilder_ == null) { result.objectSelector_ = objectSelector_; } else { result.objectSelector_ = objectSelectorBuilder_.build(); } if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000040; } result.sideEffects_ = sideEffects_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000080; } result.timeoutSeconds_ = timeoutSeconds_; if (((bitField0_ & 0x00000200) == 0x00000200)) { admissionReviewVersions_ = admissionReviewVersions_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000200); } result.admissionReviewVersions_ = admissionReviewVersions_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000100; } result.reinvocationPolicy_ = reinvocationPolicy_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook other) { if (other == io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook .getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasClientConfig()) { mergeClientConfig(other.getClientConfig()); } if (rulesBuilder_ == null) { if (!other.rules_.isEmpty()) { if (rules_.isEmpty()) { rules_ = other.rules_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureRulesIsMutable(); rules_.addAll(other.rules_); } onChanged(); } } else { if (!other.rules_.isEmpty()) { if (rulesBuilder_.isEmpty()) { rulesBuilder_.dispose(); rulesBuilder_ = null; rules_ = other.rules_; bitField0_ = (bitField0_ & ~0x00000004); rulesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRulesFieldBuilder() : null; } else { rulesBuilder_.addAllMessages(other.rules_); } } } if (other.hasFailurePolicy()) { bitField0_ |= 0x00000008; failurePolicy_ = other.failurePolicy_; onChanged(); } if (other.hasMatchPolicy()) { bitField0_ |= 0x00000010; matchPolicy_ = other.matchPolicy_; onChanged(); } if (other.hasNamespaceSelector()) { mergeNamespaceSelector(other.getNamespaceSelector()); } if (other.hasObjectSelector()) { mergeObjectSelector(other.getObjectSelector()); } if (other.hasSideEffects()) { bitField0_ |= 0x00000080; sideEffects_ = other.sideEffects_; onChanged(); } if (other.hasTimeoutSeconds()) { setTimeoutSeconds(other.getTimeoutSeconds()); } if (!other.admissionReviewVersions_.isEmpty()) { if (admissionReviewVersions_.isEmpty()) { admissionReviewVersions_ = other.admissionReviewVersions_; bitField0_ = (bitField0_ & ~0x00000200); } else { ensureAdmissionReviewVersionsIsMutable(); admissionReviewVersions_.addAll(other.admissionReviewVersions_); } onChanged(); } if (other.hasReinvocationPolicy()) { bitField0_ |= 0x00000400; reinvocationPolicy_ = other.reinvocationPolicy_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * * *
       * The name of the admission webhook.
       * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
       * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
       * of the organization.
       * Required.
       * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * The name of the admission webhook.
       * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
       * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
       * of the organization.
       * Required.
       * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The name of the admission webhook.
       * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
       * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
       * of the organization.
       * Required.
       * 
* * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The name of the admission webhook.
       * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
       * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
       * of the organization.
       * Required.
       * 
* * optional string name = 1; */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * * *
       * The name of the admission webhook.
       * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
       * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
       * of the organization.
       * Required.
       * 
* * optional string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * * *
       * The name of the admission webhook.
       * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
       * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
       * of the organization.
       * Required.
       * 
* * optional string name = 1; */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } private io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig clientConfig_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig, io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig.Builder, io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfigOrBuilder> clientConfigBuilder_; /** * * *
       * ClientConfig defines how to communicate with the hook.
       * Required
       * 
* * * optional .k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig clientConfig = 2; * */ public boolean hasClientConfig() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * ClientConfig defines how to communicate with the hook.
       * Required
       * 
* * * optional .k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig clientConfig = 2; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig getClientConfig() { if (clientConfigBuilder_ == null) { return clientConfig_ == null ? io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig .getDefaultInstance() : clientConfig_; } else { return clientConfigBuilder_.getMessage(); } } /** * * *
       * ClientConfig defines how to communicate with the hook.
       * Required
       * 
* * * optional .k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig clientConfig = 2; * */ public Builder setClientConfig( io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig value) { if (clientConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } clientConfig_ = value; onChanged(); } else { clientConfigBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * ClientConfig defines how to communicate with the hook.
       * Required
       * 
* * * optional .k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig clientConfig = 2; * */ public Builder setClientConfig( io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig.Builder builderForValue) { if (clientConfigBuilder_ == null) { clientConfig_ = builderForValue.build(); onChanged(); } else { clientConfigBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * ClientConfig defines how to communicate with the hook.
       * Required
       * 
* * * optional .k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig clientConfig = 2; * */ public Builder mergeClientConfig( io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig value) { if (clientConfigBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && clientConfig_ != null && clientConfig_ != io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig .getDefaultInstance()) { clientConfig_ = io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig .newBuilder(clientConfig_) .mergeFrom(value) .buildPartial(); } else { clientConfig_ = value; } onChanged(); } else { clientConfigBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * ClientConfig defines how to communicate with the hook.
       * Required
       * 
* * * optional .k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig clientConfig = 2; * */ public Builder clearClientConfig() { if (clientConfigBuilder_ == null) { clientConfig_ = null; onChanged(); } else { clientConfigBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * ClientConfig defines how to communicate with the hook.
       * Required
       * 
* * * optional .k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig clientConfig = 2; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig.Builder getClientConfigBuilder() { bitField0_ |= 0x00000002; onChanged(); return getClientConfigFieldBuilder().getBuilder(); } /** * * *
       * ClientConfig defines how to communicate with the hook.
       * Required
       * 
* * * optional .k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig clientConfig = 2; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfigOrBuilder getClientConfigOrBuilder() { if (clientConfigBuilder_ != null) { return clientConfigBuilder_.getMessageOrBuilder(); } else { return clientConfig_ == null ? io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig .getDefaultInstance() : clientConfig_; } } /** * * *
       * ClientConfig defines how to communicate with the hook.
       * Required
       * 
* * * optional .k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig clientConfig = 2; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig, io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig.Builder, io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfigOrBuilder> getClientConfigFieldBuilder() { if (clientConfigBuilder_ == null) { clientConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig, io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig .Builder, io.kubernetes.client.proto.V1beta1Admissionregistration .WebhookClientConfigOrBuilder>( getClientConfig(), getParentForChildren(), isClean()); clientConfig_ = null; } return clientConfigBuilder_; } private java.util.List< io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations> rules_ = java.util.Collections.emptyList(); private void ensureRulesIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { rules_ = new java.util.ArrayList< io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations>( rules_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations, io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations.Builder, io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperationsOrBuilder> rulesBuilder_; /** * * *
       * Rules describes what operations on what resources/subresources the webhook cares about.
       * The webhook cares about an operation if it matches _any_ Rule.
       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
       * from putting the cluster in a state which cannot be recovered from without completely
       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; * */ public java.util.List< io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations> getRulesList() { if (rulesBuilder_ == null) { return java.util.Collections.unmodifiableList(rules_); } else { return rulesBuilder_.getMessageList(); } } /** * * *
       * Rules describes what operations on what resources/subresources the webhook cares about.
       * The webhook cares about an operation if it matches _any_ Rule.
       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
       * from putting the cluster in a state which cannot be recovered from without completely
       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; * */ public int getRulesCount() { if (rulesBuilder_ == null) { return rules_.size(); } else { return rulesBuilder_.getCount(); } } /** * * *
       * Rules describes what operations on what resources/subresources the webhook cares about.
       * The webhook cares about an operation if it matches _any_ Rule.
       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
       * from putting the cluster in a state which cannot be recovered from without completely
       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations getRules( int index) { if (rulesBuilder_ == null) { return rules_.get(index); } else { return rulesBuilder_.getMessage(index); } } /** * * *
       * Rules describes what operations on what resources/subresources the webhook cares about.
       * The webhook cares about an operation if it matches _any_ Rule.
       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
       * from putting the cluster in a state which cannot be recovered from without completely
       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; * */ public Builder setRules( int index, io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRulesIsMutable(); rules_.set(index, value); onChanged(); } else { rulesBuilder_.setMessage(index, value); } return this; } /** * * *
       * Rules describes what operations on what resources/subresources the webhook cares about.
       * The webhook cares about an operation if it matches _any_ Rule.
       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
       * from putting the cluster in a state which cannot be recovered from without completely
       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; * */ public Builder setRules( int index, io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.set(index, builderForValue.build()); onChanged(); } else { rulesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Rules describes what operations on what resources/subresources the webhook cares about.
       * The webhook cares about an operation if it matches _any_ Rule.
       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
       * from putting the cluster in a state which cannot be recovered from without completely
       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; * */ public Builder addRules( io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRulesIsMutable(); rules_.add(value); onChanged(); } else { rulesBuilder_.addMessage(value); } return this; } /** * * *
       * Rules describes what operations on what resources/subresources the webhook cares about.
       * The webhook cares about an operation if it matches _any_ Rule.
       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
       * from putting the cluster in a state which cannot be recovered from without completely
       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; * */ public Builder addRules( int index, io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRulesIsMutable(); rules_.add(index, value); onChanged(); } else { rulesBuilder_.addMessage(index, value); } return this; } /** * * *
       * Rules describes what operations on what resources/subresources the webhook cares about.
       * The webhook cares about an operation if it matches _any_ Rule.
       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
       * from putting the cluster in a state which cannot be recovered from without completely
       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; * */ public Builder addRules( io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.add(builderForValue.build()); onChanged(); } else { rulesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Rules describes what operations on what resources/subresources the webhook cares about.
       * The webhook cares about an operation if it matches _any_ Rule.
       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
       * from putting the cluster in a state which cannot be recovered from without completely
       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; * */ public Builder addRules( int index, io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.add(index, builderForValue.build()); onChanged(); } else { rulesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Rules describes what operations on what resources/subresources the webhook cares about.
       * The webhook cares about an operation if it matches _any_ Rule.
       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
       * from putting the cluster in a state which cannot be recovered from without completely
       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; * */ public Builder addAllRules( java.lang.Iterable< ? extends io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations> values) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rules_); onChanged(); } else { rulesBuilder_.addAllMessages(values); } return this; } /** * * *
       * Rules describes what operations on what resources/subresources the webhook cares about.
       * The webhook cares about an operation if it matches _any_ Rule.
       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
       * from putting the cluster in a state which cannot be recovered from without completely
       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; * */ public Builder clearRules() { if (rulesBuilder_ == null) { rules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { rulesBuilder_.clear(); } return this; } /** * * *
       * Rules describes what operations on what resources/subresources the webhook cares about.
       * The webhook cares about an operation if it matches _any_ Rule.
       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
       * from putting the cluster in a state which cannot be recovered from without completely
       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; * */ public Builder removeRules(int index) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.remove(index); onChanged(); } else { rulesBuilder_.remove(index); } return this; } /** * * *
       * Rules describes what operations on what resources/subresources the webhook cares about.
       * The webhook cares about an operation if it matches _any_ Rule.
       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
       * from putting the cluster in a state which cannot be recovered from without completely
       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations.Builder getRulesBuilder(int index) { return getRulesFieldBuilder().getBuilder(index); } /** * * *
       * Rules describes what operations on what resources/subresources the webhook cares about.
       * The webhook cares about an operation if it matches _any_ Rule.
       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
       * from putting the cluster in a state which cannot be recovered from without completely
       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperationsOrBuilder getRulesOrBuilder(int index) { if (rulesBuilder_ == null) { return rules_.get(index); } else { return rulesBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Rules describes what operations on what resources/subresources the webhook cares about.
       * The webhook cares about an operation if it matches _any_ Rule.
       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
       * from putting the cluster in a state which cannot be recovered from without completely
       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; * */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Admissionregistration .RuleWithOperationsOrBuilder> getRulesOrBuilderList() { if (rulesBuilder_ != null) { return rulesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(rules_); } } /** * * *
       * Rules describes what operations on what resources/subresources the webhook cares about.
       * The webhook cares about an operation if it matches _any_ Rule.
       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
       * from putting the cluster in a state which cannot be recovered from without completely
       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations.Builder addRulesBuilder() { return getRulesFieldBuilder() .addBuilder( io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations .getDefaultInstance()); } /** * * *
       * Rules describes what operations on what resources/subresources the webhook cares about.
       * The webhook cares about an operation if it matches _any_ Rule.
       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
       * from putting the cluster in a state which cannot be recovered from without completely
       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations.Builder addRulesBuilder(int index) { return getRulesFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations .getDefaultInstance()); } /** * * *
       * Rules describes what operations on what resources/subresources the webhook cares about.
       * The webhook cares about an operation if it matches _any_ Rule.
       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
       * from putting the cluster in a state which cannot be recovered from without completely
       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; * */ public java.util.List< io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations.Builder> getRulesBuilderList() { return getRulesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations, io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations.Builder, io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperationsOrBuilder> getRulesFieldBuilder() { if (rulesBuilder_ == null) { rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations, io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations .Builder, io.kubernetes.client.proto.V1beta1Admissionregistration .RuleWithOperationsOrBuilder>( rules_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); rules_ = null; } return rulesBuilder_; } private java.lang.Object failurePolicy_ = ""; /** * * *
       * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
       * allowed values are Ignore or Fail. Defaults to Ignore.
       * +optional
       * 
* * optional string failurePolicy = 4; */ public boolean hasFailurePolicy() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
       * allowed values are Ignore or Fail. Defaults to Ignore.
       * +optional
       * 
* * optional string failurePolicy = 4; */ public java.lang.String getFailurePolicy() { java.lang.Object ref = failurePolicy_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { failurePolicy_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
       * allowed values are Ignore or Fail. Defaults to Ignore.
       * +optional
       * 
* * optional string failurePolicy = 4; */ public com.google.protobuf.ByteString getFailurePolicyBytes() { java.lang.Object ref = failurePolicy_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); failurePolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
       * allowed values are Ignore or Fail. Defaults to Ignore.
       * +optional
       * 
* * optional string failurePolicy = 4; */ public Builder setFailurePolicy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; failurePolicy_ = value; onChanged(); return this; } /** * * *
       * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
       * allowed values are Ignore or Fail. Defaults to Ignore.
       * +optional
       * 
* * optional string failurePolicy = 4; */ public Builder clearFailurePolicy() { bitField0_ = (bitField0_ & ~0x00000008); failurePolicy_ = getDefaultInstance().getFailurePolicy(); onChanged(); return this; } /** * * *
       * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
       * allowed values are Ignore or Fail. Defaults to Ignore.
       * +optional
       * 
* * optional string failurePolicy = 4; */ public Builder setFailurePolicyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; failurePolicy_ = value; onChanged(); return this; } private java.lang.Object matchPolicy_ = ""; /** * * *
       * matchPolicy defines how the "rules" list is used to match incoming requests.
       * Allowed values are "Exact" or "Equivalent".
       * - Exact: match a request only if it exactly matches a specified rule.
       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
       * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
       * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
       * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
       * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
       * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
       * Defaults to "Exact"
       * +optional
       * 
* * optional string matchPolicy = 9; */ public boolean hasMatchPolicy() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * matchPolicy defines how the "rules" list is used to match incoming requests.
       * Allowed values are "Exact" or "Equivalent".
       * - Exact: match a request only if it exactly matches a specified rule.
       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
       * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
       * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
       * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
       * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
       * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
       * Defaults to "Exact"
       * +optional
       * 
* * optional string matchPolicy = 9; */ public java.lang.String getMatchPolicy() { java.lang.Object ref = matchPolicy_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { matchPolicy_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * matchPolicy defines how the "rules" list is used to match incoming requests.
       * Allowed values are "Exact" or "Equivalent".
       * - Exact: match a request only if it exactly matches a specified rule.
       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
       * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
       * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
       * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
       * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
       * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
       * Defaults to "Exact"
       * +optional
       * 
* * optional string matchPolicy = 9; */ public com.google.protobuf.ByteString getMatchPolicyBytes() { java.lang.Object ref = matchPolicy_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); matchPolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * matchPolicy defines how the "rules" list is used to match incoming requests.
       * Allowed values are "Exact" or "Equivalent".
       * - Exact: match a request only if it exactly matches a specified rule.
       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
       * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
       * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
       * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
       * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
       * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
       * Defaults to "Exact"
       * +optional
       * 
* * optional string matchPolicy = 9; */ public Builder setMatchPolicy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; matchPolicy_ = value; onChanged(); return this; } /** * * *
       * matchPolicy defines how the "rules" list is used to match incoming requests.
       * Allowed values are "Exact" or "Equivalent".
       * - Exact: match a request only if it exactly matches a specified rule.
       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
       * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
       * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
       * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
       * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
       * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
       * Defaults to "Exact"
       * +optional
       * 
* * optional string matchPolicy = 9; */ public Builder clearMatchPolicy() { bitField0_ = (bitField0_ & ~0x00000010); matchPolicy_ = getDefaultInstance().getMatchPolicy(); onChanged(); return this; } /** * * *
       * matchPolicy defines how the "rules" list is used to match incoming requests.
       * Allowed values are "Exact" or "Equivalent".
       * - Exact: match a request only if it exactly matches a specified rule.
       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
       * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
       * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
       * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
       * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
       * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
       * Defaults to "Exact"
       * +optional
       * 
* * optional string matchPolicy = 9; */ public Builder setMatchPolicyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; matchPolicy_ = value; onChanged(); return this; } private io.kubernetes.client.proto.Meta.LabelSelector namespaceSelector_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder> namespaceSelectorBuilder_; /** * * *
       * NamespaceSelector decides whether to run the webhook on an object based
       * on whether the namespace for that object matches the selector. If the
       * object itself is a namespace, the matching is performed on
       * object.metadata.labels. If the object is another cluster scoped resource,
       * it never skips the webhook.
       * For example, to run the webhook on any objects whose namespace is not
       * associated with "runlevel" of "0" or "1";  you will set the selector as
       * follows:
       * "namespaceSelector": {
       *   "matchExpressions": [
       *     {
       *       "key": "runlevel",
       *       "operator": "NotIn",
       *       "values": [
       *         "0",
       *         "1"
       *       ]
       *     }
       *   ]
       * }
       * If instead you want to only run the webhook on any objects whose
       * namespace is associated with the "environment" of "prod" or "staging";
       * you will set the selector as follows:
       * "namespaceSelector": {
       *   "matchExpressions": [
       *     {
       *       "key": "environment",
       *       "operator": "In",
       *       "values": [
       *         "prod",
       *         "staging"
       *       ]
       *     }
       *   ]
       * }
       * See
       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
       * for more examples of label selectors.
       * Default to the empty LabelSelector, which matches everything.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; * */ public boolean hasNamespaceSelector() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * NamespaceSelector decides whether to run the webhook on an object based
       * on whether the namespace for that object matches the selector. If the
       * object itself is a namespace, the matching is performed on
       * object.metadata.labels. If the object is another cluster scoped resource,
       * it never skips the webhook.
       * For example, to run the webhook on any objects whose namespace is not
       * associated with "runlevel" of "0" or "1";  you will set the selector as
       * follows:
       * "namespaceSelector": {
       *   "matchExpressions": [
       *     {
       *       "key": "runlevel",
       *       "operator": "NotIn",
       *       "values": [
       *         "0",
       *         "1"
       *       ]
       *     }
       *   ]
       * }
       * If instead you want to only run the webhook on any objects whose
       * namespace is associated with the "environment" of "prod" or "staging";
       * you will set the selector as follows:
       * "namespaceSelector": {
       *   "matchExpressions": [
       *     {
       *       "key": "environment",
       *       "operator": "In",
       *       "values": [
       *         "prod",
       *         "staging"
       *       ]
       *     }
       *   ]
       * }
       * See
       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
       * for more examples of label selectors.
       * Default to the empty LabelSelector, which matches everything.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; * */ public io.kubernetes.client.proto.Meta.LabelSelector getNamespaceSelector() { if (namespaceSelectorBuilder_ == null) { return namespaceSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : namespaceSelector_; } else { return namespaceSelectorBuilder_.getMessage(); } } /** * * *
       * NamespaceSelector decides whether to run the webhook on an object based
       * on whether the namespace for that object matches the selector. If the
       * object itself is a namespace, the matching is performed on
       * object.metadata.labels. If the object is another cluster scoped resource,
       * it never skips the webhook.
       * For example, to run the webhook on any objects whose namespace is not
       * associated with "runlevel" of "0" or "1";  you will set the selector as
       * follows:
       * "namespaceSelector": {
       *   "matchExpressions": [
       *     {
       *       "key": "runlevel",
       *       "operator": "NotIn",
       *       "values": [
       *         "0",
       *         "1"
       *       ]
       *     }
       *   ]
       * }
       * If instead you want to only run the webhook on any objects whose
       * namespace is associated with the "environment" of "prod" or "staging";
       * you will set the selector as follows:
       * "namespaceSelector": {
       *   "matchExpressions": [
       *     {
       *       "key": "environment",
       *       "operator": "In",
       *       "values": [
       *         "prod",
       *         "staging"
       *       ]
       *     }
       *   ]
       * }
       * See
       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
       * for more examples of label selectors.
       * Default to the empty LabelSelector, which matches everything.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; * */ public Builder setNamespaceSelector(io.kubernetes.client.proto.Meta.LabelSelector value) { if (namespaceSelectorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } namespaceSelector_ = value; onChanged(); } else { namespaceSelectorBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** * * *
       * NamespaceSelector decides whether to run the webhook on an object based
       * on whether the namespace for that object matches the selector. If the
       * object itself is a namespace, the matching is performed on
       * object.metadata.labels. If the object is another cluster scoped resource,
       * it never skips the webhook.
       * For example, to run the webhook on any objects whose namespace is not
       * associated with "runlevel" of "0" or "1";  you will set the selector as
       * follows:
       * "namespaceSelector": {
       *   "matchExpressions": [
       *     {
       *       "key": "runlevel",
       *       "operator": "NotIn",
       *       "values": [
       *         "0",
       *         "1"
       *       ]
       *     }
       *   ]
       * }
       * If instead you want to only run the webhook on any objects whose
       * namespace is associated with the "environment" of "prod" or "staging";
       * you will set the selector as follows:
       * "namespaceSelector": {
       *   "matchExpressions": [
       *     {
       *       "key": "environment",
       *       "operator": "In",
       *       "values": [
       *         "prod",
       *         "staging"
       *       ]
       *     }
       *   ]
       * }
       * See
       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
       * for more examples of label selectors.
       * Default to the empty LabelSelector, which matches everything.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; * */ public Builder setNamespaceSelector( io.kubernetes.client.proto.Meta.LabelSelector.Builder builderForValue) { if (namespaceSelectorBuilder_ == null) { namespaceSelector_ = builderForValue.build(); onChanged(); } else { namespaceSelectorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** * * *
       * NamespaceSelector decides whether to run the webhook on an object based
       * on whether the namespace for that object matches the selector. If the
       * object itself is a namespace, the matching is performed on
       * object.metadata.labels. If the object is another cluster scoped resource,
       * it never skips the webhook.
       * For example, to run the webhook on any objects whose namespace is not
       * associated with "runlevel" of "0" or "1";  you will set the selector as
       * follows:
       * "namespaceSelector": {
       *   "matchExpressions": [
       *     {
       *       "key": "runlevel",
       *       "operator": "NotIn",
       *       "values": [
       *         "0",
       *         "1"
       *       ]
       *     }
       *   ]
       * }
       * If instead you want to only run the webhook on any objects whose
       * namespace is associated with the "environment" of "prod" or "staging";
       * you will set the selector as follows:
       * "namespaceSelector": {
       *   "matchExpressions": [
       *     {
       *       "key": "environment",
       *       "operator": "In",
       *       "values": [
       *         "prod",
       *         "staging"
       *       ]
       *     }
       *   ]
       * }
       * See
       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
       * for more examples of label selectors.
       * Default to the empty LabelSelector, which matches everything.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; * */ public Builder mergeNamespaceSelector(io.kubernetes.client.proto.Meta.LabelSelector value) { if (namespaceSelectorBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && namespaceSelector_ != null && namespaceSelector_ != io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance()) { namespaceSelector_ = io.kubernetes.client.proto.Meta.LabelSelector.newBuilder(namespaceSelector_) .mergeFrom(value) .buildPartial(); } else { namespaceSelector_ = value; } onChanged(); } else { namespaceSelectorBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** * * *
       * NamespaceSelector decides whether to run the webhook on an object based
       * on whether the namespace for that object matches the selector. If the
       * object itself is a namespace, the matching is performed on
       * object.metadata.labels. If the object is another cluster scoped resource,
       * it never skips the webhook.
       * For example, to run the webhook on any objects whose namespace is not
       * associated with "runlevel" of "0" or "1";  you will set the selector as
       * follows:
       * "namespaceSelector": {
       *   "matchExpressions": [
       *     {
       *       "key": "runlevel",
       *       "operator": "NotIn",
       *       "values": [
       *         "0",
       *         "1"
       *       ]
       *     }
       *   ]
       * }
       * If instead you want to only run the webhook on any objects whose
       * namespace is associated with the "environment" of "prod" or "staging";
       * you will set the selector as follows:
       * "namespaceSelector": {
       *   "matchExpressions": [
       *     {
       *       "key": "environment",
       *       "operator": "In",
       *       "values": [
       *         "prod",
       *         "staging"
       *       ]
       *     }
       *   ]
       * }
       * See
       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
       * for more examples of label selectors.
       * Default to the empty LabelSelector, which matches everything.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; * */ public Builder clearNamespaceSelector() { if (namespaceSelectorBuilder_ == null) { namespaceSelector_ = null; onChanged(); } else { namespaceSelectorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** * * *
       * NamespaceSelector decides whether to run the webhook on an object based
       * on whether the namespace for that object matches the selector. If the
       * object itself is a namespace, the matching is performed on
       * object.metadata.labels. If the object is another cluster scoped resource,
       * it never skips the webhook.
       * For example, to run the webhook on any objects whose namespace is not
       * associated with "runlevel" of "0" or "1";  you will set the selector as
       * follows:
       * "namespaceSelector": {
       *   "matchExpressions": [
       *     {
       *       "key": "runlevel",
       *       "operator": "NotIn",
       *       "values": [
       *         "0",
       *         "1"
       *       ]
       *     }
       *   ]
       * }
       * If instead you want to only run the webhook on any objects whose
       * namespace is associated with the "environment" of "prod" or "staging";
       * you will set the selector as follows:
       * "namespaceSelector": {
       *   "matchExpressions": [
       *     {
       *       "key": "environment",
       *       "operator": "In",
       *       "values": [
       *         "prod",
       *         "staging"
       *       ]
       *     }
       *   ]
       * }
       * See
       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
       * for more examples of label selectors.
       * Default to the empty LabelSelector, which matches everything.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; * */ public io.kubernetes.client.proto.Meta.LabelSelector.Builder getNamespaceSelectorBuilder() { bitField0_ |= 0x00000020; onChanged(); return getNamespaceSelectorFieldBuilder().getBuilder(); } /** * * *
       * NamespaceSelector decides whether to run the webhook on an object based
       * on whether the namespace for that object matches the selector. If the
       * object itself is a namespace, the matching is performed on
       * object.metadata.labels. If the object is another cluster scoped resource,
       * it never skips the webhook.
       * For example, to run the webhook on any objects whose namespace is not
       * associated with "runlevel" of "0" or "1";  you will set the selector as
       * follows:
       * "namespaceSelector": {
       *   "matchExpressions": [
       *     {
       *       "key": "runlevel",
       *       "operator": "NotIn",
       *       "values": [
       *         "0",
       *         "1"
       *       ]
       *     }
       *   ]
       * }
       * If instead you want to only run the webhook on any objects whose
       * namespace is associated with the "environment" of "prod" or "staging";
       * you will set the selector as follows:
       * "namespaceSelector": {
       *   "matchExpressions": [
       *     {
       *       "key": "environment",
       *       "operator": "In",
       *       "values": [
       *         "prod",
       *         "staging"
       *       ]
       *     }
       *   ]
       * }
       * See
       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
       * for more examples of label selectors.
       * Default to the empty LabelSelector, which matches everything.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; * */ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getNamespaceSelectorOrBuilder() { if (namespaceSelectorBuilder_ != null) { return namespaceSelectorBuilder_.getMessageOrBuilder(); } else { return namespaceSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : namespaceSelector_; } } /** * * *
       * NamespaceSelector decides whether to run the webhook on an object based
       * on whether the namespace for that object matches the selector. If the
       * object itself is a namespace, the matching is performed on
       * object.metadata.labels. If the object is another cluster scoped resource,
       * it never skips the webhook.
       * For example, to run the webhook on any objects whose namespace is not
       * associated with "runlevel" of "0" or "1";  you will set the selector as
       * follows:
       * "namespaceSelector": {
       *   "matchExpressions": [
       *     {
       *       "key": "runlevel",
       *       "operator": "NotIn",
       *       "values": [
       *         "0",
       *         "1"
       *       ]
       *     }
       *   ]
       * }
       * If instead you want to only run the webhook on any objects whose
       * namespace is associated with the "environment" of "prod" or "staging";
       * you will set the selector as follows:
       * "namespaceSelector": {
       *   "matchExpressions": [
       *     {
       *       "key": "environment",
       *       "operator": "In",
       *       "values": [
       *         "prod",
       *         "staging"
       *       ]
       *     }
       *   ]
       * }
       * See
       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
       * for more examples of label selectors.
       * Default to the empty LabelSelector, which matches everything.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder> getNamespaceSelectorFieldBuilder() { if (namespaceSelectorBuilder_ == null) { namespaceSelectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder>( getNamespaceSelector(), getParentForChildren(), isClean()); namespaceSelector_ = null; } return namespaceSelectorBuilder_; } private io.kubernetes.client.proto.Meta.LabelSelector objectSelector_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder> objectSelectorBuilder_; /** * * *
       * ObjectSelector decides whether to run the webhook based on if the
       * object has matching labels. objectSelector is evaluated against both
       * the oldObject and newObject that would be sent to the webhook, and
       * is considered to match if either object matches the selector. A null
       * object (oldObject in the case of create, or newObject in the case of
       * delete) or an object that cannot have labels (like a
       * DeploymentRollback or a PodProxyOptions object) is not considered to
       * match.
       * Use the object selector only if the webhook is opt-in, because end
       * users may skip the admission webhook by setting the labels.
       * Default to the empty LabelSelector, which matches everything.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 11; * */ public boolean hasObjectSelector() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
       * ObjectSelector decides whether to run the webhook based on if the
       * object has matching labels. objectSelector is evaluated against both
       * the oldObject and newObject that would be sent to the webhook, and
       * is considered to match if either object matches the selector. A null
       * object (oldObject in the case of create, or newObject in the case of
       * delete) or an object that cannot have labels (like a
       * DeploymentRollback or a PodProxyOptions object) is not considered to
       * match.
       * Use the object selector only if the webhook is opt-in, because end
       * users may skip the admission webhook by setting the labels.
       * Default to the empty LabelSelector, which matches everything.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 11; * */ public io.kubernetes.client.proto.Meta.LabelSelector getObjectSelector() { if (objectSelectorBuilder_ == null) { return objectSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : objectSelector_; } else { return objectSelectorBuilder_.getMessage(); } } /** * * *
       * ObjectSelector decides whether to run the webhook based on if the
       * object has matching labels. objectSelector is evaluated against both
       * the oldObject and newObject that would be sent to the webhook, and
       * is considered to match if either object matches the selector. A null
       * object (oldObject in the case of create, or newObject in the case of
       * delete) or an object that cannot have labels (like a
       * DeploymentRollback or a PodProxyOptions object) is not considered to
       * match.
       * Use the object selector only if the webhook is opt-in, because end
       * users may skip the admission webhook by setting the labels.
       * Default to the empty LabelSelector, which matches everything.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 11; * */ public Builder setObjectSelector(io.kubernetes.client.proto.Meta.LabelSelector value) { if (objectSelectorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } objectSelector_ = value; onChanged(); } else { objectSelectorBuilder_.setMessage(value); } bitField0_ |= 0x00000040; return this; } /** * * *
       * ObjectSelector decides whether to run the webhook based on if the
       * object has matching labels. objectSelector is evaluated against both
       * the oldObject and newObject that would be sent to the webhook, and
       * is considered to match if either object matches the selector. A null
       * object (oldObject in the case of create, or newObject in the case of
       * delete) or an object that cannot have labels (like a
       * DeploymentRollback or a PodProxyOptions object) is not considered to
       * match.
       * Use the object selector only if the webhook is opt-in, because end
       * users may skip the admission webhook by setting the labels.
       * Default to the empty LabelSelector, which matches everything.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 11; * */ public Builder setObjectSelector( io.kubernetes.client.proto.Meta.LabelSelector.Builder builderForValue) { if (objectSelectorBuilder_ == null) { objectSelector_ = builderForValue.build(); onChanged(); } else { objectSelectorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; return this; } /** * * *
       * ObjectSelector decides whether to run the webhook based on if the
       * object has matching labels. objectSelector is evaluated against both
       * the oldObject and newObject that would be sent to the webhook, and
       * is considered to match if either object matches the selector. A null
       * object (oldObject in the case of create, or newObject in the case of
       * delete) or an object that cannot have labels (like a
       * DeploymentRollback or a PodProxyOptions object) is not considered to
       * match.
       * Use the object selector only if the webhook is opt-in, because end
       * users may skip the admission webhook by setting the labels.
       * Default to the empty LabelSelector, which matches everything.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 11; * */ public Builder mergeObjectSelector(io.kubernetes.client.proto.Meta.LabelSelector value) { if (objectSelectorBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040) && objectSelector_ != null && objectSelector_ != io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance()) { objectSelector_ = io.kubernetes.client.proto.Meta.LabelSelector.newBuilder(objectSelector_) .mergeFrom(value) .buildPartial(); } else { objectSelector_ = value; } onChanged(); } else { objectSelectorBuilder_.mergeFrom(value); } bitField0_ |= 0x00000040; return this; } /** * * *
       * ObjectSelector decides whether to run the webhook based on if the
       * object has matching labels. objectSelector is evaluated against both
       * the oldObject and newObject that would be sent to the webhook, and
       * is considered to match if either object matches the selector. A null
       * object (oldObject in the case of create, or newObject in the case of
       * delete) or an object that cannot have labels (like a
       * DeploymentRollback or a PodProxyOptions object) is not considered to
       * match.
       * Use the object selector only if the webhook is opt-in, because end
       * users may skip the admission webhook by setting the labels.
       * Default to the empty LabelSelector, which matches everything.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 11; * */ public Builder clearObjectSelector() { if (objectSelectorBuilder_ == null) { objectSelector_ = null; onChanged(); } else { objectSelectorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } /** * * *
       * ObjectSelector decides whether to run the webhook based on if the
       * object has matching labels. objectSelector is evaluated against both
       * the oldObject and newObject that would be sent to the webhook, and
       * is considered to match if either object matches the selector. A null
       * object (oldObject in the case of create, or newObject in the case of
       * delete) or an object that cannot have labels (like a
       * DeploymentRollback or a PodProxyOptions object) is not considered to
       * match.
       * Use the object selector only if the webhook is opt-in, because end
       * users may skip the admission webhook by setting the labels.
       * Default to the empty LabelSelector, which matches everything.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 11; * */ public io.kubernetes.client.proto.Meta.LabelSelector.Builder getObjectSelectorBuilder() { bitField0_ |= 0x00000040; onChanged(); return getObjectSelectorFieldBuilder().getBuilder(); } /** * * *
       * ObjectSelector decides whether to run the webhook based on if the
       * object has matching labels. objectSelector is evaluated against both
       * the oldObject and newObject that would be sent to the webhook, and
       * is considered to match if either object matches the selector. A null
       * object (oldObject in the case of create, or newObject in the case of
       * delete) or an object that cannot have labels (like a
       * DeploymentRollback or a PodProxyOptions object) is not considered to
       * match.
       * Use the object selector only if the webhook is opt-in, because end
       * users may skip the admission webhook by setting the labels.
       * Default to the empty LabelSelector, which matches everything.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 11; * */ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getObjectSelectorOrBuilder() { if (objectSelectorBuilder_ != null) { return objectSelectorBuilder_.getMessageOrBuilder(); } else { return objectSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : objectSelector_; } } /** * * *
       * ObjectSelector decides whether to run the webhook based on if the
       * object has matching labels. objectSelector is evaluated against both
       * the oldObject and newObject that would be sent to the webhook, and
       * is considered to match if either object matches the selector. A null
       * object (oldObject in the case of create, or newObject in the case of
       * delete) or an object that cannot have labels (like a
       * DeploymentRollback or a PodProxyOptions object) is not considered to
       * match.
       * Use the object selector only if the webhook is opt-in, because end
       * users may skip the admission webhook by setting the labels.
       * Default to the empty LabelSelector, which matches everything.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 11; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder> getObjectSelectorFieldBuilder() { if (objectSelectorBuilder_ == null) { objectSelectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder>( getObjectSelector(), getParentForChildren(), isClean()); objectSelector_ = null; } return objectSelectorBuilder_; } private java.lang.Object sideEffects_ = ""; /** * * *
       * SideEffects states whether this webhook has side effects.
       * Acceptable values are: Unknown, None, Some, NoneOnDryRun
       * Webhooks with side effects MUST implement a reconciliation system, since a request may be
       * rejected by a future step in the admission chain and the side effects therefore need to be undone.
       * Requests with the dryRun attribute will be auto-rejected if they match a webhook with
       * sideEffects == Unknown or Some. Defaults to Unknown.
       * +optional
       * 
* * optional string sideEffects = 6; */ public boolean hasSideEffects() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
       * SideEffects states whether this webhook has side effects.
       * Acceptable values are: Unknown, None, Some, NoneOnDryRun
       * Webhooks with side effects MUST implement a reconciliation system, since a request may be
       * rejected by a future step in the admission chain and the side effects therefore need to be undone.
       * Requests with the dryRun attribute will be auto-rejected if they match a webhook with
       * sideEffects == Unknown or Some. Defaults to Unknown.
       * +optional
       * 
* * optional string sideEffects = 6; */ public java.lang.String getSideEffects() { java.lang.Object ref = sideEffects_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { sideEffects_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * SideEffects states whether this webhook has side effects.
       * Acceptable values are: Unknown, None, Some, NoneOnDryRun
       * Webhooks with side effects MUST implement a reconciliation system, since a request may be
       * rejected by a future step in the admission chain and the side effects therefore need to be undone.
       * Requests with the dryRun attribute will be auto-rejected if they match a webhook with
       * sideEffects == Unknown or Some. Defaults to Unknown.
       * +optional
       * 
* * optional string sideEffects = 6; */ public com.google.protobuf.ByteString getSideEffectsBytes() { java.lang.Object ref = sideEffects_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sideEffects_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * SideEffects states whether this webhook has side effects.
       * Acceptable values are: Unknown, None, Some, NoneOnDryRun
       * Webhooks with side effects MUST implement a reconciliation system, since a request may be
       * rejected by a future step in the admission chain and the side effects therefore need to be undone.
       * Requests with the dryRun attribute will be auto-rejected if they match a webhook with
       * sideEffects == Unknown or Some. Defaults to Unknown.
       * +optional
       * 
* * optional string sideEffects = 6; */ public Builder setSideEffects(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; sideEffects_ = value; onChanged(); return this; } /** * * *
       * SideEffects states whether this webhook has side effects.
       * Acceptable values are: Unknown, None, Some, NoneOnDryRun
       * Webhooks with side effects MUST implement a reconciliation system, since a request may be
       * rejected by a future step in the admission chain and the side effects therefore need to be undone.
       * Requests with the dryRun attribute will be auto-rejected if they match a webhook with
       * sideEffects == Unknown or Some. Defaults to Unknown.
       * +optional
       * 
* * optional string sideEffects = 6; */ public Builder clearSideEffects() { bitField0_ = (bitField0_ & ~0x00000080); sideEffects_ = getDefaultInstance().getSideEffects(); onChanged(); return this; } /** * * *
       * SideEffects states whether this webhook has side effects.
       * Acceptable values are: Unknown, None, Some, NoneOnDryRun
       * Webhooks with side effects MUST implement a reconciliation system, since a request may be
       * rejected by a future step in the admission chain and the side effects therefore need to be undone.
       * Requests with the dryRun attribute will be auto-rejected if they match a webhook with
       * sideEffects == Unknown or Some. Defaults to Unknown.
       * +optional
       * 
* * optional string sideEffects = 6; */ public Builder setSideEffectsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; sideEffects_ = value; onChanged(); return this; } private int timeoutSeconds_; /** * * *
       * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes,
       * the webhook call will be ignored or the API call will fail based on the
       * failure policy.
       * The timeout value must be between 1 and 30 seconds.
       * Default to 30 seconds.
       * +optional
       * 
* * optional int32 timeoutSeconds = 7; */ public boolean hasTimeoutSeconds() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * * *
       * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes,
       * the webhook call will be ignored or the API call will fail based on the
       * failure policy.
       * The timeout value must be between 1 and 30 seconds.
       * Default to 30 seconds.
       * +optional
       * 
* * optional int32 timeoutSeconds = 7; */ public int getTimeoutSeconds() { return timeoutSeconds_; } /** * * *
       * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes,
       * the webhook call will be ignored or the API call will fail based on the
       * failure policy.
       * The timeout value must be between 1 and 30 seconds.
       * Default to 30 seconds.
       * +optional
       * 
* * optional int32 timeoutSeconds = 7; */ public Builder setTimeoutSeconds(int value) { bitField0_ |= 0x00000100; timeoutSeconds_ = value; onChanged(); return this; } /** * * *
       * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes,
       * the webhook call will be ignored or the API call will fail based on the
       * failure policy.
       * The timeout value must be between 1 and 30 seconds.
       * Default to 30 seconds.
       * +optional
       * 
* * optional int32 timeoutSeconds = 7; */ public Builder clearTimeoutSeconds() { bitField0_ = (bitField0_ & ~0x00000100); timeoutSeconds_ = 0; onChanged(); return this; } private com.google.protobuf.LazyStringList admissionReviewVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAdmissionReviewVersionsIsMutable() { if (!((bitField0_ & 0x00000200) == 0x00000200)) { admissionReviewVersions_ = new com.google.protobuf.LazyStringArrayList(admissionReviewVersions_); bitField0_ |= 0x00000200; } } /** * * *
       * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
       * versions the Webhook expects. API server will try to use first version in
       * the list which it supports. If none of the versions specified in this list
       * supported by API server, validation will fail for this object.
       * 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
       * and be subject to the failure policy.
       * Default to `['v1beta1']`.
       * +optional
       * 
* * repeated string admissionReviewVersions = 8; */ public com.google.protobuf.ProtocolStringList getAdmissionReviewVersionsList() { return admissionReviewVersions_.getUnmodifiableView(); } /** * * *
       * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
       * versions the Webhook expects. API server will try to use first version in
       * the list which it supports. If none of the versions specified in this list
       * supported by API server, validation will fail for this object.
       * 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
       * and be subject to the failure policy.
       * Default to `['v1beta1']`.
       * +optional
       * 
* * repeated string admissionReviewVersions = 8; */ public int getAdmissionReviewVersionsCount() { return admissionReviewVersions_.size(); } /** * * *
       * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
       * versions the Webhook expects. API server will try to use first version in
       * the list which it supports. If none of the versions specified in this list
       * supported by API server, validation will fail for this object.
       * 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
       * and be subject to the failure policy.
       * Default to `['v1beta1']`.
       * +optional
       * 
* * repeated string admissionReviewVersions = 8; */ public java.lang.String getAdmissionReviewVersions(int index) { return admissionReviewVersions_.get(index); } /** * * *
       * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
       * versions the Webhook expects. API server will try to use first version in
       * the list which it supports. If none of the versions specified in this list
       * supported by API server, validation will fail for this object.
       * 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
       * and be subject to the failure policy.
       * Default to `['v1beta1']`.
       * +optional
       * 
* * repeated string admissionReviewVersions = 8; */ public com.google.protobuf.ByteString getAdmissionReviewVersionsBytes(int index) { return admissionReviewVersions_.getByteString(index); } /** * * *
       * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
       * versions the Webhook expects. API server will try to use first version in
       * the list which it supports. If none of the versions specified in this list
       * supported by API server, validation will fail for this object.
       * 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
       * and be subject to the failure policy.
       * Default to `['v1beta1']`.
       * +optional
       * 
* * repeated string admissionReviewVersions = 8; */ public Builder setAdmissionReviewVersions(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAdmissionReviewVersionsIsMutable(); admissionReviewVersions_.set(index, value); onChanged(); return this; } /** * * *
       * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
       * versions the Webhook expects. API server will try to use first version in
       * the list which it supports. If none of the versions specified in this list
       * supported by API server, validation will fail for this object.
       * 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
       * and be subject to the failure policy.
       * Default to `['v1beta1']`.
       * +optional
       * 
* * repeated string admissionReviewVersions = 8; */ public Builder addAdmissionReviewVersions(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAdmissionReviewVersionsIsMutable(); admissionReviewVersions_.add(value); onChanged(); return this; } /** * * *
       * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
       * versions the Webhook expects. API server will try to use first version in
       * the list which it supports. If none of the versions specified in this list
       * supported by API server, validation will fail for this object.
       * 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
       * and be subject to the failure policy.
       * Default to `['v1beta1']`.
       * +optional
       * 
* * repeated string admissionReviewVersions = 8; */ public Builder addAllAdmissionReviewVersions(java.lang.Iterable values) { ensureAdmissionReviewVersionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, admissionReviewVersions_); onChanged(); return this; } /** * * *
       * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
       * versions the Webhook expects. API server will try to use first version in
       * the list which it supports. If none of the versions specified in this list
       * supported by API server, validation will fail for this object.
       * 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
       * and be subject to the failure policy.
       * Default to `['v1beta1']`.
       * +optional
       * 
* * repeated string admissionReviewVersions = 8; */ public Builder clearAdmissionReviewVersions() { admissionReviewVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } /** * * *
       * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
       * versions the Webhook expects. API server will try to use first version in
       * the list which it supports. If none of the versions specified in this list
       * supported by API server, validation will fail for this object.
       * 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
       * and be subject to the failure policy.
       * Default to `['v1beta1']`.
       * +optional
       * 
* * repeated string admissionReviewVersions = 8; */ public Builder addAdmissionReviewVersionsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureAdmissionReviewVersionsIsMutable(); admissionReviewVersions_.add(value); onChanged(); return this; } private java.lang.Object reinvocationPolicy_ = ""; /** * * *
       * reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation.
       * Allowed values are "Never" and "IfNeeded".
       * Never: the webhook will not be called more than once in a single admission evaluation.
       * IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation
       * if the object being admitted is modified by other admission plugins after the initial webhook call.
       * Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted.
       * Note:
       * * the number of additional invocations is not guaranteed to be exactly one.
       * * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again.
       * * webhooks that use this option may be reordered to minimize the number of additional invocations.
       * * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.
       * Defaults to "Never".
       * +optional
       * 
* * optional string reinvocationPolicy = 10; */ public boolean hasReinvocationPolicy() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * * *
       * reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation.
       * Allowed values are "Never" and "IfNeeded".
       * Never: the webhook will not be called more than once in a single admission evaluation.
       * IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation
       * if the object being admitted is modified by other admission plugins after the initial webhook call.
       * Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted.
       * Note:
       * * the number of additional invocations is not guaranteed to be exactly one.
       * * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again.
       * * webhooks that use this option may be reordered to minimize the number of additional invocations.
       * * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.
       * Defaults to "Never".
       * +optional
       * 
* * optional string reinvocationPolicy = 10; */ public java.lang.String getReinvocationPolicy() { java.lang.Object ref = reinvocationPolicy_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { reinvocationPolicy_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation.
       * Allowed values are "Never" and "IfNeeded".
       * Never: the webhook will not be called more than once in a single admission evaluation.
       * IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation
       * if the object being admitted is modified by other admission plugins after the initial webhook call.
       * Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted.
       * Note:
       * * the number of additional invocations is not guaranteed to be exactly one.
       * * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again.
       * * webhooks that use this option may be reordered to minimize the number of additional invocations.
       * * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.
       * Defaults to "Never".
       * +optional
       * 
* * optional string reinvocationPolicy = 10; */ public com.google.protobuf.ByteString getReinvocationPolicyBytes() { java.lang.Object ref = reinvocationPolicy_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reinvocationPolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation.
       * Allowed values are "Never" and "IfNeeded".
       * Never: the webhook will not be called more than once in a single admission evaluation.
       * IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation
       * if the object being admitted is modified by other admission plugins after the initial webhook call.
       * Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted.
       * Note:
       * * the number of additional invocations is not guaranteed to be exactly one.
       * * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again.
       * * webhooks that use this option may be reordered to minimize the number of additional invocations.
       * * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.
       * Defaults to "Never".
       * +optional
       * 
* * optional string reinvocationPolicy = 10; */ public Builder setReinvocationPolicy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; reinvocationPolicy_ = value; onChanged(); return this; } /** * * *
       * reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation.
       * Allowed values are "Never" and "IfNeeded".
       * Never: the webhook will not be called more than once in a single admission evaluation.
       * IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation
       * if the object being admitted is modified by other admission plugins after the initial webhook call.
       * Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted.
       * Note:
       * * the number of additional invocations is not guaranteed to be exactly one.
       * * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again.
       * * webhooks that use this option may be reordered to minimize the number of additional invocations.
       * * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.
       * Defaults to "Never".
       * +optional
       * 
* * optional string reinvocationPolicy = 10; */ public Builder clearReinvocationPolicy() { bitField0_ = (bitField0_ & ~0x00000400); reinvocationPolicy_ = getDefaultInstance().getReinvocationPolicy(); onChanged(); return this; } /** * * *
       * reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation.
       * Allowed values are "Never" and "IfNeeded".
       * Never: the webhook will not be called more than once in a single admission evaluation.
       * IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation
       * if the object being admitted is modified by other admission plugins after the initial webhook call.
       * Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted.
       * Note:
       * * the number of additional invocations is not guaranteed to be exactly one.
       * * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again.
       * * webhooks that use this option may be reordered to minimize the number of additional invocations.
       * * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.
       * Defaults to "Never".
       * +optional
       * 
* * optional string reinvocationPolicy = 10; */ public Builder setReinvocationPolicyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; reinvocationPolicy_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.admissionregistration.v1beta1.MutatingWebhook) } // @@protoc_insertion_point(class_scope:k8s.io.api.admissionregistration.v1beta1.MutatingWebhook) private static final io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook(); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MutatingWebhook parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MutatingWebhook(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MutatingWebhookConfigurationOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ boolean hasMetadata(); /** * * *
     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); /** * * *
     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder(); /** * * *
     * Webhooks is a list of webhooks and the affected resources and operations.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhook Webhooks = 2; */ java.util.List getWebhooksList(); /** * * *
     * Webhooks is a list of webhooks and the affected resources and operations.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhook Webhooks = 2; */ io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook getWebhooks(int index); /** * * *
     * Webhooks is a list of webhooks and the affected resources and operations.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhook Webhooks = 2; */ int getWebhooksCount(); /** * * *
     * Webhooks is a list of webhooks and the affected resources and operations.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhook Webhooks = 2; */ java.util.List< ? extends io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookOrBuilder> getWebhooksOrBuilderList(); /** * * *
     * Webhooks is a list of webhooks and the affected resources and operations.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhook Webhooks = 2; */ io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookOrBuilder getWebhooksOrBuilder(int index); } /** * * *
   * MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object.
   * Deprecated in v1.16, planned for removal in v1.19. Use admissionregistration.k8s.io/v1 MutatingWebhookConfiguration instead.
   * 
* * Protobuf type {@code k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration} */ public static final class MutatingWebhookConfiguration extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration) MutatingWebhookConfigurationOrBuilder { private static final long serialVersionUID = 0L; // Use MutatingWebhookConfiguration.newBuilder() to construct. private MutatingWebhookConfiguration( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MutatingWebhookConfiguration() { webhooks_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MutatingWebhookConfiguration( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { io.kubernetes.client.proto.Meta.ObjectMeta.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = metadata_.toBuilder(); } metadata_ = input.readMessage( io.kubernetes.client.proto.Meta.ObjectMeta.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(metadata_); metadata_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { webhooks_ = new java.util.ArrayList< io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhook>(); mutable_bitField0_ |= 0x00000002; } webhooks_.add( input.readMessage( io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook .PARSER, extensionRegistry)); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { webhooks_ = java.util.Collections.unmodifiableList(webhooks_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_MutatingWebhookConfiguration_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_MutatingWebhookConfiguration_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration .class, io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration .Builder.class); } private int bitField0_; public static final int METADATA_FIELD_NUMBER = 1; private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; /** * * *
     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } /** * * *
     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } public static final int WEBHOOKS_FIELD_NUMBER = 2; private java.util.List webhooks_; /** * * *
     * Webhooks is a list of webhooks and the affected resources and operations.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhook Webhooks = 2; */ public java.util.List getWebhooksList() { return webhooks_; } /** * * *
     * Webhooks is a list of webhooks and the affected resources and operations.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhook Webhooks = 2; */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookOrBuilder> getWebhooksOrBuilderList() { return webhooks_; } /** * * *
     * Webhooks is a list of webhooks and the affected resources and operations.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhook Webhooks = 2; */ public int getWebhooksCount() { return webhooks_.size(); } /** * * *
     * Webhooks is a list of webhooks and the affected resources and operations.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhook Webhooks = 2; */ public io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook getWebhooks( int index) { return webhooks_.get(index); } /** * * *
     * Webhooks is a list of webhooks and the affected resources and operations.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhook Webhooks = 2; */ public io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookOrBuilder getWebhooksOrBuilder(int index) { return webhooks_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getMetadata()); } for (int i = 0; i < webhooks_.size(); i++) { output.writeMessage(2, webhooks_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMetadata()); } for (int i = 0; i < webhooks_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, webhooks_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration other = (io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration) obj; boolean result = true; result = result && (hasMetadata() == other.hasMetadata()); if (hasMetadata()) { result = result && getMetadata().equals(other.getMetadata()); } result = result && getWebhooksList().equals(other.getWebhooksList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasMetadata()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); } if (getWebhooksCount() > 0) { hash = (37 * hash) + WEBHOOKS_FIELD_NUMBER; hash = (53 * hash) + getWebhooksList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfiguration parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfiguration parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfiguration parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfiguration parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfiguration parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfiguration parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfiguration parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfiguration parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfiguration parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfiguration parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfiguration parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfiguration parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object.
     * Deprecated in v1.16, planned for removal in v1.19. Use admissionregistration.k8s.io/v1 MutatingWebhookConfiguration instead.
     * 
* * Protobuf type {@code k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration) io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_MutatingWebhookConfiguration_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_MutatingWebhookConfiguration_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration .class, io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration .Builder.class); } // Construct using // io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getMetadataFieldBuilder(); getWebhooksFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (metadataBuilder_ == null) { metadata_ = null; } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (webhooksBuilder_ == null) { webhooks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { webhooksBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_MutatingWebhookConfiguration_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration .getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration build() { io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration buildPartial() { io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration result = new io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfiguration(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (metadataBuilder_ == null) { result.metadata_ = metadata_; } else { result.metadata_ = metadataBuilder_.build(); } if (webhooksBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { webhooks_ = java.util.Collections.unmodifiableList(webhooks_); bitField0_ = (bitField0_ & ~0x00000002); } result.webhooks_ = webhooks_; } else { result.webhooks_ = webhooksBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration other) { if (other == io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration .getDefaultInstance()) return this; if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } if (webhooksBuilder_ == null) { if (!other.webhooks_.isEmpty()) { if (webhooks_.isEmpty()) { webhooks_ = other.webhooks_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureWebhooksIsMutable(); webhooks_.addAll(other.webhooks_); } onChanged(); } } else { if (!other.webhooks_.isEmpty()) { if (webhooksBuilder_.isEmpty()) { webhooksBuilder_.dispose(); webhooksBuilder_ = null; webhooks_ = other.webhooks_; bitField0_ = (bitField0_ & ~0x00000002); webhooksBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getWebhooksFieldBuilder() : null; } else { webhooksBuilder_.addAllMessages(other.webhooks_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; /** * * *
       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { if (metadataBuilder_ == null) { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** * * *
       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); } else { metadataBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder setMetadata( io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { if (metadataBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && metadata_ != null && metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) { metadata_ = io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_) .mergeFrom(value) .buildPartial(); } else { metadata_ = value; } onChanged(); } else { metadataBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder clearMetadata() { if (metadataBuilder_ == null) { metadata_ = null; onChanged(); } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** * * *
       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } } /** * * *
       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>( getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } private java.util.List< io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook> webhooks_ = java.util.Collections.emptyList(); private void ensureWebhooksIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { webhooks_ = new java.util.ArrayList< io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook>( webhooks_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook, io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook.Builder, io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookOrBuilder> webhooksBuilder_; /** * * *
       * Webhooks is a list of webhooks and the affected resources and operations.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhook Webhooks = 2; * */ public java.util.List getWebhooksList() { if (webhooksBuilder_ == null) { return java.util.Collections.unmodifiableList(webhooks_); } else { return webhooksBuilder_.getMessageList(); } } /** * * *
       * Webhooks is a list of webhooks and the affected resources and operations.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhook Webhooks = 2; * */ public int getWebhooksCount() { if (webhooksBuilder_ == null) { return webhooks_.size(); } else { return webhooksBuilder_.getCount(); } } /** * * *
       * Webhooks is a list of webhooks and the affected resources and operations.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhook Webhooks = 2; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook getWebhooks( int index) { if (webhooksBuilder_ == null) { return webhooks_.get(index); } else { return webhooksBuilder_.getMessage(index); } } /** * * *
       * Webhooks is a list of webhooks and the affected resources and operations.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhook Webhooks = 2; * */ public Builder setWebhooks( int index, io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook value) { if (webhooksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWebhooksIsMutable(); webhooks_.set(index, value); onChanged(); } else { webhooksBuilder_.setMessage(index, value); } return this; } /** * * *
       * Webhooks is a list of webhooks and the affected resources and operations.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhook Webhooks = 2; * */ public Builder setWebhooks( int index, io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook.Builder builderForValue) { if (webhooksBuilder_ == null) { ensureWebhooksIsMutable(); webhooks_.set(index, builderForValue.build()); onChanged(); } else { webhooksBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Webhooks is a list of webhooks and the affected resources and operations.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhook Webhooks = 2; * */ public Builder addWebhooks( io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook value) { if (webhooksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWebhooksIsMutable(); webhooks_.add(value); onChanged(); } else { webhooksBuilder_.addMessage(value); } return this; } /** * * *
       * Webhooks is a list of webhooks and the affected resources and operations.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhook Webhooks = 2; * */ public Builder addWebhooks( int index, io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook value) { if (webhooksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWebhooksIsMutable(); webhooks_.add(index, value); onChanged(); } else { webhooksBuilder_.addMessage(index, value); } return this; } /** * * *
       * Webhooks is a list of webhooks and the affected resources and operations.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhook Webhooks = 2; * */ public Builder addWebhooks( io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook.Builder builderForValue) { if (webhooksBuilder_ == null) { ensureWebhooksIsMutable(); webhooks_.add(builderForValue.build()); onChanged(); } else { webhooksBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Webhooks is a list of webhooks and the affected resources and operations.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhook Webhooks = 2; * */ public Builder addWebhooks( int index, io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook.Builder builderForValue) { if (webhooksBuilder_ == null) { ensureWebhooksIsMutable(); webhooks_.add(index, builderForValue.build()); onChanged(); } else { webhooksBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Webhooks is a list of webhooks and the affected resources and operations.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhook Webhooks = 2; * */ public Builder addAllWebhooks( java.lang.Iterable< ? extends io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook> values) { if (webhooksBuilder_ == null) { ensureWebhooksIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, webhooks_); onChanged(); } else { webhooksBuilder_.addAllMessages(values); } return this; } /** * * *
       * Webhooks is a list of webhooks and the affected resources and operations.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhook Webhooks = 2; * */ public Builder clearWebhooks() { if (webhooksBuilder_ == null) { webhooks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { webhooksBuilder_.clear(); } return this; } /** * * *
       * Webhooks is a list of webhooks and the affected resources and operations.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhook Webhooks = 2; * */ public Builder removeWebhooks(int index) { if (webhooksBuilder_ == null) { ensureWebhooksIsMutable(); webhooks_.remove(index); onChanged(); } else { webhooksBuilder_.remove(index); } return this; } /** * * *
       * Webhooks is a list of webhooks and the affected resources and operations.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhook Webhooks = 2; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook.Builder getWebhooksBuilder(int index) { return getWebhooksFieldBuilder().getBuilder(index); } /** * * *
       * Webhooks is a list of webhooks and the affected resources and operations.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhook Webhooks = 2; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookOrBuilder getWebhooksOrBuilder(int index) { if (webhooksBuilder_ == null) { return webhooks_.get(index); } else { return webhooksBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Webhooks is a list of webhooks and the affected resources and operations.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhook Webhooks = 2; * */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookOrBuilder> getWebhooksOrBuilderList() { if (webhooksBuilder_ != null) { return webhooksBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(webhooks_); } } /** * * *
       * Webhooks is a list of webhooks and the affected resources and operations.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhook Webhooks = 2; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook.Builder addWebhooksBuilder() { return getWebhooksFieldBuilder() .addBuilder( io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook .getDefaultInstance()); } /** * * *
       * Webhooks is a list of webhooks and the affected resources and operations.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhook Webhooks = 2; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook.Builder addWebhooksBuilder(int index) { return getWebhooksFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook .getDefaultInstance()); } /** * * *
       * Webhooks is a list of webhooks and the affected resources and operations.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhook Webhooks = 2; * */ public java.util.List< io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook.Builder> getWebhooksBuilderList() { return getWebhooksFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook, io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook.Builder, io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookOrBuilder> getWebhooksFieldBuilder() { if (webhooksBuilder_ == null) { webhooksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook, io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhook.Builder, io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookOrBuilder>( webhooks_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); webhooks_ = null; } return webhooksBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration) } // @@protoc_insertion_point(class_scope:k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration) private static final io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfiguration DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfiguration(); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfiguration getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MutatingWebhookConfiguration parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MutatingWebhookConfiguration(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MutatingWebhookConfigurationListOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfigurationList) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard list metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ boolean hasMetadata(); /** * * *
     * Standard list metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ListMeta getMetadata(); /** * * *
     * Standard list metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); /** * * *
     * List of MutatingWebhookConfiguration.
     * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration items = 2; * */ java.util.List< io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration> getItemsList(); /** * * *
     * List of MutatingWebhookConfiguration.
     * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration items = 2; * */ io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration getItems( int index); /** * * *
     * List of MutatingWebhookConfiguration.
     * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration items = 2; * */ int getItemsCount(); /** * * *
     * List of MutatingWebhookConfiguration.
     * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration items = 2; * */ java.util.List< ? extends io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationOrBuilder> getItemsOrBuilderList(); /** * * *
     * List of MutatingWebhookConfiguration.
     * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration items = 2; * */ io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfigurationOrBuilder getItemsOrBuilder(int index); } /** * * *
   * MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration.
   * 
* * Protobuf type {@code k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfigurationList} */ public static final class MutatingWebhookConfigurationList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfigurationList) MutatingWebhookConfigurationListOrBuilder { private static final long serialVersionUID = 0L; // Use MutatingWebhookConfigurationList.newBuilder() to construct. private MutatingWebhookConfigurationList( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MutatingWebhookConfigurationList() { items_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MutatingWebhookConfigurationList( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { io.kubernetes.client.proto.Meta.ListMeta.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = metadata_.toBuilder(); } metadata_ = input.readMessage( io.kubernetes.client.proto.Meta.ListMeta.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(metadata_); metadata_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { items_ = new java.util.ArrayList< io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfiguration>(); mutable_bitField0_ |= 0x00000002; } items_.add( input.readMessage( io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfiguration.PARSER, extensionRegistry)); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { items_ = java.util.Collections.unmodifiableList(items_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_MutatingWebhookConfigurationList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_MutatingWebhookConfigurationList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationList.class, io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationList.Builder.class); } private int bitField0_; public static final int METADATA_FIELD_NUMBER = 1; private io.kubernetes.client.proto.Meta.ListMeta metadata_; /** * * *
     * Standard list metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Standard list metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; } /** * * *
     * Standard list metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; } public static final int ITEMS_FIELD_NUMBER = 2; private java.util.List< io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration> items_; /** * * *
     * List of MutatingWebhookConfiguration.
     * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration items = 2; * */ public java.util.List< io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration> getItemsList() { return items_; } /** * * *
     * List of MutatingWebhookConfiguration.
     * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration items = 2; * */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationOrBuilder> getItemsOrBuilderList() { return items_; } /** * * *
     * List of MutatingWebhookConfiguration.
     * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration items = 2; * */ public int getItemsCount() { return items_.size(); } /** * * *
     * List of MutatingWebhookConfiguration.
     * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration items = 2; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration getItems(int index) { return items_.get(index); } /** * * *
     * List of MutatingWebhookConfiguration.
     * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration items = 2; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationOrBuilder getItemsOrBuilder(int index) { return items_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getMetadata()); } for (int i = 0; i < items_.size(); i++) { output.writeMessage(2, items_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMetadata()); } for (int i = 0; i < items_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, items_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationList)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfigurationList other = (io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationList) obj; boolean result = true; result = result && (hasMetadata() == other.hasMetadata()); if (hasMetadata()) { result = result && getMetadata().equals(other.getMetadata()); } result = result && getItemsList().equals(other.getItemsList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasMetadata()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); } if (getItemsCount() > 0) { hash = (37 * hash) + ITEMS_FIELD_NUMBER; hash = (53 * hash) + getItemsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationList parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationList parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationList parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationList parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationList parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationList parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationList parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfigurationList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration.
     * 
* * Protobuf type {@code * k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfigurationList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfigurationList) io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_MutatingWebhookConfigurationList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_MutatingWebhookConfigurationList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationList.class, io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationList.Builder.class); } // Construct using // io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfigurationList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getMetadataFieldBuilder(); getItemsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (metadataBuilder_ == null) { metadata_ = null; } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { itemsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_MutatingWebhookConfigurationList_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationList getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationList.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationList build() { io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfigurationList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationList buildPartial() { io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfigurationList result = new io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationList(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (metadataBuilder_ == null) { result.metadata_ = metadata_; } else { result.metadata_ = metadataBuilder_.build(); } if (itemsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { items_ = java.util.Collections.unmodifiableList(items_); bitField0_ = (bitField0_ & ~0x00000002); } result.items_ = items_; } else { result.items_ = itemsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationList) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationList) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfigurationList other) { if (other == io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationList.getDefaultInstance()) return this; if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } if (itemsBuilder_ == null) { if (!other.items_.isEmpty()) { if (items_.isEmpty()) { items_ = other.items_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureItemsIsMutable(); items_.addAll(other.items_); } onChanged(); } } else { if (!other.items_.isEmpty()) { if (itemsBuilder_.isEmpty()) { itemsBuilder_.dispose(); itemsBuilder_ = null; items_ = other.items_; bitField0_ = (bitField0_ & ~0x00000002); itemsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getItemsFieldBuilder() : null; } else { itemsBuilder_.addAllMessages(other.items_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfigurationList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.Meta.ListMeta metadata_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> metadataBuilder_; /** * * *
       * Standard list metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Standard list metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { if (metadataBuilder_ == null) { return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** * * *
       * Standard list metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); } else { metadataBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard list metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard list metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { if (metadataBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && metadata_ != null && metadata_ != io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()) { metadata_ = io.kubernetes.client.proto.Meta.ListMeta.newBuilder(metadata_) .mergeFrom(value) .buildPartial(); } else { metadata_ = value; } onChanged(); } else { metadataBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard list metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ public Builder clearMetadata() { if (metadataBuilder_ == null) { metadata_ = null; onChanged(); } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * Standard list metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ListMeta.Builder getMetadataBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** * * *
       * Standard list metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; } } /** * * *
       * Standard list metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder>( getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } private java.util.List< io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration> items_ = java.util.Collections.emptyList(); private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { items_ = new java.util.ArrayList< io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfiguration>(items_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration, io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration .Builder, io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationOrBuilder> itemsBuilder_; /** * * *
       * List of MutatingWebhookConfiguration.
       * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration items = 2; * */ public java.util.List< io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration> getItemsList() { if (itemsBuilder_ == null) { return java.util.Collections.unmodifiableList(items_); } else { return itemsBuilder_.getMessageList(); } } /** * * *
       * List of MutatingWebhookConfiguration.
       * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration items = 2; * */ public int getItemsCount() { if (itemsBuilder_ == null) { return items_.size(); } else { return itemsBuilder_.getCount(); } } /** * * *
       * List of MutatingWebhookConfiguration.
       * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration items = 2; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration getItems(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessage(index); } } /** * * *
       * List of MutatingWebhookConfiguration.
       * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration items = 2; * */ public Builder setItems( int index, io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.set(index, value); onChanged(); } else { itemsBuilder_.setMessage(index, value); } return this; } /** * * *
       * List of MutatingWebhookConfiguration.
       * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration items = 2; * */ public Builder setItems( int index, io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration .Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of MutatingWebhookConfiguration.
       * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration items = 2; * */ public Builder addItems( io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(value); onChanged(); } else { itemsBuilder_.addMessage(value); } return this; } /** * * *
       * List of MutatingWebhookConfiguration.
       * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration items = 2; * */ public Builder addItems( int index, io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(index, value); onChanged(); } else { itemsBuilder_.addMessage(index, value); } return this; } /** * * *
       * List of MutatingWebhookConfiguration.
       * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration items = 2; * */ public Builder addItems( io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration .Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * List of MutatingWebhookConfiguration.
       * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration items = 2; * */ public Builder addItems( int index, io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration .Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of MutatingWebhookConfiguration.
       * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration items = 2; * */ public Builder addAllItems( java.lang.Iterable< ? extends io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfiguration> values) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); onChanged(); } else { itemsBuilder_.addAllMessages(values); } return this; } /** * * *
       * List of MutatingWebhookConfiguration.
       * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration items = 2; * */ public Builder clearItems() { if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { itemsBuilder_.clear(); } return this; } /** * * *
       * List of MutatingWebhookConfiguration.
       * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration items = 2; * */ public Builder removeItems(int index) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.remove(index); onChanged(); } else { itemsBuilder_.remove(index); } return this; } /** * * *
       * List of MutatingWebhookConfiguration.
       * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration items = 2; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration .Builder getItemsBuilder(int index) { return getItemsFieldBuilder().getBuilder(index); } /** * * *
       * List of MutatingWebhookConfiguration.
       * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration items = 2; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationOrBuilder getItemsOrBuilder(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * List of MutatingWebhookConfiguration.
       * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration items = 2; * */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationOrBuilder> getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(items_); } } /** * * *
       * List of MutatingWebhookConfiguration.
       * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration items = 2; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration .Builder addItemsBuilder() { return getItemsFieldBuilder() .addBuilder( io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration .getDefaultInstance()); } /** * * *
       * List of MutatingWebhookConfiguration.
       * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration items = 2; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration .Builder addItemsBuilder(int index) { return getItemsFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration .getDefaultInstance()); } /** * * *
       * List of MutatingWebhookConfiguration.
       * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration items = 2; * */ public java.util.List< io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration .Builder> getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration, io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration .Builder, io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfiguration, io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfiguration.Builder, io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationOrBuilder>( items_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); items_ = null; } return itemsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfigurationList) } // @@protoc_insertion_point(class_scope:k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfigurationList) private static final io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationList(); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .MutatingWebhookConfigurationList getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MutatingWebhookConfigurationList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MutatingWebhookConfigurationList(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfigurationList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RuleOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.admissionregistration.v1beta1.Rule) com.google.protobuf.MessageOrBuilder { /** * * *
     * APIGroups is the API groups the resources belong to. '*' is all groups.
     * If '*' is present, the length of the slice must be one.
     * Required.
     * 
* * repeated string apiGroups = 1; */ java.util.List getApiGroupsList(); /** * * *
     * APIGroups is the API groups the resources belong to. '*' is all groups.
     * If '*' is present, the length of the slice must be one.
     * Required.
     * 
* * repeated string apiGroups = 1; */ int getApiGroupsCount(); /** * * *
     * APIGroups is the API groups the resources belong to. '*' is all groups.
     * If '*' is present, the length of the slice must be one.
     * Required.
     * 
* * repeated string apiGroups = 1; */ java.lang.String getApiGroups(int index); /** * * *
     * APIGroups is the API groups the resources belong to. '*' is all groups.
     * If '*' is present, the length of the slice must be one.
     * Required.
     * 
* * repeated string apiGroups = 1; */ com.google.protobuf.ByteString getApiGroupsBytes(int index); /** * * *
     * APIVersions is the API versions the resources belong to. '*' is all versions.
     * If '*' is present, the length of the slice must be one.
     * Required.
     * 
* * repeated string apiVersions = 2; */ java.util.List getApiVersionsList(); /** * * *
     * APIVersions is the API versions the resources belong to. '*' is all versions.
     * If '*' is present, the length of the slice must be one.
     * Required.
     * 
* * repeated string apiVersions = 2; */ int getApiVersionsCount(); /** * * *
     * APIVersions is the API versions the resources belong to. '*' is all versions.
     * If '*' is present, the length of the slice must be one.
     * Required.
     * 
* * repeated string apiVersions = 2; */ java.lang.String getApiVersions(int index); /** * * *
     * APIVersions is the API versions the resources belong to. '*' is all versions.
     * If '*' is present, the length of the slice must be one.
     * Required.
     * 
* * repeated string apiVersions = 2; */ com.google.protobuf.ByteString getApiVersionsBytes(int index); /** * * *
     * Resources is a list of resources this rule applies to.
     * For example:
     * 'pods' means pods.
     * 'pods/log' means the log subresource of pods.
     * '*' means all resources, but not subresources.
     * 'pods/*' means all subresources of pods.
     * '*/scale' means all scale subresources.
     * '*/*' means all resources and their subresources.
     * If wildcard is present, the validation rule will ensure resources do not
     * overlap with each other.
     * Depending on the enclosing object, subresources might not be allowed.
     * Required.
     * 
* * repeated string resources = 3; */ java.util.List getResourcesList(); /** * * *
     * Resources is a list of resources this rule applies to.
     * For example:
     * 'pods' means pods.
     * 'pods/log' means the log subresource of pods.
     * '*' means all resources, but not subresources.
     * 'pods/*' means all subresources of pods.
     * '*/scale' means all scale subresources.
     * '*/*' means all resources and their subresources.
     * If wildcard is present, the validation rule will ensure resources do not
     * overlap with each other.
     * Depending on the enclosing object, subresources might not be allowed.
     * Required.
     * 
* * repeated string resources = 3; */ int getResourcesCount(); /** * * *
     * Resources is a list of resources this rule applies to.
     * For example:
     * 'pods' means pods.
     * 'pods/log' means the log subresource of pods.
     * '*' means all resources, but not subresources.
     * 'pods/*' means all subresources of pods.
     * '*/scale' means all scale subresources.
     * '*/*' means all resources and their subresources.
     * If wildcard is present, the validation rule will ensure resources do not
     * overlap with each other.
     * Depending on the enclosing object, subresources might not be allowed.
     * Required.
     * 
* * repeated string resources = 3; */ java.lang.String getResources(int index); /** * * *
     * Resources is a list of resources this rule applies to.
     * For example:
     * 'pods' means pods.
     * 'pods/log' means the log subresource of pods.
     * '*' means all resources, but not subresources.
     * 'pods/*' means all subresources of pods.
     * '*/scale' means all scale subresources.
     * '*/*' means all resources and their subresources.
     * If wildcard is present, the validation rule will ensure resources do not
     * overlap with each other.
     * Depending on the enclosing object, subresources might not be allowed.
     * Required.
     * 
* * repeated string resources = 3; */ com.google.protobuf.ByteString getResourcesBytes(int index); /** * * *
     * scope specifies the scope of this rule.
     * Valid values are "Cluster", "Namespaced", and "*"
     * "Cluster" means that only cluster-scoped resources will match this rule.
     * Namespace API objects are cluster-scoped.
     * "Namespaced" means that only namespaced resources will match this rule.
     * "*" means that there are no scope restrictions.
     * Subresources match the scope of their parent resource.
     * Default is "*".
     * +optional
     * 
* * optional string scope = 4; */ boolean hasScope(); /** * * *
     * scope specifies the scope of this rule.
     * Valid values are "Cluster", "Namespaced", and "*"
     * "Cluster" means that only cluster-scoped resources will match this rule.
     * Namespace API objects are cluster-scoped.
     * "Namespaced" means that only namespaced resources will match this rule.
     * "*" means that there are no scope restrictions.
     * Subresources match the scope of their parent resource.
     * Default is "*".
     * +optional
     * 
* * optional string scope = 4; */ java.lang.String getScope(); /** * * *
     * scope specifies the scope of this rule.
     * Valid values are "Cluster", "Namespaced", and "*"
     * "Cluster" means that only cluster-scoped resources will match this rule.
     * Namespace API objects are cluster-scoped.
     * "Namespaced" means that only namespaced resources will match this rule.
     * "*" means that there are no scope restrictions.
     * Subresources match the scope of their parent resource.
     * Default is "*".
     * +optional
     * 
* * optional string scope = 4; */ com.google.protobuf.ByteString getScopeBytes(); } /** * * *
   * Rule is a tuple of APIGroups, APIVersion, and Resources.It is recommended
   * to make sure that all the tuple expansions are valid.
   * 
* * Protobuf type {@code k8s.io.api.admissionregistration.v1beta1.Rule} */ public static final class Rule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.admissionregistration.v1beta1.Rule) RuleOrBuilder { private static final long serialVersionUID = 0L; // Use Rule.newBuilder() to construct. private Rule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Rule() { apiGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY; apiVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; resources_ = com.google.protobuf.LazyStringArrayList.EMPTY; scope_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Rule( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { apiGroups_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } apiGroups_.add(bs); break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { apiVersions_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } apiVersions_.add(bs); break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { resources_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000004; } resources_.add(bs); break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; scope_ = bs; break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { apiGroups_ = apiGroups_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { apiVersions_ = apiVersions_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { resources_ = resources_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_Rule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_Rule_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Admissionregistration.Rule.class, io.kubernetes.client.proto.V1beta1Admissionregistration.Rule.Builder.class); } private int bitField0_; public static final int APIGROUPS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList apiGroups_; /** * * *
     * APIGroups is the API groups the resources belong to. '*' is all groups.
     * If '*' is present, the length of the slice must be one.
     * Required.
     * 
* * repeated string apiGroups = 1; */ public com.google.protobuf.ProtocolStringList getApiGroupsList() { return apiGroups_; } /** * * *
     * APIGroups is the API groups the resources belong to. '*' is all groups.
     * If '*' is present, the length of the slice must be one.
     * Required.
     * 
* * repeated string apiGroups = 1; */ public int getApiGroupsCount() { return apiGroups_.size(); } /** * * *
     * APIGroups is the API groups the resources belong to. '*' is all groups.
     * If '*' is present, the length of the slice must be one.
     * Required.
     * 
* * repeated string apiGroups = 1; */ public java.lang.String getApiGroups(int index) { return apiGroups_.get(index); } /** * * *
     * APIGroups is the API groups the resources belong to. '*' is all groups.
     * If '*' is present, the length of the slice must be one.
     * Required.
     * 
* * repeated string apiGroups = 1; */ public com.google.protobuf.ByteString getApiGroupsBytes(int index) { return apiGroups_.getByteString(index); } public static final int APIVERSIONS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList apiVersions_; /** * * *
     * APIVersions is the API versions the resources belong to. '*' is all versions.
     * If '*' is present, the length of the slice must be one.
     * Required.
     * 
* * repeated string apiVersions = 2; */ public com.google.protobuf.ProtocolStringList getApiVersionsList() { return apiVersions_; } /** * * *
     * APIVersions is the API versions the resources belong to. '*' is all versions.
     * If '*' is present, the length of the slice must be one.
     * Required.
     * 
* * repeated string apiVersions = 2; */ public int getApiVersionsCount() { return apiVersions_.size(); } /** * * *
     * APIVersions is the API versions the resources belong to. '*' is all versions.
     * If '*' is present, the length of the slice must be one.
     * Required.
     * 
* * repeated string apiVersions = 2; */ public java.lang.String getApiVersions(int index) { return apiVersions_.get(index); } /** * * *
     * APIVersions is the API versions the resources belong to. '*' is all versions.
     * If '*' is present, the length of the slice must be one.
     * Required.
     * 
* * repeated string apiVersions = 2; */ public com.google.protobuf.ByteString getApiVersionsBytes(int index) { return apiVersions_.getByteString(index); } public static final int RESOURCES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList resources_; /** * * *
     * Resources is a list of resources this rule applies to.
     * For example:
     * 'pods' means pods.
     * 'pods/log' means the log subresource of pods.
     * '*' means all resources, but not subresources.
     * 'pods/*' means all subresources of pods.
     * '*/scale' means all scale subresources.
     * '*/*' means all resources and their subresources.
     * If wildcard is present, the validation rule will ensure resources do not
     * overlap with each other.
     * Depending on the enclosing object, subresources might not be allowed.
     * Required.
     * 
* * repeated string resources = 3; */ public com.google.protobuf.ProtocolStringList getResourcesList() { return resources_; } /** * * *
     * Resources is a list of resources this rule applies to.
     * For example:
     * 'pods' means pods.
     * 'pods/log' means the log subresource of pods.
     * '*' means all resources, but not subresources.
     * 'pods/*' means all subresources of pods.
     * '*/scale' means all scale subresources.
     * '*/*' means all resources and their subresources.
     * If wildcard is present, the validation rule will ensure resources do not
     * overlap with each other.
     * Depending on the enclosing object, subresources might not be allowed.
     * Required.
     * 
* * repeated string resources = 3; */ public int getResourcesCount() { return resources_.size(); } /** * * *
     * Resources is a list of resources this rule applies to.
     * For example:
     * 'pods' means pods.
     * 'pods/log' means the log subresource of pods.
     * '*' means all resources, but not subresources.
     * 'pods/*' means all subresources of pods.
     * '*/scale' means all scale subresources.
     * '*/*' means all resources and their subresources.
     * If wildcard is present, the validation rule will ensure resources do not
     * overlap with each other.
     * Depending on the enclosing object, subresources might not be allowed.
     * Required.
     * 
* * repeated string resources = 3; */ public java.lang.String getResources(int index) { return resources_.get(index); } /** * * *
     * Resources is a list of resources this rule applies to.
     * For example:
     * 'pods' means pods.
     * 'pods/log' means the log subresource of pods.
     * '*' means all resources, but not subresources.
     * 'pods/*' means all subresources of pods.
     * '*/scale' means all scale subresources.
     * '*/*' means all resources and their subresources.
     * If wildcard is present, the validation rule will ensure resources do not
     * overlap with each other.
     * Depending on the enclosing object, subresources might not be allowed.
     * Required.
     * 
* * repeated string resources = 3; */ public com.google.protobuf.ByteString getResourcesBytes(int index) { return resources_.getByteString(index); } public static final int SCOPE_FIELD_NUMBER = 4; private volatile java.lang.Object scope_; /** * * *
     * scope specifies the scope of this rule.
     * Valid values are "Cluster", "Namespaced", and "*"
     * "Cluster" means that only cluster-scoped resources will match this rule.
     * Namespace API objects are cluster-scoped.
     * "Namespaced" means that only namespaced resources will match this rule.
     * "*" means that there are no scope restrictions.
     * Subresources match the scope of their parent resource.
     * Default is "*".
     * +optional
     * 
* * optional string scope = 4; */ public boolean hasScope() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * scope specifies the scope of this rule.
     * Valid values are "Cluster", "Namespaced", and "*"
     * "Cluster" means that only cluster-scoped resources will match this rule.
     * Namespace API objects are cluster-scoped.
     * "Namespaced" means that only namespaced resources will match this rule.
     * "*" means that there are no scope restrictions.
     * Subresources match the scope of their parent resource.
     * Default is "*".
     * +optional
     * 
* * optional string scope = 4; */ public java.lang.String getScope() { java.lang.Object ref = scope_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { scope_ = s; } return s; } } /** * * *
     * scope specifies the scope of this rule.
     * Valid values are "Cluster", "Namespaced", and "*"
     * "Cluster" means that only cluster-scoped resources will match this rule.
     * Namespace API objects are cluster-scoped.
     * "Namespaced" means that only namespaced resources will match this rule.
     * "*" means that there are no scope restrictions.
     * Subresources match the scope of their parent resource.
     * Default is "*".
     * +optional
     * 
* * optional string scope = 4; */ public com.google.protobuf.ByteString getScopeBytes() { java.lang.Object ref = scope_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); scope_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < apiGroups_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiGroups_.getRaw(i)); } for (int i = 0; i < apiVersions_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, apiVersions_.getRaw(i)); } for (int i = 0; i < resources_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, resources_.getRaw(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, scope_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < apiGroups_.size(); i++) { dataSize += computeStringSizeNoTag(apiGroups_.getRaw(i)); } size += dataSize; size += 1 * getApiGroupsList().size(); } { int dataSize = 0; for (int i = 0; i < apiVersions_.size(); i++) { dataSize += computeStringSizeNoTag(apiVersions_.getRaw(i)); } size += dataSize; size += 1 * getApiVersionsList().size(); } { int dataSize = 0; for (int i = 0; i < resources_.size(); i++) { dataSize += computeStringSizeNoTag(resources_.getRaw(i)); } size += dataSize; size += 1 * getResourcesList().size(); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, scope_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.kubernetes.client.proto.V1beta1Admissionregistration.Rule)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Admissionregistration.Rule other = (io.kubernetes.client.proto.V1beta1Admissionregistration.Rule) obj; boolean result = true; result = result && getApiGroupsList().equals(other.getApiGroupsList()); result = result && getApiVersionsList().equals(other.getApiVersionsList()); result = result && getResourcesList().equals(other.getResourcesList()); result = result && (hasScope() == other.hasScope()); if (hasScope()) { result = result && getScope().equals(other.getScope()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getApiGroupsCount() > 0) { hash = (37 * hash) + APIGROUPS_FIELD_NUMBER; hash = (53 * hash) + getApiGroupsList().hashCode(); } if (getApiVersionsCount() > 0) { hash = (37 * hash) + APIVERSIONS_FIELD_NUMBER; hash = (53 * hash) + getApiVersionsList().hashCode(); } if (getResourcesCount() > 0) { hash = (37 * hash) + RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getResourcesList().hashCode(); } if (hasScope()) { hash = (37 * hash) + SCOPE_FIELD_NUMBER; hash = (53 * hash) + getScope().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Admissionregistration.Rule parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.Rule parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.Rule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.Rule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.Rule parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.Rule parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.Rule parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.Rule parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.Rule parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.Rule parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.Rule parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.Rule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( io.kubernetes.client.proto.V1beta1Admissionregistration.Rule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * Rule is a tuple of APIGroups, APIVersion, and Resources.It is recommended
     * to make sure that all the tuple expansions are valid.
     * 
* * Protobuf type {@code k8s.io.api.admissionregistration.v1beta1.Rule} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.admissionregistration.v1beta1.Rule) io.kubernetes.client.proto.V1beta1Admissionregistration.RuleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_Rule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_Rule_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Admissionregistration.Rule.class, io.kubernetes.client.proto.V1beta1Admissionregistration.Rule.Builder.class); } // Construct using io.kubernetes.client.proto.V1beta1Admissionregistration.Rule.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); apiGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); apiVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); resources_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); scope_ = ""; bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_Rule_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration.Rule getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Admissionregistration.Rule.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration.Rule build() { io.kubernetes.client.proto.V1beta1Admissionregistration.Rule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration.Rule buildPartial() { io.kubernetes.client.proto.V1beta1Admissionregistration.Rule result = new io.kubernetes.client.proto.V1beta1Admissionregistration.Rule(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { apiGroups_ = apiGroups_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.apiGroups_ = apiGroups_; if (((bitField0_ & 0x00000002) == 0x00000002)) { apiVersions_ = apiVersions_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.apiVersions_ = apiVersions_; if (((bitField0_ & 0x00000004) == 0x00000004)) { resources_ = resources_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); } result.resources_ = resources_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000001; } result.scope_ = scope_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.kubernetes.client.proto.V1beta1Admissionregistration.Rule) { return mergeFrom((io.kubernetes.client.proto.V1beta1Admissionregistration.Rule) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Admissionregistration.Rule other) { if (other == io.kubernetes.client.proto.V1beta1Admissionregistration.Rule.getDefaultInstance()) return this; if (!other.apiGroups_.isEmpty()) { if (apiGroups_.isEmpty()) { apiGroups_ = other.apiGroups_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureApiGroupsIsMutable(); apiGroups_.addAll(other.apiGroups_); } onChanged(); } if (!other.apiVersions_.isEmpty()) { if (apiVersions_.isEmpty()) { apiVersions_ = other.apiVersions_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureApiVersionsIsMutable(); apiVersions_.addAll(other.apiVersions_); } onChanged(); } if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureResourcesIsMutable(); resources_.addAll(other.resources_); } onChanged(); } if (other.hasScope()) { bitField0_ |= 0x00000008; scope_ = other.scope_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.kubernetes.client.proto.V1beta1Admissionregistration.Rule parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Admissionregistration.Rule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList apiGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureApiGroupsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { apiGroups_ = new com.google.protobuf.LazyStringArrayList(apiGroups_); bitField0_ |= 0x00000001; } } /** * * *
       * APIGroups is the API groups the resources belong to. '*' is all groups.
       * If '*' is present, the length of the slice must be one.
       * Required.
       * 
* * repeated string apiGroups = 1; */ public com.google.protobuf.ProtocolStringList getApiGroupsList() { return apiGroups_.getUnmodifiableView(); } /** * * *
       * APIGroups is the API groups the resources belong to. '*' is all groups.
       * If '*' is present, the length of the slice must be one.
       * Required.
       * 
* * repeated string apiGroups = 1; */ public int getApiGroupsCount() { return apiGroups_.size(); } /** * * *
       * APIGroups is the API groups the resources belong to. '*' is all groups.
       * If '*' is present, the length of the slice must be one.
       * Required.
       * 
* * repeated string apiGroups = 1; */ public java.lang.String getApiGroups(int index) { return apiGroups_.get(index); } /** * * *
       * APIGroups is the API groups the resources belong to. '*' is all groups.
       * If '*' is present, the length of the slice must be one.
       * Required.
       * 
* * repeated string apiGroups = 1; */ public com.google.protobuf.ByteString getApiGroupsBytes(int index) { return apiGroups_.getByteString(index); } /** * * *
       * APIGroups is the API groups the resources belong to. '*' is all groups.
       * If '*' is present, the length of the slice must be one.
       * Required.
       * 
* * repeated string apiGroups = 1; */ public Builder setApiGroups(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureApiGroupsIsMutable(); apiGroups_.set(index, value); onChanged(); return this; } /** * * *
       * APIGroups is the API groups the resources belong to. '*' is all groups.
       * If '*' is present, the length of the slice must be one.
       * Required.
       * 
* * repeated string apiGroups = 1; */ public Builder addApiGroups(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureApiGroupsIsMutable(); apiGroups_.add(value); onChanged(); return this; } /** * * *
       * APIGroups is the API groups the resources belong to. '*' is all groups.
       * If '*' is present, the length of the slice must be one.
       * Required.
       * 
* * repeated string apiGroups = 1; */ public Builder addAllApiGroups(java.lang.Iterable values) { ensureApiGroupsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, apiGroups_); onChanged(); return this; } /** * * *
       * APIGroups is the API groups the resources belong to. '*' is all groups.
       * If '*' is present, the length of the slice must be one.
       * Required.
       * 
* * repeated string apiGroups = 1; */ public Builder clearApiGroups() { apiGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * APIGroups is the API groups the resources belong to. '*' is all groups.
       * If '*' is present, the length of the slice must be one.
       * Required.
       * 
* * repeated string apiGroups = 1; */ public Builder addApiGroupsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureApiGroupsIsMutable(); apiGroups_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList apiVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureApiVersionsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { apiVersions_ = new com.google.protobuf.LazyStringArrayList(apiVersions_); bitField0_ |= 0x00000002; } } /** * * *
       * APIVersions is the API versions the resources belong to. '*' is all versions.
       * If '*' is present, the length of the slice must be one.
       * Required.
       * 
* * repeated string apiVersions = 2; */ public com.google.protobuf.ProtocolStringList getApiVersionsList() { return apiVersions_.getUnmodifiableView(); } /** * * *
       * APIVersions is the API versions the resources belong to. '*' is all versions.
       * If '*' is present, the length of the slice must be one.
       * Required.
       * 
* * repeated string apiVersions = 2; */ public int getApiVersionsCount() { return apiVersions_.size(); } /** * * *
       * APIVersions is the API versions the resources belong to. '*' is all versions.
       * If '*' is present, the length of the slice must be one.
       * Required.
       * 
* * repeated string apiVersions = 2; */ public java.lang.String getApiVersions(int index) { return apiVersions_.get(index); } /** * * *
       * APIVersions is the API versions the resources belong to. '*' is all versions.
       * If '*' is present, the length of the slice must be one.
       * Required.
       * 
* * repeated string apiVersions = 2; */ public com.google.protobuf.ByteString getApiVersionsBytes(int index) { return apiVersions_.getByteString(index); } /** * * *
       * APIVersions is the API versions the resources belong to. '*' is all versions.
       * If '*' is present, the length of the slice must be one.
       * Required.
       * 
* * repeated string apiVersions = 2; */ public Builder setApiVersions(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureApiVersionsIsMutable(); apiVersions_.set(index, value); onChanged(); return this; } /** * * *
       * APIVersions is the API versions the resources belong to. '*' is all versions.
       * If '*' is present, the length of the slice must be one.
       * Required.
       * 
* * repeated string apiVersions = 2; */ public Builder addApiVersions(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureApiVersionsIsMutable(); apiVersions_.add(value); onChanged(); return this; } /** * * *
       * APIVersions is the API versions the resources belong to. '*' is all versions.
       * If '*' is present, the length of the slice must be one.
       * Required.
       * 
* * repeated string apiVersions = 2; */ public Builder addAllApiVersions(java.lang.Iterable values) { ensureApiVersionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, apiVersions_); onChanged(); return this; } /** * * *
       * APIVersions is the API versions the resources belong to. '*' is all versions.
       * If '*' is present, the length of the slice must be one.
       * Required.
       * 
* * repeated string apiVersions = 2; */ public Builder clearApiVersions() { apiVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
       * APIVersions is the API versions the resources belong to. '*' is all versions.
       * If '*' is present, the length of the slice must be one.
       * Required.
       * 
* * repeated string apiVersions = 2; */ public Builder addApiVersionsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureApiVersionsIsMutable(); apiVersions_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList resources_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { resources_ = new com.google.protobuf.LazyStringArrayList(resources_); bitField0_ |= 0x00000004; } } /** * * *
       * Resources is a list of resources this rule applies to.
       * For example:
       * 'pods' means pods.
       * 'pods/log' means the log subresource of pods.
       * '*' means all resources, but not subresources.
       * 'pods/*' means all subresources of pods.
       * '*/scale' means all scale subresources.
       * '*/*' means all resources and their subresources.
       * If wildcard is present, the validation rule will ensure resources do not
       * overlap with each other.
       * Depending on the enclosing object, subresources might not be allowed.
       * Required.
       * 
* * repeated string resources = 3; */ public com.google.protobuf.ProtocolStringList getResourcesList() { return resources_.getUnmodifiableView(); } /** * * *
       * Resources is a list of resources this rule applies to.
       * For example:
       * 'pods' means pods.
       * 'pods/log' means the log subresource of pods.
       * '*' means all resources, but not subresources.
       * 'pods/*' means all subresources of pods.
       * '*/scale' means all scale subresources.
       * '*/*' means all resources and their subresources.
       * If wildcard is present, the validation rule will ensure resources do not
       * overlap with each other.
       * Depending on the enclosing object, subresources might not be allowed.
       * Required.
       * 
* * repeated string resources = 3; */ public int getResourcesCount() { return resources_.size(); } /** * * *
       * Resources is a list of resources this rule applies to.
       * For example:
       * 'pods' means pods.
       * 'pods/log' means the log subresource of pods.
       * '*' means all resources, but not subresources.
       * 'pods/*' means all subresources of pods.
       * '*/scale' means all scale subresources.
       * '*/*' means all resources and their subresources.
       * If wildcard is present, the validation rule will ensure resources do not
       * overlap with each other.
       * Depending on the enclosing object, subresources might not be allowed.
       * Required.
       * 
* * repeated string resources = 3; */ public java.lang.String getResources(int index) { return resources_.get(index); } /** * * *
       * Resources is a list of resources this rule applies to.
       * For example:
       * 'pods' means pods.
       * 'pods/log' means the log subresource of pods.
       * '*' means all resources, but not subresources.
       * 'pods/*' means all subresources of pods.
       * '*/scale' means all scale subresources.
       * '*/*' means all resources and their subresources.
       * If wildcard is present, the validation rule will ensure resources do not
       * overlap with each other.
       * Depending on the enclosing object, subresources might not be allowed.
       * Required.
       * 
* * repeated string resources = 3; */ public com.google.protobuf.ByteString getResourcesBytes(int index) { return resources_.getByteString(index); } /** * * *
       * Resources is a list of resources this rule applies to.
       * For example:
       * 'pods' means pods.
       * 'pods/log' means the log subresource of pods.
       * '*' means all resources, but not subresources.
       * 'pods/*' means all subresources of pods.
       * '*/scale' means all scale subresources.
       * '*/*' means all resources and their subresources.
       * If wildcard is present, the validation rule will ensure resources do not
       * overlap with each other.
       * Depending on the enclosing object, subresources might not be allowed.
       * Required.
       * 
* * repeated string resources = 3; */ public Builder setResources(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.set(index, value); onChanged(); return this; } /** * * *
       * Resources is a list of resources this rule applies to.
       * For example:
       * 'pods' means pods.
       * 'pods/log' means the log subresource of pods.
       * '*' means all resources, but not subresources.
       * 'pods/*' means all subresources of pods.
       * '*/scale' means all scale subresources.
       * '*/*' means all resources and their subresources.
       * If wildcard is present, the validation rule will ensure resources do not
       * overlap with each other.
       * Depending on the enclosing object, subresources might not be allowed.
       * Required.
       * 
* * repeated string resources = 3; */ public Builder addResources(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(value); onChanged(); return this; } /** * * *
       * Resources is a list of resources this rule applies to.
       * For example:
       * 'pods' means pods.
       * 'pods/log' means the log subresource of pods.
       * '*' means all resources, but not subresources.
       * 'pods/*' means all subresources of pods.
       * '*/scale' means all scale subresources.
       * '*/*' means all resources and their subresources.
       * If wildcard is present, the validation rule will ensure resources do not
       * overlap with each other.
       * Depending on the enclosing object, subresources might not be allowed.
       * Required.
       * 
* * repeated string resources = 3; */ public Builder addAllResources(java.lang.Iterable values) { ensureResourcesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resources_); onChanged(); return this; } /** * * *
       * Resources is a list of resources this rule applies to.
       * For example:
       * 'pods' means pods.
       * 'pods/log' means the log subresource of pods.
       * '*' means all resources, but not subresources.
       * 'pods/*' means all subresources of pods.
       * '*/scale' means all scale subresources.
       * '*/*' means all resources and their subresources.
       * If wildcard is present, the validation rule will ensure resources do not
       * overlap with each other.
       * Depending on the enclosing object, subresources might not be allowed.
       * Required.
       * 
* * repeated string resources = 3; */ public Builder clearResources() { resources_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
       * Resources is a list of resources this rule applies to.
       * For example:
       * 'pods' means pods.
       * 'pods/log' means the log subresource of pods.
       * '*' means all resources, but not subresources.
       * 'pods/*' means all subresources of pods.
       * '*/scale' means all scale subresources.
       * '*/*' means all resources and their subresources.
       * If wildcard is present, the validation rule will ensure resources do not
       * overlap with each other.
       * Depending on the enclosing object, subresources might not be allowed.
       * Required.
       * 
* * repeated string resources = 3; */ public Builder addResourcesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(value); onChanged(); return this; } private java.lang.Object scope_ = ""; /** * * *
       * scope specifies the scope of this rule.
       * Valid values are "Cluster", "Namespaced", and "*"
       * "Cluster" means that only cluster-scoped resources will match this rule.
       * Namespace API objects are cluster-scoped.
       * "Namespaced" means that only namespaced resources will match this rule.
       * "*" means that there are no scope restrictions.
       * Subresources match the scope of their parent resource.
       * Default is "*".
       * +optional
       * 
* * optional string scope = 4; */ public boolean hasScope() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * scope specifies the scope of this rule.
       * Valid values are "Cluster", "Namespaced", and "*"
       * "Cluster" means that only cluster-scoped resources will match this rule.
       * Namespace API objects are cluster-scoped.
       * "Namespaced" means that only namespaced resources will match this rule.
       * "*" means that there are no scope restrictions.
       * Subresources match the scope of their parent resource.
       * Default is "*".
       * +optional
       * 
* * optional string scope = 4; */ public java.lang.String getScope() { java.lang.Object ref = scope_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { scope_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * scope specifies the scope of this rule.
       * Valid values are "Cluster", "Namespaced", and "*"
       * "Cluster" means that only cluster-scoped resources will match this rule.
       * Namespace API objects are cluster-scoped.
       * "Namespaced" means that only namespaced resources will match this rule.
       * "*" means that there are no scope restrictions.
       * Subresources match the scope of their parent resource.
       * Default is "*".
       * +optional
       * 
* * optional string scope = 4; */ public com.google.protobuf.ByteString getScopeBytes() { java.lang.Object ref = scope_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); scope_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * scope specifies the scope of this rule.
       * Valid values are "Cluster", "Namespaced", and "*"
       * "Cluster" means that only cluster-scoped resources will match this rule.
       * Namespace API objects are cluster-scoped.
       * "Namespaced" means that only namespaced resources will match this rule.
       * "*" means that there are no scope restrictions.
       * Subresources match the scope of their parent resource.
       * Default is "*".
       * +optional
       * 
* * optional string scope = 4; */ public Builder setScope(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; scope_ = value; onChanged(); return this; } /** * * *
       * scope specifies the scope of this rule.
       * Valid values are "Cluster", "Namespaced", and "*"
       * "Cluster" means that only cluster-scoped resources will match this rule.
       * Namespace API objects are cluster-scoped.
       * "Namespaced" means that only namespaced resources will match this rule.
       * "*" means that there are no scope restrictions.
       * Subresources match the scope of their parent resource.
       * Default is "*".
       * +optional
       * 
* * optional string scope = 4; */ public Builder clearScope() { bitField0_ = (bitField0_ & ~0x00000008); scope_ = getDefaultInstance().getScope(); onChanged(); return this; } /** * * *
       * scope specifies the scope of this rule.
       * Valid values are "Cluster", "Namespaced", and "*"
       * "Cluster" means that only cluster-scoped resources will match this rule.
       * Namespace API objects are cluster-scoped.
       * "Namespaced" means that only namespaced resources will match this rule.
       * "*" means that there are no scope restrictions.
       * Subresources match the scope of their parent resource.
       * Default is "*".
       * +optional
       * 
* * optional string scope = 4; */ public Builder setScopeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; scope_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.admissionregistration.v1beta1.Rule) } // @@protoc_insertion_point(class_scope:k8s.io.api.admissionregistration.v1beta1.Rule) private static final io.kubernetes.client.proto.V1beta1Admissionregistration.Rule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Admissionregistration.Rule(); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.Rule getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Rule parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Rule(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration.Rule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RuleWithOperationsOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.admissionregistration.v1beta1.RuleWithOperations) com.google.protobuf.MessageOrBuilder { /** * * *
     * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
     * for all of those operations and any future admission operations that are added.
     * If '*' is present, the length of the slice must be one.
     * Required.
     * 
* * repeated string operations = 1; */ java.util.List getOperationsList(); /** * * *
     * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
     * for all of those operations and any future admission operations that are added.
     * If '*' is present, the length of the slice must be one.
     * Required.
     * 
* * repeated string operations = 1; */ int getOperationsCount(); /** * * *
     * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
     * for all of those operations and any future admission operations that are added.
     * If '*' is present, the length of the slice must be one.
     * Required.
     * 
* * repeated string operations = 1; */ java.lang.String getOperations(int index); /** * * *
     * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
     * for all of those operations and any future admission operations that are added.
     * If '*' is present, the length of the slice must be one.
     * Required.
     * 
* * repeated string operations = 1; */ com.google.protobuf.ByteString getOperationsBytes(int index); /** * * *
     * Rule is embedded, it describes other criteria of the rule, like
     * APIGroups, APIVersions, Resources, etc.
     * 
* * optional .k8s.io.api.admissionregistration.v1beta1.Rule rule = 2; */ boolean hasRule(); /** * * *
     * Rule is embedded, it describes other criteria of the rule, like
     * APIGroups, APIVersions, Resources, etc.
     * 
* * optional .k8s.io.api.admissionregistration.v1beta1.Rule rule = 2; */ io.kubernetes.client.proto.V1beta1Admissionregistration.Rule getRule(); /** * * *
     * Rule is embedded, it describes other criteria of the rule, like
     * APIGroups, APIVersions, Resources, etc.
     * 
* * optional .k8s.io.api.admissionregistration.v1beta1.Rule rule = 2; */ io.kubernetes.client.proto.V1beta1Admissionregistration.RuleOrBuilder getRuleOrBuilder(); } /** * * *
   * RuleWithOperations is a tuple of Operations and Resources. It is recommended to make
   * sure that all the tuple expansions are valid.
   * 
* * Protobuf type {@code k8s.io.api.admissionregistration.v1beta1.RuleWithOperations} */ public static final class RuleWithOperations extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.admissionregistration.v1beta1.RuleWithOperations) RuleWithOperationsOrBuilder { private static final long serialVersionUID = 0L; // Use RuleWithOperations.newBuilder() to construct. private RuleWithOperations(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RuleWithOperations() { operations_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RuleWithOperations( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { operations_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } operations_.add(bs); break; } case 18: { io.kubernetes.client.proto.V1beta1Admissionregistration.Rule.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = rule_.toBuilder(); } rule_ = input.readMessage( io.kubernetes.client.proto.V1beta1Admissionregistration.Rule.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(rule_); rule_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { operations_ = operations_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_RuleWithOperations_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_RuleWithOperations_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations.class, io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations.Builder .class); } private int bitField0_; public static final int OPERATIONS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList operations_; /** * * *
     * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
     * for all of those operations and any future admission operations that are added.
     * If '*' is present, the length of the slice must be one.
     * Required.
     * 
* * repeated string operations = 1; */ public com.google.protobuf.ProtocolStringList getOperationsList() { return operations_; } /** * * *
     * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
     * for all of those operations and any future admission operations that are added.
     * If '*' is present, the length of the slice must be one.
     * Required.
     * 
* * repeated string operations = 1; */ public int getOperationsCount() { return operations_.size(); } /** * * *
     * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
     * for all of those operations and any future admission operations that are added.
     * If '*' is present, the length of the slice must be one.
     * Required.
     * 
* * repeated string operations = 1; */ public java.lang.String getOperations(int index) { return operations_.get(index); } /** * * *
     * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
     * for all of those operations and any future admission operations that are added.
     * If '*' is present, the length of the slice must be one.
     * Required.
     * 
* * repeated string operations = 1; */ public com.google.protobuf.ByteString getOperationsBytes(int index) { return operations_.getByteString(index); } public static final int RULE_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1beta1Admissionregistration.Rule rule_; /** * * *
     * Rule is embedded, it describes other criteria of the rule, like
     * APIGroups, APIVersions, Resources, etc.
     * 
* * optional .k8s.io.api.admissionregistration.v1beta1.Rule rule = 2; */ public boolean hasRule() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Rule is embedded, it describes other criteria of the rule, like
     * APIGroups, APIVersions, Resources, etc.
     * 
* * optional .k8s.io.api.admissionregistration.v1beta1.Rule rule = 2; */ public io.kubernetes.client.proto.V1beta1Admissionregistration.Rule getRule() { return rule_ == null ? io.kubernetes.client.proto.V1beta1Admissionregistration.Rule.getDefaultInstance() : rule_; } /** * * *
     * Rule is embedded, it describes other criteria of the rule, like
     * APIGroups, APIVersions, Resources, etc.
     * 
* * optional .k8s.io.api.admissionregistration.v1beta1.Rule rule = 2; */ public io.kubernetes.client.proto.V1beta1Admissionregistration.RuleOrBuilder getRuleOrBuilder() { return rule_ == null ? io.kubernetes.client.proto.V1beta1Admissionregistration.Rule.getDefaultInstance() : rule_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < operations_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, operations_.getRaw(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(2, getRule()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < operations_.size(); i++) { dataSize += computeStringSizeNoTag(operations_.getRaw(i)); } size += dataSize; size += 1 * getOperationsList().size(); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRule()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations other = (io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations) obj; boolean result = true; result = result && getOperationsList().equals(other.getOperationsList()); result = result && (hasRule() == other.hasRule()); if (hasRule()) { result = result && getRule().equals(other.getRule()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getOperationsCount() > 0) { hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + getOperationsList().hashCode(); } if (hasRule()) { hash = (37 * hash) + RULE_FIELD_NUMBER; hash = (53 * hash) + getRule().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * RuleWithOperations is a tuple of Operations and Resources. It is recommended to make
     * sure that all the tuple expansions are valid.
     * 
* * Protobuf type {@code k8s.io.api.admissionregistration.v1beta1.RuleWithOperations} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.admissionregistration.v1beta1.RuleWithOperations) io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperationsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_RuleWithOperations_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_RuleWithOperations_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations.class, io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations.Builder .class); } // Construct using // io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRuleFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); operations_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); if (ruleBuilder_ == null) { rule_ = null; } else { ruleBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_RuleWithOperations_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations .getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations build() { io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations buildPartial() { io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations result = new io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { operations_ = operations_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.operations_ = operations_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } if (ruleBuilder_ == null) { result.rule_ = rule_; } else { result.rule_ = ruleBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations other) { if (other == io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations .getDefaultInstance()) return this; if (!other.operations_.isEmpty()) { if (operations_.isEmpty()) { operations_ = other.operations_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureOperationsIsMutable(); operations_.addAll(other.operations_); } onChanged(); } if (other.hasRule()) { mergeRule(other.getRule()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList operations_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureOperationsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { operations_ = new com.google.protobuf.LazyStringArrayList(operations_); bitField0_ |= 0x00000001; } } /** * * *
       * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
       * for all of those operations and any future admission operations that are added.
       * If '*' is present, the length of the slice must be one.
       * Required.
       * 
* * repeated string operations = 1; */ public com.google.protobuf.ProtocolStringList getOperationsList() { return operations_.getUnmodifiableView(); } /** * * *
       * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
       * for all of those operations and any future admission operations that are added.
       * If '*' is present, the length of the slice must be one.
       * Required.
       * 
* * repeated string operations = 1; */ public int getOperationsCount() { return operations_.size(); } /** * * *
       * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
       * for all of those operations and any future admission operations that are added.
       * If '*' is present, the length of the slice must be one.
       * Required.
       * 
* * repeated string operations = 1; */ public java.lang.String getOperations(int index) { return operations_.get(index); } /** * * *
       * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
       * for all of those operations and any future admission operations that are added.
       * If '*' is present, the length of the slice must be one.
       * Required.
       * 
* * repeated string operations = 1; */ public com.google.protobuf.ByteString getOperationsBytes(int index) { return operations_.getByteString(index); } /** * * *
       * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
       * for all of those operations and any future admission operations that are added.
       * If '*' is present, the length of the slice must be one.
       * Required.
       * 
* * repeated string operations = 1; */ public Builder setOperations(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureOperationsIsMutable(); operations_.set(index, value); onChanged(); return this; } /** * * *
       * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
       * for all of those operations and any future admission operations that are added.
       * If '*' is present, the length of the slice must be one.
       * Required.
       * 
* * repeated string operations = 1; */ public Builder addOperations(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureOperationsIsMutable(); operations_.add(value); onChanged(); return this; } /** * * *
       * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
       * for all of those operations and any future admission operations that are added.
       * If '*' is present, the length of the slice must be one.
       * Required.
       * 
* * repeated string operations = 1; */ public Builder addAllOperations(java.lang.Iterable values) { ensureOperationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, operations_); onChanged(); return this; } /** * * *
       * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
       * for all of those operations and any future admission operations that are added.
       * If '*' is present, the length of the slice must be one.
       * Required.
       * 
* * repeated string operations = 1; */ public Builder clearOperations() { operations_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
       * for all of those operations and any future admission operations that are added.
       * If '*' is present, the length of the slice must be one.
       * Required.
       * 
* * repeated string operations = 1; */ public Builder addOperationsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureOperationsIsMutable(); operations_.add(value); onChanged(); return this; } private io.kubernetes.client.proto.V1beta1Admissionregistration.Rule rule_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Admissionregistration.Rule, io.kubernetes.client.proto.V1beta1Admissionregistration.Rule.Builder, io.kubernetes.client.proto.V1beta1Admissionregistration.RuleOrBuilder> ruleBuilder_; /** * * *
       * Rule is embedded, it describes other criteria of the rule, like
       * APIGroups, APIVersions, Resources, etc.
       * 
* * optional .k8s.io.api.admissionregistration.v1beta1.Rule rule = 2; */ public boolean hasRule() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Rule is embedded, it describes other criteria of the rule, like
       * APIGroups, APIVersions, Resources, etc.
       * 
* * optional .k8s.io.api.admissionregistration.v1beta1.Rule rule = 2; */ public io.kubernetes.client.proto.V1beta1Admissionregistration.Rule getRule() { if (ruleBuilder_ == null) { return rule_ == null ? io.kubernetes.client.proto.V1beta1Admissionregistration.Rule.getDefaultInstance() : rule_; } else { return ruleBuilder_.getMessage(); } } /** * * *
       * Rule is embedded, it describes other criteria of the rule, like
       * APIGroups, APIVersions, Resources, etc.
       * 
* * optional .k8s.io.api.admissionregistration.v1beta1.Rule rule = 2; */ public Builder setRule(io.kubernetes.client.proto.V1beta1Admissionregistration.Rule value) { if (ruleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rule_ = value; onChanged(); } else { ruleBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Rule is embedded, it describes other criteria of the rule, like
       * APIGroups, APIVersions, Resources, etc.
       * 
* * optional .k8s.io.api.admissionregistration.v1beta1.Rule rule = 2; */ public Builder setRule( io.kubernetes.client.proto.V1beta1Admissionregistration.Rule.Builder builderForValue) { if (ruleBuilder_ == null) { rule_ = builderForValue.build(); onChanged(); } else { ruleBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Rule is embedded, it describes other criteria of the rule, like
       * APIGroups, APIVersions, Resources, etc.
       * 
* * optional .k8s.io.api.admissionregistration.v1beta1.Rule rule = 2; */ public Builder mergeRule(io.kubernetes.client.proto.V1beta1Admissionregistration.Rule value) { if (ruleBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && rule_ != null && rule_ != io.kubernetes.client.proto.V1beta1Admissionregistration.Rule .getDefaultInstance()) { rule_ = io.kubernetes.client.proto.V1beta1Admissionregistration.Rule.newBuilder(rule_) .mergeFrom(value) .buildPartial(); } else { rule_ = value; } onChanged(); } else { ruleBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Rule is embedded, it describes other criteria of the rule, like
       * APIGroups, APIVersions, Resources, etc.
       * 
* * optional .k8s.io.api.admissionregistration.v1beta1.Rule rule = 2; */ public Builder clearRule() { if (ruleBuilder_ == null) { rule_ = null; onChanged(); } else { ruleBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * Rule is embedded, it describes other criteria of the rule, like
       * APIGroups, APIVersions, Resources, etc.
       * 
* * optional .k8s.io.api.admissionregistration.v1beta1.Rule rule = 2; */ public io.kubernetes.client.proto.V1beta1Admissionregistration.Rule.Builder getRuleBuilder() { bitField0_ |= 0x00000002; onChanged(); return getRuleFieldBuilder().getBuilder(); } /** * * *
       * Rule is embedded, it describes other criteria of the rule, like
       * APIGroups, APIVersions, Resources, etc.
       * 
* * optional .k8s.io.api.admissionregistration.v1beta1.Rule rule = 2; */ public io.kubernetes.client.proto.V1beta1Admissionregistration.RuleOrBuilder getRuleOrBuilder() { if (ruleBuilder_ != null) { return ruleBuilder_.getMessageOrBuilder(); } else { return rule_ == null ? io.kubernetes.client.proto.V1beta1Admissionregistration.Rule.getDefaultInstance() : rule_; } } /** * * *
       * Rule is embedded, it describes other criteria of the rule, like
       * APIGroups, APIVersions, Resources, etc.
       * 
* * optional .k8s.io.api.admissionregistration.v1beta1.Rule rule = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Admissionregistration.Rule, io.kubernetes.client.proto.V1beta1Admissionregistration.Rule.Builder, io.kubernetes.client.proto.V1beta1Admissionregistration.RuleOrBuilder> getRuleFieldBuilder() { if (ruleBuilder_ == null) { ruleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Admissionregistration.Rule, io.kubernetes.client.proto.V1beta1Admissionregistration.Rule.Builder, io.kubernetes.client.proto.V1beta1Admissionregistration.RuleOrBuilder>( getRule(), getParentForChildren(), isClean()); rule_ = null; } return ruleBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.admissionregistration.v1beta1.RuleWithOperations) } // @@protoc_insertion_point(class_scope:k8s.io.api.admissionregistration.v1beta1.RuleWithOperations) private static final io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations(); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RuleWithOperations parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RuleWithOperations(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ServiceReferenceOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.admissionregistration.v1beta1.ServiceReference) com.google.protobuf.MessageOrBuilder { /** * * *
     * `namespace` is the namespace of the service.
     * Required
     * 
* * optional string namespace = 1; */ boolean hasNamespace(); /** * * *
     * `namespace` is the namespace of the service.
     * Required
     * 
* * optional string namespace = 1; */ java.lang.String getNamespace(); /** * * *
     * `namespace` is the namespace of the service.
     * Required
     * 
* * optional string namespace = 1; */ com.google.protobuf.ByteString getNamespaceBytes(); /** * * *
     * `name` is the name of the service.
     * Required
     * 
* * optional string name = 2; */ boolean hasName(); /** * * *
     * `name` is the name of the service.
     * Required
     * 
* * optional string name = 2; */ java.lang.String getName(); /** * * *
     * `name` is the name of the service.
     * Required
     * 
* * optional string name = 2; */ com.google.protobuf.ByteString getNameBytes(); /** * * *
     * `path` is an optional URL path which will be sent in any request to
     * this service.
     * +optional
     * 
* * optional string path = 3; */ boolean hasPath(); /** * * *
     * `path` is an optional URL path which will be sent in any request to
     * this service.
     * +optional
     * 
* * optional string path = 3; */ java.lang.String getPath(); /** * * *
     * `path` is an optional URL path which will be sent in any request to
     * this service.
     * +optional
     * 
* * optional string path = 3; */ com.google.protobuf.ByteString getPathBytes(); /** * * *
     * If specified, the port on the service that hosting webhook.
     * Default to 443 for backward compatibility.
     * `port` should be a valid port number (1-65535, inclusive).
     * +optional
     * 
* * optional int32 port = 4; */ boolean hasPort(); /** * * *
     * If specified, the port on the service that hosting webhook.
     * Default to 443 for backward compatibility.
     * `port` should be a valid port number (1-65535, inclusive).
     * +optional
     * 
* * optional int32 port = 4; */ int getPort(); } /** * * *
   * ServiceReference holds a reference to Service.legacy.k8s.io
   * 
* * Protobuf type {@code k8s.io.api.admissionregistration.v1beta1.ServiceReference} */ public static final class ServiceReference extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.admissionregistration.v1beta1.ServiceReference) ServiceReferenceOrBuilder { private static final long serialVersionUID = 0L; // Use ServiceReference.newBuilder() to construct. private ServiceReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ServiceReference() { namespace_ = ""; name_ = ""; path_ = ""; port_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ServiceReference( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; namespace_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; name_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; path_ = bs; break; } case 32: { bitField0_ |= 0x00000008; port_ = input.readInt32(); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_ServiceReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_ServiceReference_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference.class, io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference.Builder .class); } private int bitField0_; public static final int NAMESPACE_FIELD_NUMBER = 1; private volatile java.lang.Object namespace_; /** * * *
     * `namespace` is the namespace of the service.
     * Required
     * 
* * optional string namespace = 1; */ public boolean hasNamespace() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * `namespace` is the namespace of the service.
     * Required
     * 
* * optional string namespace = 1; */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { namespace_ = s; } return s; } } /** * * *
     * `namespace` is the namespace of the service.
     * Required
     * 
* * optional string namespace = 1; */ public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** * * *
     * `name` is the name of the service.
     * Required
     * 
* * optional string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * `name` is the name of the service.
     * Required
     * 
* * optional string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * * *
     * `name` is the name of the service.
     * Required
     * 
* * optional string name = 2; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PATH_FIELD_NUMBER = 3; private volatile java.lang.Object path_; /** * * *
     * `path` is an optional URL path which will be sent in any request to
     * this service.
     * +optional
     * 
* * optional string path = 3; */ public boolean hasPath() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * `path` is an optional URL path which will be sent in any request to
     * this service.
     * +optional
     * 
* * optional string path = 3; */ public java.lang.String getPath() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; } return s; } } /** * * *
     * `path` is an optional URL path which will be sent in any request to
     * this service.
     * +optional
     * 
* * optional string path = 3; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PORT_FIELD_NUMBER = 4; private int port_; /** * * *
     * If specified, the port on the service that hosting webhook.
     * Default to 443 for backward compatibility.
     * `port` should be a valid port number (1-65535, inclusive).
     * +optional
     * 
* * optional int32 port = 4; */ public boolean hasPort() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * If specified, the port on the service that hosting webhook.
     * Default to 443 for backward compatibility.
     * `port` should be a valid port number (1-65535, inclusive).
     * +optional
     * 
* * optional int32 port = 4; */ public int getPort() { return port_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, namespace_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, path_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt32(4, port_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, namespace_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, path_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, port_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference other = (io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference) obj; boolean result = true; result = result && (hasNamespace() == other.hasNamespace()); if (hasNamespace()) { result = result && getNamespace().equals(other.getNamespace()); } result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName().equals(other.getName()); } result = result && (hasPath() == other.hasPath()); if (hasPath()) { result = result && getPath().equals(other.getPath()); } result = result && (hasPort() == other.hasPort()); if (hasPort()) { result = result && (getPort() == other.getPort()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasNamespace()) { hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getNamespace().hashCode(); } if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasPath()) { hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); } if (hasPort()) { hash = (37 * hash) + PORT_FIELD_NUMBER; hash = (53 * hash) + getPort(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * ServiceReference holds a reference to Service.legacy.k8s.io
     * 
* * Protobuf type {@code k8s.io.api.admissionregistration.v1beta1.ServiceReference} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.admissionregistration.v1beta1.ServiceReference) io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReferenceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_ServiceReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_ServiceReference_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference.class, io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference.Builder .class); } // Construct using // io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); namespace_ = ""; bitField0_ = (bitField0_ & ~0x00000001); name_ = ""; bitField0_ = (bitField0_ & ~0x00000002); path_ = ""; bitField0_ = (bitField0_ & ~0x00000004); port_ = 0; bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_ServiceReference_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference .getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference build() { io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference buildPartial() { io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference result = new io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.namespace_ = namespace_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.name_ = name_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.path_ = path_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.port_ = port_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference other) { if (other == io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference .getDefaultInstance()) return this; if (other.hasNamespace()) { bitField0_ |= 0x00000001; namespace_ = other.namespace_; onChanged(); } if (other.hasName()) { bitField0_ |= 0x00000002; name_ = other.name_; onChanged(); } if (other.hasPath()) { bitField0_ |= 0x00000004; path_ = other.path_; onChanged(); } if (other.hasPort()) { setPort(other.getPort()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object namespace_ = ""; /** * * *
       * `namespace` is the namespace of the service.
       * Required
       * 
* * optional string namespace = 1; */ public boolean hasNamespace() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * `namespace` is the namespace of the service.
       * Required
       * 
* * optional string namespace = 1; */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { namespace_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * `namespace` is the namespace of the service.
       * Required
       * 
* * optional string namespace = 1; */ public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * `namespace` is the namespace of the service.
       * Required
       * 
* * optional string namespace = 1; */ public Builder setNamespace(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; namespace_ = value; onChanged(); return this; } /** * * *
       * `namespace` is the namespace of the service.
       * Required
       * 
* * optional string namespace = 1; */ public Builder clearNamespace() { bitField0_ = (bitField0_ & ~0x00000001); namespace_ = getDefaultInstance().getNamespace(); onChanged(); return this; } /** * * *
       * `namespace` is the namespace of the service.
       * Required
       * 
* * optional string namespace = 1; */ public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; namespace_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** * * *
       * `name` is the name of the service.
       * Required
       * 
* * optional string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * `name` is the name of the service.
       * Required
       * 
* * optional string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * `name` is the name of the service.
       * Required
       * 
* * optional string name = 2; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * `name` is the name of the service.
       * Required
       * 
* * optional string name = 2; */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } /** * * *
       * `name` is the name of the service.
       * Required
       * 
* * optional string name = 2; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000002); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * * *
       * `name` is the name of the service.
       * Required
       * 
* * optional string name = 2; */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } private java.lang.Object path_ = ""; /** * * *
       * `path` is an optional URL path which will be sent in any request to
       * this service.
       * +optional
       * 
* * optional string path = 3; */ public boolean hasPath() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * `path` is an optional URL path which will be sent in any request to
       * this service.
       * +optional
       * 
* * optional string path = 3; */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * `path` is an optional URL path which will be sent in any request to
       * this service.
       * +optional
       * 
* * optional string path = 3; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * `path` is an optional URL path which will be sent in any request to
       * this service.
       * +optional
       * 
* * optional string path = 3; */ public Builder setPath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; path_ = value; onChanged(); return this; } /** * * *
       * `path` is an optional URL path which will be sent in any request to
       * this service.
       * +optional
       * 
* * optional string path = 3; */ public Builder clearPath() { bitField0_ = (bitField0_ & ~0x00000004); path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** * * *
       * `path` is an optional URL path which will be sent in any request to
       * this service.
       * +optional
       * 
* * optional string path = 3; */ public Builder setPathBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; path_ = value; onChanged(); return this; } private int port_; /** * * *
       * If specified, the port on the service that hosting webhook.
       * Default to 443 for backward compatibility.
       * `port` should be a valid port number (1-65535, inclusive).
       * +optional
       * 
* * optional int32 port = 4; */ public boolean hasPort() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * If specified, the port on the service that hosting webhook.
       * Default to 443 for backward compatibility.
       * `port` should be a valid port number (1-65535, inclusive).
       * +optional
       * 
* * optional int32 port = 4; */ public int getPort() { return port_; } /** * * *
       * If specified, the port on the service that hosting webhook.
       * Default to 443 for backward compatibility.
       * `port` should be a valid port number (1-65535, inclusive).
       * +optional
       * 
* * optional int32 port = 4; */ public Builder setPort(int value) { bitField0_ |= 0x00000008; port_ = value; onChanged(); return this; } /** * * *
       * If specified, the port on the service that hosting webhook.
       * Default to 443 for backward compatibility.
       * `port` should be a valid port number (1-65535, inclusive).
       * +optional
       * 
* * optional int32 port = 4; */ public Builder clearPort() { bitField0_ = (bitField0_ & ~0x00000008); port_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.admissionregistration.v1beta1.ServiceReference) } // @@protoc_insertion_point(class_scope:k8s.io.api.admissionregistration.v1beta1.ServiceReference) private static final io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference(); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ServiceReference parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ServiceReference(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ValidatingWebhookOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook) com.google.protobuf.MessageOrBuilder { /** * * *
     * The name of the admission webhook.
     * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
     * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
     * of the organization.
     * Required.
     * 
* * optional string name = 1; */ boolean hasName(); /** * * *
     * The name of the admission webhook.
     * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
     * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
     * of the organization.
     * Required.
     * 
* * optional string name = 1; */ java.lang.String getName(); /** * * *
     * The name of the admission webhook.
     * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
     * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
     * of the organization.
     * Required.
     * 
* * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * * *
     * ClientConfig defines how to communicate with the hook.
     * Required
     * 
* * * optional .k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig clientConfig = 2; * */ boolean hasClientConfig(); /** * * *
     * ClientConfig defines how to communicate with the hook.
     * Required
     * 
* * * optional .k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig clientConfig = 2; * */ io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig getClientConfig(); /** * * *
     * ClientConfig defines how to communicate with the hook.
     * Required
     * 
* * * optional .k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig clientConfig = 2; * */ io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfigOrBuilder getClientConfigOrBuilder(); /** * * *
     * Rules describes what operations on what resources/subresources the webhook cares about.
     * The webhook cares about an operation if it matches _any_ Rule.
     * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
     * from putting the cluster in a state which cannot be recovered from without completely
     * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
     * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; */ java.util.List getRulesList(); /** * * *
     * Rules describes what operations on what resources/subresources the webhook cares about.
     * The webhook cares about an operation if it matches _any_ Rule.
     * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
     * from putting the cluster in a state which cannot be recovered from without completely
     * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
     * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; */ io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations getRules(int index); /** * * *
     * Rules describes what operations on what resources/subresources the webhook cares about.
     * The webhook cares about an operation if it matches _any_ Rule.
     * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
     * from putting the cluster in a state which cannot be recovered from without completely
     * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
     * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; */ int getRulesCount(); /** * * *
     * Rules describes what operations on what resources/subresources the webhook cares about.
     * The webhook cares about an operation if it matches _any_ Rule.
     * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
     * from putting the cluster in a state which cannot be recovered from without completely
     * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
     * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; */ java.util.List< ? extends io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperationsOrBuilder> getRulesOrBuilderList(); /** * * *
     * Rules describes what operations on what resources/subresources the webhook cares about.
     * The webhook cares about an operation if it matches _any_ Rule.
     * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
     * from putting the cluster in a state which cannot be recovered from without completely
     * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
     * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; */ io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperationsOrBuilder getRulesOrBuilder(int index); /** * * *
     * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
     * allowed values are Ignore or Fail. Defaults to Ignore.
     * +optional
     * 
* * optional string failurePolicy = 4; */ boolean hasFailurePolicy(); /** * * *
     * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
     * allowed values are Ignore or Fail. Defaults to Ignore.
     * +optional
     * 
* * optional string failurePolicy = 4; */ java.lang.String getFailurePolicy(); /** * * *
     * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
     * allowed values are Ignore or Fail. Defaults to Ignore.
     * +optional
     * 
* * optional string failurePolicy = 4; */ com.google.protobuf.ByteString getFailurePolicyBytes(); /** * * *
     * matchPolicy defines how the "rules" list is used to match incoming requests.
     * Allowed values are "Exact" or "Equivalent".
     * - Exact: match a request only if it exactly matches a specified rule.
     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
     * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
     * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
     * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
     * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
     * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
     * Defaults to "Exact"
     * +optional
     * 
* * optional string matchPolicy = 9; */ boolean hasMatchPolicy(); /** * * *
     * matchPolicy defines how the "rules" list is used to match incoming requests.
     * Allowed values are "Exact" or "Equivalent".
     * - Exact: match a request only if it exactly matches a specified rule.
     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
     * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
     * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
     * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
     * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
     * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
     * Defaults to "Exact"
     * +optional
     * 
* * optional string matchPolicy = 9; */ java.lang.String getMatchPolicy(); /** * * *
     * matchPolicy defines how the "rules" list is used to match incoming requests.
     * Allowed values are "Exact" or "Equivalent".
     * - Exact: match a request only if it exactly matches a specified rule.
     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
     * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
     * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
     * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
     * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
     * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
     * Defaults to "Exact"
     * +optional
     * 
* * optional string matchPolicy = 9; */ com.google.protobuf.ByteString getMatchPolicyBytes(); /** * * *
     * NamespaceSelector decides whether to run the webhook on an object based
     * on whether the namespace for that object matches the selector. If the
     * object itself is a namespace, the matching is performed on
     * object.metadata.labels. If the object is another cluster scoped resource,
     * it never skips the webhook.
     * For example, to run the webhook on any objects whose namespace is not
     * associated with "runlevel" of "0" or "1";  you will set the selector as
     * follows:
     * "namespaceSelector": {
     *   "matchExpressions": [
     *     {
     *       "key": "runlevel",
     *       "operator": "NotIn",
     *       "values": [
     *         "0",
     *         "1"
     *       ]
     *     }
     *   ]
     * }
     * If instead you want to only run the webhook on any objects whose
     * namespace is associated with the "environment" of "prod" or "staging";
     * you will set the selector as follows:
     * "namespaceSelector": {
     *   "matchExpressions": [
     *     {
     *       "key": "environment",
     *       "operator": "In",
     *       "values": [
     *         "prod",
     *         "staging"
     *       ]
     *     }
     *   ]
     * }
     * See
     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels
     * for more examples of label selectors.
     * Default to the empty LabelSelector, which matches everything.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; * */ boolean hasNamespaceSelector(); /** * * *
     * NamespaceSelector decides whether to run the webhook on an object based
     * on whether the namespace for that object matches the selector. If the
     * object itself is a namespace, the matching is performed on
     * object.metadata.labels. If the object is another cluster scoped resource,
     * it never skips the webhook.
     * For example, to run the webhook on any objects whose namespace is not
     * associated with "runlevel" of "0" or "1";  you will set the selector as
     * follows:
     * "namespaceSelector": {
     *   "matchExpressions": [
     *     {
     *       "key": "runlevel",
     *       "operator": "NotIn",
     *       "values": [
     *         "0",
     *         "1"
     *       ]
     *     }
     *   ]
     * }
     * If instead you want to only run the webhook on any objects whose
     * namespace is associated with the "environment" of "prod" or "staging";
     * you will set the selector as follows:
     * "namespaceSelector": {
     *   "matchExpressions": [
     *     {
     *       "key": "environment",
     *       "operator": "In",
     *       "values": [
     *         "prod",
     *         "staging"
     *       ]
     *     }
     *   ]
     * }
     * See
     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels
     * for more examples of label selectors.
     * Default to the empty LabelSelector, which matches everything.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; * */ io.kubernetes.client.proto.Meta.LabelSelector getNamespaceSelector(); /** * * *
     * NamespaceSelector decides whether to run the webhook on an object based
     * on whether the namespace for that object matches the selector. If the
     * object itself is a namespace, the matching is performed on
     * object.metadata.labels. If the object is another cluster scoped resource,
     * it never skips the webhook.
     * For example, to run the webhook on any objects whose namespace is not
     * associated with "runlevel" of "0" or "1";  you will set the selector as
     * follows:
     * "namespaceSelector": {
     *   "matchExpressions": [
     *     {
     *       "key": "runlevel",
     *       "operator": "NotIn",
     *       "values": [
     *         "0",
     *         "1"
     *       ]
     *     }
     *   ]
     * }
     * If instead you want to only run the webhook on any objects whose
     * namespace is associated with the "environment" of "prod" or "staging";
     * you will set the selector as follows:
     * "namespaceSelector": {
     *   "matchExpressions": [
     *     {
     *       "key": "environment",
     *       "operator": "In",
     *       "values": [
     *         "prod",
     *         "staging"
     *       ]
     *     }
     *   ]
     * }
     * See
     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels
     * for more examples of label selectors.
     * Default to the empty LabelSelector, which matches everything.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; * */ io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getNamespaceSelectorOrBuilder(); /** * * *
     * ObjectSelector decides whether to run the webhook based on if the
     * object has matching labels. objectSelector is evaluated against both
     * the oldObject and newObject that would be sent to the webhook, and
     * is considered to match if either object matches the selector. A null
     * object (oldObject in the case of create, or newObject in the case of
     * delete) or an object that cannot have labels (like a
     * DeploymentRollback or a PodProxyOptions object) is not considered to
     * match.
     * Use the object selector only if the webhook is opt-in, because end
     * users may skip the admission webhook by setting the labels.
     * Default to the empty LabelSelector, which matches everything.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 10; * */ boolean hasObjectSelector(); /** * * *
     * ObjectSelector decides whether to run the webhook based on if the
     * object has matching labels. objectSelector is evaluated against both
     * the oldObject and newObject that would be sent to the webhook, and
     * is considered to match if either object matches the selector. A null
     * object (oldObject in the case of create, or newObject in the case of
     * delete) or an object that cannot have labels (like a
     * DeploymentRollback or a PodProxyOptions object) is not considered to
     * match.
     * Use the object selector only if the webhook is opt-in, because end
     * users may skip the admission webhook by setting the labels.
     * Default to the empty LabelSelector, which matches everything.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 10; * */ io.kubernetes.client.proto.Meta.LabelSelector getObjectSelector(); /** * * *
     * ObjectSelector decides whether to run the webhook based on if the
     * object has matching labels. objectSelector is evaluated against both
     * the oldObject and newObject that would be sent to the webhook, and
     * is considered to match if either object matches the selector. A null
     * object (oldObject in the case of create, or newObject in the case of
     * delete) or an object that cannot have labels (like a
     * DeploymentRollback or a PodProxyOptions object) is not considered to
     * match.
     * Use the object selector only if the webhook is opt-in, because end
     * users may skip the admission webhook by setting the labels.
     * Default to the empty LabelSelector, which matches everything.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 10; * */ io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getObjectSelectorOrBuilder(); /** * * *
     * SideEffects states whether this webhook has side effects.
     * Acceptable values are: Unknown, None, Some, NoneOnDryRun
     * Webhooks with side effects MUST implement a reconciliation system, since a request may be
     * rejected by a future step in the admission chain and the side effects therefore need to be undone.
     * Requests with the dryRun attribute will be auto-rejected if they match a webhook with
     * sideEffects == Unknown or Some. Defaults to Unknown.
     * +optional
     * 
* * optional string sideEffects = 6; */ boolean hasSideEffects(); /** * * *
     * SideEffects states whether this webhook has side effects.
     * Acceptable values are: Unknown, None, Some, NoneOnDryRun
     * Webhooks with side effects MUST implement a reconciliation system, since a request may be
     * rejected by a future step in the admission chain and the side effects therefore need to be undone.
     * Requests with the dryRun attribute will be auto-rejected if they match a webhook with
     * sideEffects == Unknown or Some. Defaults to Unknown.
     * +optional
     * 
* * optional string sideEffects = 6; */ java.lang.String getSideEffects(); /** * * *
     * SideEffects states whether this webhook has side effects.
     * Acceptable values are: Unknown, None, Some, NoneOnDryRun
     * Webhooks with side effects MUST implement a reconciliation system, since a request may be
     * rejected by a future step in the admission chain and the side effects therefore need to be undone.
     * Requests with the dryRun attribute will be auto-rejected if they match a webhook with
     * sideEffects == Unknown or Some. Defaults to Unknown.
     * +optional
     * 
* * optional string sideEffects = 6; */ com.google.protobuf.ByteString getSideEffectsBytes(); /** * * *
     * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes,
     * the webhook call will be ignored or the API call will fail based on the
     * failure policy.
     * The timeout value must be between 1 and 30 seconds.
     * Default to 30 seconds.
     * +optional
     * 
* * optional int32 timeoutSeconds = 7; */ boolean hasTimeoutSeconds(); /** * * *
     * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes,
     * the webhook call will be ignored or the API call will fail based on the
     * failure policy.
     * The timeout value must be between 1 and 30 seconds.
     * Default to 30 seconds.
     * +optional
     * 
* * optional int32 timeoutSeconds = 7; */ int getTimeoutSeconds(); /** * * *
     * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
     * versions the Webhook expects. API server will try to use first version in
     * the list which it supports. If none of the versions specified in this list
     * supported by API server, validation will fail for this object.
     * 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
     * and be subject to the failure policy.
     * Default to `['v1beta1']`.
     * +optional
     * 
* * repeated string admissionReviewVersions = 8; */ java.util.List getAdmissionReviewVersionsList(); /** * * *
     * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
     * versions the Webhook expects. API server will try to use first version in
     * the list which it supports. If none of the versions specified in this list
     * supported by API server, validation will fail for this object.
     * 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
     * and be subject to the failure policy.
     * Default to `['v1beta1']`.
     * +optional
     * 
* * repeated string admissionReviewVersions = 8; */ int getAdmissionReviewVersionsCount(); /** * * *
     * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
     * versions the Webhook expects. API server will try to use first version in
     * the list which it supports. If none of the versions specified in this list
     * supported by API server, validation will fail for this object.
     * 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
     * and be subject to the failure policy.
     * Default to `['v1beta1']`.
     * +optional
     * 
* * repeated string admissionReviewVersions = 8; */ java.lang.String getAdmissionReviewVersions(int index); /** * * *
     * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
     * versions the Webhook expects. API server will try to use first version in
     * the list which it supports. If none of the versions specified in this list
     * supported by API server, validation will fail for this object.
     * 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
     * and be subject to the failure policy.
     * Default to `['v1beta1']`.
     * +optional
     * 
* * repeated string admissionReviewVersions = 8; */ com.google.protobuf.ByteString getAdmissionReviewVersionsBytes(int index); } /** * * *
   * ValidatingWebhook describes an admission webhook and the resources and operations it applies to.
   * 
* * Protobuf type {@code k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook} */ public static final class ValidatingWebhook extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook) ValidatingWebhookOrBuilder { private static final long serialVersionUID = 0L; // Use ValidatingWebhook.newBuilder() to construct. private ValidatingWebhook(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ValidatingWebhook() { name_ = ""; rules_ = java.util.Collections.emptyList(); failurePolicy_ = ""; matchPolicy_ = ""; sideEffects_ = ""; timeoutSeconds_ = 0; admissionReviewVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ValidatingWebhook( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; name_ = bs; break; } case 18: { io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = clientConfig_.toBuilder(); } clientConfig_ = input.readMessage( io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig .PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(clientConfig_); clientConfig_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { rules_ = new java.util.ArrayList< io.kubernetes.client.proto.V1beta1Admissionregistration .RuleWithOperations>(); mutable_bitField0_ |= 0x00000004; } rules_.add( input.readMessage( io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations .PARSER, extensionRegistry)); break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; failurePolicy_ = bs; break; } case 42: { io.kubernetes.client.proto.Meta.LabelSelector.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = namespaceSelector_.toBuilder(); } namespaceSelector_ = input.readMessage( io.kubernetes.client.proto.Meta.LabelSelector.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(namespaceSelector_); namespaceSelector_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000040; sideEffects_ = bs; break; } case 56: { bitField0_ |= 0x00000080; timeoutSeconds_ = input.readInt32(); break; } case 66: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { admissionReviewVersions_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000200; } admissionReviewVersions_.add(bs); break; } case 74: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; matchPolicy_ = bs; break; } case 82: { io.kubernetes.client.proto.Meta.LabelSelector.Builder subBuilder = null; if (((bitField0_ & 0x00000020) == 0x00000020)) { subBuilder = objectSelector_.toBuilder(); } objectSelector_ = input.readMessage( io.kubernetes.client.proto.Meta.LabelSelector.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(objectSelector_); objectSelector_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { rules_ = java.util.Collections.unmodifiableList(rules_); } if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { admissionReviewVersions_ = admissionReviewVersions_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_ValidatingWebhook_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_ValidatingWebhook_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook.class, io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook.Builder .class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * * *
     * The name of the admission webhook.
     * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
     * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
     * of the organization.
     * Required.
     * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * The name of the admission webhook.
     * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
     * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
     * of the organization.
     * Required.
     * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * * *
     * The name of the admission webhook.
     * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
     * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
     * of the organization.
     * Required.
     * 
* * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CLIENTCONFIG_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig clientConfig_; /** * * *
     * ClientConfig defines how to communicate with the hook.
     * Required
     * 
* * * optional .k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig clientConfig = 2; * */ public boolean hasClientConfig() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * ClientConfig defines how to communicate with the hook.
     * Required
     * 
* * * optional .k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig clientConfig = 2; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig getClientConfig() { return clientConfig_ == null ? io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig .getDefaultInstance() : clientConfig_; } /** * * *
     * ClientConfig defines how to communicate with the hook.
     * Required
     * 
* * * optional .k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig clientConfig = 2; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfigOrBuilder getClientConfigOrBuilder() { return clientConfig_ == null ? io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig .getDefaultInstance() : clientConfig_; } public static final int RULES_FIELD_NUMBER = 3; private java.util.List< io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations> rules_; /** * * *
     * Rules describes what operations on what resources/subresources the webhook cares about.
     * The webhook cares about an operation if it matches _any_ Rule.
     * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
     * from putting the cluster in a state which cannot be recovered from without completely
     * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
     * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; */ public java.util.List< io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations> getRulesList() { return rules_; } /** * * *
     * Rules describes what operations on what resources/subresources the webhook cares about.
     * The webhook cares about an operation if it matches _any_ Rule.
     * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
     * from putting the cluster in a state which cannot be recovered from without completely
     * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
     * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperationsOrBuilder> getRulesOrBuilderList() { return rules_; } /** * * *
     * Rules describes what operations on what resources/subresources the webhook cares about.
     * The webhook cares about an operation if it matches _any_ Rule.
     * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
     * from putting the cluster in a state which cannot be recovered from without completely
     * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
     * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; */ public int getRulesCount() { return rules_.size(); } /** * * *
     * Rules describes what operations on what resources/subresources the webhook cares about.
     * The webhook cares about an operation if it matches _any_ Rule.
     * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
     * from putting the cluster in a state which cannot be recovered from without completely
     * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
     * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; */ public io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations getRules( int index) { return rules_.get(index); } /** * * *
     * Rules describes what operations on what resources/subresources the webhook cares about.
     * The webhook cares about an operation if it matches _any_ Rule.
     * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
     * from putting the cluster in a state which cannot be recovered from without completely
     * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
     * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; */ public io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperationsOrBuilder getRulesOrBuilder(int index) { return rules_.get(index); } public static final int FAILUREPOLICY_FIELD_NUMBER = 4; private volatile java.lang.Object failurePolicy_; /** * * *
     * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
     * allowed values are Ignore or Fail. Defaults to Ignore.
     * +optional
     * 
* * optional string failurePolicy = 4; */ public boolean hasFailurePolicy() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
     * allowed values are Ignore or Fail. Defaults to Ignore.
     * +optional
     * 
* * optional string failurePolicy = 4; */ public java.lang.String getFailurePolicy() { java.lang.Object ref = failurePolicy_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { failurePolicy_ = s; } return s; } } /** * * *
     * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
     * allowed values are Ignore or Fail. Defaults to Ignore.
     * +optional
     * 
* * optional string failurePolicy = 4; */ public com.google.protobuf.ByteString getFailurePolicyBytes() { java.lang.Object ref = failurePolicy_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); failurePolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MATCHPOLICY_FIELD_NUMBER = 9; private volatile java.lang.Object matchPolicy_; /** * * *
     * matchPolicy defines how the "rules" list is used to match incoming requests.
     * Allowed values are "Exact" or "Equivalent".
     * - Exact: match a request only if it exactly matches a specified rule.
     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
     * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
     * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
     * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
     * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
     * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
     * Defaults to "Exact"
     * +optional
     * 
* * optional string matchPolicy = 9; */ public boolean hasMatchPolicy() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * matchPolicy defines how the "rules" list is used to match incoming requests.
     * Allowed values are "Exact" or "Equivalent".
     * - Exact: match a request only if it exactly matches a specified rule.
     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
     * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
     * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
     * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
     * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
     * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
     * Defaults to "Exact"
     * +optional
     * 
* * optional string matchPolicy = 9; */ public java.lang.String getMatchPolicy() { java.lang.Object ref = matchPolicy_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { matchPolicy_ = s; } return s; } } /** * * *
     * matchPolicy defines how the "rules" list is used to match incoming requests.
     * Allowed values are "Exact" or "Equivalent".
     * - Exact: match a request only if it exactly matches a specified rule.
     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
     * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
     * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
     * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
     * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
     * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
     * Defaults to "Exact"
     * +optional
     * 
* * optional string matchPolicy = 9; */ public com.google.protobuf.ByteString getMatchPolicyBytes() { java.lang.Object ref = matchPolicy_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); matchPolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAMESPACESELECTOR_FIELD_NUMBER = 5; private io.kubernetes.client.proto.Meta.LabelSelector namespaceSelector_; /** * * *
     * NamespaceSelector decides whether to run the webhook on an object based
     * on whether the namespace for that object matches the selector. If the
     * object itself is a namespace, the matching is performed on
     * object.metadata.labels. If the object is another cluster scoped resource,
     * it never skips the webhook.
     * For example, to run the webhook on any objects whose namespace is not
     * associated with "runlevel" of "0" or "1";  you will set the selector as
     * follows:
     * "namespaceSelector": {
     *   "matchExpressions": [
     *     {
     *       "key": "runlevel",
     *       "operator": "NotIn",
     *       "values": [
     *         "0",
     *         "1"
     *       ]
     *     }
     *   ]
     * }
     * If instead you want to only run the webhook on any objects whose
     * namespace is associated with the "environment" of "prod" or "staging";
     * you will set the selector as follows:
     * "namespaceSelector": {
     *   "matchExpressions": [
     *     {
     *       "key": "environment",
     *       "operator": "In",
     *       "values": [
     *         "prod",
     *         "staging"
     *       ]
     *     }
     *   ]
     * }
     * See
     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels
     * for more examples of label selectors.
     * Default to the empty LabelSelector, which matches everything.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; * */ public boolean hasNamespaceSelector() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * NamespaceSelector decides whether to run the webhook on an object based
     * on whether the namespace for that object matches the selector. If the
     * object itself is a namespace, the matching is performed on
     * object.metadata.labels. If the object is another cluster scoped resource,
     * it never skips the webhook.
     * For example, to run the webhook on any objects whose namespace is not
     * associated with "runlevel" of "0" or "1";  you will set the selector as
     * follows:
     * "namespaceSelector": {
     *   "matchExpressions": [
     *     {
     *       "key": "runlevel",
     *       "operator": "NotIn",
     *       "values": [
     *         "0",
     *         "1"
     *       ]
     *     }
     *   ]
     * }
     * If instead you want to only run the webhook on any objects whose
     * namespace is associated with the "environment" of "prod" or "staging";
     * you will set the selector as follows:
     * "namespaceSelector": {
     *   "matchExpressions": [
     *     {
     *       "key": "environment",
     *       "operator": "In",
     *       "values": [
     *         "prod",
     *         "staging"
     *       ]
     *     }
     *   ]
     * }
     * See
     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels
     * for more examples of label selectors.
     * Default to the empty LabelSelector, which matches everything.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; * */ public io.kubernetes.client.proto.Meta.LabelSelector getNamespaceSelector() { return namespaceSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : namespaceSelector_; } /** * * *
     * NamespaceSelector decides whether to run the webhook on an object based
     * on whether the namespace for that object matches the selector. If the
     * object itself is a namespace, the matching is performed on
     * object.metadata.labels. If the object is another cluster scoped resource,
     * it never skips the webhook.
     * For example, to run the webhook on any objects whose namespace is not
     * associated with "runlevel" of "0" or "1";  you will set the selector as
     * follows:
     * "namespaceSelector": {
     *   "matchExpressions": [
     *     {
     *       "key": "runlevel",
     *       "operator": "NotIn",
     *       "values": [
     *         "0",
     *         "1"
     *       ]
     *     }
     *   ]
     * }
     * If instead you want to only run the webhook on any objects whose
     * namespace is associated with the "environment" of "prod" or "staging";
     * you will set the selector as follows:
     * "namespaceSelector": {
     *   "matchExpressions": [
     *     {
     *       "key": "environment",
     *       "operator": "In",
     *       "values": [
     *         "prod",
     *         "staging"
     *       ]
     *     }
     *   ]
     * }
     * See
     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels
     * for more examples of label selectors.
     * Default to the empty LabelSelector, which matches everything.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; * */ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getNamespaceSelectorOrBuilder() { return namespaceSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : namespaceSelector_; } public static final int OBJECTSELECTOR_FIELD_NUMBER = 10; private io.kubernetes.client.proto.Meta.LabelSelector objectSelector_; /** * * *
     * ObjectSelector decides whether to run the webhook based on if the
     * object has matching labels. objectSelector is evaluated against both
     * the oldObject and newObject that would be sent to the webhook, and
     * is considered to match if either object matches the selector. A null
     * object (oldObject in the case of create, or newObject in the case of
     * delete) or an object that cannot have labels (like a
     * DeploymentRollback or a PodProxyOptions object) is not considered to
     * match.
     * Use the object selector only if the webhook is opt-in, because end
     * users may skip the admission webhook by setting the labels.
     * Default to the empty LabelSelector, which matches everything.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 10; * */ public boolean hasObjectSelector() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * ObjectSelector decides whether to run the webhook based on if the
     * object has matching labels. objectSelector is evaluated against both
     * the oldObject and newObject that would be sent to the webhook, and
     * is considered to match if either object matches the selector. A null
     * object (oldObject in the case of create, or newObject in the case of
     * delete) or an object that cannot have labels (like a
     * DeploymentRollback or a PodProxyOptions object) is not considered to
     * match.
     * Use the object selector only if the webhook is opt-in, because end
     * users may skip the admission webhook by setting the labels.
     * Default to the empty LabelSelector, which matches everything.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 10; * */ public io.kubernetes.client.proto.Meta.LabelSelector getObjectSelector() { return objectSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : objectSelector_; } /** * * *
     * ObjectSelector decides whether to run the webhook based on if the
     * object has matching labels. objectSelector is evaluated against both
     * the oldObject and newObject that would be sent to the webhook, and
     * is considered to match if either object matches the selector. A null
     * object (oldObject in the case of create, or newObject in the case of
     * delete) or an object that cannot have labels (like a
     * DeploymentRollback or a PodProxyOptions object) is not considered to
     * match.
     * Use the object selector only if the webhook is opt-in, because end
     * users may skip the admission webhook by setting the labels.
     * Default to the empty LabelSelector, which matches everything.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 10; * */ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getObjectSelectorOrBuilder() { return objectSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : objectSelector_; } public static final int SIDEEFFECTS_FIELD_NUMBER = 6; private volatile java.lang.Object sideEffects_; /** * * *
     * SideEffects states whether this webhook has side effects.
     * Acceptable values are: Unknown, None, Some, NoneOnDryRun
     * Webhooks with side effects MUST implement a reconciliation system, since a request may be
     * rejected by a future step in the admission chain and the side effects therefore need to be undone.
     * Requests with the dryRun attribute will be auto-rejected if they match a webhook with
     * sideEffects == Unknown or Some. Defaults to Unknown.
     * +optional
     * 
* * optional string sideEffects = 6; */ public boolean hasSideEffects() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
     * SideEffects states whether this webhook has side effects.
     * Acceptable values are: Unknown, None, Some, NoneOnDryRun
     * Webhooks with side effects MUST implement a reconciliation system, since a request may be
     * rejected by a future step in the admission chain and the side effects therefore need to be undone.
     * Requests with the dryRun attribute will be auto-rejected if they match a webhook with
     * sideEffects == Unknown or Some. Defaults to Unknown.
     * +optional
     * 
* * optional string sideEffects = 6; */ public java.lang.String getSideEffects() { java.lang.Object ref = sideEffects_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { sideEffects_ = s; } return s; } } /** * * *
     * SideEffects states whether this webhook has side effects.
     * Acceptable values are: Unknown, None, Some, NoneOnDryRun
     * Webhooks with side effects MUST implement a reconciliation system, since a request may be
     * rejected by a future step in the admission chain and the side effects therefore need to be undone.
     * Requests with the dryRun attribute will be auto-rejected if they match a webhook with
     * sideEffects == Unknown or Some. Defaults to Unknown.
     * +optional
     * 
* * optional string sideEffects = 6; */ public com.google.protobuf.ByteString getSideEffectsBytes() { java.lang.Object ref = sideEffects_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sideEffects_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TIMEOUTSECONDS_FIELD_NUMBER = 7; private int timeoutSeconds_; /** * * *
     * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes,
     * the webhook call will be ignored or the API call will fail based on the
     * failure policy.
     * The timeout value must be between 1 and 30 seconds.
     * Default to 30 seconds.
     * +optional
     * 
* * optional int32 timeoutSeconds = 7; */ public boolean hasTimeoutSeconds() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
     * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes,
     * the webhook call will be ignored or the API call will fail based on the
     * failure policy.
     * The timeout value must be between 1 and 30 seconds.
     * Default to 30 seconds.
     * +optional
     * 
* * optional int32 timeoutSeconds = 7; */ public int getTimeoutSeconds() { return timeoutSeconds_; } public static final int ADMISSIONREVIEWVERSIONS_FIELD_NUMBER = 8; private com.google.protobuf.LazyStringList admissionReviewVersions_; /** * * *
     * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
     * versions the Webhook expects. API server will try to use first version in
     * the list which it supports. If none of the versions specified in this list
     * supported by API server, validation will fail for this object.
     * 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
     * and be subject to the failure policy.
     * Default to `['v1beta1']`.
     * +optional
     * 
* * repeated string admissionReviewVersions = 8; */ public com.google.protobuf.ProtocolStringList getAdmissionReviewVersionsList() { return admissionReviewVersions_; } /** * * *
     * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
     * versions the Webhook expects. API server will try to use first version in
     * the list which it supports. If none of the versions specified in this list
     * supported by API server, validation will fail for this object.
     * 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
     * and be subject to the failure policy.
     * Default to `['v1beta1']`.
     * +optional
     * 
* * repeated string admissionReviewVersions = 8; */ public int getAdmissionReviewVersionsCount() { return admissionReviewVersions_.size(); } /** * * *
     * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
     * versions the Webhook expects. API server will try to use first version in
     * the list which it supports. If none of the versions specified in this list
     * supported by API server, validation will fail for this object.
     * 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
     * and be subject to the failure policy.
     * Default to `['v1beta1']`.
     * +optional
     * 
* * repeated string admissionReviewVersions = 8; */ public java.lang.String getAdmissionReviewVersions(int index) { return admissionReviewVersions_.get(index); } /** * * *
     * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
     * versions the Webhook expects. API server will try to use first version in
     * the list which it supports. If none of the versions specified in this list
     * supported by API server, validation will fail for this object.
     * 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
     * and be subject to the failure policy.
     * Default to `['v1beta1']`.
     * +optional
     * 
* * repeated string admissionReviewVersions = 8; */ public com.google.protobuf.ByteString getAdmissionReviewVersionsBytes(int index) { return admissionReviewVersions_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getClientConfig()); } for (int i = 0; i < rules_.size(); i++) { output.writeMessage(3, rules_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, failurePolicy_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(5, getNamespaceSelector()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, sideEffects_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeInt32(7, timeoutSeconds_); } for (int i = 0; i < admissionReviewVersions_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString( output, 8, admissionReviewVersions_.getRaw(i)); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, matchPolicy_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(10, getObjectSelector()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getClientConfig()); } for (int i = 0; i < rules_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, rules_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, failurePolicy_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getNamespaceSelector()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, sideEffects_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, timeoutSeconds_); } { int dataSize = 0; for (int i = 0; i < admissionReviewVersions_.size(); i++) { dataSize += computeStringSizeNoTag(admissionReviewVersions_.getRaw(i)); } size += dataSize; size += 1 * getAdmissionReviewVersionsList().size(); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, matchPolicy_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getObjectSelector()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook other = (io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName().equals(other.getName()); } result = result && (hasClientConfig() == other.hasClientConfig()); if (hasClientConfig()) { result = result && getClientConfig().equals(other.getClientConfig()); } result = result && getRulesList().equals(other.getRulesList()); result = result && (hasFailurePolicy() == other.hasFailurePolicy()); if (hasFailurePolicy()) { result = result && getFailurePolicy().equals(other.getFailurePolicy()); } result = result && (hasMatchPolicy() == other.hasMatchPolicy()); if (hasMatchPolicy()) { result = result && getMatchPolicy().equals(other.getMatchPolicy()); } result = result && (hasNamespaceSelector() == other.hasNamespaceSelector()); if (hasNamespaceSelector()) { result = result && getNamespaceSelector().equals(other.getNamespaceSelector()); } result = result && (hasObjectSelector() == other.hasObjectSelector()); if (hasObjectSelector()) { result = result && getObjectSelector().equals(other.getObjectSelector()); } result = result && (hasSideEffects() == other.hasSideEffects()); if (hasSideEffects()) { result = result && getSideEffects().equals(other.getSideEffects()); } result = result && (hasTimeoutSeconds() == other.hasTimeoutSeconds()); if (hasTimeoutSeconds()) { result = result && (getTimeoutSeconds() == other.getTimeoutSeconds()); } result = result && getAdmissionReviewVersionsList().equals(other.getAdmissionReviewVersionsList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasClientConfig()) { hash = (37 * hash) + CLIENTCONFIG_FIELD_NUMBER; hash = (53 * hash) + getClientConfig().hashCode(); } if (getRulesCount() > 0) { hash = (37 * hash) + RULES_FIELD_NUMBER; hash = (53 * hash) + getRulesList().hashCode(); } if (hasFailurePolicy()) { hash = (37 * hash) + FAILUREPOLICY_FIELD_NUMBER; hash = (53 * hash) + getFailurePolicy().hashCode(); } if (hasMatchPolicy()) { hash = (37 * hash) + MATCHPOLICY_FIELD_NUMBER; hash = (53 * hash) + getMatchPolicy().hashCode(); } if (hasNamespaceSelector()) { hash = (37 * hash) + NAMESPACESELECTOR_FIELD_NUMBER; hash = (53 * hash) + getNamespaceSelector().hashCode(); } if (hasObjectSelector()) { hash = (37 * hash) + OBJECTSELECTOR_FIELD_NUMBER; hash = (53 * hash) + getObjectSelector().hashCode(); } if (hasSideEffects()) { hash = (37 * hash) + SIDEEFFECTS_FIELD_NUMBER; hash = (53 * hash) + getSideEffects().hashCode(); } if (hasTimeoutSeconds()) { hash = (37 * hash) + TIMEOUTSECONDS_FIELD_NUMBER; hash = (53 * hash) + getTimeoutSeconds(); } if (getAdmissionReviewVersionsCount() > 0) { hash = (37 * hash) + ADMISSIONREVIEWVERSIONS_FIELD_NUMBER; hash = (53 * hash) + getAdmissionReviewVersionsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * ValidatingWebhook describes an admission webhook and the resources and operations it applies to.
     * 
* * Protobuf type {@code k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook) io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_ValidatingWebhook_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_ValidatingWebhook_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook.class, io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook.Builder .class); } // Construct using // io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getClientConfigFieldBuilder(); getRulesFieldBuilder(); getNamespaceSelectorFieldBuilder(); getObjectSelectorFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (clientConfigBuilder_ == null) { clientConfig_ = null; } else { clientConfigBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (rulesBuilder_ == null) { rules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { rulesBuilder_.clear(); } failurePolicy_ = ""; bitField0_ = (bitField0_ & ~0x00000008); matchPolicy_ = ""; bitField0_ = (bitField0_ & ~0x00000010); if (namespaceSelectorBuilder_ == null) { namespaceSelector_ = null; } else { namespaceSelectorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); if (objectSelectorBuilder_ == null) { objectSelector_ = null; } else { objectSelectorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); sideEffects_ = ""; bitField0_ = (bitField0_ & ~0x00000080); timeoutSeconds_ = 0; bitField0_ = (bitField0_ & ~0x00000100); admissionReviewVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000200); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_ValidatingWebhook_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook .getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook build() { io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook buildPartial() { io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook result = new io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (clientConfigBuilder_ == null) { result.clientConfig_ = clientConfig_; } else { result.clientConfig_ = clientConfigBuilder_.build(); } if (rulesBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { rules_ = java.util.Collections.unmodifiableList(rules_); bitField0_ = (bitField0_ & ~0x00000004); } result.rules_ = rules_; } else { result.rules_ = rulesBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } result.failurePolicy_ = failurePolicy_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000008; } result.matchPolicy_ = matchPolicy_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000010; } if (namespaceSelectorBuilder_ == null) { result.namespaceSelector_ = namespaceSelector_; } else { result.namespaceSelector_ = namespaceSelectorBuilder_.build(); } if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000020; } if (objectSelectorBuilder_ == null) { result.objectSelector_ = objectSelector_; } else { result.objectSelector_ = objectSelectorBuilder_.build(); } if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000040; } result.sideEffects_ = sideEffects_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000080; } result.timeoutSeconds_ = timeoutSeconds_; if (((bitField0_ & 0x00000200) == 0x00000200)) { admissionReviewVersions_ = admissionReviewVersions_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000200); } result.admissionReviewVersions_ = admissionReviewVersions_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook other) { if (other == io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook .getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasClientConfig()) { mergeClientConfig(other.getClientConfig()); } if (rulesBuilder_ == null) { if (!other.rules_.isEmpty()) { if (rules_.isEmpty()) { rules_ = other.rules_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureRulesIsMutable(); rules_.addAll(other.rules_); } onChanged(); } } else { if (!other.rules_.isEmpty()) { if (rulesBuilder_.isEmpty()) { rulesBuilder_.dispose(); rulesBuilder_ = null; rules_ = other.rules_; bitField0_ = (bitField0_ & ~0x00000004); rulesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRulesFieldBuilder() : null; } else { rulesBuilder_.addAllMessages(other.rules_); } } } if (other.hasFailurePolicy()) { bitField0_ |= 0x00000008; failurePolicy_ = other.failurePolicy_; onChanged(); } if (other.hasMatchPolicy()) { bitField0_ |= 0x00000010; matchPolicy_ = other.matchPolicy_; onChanged(); } if (other.hasNamespaceSelector()) { mergeNamespaceSelector(other.getNamespaceSelector()); } if (other.hasObjectSelector()) { mergeObjectSelector(other.getObjectSelector()); } if (other.hasSideEffects()) { bitField0_ |= 0x00000080; sideEffects_ = other.sideEffects_; onChanged(); } if (other.hasTimeoutSeconds()) { setTimeoutSeconds(other.getTimeoutSeconds()); } if (!other.admissionReviewVersions_.isEmpty()) { if (admissionReviewVersions_.isEmpty()) { admissionReviewVersions_ = other.admissionReviewVersions_; bitField0_ = (bitField0_ & ~0x00000200); } else { ensureAdmissionReviewVersionsIsMutable(); admissionReviewVersions_.addAll(other.admissionReviewVersions_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * * *
       * The name of the admission webhook.
       * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
       * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
       * of the organization.
       * Required.
       * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * The name of the admission webhook.
       * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
       * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
       * of the organization.
       * Required.
       * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * The name of the admission webhook.
       * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
       * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
       * of the organization.
       * Required.
       * 
* * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The name of the admission webhook.
       * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
       * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
       * of the organization.
       * Required.
       * 
* * optional string name = 1; */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * * *
       * The name of the admission webhook.
       * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
       * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
       * of the organization.
       * Required.
       * 
* * optional string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * * *
       * The name of the admission webhook.
       * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
       * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
       * of the organization.
       * Required.
       * 
* * optional string name = 1; */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } private io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig clientConfig_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig, io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig.Builder, io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfigOrBuilder> clientConfigBuilder_; /** * * *
       * ClientConfig defines how to communicate with the hook.
       * Required
       * 
* * * optional .k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig clientConfig = 2; * */ public boolean hasClientConfig() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * ClientConfig defines how to communicate with the hook.
       * Required
       * 
* * * optional .k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig clientConfig = 2; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig getClientConfig() { if (clientConfigBuilder_ == null) { return clientConfig_ == null ? io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig .getDefaultInstance() : clientConfig_; } else { return clientConfigBuilder_.getMessage(); } } /** * * *
       * ClientConfig defines how to communicate with the hook.
       * Required
       * 
* * * optional .k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig clientConfig = 2; * */ public Builder setClientConfig( io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig value) { if (clientConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } clientConfig_ = value; onChanged(); } else { clientConfigBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * ClientConfig defines how to communicate with the hook.
       * Required
       * 
* * * optional .k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig clientConfig = 2; * */ public Builder setClientConfig( io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig.Builder builderForValue) { if (clientConfigBuilder_ == null) { clientConfig_ = builderForValue.build(); onChanged(); } else { clientConfigBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * ClientConfig defines how to communicate with the hook.
       * Required
       * 
* * * optional .k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig clientConfig = 2; * */ public Builder mergeClientConfig( io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig value) { if (clientConfigBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && clientConfig_ != null && clientConfig_ != io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig .getDefaultInstance()) { clientConfig_ = io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig .newBuilder(clientConfig_) .mergeFrom(value) .buildPartial(); } else { clientConfig_ = value; } onChanged(); } else { clientConfigBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * ClientConfig defines how to communicate with the hook.
       * Required
       * 
* * * optional .k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig clientConfig = 2; * */ public Builder clearClientConfig() { if (clientConfigBuilder_ == null) { clientConfig_ = null; onChanged(); } else { clientConfigBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * ClientConfig defines how to communicate with the hook.
       * Required
       * 
* * * optional .k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig clientConfig = 2; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig.Builder getClientConfigBuilder() { bitField0_ |= 0x00000002; onChanged(); return getClientConfigFieldBuilder().getBuilder(); } /** * * *
       * ClientConfig defines how to communicate with the hook.
       * Required
       * 
* * * optional .k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig clientConfig = 2; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfigOrBuilder getClientConfigOrBuilder() { if (clientConfigBuilder_ != null) { return clientConfigBuilder_.getMessageOrBuilder(); } else { return clientConfig_ == null ? io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig .getDefaultInstance() : clientConfig_; } } /** * * *
       * ClientConfig defines how to communicate with the hook.
       * Required
       * 
* * * optional .k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig clientConfig = 2; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig, io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig.Builder, io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfigOrBuilder> getClientConfigFieldBuilder() { if (clientConfigBuilder_ == null) { clientConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig, io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig .Builder, io.kubernetes.client.proto.V1beta1Admissionregistration .WebhookClientConfigOrBuilder>( getClientConfig(), getParentForChildren(), isClean()); clientConfig_ = null; } return clientConfigBuilder_; } private java.util.List< io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations> rules_ = java.util.Collections.emptyList(); private void ensureRulesIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { rules_ = new java.util.ArrayList< io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations>( rules_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations, io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations.Builder, io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperationsOrBuilder> rulesBuilder_; /** * * *
       * Rules describes what operations on what resources/subresources the webhook cares about.
       * The webhook cares about an operation if it matches _any_ Rule.
       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
       * from putting the cluster in a state which cannot be recovered from without completely
       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; * */ public java.util.List< io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations> getRulesList() { if (rulesBuilder_ == null) { return java.util.Collections.unmodifiableList(rules_); } else { return rulesBuilder_.getMessageList(); } } /** * * *
       * Rules describes what operations on what resources/subresources the webhook cares about.
       * The webhook cares about an operation if it matches _any_ Rule.
       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
       * from putting the cluster in a state which cannot be recovered from without completely
       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; * */ public int getRulesCount() { if (rulesBuilder_ == null) { return rules_.size(); } else { return rulesBuilder_.getCount(); } } /** * * *
       * Rules describes what operations on what resources/subresources the webhook cares about.
       * The webhook cares about an operation if it matches _any_ Rule.
       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
       * from putting the cluster in a state which cannot be recovered from without completely
       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations getRules( int index) { if (rulesBuilder_ == null) { return rules_.get(index); } else { return rulesBuilder_.getMessage(index); } } /** * * *
       * Rules describes what operations on what resources/subresources the webhook cares about.
       * The webhook cares about an operation if it matches _any_ Rule.
       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
       * from putting the cluster in a state which cannot be recovered from without completely
       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; * */ public Builder setRules( int index, io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRulesIsMutable(); rules_.set(index, value); onChanged(); } else { rulesBuilder_.setMessage(index, value); } return this; } /** * * *
       * Rules describes what operations on what resources/subresources the webhook cares about.
       * The webhook cares about an operation if it matches _any_ Rule.
       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
       * from putting the cluster in a state which cannot be recovered from without completely
       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; * */ public Builder setRules( int index, io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.set(index, builderForValue.build()); onChanged(); } else { rulesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Rules describes what operations on what resources/subresources the webhook cares about.
       * The webhook cares about an operation if it matches _any_ Rule.
       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
       * from putting the cluster in a state which cannot be recovered from without completely
       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; * */ public Builder addRules( io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRulesIsMutable(); rules_.add(value); onChanged(); } else { rulesBuilder_.addMessage(value); } return this; } /** * * *
       * Rules describes what operations on what resources/subresources the webhook cares about.
       * The webhook cares about an operation if it matches _any_ Rule.
       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
       * from putting the cluster in a state which cannot be recovered from without completely
       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; * */ public Builder addRules( int index, io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRulesIsMutable(); rules_.add(index, value); onChanged(); } else { rulesBuilder_.addMessage(index, value); } return this; } /** * * *
       * Rules describes what operations on what resources/subresources the webhook cares about.
       * The webhook cares about an operation if it matches _any_ Rule.
       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
       * from putting the cluster in a state which cannot be recovered from without completely
       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; * */ public Builder addRules( io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.add(builderForValue.build()); onChanged(); } else { rulesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Rules describes what operations on what resources/subresources the webhook cares about.
       * The webhook cares about an operation if it matches _any_ Rule.
       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
       * from putting the cluster in a state which cannot be recovered from without completely
       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; * */ public Builder addRules( int index, io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.add(index, builderForValue.build()); onChanged(); } else { rulesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Rules describes what operations on what resources/subresources the webhook cares about.
       * The webhook cares about an operation if it matches _any_ Rule.
       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
       * from putting the cluster in a state which cannot be recovered from without completely
       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; * */ public Builder addAllRules( java.lang.Iterable< ? extends io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations> values) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rules_); onChanged(); } else { rulesBuilder_.addAllMessages(values); } return this; } /** * * *
       * Rules describes what operations on what resources/subresources the webhook cares about.
       * The webhook cares about an operation if it matches _any_ Rule.
       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
       * from putting the cluster in a state which cannot be recovered from without completely
       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; * */ public Builder clearRules() { if (rulesBuilder_ == null) { rules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { rulesBuilder_.clear(); } return this; } /** * * *
       * Rules describes what operations on what resources/subresources the webhook cares about.
       * The webhook cares about an operation if it matches _any_ Rule.
       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
       * from putting the cluster in a state which cannot be recovered from without completely
       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; * */ public Builder removeRules(int index) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.remove(index); onChanged(); } else { rulesBuilder_.remove(index); } return this; } /** * * *
       * Rules describes what operations on what resources/subresources the webhook cares about.
       * The webhook cares about an operation if it matches _any_ Rule.
       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
       * from putting the cluster in a state which cannot be recovered from without completely
       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations.Builder getRulesBuilder(int index) { return getRulesFieldBuilder().getBuilder(index); } /** * * *
       * Rules describes what operations on what resources/subresources the webhook cares about.
       * The webhook cares about an operation if it matches _any_ Rule.
       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
       * from putting the cluster in a state which cannot be recovered from without completely
       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperationsOrBuilder getRulesOrBuilder(int index) { if (rulesBuilder_ == null) { return rules_.get(index); } else { return rulesBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Rules describes what operations on what resources/subresources the webhook cares about.
       * The webhook cares about an operation if it matches _any_ Rule.
       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
       * from putting the cluster in a state which cannot be recovered from without completely
       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; * */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Admissionregistration .RuleWithOperationsOrBuilder> getRulesOrBuilderList() { if (rulesBuilder_ != null) { return rulesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(rules_); } } /** * * *
       * Rules describes what operations on what resources/subresources the webhook cares about.
       * The webhook cares about an operation if it matches _any_ Rule.
       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
       * from putting the cluster in a state which cannot be recovered from without completely
       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations.Builder addRulesBuilder() { return getRulesFieldBuilder() .addBuilder( io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations .getDefaultInstance()); } /** * * *
       * Rules describes what operations on what resources/subresources the webhook cares about.
       * The webhook cares about an operation if it matches _any_ Rule.
       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
       * from putting the cluster in a state which cannot be recovered from without completely
       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations.Builder addRulesBuilder(int index) { return getRulesFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations .getDefaultInstance()); } /** * * *
       * Rules describes what operations on what resources/subresources the webhook cares about.
       * The webhook cares about an operation if it matches _any_ Rule.
       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
       * from putting the cluster in a state which cannot be recovered from without completely
       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.RuleWithOperations rules = 3; * */ public java.util.List< io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations.Builder> getRulesBuilderList() { return getRulesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations, io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations.Builder, io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperationsOrBuilder> getRulesFieldBuilder() { if (rulesBuilder_ == null) { rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations, io.kubernetes.client.proto.V1beta1Admissionregistration.RuleWithOperations .Builder, io.kubernetes.client.proto.V1beta1Admissionregistration .RuleWithOperationsOrBuilder>( rules_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); rules_ = null; } return rulesBuilder_; } private java.lang.Object failurePolicy_ = ""; /** * * *
       * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
       * allowed values are Ignore or Fail. Defaults to Ignore.
       * +optional
       * 
* * optional string failurePolicy = 4; */ public boolean hasFailurePolicy() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
       * allowed values are Ignore or Fail. Defaults to Ignore.
       * +optional
       * 
* * optional string failurePolicy = 4; */ public java.lang.String getFailurePolicy() { java.lang.Object ref = failurePolicy_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { failurePolicy_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
       * allowed values are Ignore or Fail. Defaults to Ignore.
       * +optional
       * 
* * optional string failurePolicy = 4; */ public com.google.protobuf.ByteString getFailurePolicyBytes() { java.lang.Object ref = failurePolicy_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); failurePolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
       * allowed values are Ignore or Fail. Defaults to Ignore.
       * +optional
       * 
* * optional string failurePolicy = 4; */ public Builder setFailurePolicy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; failurePolicy_ = value; onChanged(); return this; } /** * * *
       * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
       * allowed values are Ignore or Fail. Defaults to Ignore.
       * +optional
       * 
* * optional string failurePolicy = 4; */ public Builder clearFailurePolicy() { bitField0_ = (bitField0_ & ~0x00000008); failurePolicy_ = getDefaultInstance().getFailurePolicy(); onChanged(); return this; } /** * * *
       * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
       * allowed values are Ignore or Fail. Defaults to Ignore.
       * +optional
       * 
* * optional string failurePolicy = 4; */ public Builder setFailurePolicyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; failurePolicy_ = value; onChanged(); return this; } private java.lang.Object matchPolicy_ = ""; /** * * *
       * matchPolicy defines how the "rules" list is used to match incoming requests.
       * Allowed values are "Exact" or "Equivalent".
       * - Exact: match a request only if it exactly matches a specified rule.
       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
       * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
       * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
       * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
       * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
       * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
       * Defaults to "Exact"
       * +optional
       * 
* * optional string matchPolicy = 9; */ public boolean hasMatchPolicy() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * matchPolicy defines how the "rules" list is used to match incoming requests.
       * Allowed values are "Exact" or "Equivalent".
       * - Exact: match a request only if it exactly matches a specified rule.
       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
       * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
       * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
       * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
       * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
       * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
       * Defaults to "Exact"
       * +optional
       * 
* * optional string matchPolicy = 9; */ public java.lang.String getMatchPolicy() { java.lang.Object ref = matchPolicy_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { matchPolicy_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * matchPolicy defines how the "rules" list is used to match incoming requests.
       * Allowed values are "Exact" or "Equivalent".
       * - Exact: match a request only if it exactly matches a specified rule.
       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
       * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
       * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
       * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
       * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
       * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
       * Defaults to "Exact"
       * +optional
       * 
* * optional string matchPolicy = 9; */ public com.google.protobuf.ByteString getMatchPolicyBytes() { java.lang.Object ref = matchPolicy_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); matchPolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * matchPolicy defines how the "rules" list is used to match incoming requests.
       * Allowed values are "Exact" or "Equivalent".
       * - Exact: match a request only if it exactly matches a specified rule.
       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
       * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
       * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
       * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
       * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
       * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
       * Defaults to "Exact"
       * +optional
       * 
* * optional string matchPolicy = 9; */ public Builder setMatchPolicy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; matchPolicy_ = value; onChanged(); return this; } /** * * *
       * matchPolicy defines how the "rules" list is used to match incoming requests.
       * Allowed values are "Exact" or "Equivalent".
       * - Exact: match a request only if it exactly matches a specified rule.
       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
       * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
       * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
       * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
       * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
       * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
       * Defaults to "Exact"
       * +optional
       * 
* * optional string matchPolicy = 9; */ public Builder clearMatchPolicy() { bitField0_ = (bitField0_ & ~0x00000010); matchPolicy_ = getDefaultInstance().getMatchPolicy(); onChanged(); return this; } /** * * *
       * matchPolicy defines how the "rules" list is used to match incoming requests.
       * Allowed values are "Exact" or "Equivalent".
       * - Exact: match a request only if it exactly matches a specified rule.
       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
       * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
       * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
       * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
       * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
       * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
       * Defaults to "Exact"
       * +optional
       * 
* * optional string matchPolicy = 9; */ public Builder setMatchPolicyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; matchPolicy_ = value; onChanged(); return this; } private io.kubernetes.client.proto.Meta.LabelSelector namespaceSelector_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder> namespaceSelectorBuilder_; /** * * *
       * NamespaceSelector decides whether to run the webhook on an object based
       * on whether the namespace for that object matches the selector. If the
       * object itself is a namespace, the matching is performed on
       * object.metadata.labels. If the object is another cluster scoped resource,
       * it never skips the webhook.
       * For example, to run the webhook on any objects whose namespace is not
       * associated with "runlevel" of "0" or "1";  you will set the selector as
       * follows:
       * "namespaceSelector": {
       *   "matchExpressions": [
       *     {
       *       "key": "runlevel",
       *       "operator": "NotIn",
       *       "values": [
       *         "0",
       *         "1"
       *       ]
       *     }
       *   ]
       * }
       * If instead you want to only run the webhook on any objects whose
       * namespace is associated with the "environment" of "prod" or "staging";
       * you will set the selector as follows:
       * "namespaceSelector": {
       *   "matchExpressions": [
       *     {
       *       "key": "environment",
       *       "operator": "In",
       *       "values": [
       *         "prod",
       *         "staging"
       *       ]
       *     }
       *   ]
       * }
       * See
       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels
       * for more examples of label selectors.
       * Default to the empty LabelSelector, which matches everything.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; * */ public boolean hasNamespaceSelector() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * NamespaceSelector decides whether to run the webhook on an object based
       * on whether the namespace for that object matches the selector. If the
       * object itself is a namespace, the matching is performed on
       * object.metadata.labels. If the object is another cluster scoped resource,
       * it never skips the webhook.
       * For example, to run the webhook on any objects whose namespace is not
       * associated with "runlevel" of "0" or "1";  you will set the selector as
       * follows:
       * "namespaceSelector": {
       *   "matchExpressions": [
       *     {
       *       "key": "runlevel",
       *       "operator": "NotIn",
       *       "values": [
       *         "0",
       *         "1"
       *       ]
       *     }
       *   ]
       * }
       * If instead you want to only run the webhook on any objects whose
       * namespace is associated with the "environment" of "prod" or "staging";
       * you will set the selector as follows:
       * "namespaceSelector": {
       *   "matchExpressions": [
       *     {
       *       "key": "environment",
       *       "operator": "In",
       *       "values": [
       *         "prod",
       *         "staging"
       *       ]
       *     }
       *   ]
       * }
       * See
       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels
       * for more examples of label selectors.
       * Default to the empty LabelSelector, which matches everything.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; * */ public io.kubernetes.client.proto.Meta.LabelSelector getNamespaceSelector() { if (namespaceSelectorBuilder_ == null) { return namespaceSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : namespaceSelector_; } else { return namespaceSelectorBuilder_.getMessage(); } } /** * * *
       * NamespaceSelector decides whether to run the webhook on an object based
       * on whether the namespace for that object matches the selector. If the
       * object itself is a namespace, the matching is performed on
       * object.metadata.labels. If the object is another cluster scoped resource,
       * it never skips the webhook.
       * For example, to run the webhook on any objects whose namespace is not
       * associated with "runlevel" of "0" or "1";  you will set the selector as
       * follows:
       * "namespaceSelector": {
       *   "matchExpressions": [
       *     {
       *       "key": "runlevel",
       *       "operator": "NotIn",
       *       "values": [
       *         "0",
       *         "1"
       *       ]
       *     }
       *   ]
       * }
       * If instead you want to only run the webhook on any objects whose
       * namespace is associated with the "environment" of "prod" or "staging";
       * you will set the selector as follows:
       * "namespaceSelector": {
       *   "matchExpressions": [
       *     {
       *       "key": "environment",
       *       "operator": "In",
       *       "values": [
       *         "prod",
       *         "staging"
       *       ]
       *     }
       *   ]
       * }
       * See
       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels
       * for more examples of label selectors.
       * Default to the empty LabelSelector, which matches everything.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; * */ public Builder setNamespaceSelector(io.kubernetes.client.proto.Meta.LabelSelector value) { if (namespaceSelectorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } namespaceSelector_ = value; onChanged(); } else { namespaceSelectorBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** * * *
       * NamespaceSelector decides whether to run the webhook on an object based
       * on whether the namespace for that object matches the selector. If the
       * object itself is a namespace, the matching is performed on
       * object.metadata.labels. If the object is another cluster scoped resource,
       * it never skips the webhook.
       * For example, to run the webhook on any objects whose namespace is not
       * associated with "runlevel" of "0" or "1";  you will set the selector as
       * follows:
       * "namespaceSelector": {
       *   "matchExpressions": [
       *     {
       *       "key": "runlevel",
       *       "operator": "NotIn",
       *       "values": [
       *         "0",
       *         "1"
       *       ]
       *     }
       *   ]
       * }
       * If instead you want to only run the webhook on any objects whose
       * namespace is associated with the "environment" of "prod" or "staging";
       * you will set the selector as follows:
       * "namespaceSelector": {
       *   "matchExpressions": [
       *     {
       *       "key": "environment",
       *       "operator": "In",
       *       "values": [
       *         "prod",
       *         "staging"
       *       ]
       *     }
       *   ]
       * }
       * See
       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels
       * for more examples of label selectors.
       * Default to the empty LabelSelector, which matches everything.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; * */ public Builder setNamespaceSelector( io.kubernetes.client.proto.Meta.LabelSelector.Builder builderForValue) { if (namespaceSelectorBuilder_ == null) { namespaceSelector_ = builderForValue.build(); onChanged(); } else { namespaceSelectorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** * * *
       * NamespaceSelector decides whether to run the webhook on an object based
       * on whether the namespace for that object matches the selector. If the
       * object itself is a namespace, the matching is performed on
       * object.metadata.labels. If the object is another cluster scoped resource,
       * it never skips the webhook.
       * For example, to run the webhook on any objects whose namespace is not
       * associated with "runlevel" of "0" or "1";  you will set the selector as
       * follows:
       * "namespaceSelector": {
       *   "matchExpressions": [
       *     {
       *       "key": "runlevel",
       *       "operator": "NotIn",
       *       "values": [
       *         "0",
       *         "1"
       *       ]
       *     }
       *   ]
       * }
       * If instead you want to only run the webhook on any objects whose
       * namespace is associated with the "environment" of "prod" or "staging";
       * you will set the selector as follows:
       * "namespaceSelector": {
       *   "matchExpressions": [
       *     {
       *       "key": "environment",
       *       "operator": "In",
       *       "values": [
       *         "prod",
       *         "staging"
       *       ]
       *     }
       *   ]
       * }
       * See
       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels
       * for more examples of label selectors.
       * Default to the empty LabelSelector, which matches everything.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; * */ public Builder mergeNamespaceSelector(io.kubernetes.client.proto.Meta.LabelSelector value) { if (namespaceSelectorBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && namespaceSelector_ != null && namespaceSelector_ != io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance()) { namespaceSelector_ = io.kubernetes.client.proto.Meta.LabelSelector.newBuilder(namespaceSelector_) .mergeFrom(value) .buildPartial(); } else { namespaceSelector_ = value; } onChanged(); } else { namespaceSelectorBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** * * *
       * NamespaceSelector decides whether to run the webhook on an object based
       * on whether the namespace for that object matches the selector. If the
       * object itself is a namespace, the matching is performed on
       * object.metadata.labels. If the object is another cluster scoped resource,
       * it never skips the webhook.
       * For example, to run the webhook on any objects whose namespace is not
       * associated with "runlevel" of "0" or "1";  you will set the selector as
       * follows:
       * "namespaceSelector": {
       *   "matchExpressions": [
       *     {
       *       "key": "runlevel",
       *       "operator": "NotIn",
       *       "values": [
       *         "0",
       *         "1"
       *       ]
       *     }
       *   ]
       * }
       * If instead you want to only run the webhook on any objects whose
       * namespace is associated with the "environment" of "prod" or "staging";
       * you will set the selector as follows:
       * "namespaceSelector": {
       *   "matchExpressions": [
       *     {
       *       "key": "environment",
       *       "operator": "In",
       *       "values": [
       *         "prod",
       *         "staging"
       *       ]
       *     }
       *   ]
       * }
       * See
       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels
       * for more examples of label selectors.
       * Default to the empty LabelSelector, which matches everything.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; * */ public Builder clearNamespaceSelector() { if (namespaceSelectorBuilder_ == null) { namespaceSelector_ = null; onChanged(); } else { namespaceSelectorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** * * *
       * NamespaceSelector decides whether to run the webhook on an object based
       * on whether the namespace for that object matches the selector. If the
       * object itself is a namespace, the matching is performed on
       * object.metadata.labels. If the object is another cluster scoped resource,
       * it never skips the webhook.
       * For example, to run the webhook on any objects whose namespace is not
       * associated with "runlevel" of "0" or "1";  you will set the selector as
       * follows:
       * "namespaceSelector": {
       *   "matchExpressions": [
       *     {
       *       "key": "runlevel",
       *       "operator": "NotIn",
       *       "values": [
       *         "0",
       *         "1"
       *       ]
       *     }
       *   ]
       * }
       * If instead you want to only run the webhook on any objects whose
       * namespace is associated with the "environment" of "prod" or "staging";
       * you will set the selector as follows:
       * "namespaceSelector": {
       *   "matchExpressions": [
       *     {
       *       "key": "environment",
       *       "operator": "In",
       *       "values": [
       *         "prod",
       *         "staging"
       *       ]
       *     }
       *   ]
       * }
       * See
       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels
       * for more examples of label selectors.
       * Default to the empty LabelSelector, which matches everything.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; * */ public io.kubernetes.client.proto.Meta.LabelSelector.Builder getNamespaceSelectorBuilder() { bitField0_ |= 0x00000020; onChanged(); return getNamespaceSelectorFieldBuilder().getBuilder(); } /** * * *
       * NamespaceSelector decides whether to run the webhook on an object based
       * on whether the namespace for that object matches the selector. If the
       * object itself is a namespace, the matching is performed on
       * object.metadata.labels. If the object is another cluster scoped resource,
       * it never skips the webhook.
       * For example, to run the webhook on any objects whose namespace is not
       * associated with "runlevel" of "0" or "1";  you will set the selector as
       * follows:
       * "namespaceSelector": {
       *   "matchExpressions": [
       *     {
       *       "key": "runlevel",
       *       "operator": "NotIn",
       *       "values": [
       *         "0",
       *         "1"
       *       ]
       *     }
       *   ]
       * }
       * If instead you want to only run the webhook on any objects whose
       * namespace is associated with the "environment" of "prod" or "staging";
       * you will set the selector as follows:
       * "namespaceSelector": {
       *   "matchExpressions": [
       *     {
       *       "key": "environment",
       *       "operator": "In",
       *       "values": [
       *         "prod",
       *         "staging"
       *       ]
       *     }
       *   ]
       * }
       * See
       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels
       * for more examples of label selectors.
       * Default to the empty LabelSelector, which matches everything.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; * */ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getNamespaceSelectorOrBuilder() { if (namespaceSelectorBuilder_ != null) { return namespaceSelectorBuilder_.getMessageOrBuilder(); } else { return namespaceSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : namespaceSelector_; } } /** * * *
       * NamespaceSelector decides whether to run the webhook on an object based
       * on whether the namespace for that object matches the selector. If the
       * object itself is a namespace, the matching is performed on
       * object.metadata.labels. If the object is another cluster scoped resource,
       * it never skips the webhook.
       * For example, to run the webhook on any objects whose namespace is not
       * associated with "runlevel" of "0" or "1";  you will set the selector as
       * follows:
       * "namespaceSelector": {
       *   "matchExpressions": [
       *     {
       *       "key": "runlevel",
       *       "operator": "NotIn",
       *       "values": [
       *         "0",
       *         "1"
       *       ]
       *     }
       *   ]
       * }
       * If instead you want to only run the webhook on any objects whose
       * namespace is associated with the "environment" of "prod" or "staging";
       * you will set the selector as follows:
       * "namespaceSelector": {
       *   "matchExpressions": [
       *     {
       *       "key": "environment",
       *       "operator": "In",
       *       "values": [
       *         "prod",
       *         "staging"
       *       ]
       *     }
       *   ]
       * }
       * See
       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels
       * for more examples of label selectors.
       * Default to the empty LabelSelector, which matches everything.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder> getNamespaceSelectorFieldBuilder() { if (namespaceSelectorBuilder_ == null) { namespaceSelectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder>( getNamespaceSelector(), getParentForChildren(), isClean()); namespaceSelector_ = null; } return namespaceSelectorBuilder_; } private io.kubernetes.client.proto.Meta.LabelSelector objectSelector_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder> objectSelectorBuilder_; /** * * *
       * ObjectSelector decides whether to run the webhook based on if the
       * object has matching labels. objectSelector is evaluated against both
       * the oldObject and newObject that would be sent to the webhook, and
       * is considered to match if either object matches the selector. A null
       * object (oldObject in the case of create, or newObject in the case of
       * delete) or an object that cannot have labels (like a
       * DeploymentRollback or a PodProxyOptions object) is not considered to
       * match.
       * Use the object selector only if the webhook is opt-in, because end
       * users may skip the admission webhook by setting the labels.
       * Default to the empty LabelSelector, which matches everything.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 10; * */ public boolean hasObjectSelector() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
       * ObjectSelector decides whether to run the webhook based on if the
       * object has matching labels. objectSelector is evaluated against both
       * the oldObject and newObject that would be sent to the webhook, and
       * is considered to match if either object matches the selector. A null
       * object (oldObject in the case of create, or newObject in the case of
       * delete) or an object that cannot have labels (like a
       * DeploymentRollback or a PodProxyOptions object) is not considered to
       * match.
       * Use the object selector only if the webhook is opt-in, because end
       * users may skip the admission webhook by setting the labels.
       * Default to the empty LabelSelector, which matches everything.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 10; * */ public io.kubernetes.client.proto.Meta.LabelSelector getObjectSelector() { if (objectSelectorBuilder_ == null) { return objectSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : objectSelector_; } else { return objectSelectorBuilder_.getMessage(); } } /** * * *
       * ObjectSelector decides whether to run the webhook based on if the
       * object has matching labels. objectSelector is evaluated against both
       * the oldObject and newObject that would be sent to the webhook, and
       * is considered to match if either object matches the selector. A null
       * object (oldObject in the case of create, or newObject in the case of
       * delete) or an object that cannot have labels (like a
       * DeploymentRollback or a PodProxyOptions object) is not considered to
       * match.
       * Use the object selector only if the webhook is opt-in, because end
       * users may skip the admission webhook by setting the labels.
       * Default to the empty LabelSelector, which matches everything.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 10; * */ public Builder setObjectSelector(io.kubernetes.client.proto.Meta.LabelSelector value) { if (objectSelectorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } objectSelector_ = value; onChanged(); } else { objectSelectorBuilder_.setMessage(value); } bitField0_ |= 0x00000040; return this; } /** * * *
       * ObjectSelector decides whether to run the webhook based on if the
       * object has matching labels. objectSelector is evaluated against both
       * the oldObject and newObject that would be sent to the webhook, and
       * is considered to match if either object matches the selector. A null
       * object (oldObject in the case of create, or newObject in the case of
       * delete) or an object that cannot have labels (like a
       * DeploymentRollback or a PodProxyOptions object) is not considered to
       * match.
       * Use the object selector only if the webhook is opt-in, because end
       * users may skip the admission webhook by setting the labels.
       * Default to the empty LabelSelector, which matches everything.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 10; * */ public Builder setObjectSelector( io.kubernetes.client.proto.Meta.LabelSelector.Builder builderForValue) { if (objectSelectorBuilder_ == null) { objectSelector_ = builderForValue.build(); onChanged(); } else { objectSelectorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; return this; } /** * * *
       * ObjectSelector decides whether to run the webhook based on if the
       * object has matching labels. objectSelector is evaluated against both
       * the oldObject and newObject that would be sent to the webhook, and
       * is considered to match if either object matches the selector. A null
       * object (oldObject in the case of create, or newObject in the case of
       * delete) or an object that cannot have labels (like a
       * DeploymentRollback or a PodProxyOptions object) is not considered to
       * match.
       * Use the object selector only if the webhook is opt-in, because end
       * users may skip the admission webhook by setting the labels.
       * Default to the empty LabelSelector, which matches everything.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 10; * */ public Builder mergeObjectSelector(io.kubernetes.client.proto.Meta.LabelSelector value) { if (objectSelectorBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040) && objectSelector_ != null && objectSelector_ != io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance()) { objectSelector_ = io.kubernetes.client.proto.Meta.LabelSelector.newBuilder(objectSelector_) .mergeFrom(value) .buildPartial(); } else { objectSelector_ = value; } onChanged(); } else { objectSelectorBuilder_.mergeFrom(value); } bitField0_ |= 0x00000040; return this; } /** * * *
       * ObjectSelector decides whether to run the webhook based on if the
       * object has matching labels. objectSelector is evaluated against both
       * the oldObject and newObject that would be sent to the webhook, and
       * is considered to match if either object matches the selector. A null
       * object (oldObject in the case of create, or newObject in the case of
       * delete) or an object that cannot have labels (like a
       * DeploymentRollback or a PodProxyOptions object) is not considered to
       * match.
       * Use the object selector only if the webhook is opt-in, because end
       * users may skip the admission webhook by setting the labels.
       * Default to the empty LabelSelector, which matches everything.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 10; * */ public Builder clearObjectSelector() { if (objectSelectorBuilder_ == null) { objectSelector_ = null; onChanged(); } else { objectSelectorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } /** * * *
       * ObjectSelector decides whether to run the webhook based on if the
       * object has matching labels. objectSelector is evaluated against both
       * the oldObject and newObject that would be sent to the webhook, and
       * is considered to match if either object matches the selector. A null
       * object (oldObject in the case of create, or newObject in the case of
       * delete) or an object that cannot have labels (like a
       * DeploymentRollback or a PodProxyOptions object) is not considered to
       * match.
       * Use the object selector only if the webhook is opt-in, because end
       * users may skip the admission webhook by setting the labels.
       * Default to the empty LabelSelector, which matches everything.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 10; * */ public io.kubernetes.client.proto.Meta.LabelSelector.Builder getObjectSelectorBuilder() { bitField0_ |= 0x00000040; onChanged(); return getObjectSelectorFieldBuilder().getBuilder(); } /** * * *
       * ObjectSelector decides whether to run the webhook based on if the
       * object has matching labels. objectSelector is evaluated against both
       * the oldObject and newObject that would be sent to the webhook, and
       * is considered to match if either object matches the selector. A null
       * object (oldObject in the case of create, or newObject in the case of
       * delete) or an object that cannot have labels (like a
       * DeploymentRollback or a PodProxyOptions object) is not considered to
       * match.
       * Use the object selector only if the webhook is opt-in, because end
       * users may skip the admission webhook by setting the labels.
       * Default to the empty LabelSelector, which matches everything.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 10; * */ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getObjectSelectorOrBuilder() { if (objectSelectorBuilder_ != null) { return objectSelectorBuilder_.getMessageOrBuilder(); } else { return objectSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : objectSelector_; } } /** * * *
       * ObjectSelector decides whether to run the webhook based on if the
       * object has matching labels. objectSelector is evaluated against both
       * the oldObject and newObject that would be sent to the webhook, and
       * is considered to match if either object matches the selector. A null
       * object (oldObject in the case of create, or newObject in the case of
       * delete) or an object that cannot have labels (like a
       * DeploymentRollback or a PodProxyOptions object) is not considered to
       * match.
       * Use the object selector only if the webhook is opt-in, because end
       * users may skip the admission webhook by setting the labels.
       * Default to the empty LabelSelector, which matches everything.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 10; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder> getObjectSelectorFieldBuilder() { if (objectSelectorBuilder_ == null) { objectSelectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder>( getObjectSelector(), getParentForChildren(), isClean()); objectSelector_ = null; } return objectSelectorBuilder_; } private java.lang.Object sideEffects_ = ""; /** * * *
       * SideEffects states whether this webhook has side effects.
       * Acceptable values are: Unknown, None, Some, NoneOnDryRun
       * Webhooks with side effects MUST implement a reconciliation system, since a request may be
       * rejected by a future step in the admission chain and the side effects therefore need to be undone.
       * Requests with the dryRun attribute will be auto-rejected if they match a webhook with
       * sideEffects == Unknown or Some. Defaults to Unknown.
       * +optional
       * 
* * optional string sideEffects = 6; */ public boolean hasSideEffects() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
       * SideEffects states whether this webhook has side effects.
       * Acceptable values are: Unknown, None, Some, NoneOnDryRun
       * Webhooks with side effects MUST implement a reconciliation system, since a request may be
       * rejected by a future step in the admission chain and the side effects therefore need to be undone.
       * Requests with the dryRun attribute will be auto-rejected if they match a webhook with
       * sideEffects == Unknown or Some. Defaults to Unknown.
       * +optional
       * 
* * optional string sideEffects = 6; */ public java.lang.String getSideEffects() { java.lang.Object ref = sideEffects_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { sideEffects_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * SideEffects states whether this webhook has side effects.
       * Acceptable values are: Unknown, None, Some, NoneOnDryRun
       * Webhooks with side effects MUST implement a reconciliation system, since a request may be
       * rejected by a future step in the admission chain and the side effects therefore need to be undone.
       * Requests with the dryRun attribute will be auto-rejected if they match a webhook with
       * sideEffects == Unknown or Some. Defaults to Unknown.
       * +optional
       * 
* * optional string sideEffects = 6; */ public com.google.protobuf.ByteString getSideEffectsBytes() { java.lang.Object ref = sideEffects_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sideEffects_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * SideEffects states whether this webhook has side effects.
       * Acceptable values are: Unknown, None, Some, NoneOnDryRun
       * Webhooks with side effects MUST implement a reconciliation system, since a request may be
       * rejected by a future step in the admission chain and the side effects therefore need to be undone.
       * Requests with the dryRun attribute will be auto-rejected if they match a webhook with
       * sideEffects == Unknown or Some. Defaults to Unknown.
       * +optional
       * 
* * optional string sideEffects = 6; */ public Builder setSideEffects(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; sideEffects_ = value; onChanged(); return this; } /** * * *
       * SideEffects states whether this webhook has side effects.
       * Acceptable values are: Unknown, None, Some, NoneOnDryRun
       * Webhooks with side effects MUST implement a reconciliation system, since a request may be
       * rejected by a future step in the admission chain and the side effects therefore need to be undone.
       * Requests with the dryRun attribute will be auto-rejected if they match a webhook with
       * sideEffects == Unknown or Some. Defaults to Unknown.
       * +optional
       * 
* * optional string sideEffects = 6; */ public Builder clearSideEffects() { bitField0_ = (bitField0_ & ~0x00000080); sideEffects_ = getDefaultInstance().getSideEffects(); onChanged(); return this; } /** * * *
       * SideEffects states whether this webhook has side effects.
       * Acceptable values are: Unknown, None, Some, NoneOnDryRun
       * Webhooks with side effects MUST implement a reconciliation system, since a request may be
       * rejected by a future step in the admission chain and the side effects therefore need to be undone.
       * Requests with the dryRun attribute will be auto-rejected if they match a webhook with
       * sideEffects == Unknown or Some. Defaults to Unknown.
       * +optional
       * 
* * optional string sideEffects = 6; */ public Builder setSideEffectsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; sideEffects_ = value; onChanged(); return this; } private int timeoutSeconds_; /** * * *
       * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes,
       * the webhook call will be ignored or the API call will fail based on the
       * failure policy.
       * The timeout value must be between 1 and 30 seconds.
       * Default to 30 seconds.
       * +optional
       * 
* * optional int32 timeoutSeconds = 7; */ public boolean hasTimeoutSeconds() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * * *
       * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes,
       * the webhook call will be ignored or the API call will fail based on the
       * failure policy.
       * The timeout value must be between 1 and 30 seconds.
       * Default to 30 seconds.
       * +optional
       * 
* * optional int32 timeoutSeconds = 7; */ public int getTimeoutSeconds() { return timeoutSeconds_; } /** * * *
       * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes,
       * the webhook call will be ignored or the API call will fail based on the
       * failure policy.
       * The timeout value must be between 1 and 30 seconds.
       * Default to 30 seconds.
       * +optional
       * 
* * optional int32 timeoutSeconds = 7; */ public Builder setTimeoutSeconds(int value) { bitField0_ |= 0x00000100; timeoutSeconds_ = value; onChanged(); return this; } /** * * *
       * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes,
       * the webhook call will be ignored or the API call will fail based on the
       * failure policy.
       * The timeout value must be between 1 and 30 seconds.
       * Default to 30 seconds.
       * +optional
       * 
* * optional int32 timeoutSeconds = 7; */ public Builder clearTimeoutSeconds() { bitField0_ = (bitField0_ & ~0x00000100); timeoutSeconds_ = 0; onChanged(); return this; } private com.google.protobuf.LazyStringList admissionReviewVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAdmissionReviewVersionsIsMutable() { if (!((bitField0_ & 0x00000200) == 0x00000200)) { admissionReviewVersions_ = new com.google.protobuf.LazyStringArrayList(admissionReviewVersions_); bitField0_ |= 0x00000200; } } /** * * *
       * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
       * versions the Webhook expects. API server will try to use first version in
       * the list which it supports. If none of the versions specified in this list
       * supported by API server, validation will fail for this object.
       * 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
       * and be subject to the failure policy.
       * Default to `['v1beta1']`.
       * +optional
       * 
* * repeated string admissionReviewVersions = 8; */ public com.google.protobuf.ProtocolStringList getAdmissionReviewVersionsList() { return admissionReviewVersions_.getUnmodifiableView(); } /** * * *
       * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
       * versions the Webhook expects. API server will try to use first version in
       * the list which it supports. If none of the versions specified in this list
       * supported by API server, validation will fail for this object.
       * 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
       * and be subject to the failure policy.
       * Default to `['v1beta1']`.
       * +optional
       * 
* * repeated string admissionReviewVersions = 8; */ public int getAdmissionReviewVersionsCount() { return admissionReviewVersions_.size(); } /** * * *
       * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
       * versions the Webhook expects. API server will try to use first version in
       * the list which it supports. If none of the versions specified in this list
       * supported by API server, validation will fail for this object.
       * 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
       * and be subject to the failure policy.
       * Default to `['v1beta1']`.
       * +optional
       * 
* * repeated string admissionReviewVersions = 8; */ public java.lang.String getAdmissionReviewVersions(int index) { return admissionReviewVersions_.get(index); } /** * * *
       * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
       * versions the Webhook expects. API server will try to use first version in
       * the list which it supports. If none of the versions specified in this list
       * supported by API server, validation will fail for this object.
       * 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
       * and be subject to the failure policy.
       * Default to `['v1beta1']`.
       * +optional
       * 
* * repeated string admissionReviewVersions = 8; */ public com.google.protobuf.ByteString getAdmissionReviewVersionsBytes(int index) { return admissionReviewVersions_.getByteString(index); } /** * * *
       * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
       * versions the Webhook expects. API server will try to use first version in
       * the list which it supports. If none of the versions specified in this list
       * supported by API server, validation will fail for this object.
       * 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
       * and be subject to the failure policy.
       * Default to `['v1beta1']`.
       * +optional
       * 
* * repeated string admissionReviewVersions = 8; */ public Builder setAdmissionReviewVersions(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAdmissionReviewVersionsIsMutable(); admissionReviewVersions_.set(index, value); onChanged(); return this; } /** * * *
       * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
       * versions the Webhook expects. API server will try to use first version in
       * the list which it supports. If none of the versions specified in this list
       * supported by API server, validation will fail for this object.
       * 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
       * and be subject to the failure policy.
       * Default to `['v1beta1']`.
       * +optional
       * 
* * repeated string admissionReviewVersions = 8; */ public Builder addAdmissionReviewVersions(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAdmissionReviewVersionsIsMutable(); admissionReviewVersions_.add(value); onChanged(); return this; } /** * * *
       * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
       * versions the Webhook expects. API server will try to use first version in
       * the list which it supports. If none of the versions specified in this list
       * supported by API server, validation will fail for this object.
       * 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
       * and be subject to the failure policy.
       * Default to `['v1beta1']`.
       * +optional
       * 
* * repeated string admissionReviewVersions = 8; */ public Builder addAllAdmissionReviewVersions(java.lang.Iterable values) { ensureAdmissionReviewVersionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, admissionReviewVersions_); onChanged(); return this; } /** * * *
       * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
       * versions the Webhook expects. API server will try to use first version in
       * the list which it supports. If none of the versions specified in this list
       * supported by API server, validation will fail for this object.
       * 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
       * and be subject to the failure policy.
       * Default to `['v1beta1']`.
       * +optional
       * 
* * repeated string admissionReviewVersions = 8; */ public Builder clearAdmissionReviewVersions() { admissionReviewVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } /** * * *
       * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
       * versions the Webhook expects. API server will try to use first version in
       * the list which it supports. If none of the versions specified in this list
       * supported by API server, validation will fail for this object.
       * 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
       * and be subject to the failure policy.
       * Default to `['v1beta1']`.
       * +optional
       * 
* * repeated string admissionReviewVersions = 8; */ public Builder addAdmissionReviewVersionsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureAdmissionReviewVersionsIsMutable(); admissionReviewVersions_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook) } // @@protoc_insertion_point(class_scope:k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook) private static final io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook(); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ValidatingWebhook parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ValidatingWebhook(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ValidatingWebhookConfigurationOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ boolean hasMetadata(); /** * * *
     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); /** * * *
     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder(); /** * * *
     * Webhooks is a list of webhooks and the affected resources and operations.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook Webhooks = 2; * */ java.util.List getWebhooksList(); /** * * *
     * Webhooks is a list of webhooks and the affected resources and operations.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook Webhooks = 2; * */ io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook getWebhooks( int index); /** * * *
     * Webhooks is a list of webhooks and the affected resources and operations.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook Webhooks = 2; * */ int getWebhooksCount(); /** * * *
     * Webhooks is a list of webhooks and the affected resources and operations.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook Webhooks = 2; * */ java.util.List< ? extends io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookOrBuilder> getWebhooksOrBuilderList(); /** * * *
     * Webhooks is a list of webhooks and the affected resources and operations.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook Webhooks = 2; * */ io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookOrBuilder getWebhooksOrBuilder(int index); } /** * * *
   * ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it.
   * Deprecated in v1.16, planned for removal in v1.19. Use admissionregistration.k8s.io/v1 ValidatingWebhookConfiguration instead.
   * 
* * Protobuf type {@code k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration} */ public static final class ValidatingWebhookConfiguration extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration) ValidatingWebhookConfigurationOrBuilder { private static final long serialVersionUID = 0L; // Use ValidatingWebhookConfiguration.newBuilder() to construct. private ValidatingWebhookConfiguration( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ValidatingWebhookConfiguration() { webhooks_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ValidatingWebhookConfiguration( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { io.kubernetes.client.proto.Meta.ObjectMeta.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = metadata_.toBuilder(); } metadata_ = input.readMessage( io.kubernetes.client.proto.Meta.ObjectMeta.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(metadata_); metadata_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { webhooks_ = new java.util.ArrayList< io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhook>(); mutable_bitField0_ |= 0x00000002; } webhooks_.add( input.readMessage( io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook .PARSER, extensionRegistry)); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { webhooks_ = java.util.Collections.unmodifiableList(webhooks_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_ValidatingWebhookConfiguration_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_ValidatingWebhookConfiguration_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfiguration .class, io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfiguration .Builder.class); } private int bitField0_; public static final int METADATA_FIELD_NUMBER = 1; private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; /** * * *
     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } /** * * *
     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } public static final int WEBHOOKS_FIELD_NUMBER = 2; private java.util.List< io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook> webhooks_; /** * * *
     * Webhooks is a list of webhooks and the affected resources and operations.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook Webhooks = 2; * */ public java.util.List getWebhooksList() { return webhooks_; } /** * * *
     * Webhooks is a list of webhooks and the affected resources and operations.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook Webhooks = 2; * */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookOrBuilder> getWebhooksOrBuilderList() { return webhooks_; } /** * * *
     * Webhooks is a list of webhooks and the affected resources and operations.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook Webhooks = 2; * */ public int getWebhooksCount() { return webhooks_.size(); } /** * * *
     * Webhooks is a list of webhooks and the affected resources and operations.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook Webhooks = 2; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook getWebhooks( int index) { return webhooks_.get(index); } /** * * *
     * Webhooks is a list of webhooks and the affected resources and operations.
     * +optional
     * +patchMergeKey=name
     * +patchStrategy=merge
     * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook Webhooks = 2; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookOrBuilder getWebhooksOrBuilder(int index) { return webhooks_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getMetadata()); } for (int i = 0; i < webhooks_.size(); i++) { output.writeMessage(2, webhooks_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMetadata()); } for (int i = 0; i < webhooks_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, webhooks_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfiguration)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfiguration other = (io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfiguration) obj; boolean result = true; result = result && (hasMetadata() == other.hasMetadata()); if (hasMetadata()) { result = result && getMetadata().equals(other.getMetadata()); } result = result && getWebhooksList().equals(other.getWebhooksList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasMetadata()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); } if (getWebhooksCount() > 0) { hash = (37 * hash) + WEBHOOKS_FIELD_NUMBER; hash = (53 * hash) + getWebhooksList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfiguration parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfiguration parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfiguration parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfiguration parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfiguration parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfiguration parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfiguration parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfiguration parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfiguration parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfiguration parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfiguration parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfiguration parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfiguration prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it.
     * Deprecated in v1.16, planned for removal in v1.19. Use admissionregistration.k8s.io/v1 ValidatingWebhookConfiguration instead.
     * 
* * Protobuf type {@code k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration) io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_ValidatingWebhookConfiguration_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_ValidatingWebhookConfiguration_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfiguration.class, io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfiguration.Builder.class); } // Construct using // io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfiguration.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getMetadataFieldBuilder(); getWebhooksFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (metadataBuilder_ == null) { metadata_ = null; } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (webhooksBuilder_ == null) { webhooks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { webhooksBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_ValidatingWebhookConfiguration_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfiguration getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfiguration.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfiguration build() { io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfiguration result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfiguration buildPartial() { io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfiguration result = new io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfiguration(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (metadataBuilder_ == null) { result.metadata_ = metadata_; } else { result.metadata_ = metadataBuilder_.build(); } if (webhooksBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { webhooks_ = java.util.Collections.unmodifiableList(webhooks_); bitField0_ = (bitField0_ & ~0x00000002); } result.webhooks_ = webhooks_; } else { result.webhooks_ = webhooksBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfiguration) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfiguration) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfiguration other) { if (other == io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfiguration.getDefaultInstance()) return this; if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } if (webhooksBuilder_ == null) { if (!other.webhooks_.isEmpty()) { if (webhooks_.isEmpty()) { webhooks_ = other.webhooks_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureWebhooksIsMutable(); webhooks_.addAll(other.webhooks_); } onChanged(); } } else { if (!other.webhooks_.isEmpty()) { if (webhooksBuilder_.isEmpty()) { webhooksBuilder_.dispose(); webhooksBuilder_ = null; webhooks_ = other.webhooks_; bitField0_ = (bitField0_ & ~0x00000002); webhooksBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getWebhooksFieldBuilder() : null; } else { webhooksBuilder_.addAllMessages(other.webhooks_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfiguration parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfiguration) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; /** * * *
       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { if (metadataBuilder_ == null) { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** * * *
       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); } else { metadataBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder setMetadata( io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { if (metadataBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && metadata_ != null && metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) { metadata_ = io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_) .mergeFrom(value) .buildPartial(); } else { metadata_ = value; } onChanged(); } else { metadataBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public Builder clearMetadata() { if (metadataBuilder_ == null) { metadata_ = null; onChanged(); } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** * * *
       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; } } /** * * *
       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>( getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } private java.util.List< io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook> webhooks_ = java.util.Collections.emptyList(); private void ensureWebhooksIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { webhooks_ = new java.util.ArrayList< io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook>( webhooks_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook, io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook.Builder, io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookOrBuilder> webhooksBuilder_; /** * * *
       * Webhooks is a list of webhooks and the affected resources and operations.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook Webhooks = 2; * */ public java.util.List< io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook> getWebhooksList() { if (webhooksBuilder_ == null) { return java.util.Collections.unmodifiableList(webhooks_); } else { return webhooksBuilder_.getMessageList(); } } /** * * *
       * Webhooks is a list of webhooks and the affected resources and operations.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook Webhooks = 2; * */ public int getWebhooksCount() { if (webhooksBuilder_ == null) { return webhooks_.size(); } else { return webhooksBuilder_.getCount(); } } /** * * *
       * Webhooks is a list of webhooks and the affected resources and operations.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook Webhooks = 2; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook getWebhooks( int index) { if (webhooksBuilder_ == null) { return webhooks_.get(index); } else { return webhooksBuilder_.getMessage(index); } } /** * * *
       * Webhooks is a list of webhooks and the affected resources and operations.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook Webhooks = 2; * */ public Builder setWebhooks( int index, io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook value) { if (webhooksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWebhooksIsMutable(); webhooks_.set(index, value); onChanged(); } else { webhooksBuilder_.setMessage(index, value); } return this; } /** * * *
       * Webhooks is a list of webhooks and the affected resources and operations.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook Webhooks = 2; * */ public Builder setWebhooks( int index, io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook.Builder builderForValue) { if (webhooksBuilder_ == null) { ensureWebhooksIsMutable(); webhooks_.set(index, builderForValue.build()); onChanged(); } else { webhooksBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Webhooks is a list of webhooks and the affected resources and operations.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook Webhooks = 2; * */ public Builder addWebhooks( io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook value) { if (webhooksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWebhooksIsMutable(); webhooks_.add(value); onChanged(); } else { webhooksBuilder_.addMessage(value); } return this; } /** * * *
       * Webhooks is a list of webhooks and the affected resources and operations.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook Webhooks = 2; * */ public Builder addWebhooks( int index, io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook value) { if (webhooksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWebhooksIsMutable(); webhooks_.add(index, value); onChanged(); } else { webhooksBuilder_.addMessage(index, value); } return this; } /** * * *
       * Webhooks is a list of webhooks and the affected resources and operations.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook Webhooks = 2; * */ public Builder addWebhooks( io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook.Builder builderForValue) { if (webhooksBuilder_ == null) { ensureWebhooksIsMutable(); webhooks_.add(builderForValue.build()); onChanged(); } else { webhooksBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Webhooks is a list of webhooks and the affected resources and operations.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook Webhooks = 2; * */ public Builder addWebhooks( int index, io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook.Builder builderForValue) { if (webhooksBuilder_ == null) { ensureWebhooksIsMutable(); webhooks_.add(index, builderForValue.build()); onChanged(); } else { webhooksBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Webhooks is a list of webhooks and the affected resources and operations.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook Webhooks = 2; * */ public Builder addAllWebhooks( java.lang.Iterable< ? extends io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook> values) { if (webhooksBuilder_ == null) { ensureWebhooksIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, webhooks_); onChanged(); } else { webhooksBuilder_.addAllMessages(values); } return this; } /** * * *
       * Webhooks is a list of webhooks and the affected resources and operations.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook Webhooks = 2; * */ public Builder clearWebhooks() { if (webhooksBuilder_ == null) { webhooks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { webhooksBuilder_.clear(); } return this; } /** * * *
       * Webhooks is a list of webhooks and the affected resources and operations.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook Webhooks = 2; * */ public Builder removeWebhooks(int index) { if (webhooksBuilder_ == null) { ensureWebhooksIsMutable(); webhooks_.remove(index); onChanged(); } else { webhooksBuilder_.remove(index); } return this; } /** * * *
       * Webhooks is a list of webhooks and the affected resources and operations.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook Webhooks = 2; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook.Builder getWebhooksBuilder(int index) { return getWebhooksFieldBuilder().getBuilder(index); } /** * * *
       * Webhooks is a list of webhooks and the affected resources and operations.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook Webhooks = 2; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookOrBuilder getWebhooksOrBuilder(int index) { if (webhooksBuilder_ == null) { return webhooks_.get(index); } else { return webhooksBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Webhooks is a list of webhooks and the affected resources and operations.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook Webhooks = 2; * */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookOrBuilder> getWebhooksOrBuilderList() { if (webhooksBuilder_ != null) { return webhooksBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(webhooks_); } } /** * * *
       * Webhooks is a list of webhooks and the affected resources and operations.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook Webhooks = 2; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook.Builder addWebhooksBuilder() { return getWebhooksFieldBuilder() .addBuilder( io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook .getDefaultInstance()); } /** * * *
       * Webhooks is a list of webhooks and the affected resources and operations.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook Webhooks = 2; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook.Builder addWebhooksBuilder(int index) { return getWebhooksFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook .getDefaultInstance()); } /** * * *
       * Webhooks is a list of webhooks and the affected resources and operations.
       * +optional
       * +patchMergeKey=name
       * +patchStrategy=merge
       * 
* * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook Webhooks = 2; * */ public java.util.List< io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook.Builder> getWebhooksBuilderList() { return getWebhooksFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook, io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook.Builder, io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookOrBuilder> getWebhooksFieldBuilder() { if (webhooksBuilder_ == null) { webhooksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook, io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhook.Builder, io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookOrBuilder>( webhooks_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); webhooks_ = null; } return webhooksBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration) } // @@protoc_insertion_point(class_scope:k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration) private static final io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfiguration DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfiguration(); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfiguration getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ValidatingWebhookConfiguration parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ValidatingWebhookConfiguration(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfiguration getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ValidatingWebhookConfigurationListOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfigurationList) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard list metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ boolean hasMetadata(); /** * * *
     * Standard list metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ListMeta getMetadata(); /** * * *
     * Standard list metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); /** * * *
     * List of ValidatingWebhookConfiguration.
     * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration items = 2; * */ java.util.List< io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfiguration> getItemsList(); /** * * *
     * List of ValidatingWebhookConfiguration.
     * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration items = 2; * */ io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfiguration getItems( int index); /** * * *
     * List of ValidatingWebhookConfiguration.
     * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration items = 2; * */ int getItemsCount(); /** * * *
     * List of ValidatingWebhookConfiguration.
     * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration items = 2; * */ java.util.List< ? extends io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationOrBuilder> getItemsOrBuilderList(); /** * * *
     * List of ValidatingWebhookConfiguration.
     * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration items = 2; * */ io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfigurationOrBuilder getItemsOrBuilder(int index); } /** * * *
   * ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration.
   * 
* * Protobuf type {@code * k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfigurationList} */ public static final class ValidatingWebhookConfigurationList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfigurationList) ValidatingWebhookConfigurationListOrBuilder { private static final long serialVersionUID = 0L; // Use ValidatingWebhookConfigurationList.newBuilder() to construct. private ValidatingWebhookConfigurationList( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ValidatingWebhookConfigurationList() { items_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ValidatingWebhookConfigurationList( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { io.kubernetes.client.proto.Meta.ListMeta.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = metadata_.toBuilder(); } metadata_ = input.readMessage( io.kubernetes.client.proto.Meta.ListMeta.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(metadata_); metadata_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { items_ = new java.util.ArrayList< io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfiguration>(); mutable_bitField0_ |= 0x00000002; } items_.add( input.readMessage( io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfiguration.PARSER, extensionRegistry)); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { items_ = java.util.Collections.unmodifiableList(items_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_ValidatingWebhookConfigurationList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_ValidatingWebhookConfigurationList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationList.class, io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationList.Builder.class); } private int bitField0_; public static final int METADATA_FIELD_NUMBER = 1; private io.kubernetes.client.proto.Meta.ListMeta metadata_; /** * * *
     * Standard list metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Standard list metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; } /** * * *
     * Standard list metadata.
     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; } public static final int ITEMS_FIELD_NUMBER = 2; private java.util.List< io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfiguration> items_; /** * * *
     * List of ValidatingWebhookConfiguration.
     * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration items = 2; * */ public java.util.List< io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfiguration> getItemsList() { return items_; } /** * * *
     * List of ValidatingWebhookConfiguration.
     * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration items = 2; * */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationOrBuilder> getItemsOrBuilderList() { return items_; } /** * * *
     * List of ValidatingWebhookConfiguration.
     * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration items = 2; * */ public int getItemsCount() { return items_.size(); } /** * * *
     * List of ValidatingWebhookConfiguration.
     * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration items = 2; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfiguration getItems(int index) { return items_.get(index); } /** * * *
     * List of ValidatingWebhookConfiguration.
     * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration items = 2; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationOrBuilder getItemsOrBuilder(int index) { return items_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getMetadata()); } for (int i = 0; i < items_.size(); i++) { output.writeMessage(2, items_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMetadata()); } for (int i = 0; i < items_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, items_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationList)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfigurationList other = (io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationList) obj; boolean result = true; result = result && (hasMetadata() == other.hasMetadata()); if (hasMetadata()) { result = result && getMetadata().equals(other.getMetadata()); } result = result && getItemsList().equals(other.getItemsList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasMetadata()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); } if (getItemsCount() > 0) { hash = (37 * hash) + ITEMS_FIELD_NUMBER; hash = (53 * hash) + getItemsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationList parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationList parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationList parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationList parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationList parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationList parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationList parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfigurationList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration.
     * 
* * Protobuf type {@code * k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfigurationList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfigurationList) io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_ValidatingWebhookConfigurationList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_ValidatingWebhookConfigurationList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationList.class, io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationList.Builder.class); } // Construct using // io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfigurationList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getMetadataFieldBuilder(); getItemsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (metadataBuilder_ == null) { metadata_ = null; } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { itemsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_ValidatingWebhookConfigurationList_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationList getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationList.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationList build() { io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfigurationList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationList buildPartial() { io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfigurationList result = new io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationList(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (metadataBuilder_ == null) { result.metadata_ = metadata_; } else { result.metadata_ = metadataBuilder_.build(); } if (itemsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { items_ = java.util.Collections.unmodifiableList(items_); bitField0_ = (bitField0_ & ~0x00000002); } result.items_ = items_; } else { result.items_ = itemsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationList) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationList) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfigurationList other) { if (other == io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationList.getDefaultInstance()) return this; if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } if (itemsBuilder_ == null) { if (!other.items_.isEmpty()) { if (items_.isEmpty()) { items_ = other.items_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureItemsIsMutable(); items_.addAll(other.items_); } onChanged(); } } else { if (!other.items_.isEmpty()) { if (itemsBuilder_.isEmpty()) { itemsBuilder_.dispose(); itemsBuilder_ = null; items_ = other.items_; bitField0_ = (bitField0_ & ~0x00000002); itemsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getItemsFieldBuilder() : null; } else { itemsBuilder_.addAllMessages(other.items_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfigurationList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.Meta.ListMeta metadata_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> metadataBuilder_; /** * * *
       * Standard list metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Standard list metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { if (metadataBuilder_ == null) { return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** * * *
       * Standard list metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); } else { metadataBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard list metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard list metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { if (metadataBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && metadata_ != null && metadata_ != io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()) { metadata_ = io.kubernetes.client.proto.Meta.ListMeta.newBuilder(metadata_) .mergeFrom(value) .buildPartial(); } else { metadata_ = value; } onChanged(); } else { metadataBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * Standard list metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ public Builder clearMetadata() { if (metadataBuilder_ == null) { metadata_ = null; onChanged(); } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * Standard list metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ListMeta.Builder getMetadataBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** * * *
       * Standard list metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; } } /** * * *
       * Standard list metadata.
       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder>( getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } private java.util.List< io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfiguration> items_ = java.util.Collections.emptyList(); private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { items_ = new java.util.ArrayList< io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfiguration>(items_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfiguration, io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfiguration .Builder, io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationOrBuilder> itemsBuilder_; /** * * *
       * List of ValidatingWebhookConfiguration.
       * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration items = 2; * */ public java.util.List< io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfiguration> getItemsList() { if (itemsBuilder_ == null) { return java.util.Collections.unmodifiableList(items_); } else { return itemsBuilder_.getMessageList(); } } /** * * *
       * List of ValidatingWebhookConfiguration.
       * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration items = 2; * */ public int getItemsCount() { if (itemsBuilder_ == null) { return items_.size(); } else { return itemsBuilder_.getCount(); } } /** * * *
       * List of ValidatingWebhookConfiguration.
       * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration items = 2; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfiguration getItems(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessage(index); } } /** * * *
       * List of ValidatingWebhookConfiguration.
       * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration items = 2; * */ public Builder setItems( int index, io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfiguration value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.set(index, value); onChanged(); } else { itemsBuilder_.setMessage(index, value); } return this; } /** * * *
       * List of ValidatingWebhookConfiguration.
       * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration items = 2; * */ public Builder setItems( int index, io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfiguration .Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of ValidatingWebhookConfiguration.
       * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration items = 2; * */ public Builder addItems( io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfiguration value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(value); onChanged(); } else { itemsBuilder_.addMessage(value); } return this; } /** * * *
       * List of ValidatingWebhookConfiguration.
       * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration items = 2; * */ public Builder addItems( int index, io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfiguration value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(index, value); onChanged(); } else { itemsBuilder_.addMessage(index, value); } return this; } /** * * *
       * List of ValidatingWebhookConfiguration.
       * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration items = 2; * */ public Builder addItems( io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfiguration .Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * List of ValidatingWebhookConfiguration.
       * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration items = 2; * */ public Builder addItems( int index, io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfiguration .Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * List of ValidatingWebhookConfiguration.
       * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration items = 2; * */ public Builder addAllItems( java.lang.Iterable< ? extends io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfiguration> values) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); onChanged(); } else { itemsBuilder_.addAllMessages(values); } return this; } /** * * *
       * List of ValidatingWebhookConfiguration.
       * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration items = 2; * */ public Builder clearItems() { if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { itemsBuilder_.clear(); } return this; } /** * * *
       * List of ValidatingWebhookConfiguration.
       * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration items = 2; * */ public Builder removeItems(int index) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.remove(index); onChanged(); } else { itemsBuilder_.remove(index); } return this; } /** * * *
       * List of ValidatingWebhookConfiguration.
       * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration items = 2; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfiguration .Builder getItemsBuilder(int index) { return getItemsFieldBuilder().getBuilder(index); } /** * * *
       * List of ValidatingWebhookConfiguration.
       * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration items = 2; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationOrBuilder getItemsOrBuilder(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * List of ValidatingWebhookConfiguration.
       * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration items = 2; * */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationOrBuilder> getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(items_); } } /** * * *
       * List of ValidatingWebhookConfiguration.
       * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration items = 2; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfiguration .Builder addItemsBuilder() { return getItemsFieldBuilder() .addBuilder( io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfiguration.getDefaultInstance()); } /** * * *
       * List of ValidatingWebhookConfiguration.
       * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration items = 2; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfiguration .Builder addItemsBuilder(int index) { return getItemsFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfiguration.getDefaultInstance()); } /** * * *
       * List of ValidatingWebhookConfiguration.
       * 
* * * repeated .k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration items = 2; * */ public java.util.List< io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfiguration .Builder> getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfiguration, io.kubernetes.client.proto.V1beta1Admissionregistration.ValidatingWebhookConfiguration .Builder, io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfiguration, io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfiguration.Builder, io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationOrBuilder>( items_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); items_ = null; } return itemsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfigurationList) } // @@protoc_insertion_point(class_scope:k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfigurationList) private static final io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationList(); } public static io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationList getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ValidatingWebhookConfigurationList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ValidatingWebhookConfigurationList(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration .ValidatingWebhookConfigurationList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface WebhookClientConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig) com.google.protobuf.MessageOrBuilder { /** * * *
     * `url` gives the location of the webhook, in standard URL form
     * (`scheme://host:port/path`). Exactly one of `url` or `service`
     * must be specified.
     * The `host` should not refer to a service running in the cluster; use
     * the `service` field instead. The host might be resolved via external
     * DNS in some apiservers (e.g., `kube-apiserver` cannot resolve
     * in-cluster DNS as that would be a layering violation). `host` may
     * also be an IP address.
     * Please note that using `localhost` or `127.0.0.1` as a `host` is
     * risky unless you take great care to run this webhook on all hosts
     * which run an apiserver which might need to make calls to this
     * webhook. Such installs are likely to be non-portable, i.e., not easy
     * to turn up in a new cluster.
     * The scheme must be "https"; the URL must begin with "https://".
     * A path is optional, and if present may be any string permissible in
     * a URL. You may use the path to pass an arbitrary string to the
     * webhook, for example, a cluster identifier.
     * Attempting to use a user or basic auth e.g. "user:password@" is not
     * allowed. Fragments ("#...") and query parameters ("?...") are not
     * allowed, either.
     * +optional
     * 
* * optional string url = 3; */ boolean hasUrl(); /** * * *
     * `url` gives the location of the webhook, in standard URL form
     * (`scheme://host:port/path`). Exactly one of `url` or `service`
     * must be specified.
     * The `host` should not refer to a service running in the cluster; use
     * the `service` field instead. The host might be resolved via external
     * DNS in some apiservers (e.g., `kube-apiserver` cannot resolve
     * in-cluster DNS as that would be a layering violation). `host` may
     * also be an IP address.
     * Please note that using `localhost` or `127.0.0.1` as a `host` is
     * risky unless you take great care to run this webhook on all hosts
     * which run an apiserver which might need to make calls to this
     * webhook. Such installs are likely to be non-portable, i.e., not easy
     * to turn up in a new cluster.
     * The scheme must be "https"; the URL must begin with "https://".
     * A path is optional, and if present may be any string permissible in
     * a URL. You may use the path to pass an arbitrary string to the
     * webhook, for example, a cluster identifier.
     * Attempting to use a user or basic auth e.g. "user:password@" is not
     * allowed. Fragments ("#...") and query parameters ("?...") are not
     * allowed, either.
     * +optional
     * 
* * optional string url = 3; */ java.lang.String getUrl(); /** * * *
     * `url` gives the location of the webhook, in standard URL form
     * (`scheme://host:port/path`). Exactly one of `url` or `service`
     * must be specified.
     * The `host` should not refer to a service running in the cluster; use
     * the `service` field instead. The host might be resolved via external
     * DNS in some apiservers (e.g., `kube-apiserver` cannot resolve
     * in-cluster DNS as that would be a layering violation). `host` may
     * also be an IP address.
     * Please note that using `localhost` or `127.0.0.1` as a `host` is
     * risky unless you take great care to run this webhook on all hosts
     * which run an apiserver which might need to make calls to this
     * webhook. Such installs are likely to be non-portable, i.e., not easy
     * to turn up in a new cluster.
     * The scheme must be "https"; the URL must begin with "https://".
     * A path is optional, and if present may be any string permissible in
     * a URL. You may use the path to pass an arbitrary string to the
     * webhook, for example, a cluster identifier.
     * Attempting to use a user or basic auth e.g. "user:password@" is not
     * allowed. Fragments ("#...") and query parameters ("?...") are not
     * allowed, either.
     * +optional
     * 
* * optional string url = 3; */ com.google.protobuf.ByteString getUrlBytes(); /** * * *
     * `service` is a reference to the service for this webhook. Either
     * `service` or `url` must be specified.
     * If the webhook is running within the cluster, then you should use `service`.
     * +optional
     * 
* * optional .k8s.io.api.admissionregistration.v1beta1.ServiceReference service = 1; */ boolean hasService(); /** * * *
     * `service` is a reference to the service for this webhook. Either
     * `service` or `url` must be specified.
     * If the webhook is running within the cluster, then you should use `service`.
     * +optional
     * 
* * optional .k8s.io.api.admissionregistration.v1beta1.ServiceReference service = 1; */ io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference getService(); /** * * *
     * `service` is a reference to the service for this webhook. Either
     * `service` or `url` must be specified.
     * If the webhook is running within the cluster, then you should use `service`.
     * +optional
     * 
* * optional .k8s.io.api.admissionregistration.v1beta1.ServiceReference service = 1; */ io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReferenceOrBuilder getServiceOrBuilder(); /** * * *
     * `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.
     * If unspecified, system trust roots on the apiserver are used.
     * +optional
     * 
* * optional bytes caBundle = 2; */ boolean hasCaBundle(); /** * * *
     * `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.
     * If unspecified, system trust roots on the apiserver are used.
     * +optional
     * 
* * optional bytes caBundle = 2; */ com.google.protobuf.ByteString getCaBundle(); } /** * * *
   * WebhookClientConfig contains the information to make a TLS
   * connection with the webhook
   * 
* * Protobuf type {@code k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig} */ public static final class WebhookClientConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig) WebhookClientConfigOrBuilder { private static final long serialVersionUID = 0L; // Use WebhookClientConfig.newBuilder() to construct. private WebhookClientConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WebhookClientConfig() { url_ = ""; caBundle_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WebhookClientConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = service_.toBuilder(); } service_ = input.readMessage( io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference .PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(service_); service_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 18: { bitField0_ |= 0x00000004; caBundle_ = input.readBytes(); break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; url_ = bs; break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_WebhookClientConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_WebhookClientConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig.class, io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig.Builder .class); } private int bitField0_; public static final int URL_FIELD_NUMBER = 3; private volatile java.lang.Object url_; /** * * *
     * `url` gives the location of the webhook, in standard URL form
     * (`scheme://host:port/path`). Exactly one of `url` or `service`
     * must be specified.
     * The `host` should not refer to a service running in the cluster; use
     * the `service` field instead. The host might be resolved via external
     * DNS in some apiservers (e.g., `kube-apiserver` cannot resolve
     * in-cluster DNS as that would be a layering violation). `host` may
     * also be an IP address.
     * Please note that using `localhost` or `127.0.0.1` as a `host` is
     * risky unless you take great care to run this webhook on all hosts
     * which run an apiserver which might need to make calls to this
     * webhook. Such installs are likely to be non-portable, i.e., not easy
     * to turn up in a new cluster.
     * The scheme must be "https"; the URL must begin with "https://".
     * A path is optional, and if present may be any string permissible in
     * a URL. You may use the path to pass an arbitrary string to the
     * webhook, for example, a cluster identifier.
     * Attempting to use a user or basic auth e.g. "user:password@" is not
     * allowed. Fragments ("#...") and query parameters ("?...") are not
     * allowed, either.
     * +optional
     * 
* * optional string url = 3; */ public boolean hasUrl() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * `url` gives the location of the webhook, in standard URL form
     * (`scheme://host:port/path`). Exactly one of `url` or `service`
     * must be specified.
     * The `host` should not refer to a service running in the cluster; use
     * the `service` field instead. The host might be resolved via external
     * DNS in some apiservers (e.g., `kube-apiserver` cannot resolve
     * in-cluster DNS as that would be a layering violation). `host` may
     * also be an IP address.
     * Please note that using `localhost` or `127.0.0.1` as a `host` is
     * risky unless you take great care to run this webhook on all hosts
     * which run an apiserver which might need to make calls to this
     * webhook. Such installs are likely to be non-portable, i.e., not easy
     * to turn up in a new cluster.
     * The scheme must be "https"; the URL must begin with "https://".
     * A path is optional, and if present may be any string permissible in
     * a URL. You may use the path to pass an arbitrary string to the
     * webhook, for example, a cluster identifier.
     * Attempting to use a user or basic auth e.g. "user:password@" is not
     * allowed. Fragments ("#...") and query parameters ("?...") are not
     * allowed, either.
     * +optional
     * 
* * optional string url = 3; */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { url_ = s; } return s; } } /** * * *
     * `url` gives the location of the webhook, in standard URL form
     * (`scheme://host:port/path`). Exactly one of `url` or `service`
     * must be specified.
     * The `host` should not refer to a service running in the cluster; use
     * the `service` field instead. The host might be resolved via external
     * DNS in some apiservers (e.g., `kube-apiserver` cannot resolve
     * in-cluster DNS as that would be a layering violation). `host` may
     * also be an IP address.
     * Please note that using `localhost` or `127.0.0.1` as a `host` is
     * risky unless you take great care to run this webhook on all hosts
     * which run an apiserver which might need to make calls to this
     * webhook. Such installs are likely to be non-portable, i.e., not easy
     * to turn up in a new cluster.
     * The scheme must be "https"; the URL must begin with "https://".
     * A path is optional, and if present may be any string permissible in
     * a URL. You may use the path to pass an arbitrary string to the
     * webhook, for example, a cluster identifier.
     * Attempting to use a user or basic auth e.g. "user:password@" is not
     * allowed. Fragments ("#...") and query parameters ("?...") are not
     * allowed, either.
     * +optional
     * 
* * optional string url = 3; */ public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SERVICE_FIELD_NUMBER = 1; private io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference service_; /** * * *
     * `service` is a reference to the service for this webhook. Either
     * `service` or `url` must be specified.
     * If the webhook is running within the cluster, then you should use `service`.
     * +optional
     * 
* * optional .k8s.io.api.admissionregistration.v1beta1.ServiceReference service = 1; */ public boolean hasService() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * `service` is a reference to the service for this webhook. Either
     * `service` or `url` must be specified.
     * If the webhook is running within the cluster, then you should use `service`.
     * +optional
     * 
* * optional .k8s.io.api.admissionregistration.v1beta1.ServiceReference service = 1; */ public io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference getService() { return service_ == null ? io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference .getDefaultInstance() : service_; } /** * * *
     * `service` is a reference to the service for this webhook. Either
     * `service` or `url` must be specified.
     * If the webhook is running within the cluster, then you should use `service`.
     * +optional
     * 
* * optional .k8s.io.api.admissionregistration.v1beta1.ServiceReference service = 1; */ public io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReferenceOrBuilder getServiceOrBuilder() { return service_ == null ? io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference .getDefaultInstance() : service_; } public static final int CABUNDLE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString caBundle_; /** * * *
     * `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.
     * If unspecified, system trust roots on the apiserver are used.
     * +optional
     * 
* * optional bytes caBundle = 2; */ public boolean hasCaBundle() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.
     * If unspecified, system trust roots on the apiserver are used.
     * +optional
     * 
* * optional bytes caBundle = 2; */ public com.google.protobuf.ByteString getCaBundle() { return caBundle_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(1, getService()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(2, caBundle_); } if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, url_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getService()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, caBundle_); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, url_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig other = (io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig) obj; boolean result = true; result = result && (hasUrl() == other.hasUrl()); if (hasUrl()) { result = result && getUrl().equals(other.getUrl()); } result = result && (hasService() == other.hasService()); if (hasService()) { result = result && getService().equals(other.getService()); } result = result && (hasCaBundle() == other.hasCaBundle()); if (hasCaBundle()) { result = result && getCaBundle().equals(other.getCaBundle()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasUrl()) { hash = (37 * hash) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); } if (hasService()) { hash = (37 * hash) + SERVICE_FIELD_NUMBER; hash = (53 * hash) + getService().hashCode(); } if (hasCaBundle()) { hash = (37 * hash) + CABUNDLE_FIELD_NUMBER; hash = (53 * hash) + getCaBundle().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * WebhookClientConfig contains the information to make a TLS
     * connection with the webhook
     * 
* * Protobuf type {@code k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig) io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_WebhookClientConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_WebhookClientConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig.class, io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig.Builder .class); } // Construct using // io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getServiceFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); url_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (serviceBuilder_ == null) { service_ = null; } else { serviceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); caBundle_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Admissionregistration .internal_static_k8s_io_api_admissionregistration_v1beta1_WebhookClientConfig_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig .getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig build() { io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig buildPartial() { io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig result = new io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.url_ = url_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (serviceBuilder_ == null) { result.service_ = service_; } else { result.service_ = serviceBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.caBundle_ = caBundle_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig other) { if (other == io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig .getDefaultInstance()) return this; if (other.hasUrl()) { bitField0_ |= 0x00000001; url_ = other.url_; onChanged(); } if (other.hasService()) { mergeService(other.getService()); } if (other.hasCaBundle()) { setCaBundle(other.getCaBundle()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object url_ = ""; /** * * *
       * `url` gives the location of the webhook, in standard URL form
       * (`scheme://host:port/path`). Exactly one of `url` or `service`
       * must be specified.
       * The `host` should not refer to a service running in the cluster; use
       * the `service` field instead. The host might be resolved via external
       * DNS in some apiservers (e.g., `kube-apiserver` cannot resolve
       * in-cluster DNS as that would be a layering violation). `host` may
       * also be an IP address.
       * Please note that using `localhost` or `127.0.0.1` as a `host` is
       * risky unless you take great care to run this webhook on all hosts
       * which run an apiserver which might need to make calls to this
       * webhook. Such installs are likely to be non-portable, i.e., not easy
       * to turn up in a new cluster.
       * The scheme must be "https"; the URL must begin with "https://".
       * A path is optional, and if present may be any string permissible in
       * a URL. You may use the path to pass an arbitrary string to the
       * webhook, for example, a cluster identifier.
       * Attempting to use a user or basic auth e.g. "user:password@" is not
       * allowed. Fragments ("#...") and query parameters ("?...") are not
       * allowed, either.
       * +optional
       * 
* * optional string url = 3; */ public boolean hasUrl() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * `url` gives the location of the webhook, in standard URL form
       * (`scheme://host:port/path`). Exactly one of `url` or `service`
       * must be specified.
       * The `host` should not refer to a service running in the cluster; use
       * the `service` field instead. The host might be resolved via external
       * DNS in some apiservers (e.g., `kube-apiserver` cannot resolve
       * in-cluster DNS as that would be a layering violation). `host` may
       * also be an IP address.
       * Please note that using `localhost` or `127.0.0.1` as a `host` is
       * risky unless you take great care to run this webhook on all hosts
       * which run an apiserver which might need to make calls to this
       * webhook. Such installs are likely to be non-portable, i.e., not easy
       * to turn up in a new cluster.
       * The scheme must be "https"; the URL must begin with "https://".
       * A path is optional, and if present may be any string permissible in
       * a URL. You may use the path to pass an arbitrary string to the
       * webhook, for example, a cluster identifier.
       * Attempting to use a user or basic auth e.g. "user:password@" is not
       * allowed. Fragments ("#...") and query parameters ("?...") are not
       * allowed, either.
       * +optional
       * 
* * optional string url = 3; */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { url_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * `url` gives the location of the webhook, in standard URL form
       * (`scheme://host:port/path`). Exactly one of `url` or `service`
       * must be specified.
       * The `host` should not refer to a service running in the cluster; use
       * the `service` field instead. The host might be resolved via external
       * DNS in some apiservers (e.g., `kube-apiserver` cannot resolve
       * in-cluster DNS as that would be a layering violation). `host` may
       * also be an IP address.
       * Please note that using `localhost` or `127.0.0.1` as a `host` is
       * risky unless you take great care to run this webhook on all hosts
       * which run an apiserver which might need to make calls to this
       * webhook. Such installs are likely to be non-portable, i.e., not easy
       * to turn up in a new cluster.
       * The scheme must be "https"; the URL must begin with "https://".
       * A path is optional, and if present may be any string permissible in
       * a URL. You may use the path to pass an arbitrary string to the
       * webhook, for example, a cluster identifier.
       * Attempting to use a user or basic auth e.g. "user:password@" is not
       * allowed. Fragments ("#...") and query parameters ("?...") are not
       * allowed, either.
       * +optional
       * 
* * optional string url = 3; */ public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * `url` gives the location of the webhook, in standard URL form
       * (`scheme://host:port/path`). Exactly one of `url` or `service`
       * must be specified.
       * The `host` should not refer to a service running in the cluster; use
       * the `service` field instead. The host might be resolved via external
       * DNS in some apiservers (e.g., `kube-apiserver` cannot resolve
       * in-cluster DNS as that would be a layering violation). `host` may
       * also be an IP address.
       * Please note that using `localhost` or `127.0.0.1` as a `host` is
       * risky unless you take great care to run this webhook on all hosts
       * which run an apiserver which might need to make calls to this
       * webhook. Such installs are likely to be non-portable, i.e., not easy
       * to turn up in a new cluster.
       * The scheme must be "https"; the URL must begin with "https://".
       * A path is optional, and if present may be any string permissible in
       * a URL. You may use the path to pass an arbitrary string to the
       * webhook, for example, a cluster identifier.
       * Attempting to use a user or basic auth e.g. "user:password@" is not
       * allowed. Fragments ("#...") and query parameters ("?...") are not
       * allowed, either.
       * +optional
       * 
* * optional string url = 3; */ public Builder setUrl(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; url_ = value; onChanged(); return this; } /** * * *
       * `url` gives the location of the webhook, in standard URL form
       * (`scheme://host:port/path`). Exactly one of `url` or `service`
       * must be specified.
       * The `host` should not refer to a service running in the cluster; use
       * the `service` field instead. The host might be resolved via external
       * DNS in some apiservers (e.g., `kube-apiserver` cannot resolve
       * in-cluster DNS as that would be a layering violation). `host` may
       * also be an IP address.
       * Please note that using `localhost` or `127.0.0.1` as a `host` is
       * risky unless you take great care to run this webhook on all hosts
       * which run an apiserver which might need to make calls to this
       * webhook. Such installs are likely to be non-portable, i.e., not easy
       * to turn up in a new cluster.
       * The scheme must be "https"; the URL must begin with "https://".
       * A path is optional, and if present may be any string permissible in
       * a URL. You may use the path to pass an arbitrary string to the
       * webhook, for example, a cluster identifier.
       * Attempting to use a user or basic auth e.g. "user:password@" is not
       * allowed. Fragments ("#...") and query parameters ("?...") are not
       * allowed, either.
       * +optional
       * 
* * optional string url = 3; */ public Builder clearUrl() { bitField0_ = (bitField0_ & ~0x00000001); url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** * * *
       * `url` gives the location of the webhook, in standard URL form
       * (`scheme://host:port/path`). Exactly one of `url` or `service`
       * must be specified.
       * The `host` should not refer to a service running in the cluster; use
       * the `service` field instead. The host might be resolved via external
       * DNS in some apiservers (e.g., `kube-apiserver` cannot resolve
       * in-cluster DNS as that would be a layering violation). `host` may
       * also be an IP address.
       * Please note that using `localhost` or `127.0.0.1` as a `host` is
       * risky unless you take great care to run this webhook on all hosts
       * which run an apiserver which might need to make calls to this
       * webhook. Such installs are likely to be non-portable, i.e., not easy
       * to turn up in a new cluster.
       * The scheme must be "https"; the URL must begin with "https://".
       * A path is optional, and if present may be any string permissible in
       * a URL. You may use the path to pass an arbitrary string to the
       * webhook, for example, a cluster identifier.
       * Attempting to use a user or basic auth e.g. "user:password@" is not
       * allowed. Fragments ("#...") and query parameters ("?...") are not
       * allowed, either.
       * +optional
       * 
* * optional string url = 3; */ public Builder setUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; url_ = value; onChanged(); return this; } private io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference service_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference, io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference.Builder, io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReferenceOrBuilder> serviceBuilder_; /** * * *
       * `service` is a reference to the service for this webhook. Either
       * `service` or `url` must be specified.
       * If the webhook is running within the cluster, then you should use `service`.
       * +optional
       * 
* * optional .k8s.io.api.admissionregistration.v1beta1.ServiceReference service = 1; * */ public boolean hasService() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * `service` is a reference to the service for this webhook. Either
       * `service` or `url` must be specified.
       * If the webhook is running within the cluster, then you should use `service`.
       * +optional
       * 
* * optional .k8s.io.api.admissionregistration.v1beta1.ServiceReference service = 1; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference getService() { if (serviceBuilder_ == null) { return service_ == null ? io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference .getDefaultInstance() : service_; } else { return serviceBuilder_.getMessage(); } } /** * * *
       * `service` is a reference to the service for this webhook. Either
       * `service` or `url` must be specified.
       * If the webhook is running within the cluster, then you should use `service`.
       * +optional
       * 
* * optional .k8s.io.api.admissionregistration.v1beta1.ServiceReference service = 1; * */ public Builder setService( io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference value) { if (serviceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } service_ = value; onChanged(); } else { serviceBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * `service` is a reference to the service for this webhook. Either
       * `service` or `url` must be specified.
       * If the webhook is running within the cluster, then you should use `service`.
       * +optional
       * 
* * optional .k8s.io.api.admissionregistration.v1beta1.ServiceReference service = 1; * */ public Builder setService( io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference.Builder builderForValue) { if (serviceBuilder_ == null) { service_ = builderForValue.build(); onChanged(); } else { serviceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * `service` is a reference to the service for this webhook. Either
       * `service` or `url` must be specified.
       * If the webhook is running within the cluster, then you should use `service`.
       * +optional
       * 
* * optional .k8s.io.api.admissionregistration.v1beta1.ServiceReference service = 1; * */ public Builder mergeService( io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference value) { if (serviceBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && service_ != null && service_ != io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference .getDefaultInstance()) { service_ = io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference.newBuilder( service_) .mergeFrom(value) .buildPartial(); } else { service_ = value; } onChanged(); } else { serviceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * `service` is a reference to the service for this webhook. Either
       * `service` or `url` must be specified.
       * If the webhook is running within the cluster, then you should use `service`.
       * +optional
       * 
* * optional .k8s.io.api.admissionregistration.v1beta1.ServiceReference service = 1; * */ public Builder clearService() { if (serviceBuilder_ == null) { service_ = null; onChanged(); } else { serviceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * `service` is a reference to the service for this webhook. Either
       * `service` or `url` must be specified.
       * If the webhook is running within the cluster, then you should use `service`.
       * +optional
       * 
* * optional .k8s.io.api.admissionregistration.v1beta1.ServiceReference service = 1; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference.Builder getServiceBuilder() { bitField0_ |= 0x00000002; onChanged(); return getServiceFieldBuilder().getBuilder(); } /** * * *
       * `service` is a reference to the service for this webhook. Either
       * `service` or `url` must be specified.
       * If the webhook is running within the cluster, then you should use `service`.
       * +optional
       * 
* * optional .k8s.io.api.admissionregistration.v1beta1.ServiceReference service = 1; * */ public io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReferenceOrBuilder getServiceOrBuilder() { if (serviceBuilder_ != null) { return serviceBuilder_.getMessageOrBuilder(); } else { return service_ == null ? io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference .getDefaultInstance() : service_; } } /** * * *
       * `service` is a reference to the service for this webhook. Either
       * `service` or `url` must be specified.
       * If the webhook is running within the cluster, then you should use `service`.
       * +optional
       * 
* * optional .k8s.io.api.admissionregistration.v1beta1.ServiceReference service = 1; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference, io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference.Builder, io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReferenceOrBuilder> getServiceFieldBuilder() { if (serviceBuilder_ == null) { serviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference, io.kubernetes.client.proto.V1beta1Admissionregistration.ServiceReference.Builder, io.kubernetes.client.proto.V1beta1Admissionregistration .ServiceReferenceOrBuilder>(getService(), getParentForChildren(), isClean()); service_ = null; } return serviceBuilder_; } private com.google.protobuf.ByteString caBundle_ = com.google.protobuf.ByteString.EMPTY; /** * * *
       * `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.
       * If unspecified, system trust roots on the apiserver are used.
       * +optional
       * 
* * optional bytes caBundle = 2; */ public boolean hasCaBundle() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.
       * If unspecified, system trust roots on the apiserver are used.
       * +optional
       * 
* * optional bytes caBundle = 2; */ public com.google.protobuf.ByteString getCaBundle() { return caBundle_; } /** * * *
       * `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.
       * If unspecified, system trust roots on the apiserver are used.
       * +optional
       * 
* * optional bytes caBundle = 2; */ public Builder setCaBundle(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; caBundle_ = value; onChanged(); return this; } /** * * *
       * `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.
       * If unspecified, system trust roots on the apiserver are used.
       * +optional
       * 
* * optional bytes caBundle = 2; */ public Builder clearCaBundle() { bitField0_ = (bitField0_ & ~0x00000004); caBundle_ = getDefaultInstance().getCaBundle(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig) } // @@protoc_insertion_point(class_scope:k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig) private static final io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig(); } public static io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public WebhookClientConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new WebhookClientConfig(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Admissionregistration.WebhookClientConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_admissionregistration_v1beta1_MutatingWebhook_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_admissionregistration_v1beta1_MutatingWebhook_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_admissionregistration_v1beta1_MutatingWebhookConfiguration_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_admissionregistration_v1beta1_MutatingWebhookConfiguration_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_admissionregistration_v1beta1_MutatingWebhookConfigurationList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_admissionregistration_v1beta1_MutatingWebhookConfigurationList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_admissionregistration_v1beta1_Rule_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_admissionregistration_v1beta1_Rule_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_admissionregistration_v1beta1_RuleWithOperations_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_admissionregistration_v1beta1_RuleWithOperations_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_admissionregistration_v1beta1_ServiceReference_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_admissionregistration_v1beta1_ServiceReference_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_admissionregistration_v1beta1_ValidatingWebhook_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_admissionregistration_v1beta1_ValidatingWebhook_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_admissionregistration_v1beta1_ValidatingWebhookConfiguration_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_admissionregistration_v1beta1_ValidatingWebhookConfiguration_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_admissionregistration_v1beta1_ValidatingWebhookConfigurationList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_admissionregistration_v1beta1_ValidatingWebhookConfigurationList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_admissionregistration_v1beta1_WebhookClientConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_admissionregistration_v1beta1_WebhookClientConfig_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n8k8s.io/api/admissionregistration/v1bet" + "a1/generated.proto\022(k8s.io.api.admission" + "registration.v1beta1\0324k8s.io/apimachiner" + "y/pkg/apis/meta/v1/generated.proto\032/k8s." + "io/apimachinery/pkg/runtime/generated.pr" + "oto\0326k8s.io/apimachinery/pkg/runtime/sch" + "ema/generated.proto\"\364\003\n\017MutatingWebhook\022" + "\014\n\004name\030\001 \001(\t\022S\n\014clientConfig\030\002 \001(\0132=.k8" + "s.io.api.admissionregistration.v1beta1.W" + "ebhookClientConfig\022K\n\005rules\030\003 \003(\0132<.k8s." + "io.api.admissionregistration.v1beta1.Rul" + "eWithOperations\022\025\n\rfailurePolicy\030\004 \001(\t\022\023" + "\n\013matchPolicy\030\t \001(\t\022N\n\021namespaceSelector" + "\030\005 \001(\01323.k8s.io.apimachinery.pkg.apis.me" + "ta.v1.LabelSelector\022K\n\016objectSelector\030\013 " + "\001(\01323.k8s.io.apimachinery.pkg.apis.meta." + "v1.LabelSelector\022\023\n\013sideEffects\030\006 \001(\t\022\026\n" + "\016timeoutSeconds\030\007 \001(\005\022\037\n\027admissionReview" + "Versions\030\010 \003(\t\022\032\n\022reinvocationPolicy\030\n \001" + "(\t\"\257\001\n\034MutatingWebhookConfiguration\022B\n\010m" + "etadata\030\001 \001(\01320.k8s.io.apimachinery.pkg." + "apis.meta.v1.ObjectMeta\022K\n\010Webhooks\030\002 \003(" + "\01329.k8s.io.api.admissionregistration.v1b" + "eta1.MutatingWebhook\"\273\001\n MutatingWebhook" + "ConfigurationList\022@\n\010metadata\030\001 \001(\0132..k8" + "s.io.apimachinery.pkg.apis.meta.v1.ListM" + "eta\022U\n\005items\030\002 \003(\0132F.k8s.io.api.admissio" + "nregistration.v1beta1.MutatingWebhookCon" + "figuration\"P\n\004Rule\022\021\n\tapiGroups\030\001 \003(\t\022\023\n" + "\013apiVersions\030\002 \003(\t\022\021\n\tresources\030\003 \003(\t\022\r\n" + "\005scope\030\004 \001(\t\"f\n\022RuleWithOperations\022\022\n\nop" + "erations\030\001 \003(\t\022<\n\004rule\030\002 \001(\0132..k8s.io.ap" + "i.admissionregistration.v1beta1.Rule\"O\n\020" + "ServiceReference\022\021\n\tnamespace\030\001 \001(\t\022\014\n\004n" + "ame\030\002 \001(\t\022\014\n\004path\030\003 \001(\t\022\014\n\004port\030\004 \001(\005\"\332\003" + "\n\021ValidatingWebhook\022\014\n\004name\030\001 \001(\t\022S\n\014cli" + "entConfig\030\002 \001(\0132=.k8s.io.api.admissionre" + "gistration.v1beta1.WebhookClientConfig\022K" + "\n\005rules\030\003 \003(\0132<.k8s.io.api.admissionregi" + "stration.v1beta1.RuleWithOperations\022\025\n\rf" + "ailurePolicy\030\004 \001(\t\022\023\n\013matchPolicy\030\t \001(\t\022" + "N\n\021namespaceSelector\030\005 \001(\01323.k8s.io.apim" + "achinery.pkg.apis.meta.v1.LabelSelector\022" + "K\n\016objectSelector\030\n \001(\01323.k8s.io.apimach" + "inery.pkg.apis.meta.v1.LabelSelector\022\023\n\013" + "sideEffects\030\006 \001(\t\022\026\n\016timeoutSeconds\030\007 \001(" + "\005\022\037\n\027admissionReviewVersions\030\010 \003(\t\"\263\001\n\036V" + "alidatingWebhookConfiguration\022B\n\010metadat" + "a\030\001 \001(\01320.k8s.io.apimachinery.pkg.apis.m" + "eta.v1.ObjectMeta\022M\n\010Webhooks\030\002 \003(\0132;.k8" + "s.io.api.admissionregistration.v1beta1.V" + "alidatingWebhook\"\277\001\n\"ValidatingWebhookCo" + "nfigurationList\022@\n\010metadata\030\001 \001(\0132..k8s." + "io.apimachinery.pkg.apis.meta.v1.ListMet" + "a\022W\n\005items\030\002 \003(\0132H.k8s.io.api.admissionr" + "egistration.v1beta1.ValidatingWebhookCon" + "figuration\"\201\001\n\023WebhookClientConfig\022\013\n\003ur" + "l\030\003 \001(\t\022K\n\007service\030\001 \001(\0132:.k8s.io.api.ad" + "missionregistration.v1beta1.ServiceRefer" + "ence\022\020\n\010caBundle\030\002 \001(\014BC\n\032io.kubernetes." + "client.protoB\034V1beta1Admissionregistrati" + "onZ\007v1beta1" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { io.kubernetes.client.proto.Meta.getDescriptor(), io.kubernetes.client.proto.Runtime.getDescriptor(), io.kubernetes.client.proto.RuntimeSchema.getDescriptor(), }, assigner); internal_static_k8s_io_api_admissionregistration_v1beta1_MutatingWebhook_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_k8s_io_api_admissionregistration_v1beta1_MutatingWebhook_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_admissionregistration_v1beta1_MutatingWebhook_descriptor, new java.lang.String[] { "Name", "ClientConfig", "Rules", "FailurePolicy", "MatchPolicy", "NamespaceSelector", "ObjectSelector", "SideEffects", "TimeoutSeconds", "AdmissionReviewVersions", "ReinvocationPolicy", }); internal_static_k8s_io_api_admissionregistration_v1beta1_MutatingWebhookConfiguration_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_k8s_io_api_admissionregistration_v1beta1_MutatingWebhookConfiguration_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_admissionregistration_v1beta1_MutatingWebhookConfiguration_descriptor, new java.lang.String[] { "Metadata", "Webhooks", }); internal_static_k8s_io_api_admissionregistration_v1beta1_MutatingWebhookConfigurationList_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_k8s_io_api_admissionregistration_v1beta1_MutatingWebhookConfigurationList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_admissionregistration_v1beta1_MutatingWebhookConfigurationList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_admissionregistration_v1beta1_Rule_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_k8s_io_api_admissionregistration_v1beta1_Rule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_admissionregistration_v1beta1_Rule_descriptor, new java.lang.String[] { "ApiGroups", "ApiVersions", "Resources", "Scope", }); internal_static_k8s_io_api_admissionregistration_v1beta1_RuleWithOperations_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_k8s_io_api_admissionregistration_v1beta1_RuleWithOperations_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_admissionregistration_v1beta1_RuleWithOperations_descriptor, new java.lang.String[] { "Operations", "Rule", }); internal_static_k8s_io_api_admissionregistration_v1beta1_ServiceReference_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_k8s_io_api_admissionregistration_v1beta1_ServiceReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_admissionregistration_v1beta1_ServiceReference_descriptor, new java.lang.String[] { "Namespace", "Name", "Path", "Port", }); internal_static_k8s_io_api_admissionregistration_v1beta1_ValidatingWebhook_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_k8s_io_api_admissionregistration_v1beta1_ValidatingWebhook_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_admissionregistration_v1beta1_ValidatingWebhook_descriptor, new java.lang.String[] { "Name", "ClientConfig", "Rules", "FailurePolicy", "MatchPolicy", "NamespaceSelector", "ObjectSelector", "SideEffects", "TimeoutSeconds", "AdmissionReviewVersions", }); internal_static_k8s_io_api_admissionregistration_v1beta1_ValidatingWebhookConfiguration_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_k8s_io_api_admissionregistration_v1beta1_ValidatingWebhookConfiguration_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_admissionregistration_v1beta1_ValidatingWebhookConfiguration_descriptor, new java.lang.String[] { "Metadata", "Webhooks", }); internal_static_k8s_io_api_admissionregistration_v1beta1_ValidatingWebhookConfigurationList_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_k8s_io_api_admissionregistration_v1beta1_ValidatingWebhookConfigurationList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_admissionregistration_v1beta1_ValidatingWebhookConfigurationList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_admissionregistration_v1beta1_WebhookClientConfig_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_k8s_io_api_admissionregistration_v1beta1_WebhookClientConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_admissionregistration_v1beta1_WebhookClientConfig_descriptor, new java.lang.String[] { "Url", "Service", "CaBundle", }); io.kubernetes.client.proto.Meta.getDescriptor(); io.kubernetes.client.proto.Runtime.getDescriptor(); io.kubernetes.client.proto.RuntimeSchema.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy