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

io.kubernetes.client.proto.V1beta1Policy 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 V1beta1Policy {
  private V1beta1Policy() {}

  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 AllowedCSIDriverOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:k8s.io.api.policy.v1beta1.AllowedCSIDriver)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * 
     * Name is the registered name of the CSI driver
     * 
* * optional string name = 1; */ boolean hasName(); /** * * *
     * Name is the registered name of the CSI driver
     * 
* * optional string name = 1; */ java.lang.String getName(); /** * * *
     * Name is the registered name of the CSI driver
     * 
* * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); } /** * * *
   * AllowedCSIDriver represents a single inline CSI Driver that is allowed to be used.
   * 
* * Protobuf type {@code k8s.io.api.policy.v1beta1.AllowedCSIDriver} */ public static final class AllowedCSIDriver extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.policy.v1beta1.AllowedCSIDriver) AllowedCSIDriverOrBuilder { private static final long serialVersionUID = 0L; // Use AllowedCSIDriver.newBuilder() to construct. private AllowedCSIDriver(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AllowedCSIDriver() { name_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AllowedCSIDriver( 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; } 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.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_AllowedCSIDriver_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_AllowedCSIDriver_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver.class, io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * * *
     * Name is the registered name of the CSI driver
     * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Name is the registered name of the CSI driver
     * 
* * 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; } } /** * * *
     * Name is the registered name of the CSI driver
     * 
* * 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; } } 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_); } 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_); } 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.V1beta1Policy.AllowedCSIDriver)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver other = (io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver) obj; boolean result = true; result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName().equals(other.getName()); } 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(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver 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.V1beta1Policy.AllowedCSIDriver parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver 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.V1beta1Policy.AllowedCSIDriver parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver 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.V1beta1Policy.AllowedCSIDriver parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver 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.V1beta1Policy.AllowedCSIDriver parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver 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.V1beta1Policy.AllowedCSIDriver 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; } /** * * *
     * AllowedCSIDriver represents a single inline CSI Driver that is allowed to be used.
     * 
* * Protobuf type {@code k8s.io.api.policy.v1beta1.AllowedCSIDriver} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.policy.v1beta1.AllowedCSIDriver) io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriverOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_AllowedCSIDriver_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_AllowedCSIDriver_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver.class, io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver.Builder.class); } // Construct using io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver.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(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_AllowedCSIDriver_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver build() { io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver buildPartial() { io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver result = new io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; 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.V1beta1Policy.AllowedCSIDriver) { return mergeFrom((io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver other) { if (other == io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; 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.V1beta1Policy.AllowedCSIDriver parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * * *
       * Name is the registered name of the CSI driver
       * 
* * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Name is the registered name of the CSI driver
       * 
* * 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; } } /** * * *
       * Name is the registered name of the CSI driver
       * 
* * 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; } } /** * * *
       * Name is the registered name of the CSI driver
       * 
* * optional string name = 1; */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * * *
       * Name is the registered name of the CSI driver
       * 
* * optional string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * * *
       * Name is the registered name of the CSI driver
       * 
* * 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; } @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.policy.v1beta1.AllowedCSIDriver) } // @@protoc_insertion_point(class_scope:k8s.io.api.policy.v1beta1.AllowedCSIDriver) private static final io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver(); } public static io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AllowedCSIDriver parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AllowedCSIDriver(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.V1beta1Policy.AllowedCSIDriver getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AllowedFlexVolumeOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.policy.v1beta1.AllowedFlexVolume) com.google.protobuf.MessageOrBuilder { /** * * *
     * driver is the name of the Flexvolume driver.
     * 
* * optional string driver = 1; */ boolean hasDriver(); /** * * *
     * driver is the name of the Flexvolume driver.
     * 
* * optional string driver = 1; */ java.lang.String getDriver(); /** * * *
     * driver is the name of the Flexvolume driver.
     * 
* * optional string driver = 1; */ com.google.protobuf.ByteString getDriverBytes(); } /** * * *
   * AllowedFlexVolume represents a single Flexvolume that is allowed to be used.
   * 
* * Protobuf type {@code k8s.io.api.policy.v1beta1.AllowedFlexVolume} */ public static final class AllowedFlexVolume extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.policy.v1beta1.AllowedFlexVolume) AllowedFlexVolumeOrBuilder { private static final long serialVersionUID = 0L; // Use AllowedFlexVolume.newBuilder() to construct. private AllowedFlexVolume(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AllowedFlexVolume() { driver_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AllowedFlexVolume( 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; driver_ = 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.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_AllowedFlexVolume_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_AllowedFlexVolume_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume.class, io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume.Builder.class); } private int bitField0_; public static final int DRIVER_FIELD_NUMBER = 1; private volatile java.lang.Object driver_; /** * * *
     * driver is the name of the Flexvolume driver.
     * 
* * optional string driver = 1; */ public boolean hasDriver() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * driver is the name of the Flexvolume driver.
     * 
* * optional string driver = 1; */ public java.lang.String getDriver() { java.lang.Object ref = driver_; 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()) { driver_ = s; } return s; } } /** * * *
     * driver is the name of the Flexvolume driver.
     * 
* * optional string driver = 1; */ public com.google.protobuf.ByteString getDriverBytes() { java.lang.Object ref = driver_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); driver_ = 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, driver_); } 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, driver_); } 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.V1beta1Policy.AllowedFlexVolume)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume other = (io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume) obj; boolean result = true; result = result && (hasDriver() == other.hasDriver()); if (hasDriver()) { result = result && getDriver().equals(other.getDriver()); } 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 (hasDriver()) { hash = (37 * hash) + DRIVER_FIELD_NUMBER; hash = (53 * hash) + getDriver().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume 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.V1beta1Policy.AllowedFlexVolume parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume 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.V1beta1Policy.AllowedFlexVolume parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume 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.V1beta1Policy.AllowedFlexVolume parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume 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.V1beta1Policy.AllowedFlexVolume parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume 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.V1beta1Policy.AllowedFlexVolume 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; } /** * * *
     * AllowedFlexVolume represents a single Flexvolume that is allowed to be used.
     * 
* * Protobuf type {@code k8s.io.api.policy.v1beta1.AllowedFlexVolume} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.policy.v1beta1.AllowedFlexVolume) io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolumeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_AllowedFlexVolume_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_AllowedFlexVolume_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume.class, io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume.Builder.class); } // Construct using io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume.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(); driver_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_AllowedFlexVolume_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume build() { io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume buildPartial() { io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume result = new io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.driver_ = driver_; 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.V1beta1Policy.AllowedFlexVolume) { return mergeFrom((io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume other) { if (other == io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume.getDefaultInstance()) return this; if (other.hasDriver()) { bitField0_ |= 0x00000001; driver_ = other.driver_; 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.V1beta1Policy.AllowedFlexVolume parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object driver_ = ""; /** * * *
       * driver is the name of the Flexvolume driver.
       * 
* * optional string driver = 1; */ public boolean hasDriver() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * driver is the name of the Flexvolume driver.
       * 
* * optional string driver = 1; */ public java.lang.String getDriver() { java.lang.Object ref = driver_; 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()) { driver_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * driver is the name of the Flexvolume driver.
       * 
* * optional string driver = 1; */ public com.google.protobuf.ByteString getDriverBytes() { java.lang.Object ref = driver_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); driver_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * driver is the name of the Flexvolume driver.
       * 
* * optional string driver = 1; */ public Builder setDriver(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; driver_ = value; onChanged(); return this; } /** * * *
       * driver is the name of the Flexvolume driver.
       * 
* * optional string driver = 1; */ public Builder clearDriver() { bitField0_ = (bitField0_ & ~0x00000001); driver_ = getDefaultInstance().getDriver(); onChanged(); return this; } /** * * *
       * driver is the name of the Flexvolume driver.
       * 
* * optional string driver = 1; */ public Builder setDriverBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; driver_ = 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.policy.v1beta1.AllowedFlexVolume) } // @@protoc_insertion_point(class_scope:k8s.io.api.policy.v1beta1.AllowedFlexVolume) private static final io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume(); } public static io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AllowedFlexVolume parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AllowedFlexVolume(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.V1beta1Policy.AllowedFlexVolume getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AllowedHostPathOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.policy.v1beta1.AllowedHostPath) com.google.protobuf.MessageOrBuilder { /** * * *
     * pathPrefix is the path prefix that the host volume must match.
     * It does not support `*`.
     * Trailing slashes are trimmed when validating the path prefix with a host path.
     * Examples:
     * `/foo` would allow `/foo`, `/foo/` and `/foo/bar`
     * `/foo` would not allow `/food` or `/etc/foo`
     * 
* * optional string pathPrefix = 1; */ boolean hasPathPrefix(); /** * * *
     * pathPrefix is the path prefix that the host volume must match.
     * It does not support `*`.
     * Trailing slashes are trimmed when validating the path prefix with a host path.
     * Examples:
     * `/foo` would allow `/foo`, `/foo/` and `/foo/bar`
     * `/foo` would not allow `/food` or `/etc/foo`
     * 
* * optional string pathPrefix = 1; */ java.lang.String getPathPrefix(); /** * * *
     * pathPrefix is the path prefix that the host volume must match.
     * It does not support `*`.
     * Trailing slashes are trimmed when validating the path prefix with a host path.
     * Examples:
     * `/foo` would allow `/foo`, `/foo/` and `/foo/bar`
     * `/foo` would not allow `/food` or `/etc/foo`
     * 
* * optional string pathPrefix = 1; */ com.google.protobuf.ByteString getPathPrefixBytes(); /** * * *
     * when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.
     * +optional
     * 
* * optional bool readOnly = 2; */ boolean hasReadOnly(); /** * * *
     * when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.
     * +optional
     * 
* * optional bool readOnly = 2; */ boolean getReadOnly(); } /** * * *
   * AllowedHostPath defines the host volume conditions that will be enabled by a policy
   * for pods to use. It requires the path prefix to be defined.
   * 
* * Protobuf type {@code k8s.io.api.policy.v1beta1.AllowedHostPath} */ public static final class AllowedHostPath extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.policy.v1beta1.AllowedHostPath) AllowedHostPathOrBuilder { private static final long serialVersionUID = 0L; // Use AllowedHostPath.newBuilder() to construct. private AllowedHostPath(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AllowedHostPath() { pathPrefix_ = ""; readOnly_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AllowedHostPath( 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; pathPrefix_ = bs; break; } case 16: { bitField0_ |= 0x00000002; readOnly_ = input.readBool(); 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.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_AllowedHostPath_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_AllowedHostPath_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath.class, io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath.Builder.class); } private int bitField0_; public static final int PATHPREFIX_FIELD_NUMBER = 1; private volatile java.lang.Object pathPrefix_; /** * * *
     * pathPrefix is the path prefix that the host volume must match.
     * It does not support `*`.
     * Trailing slashes are trimmed when validating the path prefix with a host path.
     * Examples:
     * `/foo` would allow `/foo`, `/foo/` and `/foo/bar`
     * `/foo` would not allow `/food` or `/etc/foo`
     * 
* * optional string pathPrefix = 1; */ public boolean hasPathPrefix() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * pathPrefix is the path prefix that the host volume must match.
     * It does not support `*`.
     * Trailing slashes are trimmed when validating the path prefix with a host path.
     * Examples:
     * `/foo` would allow `/foo`, `/foo/` and `/foo/bar`
     * `/foo` would not allow `/food` or `/etc/foo`
     * 
* * optional string pathPrefix = 1; */ public java.lang.String getPathPrefix() { java.lang.Object ref = pathPrefix_; 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()) { pathPrefix_ = s; } return s; } } /** * * *
     * pathPrefix is the path prefix that the host volume must match.
     * It does not support `*`.
     * Trailing slashes are trimmed when validating the path prefix with a host path.
     * Examples:
     * `/foo` would allow `/foo`, `/foo/` and `/foo/bar`
     * `/foo` would not allow `/food` or `/etc/foo`
     * 
* * optional string pathPrefix = 1; */ public com.google.protobuf.ByteString getPathPrefixBytes() { java.lang.Object ref = pathPrefix_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pathPrefix_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int READONLY_FIELD_NUMBER = 2; private boolean readOnly_; /** * * *
     * when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.
     * +optional
     * 
* * optional bool readOnly = 2; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.
     * +optional
     * 
* * optional bool readOnly = 2; */ public boolean getReadOnly() { return readOnly_; } 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, pathPrefix_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(2, readOnly_); } 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, pathPrefix_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, readOnly_); } 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.V1beta1Policy.AllowedHostPath)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath other = (io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath) obj; boolean result = true; result = result && (hasPathPrefix() == other.hasPathPrefix()); if (hasPathPrefix()) { result = result && getPathPrefix().equals(other.getPathPrefix()); } result = result && (hasReadOnly() == other.hasReadOnly()); if (hasReadOnly()) { result = result && (getReadOnly() == other.getReadOnly()); } 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 (hasPathPrefix()) { hash = (37 * hash) + PATHPREFIX_FIELD_NUMBER; hash = (53 * hash) + getPathPrefix().hashCode(); } if (hasReadOnly()) { hash = (37 * hash) + READONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReadOnly()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath 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.V1beta1Policy.AllowedHostPath parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath 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.V1beta1Policy.AllowedHostPath parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath 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.V1beta1Policy.AllowedHostPath parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath 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.V1beta1Policy.AllowedHostPath parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath 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.V1beta1Policy.AllowedHostPath 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; } /** * * *
     * AllowedHostPath defines the host volume conditions that will be enabled by a policy
     * for pods to use. It requires the path prefix to be defined.
     * 
* * Protobuf type {@code k8s.io.api.policy.v1beta1.AllowedHostPath} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.policy.v1beta1.AllowedHostPath) io.kubernetes.client.proto.V1beta1Policy.AllowedHostPathOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_AllowedHostPath_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_AllowedHostPath_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath.class, io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath.Builder.class); } // Construct using io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath.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(); pathPrefix_ = ""; bitField0_ = (bitField0_ & ~0x00000001); readOnly_ = false; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_AllowedHostPath_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath build() { io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath buildPartial() { io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath result = new io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.pathPrefix_ = pathPrefix_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.readOnly_ = readOnly_; 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.V1beta1Policy.AllowedHostPath) { return mergeFrom((io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath other) { if (other == io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath.getDefaultInstance()) return this; if (other.hasPathPrefix()) { bitField0_ |= 0x00000001; pathPrefix_ = other.pathPrefix_; onChanged(); } if (other.hasReadOnly()) { setReadOnly(other.getReadOnly()); } 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.V1beta1Policy.AllowedHostPath parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object pathPrefix_ = ""; /** * * *
       * pathPrefix is the path prefix that the host volume must match.
       * It does not support `*`.
       * Trailing slashes are trimmed when validating the path prefix with a host path.
       * Examples:
       * `/foo` would allow `/foo`, `/foo/` and `/foo/bar`
       * `/foo` would not allow `/food` or `/etc/foo`
       * 
* * optional string pathPrefix = 1; */ public boolean hasPathPrefix() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * pathPrefix is the path prefix that the host volume must match.
       * It does not support `*`.
       * Trailing slashes are trimmed when validating the path prefix with a host path.
       * Examples:
       * `/foo` would allow `/foo`, `/foo/` and `/foo/bar`
       * `/foo` would not allow `/food` or `/etc/foo`
       * 
* * optional string pathPrefix = 1; */ public java.lang.String getPathPrefix() { java.lang.Object ref = pathPrefix_; 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()) { pathPrefix_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * pathPrefix is the path prefix that the host volume must match.
       * It does not support `*`.
       * Trailing slashes are trimmed when validating the path prefix with a host path.
       * Examples:
       * `/foo` would allow `/foo`, `/foo/` and `/foo/bar`
       * `/foo` would not allow `/food` or `/etc/foo`
       * 
* * optional string pathPrefix = 1; */ public com.google.protobuf.ByteString getPathPrefixBytes() { java.lang.Object ref = pathPrefix_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pathPrefix_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * pathPrefix is the path prefix that the host volume must match.
       * It does not support `*`.
       * Trailing slashes are trimmed when validating the path prefix with a host path.
       * Examples:
       * `/foo` would allow `/foo`, `/foo/` and `/foo/bar`
       * `/foo` would not allow `/food` or `/etc/foo`
       * 
* * optional string pathPrefix = 1; */ public Builder setPathPrefix(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; pathPrefix_ = value; onChanged(); return this; } /** * * *
       * pathPrefix is the path prefix that the host volume must match.
       * It does not support `*`.
       * Trailing slashes are trimmed when validating the path prefix with a host path.
       * Examples:
       * `/foo` would allow `/foo`, `/foo/` and `/foo/bar`
       * `/foo` would not allow `/food` or `/etc/foo`
       * 
* * optional string pathPrefix = 1; */ public Builder clearPathPrefix() { bitField0_ = (bitField0_ & ~0x00000001); pathPrefix_ = getDefaultInstance().getPathPrefix(); onChanged(); return this; } /** * * *
       * pathPrefix is the path prefix that the host volume must match.
       * It does not support `*`.
       * Trailing slashes are trimmed when validating the path prefix with a host path.
       * Examples:
       * `/foo` would allow `/foo`, `/foo/` and `/foo/bar`
       * `/foo` would not allow `/food` or `/etc/foo`
       * 
* * optional string pathPrefix = 1; */ public Builder setPathPrefixBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; pathPrefix_ = value; onChanged(); return this; } private boolean readOnly_; /** * * *
       * when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.
       * +optional
       * 
* * optional bool readOnly = 2; */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.
       * +optional
       * 
* * optional bool readOnly = 2; */ public boolean getReadOnly() { return readOnly_; } /** * * *
       * when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.
       * +optional
       * 
* * optional bool readOnly = 2; */ public Builder setReadOnly(boolean value) { bitField0_ |= 0x00000002; readOnly_ = value; onChanged(); return this; } /** * * *
       * when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.
       * +optional
       * 
* * optional bool readOnly = 2; */ public Builder clearReadOnly() { bitField0_ = (bitField0_ & ~0x00000002); readOnly_ = false; 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.policy.v1beta1.AllowedHostPath) } // @@protoc_insertion_point(class_scope:k8s.io.api.policy.v1beta1.AllowedHostPath) private static final io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath(); } public static io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AllowedHostPath parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AllowedHostPath(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.V1beta1Policy.AllowedHostPath getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EvictionOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.policy.v1beta1.Eviction) com.google.protobuf.MessageOrBuilder { /** * * *
     * ObjectMeta describes the pod that is being evicted.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ boolean hasMetadata(); /** * * *
     * ObjectMeta describes the pod that is being evicted.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); /** * * *
     * ObjectMeta describes the pod that is being evicted.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder(); /** * * *
     * DeleteOptions may be provided
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions deleteOptions = 2; */ boolean hasDeleteOptions(); /** * * *
     * DeleteOptions may be provided
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions deleteOptions = 2; */ io.kubernetes.client.proto.Meta.DeleteOptions getDeleteOptions(); /** * * *
     * DeleteOptions may be provided
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions deleteOptions = 2; */ io.kubernetes.client.proto.Meta.DeleteOptionsOrBuilder getDeleteOptionsOrBuilder(); } /** * * *
   * Eviction evicts a pod from its node subject to certain policies and safety constraints.
   * This is a subresource of Pod.  A request to cause such an eviction is
   * created by POSTing to .../pods/<pod name>/evictions.
   * 
* * Protobuf type {@code k8s.io.api.policy.v1beta1.Eviction} */ public static final class Eviction extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.policy.v1beta1.Eviction) EvictionOrBuilder { private static final long serialVersionUID = 0L; // Use Eviction.newBuilder() to construct. private Eviction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Eviction() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Eviction( 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: { io.kubernetes.client.proto.Meta.DeleteOptions.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = deleteOptions_.toBuilder(); } deleteOptions_ = input.readMessage( io.kubernetes.client.proto.Meta.DeleteOptions.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(deleteOptions_); deleteOptions_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; 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.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_Eviction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_Eviction_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Policy.Eviction.class, io.kubernetes.client.proto.V1beta1Policy.Eviction.Builder.class); } private int bitField0_; public static final int METADATA_FIELD_NUMBER = 1; private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; /** * * *
     * ObjectMeta describes the pod that is being evicted.
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * ObjectMeta describes the pod that is being evicted.
     * +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_; } /** * * *
     * ObjectMeta describes the pod that is being evicted.
     * +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 DELETEOPTIONS_FIELD_NUMBER = 2; private io.kubernetes.client.proto.Meta.DeleteOptions deleteOptions_; /** * * *
     * DeleteOptions may be provided
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions deleteOptions = 2; */ public boolean hasDeleteOptions() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * DeleteOptions may be provided
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions deleteOptions = 2; */ public io.kubernetes.client.proto.Meta.DeleteOptions getDeleteOptions() { return deleteOptions_ == null ? io.kubernetes.client.proto.Meta.DeleteOptions.getDefaultInstance() : deleteOptions_; } /** * * *
     * DeleteOptions may be provided
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions deleteOptions = 2; */ public io.kubernetes.client.proto.Meta.DeleteOptionsOrBuilder getDeleteOptionsOrBuilder() { return deleteOptions_ == null ? io.kubernetes.client.proto.Meta.DeleteOptions.getDefaultInstance() : deleteOptions_; } 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()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getDeleteOptions()); } 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()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDeleteOptions()); } 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.V1beta1Policy.Eviction)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Policy.Eviction other = (io.kubernetes.client.proto.V1beta1Policy.Eviction) obj; boolean result = true; result = result && (hasMetadata() == other.hasMetadata()); if (hasMetadata()) { result = result && getMetadata().equals(other.getMetadata()); } result = result && (hasDeleteOptions() == other.hasDeleteOptions()); if (hasDeleteOptions()) { result = result && getDeleteOptions().equals(other.getDeleteOptions()); } 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 (hasDeleteOptions()) { hash = (37 * hash) + DELETEOPTIONS_FIELD_NUMBER; hash = (53 * hash) + getDeleteOptions().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Policy.Eviction parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.Eviction 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.V1beta1Policy.Eviction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.Eviction 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.V1beta1Policy.Eviction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.Eviction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Policy.Eviction parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.Eviction 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.V1beta1Policy.Eviction parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.Eviction 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.V1beta1Policy.Eviction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.Eviction 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.V1beta1Policy.Eviction 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; } /** * * *
     * Eviction evicts a pod from its node subject to certain policies and safety constraints.
     * This is a subresource of Pod.  A request to cause such an eviction is
     * created by POSTing to .../pods/<pod name>/evictions.
     * 
* * Protobuf type {@code k8s.io.api.policy.v1beta1.Eviction} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.policy.v1beta1.Eviction) io.kubernetes.client.proto.V1beta1Policy.EvictionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_Eviction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_Eviction_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Policy.Eviction.class, io.kubernetes.client.proto.V1beta1Policy.Eviction.Builder.class); } // Construct using io.kubernetes.client.proto.V1beta1Policy.Eviction.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(); getDeleteOptionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (metadataBuilder_ == null) { metadata_ = null; } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (deleteOptionsBuilder_ == null) { deleteOptions_ = null; } else { deleteOptionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_Eviction_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.Eviction getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Policy.Eviction.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.Eviction build() { io.kubernetes.client.proto.V1beta1Policy.Eviction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.Eviction buildPartial() { io.kubernetes.client.proto.V1beta1Policy.Eviction result = new io.kubernetes.client.proto.V1beta1Policy.Eviction(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 (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (deleteOptionsBuilder_ == null) { result.deleteOptions_ = deleteOptions_; } else { result.deleteOptions_ = deleteOptionsBuilder_.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.V1beta1Policy.Eviction) { return mergeFrom((io.kubernetes.client.proto.V1beta1Policy.Eviction) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Policy.Eviction other) { if (other == io.kubernetes.client.proto.V1beta1Policy.Eviction.getDefaultInstance()) return this; if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } if (other.hasDeleteOptions()) { mergeDeleteOptions(other.getDeleteOptions()); } 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.V1beta1Policy.Eviction parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Policy.Eviction) 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_; /** * * *
       * ObjectMeta describes the pod that is being evicted.
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * ObjectMeta describes the pod that is being evicted.
       * +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(); } } /** * * *
       * ObjectMeta describes the pod that is being evicted.
       * +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; } /** * * *
       * ObjectMeta describes the pod that is being evicted.
       * +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; } /** * * *
       * ObjectMeta describes the pod that is being evicted.
       * +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; } /** * * *
       * ObjectMeta describes the pod that is being evicted.
       * +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; } /** * * *
       * ObjectMeta describes the pod that is being evicted.
       * +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(); } /** * * *
       * ObjectMeta describes the pod that is being evicted.
       * +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_; } } /** * * *
       * ObjectMeta describes the pod that is being evicted.
       * +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 io.kubernetes.client.proto.Meta.DeleteOptions deleteOptions_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.DeleteOptions, io.kubernetes.client.proto.Meta.DeleteOptions.Builder, io.kubernetes.client.proto.Meta.DeleteOptionsOrBuilder> deleteOptionsBuilder_; /** * * *
       * DeleteOptions may be provided
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions deleteOptions = 2; * */ public boolean hasDeleteOptions() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * DeleteOptions may be provided
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions deleteOptions = 2; * */ public io.kubernetes.client.proto.Meta.DeleteOptions getDeleteOptions() { if (deleteOptionsBuilder_ == null) { return deleteOptions_ == null ? io.kubernetes.client.proto.Meta.DeleteOptions.getDefaultInstance() : deleteOptions_; } else { return deleteOptionsBuilder_.getMessage(); } } /** * * *
       * DeleteOptions may be provided
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions deleteOptions = 2; * */ public Builder setDeleteOptions(io.kubernetes.client.proto.Meta.DeleteOptions value) { if (deleteOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } deleteOptions_ = value; onChanged(); } else { deleteOptionsBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * DeleteOptions may be provided
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions deleteOptions = 2; * */ public Builder setDeleteOptions( io.kubernetes.client.proto.Meta.DeleteOptions.Builder builderForValue) { if (deleteOptionsBuilder_ == null) { deleteOptions_ = builderForValue.build(); onChanged(); } else { deleteOptionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * DeleteOptions may be provided
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions deleteOptions = 2; * */ public Builder mergeDeleteOptions(io.kubernetes.client.proto.Meta.DeleteOptions value) { if (deleteOptionsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && deleteOptions_ != null && deleteOptions_ != io.kubernetes.client.proto.Meta.DeleteOptions.getDefaultInstance()) { deleteOptions_ = io.kubernetes.client.proto.Meta.DeleteOptions.newBuilder(deleteOptions_) .mergeFrom(value) .buildPartial(); } else { deleteOptions_ = value; } onChanged(); } else { deleteOptionsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * DeleteOptions may be provided
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions deleteOptions = 2; * */ public Builder clearDeleteOptions() { if (deleteOptionsBuilder_ == null) { deleteOptions_ = null; onChanged(); } else { deleteOptionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * DeleteOptions may be provided
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions deleteOptions = 2; * */ public io.kubernetes.client.proto.Meta.DeleteOptions.Builder getDeleteOptionsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getDeleteOptionsFieldBuilder().getBuilder(); } /** * * *
       * DeleteOptions may be provided
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions deleteOptions = 2; * */ public io.kubernetes.client.proto.Meta.DeleteOptionsOrBuilder getDeleteOptionsOrBuilder() { if (deleteOptionsBuilder_ != null) { return deleteOptionsBuilder_.getMessageOrBuilder(); } else { return deleteOptions_ == null ? io.kubernetes.client.proto.Meta.DeleteOptions.getDefaultInstance() : deleteOptions_; } } /** * * *
       * DeleteOptions may be provided
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions deleteOptions = 2; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.DeleteOptions, io.kubernetes.client.proto.Meta.DeleteOptions.Builder, io.kubernetes.client.proto.Meta.DeleteOptionsOrBuilder> getDeleteOptionsFieldBuilder() { if (deleteOptionsBuilder_ == null) { deleteOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.DeleteOptions, io.kubernetes.client.proto.Meta.DeleteOptions.Builder, io.kubernetes.client.proto.Meta.DeleteOptionsOrBuilder>( getDeleteOptions(), getParentForChildren(), isClean()); deleteOptions_ = null; } return deleteOptionsBuilder_; } @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.policy.v1beta1.Eviction) } // @@protoc_insertion_point(class_scope:k8s.io.api.policy.v1beta1.Eviction) private static final io.kubernetes.client.proto.V1beta1Policy.Eviction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Policy.Eviction(); } public static io.kubernetes.client.proto.V1beta1Policy.Eviction getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Eviction parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Eviction(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.V1beta1Policy.Eviction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FSGroupStrategyOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.policy.v1beta1.FSGroupStrategyOptions) com.google.protobuf.MessageOrBuilder { /** * * *
     * rule is the strategy that will dictate what FSGroup is used in the SecurityContext.
     * +optional
     * 
* * optional string rule = 1; */ boolean hasRule(); /** * * *
     * rule is the strategy that will dictate what FSGroup is used in the SecurityContext.
     * +optional
     * 
* * optional string rule = 1; */ java.lang.String getRule(); /** * * *
     * rule is the strategy that will dictate what FSGroup is used in the SecurityContext.
     * +optional
     * 
* * optional string rule = 1; */ com.google.protobuf.ByteString getRuleBytes(); /** * * *
     * ranges are the allowed ranges of fs groups.  If you would like to force a single
     * fs group then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ java.util.List getRangesList(); /** * * *
     * ranges are the allowed ranges of fs groups.  If you would like to force a single
     * fs group then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ io.kubernetes.client.proto.V1beta1Policy.IDRange getRanges(int index); /** * * *
     * ranges are the allowed ranges of fs groups.  If you would like to force a single
     * fs group then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ int getRangesCount(); /** * * *
     * ranges are the allowed ranges of fs groups.  If you would like to force a single
     * fs group then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ java.util.List getRangesOrBuilderList(); /** * * *
     * ranges are the allowed ranges of fs groups.  If you would like to force a single
     * fs group then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ io.kubernetes.client.proto.V1beta1Policy.IDRangeOrBuilder getRangesOrBuilder(int index); } /** * * *
   * FSGroupStrategyOptions defines the strategy type and options used to create the strategy.
   * 
* * Protobuf type {@code k8s.io.api.policy.v1beta1.FSGroupStrategyOptions} */ public static final class FSGroupStrategyOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.policy.v1beta1.FSGroupStrategyOptions) FSGroupStrategyOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use FSGroupStrategyOptions.newBuilder() to construct. private FSGroupStrategyOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FSGroupStrategyOptions() { rule_ = ""; ranges_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FSGroupStrategyOptions( 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; rule_ = bs; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { ranges_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } ranges_.add( input.readMessage( io.kubernetes.client.proto.V1beta1Policy.IDRange.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)) { ranges_ = java.util.Collections.unmodifiableList(ranges_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_FSGroupStrategyOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_FSGroupStrategyOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions.class, io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions.Builder.class); } private int bitField0_; public static final int RULE_FIELD_NUMBER = 1; private volatile java.lang.Object rule_; /** * * *
     * rule is the strategy that will dictate what FSGroup is used in the SecurityContext.
     * +optional
     * 
* * optional string rule = 1; */ public boolean hasRule() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * rule is the strategy that will dictate what FSGroup is used in the SecurityContext.
     * +optional
     * 
* * optional string rule = 1; */ public java.lang.String getRule() { java.lang.Object ref = rule_; 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()) { rule_ = s; } return s; } } /** * * *
     * rule is the strategy that will dictate what FSGroup is used in the SecurityContext.
     * +optional
     * 
* * optional string rule = 1; */ public com.google.protobuf.ByteString getRuleBytes() { java.lang.Object ref = rule_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); rule_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RANGES_FIELD_NUMBER = 2; private java.util.List ranges_; /** * * *
     * ranges are the allowed ranges of fs groups.  If you would like to force a single
     * fs group then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public java.util.List getRangesList() { return ranges_; } /** * * *
     * ranges are the allowed ranges of fs groups.  If you would like to force a single
     * fs group then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public java.util.List getRangesOrBuilderList() { return ranges_; } /** * * *
     * ranges are the allowed ranges of fs groups.  If you would like to force a single
     * fs group then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public int getRangesCount() { return ranges_.size(); } /** * * *
     * ranges are the allowed ranges of fs groups.  If you would like to force a single
     * fs group then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public io.kubernetes.client.proto.V1beta1Policy.IDRange getRanges(int index) { return ranges_.get(index); } /** * * *
     * ranges are the allowed ranges of fs groups.  If you would like to force a single
     * fs group then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public io.kubernetes.client.proto.V1beta1Policy.IDRangeOrBuilder getRangesOrBuilder(int index) { return ranges_.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)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, rule_); } for (int i = 0; i < ranges_.size(); i++) { output.writeMessage(2, ranges_.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.GeneratedMessageV3.computeStringSize(1, rule_); } for (int i = 0; i < ranges_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, ranges_.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.V1beta1Policy.FSGroupStrategyOptions)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions other = (io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions) obj; boolean result = true; result = result && (hasRule() == other.hasRule()); if (hasRule()) { result = result && getRule().equals(other.getRule()); } result = result && getRangesList().equals(other.getRangesList()); 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 (hasRule()) { hash = (37 * hash) + RULE_FIELD_NUMBER; hash = (53 * hash) + getRule().hashCode(); } if (getRangesCount() > 0) { hash = (37 * hash) + RANGES_FIELD_NUMBER; hash = (53 * hash) + getRangesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions 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.V1beta1Policy.FSGroupStrategyOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions 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.V1beta1Policy.FSGroupStrategyOptions parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions 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.V1beta1Policy.FSGroupStrategyOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions 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.V1beta1Policy.FSGroupStrategyOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions 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.V1beta1Policy.FSGroupStrategyOptions 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; } /** * * *
     * FSGroupStrategyOptions defines the strategy type and options used to create the strategy.
     * 
* * Protobuf type {@code k8s.io.api.policy.v1beta1.FSGroupStrategyOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.policy.v1beta1.FSGroupStrategyOptions) io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_FSGroupStrategyOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_FSGroupStrategyOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions.class, io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions.Builder.class); } // Construct using // io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRangesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); rule_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (rangesBuilder_ == null) { ranges_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { rangesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_FSGroupStrategyOptions_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions build() { io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions buildPartial() { io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions result = new io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.rule_ = rule_; if (rangesBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { ranges_ = java.util.Collections.unmodifiableList(ranges_); bitField0_ = (bitField0_ & ~0x00000002); } result.ranges_ = ranges_; } else { result.ranges_ = rangesBuilder_.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.V1beta1Policy.FSGroupStrategyOptions) { return mergeFrom((io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions other) { if (other == io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions.getDefaultInstance()) return this; if (other.hasRule()) { bitField0_ |= 0x00000001; rule_ = other.rule_; onChanged(); } if (rangesBuilder_ == null) { if (!other.ranges_.isEmpty()) { if (ranges_.isEmpty()) { ranges_ = other.ranges_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRangesIsMutable(); ranges_.addAll(other.ranges_); } onChanged(); } } else { if (!other.ranges_.isEmpty()) { if (rangesBuilder_.isEmpty()) { rangesBuilder_.dispose(); rangesBuilder_ = null; ranges_ = other.ranges_; bitField0_ = (bitField0_ & ~0x00000002); rangesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRangesFieldBuilder() : null; } else { rangesBuilder_.addAllMessages(other.ranges_); } } } 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.V1beta1Policy.FSGroupStrategyOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object rule_ = ""; /** * * *
       * rule is the strategy that will dictate what FSGroup is used in the SecurityContext.
       * +optional
       * 
* * optional string rule = 1; */ public boolean hasRule() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * rule is the strategy that will dictate what FSGroup is used in the SecurityContext.
       * +optional
       * 
* * optional string rule = 1; */ public java.lang.String getRule() { java.lang.Object ref = rule_; 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()) { rule_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * rule is the strategy that will dictate what FSGroup is used in the SecurityContext.
       * +optional
       * 
* * optional string rule = 1; */ public com.google.protobuf.ByteString getRuleBytes() { java.lang.Object ref = rule_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); rule_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * rule is the strategy that will dictate what FSGroup is used in the SecurityContext.
       * +optional
       * 
* * optional string rule = 1; */ public Builder setRule(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; rule_ = value; onChanged(); return this; } /** * * *
       * rule is the strategy that will dictate what FSGroup is used in the SecurityContext.
       * +optional
       * 
* * optional string rule = 1; */ public Builder clearRule() { bitField0_ = (bitField0_ & ~0x00000001); rule_ = getDefaultInstance().getRule(); onChanged(); return this; } /** * * *
       * rule is the strategy that will dictate what FSGroup is used in the SecurityContext.
       * +optional
       * 
* * optional string rule = 1; */ public Builder setRuleBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; rule_ = value; onChanged(); return this; } private java.util.List ranges_ = java.util.Collections.emptyList(); private void ensureRangesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { ranges_ = new java.util.ArrayList(ranges_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.IDRange, io.kubernetes.client.proto.V1beta1Policy.IDRange.Builder, io.kubernetes.client.proto.V1beta1Policy.IDRangeOrBuilder> rangesBuilder_; /** * * *
       * ranges are the allowed ranges of fs groups.  If you would like to force a single
       * fs group then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public java.util.List getRangesList() { if (rangesBuilder_ == null) { return java.util.Collections.unmodifiableList(ranges_); } else { return rangesBuilder_.getMessageList(); } } /** * * *
       * ranges are the allowed ranges of fs groups.  If you would like to force a single
       * fs group then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public int getRangesCount() { if (rangesBuilder_ == null) { return ranges_.size(); } else { return rangesBuilder_.getCount(); } } /** * * *
       * ranges are the allowed ranges of fs groups.  If you would like to force a single
       * fs group then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public io.kubernetes.client.proto.V1beta1Policy.IDRange getRanges(int index) { if (rangesBuilder_ == null) { return ranges_.get(index); } else { return rangesBuilder_.getMessage(index); } } /** * * *
       * ranges are the allowed ranges of fs groups.  If you would like to force a single
       * fs group then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public Builder setRanges(int index, io.kubernetes.client.proto.V1beta1Policy.IDRange value) { if (rangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRangesIsMutable(); ranges_.set(index, value); onChanged(); } else { rangesBuilder_.setMessage(index, value); } return this; } /** * * *
       * ranges are the allowed ranges of fs groups.  If you would like to force a single
       * fs group then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public Builder setRanges( int index, io.kubernetes.client.proto.V1beta1Policy.IDRange.Builder builderForValue) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); ranges_.set(index, builderForValue.build()); onChanged(); } else { rangesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * ranges are the allowed ranges of fs groups.  If you would like to force a single
       * fs group then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public Builder addRanges(io.kubernetes.client.proto.V1beta1Policy.IDRange value) { if (rangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRangesIsMutable(); ranges_.add(value); onChanged(); } else { rangesBuilder_.addMessage(value); } return this; } /** * * *
       * ranges are the allowed ranges of fs groups.  If you would like to force a single
       * fs group then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public Builder addRanges(int index, io.kubernetes.client.proto.V1beta1Policy.IDRange value) { if (rangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRangesIsMutable(); ranges_.add(index, value); onChanged(); } else { rangesBuilder_.addMessage(index, value); } return this; } /** * * *
       * ranges are the allowed ranges of fs groups.  If you would like to force a single
       * fs group then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public Builder addRanges( io.kubernetes.client.proto.V1beta1Policy.IDRange.Builder builderForValue) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); ranges_.add(builderForValue.build()); onChanged(); } else { rangesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * ranges are the allowed ranges of fs groups.  If you would like to force a single
       * fs group then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public Builder addRanges( int index, io.kubernetes.client.proto.V1beta1Policy.IDRange.Builder builderForValue) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); ranges_.add(index, builderForValue.build()); onChanged(); } else { rangesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * ranges are the allowed ranges of fs groups.  If you would like to force a single
       * fs group then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public Builder addAllRanges( java.lang.Iterable values) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ranges_); onChanged(); } else { rangesBuilder_.addAllMessages(values); } return this; } /** * * *
       * ranges are the allowed ranges of fs groups.  If you would like to force a single
       * fs group then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public Builder clearRanges() { if (rangesBuilder_ == null) { ranges_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { rangesBuilder_.clear(); } return this; } /** * * *
       * ranges are the allowed ranges of fs groups.  If you would like to force a single
       * fs group then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public Builder removeRanges(int index) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); ranges_.remove(index); onChanged(); } else { rangesBuilder_.remove(index); } return this; } /** * * *
       * ranges are the allowed ranges of fs groups.  If you would like to force a single
       * fs group then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public io.kubernetes.client.proto.V1beta1Policy.IDRange.Builder getRangesBuilder(int index) { return getRangesFieldBuilder().getBuilder(index); } /** * * *
       * ranges are the allowed ranges of fs groups.  If you would like to force a single
       * fs group then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public io.kubernetes.client.proto.V1beta1Policy.IDRangeOrBuilder getRangesOrBuilder( int index) { if (rangesBuilder_ == null) { return ranges_.get(index); } else { return rangesBuilder_.getMessageOrBuilder(index); } } /** * * *
       * ranges are the allowed ranges of fs groups.  If you would like to force a single
       * fs group then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public java.util.List getRangesOrBuilderList() { if (rangesBuilder_ != null) { return rangesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ranges_); } } /** * * *
       * ranges are the allowed ranges of fs groups.  If you would like to force a single
       * fs group then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public io.kubernetes.client.proto.V1beta1Policy.IDRange.Builder addRangesBuilder() { return getRangesFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1beta1Policy.IDRange.getDefaultInstance()); } /** * * *
       * ranges are the allowed ranges of fs groups.  If you would like to force a single
       * fs group then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public io.kubernetes.client.proto.V1beta1Policy.IDRange.Builder addRangesBuilder(int index) { return getRangesFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1beta1Policy.IDRange.getDefaultInstance()); } /** * * *
       * ranges are the allowed ranges of fs groups.  If you would like to force a single
       * fs group then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public java.util.List getRangesBuilderList() { return getRangesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.IDRange, io.kubernetes.client.proto.V1beta1Policy.IDRange.Builder, io.kubernetes.client.proto.V1beta1Policy.IDRangeOrBuilder> getRangesFieldBuilder() { if (rangesBuilder_ == null) { rangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.IDRange, io.kubernetes.client.proto.V1beta1Policy.IDRange.Builder, io.kubernetes.client.proto.V1beta1Policy.IDRangeOrBuilder>( ranges_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); ranges_ = null; } return rangesBuilder_; } @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.policy.v1beta1.FSGroupStrategyOptions) } // @@protoc_insertion_point(class_scope:k8s.io.api.policy.v1beta1.FSGroupStrategyOptions) private static final io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions(); } public static io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FSGroupStrategyOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FSGroupStrategyOptions(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.V1beta1Policy.FSGroupStrategyOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface HostPortRangeOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.policy.v1beta1.HostPortRange) com.google.protobuf.MessageOrBuilder { /** * * *
     * min is the start of the range, inclusive.
     * 
* * optional int32 min = 1; */ boolean hasMin(); /** * * *
     * min is the start of the range, inclusive.
     * 
* * optional int32 min = 1; */ int getMin(); /** * * *
     * max is the end of the range, inclusive.
     * 
* * optional int32 max = 2; */ boolean hasMax(); /** * * *
     * max is the end of the range, inclusive.
     * 
* * optional int32 max = 2; */ int getMax(); } /** * * *
   * HostPortRange defines a range of host ports that will be enabled by a policy
   * for pods to use.  It requires both the start and end to be defined.
   * 
* * Protobuf type {@code k8s.io.api.policy.v1beta1.HostPortRange} */ public static final class HostPortRange extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.policy.v1beta1.HostPortRange) HostPortRangeOrBuilder { private static final long serialVersionUID = 0L; // Use HostPortRange.newBuilder() to construct. private HostPortRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private HostPortRange() { min_ = 0; max_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private HostPortRange( 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 8: { bitField0_ |= 0x00000001; min_ = input.readInt32(); break; } case 16: { bitField0_ |= 0x00000002; max_ = 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.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_HostPortRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_HostPortRange_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Policy.HostPortRange.class, io.kubernetes.client.proto.V1beta1Policy.HostPortRange.Builder.class); } private int bitField0_; public static final int MIN_FIELD_NUMBER = 1; private int min_; /** * * *
     * min is the start of the range, inclusive.
     * 
* * optional int32 min = 1; */ public boolean hasMin() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * min is the start of the range, inclusive.
     * 
* * optional int32 min = 1; */ public int getMin() { return min_; } public static final int MAX_FIELD_NUMBER = 2; private int max_; /** * * *
     * max is the end of the range, inclusive.
     * 
* * optional int32 max = 2; */ public boolean hasMax() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * max is the end of the range, inclusive.
     * 
* * optional int32 max = 2; */ public int getMax() { return max_; } 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.writeInt32(1, min_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, max_); } 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.computeInt32Size(1, min_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, max_); } 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.V1beta1Policy.HostPortRange)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Policy.HostPortRange other = (io.kubernetes.client.proto.V1beta1Policy.HostPortRange) obj; boolean result = true; result = result && (hasMin() == other.hasMin()); if (hasMin()) { result = result && (getMin() == other.getMin()); } result = result && (hasMax() == other.hasMax()); if (hasMax()) { result = result && (getMax() == other.getMax()); } 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 (hasMin()) { hash = (37 * hash) + MIN_FIELD_NUMBER; hash = (53 * hash) + getMin(); } if (hasMax()) { hash = (37 * hash) + MAX_FIELD_NUMBER; hash = (53 * hash) + getMax(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Policy.HostPortRange parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.HostPortRange 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.V1beta1Policy.HostPortRange parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.HostPortRange 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.V1beta1Policy.HostPortRange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.HostPortRange parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Policy.HostPortRange parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.HostPortRange 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.V1beta1Policy.HostPortRange parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.HostPortRange 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.V1beta1Policy.HostPortRange parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.HostPortRange 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.V1beta1Policy.HostPortRange 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; } /** * * *
     * HostPortRange defines a range of host ports that will be enabled by a policy
     * for pods to use.  It requires both the start and end to be defined.
     * 
* * Protobuf type {@code k8s.io.api.policy.v1beta1.HostPortRange} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.policy.v1beta1.HostPortRange) io.kubernetes.client.proto.V1beta1Policy.HostPortRangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_HostPortRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_HostPortRange_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Policy.HostPortRange.class, io.kubernetes.client.proto.V1beta1Policy.HostPortRange.Builder.class); } // Construct using io.kubernetes.client.proto.V1beta1Policy.HostPortRange.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(); min_ = 0; bitField0_ = (bitField0_ & ~0x00000001); max_ = 0; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_HostPortRange_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.HostPortRange getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Policy.HostPortRange.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.HostPortRange build() { io.kubernetes.client.proto.V1beta1Policy.HostPortRange result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.HostPortRange buildPartial() { io.kubernetes.client.proto.V1beta1Policy.HostPortRange result = new io.kubernetes.client.proto.V1beta1Policy.HostPortRange(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.min_ = min_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.max_ = max_; 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.V1beta1Policy.HostPortRange) { return mergeFrom((io.kubernetes.client.proto.V1beta1Policy.HostPortRange) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Policy.HostPortRange other) { if (other == io.kubernetes.client.proto.V1beta1Policy.HostPortRange.getDefaultInstance()) return this; if (other.hasMin()) { setMin(other.getMin()); } if (other.hasMax()) { setMax(other.getMax()); } 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.V1beta1Policy.HostPortRange parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Policy.HostPortRange) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int min_; /** * * *
       * min is the start of the range, inclusive.
       * 
* * optional int32 min = 1; */ public boolean hasMin() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * min is the start of the range, inclusive.
       * 
* * optional int32 min = 1; */ public int getMin() { return min_; } /** * * *
       * min is the start of the range, inclusive.
       * 
* * optional int32 min = 1; */ public Builder setMin(int value) { bitField0_ |= 0x00000001; min_ = value; onChanged(); return this; } /** * * *
       * min is the start of the range, inclusive.
       * 
* * optional int32 min = 1; */ public Builder clearMin() { bitField0_ = (bitField0_ & ~0x00000001); min_ = 0; onChanged(); return this; } private int max_; /** * * *
       * max is the end of the range, inclusive.
       * 
* * optional int32 max = 2; */ public boolean hasMax() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * max is the end of the range, inclusive.
       * 
* * optional int32 max = 2; */ public int getMax() { return max_; } /** * * *
       * max is the end of the range, inclusive.
       * 
* * optional int32 max = 2; */ public Builder setMax(int value) { bitField0_ |= 0x00000002; max_ = value; onChanged(); return this; } /** * * *
       * max is the end of the range, inclusive.
       * 
* * optional int32 max = 2; */ public Builder clearMax() { bitField0_ = (bitField0_ & ~0x00000002); max_ = 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.policy.v1beta1.HostPortRange) } // @@protoc_insertion_point(class_scope:k8s.io.api.policy.v1beta1.HostPortRange) private static final io.kubernetes.client.proto.V1beta1Policy.HostPortRange DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Policy.HostPortRange(); } public static io.kubernetes.client.proto.V1beta1Policy.HostPortRange getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public HostPortRange parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new HostPortRange(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.V1beta1Policy.HostPortRange getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IDRangeOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.policy.v1beta1.IDRange) com.google.protobuf.MessageOrBuilder { /** * * *
     * min is the start of the range, inclusive.
     * 
* * optional int64 min = 1; */ boolean hasMin(); /** * * *
     * min is the start of the range, inclusive.
     * 
* * optional int64 min = 1; */ long getMin(); /** * * *
     * max is the end of the range, inclusive.
     * 
* * optional int64 max = 2; */ boolean hasMax(); /** * * *
     * max is the end of the range, inclusive.
     * 
* * optional int64 max = 2; */ long getMax(); } /** * * *
   * IDRange provides a min/max of an allowed range of IDs.
   * 
* * Protobuf type {@code k8s.io.api.policy.v1beta1.IDRange} */ public static final class IDRange extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.policy.v1beta1.IDRange) IDRangeOrBuilder { private static final long serialVersionUID = 0L; // Use IDRange.newBuilder() to construct. private IDRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IDRange() { min_ = 0L; max_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private IDRange( 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 8: { bitField0_ |= 0x00000001; min_ = input.readInt64(); break; } case 16: { bitField0_ |= 0x00000002; max_ = input.readInt64(); 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.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_IDRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_IDRange_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Policy.IDRange.class, io.kubernetes.client.proto.V1beta1Policy.IDRange.Builder.class); } private int bitField0_; public static final int MIN_FIELD_NUMBER = 1; private long min_; /** * * *
     * min is the start of the range, inclusive.
     * 
* * optional int64 min = 1; */ public boolean hasMin() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * min is the start of the range, inclusive.
     * 
* * optional int64 min = 1; */ public long getMin() { return min_; } public static final int MAX_FIELD_NUMBER = 2; private long max_; /** * * *
     * max is the end of the range, inclusive.
     * 
* * optional int64 max = 2; */ public boolean hasMax() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * max is the end of the range, inclusive.
     * 
* * optional int64 max = 2; */ public long getMax() { return max_; } 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.writeInt64(1, min_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(2, max_); } 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.computeInt64Size(1, min_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, max_); } 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.V1beta1Policy.IDRange)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Policy.IDRange other = (io.kubernetes.client.proto.V1beta1Policy.IDRange) obj; boolean result = true; result = result && (hasMin() == other.hasMin()); if (hasMin()) { result = result && (getMin() == other.getMin()); } result = result && (hasMax() == other.hasMax()); if (hasMax()) { result = result && (getMax() == other.getMax()); } 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 (hasMin()) { hash = (37 * hash) + MIN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMin()); } if (hasMax()) { hash = (37 * hash) + MAX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMax()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Policy.IDRange parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.IDRange 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.V1beta1Policy.IDRange parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.IDRange 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.V1beta1Policy.IDRange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.IDRange parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Policy.IDRange parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.IDRange 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.V1beta1Policy.IDRange parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.IDRange 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.V1beta1Policy.IDRange parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.IDRange 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.V1beta1Policy.IDRange 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; } /** * * *
     * IDRange provides a min/max of an allowed range of IDs.
     * 
* * Protobuf type {@code k8s.io.api.policy.v1beta1.IDRange} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.policy.v1beta1.IDRange) io.kubernetes.client.proto.V1beta1Policy.IDRangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_IDRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_IDRange_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Policy.IDRange.class, io.kubernetes.client.proto.V1beta1Policy.IDRange.Builder.class); } // Construct using io.kubernetes.client.proto.V1beta1Policy.IDRange.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(); min_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); max_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_IDRange_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.IDRange getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Policy.IDRange.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.IDRange build() { io.kubernetes.client.proto.V1beta1Policy.IDRange result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.IDRange buildPartial() { io.kubernetes.client.proto.V1beta1Policy.IDRange result = new io.kubernetes.client.proto.V1beta1Policy.IDRange(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.min_ = min_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.max_ = max_; 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.V1beta1Policy.IDRange) { return mergeFrom((io.kubernetes.client.proto.V1beta1Policy.IDRange) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Policy.IDRange other) { if (other == io.kubernetes.client.proto.V1beta1Policy.IDRange.getDefaultInstance()) return this; if (other.hasMin()) { setMin(other.getMin()); } if (other.hasMax()) { setMax(other.getMax()); } 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.V1beta1Policy.IDRange parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Policy.IDRange) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long min_; /** * * *
       * min is the start of the range, inclusive.
       * 
* * optional int64 min = 1; */ public boolean hasMin() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * min is the start of the range, inclusive.
       * 
* * optional int64 min = 1; */ public long getMin() { return min_; } /** * * *
       * min is the start of the range, inclusive.
       * 
* * optional int64 min = 1; */ public Builder setMin(long value) { bitField0_ |= 0x00000001; min_ = value; onChanged(); return this; } /** * * *
       * min is the start of the range, inclusive.
       * 
* * optional int64 min = 1; */ public Builder clearMin() { bitField0_ = (bitField0_ & ~0x00000001); min_ = 0L; onChanged(); return this; } private long max_; /** * * *
       * max is the end of the range, inclusive.
       * 
* * optional int64 max = 2; */ public boolean hasMax() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * max is the end of the range, inclusive.
       * 
* * optional int64 max = 2; */ public long getMax() { return max_; } /** * * *
       * max is the end of the range, inclusive.
       * 
* * optional int64 max = 2; */ public Builder setMax(long value) { bitField0_ |= 0x00000002; max_ = value; onChanged(); return this; } /** * * *
       * max is the end of the range, inclusive.
       * 
* * optional int64 max = 2; */ public Builder clearMax() { bitField0_ = (bitField0_ & ~0x00000002); max_ = 0L; 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.policy.v1beta1.IDRange) } // @@protoc_insertion_point(class_scope:k8s.io.api.policy.v1beta1.IDRange) private static final io.kubernetes.client.proto.V1beta1Policy.IDRange DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Policy.IDRange(); } public static io.kubernetes.client.proto.V1beta1Policy.IDRange getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public IDRange parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new IDRange(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.V1beta1Policy.IDRange getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PodDisruptionBudgetOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.policy.v1beta1.PodDisruptionBudget) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard object's 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's 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's 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(); /** * * *
     * Specification of the desired behavior of the PodDisruptionBudget.
     * +optional
     * 
* * optional .k8s.io.api.policy.v1beta1.PodDisruptionBudgetSpec spec = 2; */ boolean hasSpec(); /** * * *
     * Specification of the desired behavior of the PodDisruptionBudget.
     * +optional
     * 
* * optional .k8s.io.api.policy.v1beta1.PodDisruptionBudgetSpec spec = 2; */ io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec getSpec(); /** * * *
     * Specification of the desired behavior of the PodDisruptionBudget.
     * +optional
     * 
* * optional .k8s.io.api.policy.v1beta1.PodDisruptionBudgetSpec spec = 2; */ io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpecOrBuilder getSpecOrBuilder(); /** * * *
     * Most recently observed status of the PodDisruptionBudget.
     * +optional
     * 
* * optional .k8s.io.api.policy.v1beta1.PodDisruptionBudgetStatus status = 3; */ boolean hasStatus(); /** * * *
     * Most recently observed status of the PodDisruptionBudget.
     * +optional
     * 
* * optional .k8s.io.api.policy.v1beta1.PodDisruptionBudgetStatus status = 3; */ io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus getStatus(); /** * * *
     * Most recently observed status of the PodDisruptionBudget.
     * +optional
     * 
* * optional .k8s.io.api.policy.v1beta1.PodDisruptionBudgetStatus status = 3; */ io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatusOrBuilder getStatusOrBuilder(); } /** * * *
   * PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods
   * 
* * Protobuf type {@code k8s.io.api.policy.v1beta1.PodDisruptionBudget} */ public static final class PodDisruptionBudget extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.policy.v1beta1.PodDisruptionBudget) PodDisruptionBudgetOrBuilder { private static final long serialVersionUID = 0L; // Use PodDisruptionBudget.newBuilder() to construct. private PodDisruptionBudget(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PodDisruptionBudget() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PodDisruptionBudget( 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: { io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = spec_.toBuilder(); } spec_ = input.readMessage( io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(spec_); spec_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = status_.toBuilder(); } status_ = input.readMessage( io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(status_); status_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; 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.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudget_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudget_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget.class, io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget.Builder.class); } private int bitField0_; public static final int METADATA_FIELD_NUMBER = 1; private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; /** * * *
     * Standard object's 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's 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's 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 SPEC_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec spec_; /** * * *
     * Specification of the desired behavior of the PodDisruptionBudget.
     * +optional
     * 
* * optional .k8s.io.api.policy.v1beta1.PodDisruptionBudgetSpec spec = 2; */ public boolean hasSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Specification of the desired behavior of the PodDisruptionBudget.
     * +optional
     * 
* * optional .k8s.io.api.policy.v1beta1.PodDisruptionBudgetSpec spec = 2; */ public io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec getSpec() { return spec_ == null ? io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec.getDefaultInstance() : spec_; } /** * * *
     * Specification of the desired behavior of the PodDisruptionBudget.
     * +optional
     * 
* * optional .k8s.io.api.policy.v1beta1.PodDisruptionBudgetSpec spec = 2; */ public io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpecOrBuilder getSpecOrBuilder() { return spec_ == null ? io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec.getDefaultInstance() : spec_; } public static final int STATUS_FIELD_NUMBER = 3; private io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus status_; /** * * *
     * Most recently observed status of the PodDisruptionBudget.
     * +optional
     * 
* * optional .k8s.io.api.policy.v1beta1.PodDisruptionBudgetStatus status = 3; */ public boolean hasStatus() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * Most recently observed status of the PodDisruptionBudget.
     * +optional
     * 
* * optional .k8s.io.api.policy.v1beta1.PodDisruptionBudgetStatus status = 3; */ public io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus getStatus() { return status_ == null ? io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus.getDefaultInstance() : status_; } /** * * *
     * Most recently observed status of the PodDisruptionBudget.
     * +optional
     * 
* * optional .k8s.io.api.policy.v1beta1.PodDisruptionBudgetStatus status = 3; */ public io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatusOrBuilder getStatusOrBuilder() { return status_ == null ? io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus.getDefaultInstance() : status_; } 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()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getSpec()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getStatus()); } 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()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSpec()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStatus()); } 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.V1beta1Policy.PodDisruptionBudget)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget other = (io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget) obj; boolean result = true; result = result && (hasMetadata() == other.hasMetadata()); if (hasMetadata()) { result = result && getMetadata().equals(other.getMetadata()); } result = result && (hasSpec() == other.hasSpec()); if (hasSpec()) { result = result && getSpec().equals(other.getSpec()); } result = result && (hasStatus() == other.hasStatus()); if (hasStatus()) { result = result && getStatus().equals(other.getStatus()); } 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 (hasSpec()) { hash = (37 * hash) + SPEC_FIELD_NUMBER; hash = (53 * hash) + getSpec().hashCode(); } if (hasStatus()) { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget 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.V1beta1Policy.PodDisruptionBudget parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget 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.V1beta1Policy.PodDisruptionBudget parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget 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.V1beta1Policy.PodDisruptionBudget parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget 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.V1beta1Policy.PodDisruptionBudget parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget 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.V1beta1Policy.PodDisruptionBudget 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; } /** * * *
     * PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods
     * 
* * Protobuf type {@code k8s.io.api.policy.v1beta1.PodDisruptionBudget} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.policy.v1beta1.PodDisruptionBudget) io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudget_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudget_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget.class, io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget.Builder.class); } // Construct using io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget.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(); getSpecFieldBuilder(); getStatusFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (metadataBuilder_ == null) { metadata_ = null; } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (specBuilder_ == null) { spec_ = null; } else { specBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (statusBuilder_ == null) { status_ = null; } else { statusBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudget_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget build() { io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget buildPartial() { io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget result = new io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget(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 (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (specBuilder_ == null) { result.spec_ = spec_; } else { result.spec_ = specBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (statusBuilder_ == null) { result.status_ = status_; } else { result.status_ = statusBuilder_.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.V1beta1Policy.PodDisruptionBudget) { return mergeFrom((io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget other) { if (other == io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget.getDefaultInstance()) return this; if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } if (other.hasSpec()) { mergeSpec(other.getSpec()); } if (other.hasStatus()) { mergeStatus(other.getStatus()); } 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.V1beta1Policy.PodDisruptionBudget parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget) 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's 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's 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's 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's 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's 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's 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's 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's 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's 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 io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec spec_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec, io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec.Builder, io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpecOrBuilder> specBuilder_; /** * * *
       * Specification of the desired behavior of the PodDisruptionBudget.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.PodDisruptionBudgetSpec spec = 2; */ public boolean hasSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Specification of the desired behavior of the PodDisruptionBudget.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.PodDisruptionBudgetSpec spec = 2; */ public io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec getSpec() { if (specBuilder_ == null) { return spec_ == null ? io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec .getDefaultInstance() : spec_; } else { return specBuilder_.getMessage(); } } /** * * *
       * Specification of the desired behavior of the PodDisruptionBudget.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.PodDisruptionBudgetSpec spec = 2; */ public Builder setSpec( io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec value) { if (specBuilder_ == null) { if (value == null) { throw new NullPointerException(); } spec_ = value; onChanged(); } else { specBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Specification of the desired behavior of the PodDisruptionBudget.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.PodDisruptionBudgetSpec spec = 2; */ public Builder setSpec( io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec.Builder builderForValue) { if (specBuilder_ == null) { spec_ = builderForValue.build(); onChanged(); } else { specBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Specification of the desired behavior of the PodDisruptionBudget.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.PodDisruptionBudgetSpec spec = 2; */ public Builder mergeSpec( io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec value) { if (specBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && spec_ != null && spec_ != io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec .getDefaultInstance()) { spec_ = io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec.newBuilder(spec_) .mergeFrom(value) .buildPartial(); } else { spec_ = value; } onChanged(); } else { specBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Specification of the desired behavior of the PodDisruptionBudget.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.PodDisruptionBudgetSpec spec = 2; */ public Builder clearSpec() { if (specBuilder_ == null) { spec_ = null; onChanged(); } else { specBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * Specification of the desired behavior of the PodDisruptionBudget.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.PodDisruptionBudgetSpec spec = 2; */ public io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec.Builder getSpecBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSpecFieldBuilder().getBuilder(); } /** * * *
       * Specification of the desired behavior of the PodDisruptionBudget.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.PodDisruptionBudgetSpec spec = 2; */ public io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpecOrBuilder getSpecOrBuilder() { if (specBuilder_ != null) { return specBuilder_.getMessageOrBuilder(); } else { return spec_ == null ? io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec .getDefaultInstance() : spec_; } } /** * * *
       * Specification of the desired behavior of the PodDisruptionBudget.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.PodDisruptionBudgetSpec spec = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec, io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec.Builder, io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpecOrBuilder> getSpecFieldBuilder() { if (specBuilder_ == null) { specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec, io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec.Builder, io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpecOrBuilder>( getSpec(), getParentForChildren(), isClean()); spec_ = null; } return specBuilder_; } private io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus status_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus, io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus.Builder, io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatusOrBuilder> statusBuilder_; /** * * *
       * Most recently observed status of the PodDisruptionBudget.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.PodDisruptionBudgetStatus status = 3; */ public boolean hasStatus() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Most recently observed status of the PodDisruptionBudget.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.PodDisruptionBudgetStatus status = 3; */ public io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus getStatus() { if (statusBuilder_ == null) { return status_ == null ? io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus .getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } } /** * * *
       * Most recently observed status of the PodDisruptionBudget.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.PodDisruptionBudgetStatus status = 3; */ public Builder setStatus( io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus value) { if (statusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } status_ = value; onChanged(); } else { statusBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Most recently observed status of the PodDisruptionBudget.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.PodDisruptionBudgetStatus status = 3; */ public Builder setStatus( io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); onChanged(); } else { statusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Most recently observed status of the PodDisruptionBudget.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.PodDisruptionBudgetStatus status = 3; */ public Builder mergeStatus( io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus value) { if (statusBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && status_ != null && status_ != io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus .getDefaultInstance()) { status_ = io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus.newBuilder( status_) .mergeFrom(value) .buildPartial(); } else { status_ = value; } onChanged(); } else { statusBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * Most recently observed status of the PodDisruptionBudget.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.PodDisruptionBudgetStatus status = 3; */ public Builder clearStatus() { if (statusBuilder_ == null) { status_ = null; onChanged(); } else { statusBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * Most recently observed status of the PodDisruptionBudget.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.PodDisruptionBudgetStatus status = 3; */ public io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus.Builder getStatusBuilder() { bitField0_ |= 0x00000004; onChanged(); return getStatusFieldBuilder().getBuilder(); } /** * * *
       * Most recently observed status of the PodDisruptionBudget.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.PodDisruptionBudgetStatus status = 3; */ public io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { return status_ == null ? io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus .getDefaultInstance() : status_; } } /** * * *
       * Most recently observed status of the PodDisruptionBudget.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.PodDisruptionBudgetStatus status = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus, io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus.Builder, io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus, io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus.Builder, io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatusOrBuilder>( getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; } @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.policy.v1beta1.PodDisruptionBudget) } // @@protoc_insertion_point(class_scope:k8s.io.api.policy.v1beta1.PodDisruptionBudget) private static final io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget(); } public static io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PodDisruptionBudget parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PodDisruptionBudget(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.V1beta1Policy.PodDisruptionBudget getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PodDisruptionBudgetListOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.policy.v1beta1.PodDisruptionBudgetList) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard object's 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.ListMeta metadata = 1; */ boolean hasMetadata(); /** * * *
     * Standard object's 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.ListMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ListMeta getMetadata(); /** * * *
     * Standard object's 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.ListMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); /** * * *
     * items list individual PodDisruptionBudget objects
     * 
* * repeated .k8s.io.api.policy.v1beta1.PodDisruptionBudget items = 2; */ java.util.List getItemsList(); /** * * *
     * items list individual PodDisruptionBudget objects
     * 
* * repeated .k8s.io.api.policy.v1beta1.PodDisruptionBudget items = 2; */ io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget getItems(int index); /** * * *
     * items list individual PodDisruptionBudget objects
     * 
* * repeated .k8s.io.api.policy.v1beta1.PodDisruptionBudget items = 2; */ int getItemsCount(); /** * * *
     * items list individual PodDisruptionBudget objects
     * 
* * repeated .k8s.io.api.policy.v1beta1.PodDisruptionBudget items = 2; */ java.util.List getItemsOrBuilderList(); /** * * *
     * items list individual PodDisruptionBudget objects
     * 
* * repeated .k8s.io.api.policy.v1beta1.PodDisruptionBudget items = 2; */ io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetOrBuilder getItemsOrBuilder( int index); } /** * * *
   * PodDisruptionBudgetList is a collection of PodDisruptionBudgets.
   * 
* * Protobuf type {@code k8s.io.api.policy.v1beta1.PodDisruptionBudgetList} */ public static final class PodDisruptionBudgetList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.policy.v1beta1.PodDisruptionBudgetList) PodDisruptionBudgetListOrBuilder { private static final long serialVersionUID = 0L; // Use PodDisruptionBudgetList.newBuilder() to construct. private PodDisruptionBudgetList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PodDisruptionBudgetList() { items_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PodDisruptionBudgetList( 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.V1beta1Policy.PodDisruptionBudget>(); mutable_bitField0_ |= 0x00000002; } items_.add( input.readMessage( io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget.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.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudgetList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudgetList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetList.class, io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetList.Builder.class); } private int bitField0_; public static final int METADATA_FIELD_NUMBER = 1; private io.kubernetes.client.proto.Meta.ListMeta metadata_; /** * * *
     * Standard object's 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.ListMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Standard object's 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.ListMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; } /** * * *
     * Standard object's 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.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 items_; /** * * *
     * items list individual PodDisruptionBudget objects
     * 
* * repeated .k8s.io.api.policy.v1beta1.PodDisruptionBudget items = 2; */ public java.util.List getItemsList() { return items_; } /** * * *
     * items list individual PodDisruptionBudget objects
     * 
* * repeated .k8s.io.api.policy.v1beta1.PodDisruptionBudget items = 2; */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetOrBuilder> getItemsOrBuilderList() { return items_; } /** * * *
     * items list individual PodDisruptionBudget objects
     * 
* * repeated .k8s.io.api.policy.v1beta1.PodDisruptionBudget items = 2; */ public int getItemsCount() { return items_.size(); } /** * * *
     * items list individual PodDisruptionBudget objects
     * 
* * repeated .k8s.io.api.policy.v1beta1.PodDisruptionBudget items = 2; */ public io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget getItems(int index) { return items_.get(index); } /** * * *
     * items list individual PodDisruptionBudget objects
     * 
* * repeated .k8s.io.api.policy.v1beta1.PodDisruptionBudget items = 2; */ public io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetOrBuilder 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.V1beta1Policy.PodDisruptionBudgetList)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetList other = (io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetList) 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.V1beta1Policy.PodDisruptionBudgetList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetList 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.V1beta1Policy.PodDisruptionBudgetList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetList 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.V1beta1Policy.PodDisruptionBudgetList parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetList parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetList 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.V1beta1Policy.PodDisruptionBudgetList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetList 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.V1beta1Policy.PodDisruptionBudgetList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetList 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.V1beta1Policy.PodDisruptionBudgetList 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; } /** * * *
     * PodDisruptionBudgetList is a collection of PodDisruptionBudgets.
     * 
* * Protobuf type {@code k8s.io.api.policy.v1beta1.PodDisruptionBudgetList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.policy.v1beta1.PodDisruptionBudgetList) io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudgetList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudgetList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetList.class, io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetList.Builder.class); } // Construct using // io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetList.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.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudgetList_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetList getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetList .getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetList build() { io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetList buildPartial() { io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetList result = new io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetList(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.V1beta1Policy.PodDisruptionBudgetList) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetList) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetList other) { if (other == io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetList .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.V1beta1Policy.PodDisruptionBudgetList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetList) 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 object's 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.ListMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Standard object's 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.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 object's 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.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 object's 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.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 object's 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.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 object's 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.ListMeta metadata = 1; */ public Builder clearMetadata() { if (metadataBuilder_ == null) { metadata_ = null; onChanged(); } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * Standard object's 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.ListMeta metadata = 1; */ public io.kubernetes.client.proto.Meta.ListMeta.Builder getMetadataBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** * * *
       * Standard object's 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.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 object's 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.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 items_ = java.util.Collections.emptyList(); private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { items_ = new java.util.ArrayList( items_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget, io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget.Builder, io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetOrBuilder> itemsBuilder_; /** * * *
       * items list individual PodDisruptionBudget objects
       * 
* * repeated .k8s.io.api.policy.v1beta1.PodDisruptionBudget items = 2; */ public java.util.List getItemsList() { if (itemsBuilder_ == null) { return java.util.Collections.unmodifiableList(items_); } else { return itemsBuilder_.getMessageList(); } } /** * * *
       * items list individual PodDisruptionBudget objects
       * 
* * repeated .k8s.io.api.policy.v1beta1.PodDisruptionBudget items = 2; */ public int getItemsCount() { if (itemsBuilder_ == null) { return items_.size(); } else { return itemsBuilder_.getCount(); } } /** * * *
       * items list individual PodDisruptionBudget objects
       * 
* * repeated .k8s.io.api.policy.v1beta1.PodDisruptionBudget items = 2; */ public io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget getItems(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessage(index); } } /** * * *
       * items list individual PodDisruptionBudget objects
       * 
* * repeated .k8s.io.api.policy.v1beta1.PodDisruptionBudget items = 2; */ public Builder setItems( int index, io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.set(index, value); onChanged(); } else { itemsBuilder_.setMessage(index, value); } return this; } /** * * *
       * items list individual PodDisruptionBudget objects
       * 
* * repeated .k8s.io.api.policy.v1beta1.PodDisruptionBudget items = 2; */ public Builder setItems( int index, io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * items list individual PodDisruptionBudget objects
       * 
* * repeated .k8s.io.api.policy.v1beta1.PodDisruptionBudget items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(value); onChanged(); } else { itemsBuilder_.addMessage(value); } return this; } /** * * *
       * items list individual PodDisruptionBudget objects
       * 
* * repeated .k8s.io.api.policy.v1beta1.PodDisruptionBudget items = 2; */ public Builder addItems( int index, io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(index, value); onChanged(); } else { itemsBuilder_.addMessage(index, value); } return this; } /** * * *
       * items list individual PodDisruptionBudget objects
       * 
* * repeated .k8s.io.api.policy.v1beta1.PodDisruptionBudget items = 2; */ public Builder addItems( io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * items list individual PodDisruptionBudget objects
       * 
* * repeated .k8s.io.api.policy.v1beta1.PodDisruptionBudget items = 2; */ public Builder addItems( int index, io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * items list individual PodDisruptionBudget objects
       * 
* * repeated .k8s.io.api.policy.v1beta1.PodDisruptionBudget items = 2; */ public Builder addAllItems( java.lang.Iterable values) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); onChanged(); } else { itemsBuilder_.addAllMessages(values); } return this; } /** * * *
       * items list individual PodDisruptionBudget objects
       * 
* * repeated .k8s.io.api.policy.v1beta1.PodDisruptionBudget items = 2; */ public Builder clearItems() { if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { itemsBuilder_.clear(); } return this; } /** * * *
       * items list individual PodDisruptionBudget objects
       * 
* * repeated .k8s.io.api.policy.v1beta1.PodDisruptionBudget items = 2; */ public Builder removeItems(int index) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.remove(index); onChanged(); } else { itemsBuilder_.remove(index); } return this; } /** * * *
       * items list individual PodDisruptionBudget objects
       * 
* * repeated .k8s.io.api.policy.v1beta1.PodDisruptionBudget items = 2; */ public io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget.Builder getItemsBuilder( int index) { return getItemsFieldBuilder().getBuilder(index); } /** * * *
       * items list individual PodDisruptionBudget objects
       * 
* * repeated .k8s.io.api.policy.v1beta1.PodDisruptionBudget items = 2; */ public io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetOrBuilder getItemsOrBuilder(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * items list individual PodDisruptionBudget objects
       * 
* * repeated .k8s.io.api.policy.v1beta1.PodDisruptionBudget items = 2; */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetOrBuilder> getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(items_); } } /** * * *
       * items list individual PodDisruptionBudget objects
       * 
* * repeated .k8s.io.api.policy.v1beta1.PodDisruptionBudget items = 2; */ public io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget.Builder addItemsBuilder() { return getItemsFieldBuilder() .addBuilder( io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget.getDefaultInstance()); } /** * * *
       * items list individual PodDisruptionBudget objects
       * 
* * repeated .k8s.io.api.policy.v1beta1.PodDisruptionBudget items = 2; */ public io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget.Builder addItemsBuilder( int index) { return getItemsFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget.getDefaultInstance()); } /** * * *
       * items list individual PodDisruptionBudget objects
       * 
* * repeated .k8s.io.api.policy.v1beta1.PodDisruptionBudget items = 2; */ public java.util.List getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget, io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget.Builder, io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget, io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudget.Builder, io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetOrBuilder>( 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.policy.v1beta1.PodDisruptionBudgetList) } // @@protoc_insertion_point(class_scope:k8s.io.api.policy.v1beta1.PodDisruptionBudgetList) private static final io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetList(); } public static io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetList getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PodDisruptionBudgetList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PodDisruptionBudgetList(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.V1beta1Policy.PodDisruptionBudgetList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PodDisruptionBudgetSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.policy.v1beta1.PodDisruptionBudgetSpec) com.google.protobuf.MessageOrBuilder { /** * * *
     * An eviction is allowed if at least "minAvailable" pods selected by
     * "selector" will still be available after the eviction, i.e. even in the
     * absence of the evicted pod.  So for example you can prevent all voluntary
     * evictions by specifying "100%".
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString minAvailable = 1; */ boolean hasMinAvailable(); /** * * *
     * An eviction is allowed if at least "minAvailable" pods selected by
     * "selector" will still be available after the eviction, i.e. even in the
     * absence of the evicted pod.  So for example you can prevent all voluntary
     * evictions by specifying "100%".
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString minAvailable = 1; */ io.kubernetes.client.proto.IntStr.IntOrString getMinAvailable(); /** * * *
     * An eviction is allowed if at least "minAvailable" pods selected by
     * "selector" will still be available after the eviction, i.e. even in the
     * absence of the evicted pod.  So for example you can prevent all voluntary
     * evictions by specifying "100%".
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString minAvailable = 1; */ io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder getMinAvailableOrBuilder(); /** * * *
     * Label query over pods whose evictions are managed by the disruption
     * budget.
     * A null selector selects no pods.
     * An empty selector ({}) also selects no pods, which differs from standard behavior of selecting all pods.
     * In policy/v1, an empty selector will select all pods in the namespace.
     * +patchStrategy=replace
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; */ boolean hasSelector(); /** * * *
     * Label query over pods whose evictions are managed by the disruption
     * budget.
     * A null selector selects no pods.
     * An empty selector ({}) also selects no pods, which differs from standard behavior of selecting all pods.
     * In policy/v1, an empty selector will select all pods in the namespace.
     * +patchStrategy=replace
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; */ io.kubernetes.client.proto.Meta.LabelSelector getSelector(); /** * * *
     * Label query over pods whose evictions are managed by the disruption
     * budget.
     * A null selector selects no pods.
     * An empty selector ({}) also selects no pods, which differs from standard behavior of selecting all pods.
     * In policy/v1, an empty selector will select all pods in the namespace.
     * +patchStrategy=replace
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; */ io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getSelectorOrBuilder(); /** * * *
     * An eviction is allowed if at most "maxUnavailable" pods selected by
     * "selector" are unavailable after the eviction, i.e. even in absence of
     * the evicted pod. For example, one can prevent all voluntary evictions
     * by specifying 0. This is a mutually exclusive setting with "minAvailable".
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 3; */ boolean hasMaxUnavailable(); /** * * *
     * An eviction is allowed if at most "maxUnavailable" pods selected by
     * "selector" are unavailable after the eviction, i.e. even in absence of
     * the evicted pod. For example, one can prevent all voluntary evictions
     * by specifying 0. This is a mutually exclusive setting with "minAvailable".
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 3; */ io.kubernetes.client.proto.IntStr.IntOrString getMaxUnavailable(); /** * * *
     * An eviction is allowed if at most "maxUnavailable" pods selected by
     * "selector" are unavailable after the eviction, i.e. even in absence of
     * the evicted pod. For example, one can prevent all voluntary evictions
     * by specifying 0. This is a mutually exclusive setting with "minAvailable".
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 3; */ io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder getMaxUnavailableOrBuilder(); } /** * * *
   * PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.
   * 
* * Protobuf type {@code k8s.io.api.policy.v1beta1.PodDisruptionBudgetSpec} */ public static final class PodDisruptionBudgetSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.policy.v1beta1.PodDisruptionBudgetSpec) PodDisruptionBudgetSpecOrBuilder { private static final long serialVersionUID = 0L; // Use PodDisruptionBudgetSpec.newBuilder() to construct. private PodDisruptionBudgetSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PodDisruptionBudgetSpec() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PodDisruptionBudgetSpec( 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.IntStr.IntOrString.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = minAvailable_.toBuilder(); } minAvailable_ = input.readMessage( io.kubernetes.client.proto.IntStr.IntOrString.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(minAvailable_); minAvailable_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { io.kubernetes.client.proto.Meta.LabelSelector.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = selector_.toBuilder(); } selector_ = input.readMessage( io.kubernetes.client.proto.Meta.LabelSelector.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(selector_); selector_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { io.kubernetes.client.proto.IntStr.IntOrString.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = maxUnavailable_.toBuilder(); } maxUnavailable_ = input.readMessage( io.kubernetes.client.proto.IntStr.IntOrString.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(maxUnavailable_); maxUnavailable_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; 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.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudgetSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudgetSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec.class, io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec.Builder.class); } private int bitField0_; public static final int MINAVAILABLE_FIELD_NUMBER = 1; private io.kubernetes.client.proto.IntStr.IntOrString minAvailable_; /** * * *
     * An eviction is allowed if at least "minAvailable" pods selected by
     * "selector" will still be available after the eviction, i.e. even in the
     * absence of the evicted pod.  So for example you can prevent all voluntary
     * evictions by specifying "100%".
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString minAvailable = 1; */ public boolean hasMinAvailable() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * An eviction is allowed if at least "minAvailable" pods selected by
     * "selector" will still be available after the eviction, i.e. even in the
     * absence of the evicted pod.  So for example you can prevent all voluntary
     * evictions by specifying "100%".
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString minAvailable = 1; */ public io.kubernetes.client.proto.IntStr.IntOrString getMinAvailable() { return minAvailable_ == null ? io.kubernetes.client.proto.IntStr.IntOrString.getDefaultInstance() : minAvailable_; } /** * * *
     * An eviction is allowed if at least "minAvailable" pods selected by
     * "selector" will still be available after the eviction, i.e. even in the
     * absence of the evicted pod.  So for example you can prevent all voluntary
     * evictions by specifying "100%".
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString minAvailable = 1; */ public io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder getMinAvailableOrBuilder() { return minAvailable_ == null ? io.kubernetes.client.proto.IntStr.IntOrString.getDefaultInstance() : minAvailable_; } public static final int SELECTOR_FIELD_NUMBER = 2; private io.kubernetes.client.proto.Meta.LabelSelector selector_; /** * * *
     * Label query over pods whose evictions are managed by the disruption
     * budget.
     * A null selector selects no pods.
     * An empty selector ({}) also selects no pods, which differs from standard behavior of selecting all pods.
     * In policy/v1, an empty selector will select all pods in the namespace.
     * +patchStrategy=replace
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; */ public boolean hasSelector() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Label query over pods whose evictions are managed by the disruption
     * budget.
     * A null selector selects no pods.
     * An empty selector ({}) also selects no pods, which differs from standard behavior of selecting all pods.
     * In policy/v1, an empty selector will select all pods in the namespace.
     * +patchStrategy=replace
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; */ public io.kubernetes.client.proto.Meta.LabelSelector getSelector() { return selector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : selector_; } /** * * *
     * Label query over pods whose evictions are managed by the disruption
     * budget.
     * A null selector selects no pods.
     * An empty selector ({}) also selects no pods, which differs from standard behavior of selecting all pods.
     * In policy/v1, an empty selector will select all pods in the namespace.
     * +patchStrategy=replace
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; */ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getSelectorOrBuilder() { return selector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : selector_; } public static final int MAXUNAVAILABLE_FIELD_NUMBER = 3; private io.kubernetes.client.proto.IntStr.IntOrString maxUnavailable_; /** * * *
     * An eviction is allowed if at most "maxUnavailable" pods selected by
     * "selector" are unavailable after the eviction, i.e. even in absence of
     * the evicted pod. For example, one can prevent all voluntary evictions
     * by specifying 0. This is a mutually exclusive setting with "minAvailable".
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 3; */ public boolean hasMaxUnavailable() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * An eviction is allowed if at most "maxUnavailable" pods selected by
     * "selector" are unavailable after the eviction, i.e. even in absence of
     * the evicted pod. For example, one can prevent all voluntary evictions
     * by specifying 0. This is a mutually exclusive setting with "minAvailable".
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 3; */ public io.kubernetes.client.proto.IntStr.IntOrString getMaxUnavailable() { return maxUnavailable_ == null ? io.kubernetes.client.proto.IntStr.IntOrString.getDefaultInstance() : maxUnavailable_; } /** * * *
     * An eviction is allowed if at most "maxUnavailable" pods selected by
     * "selector" are unavailable after the eviction, i.e. even in absence of
     * the evicted pod. For example, one can prevent all voluntary evictions
     * by specifying 0. This is a mutually exclusive setting with "minAvailable".
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 3; */ public io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder getMaxUnavailableOrBuilder() { return maxUnavailable_ == null ? io.kubernetes.client.proto.IntStr.IntOrString.getDefaultInstance() : maxUnavailable_; } 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, getMinAvailable()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getSelector()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getMaxUnavailable()); } 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, getMinAvailable()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSelector()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMaxUnavailable()); } 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.V1beta1Policy.PodDisruptionBudgetSpec)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec other = (io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec) obj; boolean result = true; result = result && (hasMinAvailable() == other.hasMinAvailable()); if (hasMinAvailable()) { result = result && getMinAvailable().equals(other.getMinAvailable()); } result = result && (hasSelector() == other.hasSelector()); if (hasSelector()) { result = result && getSelector().equals(other.getSelector()); } result = result && (hasMaxUnavailable() == other.hasMaxUnavailable()); if (hasMaxUnavailable()) { result = result && getMaxUnavailable().equals(other.getMaxUnavailable()); } 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 (hasMinAvailable()) { hash = (37 * hash) + MINAVAILABLE_FIELD_NUMBER; hash = (53 * hash) + getMinAvailable().hashCode(); } if (hasSelector()) { hash = (37 * hash) + SELECTOR_FIELD_NUMBER; hash = (53 * hash) + getSelector().hashCode(); } if (hasMaxUnavailable()) { hash = (37 * hash) + MAXUNAVAILABLE_FIELD_NUMBER; hash = (53 * hash) + getMaxUnavailable().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec 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.V1beta1Policy.PodDisruptionBudgetSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec 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.V1beta1Policy.PodDisruptionBudgetSpec parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec 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.V1beta1Policy.PodDisruptionBudgetSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec 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.V1beta1Policy.PodDisruptionBudgetSpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec 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.V1beta1Policy.PodDisruptionBudgetSpec 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; } /** * * *
     * PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.
     * 
* * Protobuf type {@code k8s.io.api.policy.v1beta1.PodDisruptionBudgetSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.policy.v1beta1.PodDisruptionBudgetSpec) io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudgetSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudgetSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec.class, io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec.Builder.class); } // Construct using // io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getMinAvailableFieldBuilder(); getSelectorFieldBuilder(); getMaxUnavailableFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (minAvailableBuilder_ == null) { minAvailable_ = null; } else { minAvailableBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (selectorBuilder_ == null) { selector_ = null; } else { selectorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (maxUnavailableBuilder_ == null) { maxUnavailable_ = null; } else { maxUnavailableBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudgetSpec_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec .getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec build() { io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec buildPartial() { io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec result = new io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (minAvailableBuilder_ == null) { result.minAvailable_ = minAvailable_; } else { result.minAvailable_ = minAvailableBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (selectorBuilder_ == null) { result.selector_ = selector_; } else { result.selector_ = selectorBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (maxUnavailableBuilder_ == null) { result.maxUnavailable_ = maxUnavailable_; } else { result.maxUnavailable_ = maxUnavailableBuilder_.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.V1beta1Policy.PodDisruptionBudgetSpec) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec other) { if (other == io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec .getDefaultInstance()) return this; if (other.hasMinAvailable()) { mergeMinAvailable(other.getMinAvailable()); } if (other.hasSelector()) { mergeSelector(other.getSelector()); } if (other.hasMaxUnavailable()) { mergeMaxUnavailable(other.getMaxUnavailable()); } 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.V1beta1Policy.PodDisruptionBudgetSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.kubernetes.client.proto.IntStr.IntOrString minAvailable_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.IntStr.IntOrString, io.kubernetes.client.proto.IntStr.IntOrString.Builder, io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder> minAvailableBuilder_; /** * * *
       * An eviction is allowed if at least "minAvailable" pods selected by
       * "selector" will still be available after the eviction, i.e. even in the
       * absence of the evicted pod.  So for example you can prevent all voluntary
       * evictions by specifying "100%".
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString minAvailable = 1; */ public boolean hasMinAvailable() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * An eviction is allowed if at least "minAvailable" pods selected by
       * "selector" will still be available after the eviction, i.e. even in the
       * absence of the evicted pod.  So for example you can prevent all voluntary
       * evictions by specifying "100%".
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString minAvailable = 1; */ public io.kubernetes.client.proto.IntStr.IntOrString getMinAvailable() { if (minAvailableBuilder_ == null) { return minAvailable_ == null ? io.kubernetes.client.proto.IntStr.IntOrString.getDefaultInstance() : minAvailable_; } else { return minAvailableBuilder_.getMessage(); } } /** * * *
       * An eviction is allowed if at least "minAvailable" pods selected by
       * "selector" will still be available after the eviction, i.e. even in the
       * absence of the evicted pod.  So for example you can prevent all voluntary
       * evictions by specifying "100%".
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString minAvailable = 1; */ public Builder setMinAvailable(io.kubernetes.client.proto.IntStr.IntOrString value) { if (minAvailableBuilder_ == null) { if (value == null) { throw new NullPointerException(); } minAvailable_ = value; onChanged(); } else { minAvailableBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * An eviction is allowed if at least "minAvailable" pods selected by
       * "selector" will still be available after the eviction, i.e. even in the
       * absence of the evicted pod.  So for example you can prevent all voluntary
       * evictions by specifying "100%".
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString minAvailable = 1; */ public Builder setMinAvailable( io.kubernetes.client.proto.IntStr.IntOrString.Builder builderForValue) { if (minAvailableBuilder_ == null) { minAvailable_ = builderForValue.build(); onChanged(); } else { minAvailableBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * * *
       * An eviction is allowed if at least "minAvailable" pods selected by
       * "selector" will still be available after the eviction, i.e. even in the
       * absence of the evicted pod.  So for example you can prevent all voluntary
       * evictions by specifying "100%".
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString minAvailable = 1; */ public Builder mergeMinAvailable(io.kubernetes.client.proto.IntStr.IntOrString value) { if (minAvailableBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && minAvailable_ != null && minAvailable_ != io.kubernetes.client.proto.IntStr.IntOrString.getDefaultInstance()) { minAvailable_ = io.kubernetes.client.proto.IntStr.IntOrString.newBuilder(minAvailable_) .mergeFrom(value) .buildPartial(); } else { minAvailable_ = value; } onChanged(); } else { minAvailableBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * * *
       * An eviction is allowed if at least "minAvailable" pods selected by
       * "selector" will still be available after the eviction, i.e. even in the
       * absence of the evicted pod.  So for example you can prevent all voluntary
       * evictions by specifying "100%".
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString minAvailable = 1; */ public Builder clearMinAvailable() { if (minAvailableBuilder_ == null) { minAvailable_ = null; onChanged(); } else { minAvailableBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * * *
       * An eviction is allowed if at least "minAvailable" pods selected by
       * "selector" will still be available after the eviction, i.e. even in the
       * absence of the evicted pod.  So for example you can prevent all voluntary
       * evictions by specifying "100%".
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString minAvailable = 1; */ public io.kubernetes.client.proto.IntStr.IntOrString.Builder getMinAvailableBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMinAvailableFieldBuilder().getBuilder(); } /** * * *
       * An eviction is allowed if at least "minAvailable" pods selected by
       * "selector" will still be available after the eviction, i.e. even in the
       * absence of the evicted pod.  So for example you can prevent all voluntary
       * evictions by specifying "100%".
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString minAvailable = 1; */ public io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder getMinAvailableOrBuilder() { if (minAvailableBuilder_ != null) { return minAvailableBuilder_.getMessageOrBuilder(); } else { return minAvailable_ == null ? io.kubernetes.client.proto.IntStr.IntOrString.getDefaultInstance() : minAvailable_; } } /** * * *
       * An eviction is allowed if at least "minAvailable" pods selected by
       * "selector" will still be available after the eviction, i.e. even in the
       * absence of the evicted pod.  So for example you can prevent all voluntary
       * evictions by specifying "100%".
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString minAvailable = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.IntStr.IntOrString, io.kubernetes.client.proto.IntStr.IntOrString.Builder, io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder> getMinAvailableFieldBuilder() { if (minAvailableBuilder_ == null) { minAvailableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.IntStr.IntOrString, io.kubernetes.client.proto.IntStr.IntOrString.Builder, io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder>( getMinAvailable(), getParentForChildren(), isClean()); minAvailable_ = null; } return minAvailableBuilder_; } private io.kubernetes.client.proto.Meta.LabelSelector selector_ = 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> selectorBuilder_; /** * * *
       * Label query over pods whose evictions are managed by the disruption
       * budget.
       * A null selector selects no pods.
       * An empty selector ({}) also selects no pods, which differs from standard behavior of selecting all pods.
       * In policy/v1, an empty selector will select all pods in the namespace.
       * +patchStrategy=replace
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; */ public boolean hasSelector() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * Label query over pods whose evictions are managed by the disruption
       * budget.
       * A null selector selects no pods.
       * An empty selector ({}) also selects no pods, which differs from standard behavior of selecting all pods.
       * In policy/v1, an empty selector will select all pods in the namespace.
       * +patchStrategy=replace
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; */ public io.kubernetes.client.proto.Meta.LabelSelector getSelector() { if (selectorBuilder_ == null) { return selector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : selector_; } else { return selectorBuilder_.getMessage(); } } /** * * *
       * Label query over pods whose evictions are managed by the disruption
       * budget.
       * A null selector selects no pods.
       * An empty selector ({}) also selects no pods, which differs from standard behavior of selecting all pods.
       * In policy/v1, an empty selector will select all pods in the namespace.
       * +patchStrategy=replace
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; */ public Builder setSelector(io.kubernetes.client.proto.Meta.LabelSelector value) { if (selectorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } selector_ = value; onChanged(); } else { selectorBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Label query over pods whose evictions are managed by the disruption
       * budget.
       * A null selector selects no pods.
       * An empty selector ({}) also selects no pods, which differs from standard behavior of selecting all pods.
       * In policy/v1, an empty selector will select all pods in the namespace.
       * +patchStrategy=replace
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; */ public Builder setSelector( io.kubernetes.client.proto.Meta.LabelSelector.Builder builderForValue) { if (selectorBuilder_ == null) { selector_ = builderForValue.build(); onChanged(); } else { selectorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Label query over pods whose evictions are managed by the disruption
       * budget.
       * A null selector selects no pods.
       * An empty selector ({}) also selects no pods, which differs from standard behavior of selecting all pods.
       * In policy/v1, an empty selector will select all pods in the namespace.
       * +patchStrategy=replace
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; */ public Builder mergeSelector(io.kubernetes.client.proto.Meta.LabelSelector value) { if (selectorBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && selector_ != null && selector_ != io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance()) { selector_ = io.kubernetes.client.proto.Meta.LabelSelector.newBuilder(selector_) .mergeFrom(value) .buildPartial(); } else { selector_ = value; } onChanged(); } else { selectorBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * Label query over pods whose evictions are managed by the disruption
       * budget.
       * A null selector selects no pods.
       * An empty selector ({}) also selects no pods, which differs from standard behavior of selecting all pods.
       * In policy/v1, an empty selector will select all pods in the namespace.
       * +patchStrategy=replace
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; */ public Builder clearSelector() { if (selectorBuilder_ == null) { selector_ = null; onChanged(); } else { selectorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * Label query over pods whose evictions are managed by the disruption
       * budget.
       * A null selector selects no pods.
       * An empty selector ({}) also selects no pods, which differs from standard behavior of selecting all pods.
       * In policy/v1, an empty selector will select all pods in the namespace.
       * +patchStrategy=replace
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; */ public io.kubernetes.client.proto.Meta.LabelSelector.Builder getSelectorBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSelectorFieldBuilder().getBuilder(); } /** * * *
       * Label query over pods whose evictions are managed by the disruption
       * budget.
       * A null selector selects no pods.
       * An empty selector ({}) also selects no pods, which differs from standard behavior of selecting all pods.
       * In policy/v1, an empty selector will select all pods in the namespace.
       * +patchStrategy=replace
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; */ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getSelectorOrBuilder() { if (selectorBuilder_ != null) { return selectorBuilder_.getMessageOrBuilder(); } else { return selector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : selector_; } } /** * * *
       * Label query over pods whose evictions are managed by the disruption
       * budget.
       * A null selector selects no pods.
       * An empty selector ({}) also selects no pods, which differs from standard behavior of selecting all pods.
       * In policy/v1, an empty selector will select all pods in the namespace.
       * +patchStrategy=replace
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder> getSelectorFieldBuilder() { if (selectorBuilder_ == null) { selectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder>( getSelector(), getParentForChildren(), isClean()); selector_ = null; } return selectorBuilder_; } private io.kubernetes.client.proto.IntStr.IntOrString maxUnavailable_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.IntStr.IntOrString, io.kubernetes.client.proto.IntStr.IntOrString.Builder, io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder> maxUnavailableBuilder_; /** * * *
       * An eviction is allowed if at most "maxUnavailable" pods selected by
       * "selector" are unavailable after the eviction, i.e. even in absence of
       * the evicted pod. For example, one can prevent all voluntary evictions
       * by specifying 0. This is a mutually exclusive setting with "minAvailable".
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 3; */ public boolean hasMaxUnavailable() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * An eviction is allowed if at most "maxUnavailable" pods selected by
       * "selector" are unavailable after the eviction, i.e. even in absence of
       * the evicted pod. For example, one can prevent all voluntary evictions
       * by specifying 0. This is a mutually exclusive setting with "minAvailable".
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 3; */ public io.kubernetes.client.proto.IntStr.IntOrString getMaxUnavailable() { if (maxUnavailableBuilder_ == null) { return maxUnavailable_ == null ? io.kubernetes.client.proto.IntStr.IntOrString.getDefaultInstance() : maxUnavailable_; } else { return maxUnavailableBuilder_.getMessage(); } } /** * * *
       * An eviction is allowed if at most "maxUnavailable" pods selected by
       * "selector" are unavailable after the eviction, i.e. even in absence of
       * the evicted pod. For example, one can prevent all voluntary evictions
       * by specifying 0. This is a mutually exclusive setting with "minAvailable".
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 3; */ public Builder setMaxUnavailable(io.kubernetes.client.proto.IntStr.IntOrString value) { if (maxUnavailableBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maxUnavailable_ = value; onChanged(); } else { maxUnavailableBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * An eviction is allowed if at most "maxUnavailable" pods selected by
       * "selector" are unavailable after the eviction, i.e. even in absence of
       * the evicted pod. For example, one can prevent all voluntary evictions
       * by specifying 0. This is a mutually exclusive setting with "minAvailable".
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 3; */ public Builder setMaxUnavailable( io.kubernetes.client.proto.IntStr.IntOrString.Builder builderForValue) { if (maxUnavailableBuilder_ == null) { maxUnavailable_ = builderForValue.build(); onChanged(); } else { maxUnavailableBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * * *
       * An eviction is allowed if at most "maxUnavailable" pods selected by
       * "selector" are unavailable after the eviction, i.e. even in absence of
       * the evicted pod. For example, one can prevent all voluntary evictions
       * by specifying 0. This is a mutually exclusive setting with "minAvailable".
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 3; */ public Builder mergeMaxUnavailable(io.kubernetes.client.proto.IntStr.IntOrString value) { if (maxUnavailableBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && maxUnavailable_ != null && maxUnavailable_ != io.kubernetes.client.proto.IntStr.IntOrString.getDefaultInstance()) { maxUnavailable_ = io.kubernetes.client.proto.IntStr.IntOrString.newBuilder(maxUnavailable_) .mergeFrom(value) .buildPartial(); } else { maxUnavailable_ = value; } onChanged(); } else { maxUnavailableBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * * *
       * An eviction is allowed if at most "maxUnavailable" pods selected by
       * "selector" are unavailable after the eviction, i.e. even in absence of
       * the evicted pod. For example, one can prevent all voluntary evictions
       * by specifying 0. This is a mutually exclusive setting with "minAvailable".
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 3; */ public Builder clearMaxUnavailable() { if (maxUnavailableBuilder_ == null) { maxUnavailable_ = null; onChanged(); } else { maxUnavailableBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * * *
       * An eviction is allowed if at most "maxUnavailable" pods selected by
       * "selector" are unavailable after the eviction, i.e. even in absence of
       * the evicted pod. For example, one can prevent all voluntary evictions
       * by specifying 0. This is a mutually exclusive setting with "minAvailable".
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 3; */ public io.kubernetes.client.proto.IntStr.IntOrString.Builder getMaxUnavailableBuilder() { bitField0_ |= 0x00000004; onChanged(); return getMaxUnavailableFieldBuilder().getBuilder(); } /** * * *
       * An eviction is allowed if at most "maxUnavailable" pods selected by
       * "selector" are unavailable after the eviction, i.e. even in absence of
       * the evicted pod. For example, one can prevent all voluntary evictions
       * by specifying 0. This is a mutually exclusive setting with "minAvailable".
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 3; */ public io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder getMaxUnavailableOrBuilder() { if (maxUnavailableBuilder_ != null) { return maxUnavailableBuilder_.getMessageOrBuilder(); } else { return maxUnavailable_ == null ? io.kubernetes.client.proto.IntStr.IntOrString.getDefaultInstance() : maxUnavailable_; } } /** * * *
       * An eviction is allowed if at most "maxUnavailable" pods selected by
       * "selector" are unavailable after the eviction, i.e. even in absence of
       * the evicted pod. For example, one can prevent all voluntary evictions
       * by specifying 0. This is a mutually exclusive setting with "minAvailable".
       * +optional
       * 
* * optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.IntStr.IntOrString, io.kubernetes.client.proto.IntStr.IntOrString.Builder, io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder> getMaxUnavailableFieldBuilder() { if (maxUnavailableBuilder_ == null) { maxUnavailableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.IntStr.IntOrString, io.kubernetes.client.proto.IntStr.IntOrString.Builder, io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder>( getMaxUnavailable(), getParentForChildren(), isClean()); maxUnavailable_ = null; } return maxUnavailableBuilder_; } @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.policy.v1beta1.PodDisruptionBudgetSpec) } // @@protoc_insertion_point(class_scope:k8s.io.api.policy.v1beta1.PodDisruptionBudgetSpec) private static final io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec(); } public static io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetSpec getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PodDisruptionBudgetSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PodDisruptionBudgetSpec(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.V1beta1Policy.PodDisruptionBudgetSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PodDisruptionBudgetStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.policy.v1beta1.PodDisruptionBudgetStatus) com.google.protobuf.MessageOrBuilder { /** * * *
     * Most recent generation observed when updating this PDB status. DisruptionsAllowed and other
     * status information is valid only if observedGeneration equals to PDB's object generation.
     * +optional
     * 
* * optional int64 observedGeneration = 1; */ boolean hasObservedGeneration(); /** * * *
     * Most recent generation observed when updating this PDB status. DisruptionsAllowed and other
     * status information is valid only if observedGeneration equals to PDB's object generation.
     * +optional
     * 
* * optional int64 observedGeneration = 1; */ long getObservedGeneration(); /** * * *
     * DisruptedPods contains information about pods whose eviction was
     * processed by the API server eviction subresource handler but has not
     * yet been observed by the PodDisruptionBudget controller.
     * A pod will be in this map from the time when the API server processed the
     * eviction request to the time when the pod is seen by PDB controller
     * as having been marked for deletion (or after a timeout). The key in the map is the name of the pod
     * and the value is the time when the API server processed the eviction request. If
     * the deletion didn't occur and a pod is still there it will be removed from
     * the list automatically by PodDisruptionBudget controller after some time.
     * If everything goes smooth this map should be empty for the most of the time.
     * Large number of entries in the map may indicate problems with pod deletions.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.apis.meta.v1.Time> disruptedPods = 2; */ int getDisruptedPodsCount(); /** * * *
     * DisruptedPods contains information about pods whose eviction was
     * processed by the API server eviction subresource handler but has not
     * yet been observed by the PodDisruptionBudget controller.
     * A pod will be in this map from the time when the API server processed the
     * eviction request to the time when the pod is seen by PDB controller
     * as having been marked for deletion (or after a timeout). The key in the map is the name of the pod
     * and the value is the time when the API server processed the eviction request. If
     * the deletion didn't occur and a pod is still there it will be removed from
     * the list automatically by PodDisruptionBudget controller after some time.
     * If everything goes smooth this map should be empty for the most of the time.
     * Large number of entries in the map may indicate problems with pod deletions.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.apis.meta.v1.Time> disruptedPods = 2; */ boolean containsDisruptedPods(java.lang.String key); /** Use {@link #getDisruptedPodsMap()} instead. */ @java.lang.Deprecated java.util.Map getDisruptedPods(); /** * * *
     * DisruptedPods contains information about pods whose eviction was
     * processed by the API server eviction subresource handler but has not
     * yet been observed by the PodDisruptionBudget controller.
     * A pod will be in this map from the time when the API server processed the
     * eviction request to the time when the pod is seen by PDB controller
     * as having been marked for deletion (or after a timeout). The key in the map is the name of the pod
     * and the value is the time when the API server processed the eviction request. If
     * the deletion didn't occur and a pod is still there it will be removed from
     * the list automatically by PodDisruptionBudget controller after some time.
     * If everything goes smooth this map should be empty for the most of the time.
     * Large number of entries in the map may indicate problems with pod deletions.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.apis.meta.v1.Time> disruptedPods = 2; */ java.util.Map getDisruptedPodsMap(); /** * * *
     * DisruptedPods contains information about pods whose eviction was
     * processed by the API server eviction subresource handler but has not
     * yet been observed by the PodDisruptionBudget controller.
     * A pod will be in this map from the time when the API server processed the
     * eviction request to the time when the pod is seen by PDB controller
     * as having been marked for deletion (or after a timeout). The key in the map is the name of the pod
     * and the value is the time when the API server processed the eviction request. If
     * the deletion didn't occur and a pod is still there it will be removed from
     * the list automatically by PodDisruptionBudget controller after some time.
     * If everything goes smooth this map should be empty for the most of the time.
     * Large number of entries in the map may indicate problems with pod deletions.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.apis.meta.v1.Time> disruptedPods = 2; */ io.kubernetes.client.proto.Meta.Time getDisruptedPodsOrDefault( java.lang.String key, io.kubernetes.client.proto.Meta.Time defaultValue); /** * * *
     * DisruptedPods contains information about pods whose eviction was
     * processed by the API server eviction subresource handler but has not
     * yet been observed by the PodDisruptionBudget controller.
     * A pod will be in this map from the time when the API server processed the
     * eviction request to the time when the pod is seen by PDB controller
     * as having been marked for deletion (or after a timeout). The key in the map is the name of the pod
     * and the value is the time when the API server processed the eviction request. If
     * the deletion didn't occur and a pod is still there it will be removed from
     * the list automatically by PodDisruptionBudget controller after some time.
     * If everything goes smooth this map should be empty for the most of the time.
     * Large number of entries in the map may indicate problems with pod deletions.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.apis.meta.v1.Time> disruptedPods = 2; */ io.kubernetes.client.proto.Meta.Time getDisruptedPodsOrThrow(java.lang.String key); /** * * *
     * Number of pod disruptions that are currently allowed.
     * 
* * optional int32 disruptionsAllowed = 3; */ boolean hasDisruptionsAllowed(); /** * * *
     * Number of pod disruptions that are currently allowed.
     * 
* * optional int32 disruptionsAllowed = 3; */ int getDisruptionsAllowed(); /** * * *
     * current number of healthy pods
     * 
* * optional int32 currentHealthy = 4; */ boolean hasCurrentHealthy(); /** * * *
     * current number of healthy pods
     * 
* * optional int32 currentHealthy = 4; */ int getCurrentHealthy(); /** * * *
     * minimum desired number of healthy pods
     * 
* * optional int32 desiredHealthy = 5; */ boolean hasDesiredHealthy(); /** * * *
     * minimum desired number of healthy pods
     * 
* * optional int32 desiredHealthy = 5; */ int getDesiredHealthy(); /** * * *
     * total number of pods counted by this disruption budget
     * 
* * optional int32 expectedPods = 6; */ boolean hasExpectedPods(); /** * * *
     * total number of pods counted by this disruption budget
     * 
* * optional int32 expectedPods = 6; */ int getExpectedPods(); /** * * *
     * Conditions contain conditions for PDB. The disruption controller sets the
     * DisruptionAllowed condition. The following are known values for the reason field
     * (additional reasons could be added in the future):
     * - SyncFailed: The controller encountered an error and wasn't able to compute
     *               the number of allowed disruptions. Therefore no disruptions are
     *               allowed and the status of the condition will be False.
     * - InsufficientPods: The number of pods are either at or below the number
     *                     required by the PodDisruptionBudget. No disruptions are
     *                     allowed and the status of the condition will be False.
     * - SufficientPods: There are more pods than required by the PodDisruptionBudget.
     *                   The condition will be True, and the number of allowed
     *                   disruptions are provided by the disruptionsAllowed property.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=type
     * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; */ java.util.List getConditionsList(); /** * * *
     * Conditions contain conditions for PDB. The disruption controller sets the
     * DisruptionAllowed condition. The following are known values for the reason field
     * (additional reasons could be added in the future):
     * - SyncFailed: The controller encountered an error and wasn't able to compute
     *               the number of allowed disruptions. Therefore no disruptions are
     *               allowed and the status of the condition will be False.
     * - InsufficientPods: The number of pods are either at or below the number
     *                     required by the PodDisruptionBudget. No disruptions are
     *                     allowed and the status of the condition will be False.
     * - SufficientPods: There are more pods than required by the PodDisruptionBudget.
     *                   The condition will be True, and the number of allowed
     *                   disruptions are provided by the disruptionsAllowed property.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=type
     * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; */ io.kubernetes.client.proto.Meta.Condition getConditions(int index); /** * * *
     * Conditions contain conditions for PDB. The disruption controller sets the
     * DisruptionAllowed condition. The following are known values for the reason field
     * (additional reasons could be added in the future):
     * - SyncFailed: The controller encountered an error and wasn't able to compute
     *               the number of allowed disruptions. Therefore no disruptions are
     *               allowed and the status of the condition will be False.
     * - InsufficientPods: The number of pods are either at or below the number
     *                     required by the PodDisruptionBudget. No disruptions are
     *                     allowed and the status of the condition will be False.
     * - SufficientPods: There are more pods than required by the PodDisruptionBudget.
     *                   The condition will be True, and the number of allowed
     *                   disruptions are provided by the disruptionsAllowed property.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=type
     * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; */ int getConditionsCount(); /** * * *
     * Conditions contain conditions for PDB. The disruption controller sets the
     * DisruptionAllowed condition. The following are known values for the reason field
     * (additional reasons could be added in the future):
     * - SyncFailed: The controller encountered an error and wasn't able to compute
     *               the number of allowed disruptions. Therefore no disruptions are
     *               allowed and the status of the condition will be False.
     * - InsufficientPods: The number of pods are either at or below the number
     *                     required by the PodDisruptionBudget. No disruptions are
     *                     allowed and the status of the condition will be False.
     * - SufficientPods: There are more pods than required by the PodDisruptionBudget.
     *                   The condition will be True, and the number of allowed
     *                   disruptions are provided by the disruptionsAllowed property.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=type
     * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; */ java.util.List getConditionsOrBuilderList(); /** * * *
     * Conditions contain conditions for PDB. The disruption controller sets the
     * DisruptionAllowed condition. The following are known values for the reason field
     * (additional reasons could be added in the future):
     * - SyncFailed: The controller encountered an error and wasn't able to compute
     *               the number of allowed disruptions. Therefore no disruptions are
     *               allowed and the status of the condition will be False.
     * - InsufficientPods: The number of pods are either at or below the number
     *                     required by the PodDisruptionBudget. No disruptions are
     *                     allowed and the status of the condition will be False.
     * - SufficientPods: There are more pods than required by the PodDisruptionBudget.
     *                   The condition will be True, and the number of allowed
     *                   disruptions are provided by the disruptionsAllowed property.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=type
     * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; */ io.kubernetes.client.proto.Meta.ConditionOrBuilder getConditionsOrBuilder(int index); } /** * * *
   * PodDisruptionBudgetStatus represents information about the status of a
   * PodDisruptionBudget. Status may trail the actual state of a system.
   * 
* * Protobuf type {@code k8s.io.api.policy.v1beta1.PodDisruptionBudgetStatus} */ public static final class PodDisruptionBudgetStatus extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.policy.v1beta1.PodDisruptionBudgetStatus) PodDisruptionBudgetStatusOrBuilder { private static final long serialVersionUID = 0L; // Use PodDisruptionBudgetStatus.newBuilder() to construct. private PodDisruptionBudgetStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PodDisruptionBudgetStatus() { observedGeneration_ = 0L; disruptionsAllowed_ = 0; currentHealthy_ = 0; desiredHealthy_ = 0; expectedPods_ = 0; conditions_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PodDisruptionBudgetStatus( 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 8: { bitField0_ |= 0x00000001; observedGeneration_ = input.readInt64(); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { disruptedPods_ = com.google.protobuf.MapField.newMapField( DisruptedPodsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000002; } com.google.protobuf.MapEntry disruptedPods__ = input.readMessage( DisruptedPodsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); disruptedPods_ .getMutableMap() .put(disruptedPods__.getKey(), disruptedPods__.getValue()); break; } case 24: { bitField0_ |= 0x00000002; disruptionsAllowed_ = input.readInt32(); break; } case 32: { bitField0_ |= 0x00000004; currentHealthy_ = input.readInt32(); break; } case 40: { bitField0_ |= 0x00000008; desiredHealthy_ = input.readInt32(); break; } case 48: { bitField0_ |= 0x00000010; expectedPods_ = input.readInt32(); break; } case 58: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { conditions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } conditions_.add( input.readMessage( io.kubernetes.client.proto.Meta.Condition.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_ & 0x00000040) == 0x00000040)) { conditions_ = java.util.Collections.unmodifiableList(conditions_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudgetStatus_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetDisruptedPods(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudgetStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus.class, io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus.Builder.class); } private int bitField0_; public static final int OBSERVEDGENERATION_FIELD_NUMBER = 1; private long observedGeneration_; /** * * *
     * Most recent generation observed when updating this PDB status. DisruptionsAllowed and other
     * status information is valid only if observedGeneration equals to PDB's object generation.
     * +optional
     * 
* * optional int64 observedGeneration = 1; */ public boolean hasObservedGeneration() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * Most recent generation observed when updating this PDB status. DisruptionsAllowed and other
     * status information is valid only if observedGeneration equals to PDB's object generation.
     * +optional
     * 
* * optional int64 observedGeneration = 1; */ public long getObservedGeneration() { return observedGeneration_; } public static final int DISRUPTEDPODS_FIELD_NUMBER = 2; private static final class DisruptedPodsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, io.kubernetes.client.proto.Meta.Time> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudgetStatus_DisruptedPodsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, io.kubernetes.client.proto.Meta.Time.getDefaultInstance()); } private com.google.protobuf.MapField disruptedPods_; private com.google.protobuf.MapField internalGetDisruptedPods() { if (disruptedPods_ == null) { return com.google.protobuf.MapField.emptyMapField( DisruptedPodsDefaultEntryHolder.defaultEntry); } return disruptedPods_; } public int getDisruptedPodsCount() { return internalGetDisruptedPods().getMap().size(); } /** * * *
     * DisruptedPods contains information about pods whose eviction was
     * processed by the API server eviction subresource handler but has not
     * yet been observed by the PodDisruptionBudget controller.
     * A pod will be in this map from the time when the API server processed the
     * eviction request to the time when the pod is seen by PDB controller
     * as having been marked for deletion (or after a timeout). The key in the map is the name of the pod
     * and the value is the time when the API server processed the eviction request. If
     * the deletion didn't occur and a pod is still there it will be removed from
     * the list automatically by PodDisruptionBudget controller after some time.
     * If everything goes smooth this map should be empty for the most of the time.
     * Large number of entries in the map may indicate problems with pod deletions.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.apis.meta.v1.Time> disruptedPods = 2; */ public boolean containsDisruptedPods(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetDisruptedPods().getMap().containsKey(key); } /** Use {@link #getDisruptedPodsMap()} instead. */ @java.lang.Deprecated public java.util.Map getDisruptedPods() { return getDisruptedPodsMap(); } /** * * *
     * DisruptedPods contains information about pods whose eviction was
     * processed by the API server eviction subresource handler but has not
     * yet been observed by the PodDisruptionBudget controller.
     * A pod will be in this map from the time when the API server processed the
     * eviction request to the time when the pod is seen by PDB controller
     * as having been marked for deletion (or after a timeout). The key in the map is the name of the pod
     * and the value is the time when the API server processed the eviction request. If
     * the deletion didn't occur and a pod is still there it will be removed from
     * the list automatically by PodDisruptionBudget controller after some time.
     * If everything goes smooth this map should be empty for the most of the time.
     * Large number of entries in the map may indicate problems with pod deletions.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.apis.meta.v1.Time> disruptedPods = 2; */ public java.util.Map getDisruptedPodsMap() { return internalGetDisruptedPods().getMap(); } /** * * *
     * DisruptedPods contains information about pods whose eviction was
     * processed by the API server eviction subresource handler but has not
     * yet been observed by the PodDisruptionBudget controller.
     * A pod will be in this map from the time when the API server processed the
     * eviction request to the time when the pod is seen by PDB controller
     * as having been marked for deletion (or after a timeout). The key in the map is the name of the pod
     * and the value is the time when the API server processed the eviction request. If
     * the deletion didn't occur and a pod is still there it will be removed from
     * the list automatically by PodDisruptionBudget controller after some time.
     * If everything goes smooth this map should be empty for the most of the time.
     * Large number of entries in the map may indicate problems with pod deletions.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.apis.meta.v1.Time> disruptedPods = 2; */ public io.kubernetes.client.proto.Meta.Time getDisruptedPodsOrDefault( java.lang.String key, io.kubernetes.client.proto.Meta.Time defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetDisruptedPods().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * DisruptedPods contains information about pods whose eviction was
     * processed by the API server eviction subresource handler but has not
     * yet been observed by the PodDisruptionBudget controller.
     * A pod will be in this map from the time when the API server processed the
     * eviction request to the time when the pod is seen by PDB controller
     * as having been marked for deletion (or after a timeout). The key in the map is the name of the pod
     * and the value is the time when the API server processed the eviction request. If
     * the deletion didn't occur and a pod is still there it will be removed from
     * the list automatically by PodDisruptionBudget controller after some time.
     * If everything goes smooth this map should be empty for the most of the time.
     * Large number of entries in the map may indicate problems with pod deletions.
     * +optional
     * 
* * map<string, .k8s.io.apimachinery.pkg.apis.meta.v1.Time> disruptedPods = 2; */ public io.kubernetes.client.proto.Meta.Time getDisruptedPodsOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetDisruptedPods().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int DISRUPTIONSALLOWED_FIELD_NUMBER = 3; private int disruptionsAllowed_; /** * * *
     * Number of pod disruptions that are currently allowed.
     * 
* * optional int32 disruptionsAllowed = 3; */ public boolean hasDisruptionsAllowed() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * Number of pod disruptions that are currently allowed.
     * 
* * optional int32 disruptionsAllowed = 3; */ public int getDisruptionsAllowed() { return disruptionsAllowed_; } public static final int CURRENTHEALTHY_FIELD_NUMBER = 4; private int currentHealthy_; /** * * *
     * current number of healthy pods
     * 
* * optional int32 currentHealthy = 4; */ public boolean hasCurrentHealthy() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * current number of healthy pods
     * 
* * optional int32 currentHealthy = 4; */ public int getCurrentHealthy() { return currentHealthy_; } public static final int DESIREDHEALTHY_FIELD_NUMBER = 5; private int desiredHealthy_; /** * * *
     * minimum desired number of healthy pods
     * 
* * optional int32 desiredHealthy = 5; */ public boolean hasDesiredHealthy() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * minimum desired number of healthy pods
     * 
* * optional int32 desiredHealthy = 5; */ public int getDesiredHealthy() { return desiredHealthy_; } public static final int EXPECTEDPODS_FIELD_NUMBER = 6; private int expectedPods_; /** * * *
     * total number of pods counted by this disruption budget
     * 
* * optional int32 expectedPods = 6; */ public boolean hasExpectedPods() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * total number of pods counted by this disruption budget
     * 
* * optional int32 expectedPods = 6; */ public int getExpectedPods() { return expectedPods_; } public static final int CONDITIONS_FIELD_NUMBER = 7; private java.util.List conditions_; /** * * *
     * Conditions contain conditions for PDB. The disruption controller sets the
     * DisruptionAllowed condition. The following are known values for the reason field
     * (additional reasons could be added in the future):
     * - SyncFailed: The controller encountered an error and wasn't able to compute
     *               the number of allowed disruptions. Therefore no disruptions are
     *               allowed and the status of the condition will be False.
     * - InsufficientPods: The number of pods are either at or below the number
     *                     required by the PodDisruptionBudget. No disruptions are
     *                     allowed and the status of the condition will be False.
     * - SufficientPods: There are more pods than required by the PodDisruptionBudget.
     *                   The condition will be True, and the number of allowed
     *                   disruptions are provided by the disruptionsAllowed property.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=type
     * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; */ public java.util.List getConditionsList() { return conditions_; } /** * * *
     * Conditions contain conditions for PDB. The disruption controller sets the
     * DisruptionAllowed condition. The following are known values for the reason field
     * (additional reasons could be added in the future):
     * - SyncFailed: The controller encountered an error and wasn't able to compute
     *               the number of allowed disruptions. Therefore no disruptions are
     *               allowed and the status of the condition will be False.
     * - InsufficientPods: The number of pods are either at or below the number
     *                     required by the PodDisruptionBudget. No disruptions are
     *                     allowed and the status of the condition will be False.
     * - SufficientPods: There are more pods than required by the PodDisruptionBudget.
     *                   The condition will be True, and the number of allowed
     *                   disruptions are provided by the disruptionsAllowed property.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=type
     * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; */ public java.util.List getConditionsOrBuilderList() { return conditions_; } /** * * *
     * Conditions contain conditions for PDB. The disruption controller sets the
     * DisruptionAllowed condition. The following are known values for the reason field
     * (additional reasons could be added in the future):
     * - SyncFailed: The controller encountered an error and wasn't able to compute
     *               the number of allowed disruptions. Therefore no disruptions are
     *               allowed and the status of the condition will be False.
     * - InsufficientPods: The number of pods are either at or below the number
     *                     required by the PodDisruptionBudget. No disruptions are
     *                     allowed and the status of the condition will be False.
     * - SufficientPods: There are more pods than required by the PodDisruptionBudget.
     *                   The condition will be True, and the number of allowed
     *                   disruptions are provided by the disruptionsAllowed property.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=type
     * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; */ public int getConditionsCount() { return conditions_.size(); } /** * * *
     * Conditions contain conditions for PDB. The disruption controller sets the
     * DisruptionAllowed condition. The following are known values for the reason field
     * (additional reasons could be added in the future):
     * - SyncFailed: The controller encountered an error and wasn't able to compute
     *               the number of allowed disruptions. Therefore no disruptions are
     *               allowed and the status of the condition will be False.
     * - InsufficientPods: The number of pods are either at or below the number
     *                     required by the PodDisruptionBudget. No disruptions are
     *                     allowed and the status of the condition will be False.
     * - SufficientPods: There are more pods than required by the PodDisruptionBudget.
     *                   The condition will be True, and the number of allowed
     *                   disruptions are provided by the disruptionsAllowed property.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=type
     * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; */ public io.kubernetes.client.proto.Meta.Condition getConditions(int index) { return conditions_.get(index); } /** * * *
     * Conditions contain conditions for PDB. The disruption controller sets the
     * DisruptionAllowed condition. The following are known values for the reason field
     * (additional reasons could be added in the future):
     * - SyncFailed: The controller encountered an error and wasn't able to compute
     *               the number of allowed disruptions. Therefore no disruptions are
     *               allowed and the status of the condition will be False.
     * - InsufficientPods: The number of pods are either at or below the number
     *                     required by the PodDisruptionBudget. No disruptions are
     *                     allowed and the status of the condition will be False.
     * - SufficientPods: There are more pods than required by the PodDisruptionBudget.
     *                   The condition will be True, and the number of allowed
     *                   disruptions are provided by the disruptionsAllowed property.
     * +optional
     * +patchMergeKey=type
     * +patchStrategy=merge
     * +listType=map
     * +listMapKey=type
     * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; */ public io.kubernetes.client.proto.Meta.ConditionOrBuilder getConditionsOrBuilder(int index) { return conditions_.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.writeInt64(1, observedGeneration_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetDisruptedPods(), DisruptedPodsDefaultEntryHolder.defaultEntry, 2); if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(3, disruptionsAllowed_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(4, currentHealthy_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt32(5, desiredHealthy_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt32(6, expectedPods_); } for (int i = 0; i < conditions_.size(); i++) { output.writeMessage(7, conditions_.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.computeInt64Size(1, observedGeneration_); } for (java.util.Map.Entry entry : internalGetDisruptedPods().getMap().entrySet()) { com.google.protobuf.MapEntry disruptedPods__ = DisruptedPodsDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, disruptedPods__); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, disruptionsAllowed_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, currentHealthy_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, desiredHealthy_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, expectedPods_); } for (int i = 0; i < conditions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, conditions_.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.V1beta1Policy.PodDisruptionBudgetStatus)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus other = (io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus) obj; boolean result = true; result = result && (hasObservedGeneration() == other.hasObservedGeneration()); if (hasObservedGeneration()) { result = result && (getObservedGeneration() == other.getObservedGeneration()); } result = result && internalGetDisruptedPods().equals(other.internalGetDisruptedPods()); result = result && (hasDisruptionsAllowed() == other.hasDisruptionsAllowed()); if (hasDisruptionsAllowed()) { result = result && (getDisruptionsAllowed() == other.getDisruptionsAllowed()); } result = result && (hasCurrentHealthy() == other.hasCurrentHealthy()); if (hasCurrentHealthy()) { result = result && (getCurrentHealthy() == other.getCurrentHealthy()); } result = result && (hasDesiredHealthy() == other.hasDesiredHealthy()); if (hasDesiredHealthy()) { result = result && (getDesiredHealthy() == other.getDesiredHealthy()); } result = result && (hasExpectedPods() == other.hasExpectedPods()); if (hasExpectedPods()) { result = result && (getExpectedPods() == other.getExpectedPods()); } result = result && getConditionsList().equals(other.getConditionsList()); 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 (hasObservedGeneration()) { hash = (37 * hash) + OBSERVEDGENERATION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getObservedGeneration()); } if (!internalGetDisruptedPods().getMap().isEmpty()) { hash = (37 * hash) + DISRUPTEDPODS_FIELD_NUMBER; hash = (53 * hash) + internalGetDisruptedPods().hashCode(); } if (hasDisruptionsAllowed()) { hash = (37 * hash) + DISRUPTIONSALLOWED_FIELD_NUMBER; hash = (53 * hash) + getDisruptionsAllowed(); } if (hasCurrentHealthy()) { hash = (37 * hash) + CURRENTHEALTHY_FIELD_NUMBER; hash = (53 * hash) + getCurrentHealthy(); } if (hasDesiredHealthy()) { hash = (37 * hash) + DESIREDHEALTHY_FIELD_NUMBER; hash = (53 * hash) + getDesiredHealthy(); } if (hasExpectedPods()) { hash = (37 * hash) + EXPECTEDPODS_FIELD_NUMBER; hash = (53 * hash) + getExpectedPods(); } if (getConditionsCount() > 0) { hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; hash = (53 * hash) + getConditionsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus 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.V1beta1Policy.PodDisruptionBudgetStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus 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.V1beta1Policy.PodDisruptionBudgetStatus parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus 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.V1beta1Policy.PodDisruptionBudgetStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus 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.V1beta1Policy.PodDisruptionBudgetStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus 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.V1beta1Policy.PodDisruptionBudgetStatus 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; } /** * * *
     * PodDisruptionBudgetStatus represents information about the status of a
     * PodDisruptionBudget. Status may trail the actual state of a system.
     * 
* * Protobuf type {@code k8s.io.api.policy.v1beta1.PodDisruptionBudgetStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.policy.v1beta1.PodDisruptionBudgetStatus) io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudgetStatus_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetDisruptedPods(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 2: return internalGetMutableDisruptedPods(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudgetStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus.class, io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus.Builder.class); } // Construct using // io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getConditionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); observedGeneration_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); internalGetMutableDisruptedPods().clear(); disruptionsAllowed_ = 0; bitField0_ = (bitField0_ & ~0x00000004); currentHealthy_ = 0; bitField0_ = (bitField0_ & ~0x00000008); desiredHealthy_ = 0; bitField0_ = (bitField0_ & ~0x00000010); expectedPods_ = 0; bitField0_ = (bitField0_ & ~0x00000020); if (conditionsBuilder_ == null) { conditions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { conditionsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudgetStatus_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus .getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus build() { io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus buildPartial() { io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus result = new io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.observedGeneration_ = observedGeneration_; result.disruptedPods_ = internalGetDisruptedPods(); result.disruptedPods_.makeImmutable(); if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.disruptionsAllowed_ = disruptionsAllowed_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } result.currentHealthy_ = currentHealthy_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000008; } result.desiredHealthy_ = desiredHealthy_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000010; } result.expectedPods_ = expectedPods_; if (conditionsBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040)) { conditions_ = java.util.Collections.unmodifiableList(conditions_); bitField0_ = (bitField0_ & ~0x00000040); } result.conditions_ = conditions_; } else { result.conditions_ = conditionsBuilder_.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.V1beta1Policy.PodDisruptionBudgetStatus) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus other) { if (other == io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus .getDefaultInstance()) return this; if (other.hasObservedGeneration()) { setObservedGeneration(other.getObservedGeneration()); } internalGetMutableDisruptedPods().mergeFrom(other.internalGetDisruptedPods()); if (other.hasDisruptionsAllowed()) { setDisruptionsAllowed(other.getDisruptionsAllowed()); } if (other.hasCurrentHealthy()) { setCurrentHealthy(other.getCurrentHealthy()); } if (other.hasDesiredHealthy()) { setDesiredHealthy(other.getDesiredHealthy()); } if (other.hasExpectedPods()) { setExpectedPods(other.getExpectedPods()); } if (conditionsBuilder_ == null) { if (!other.conditions_.isEmpty()) { if (conditions_.isEmpty()) { conditions_ = other.conditions_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureConditionsIsMutable(); conditions_.addAll(other.conditions_); } onChanged(); } } else { if (!other.conditions_.isEmpty()) { if (conditionsBuilder_.isEmpty()) { conditionsBuilder_.dispose(); conditionsBuilder_ = null; conditions_ = other.conditions_; bitField0_ = (bitField0_ & ~0x00000040); conditionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getConditionsFieldBuilder() : null; } else { conditionsBuilder_.addAllMessages(other.conditions_); } } } 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.V1beta1Policy.PodDisruptionBudgetStatus parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long observedGeneration_; /** * * *
       * Most recent generation observed when updating this PDB status. DisruptionsAllowed and other
       * status information is valid only if observedGeneration equals to PDB's object generation.
       * +optional
       * 
* * optional int64 observedGeneration = 1; */ public boolean hasObservedGeneration() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * Most recent generation observed when updating this PDB status. DisruptionsAllowed and other
       * status information is valid only if observedGeneration equals to PDB's object generation.
       * +optional
       * 
* * optional int64 observedGeneration = 1; */ public long getObservedGeneration() { return observedGeneration_; } /** * * *
       * Most recent generation observed when updating this PDB status. DisruptionsAllowed and other
       * status information is valid only if observedGeneration equals to PDB's object generation.
       * +optional
       * 
* * optional int64 observedGeneration = 1; */ public Builder setObservedGeneration(long value) { bitField0_ |= 0x00000001; observedGeneration_ = value; onChanged(); return this; } /** * * *
       * Most recent generation observed when updating this PDB status. DisruptionsAllowed and other
       * status information is valid only if observedGeneration equals to PDB's object generation.
       * +optional
       * 
* * optional int64 observedGeneration = 1; */ public Builder clearObservedGeneration() { bitField0_ = (bitField0_ & ~0x00000001); observedGeneration_ = 0L; onChanged(); return this; } private com.google.protobuf.MapField disruptedPods_; private com.google.protobuf.MapField internalGetDisruptedPods() { if (disruptedPods_ == null) { return com.google.protobuf.MapField.emptyMapField( DisruptedPodsDefaultEntryHolder.defaultEntry); } return disruptedPods_; } private com.google.protobuf.MapField internalGetMutableDisruptedPods() { onChanged(); ; if (disruptedPods_ == null) { disruptedPods_ = com.google.protobuf.MapField.newMapField( DisruptedPodsDefaultEntryHolder.defaultEntry); } if (!disruptedPods_.isMutable()) { disruptedPods_ = disruptedPods_.copy(); } return disruptedPods_; } public int getDisruptedPodsCount() { return internalGetDisruptedPods().getMap().size(); } /** * * *
       * DisruptedPods contains information about pods whose eviction was
       * processed by the API server eviction subresource handler but has not
       * yet been observed by the PodDisruptionBudget controller.
       * A pod will be in this map from the time when the API server processed the
       * eviction request to the time when the pod is seen by PDB controller
       * as having been marked for deletion (or after a timeout). The key in the map is the name of the pod
       * and the value is the time when the API server processed the eviction request. If
       * the deletion didn't occur and a pod is still there it will be removed from
       * the list automatically by PodDisruptionBudget controller after some time.
       * If everything goes smooth this map should be empty for the most of the time.
       * Large number of entries in the map may indicate problems with pod deletions.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.apis.meta.v1.Time> disruptedPods = 2; * */ public boolean containsDisruptedPods(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetDisruptedPods().getMap().containsKey(key); } /** Use {@link #getDisruptedPodsMap()} instead. */ @java.lang.Deprecated public java.util.Map getDisruptedPods() { return getDisruptedPodsMap(); } /** * * *
       * DisruptedPods contains information about pods whose eviction was
       * processed by the API server eviction subresource handler but has not
       * yet been observed by the PodDisruptionBudget controller.
       * A pod will be in this map from the time when the API server processed the
       * eviction request to the time when the pod is seen by PDB controller
       * as having been marked for deletion (or after a timeout). The key in the map is the name of the pod
       * and the value is the time when the API server processed the eviction request. If
       * the deletion didn't occur and a pod is still there it will be removed from
       * the list automatically by PodDisruptionBudget controller after some time.
       * If everything goes smooth this map should be empty for the most of the time.
       * Large number of entries in the map may indicate problems with pod deletions.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.apis.meta.v1.Time> disruptedPods = 2; * */ public java.util.Map getDisruptedPodsMap() { return internalGetDisruptedPods().getMap(); } /** * * *
       * DisruptedPods contains information about pods whose eviction was
       * processed by the API server eviction subresource handler but has not
       * yet been observed by the PodDisruptionBudget controller.
       * A pod will be in this map from the time when the API server processed the
       * eviction request to the time when the pod is seen by PDB controller
       * as having been marked for deletion (or after a timeout). The key in the map is the name of the pod
       * and the value is the time when the API server processed the eviction request. If
       * the deletion didn't occur and a pod is still there it will be removed from
       * the list automatically by PodDisruptionBudget controller after some time.
       * If everything goes smooth this map should be empty for the most of the time.
       * Large number of entries in the map may indicate problems with pod deletions.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.apis.meta.v1.Time> disruptedPods = 2; * */ public io.kubernetes.client.proto.Meta.Time getDisruptedPodsOrDefault( java.lang.String key, io.kubernetes.client.proto.Meta.Time defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetDisruptedPods().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
       * DisruptedPods contains information about pods whose eviction was
       * processed by the API server eviction subresource handler but has not
       * yet been observed by the PodDisruptionBudget controller.
       * A pod will be in this map from the time when the API server processed the
       * eviction request to the time when the pod is seen by PDB controller
       * as having been marked for deletion (or after a timeout). The key in the map is the name of the pod
       * and the value is the time when the API server processed the eviction request. If
       * the deletion didn't occur and a pod is still there it will be removed from
       * the list automatically by PodDisruptionBudget controller after some time.
       * If everything goes smooth this map should be empty for the most of the time.
       * Large number of entries in the map may indicate problems with pod deletions.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.apis.meta.v1.Time> disruptedPods = 2; * */ public io.kubernetes.client.proto.Meta.Time getDisruptedPodsOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetDisruptedPods().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearDisruptedPods() { internalGetMutableDisruptedPods().getMutableMap().clear(); return this; } /** * * *
       * DisruptedPods contains information about pods whose eviction was
       * processed by the API server eviction subresource handler but has not
       * yet been observed by the PodDisruptionBudget controller.
       * A pod will be in this map from the time when the API server processed the
       * eviction request to the time when the pod is seen by PDB controller
       * as having been marked for deletion (or after a timeout). The key in the map is the name of the pod
       * and the value is the time when the API server processed the eviction request. If
       * the deletion didn't occur and a pod is still there it will be removed from
       * the list automatically by PodDisruptionBudget controller after some time.
       * If everything goes smooth this map should be empty for the most of the time.
       * Large number of entries in the map may indicate problems with pod deletions.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.apis.meta.v1.Time> disruptedPods = 2; * */ public Builder removeDisruptedPods(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableDisruptedPods().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableDisruptedPods() { return internalGetMutableDisruptedPods().getMutableMap(); } /** * * *
       * DisruptedPods contains information about pods whose eviction was
       * processed by the API server eviction subresource handler but has not
       * yet been observed by the PodDisruptionBudget controller.
       * A pod will be in this map from the time when the API server processed the
       * eviction request to the time when the pod is seen by PDB controller
       * as having been marked for deletion (or after a timeout). The key in the map is the name of the pod
       * and the value is the time when the API server processed the eviction request. If
       * the deletion didn't occur and a pod is still there it will be removed from
       * the list automatically by PodDisruptionBudget controller after some time.
       * If everything goes smooth this map should be empty for the most of the time.
       * Large number of entries in the map may indicate problems with pod deletions.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.apis.meta.v1.Time> disruptedPods = 2; * */ public Builder putDisruptedPods( java.lang.String key, io.kubernetes.client.proto.Meta.Time value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableDisruptedPods().getMutableMap().put(key, value); return this; } /** * * *
       * DisruptedPods contains information about pods whose eviction was
       * processed by the API server eviction subresource handler but has not
       * yet been observed by the PodDisruptionBudget controller.
       * A pod will be in this map from the time when the API server processed the
       * eviction request to the time when the pod is seen by PDB controller
       * as having been marked for deletion (or after a timeout). The key in the map is the name of the pod
       * and the value is the time when the API server processed the eviction request. If
       * the deletion didn't occur and a pod is still there it will be removed from
       * the list automatically by PodDisruptionBudget controller after some time.
       * If everything goes smooth this map should be empty for the most of the time.
       * Large number of entries in the map may indicate problems with pod deletions.
       * +optional
       * 
* * map<string, .k8s.io.apimachinery.pkg.apis.meta.v1.Time> disruptedPods = 2; * */ public Builder putAllDisruptedPods( java.util.Map values) { internalGetMutableDisruptedPods().getMutableMap().putAll(values); return this; } private int disruptionsAllowed_; /** * * *
       * Number of pod disruptions that are currently allowed.
       * 
* * optional int32 disruptionsAllowed = 3; */ public boolean hasDisruptionsAllowed() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
       * Number of pod disruptions that are currently allowed.
       * 
* * optional int32 disruptionsAllowed = 3; */ public int getDisruptionsAllowed() { return disruptionsAllowed_; } /** * * *
       * Number of pod disruptions that are currently allowed.
       * 
* * optional int32 disruptionsAllowed = 3; */ public Builder setDisruptionsAllowed(int value) { bitField0_ |= 0x00000004; disruptionsAllowed_ = value; onChanged(); return this; } /** * * *
       * Number of pod disruptions that are currently allowed.
       * 
* * optional int32 disruptionsAllowed = 3; */ public Builder clearDisruptionsAllowed() { bitField0_ = (bitField0_ & ~0x00000004); disruptionsAllowed_ = 0; onChanged(); return this; } private int currentHealthy_; /** * * *
       * current number of healthy pods
       * 
* * optional int32 currentHealthy = 4; */ public boolean hasCurrentHealthy() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
       * current number of healthy pods
       * 
* * optional int32 currentHealthy = 4; */ public int getCurrentHealthy() { return currentHealthy_; } /** * * *
       * current number of healthy pods
       * 
* * optional int32 currentHealthy = 4; */ public Builder setCurrentHealthy(int value) { bitField0_ |= 0x00000008; currentHealthy_ = value; onChanged(); return this; } /** * * *
       * current number of healthy pods
       * 
* * optional int32 currentHealthy = 4; */ public Builder clearCurrentHealthy() { bitField0_ = (bitField0_ & ~0x00000008); currentHealthy_ = 0; onChanged(); return this; } private int desiredHealthy_; /** * * *
       * minimum desired number of healthy pods
       * 
* * optional int32 desiredHealthy = 5; */ public boolean hasDesiredHealthy() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
       * minimum desired number of healthy pods
       * 
* * optional int32 desiredHealthy = 5; */ public int getDesiredHealthy() { return desiredHealthy_; } /** * * *
       * minimum desired number of healthy pods
       * 
* * optional int32 desiredHealthy = 5; */ public Builder setDesiredHealthy(int value) { bitField0_ |= 0x00000010; desiredHealthy_ = value; onChanged(); return this; } /** * * *
       * minimum desired number of healthy pods
       * 
* * optional int32 desiredHealthy = 5; */ public Builder clearDesiredHealthy() { bitField0_ = (bitField0_ & ~0x00000010); desiredHealthy_ = 0; onChanged(); return this; } private int expectedPods_; /** * * *
       * total number of pods counted by this disruption budget
       * 
* * optional int32 expectedPods = 6; */ public boolean hasExpectedPods() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * total number of pods counted by this disruption budget
       * 
* * optional int32 expectedPods = 6; */ public int getExpectedPods() { return expectedPods_; } /** * * *
       * total number of pods counted by this disruption budget
       * 
* * optional int32 expectedPods = 6; */ public Builder setExpectedPods(int value) { bitField0_ |= 0x00000020; expectedPods_ = value; onChanged(); return this; } /** * * *
       * total number of pods counted by this disruption budget
       * 
* * optional int32 expectedPods = 6; */ public Builder clearExpectedPods() { bitField0_ = (bitField0_ & ~0x00000020); expectedPods_ = 0; onChanged(); return this; } private java.util.List conditions_ = java.util.Collections.emptyList(); private void ensureConditionsIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { conditions_ = new java.util.ArrayList(conditions_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.Meta.Condition, io.kubernetes.client.proto.Meta.Condition.Builder, io.kubernetes.client.proto.Meta.ConditionOrBuilder> conditionsBuilder_; /** * * *
       * Conditions contain conditions for PDB. The disruption controller sets the
       * DisruptionAllowed condition. The following are known values for the reason field
       * (additional reasons could be added in the future):
       * - SyncFailed: The controller encountered an error and wasn't able to compute
       *               the number of allowed disruptions. Therefore no disruptions are
       *               allowed and the status of the condition will be False.
       * - InsufficientPods: The number of pods are either at or below the number
       *                     required by the PodDisruptionBudget. No disruptions are
       *                     allowed and the status of the condition will be False.
       * - SufficientPods: There are more pods than required by the PodDisruptionBudget.
       *                   The condition will be True, and the number of allowed
       *                   disruptions are provided by the disruptionsAllowed property.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=type
       * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; */ public java.util.List getConditionsList() { if (conditionsBuilder_ == null) { return java.util.Collections.unmodifiableList(conditions_); } else { return conditionsBuilder_.getMessageList(); } } /** * * *
       * Conditions contain conditions for PDB. The disruption controller sets the
       * DisruptionAllowed condition. The following are known values for the reason field
       * (additional reasons could be added in the future):
       * - SyncFailed: The controller encountered an error and wasn't able to compute
       *               the number of allowed disruptions. Therefore no disruptions are
       *               allowed and the status of the condition will be False.
       * - InsufficientPods: The number of pods are either at or below the number
       *                     required by the PodDisruptionBudget. No disruptions are
       *                     allowed and the status of the condition will be False.
       * - SufficientPods: There are more pods than required by the PodDisruptionBudget.
       *                   The condition will be True, and the number of allowed
       *                   disruptions are provided by the disruptionsAllowed property.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=type
       * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; */ public int getConditionsCount() { if (conditionsBuilder_ == null) { return conditions_.size(); } else { return conditionsBuilder_.getCount(); } } /** * * *
       * Conditions contain conditions for PDB. The disruption controller sets the
       * DisruptionAllowed condition. The following are known values for the reason field
       * (additional reasons could be added in the future):
       * - SyncFailed: The controller encountered an error and wasn't able to compute
       *               the number of allowed disruptions. Therefore no disruptions are
       *               allowed and the status of the condition will be False.
       * - InsufficientPods: The number of pods are either at or below the number
       *                     required by the PodDisruptionBudget. No disruptions are
       *                     allowed and the status of the condition will be False.
       * - SufficientPods: There are more pods than required by the PodDisruptionBudget.
       *                   The condition will be True, and the number of allowed
       *                   disruptions are provided by the disruptionsAllowed property.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=type
       * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; */ public io.kubernetes.client.proto.Meta.Condition getConditions(int index) { if (conditionsBuilder_ == null) { return conditions_.get(index); } else { return conditionsBuilder_.getMessage(index); } } /** * * *
       * Conditions contain conditions for PDB. The disruption controller sets the
       * DisruptionAllowed condition. The following are known values for the reason field
       * (additional reasons could be added in the future):
       * - SyncFailed: The controller encountered an error and wasn't able to compute
       *               the number of allowed disruptions. Therefore no disruptions are
       *               allowed and the status of the condition will be False.
       * - InsufficientPods: The number of pods are either at or below the number
       *                     required by the PodDisruptionBudget. No disruptions are
       *                     allowed and the status of the condition will be False.
       * - SufficientPods: There are more pods than required by the PodDisruptionBudget.
       *                   The condition will be True, and the number of allowed
       *                   disruptions are provided by the disruptionsAllowed property.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=type
       * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; */ public Builder setConditions(int index, io.kubernetes.client.proto.Meta.Condition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConditionsIsMutable(); conditions_.set(index, value); onChanged(); } else { conditionsBuilder_.setMessage(index, value); } return this; } /** * * *
       * Conditions contain conditions for PDB. The disruption controller sets the
       * DisruptionAllowed condition. The following are known values for the reason field
       * (additional reasons could be added in the future):
       * - SyncFailed: The controller encountered an error and wasn't able to compute
       *               the number of allowed disruptions. Therefore no disruptions are
       *               allowed and the status of the condition will be False.
       * - InsufficientPods: The number of pods are either at or below the number
       *                     required by the PodDisruptionBudget. No disruptions are
       *                     allowed and the status of the condition will be False.
       * - SufficientPods: There are more pods than required by the PodDisruptionBudget.
       *                   The condition will be True, and the number of allowed
       *                   disruptions are provided by the disruptionsAllowed property.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=type
       * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; */ public Builder setConditions( int index, io.kubernetes.client.proto.Meta.Condition.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.set(index, builderForValue.build()); onChanged(); } else { conditionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Conditions contain conditions for PDB. The disruption controller sets the
       * DisruptionAllowed condition. The following are known values for the reason field
       * (additional reasons could be added in the future):
       * - SyncFailed: The controller encountered an error and wasn't able to compute
       *               the number of allowed disruptions. Therefore no disruptions are
       *               allowed and the status of the condition will be False.
       * - InsufficientPods: The number of pods are either at or below the number
       *                     required by the PodDisruptionBudget. No disruptions are
       *                     allowed and the status of the condition will be False.
       * - SufficientPods: There are more pods than required by the PodDisruptionBudget.
       *                   The condition will be True, and the number of allowed
       *                   disruptions are provided by the disruptionsAllowed property.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=type
       * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; */ public Builder addConditions(io.kubernetes.client.proto.Meta.Condition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConditionsIsMutable(); conditions_.add(value); onChanged(); } else { conditionsBuilder_.addMessage(value); } return this; } /** * * *
       * Conditions contain conditions for PDB. The disruption controller sets the
       * DisruptionAllowed condition. The following are known values for the reason field
       * (additional reasons could be added in the future):
       * - SyncFailed: The controller encountered an error and wasn't able to compute
       *               the number of allowed disruptions. Therefore no disruptions are
       *               allowed and the status of the condition will be False.
       * - InsufficientPods: The number of pods are either at or below the number
       *                     required by the PodDisruptionBudget. No disruptions are
       *                     allowed and the status of the condition will be False.
       * - SufficientPods: There are more pods than required by the PodDisruptionBudget.
       *                   The condition will be True, and the number of allowed
       *                   disruptions are provided by the disruptionsAllowed property.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=type
       * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; */ public Builder addConditions(int index, io.kubernetes.client.proto.Meta.Condition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConditionsIsMutable(); conditions_.add(index, value); onChanged(); } else { conditionsBuilder_.addMessage(index, value); } return this; } /** * * *
       * Conditions contain conditions for PDB. The disruption controller sets the
       * DisruptionAllowed condition. The following are known values for the reason field
       * (additional reasons could be added in the future):
       * - SyncFailed: The controller encountered an error and wasn't able to compute
       *               the number of allowed disruptions. Therefore no disruptions are
       *               allowed and the status of the condition will be False.
       * - InsufficientPods: The number of pods are either at or below the number
       *                     required by the PodDisruptionBudget. No disruptions are
       *                     allowed and the status of the condition will be False.
       * - SufficientPods: There are more pods than required by the PodDisruptionBudget.
       *                   The condition will be True, and the number of allowed
       *                   disruptions are provided by the disruptionsAllowed property.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=type
       * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; */ public Builder addConditions( io.kubernetes.client.proto.Meta.Condition.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(builderForValue.build()); onChanged(); } else { conditionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Conditions contain conditions for PDB. The disruption controller sets the
       * DisruptionAllowed condition. The following are known values for the reason field
       * (additional reasons could be added in the future):
       * - SyncFailed: The controller encountered an error and wasn't able to compute
       *               the number of allowed disruptions. Therefore no disruptions are
       *               allowed and the status of the condition will be False.
       * - InsufficientPods: The number of pods are either at or below the number
       *                     required by the PodDisruptionBudget. No disruptions are
       *                     allowed and the status of the condition will be False.
       * - SufficientPods: There are more pods than required by the PodDisruptionBudget.
       *                   The condition will be True, and the number of allowed
       *                   disruptions are provided by the disruptionsAllowed property.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=type
       * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; */ public Builder addConditions( int index, io.kubernetes.client.proto.Meta.Condition.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(index, builderForValue.build()); onChanged(); } else { conditionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Conditions contain conditions for PDB. The disruption controller sets the
       * DisruptionAllowed condition. The following are known values for the reason field
       * (additional reasons could be added in the future):
       * - SyncFailed: The controller encountered an error and wasn't able to compute
       *               the number of allowed disruptions. Therefore no disruptions are
       *               allowed and the status of the condition will be False.
       * - InsufficientPods: The number of pods are either at or below the number
       *                     required by the PodDisruptionBudget. No disruptions are
       *                     allowed and the status of the condition will be False.
       * - SufficientPods: There are more pods than required by the PodDisruptionBudget.
       *                   The condition will be True, and the number of allowed
       *                   disruptions are provided by the disruptionsAllowed property.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=type
       * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; */ public Builder addAllConditions( java.lang.Iterable values) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); onChanged(); } else { conditionsBuilder_.addAllMessages(values); } return this; } /** * * *
       * Conditions contain conditions for PDB. The disruption controller sets the
       * DisruptionAllowed condition. The following are known values for the reason field
       * (additional reasons could be added in the future):
       * - SyncFailed: The controller encountered an error and wasn't able to compute
       *               the number of allowed disruptions. Therefore no disruptions are
       *               allowed and the status of the condition will be False.
       * - InsufficientPods: The number of pods are either at or below the number
       *                     required by the PodDisruptionBudget. No disruptions are
       *                     allowed and the status of the condition will be False.
       * - SufficientPods: There are more pods than required by the PodDisruptionBudget.
       *                   The condition will be True, and the number of allowed
       *                   disruptions are provided by the disruptionsAllowed property.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=type
       * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; */ public Builder clearConditions() { if (conditionsBuilder_ == null) { conditions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { conditionsBuilder_.clear(); } return this; } /** * * *
       * Conditions contain conditions for PDB. The disruption controller sets the
       * DisruptionAllowed condition. The following are known values for the reason field
       * (additional reasons could be added in the future):
       * - SyncFailed: The controller encountered an error and wasn't able to compute
       *               the number of allowed disruptions. Therefore no disruptions are
       *               allowed and the status of the condition will be False.
       * - InsufficientPods: The number of pods are either at or below the number
       *                     required by the PodDisruptionBudget. No disruptions are
       *                     allowed and the status of the condition will be False.
       * - SufficientPods: There are more pods than required by the PodDisruptionBudget.
       *                   The condition will be True, and the number of allowed
       *                   disruptions are provided by the disruptionsAllowed property.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=type
       * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; */ public Builder removeConditions(int index) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.remove(index); onChanged(); } else { conditionsBuilder_.remove(index); } return this; } /** * * *
       * Conditions contain conditions for PDB. The disruption controller sets the
       * DisruptionAllowed condition. The following are known values for the reason field
       * (additional reasons could be added in the future):
       * - SyncFailed: The controller encountered an error and wasn't able to compute
       *               the number of allowed disruptions. Therefore no disruptions are
       *               allowed and the status of the condition will be False.
       * - InsufficientPods: The number of pods are either at or below the number
       *                     required by the PodDisruptionBudget. No disruptions are
       *                     allowed and the status of the condition will be False.
       * - SufficientPods: There are more pods than required by the PodDisruptionBudget.
       *                   The condition will be True, and the number of allowed
       *                   disruptions are provided by the disruptionsAllowed property.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=type
       * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; */ public io.kubernetes.client.proto.Meta.Condition.Builder getConditionsBuilder(int index) { return getConditionsFieldBuilder().getBuilder(index); } /** * * *
       * Conditions contain conditions for PDB. The disruption controller sets the
       * DisruptionAllowed condition. The following are known values for the reason field
       * (additional reasons could be added in the future):
       * - SyncFailed: The controller encountered an error and wasn't able to compute
       *               the number of allowed disruptions. Therefore no disruptions are
       *               allowed and the status of the condition will be False.
       * - InsufficientPods: The number of pods are either at or below the number
       *                     required by the PodDisruptionBudget. No disruptions are
       *                     allowed and the status of the condition will be False.
       * - SufficientPods: There are more pods than required by the PodDisruptionBudget.
       *                   The condition will be True, and the number of allowed
       *                   disruptions are provided by the disruptionsAllowed property.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=type
       * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; */ public io.kubernetes.client.proto.Meta.ConditionOrBuilder getConditionsOrBuilder(int index) { if (conditionsBuilder_ == null) { return conditions_.get(index); } else { return conditionsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Conditions contain conditions for PDB. The disruption controller sets the
       * DisruptionAllowed condition. The following are known values for the reason field
       * (additional reasons could be added in the future):
       * - SyncFailed: The controller encountered an error and wasn't able to compute
       *               the number of allowed disruptions. Therefore no disruptions are
       *               allowed and the status of the condition will be False.
       * - InsufficientPods: The number of pods are either at or below the number
       *                     required by the PodDisruptionBudget. No disruptions are
       *                     allowed and the status of the condition will be False.
       * - SufficientPods: There are more pods than required by the PodDisruptionBudget.
       *                   The condition will be True, and the number of allowed
       *                   disruptions are provided by the disruptionsAllowed property.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=type
       * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; */ public java.util.List getConditionsOrBuilderList() { if (conditionsBuilder_ != null) { return conditionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(conditions_); } } /** * * *
       * Conditions contain conditions for PDB. The disruption controller sets the
       * DisruptionAllowed condition. The following are known values for the reason field
       * (additional reasons could be added in the future):
       * - SyncFailed: The controller encountered an error and wasn't able to compute
       *               the number of allowed disruptions. Therefore no disruptions are
       *               allowed and the status of the condition will be False.
       * - InsufficientPods: The number of pods are either at or below the number
       *                     required by the PodDisruptionBudget. No disruptions are
       *                     allowed and the status of the condition will be False.
       * - SufficientPods: There are more pods than required by the PodDisruptionBudget.
       *                   The condition will be True, and the number of allowed
       *                   disruptions are provided by the disruptionsAllowed property.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=type
       * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; */ public io.kubernetes.client.proto.Meta.Condition.Builder addConditionsBuilder() { return getConditionsFieldBuilder() .addBuilder(io.kubernetes.client.proto.Meta.Condition.getDefaultInstance()); } /** * * *
       * Conditions contain conditions for PDB. The disruption controller sets the
       * DisruptionAllowed condition. The following are known values for the reason field
       * (additional reasons could be added in the future):
       * - SyncFailed: The controller encountered an error and wasn't able to compute
       *               the number of allowed disruptions. Therefore no disruptions are
       *               allowed and the status of the condition will be False.
       * - InsufficientPods: The number of pods are either at or below the number
       *                     required by the PodDisruptionBudget. No disruptions are
       *                     allowed and the status of the condition will be False.
       * - SufficientPods: There are more pods than required by the PodDisruptionBudget.
       *                   The condition will be True, and the number of allowed
       *                   disruptions are provided by the disruptionsAllowed property.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=type
       * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; */ public io.kubernetes.client.proto.Meta.Condition.Builder addConditionsBuilder(int index) { return getConditionsFieldBuilder() .addBuilder(index, io.kubernetes.client.proto.Meta.Condition.getDefaultInstance()); } /** * * *
       * Conditions contain conditions for PDB. The disruption controller sets the
       * DisruptionAllowed condition. The following are known values for the reason field
       * (additional reasons could be added in the future):
       * - SyncFailed: The controller encountered an error and wasn't able to compute
       *               the number of allowed disruptions. Therefore no disruptions are
       *               allowed and the status of the condition will be False.
       * - InsufficientPods: The number of pods are either at or below the number
       *                     required by the PodDisruptionBudget. No disruptions are
       *                     allowed and the status of the condition will be False.
       * - SufficientPods: There are more pods than required by the PodDisruptionBudget.
       *                   The condition will be True, and the number of allowed
       *                   disruptions are provided by the disruptionsAllowed property.
       * +optional
       * +patchMergeKey=type
       * +patchStrategy=merge
       * +listType=map
       * +listMapKey=type
       * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; */ public java.util.List getConditionsBuilderList() { return getConditionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.Meta.Condition, io.kubernetes.client.proto.Meta.Condition.Builder, io.kubernetes.client.proto.Meta.ConditionOrBuilder> getConditionsFieldBuilder() { if (conditionsBuilder_ == null) { conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.Meta.Condition, io.kubernetes.client.proto.Meta.Condition.Builder, io.kubernetes.client.proto.Meta.ConditionOrBuilder>( conditions_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); conditions_ = null; } return conditionsBuilder_; } @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.policy.v1beta1.PodDisruptionBudgetStatus) } // @@protoc_insertion_point(class_scope:k8s.io.api.policy.v1beta1.PodDisruptionBudgetStatus) private static final io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus(); } public static io.kubernetes.client.proto.V1beta1Policy.PodDisruptionBudgetStatus getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PodDisruptionBudgetStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PodDisruptionBudgetStatus(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.V1beta1Policy.PodDisruptionBudgetStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PodSecurityPolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.policy.v1beta1.PodSecurityPolicy) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard object's 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's 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's 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(); /** * * *
     * spec defines the policy enforced.
     * +optional
     * 
* * optional .k8s.io.api.policy.v1beta1.PodSecurityPolicySpec spec = 2; */ boolean hasSpec(); /** * * *
     * spec defines the policy enforced.
     * +optional
     * 
* * optional .k8s.io.api.policy.v1beta1.PodSecurityPolicySpec spec = 2; */ io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec getSpec(); /** * * *
     * spec defines the policy enforced.
     * +optional
     * 
* * optional .k8s.io.api.policy.v1beta1.PodSecurityPolicySpec spec = 2; */ io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpecOrBuilder getSpecOrBuilder(); } /** * * *
   * PodSecurityPolicy governs the ability to make requests that affect the Security Context
   * that will be applied to a pod and container.
   * Deprecated in 1.21.
   * 
* * Protobuf type {@code k8s.io.api.policy.v1beta1.PodSecurityPolicy} */ public static final class PodSecurityPolicy extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.policy.v1beta1.PodSecurityPolicy) PodSecurityPolicyOrBuilder { private static final long serialVersionUID = 0L; // Use PodSecurityPolicy.newBuilder() to construct. private PodSecurityPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PodSecurityPolicy() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PodSecurityPolicy( 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: { io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = spec_.toBuilder(); } spec_ = input.readMessage( io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(spec_); spec_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; 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.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_PodSecurityPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_PodSecurityPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy.class, io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy.Builder.class); } private int bitField0_; public static final int METADATA_FIELD_NUMBER = 1; private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; /** * * *
     * Standard object's 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's 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's 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 SPEC_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec spec_; /** * * *
     * spec defines the policy enforced.
     * +optional
     * 
* * optional .k8s.io.api.policy.v1beta1.PodSecurityPolicySpec spec = 2; */ public boolean hasSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * spec defines the policy enforced.
     * +optional
     * 
* * optional .k8s.io.api.policy.v1beta1.PodSecurityPolicySpec spec = 2; */ public io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec getSpec() { return spec_ == null ? io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec.getDefaultInstance() : spec_; } /** * * *
     * spec defines the policy enforced.
     * +optional
     * 
* * optional .k8s.io.api.policy.v1beta1.PodSecurityPolicySpec spec = 2; */ public io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpecOrBuilder getSpecOrBuilder() { return spec_ == null ? io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec.getDefaultInstance() : spec_; } 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()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getSpec()); } 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()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSpec()); } 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.V1beta1Policy.PodSecurityPolicy)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy other = (io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy) obj; boolean result = true; result = result && (hasMetadata() == other.hasMetadata()); if (hasMetadata()) { result = result && getMetadata().equals(other.getMetadata()); } result = result && (hasSpec() == other.hasSpec()); if (hasSpec()) { result = result && getSpec().equals(other.getSpec()); } 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 (hasSpec()) { hash = (37 * hash) + SPEC_FIELD_NUMBER; hash = (53 * hash) + getSpec().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy 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.V1beta1Policy.PodSecurityPolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy 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.V1beta1Policy.PodSecurityPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy 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.V1beta1Policy.PodSecurityPolicy parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy 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.V1beta1Policy.PodSecurityPolicy parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy 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.V1beta1Policy.PodSecurityPolicy 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; } /** * * *
     * PodSecurityPolicy governs the ability to make requests that affect the Security Context
     * that will be applied to a pod and container.
     * Deprecated in 1.21.
     * 
* * Protobuf type {@code k8s.io.api.policy.v1beta1.PodSecurityPolicy} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.policy.v1beta1.PodSecurityPolicy) io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_PodSecurityPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_PodSecurityPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy.class, io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy.Builder.class); } // Construct using io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy.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(); getSpecFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (metadataBuilder_ == null) { metadata_ = null; } else { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (specBuilder_ == null) { spec_ = null; } else { specBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_PodSecurityPolicy_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy build() { io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy buildPartial() { io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy result = new io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy(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 (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (specBuilder_ == null) { result.spec_ = spec_; } else { result.spec_ = specBuilder_.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.V1beta1Policy.PodSecurityPolicy) { return mergeFrom((io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy other) { if (other == io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy.getDefaultInstance()) return this; if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } if (other.hasSpec()) { mergeSpec(other.getSpec()); } 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.V1beta1Policy.PodSecurityPolicy parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy) 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's 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's 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's 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's 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's 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's 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's 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's 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's 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 io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec spec_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec, io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec.Builder, io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpecOrBuilder> specBuilder_; /** * * *
       * spec defines the policy enforced.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.PodSecurityPolicySpec spec = 2; */ public boolean hasSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * spec defines the policy enforced.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.PodSecurityPolicySpec spec = 2; */ public io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec getSpec() { if (specBuilder_ == null) { return spec_ == null ? io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec.getDefaultInstance() : spec_; } else { return specBuilder_.getMessage(); } } /** * * *
       * spec defines the policy enforced.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.PodSecurityPolicySpec spec = 2; */ public Builder setSpec(io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec value) { if (specBuilder_ == null) { if (value == null) { throw new NullPointerException(); } spec_ = value; onChanged(); } else { specBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * spec defines the policy enforced.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.PodSecurityPolicySpec spec = 2; */ public Builder setSpec( io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec.Builder builderForValue) { if (specBuilder_ == null) { spec_ = builderForValue.build(); onChanged(); } else { specBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * spec defines the policy enforced.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.PodSecurityPolicySpec spec = 2; */ public Builder mergeSpec( io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec value) { if (specBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && spec_ != null && spec_ != io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec .getDefaultInstance()) { spec_ = io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec.newBuilder(spec_) .mergeFrom(value) .buildPartial(); } else { spec_ = value; } onChanged(); } else { specBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * spec defines the policy enforced.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.PodSecurityPolicySpec spec = 2; */ public Builder clearSpec() { if (specBuilder_ == null) { spec_ = null; onChanged(); } else { specBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * spec defines the policy enforced.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.PodSecurityPolicySpec spec = 2; */ public io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec.Builder getSpecBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSpecFieldBuilder().getBuilder(); } /** * * *
       * spec defines the policy enforced.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.PodSecurityPolicySpec spec = 2; */ public io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpecOrBuilder getSpecOrBuilder() { if (specBuilder_ != null) { return specBuilder_.getMessageOrBuilder(); } else { return spec_ == null ? io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec.getDefaultInstance() : spec_; } } /** * * *
       * spec defines the policy enforced.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.PodSecurityPolicySpec spec = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec, io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec.Builder, io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpecOrBuilder> getSpecFieldBuilder() { if (specBuilder_ == null) { specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec, io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec.Builder, io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpecOrBuilder>( getSpec(), getParentForChildren(), isClean()); spec_ = null; } return specBuilder_; } @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.policy.v1beta1.PodSecurityPolicy) } // @@protoc_insertion_point(class_scope:k8s.io.api.policy.v1beta1.PodSecurityPolicy) private static final io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy(); } public static io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PodSecurityPolicy parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PodSecurityPolicy(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.V1beta1Policy.PodSecurityPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PodSecurityPolicyListOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.policy.v1beta1.PodSecurityPolicyList) com.google.protobuf.MessageOrBuilder { /** * * *
     * Standard list 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.ListMeta metadata = 1; */ boolean hasMetadata(); /** * * *
     * Standard list 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.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#metadata
     * +optional
     * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); /** * * *
     * items is a list of schema objects.
     * 
* * repeated .k8s.io.api.policy.v1beta1.PodSecurityPolicy items = 2; */ java.util.List getItemsList(); /** * * *
     * items is a list of schema objects.
     * 
* * repeated .k8s.io.api.policy.v1beta1.PodSecurityPolicy items = 2; */ io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy getItems(int index); /** * * *
     * items is a list of schema objects.
     * 
* * repeated .k8s.io.api.policy.v1beta1.PodSecurityPolicy items = 2; */ int getItemsCount(); /** * * *
     * items is a list of schema objects.
     * 
* * repeated .k8s.io.api.policy.v1beta1.PodSecurityPolicy items = 2; */ java.util.List getItemsOrBuilderList(); /** * * *
     * items is a list of schema objects.
     * 
* * repeated .k8s.io.api.policy.v1beta1.PodSecurityPolicy items = 2; */ io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicyOrBuilder getItemsOrBuilder( int index); } /** * * *
   * PodSecurityPolicyList is a list of PodSecurityPolicy objects.
   * 
* * Protobuf type {@code k8s.io.api.policy.v1beta1.PodSecurityPolicyList} */ public static final class PodSecurityPolicyList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.policy.v1beta1.PodSecurityPolicyList) PodSecurityPolicyListOrBuilder { private static final long serialVersionUID = 0L; // Use PodSecurityPolicyList.newBuilder() to construct. private PodSecurityPolicyList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PodSecurityPolicyList() { items_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PodSecurityPolicyList( 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.V1beta1Policy.PodSecurityPolicy>(); mutable_bitField0_ |= 0x00000002; } items_.add( input.readMessage( io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy.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.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_PodSecurityPolicyList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_PodSecurityPolicyList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicyList.class, io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicyList.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#metadata
     * +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#metadata
     * +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#metadata
     * +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 items_; /** * * *
     * items is a list of schema objects.
     * 
* * repeated .k8s.io.api.policy.v1beta1.PodSecurityPolicy items = 2; */ public java.util.List getItemsList() { return items_; } /** * * *
     * items is a list of schema objects.
     * 
* * repeated .k8s.io.api.policy.v1beta1.PodSecurityPolicy items = 2; */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicyOrBuilder> getItemsOrBuilderList() { return items_; } /** * * *
     * items is a list of schema objects.
     * 
* * repeated .k8s.io.api.policy.v1beta1.PodSecurityPolicy items = 2; */ public int getItemsCount() { return items_.size(); } /** * * *
     * items is a list of schema objects.
     * 
* * repeated .k8s.io.api.policy.v1beta1.PodSecurityPolicy items = 2; */ public io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy getItems(int index) { return items_.get(index); } /** * * *
     * items is a list of schema objects.
     * 
* * repeated .k8s.io.api.policy.v1beta1.PodSecurityPolicy items = 2; */ public io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicyOrBuilder 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.V1beta1Policy.PodSecurityPolicyList)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicyList other = (io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicyList) 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.V1beta1Policy.PodSecurityPolicyList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicyList 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.V1beta1Policy.PodSecurityPolicyList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicyList 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.V1beta1Policy.PodSecurityPolicyList parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicyList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicyList parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicyList 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.V1beta1Policy.PodSecurityPolicyList parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicyList 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.V1beta1Policy.PodSecurityPolicyList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicyList 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.V1beta1Policy.PodSecurityPolicyList 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; } /** * * *
     * PodSecurityPolicyList is a list of PodSecurityPolicy objects.
     * 
* * Protobuf type {@code k8s.io.api.policy.v1beta1.PodSecurityPolicyList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.policy.v1beta1.PodSecurityPolicyList) io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicyListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_PodSecurityPolicyList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_PodSecurityPolicyList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicyList.class, io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicyList.Builder.class); } // Construct using io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicyList.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.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_PodSecurityPolicyList_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicyList getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicyList.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicyList build() { io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicyList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicyList buildPartial() { io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicyList result = new io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicyList(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.V1beta1Policy.PodSecurityPolicyList) { return mergeFrom((io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicyList) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicyList other) { if (other == io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicyList.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.V1beta1Policy.PodSecurityPolicyList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicyList) 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#metadata
       * +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#metadata
       * +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#metadata
       * +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#metadata
       * +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#metadata
       * +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#metadata
       * +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#metadata
       * +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#metadata
       * +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#metadata
       * +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 items_ = java.util.Collections.emptyList(); private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { items_ = new java.util.ArrayList( items_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy, io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy.Builder, io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicyOrBuilder> itemsBuilder_; /** * * *
       * items is a list of schema objects.
       * 
* * repeated .k8s.io.api.policy.v1beta1.PodSecurityPolicy items = 2; */ public java.util.List getItemsList() { if (itemsBuilder_ == null) { return java.util.Collections.unmodifiableList(items_); } else { return itemsBuilder_.getMessageList(); } } /** * * *
       * items is a list of schema objects.
       * 
* * repeated .k8s.io.api.policy.v1beta1.PodSecurityPolicy items = 2; */ public int getItemsCount() { if (itemsBuilder_ == null) { return items_.size(); } else { return itemsBuilder_.getCount(); } } /** * * *
       * items is a list of schema objects.
       * 
* * repeated .k8s.io.api.policy.v1beta1.PodSecurityPolicy items = 2; */ public io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy getItems(int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessage(index); } } /** * * *
       * items is a list of schema objects.
       * 
* * repeated .k8s.io.api.policy.v1beta1.PodSecurityPolicy items = 2; */ public Builder setItems( int index, io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.set(index, value); onChanged(); } else { itemsBuilder_.setMessage(index, value); } return this; } /** * * *
       * items is a list of schema objects.
       * 
* * repeated .k8s.io.api.policy.v1beta1.PodSecurityPolicy items = 2; */ public Builder setItems( int index, io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * items is a list of schema objects.
       * 
* * repeated .k8s.io.api.policy.v1beta1.PodSecurityPolicy items = 2; */ public Builder addItems(io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(value); onChanged(); } else { itemsBuilder_.addMessage(value); } return this; } /** * * *
       * items is a list of schema objects.
       * 
* * repeated .k8s.io.api.policy.v1beta1.PodSecurityPolicy items = 2; */ public Builder addItems( int index, io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureItemsIsMutable(); items_.add(index, value); onChanged(); } else { itemsBuilder_.addMessage(index, value); } return this; } /** * * *
       * items is a list of schema objects.
       * 
* * repeated .k8s.io.api.policy.v1beta1.PodSecurityPolicy items = 2; */ public Builder addItems( io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * items is a list of schema objects.
       * 
* * repeated .k8s.io.api.policy.v1beta1.PodSecurityPolicy items = 2; */ public Builder addItems( int index, io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); onChanged(); } else { itemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * items is a list of schema objects.
       * 
* * repeated .k8s.io.api.policy.v1beta1.PodSecurityPolicy items = 2; */ public Builder addAllItems( java.lang.Iterable values) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); onChanged(); } else { itemsBuilder_.addAllMessages(values); } return this; } /** * * *
       * items is a list of schema objects.
       * 
* * repeated .k8s.io.api.policy.v1beta1.PodSecurityPolicy items = 2; */ public Builder clearItems() { if (itemsBuilder_ == null) { items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { itemsBuilder_.clear(); } return this; } /** * * *
       * items is a list of schema objects.
       * 
* * repeated .k8s.io.api.policy.v1beta1.PodSecurityPolicy items = 2; */ public Builder removeItems(int index) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.remove(index); onChanged(); } else { itemsBuilder_.remove(index); } return this; } /** * * *
       * items is a list of schema objects.
       * 
* * repeated .k8s.io.api.policy.v1beta1.PodSecurityPolicy items = 2; */ public io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy.Builder getItemsBuilder( int index) { return getItemsFieldBuilder().getBuilder(index); } /** * * *
       * items is a list of schema objects.
       * 
* * repeated .k8s.io.api.policy.v1beta1.PodSecurityPolicy items = 2; */ public io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicyOrBuilder getItemsOrBuilder( int index) { if (itemsBuilder_ == null) { return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * items is a list of schema objects.
       * 
* * repeated .k8s.io.api.policy.v1beta1.PodSecurityPolicy items = 2; */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicyOrBuilder> getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(items_); } } /** * * *
       * items is a list of schema objects.
       * 
* * repeated .k8s.io.api.policy.v1beta1.PodSecurityPolicy items = 2; */ public io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy.Builder addItemsBuilder() { return getItemsFieldBuilder() .addBuilder( io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy.getDefaultInstance()); } /** * * *
       * items is a list of schema objects.
       * 
* * repeated .k8s.io.api.policy.v1beta1.PodSecurityPolicy items = 2; */ public io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy.Builder addItemsBuilder( int index) { return getItemsFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy.getDefaultInstance()); } /** * * *
       * items is a list of schema objects.
       * 
* * repeated .k8s.io.api.policy.v1beta1.PodSecurityPolicy items = 2; */ public java.util.List getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy, io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy.Builder, io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicyOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy, io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicy.Builder, io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicyOrBuilder>( 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.policy.v1beta1.PodSecurityPolicyList) } // @@protoc_insertion_point(class_scope:k8s.io.api.policy.v1beta1.PodSecurityPolicyList) private static final io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicyList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicyList(); } public static io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicyList getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PodSecurityPolicyList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PodSecurityPolicyList(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.V1beta1Policy.PodSecurityPolicyList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PodSecurityPolicySpecOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.policy.v1beta1.PodSecurityPolicySpec) com.google.protobuf.MessageOrBuilder { /** * * *
     * privileged determines if a pod can request to be run as privileged.
     * +optional
     * 
* * optional bool privileged = 1; */ boolean hasPrivileged(); /** * * *
     * privileged determines if a pod can request to be run as privileged.
     * +optional
     * 
* * optional bool privileged = 1; */ boolean getPrivileged(); /** * * *
     * defaultAddCapabilities is the default set of capabilities that will be added to the container
     * unless the pod spec specifically drops the capability.  You may not list a capability in both
     * defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly
     * allowed, and need not be included in the allowedCapabilities list.
     * +optional
     * 
* * repeated string defaultAddCapabilities = 2; */ java.util.List getDefaultAddCapabilitiesList(); /** * * *
     * defaultAddCapabilities is the default set of capabilities that will be added to the container
     * unless the pod spec specifically drops the capability.  You may not list a capability in both
     * defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly
     * allowed, and need not be included in the allowedCapabilities list.
     * +optional
     * 
* * repeated string defaultAddCapabilities = 2; */ int getDefaultAddCapabilitiesCount(); /** * * *
     * defaultAddCapabilities is the default set of capabilities that will be added to the container
     * unless the pod spec specifically drops the capability.  You may not list a capability in both
     * defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly
     * allowed, and need not be included in the allowedCapabilities list.
     * +optional
     * 
* * repeated string defaultAddCapabilities = 2; */ java.lang.String getDefaultAddCapabilities(int index); /** * * *
     * defaultAddCapabilities is the default set of capabilities that will be added to the container
     * unless the pod spec specifically drops the capability.  You may not list a capability in both
     * defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly
     * allowed, and need not be included in the allowedCapabilities list.
     * +optional
     * 
* * repeated string defaultAddCapabilities = 2; */ com.google.protobuf.ByteString getDefaultAddCapabilitiesBytes(int index); /** * * *
     * requiredDropCapabilities are the capabilities that will be dropped from the container.  These
     * are required to be dropped and cannot be added.
     * +optional
     * 
* * repeated string requiredDropCapabilities = 3; */ java.util.List getRequiredDropCapabilitiesList(); /** * * *
     * requiredDropCapabilities are the capabilities that will be dropped from the container.  These
     * are required to be dropped and cannot be added.
     * +optional
     * 
* * repeated string requiredDropCapabilities = 3; */ int getRequiredDropCapabilitiesCount(); /** * * *
     * requiredDropCapabilities are the capabilities that will be dropped from the container.  These
     * are required to be dropped and cannot be added.
     * +optional
     * 
* * repeated string requiredDropCapabilities = 3; */ java.lang.String getRequiredDropCapabilities(int index); /** * * *
     * requiredDropCapabilities are the capabilities that will be dropped from the container.  These
     * are required to be dropped and cannot be added.
     * +optional
     * 
* * repeated string requiredDropCapabilities = 3; */ com.google.protobuf.ByteString getRequiredDropCapabilitiesBytes(int index); /** * * *
     * allowedCapabilities is a list of capabilities that can be requested to add to the container.
     * Capabilities in this field may be added at the pod author's discretion.
     * You must not list a capability in both allowedCapabilities and requiredDropCapabilities.
     * +optional
     * 
* * repeated string allowedCapabilities = 4; */ java.util.List getAllowedCapabilitiesList(); /** * * *
     * allowedCapabilities is a list of capabilities that can be requested to add to the container.
     * Capabilities in this field may be added at the pod author's discretion.
     * You must not list a capability in both allowedCapabilities and requiredDropCapabilities.
     * +optional
     * 
* * repeated string allowedCapabilities = 4; */ int getAllowedCapabilitiesCount(); /** * * *
     * allowedCapabilities is a list of capabilities that can be requested to add to the container.
     * Capabilities in this field may be added at the pod author's discretion.
     * You must not list a capability in both allowedCapabilities and requiredDropCapabilities.
     * +optional
     * 
* * repeated string allowedCapabilities = 4; */ java.lang.String getAllowedCapabilities(int index); /** * * *
     * allowedCapabilities is a list of capabilities that can be requested to add to the container.
     * Capabilities in this field may be added at the pod author's discretion.
     * You must not list a capability in both allowedCapabilities and requiredDropCapabilities.
     * +optional
     * 
* * repeated string allowedCapabilities = 4; */ com.google.protobuf.ByteString getAllowedCapabilitiesBytes(int index); /** * * *
     * volumes is an allowlist of volume plugins. Empty indicates that
     * no volumes may be used. To allow all volumes you may use '*'.
     * +optional
     * 
* * repeated string volumes = 5; */ java.util.List getVolumesList(); /** * * *
     * volumes is an allowlist of volume plugins. Empty indicates that
     * no volumes may be used. To allow all volumes you may use '*'.
     * +optional
     * 
* * repeated string volumes = 5; */ int getVolumesCount(); /** * * *
     * volumes is an allowlist of volume plugins. Empty indicates that
     * no volumes may be used. To allow all volumes you may use '*'.
     * +optional
     * 
* * repeated string volumes = 5; */ java.lang.String getVolumes(int index); /** * * *
     * volumes is an allowlist of volume plugins. Empty indicates that
     * no volumes may be used. To allow all volumes you may use '*'.
     * +optional
     * 
* * repeated string volumes = 5; */ com.google.protobuf.ByteString getVolumesBytes(int index); /** * * *
     * hostNetwork determines if the policy allows the use of HostNetwork in the pod spec.
     * +optional
     * 
* * optional bool hostNetwork = 6; */ boolean hasHostNetwork(); /** * * *
     * hostNetwork determines if the policy allows the use of HostNetwork in the pod spec.
     * +optional
     * 
* * optional bool hostNetwork = 6; */ boolean getHostNetwork(); /** * * *
     * hostPorts determines which host port ranges are allowed to be exposed.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.HostPortRange hostPorts = 7; */ java.util.List getHostPortsList(); /** * * *
     * hostPorts determines which host port ranges are allowed to be exposed.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.HostPortRange hostPorts = 7; */ io.kubernetes.client.proto.V1beta1Policy.HostPortRange getHostPorts(int index); /** * * *
     * hostPorts determines which host port ranges are allowed to be exposed.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.HostPortRange hostPorts = 7; */ int getHostPortsCount(); /** * * *
     * hostPorts determines which host port ranges are allowed to be exposed.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.HostPortRange hostPorts = 7; */ java.util.List getHostPortsOrBuilderList(); /** * * *
     * hostPorts determines which host port ranges are allowed to be exposed.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.HostPortRange hostPorts = 7; */ io.kubernetes.client.proto.V1beta1Policy.HostPortRangeOrBuilder getHostPortsOrBuilder( int index); /** * * *
     * hostPID determines if the policy allows the use of HostPID in the pod spec.
     * +optional
     * 
* * optional bool hostPID = 8; */ boolean hasHostPID(); /** * * *
     * hostPID determines if the policy allows the use of HostPID in the pod spec.
     * +optional
     * 
* * optional bool hostPID = 8; */ boolean getHostPID(); /** * * *
     * hostIPC determines if the policy allows the use of HostIPC in the pod spec.
     * +optional
     * 
* * optional bool hostIPC = 9; */ boolean hasHostIPC(); /** * * *
     * hostIPC determines if the policy allows the use of HostIPC in the pod spec.
     * +optional
     * 
* * optional bool hostIPC = 9; */ boolean getHostIPC(); /** * * *
     * seLinux is the strategy that will dictate the allowable labels that may be set.
     * 
* * optional .k8s.io.api.policy.v1beta1.SELinuxStrategyOptions seLinux = 10; */ boolean hasSeLinux(); /** * * *
     * seLinux is the strategy that will dictate the allowable labels that may be set.
     * 
* * optional .k8s.io.api.policy.v1beta1.SELinuxStrategyOptions seLinux = 10; */ io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions getSeLinux(); /** * * *
     * seLinux is the strategy that will dictate the allowable labels that may be set.
     * 
* * optional .k8s.io.api.policy.v1beta1.SELinuxStrategyOptions seLinux = 10; */ io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptionsOrBuilder getSeLinuxOrBuilder(); /** * * *
     * runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set.
     * 
* * optional .k8s.io.api.policy.v1beta1.RunAsUserStrategyOptions runAsUser = 11; */ boolean hasRunAsUser(); /** * * *
     * runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set.
     * 
* * optional .k8s.io.api.policy.v1beta1.RunAsUserStrategyOptions runAsUser = 11; */ io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions getRunAsUser(); /** * * *
     * runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set.
     * 
* * optional .k8s.io.api.policy.v1beta1.RunAsUserStrategyOptions runAsUser = 11; */ io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptionsOrBuilder getRunAsUserOrBuilder(); /** * * *
     * RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set.
     * If this field is omitted, the pod's RunAsGroup can take any value. This field requires the
     * RunAsGroup feature gate to be enabled.
     * +optional
     * 
* * optional .k8s.io.api.policy.v1beta1.RunAsGroupStrategyOptions runAsGroup = 22; */ boolean hasRunAsGroup(); /** * * *
     * RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set.
     * If this field is omitted, the pod's RunAsGroup can take any value. This field requires the
     * RunAsGroup feature gate to be enabled.
     * +optional
     * 
* * optional .k8s.io.api.policy.v1beta1.RunAsGroupStrategyOptions runAsGroup = 22; */ io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions getRunAsGroup(); /** * * *
     * RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set.
     * If this field is omitted, the pod's RunAsGroup can take any value. This field requires the
     * RunAsGroup feature gate to be enabled.
     * +optional
     * 
* * optional .k8s.io.api.policy.v1beta1.RunAsGroupStrategyOptions runAsGroup = 22; */ io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptionsOrBuilder getRunAsGroupOrBuilder(); /** * * *
     * supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext.
     * 
* * * optional .k8s.io.api.policy.v1beta1.SupplementalGroupsStrategyOptions supplementalGroups = 12; * */ boolean hasSupplementalGroups(); /** * * *
     * supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext.
     * 
* * * optional .k8s.io.api.policy.v1beta1.SupplementalGroupsStrategyOptions supplementalGroups = 12; * */ io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions getSupplementalGroups(); /** * * *
     * supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext.
     * 
* * * optional .k8s.io.api.policy.v1beta1.SupplementalGroupsStrategyOptions supplementalGroups = 12; * */ io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptionsOrBuilder getSupplementalGroupsOrBuilder(); /** * * *
     * fsGroup is the strategy that will dictate what fs group is used by the SecurityContext.
     * 
* * optional .k8s.io.api.policy.v1beta1.FSGroupStrategyOptions fsGroup = 13; */ boolean hasFsGroup(); /** * * *
     * fsGroup is the strategy that will dictate what fs group is used by the SecurityContext.
     * 
* * optional .k8s.io.api.policy.v1beta1.FSGroupStrategyOptions fsGroup = 13; */ io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions getFsGroup(); /** * * *
     * fsGroup is the strategy that will dictate what fs group is used by the SecurityContext.
     * 
* * optional .k8s.io.api.policy.v1beta1.FSGroupStrategyOptions fsGroup = 13; */ io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptionsOrBuilder getFsGroupOrBuilder(); /** * * *
     * readOnlyRootFilesystem when set to true will force containers to run with a read only root file
     * system.  If the container specifically requests to run with a non-read only root file system
     * the PSP should deny the pod.
     * If set to false the container may run with a read only root file system if it wishes but it
     * will not be forced to.
     * +optional
     * 
* * optional bool readOnlyRootFilesystem = 14; */ boolean hasReadOnlyRootFilesystem(); /** * * *
     * readOnlyRootFilesystem when set to true will force containers to run with a read only root file
     * system.  If the container specifically requests to run with a non-read only root file system
     * the PSP should deny the pod.
     * If set to false the container may run with a read only root file system if it wishes but it
     * will not be forced to.
     * +optional
     * 
* * optional bool readOnlyRootFilesystem = 14; */ boolean getReadOnlyRootFilesystem(); /** * * *
     * defaultAllowPrivilegeEscalation controls the default setting for whether a
     * process can gain more privileges than its parent process.
     * +optional
     * 
* * optional bool defaultAllowPrivilegeEscalation = 15; */ boolean hasDefaultAllowPrivilegeEscalation(); /** * * *
     * defaultAllowPrivilegeEscalation controls the default setting for whether a
     * process can gain more privileges than its parent process.
     * +optional
     * 
* * optional bool defaultAllowPrivilegeEscalation = 15; */ boolean getDefaultAllowPrivilegeEscalation(); /** * * *
     * allowPrivilegeEscalation determines if a pod can request to allow
     * privilege escalation. If unspecified, defaults to true.
     * +optional
     * 
* * optional bool allowPrivilegeEscalation = 16; */ boolean hasAllowPrivilegeEscalation(); /** * * *
     * allowPrivilegeEscalation determines if a pod can request to allow
     * privilege escalation. If unspecified, defaults to true.
     * +optional
     * 
* * optional bool allowPrivilegeEscalation = 16; */ boolean getAllowPrivilegeEscalation(); /** * * *
     * allowedHostPaths is an allowlist of host paths. Empty indicates
     * that all host paths may be used.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedHostPath allowedHostPaths = 17; */ java.util.List getAllowedHostPathsList(); /** * * *
     * allowedHostPaths is an allowlist of host paths. Empty indicates
     * that all host paths may be used.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedHostPath allowedHostPaths = 17; */ io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath getAllowedHostPaths(int index); /** * * *
     * allowedHostPaths is an allowlist of host paths. Empty indicates
     * that all host paths may be used.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedHostPath allowedHostPaths = 17; */ int getAllowedHostPathsCount(); /** * * *
     * allowedHostPaths is an allowlist of host paths. Empty indicates
     * that all host paths may be used.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedHostPath allowedHostPaths = 17; */ java.util.List getAllowedHostPathsOrBuilderList(); /** * * *
     * allowedHostPaths is an allowlist of host paths. Empty indicates
     * that all host paths may be used.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedHostPath allowedHostPaths = 17; */ io.kubernetes.client.proto.V1beta1Policy.AllowedHostPathOrBuilder getAllowedHostPathsOrBuilder( int index); /** * * *
     * allowedFlexVolumes is an allowlist of Flexvolumes.  Empty or nil indicates that all
     * Flexvolumes may be used.  This parameter is effective only when the usage of the Flexvolumes
     * is allowed in the "volumes" field.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedFlexVolume allowedFlexVolumes = 18; */ java.util.List getAllowedFlexVolumesList(); /** * * *
     * allowedFlexVolumes is an allowlist of Flexvolumes.  Empty or nil indicates that all
     * Flexvolumes may be used.  This parameter is effective only when the usage of the Flexvolumes
     * is allowed in the "volumes" field.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedFlexVolume allowedFlexVolumes = 18; */ io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume getAllowedFlexVolumes(int index); /** * * *
     * allowedFlexVolumes is an allowlist of Flexvolumes.  Empty or nil indicates that all
     * Flexvolumes may be used.  This parameter is effective only when the usage of the Flexvolumes
     * is allowed in the "volumes" field.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedFlexVolume allowedFlexVolumes = 18; */ int getAllowedFlexVolumesCount(); /** * * *
     * allowedFlexVolumes is an allowlist of Flexvolumes.  Empty or nil indicates that all
     * Flexvolumes may be used.  This parameter is effective only when the usage of the Flexvolumes
     * is allowed in the "volumes" field.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedFlexVolume allowedFlexVolumes = 18; */ java.util.List getAllowedFlexVolumesOrBuilderList(); /** * * *
     * allowedFlexVolumes is an allowlist of Flexvolumes.  Empty or nil indicates that all
     * Flexvolumes may be used.  This parameter is effective only when the usage of the Flexvolumes
     * is allowed in the "volumes" field.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedFlexVolume allowedFlexVolumes = 18; */ io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolumeOrBuilder getAllowedFlexVolumesOrBuilder(int index); /** * * *
     * AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be embedded within a pod spec.
     * An empty value indicates that any CSI driver can be used for inline ephemeral volumes.
     * This is a beta field, and is only honored if the API server enables the CSIInlineVolume feature gate.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedCSIDriver allowedCSIDrivers = 23; */ java.util.List getAllowedCSIDriversList(); /** * * *
     * AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be embedded within a pod spec.
     * An empty value indicates that any CSI driver can be used for inline ephemeral volumes.
     * This is a beta field, and is only honored if the API server enables the CSIInlineVolume feature gate.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedCSIDriver allowedCSIDrivers = 23; */ io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver getAllowedCSIDrivers(int index); /** * * *
     * AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be embedded within a pod spec.
     * An empty value indicates that any CSI driver can be used for inline ephemeral volumes.
     * This is a beta field, and is only honored if the API server enables the CSIInlineVolume feature gate.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedCSIDriver allowedCSIDrivers = 23; */ int getAllowedCSIDriversCount(); /** * * *
     * AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be embedded within a pod spec.
     * An empty value indicates that any CSI driver can be used for inline ephemeral volumes.
     * This is a beta field, and is only honored if the API server enables the CSIInlineVolume feature gate.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedCSIDriver allowedCSIDrivers = 23; */ java.util.List getAllowedCSIDriversOrBuilderList(); /** * * *
     * AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be embedded within a pod spec.
     * An empty value indicates that any CSI driver can be used for inline ephemeral volumes.
     * This is a beta field, and is only honored if the API server enables the CSIInlineVolume feature gate.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedCSIDriver allowedCSIDrivers = 23; */ io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriverOrBuilder getAllowedCSIDriversOrBuilder(int index); /** * * *
     * allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none.
     * Each entry is either a plain sysctl name or ends in "*" in which case it is considered
     * as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed.
     * Kubelet has to allowlist all allowed unsafe sysctls explicitly to avoid rejection.
     * Examples:
     * e.g. "foo/*" allows "foo/bar", "foo/baz", etc.
     * e.g. "foo.*" allows "foo.bar", "foo.baz", etc.
     * +optional
     * 
* * repeated string allowedUnsafeSysctls = 19; */ java.util.List getAllowedUnsafeSysctlsList(); /** * * *
     * allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none.
     * Each entry is either a plain sysctl name or ends in "*" in which case it is considered
     * as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed.
     * Kubelet has to allowlist all allowed unsafe sysctls explicitly to avoid rejection.
     * Examples:
     * e.g. "foo/*" allows "foo/bar", "foo/baz", etc.
     * e.g. "foo.*" allows "foo.bar", "foo.baz", etc.
     * +optional
     * 
* * repeated string allowedUnsafeSysctls = 19; */ int getAllowedUnsafeSysctlsCount(); /** * * *
     * allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none.
     * Each entry is either a plain sysctl name or ends in "*" in which case it is considered
     * as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed.
     * Kubelet has to allowlist all allowed unsafe sysctls explicitly to avoid rejection.
     * Examples:
     * e.g. "foo/*" allows "foo/bar", "foo/baz", etc.
     * e.g. "foo.*" allows "foo.bar", "foo.baz", etc.
     * +optional
     * 
* * repeated string allowedUnsafeSysctls = 19; */ java.lang.String getAllowedUnsafeSysctls(int index); /** * * *
     * allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none.
     * Each entry is either a plain sysctl name or ends in "*" in which case it is considered
     * as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed.
     * Kubelet has to allowlist all allowed unsafe sysctls explicitly to avoid rejection.
     * Examples:
     * e.g. "foo/*" allows "foo/bar", "foo/baz", etc.
     * e.g. "foo.*" allows "foo.bar", "foo.baz", etc.
     * +optional
     * 
* * repeated string allowedUnsafeSysctls = 19; */ com.google.protobuf.ByteString getAllowedUnsafeSysctlsBytes(int index); /** * * *
     * forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none.
     * Each entry is either a plain sysctl name or ends in "*" in which case it is considered
     * as a prefix of forbidden sysctls. Single * means all sysctls are forbidden.
     * Examples:
     * e.g. "foo/*" forbids "foo/bar", "foo/baz", etc.
     * e.g. "foo.*" forbids "foo.bar", "foo.baz", etc.
     * +optional
     * 
* * repeated string forbiddenSysctls = 20; */ java.util.List getForbiddenSysctlsList(); /** * * *
     * forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none.
     * Each entry is either a plain sysctl name or ends in "*" in which case it is considered
     * as a prefix of forbidden sysctls. Single * means all sysctls are forbidden.
     * Examples:
     * e.g. "foo/*" forbids "foo/bar", "foo/baz", etc.
     * e.g. "foo.*" forbids "foo.bar", "foo.baz", etc.
     * +optional
     * 
* * repeated string forbiddenSysctls = 20; */ int getForbiddenSysctlsCount(); /** * * *
     * forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none.
     * Each entry is either a plain sysctl name or ends in "*" in which case it is considered
     * as a prefix of forbidden sysctls. Single * means all sysctls are forbidden.
     * Examples:
     * e.g. "foo/*" forbids "foo/bar", "foo/baz", etc.
     * e.g. "foo.*" forbids "foo.bar", "foo.baz", etc.
     * +optional
     * 
* * repeated string forbiddenSysctls = 20; */ java.lang.String getForbiddenSysctls(int index); /** * * *
     * forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none.
     * Each entry is either a plain sysctl name or ends in "*" in which case it is considered
     * as a prefix of forbidden sysctls. Single * means all sysctls are forbidden.
     * Examples:
     * e.g. "foo/*" forbids "foo/bar", "foo/baz", etc.
     * e.g. "foo.*" forbids "foo.bar", "foo.baz", etc.
     * +optional
     * 
* * repeated string forbiddenSysctls = 20; */ com.google.protobuf.ByteString getForbiddenSysctlsBytes(int index); /** * * *
     * AllowedProcMountTypes is an allowlist of allowed ProcMountTypes.
     * Empty or nil indicates that only the DefaultProcMountType may be used.
     * This requires the ProcMountType feature flag to be enabled.
     * +optional
     * 
* * repeated string allowedProcMountTypes = 21; */ java.util.List getAllowedProcMountTypesList(); /** * * *
     * AllowedProcMountTypes is an allowlist of allowed ProcMountTypes.
     * Empty or nil indicates that only the DefaultProcMountType may be used.
     * This requires the ProcMountType feature flag to be enabled.
     * +optional
     * 
* * repeated string allowedProcMountTypes = 21; */ int getAllowedProcMountTypesCount(); /** * * *
     * AllowedProcMountTypes is an allowlist of allowed ProcMountTypes.
     * Empty or nil indicates that only the DefaultProcMountType may be used.
     * This requires the ProcMountType feature flag to be enabled.
     * +optional
     * 
* * repeated string allowedProcMountTypes = 21; */ java.lang.String getAllowedProcMountTypes(int index); /** * * *
     * AllowedProcMountTypes is an allowlist of allowed ProcMountTypes.
     * Empty or nil indicates that only the DefaultProcMountType may be used.
     * This requires the ProcMountType feature flag to be enabled.
     * +optional
     * 
* * repeated string allowedProcMountTypes = 21; */ com.google.protobuf.ByteString getAllowedProcMountTypesBytes(int index); /** * * *
     * runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod.
     * If this field is omitted, the pod's runtimeClassName field is unrestricted.
     * Enforcement of this field depends on the RuntimeClass feature gate being enabled.
     * +optional
     * 
* * optional .k8s.io.api.policy.v1beta1.RuntimeClassStrategyOptions runtimeClass = 24; * */ boolean hasRuntimeClass(); /** * * *
     * runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod.
     * If this field is omitted, the pod's runtimeClassName field is unrestricted.
     * Enforcement of this field depends on the RuntimeClass feature gate being enabled.
     * +optional
     * 
* * optional .k8s.io.api.policy.v1beta1.RuntimeClassStrategyOptions runtimeClass = 24; * */ io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions getRuntimeClass(); /** * * *
     * runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod.
     * If this field is omitted, the pod's runtimeClassName field is unrestricted.
     * Enforcement of this field depends on the RuntimeClass feature gate being enabled.
     * +optional
     * 
* * optional .k8s.io.api.policy.v1beta1.RuntimeClassStrategyOptions runtimeClass = 24; * */ io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptionsOrBuilder getRuntimeClassOrBuilder(); } /** * * *
   * PodSecurityPolicySpec defines the policy enforced.
   * 
* * Protobuf type {@code k8s.io.api.policy.v1beta1.PodSecurityPolicySpec} */ public static final class PodSecurityPolicySpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.policy.v1beta1.PodSecurityPolicySpec) PodSecurityPolicySpecOrBuilder { private static final long serialVersionUID = 0L; // Use PodSecurityPolicySpec.newBuilder() to construct. private PodSecurityPolicySpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PodSecurityPolicySpec() { privileged_ = false; defaultAddCapabilities_ = com.google.protobuf.LazyStringArrayList.EMPTY; requiredDropCapabilities_ = com.google.protobuf.LazyStringArrayList.EMPTY; allowedCapabilities_ = com.google.protobuf.LazyStringArrayList.EMPTY; volumes_ = com.google.protobuf.LazyStringArrayList.EMPTY; hostNetwork_ = false; hostPorts_ = java.util.Collections.emptyList(); hostPID_ = false; hostIPC_ = false; readOnlyRootFilesystem_ = false; defaultAllowPrivilegeEscalation_ = false; allowPrivilegeEscalation_ = false; allowedHostPaths_ = java.util.Collections.emptyList(); allowedFlexVolumes_ = java.util.Collections.emptyList(); allowedCSIDrivers_ = java.util.Collections.emptyList(); allowedUnsafeSysctls_ = com.google.protobuf.LazyStringArrayList.EMPTY; forbiddenSysctls_ = com.google.protobuf.LazyStringArrayList.EMPTY; allowedProcMountTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PodSecurityPolicySpec( 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 8: { bitField0_ |= 0x00000001; privileged_ = input.readBool(); break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { defaultAddCapabilities_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } defaultAddCapabilities_.add(bs); break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { requiredDropCapabilities_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000004; } requiredDropCapabilities_.add(bs); break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { allowedCapabilities_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000008; } allowedCapabilities_.add(bs); break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { volumes_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000010; } volumes_.add(bs); break; } case 48: { bitField0_ |= 0x00000002; hostNetwork_ = input.readBool(); break; } case 58: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { hostPorts_ = new java.util.ArrayList< io.kubernetes.client.proto.V1beta1Policy.HostPortRange>(); mutable_bitField0_ |= 0x00000040; } hostPorts_.add( input.readMessage( io.kubernetes.client.proto.V1beta1Policy.HostPortRange.PARSER, extensionRegistry)); break; } case 64: { bitField0_ |= 0x00000004; hostPID_ = input.readBool(); break; } case 72: { bitField0_ |= 0x00000008; hostIPC_ = input.readBool(); break; } case 82: { io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = seLinux_.toBuilder(); } seLinux_ = input.readMessage( io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(seLinux_); seLinux_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 90: { io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions.Builder subBuilder = null; if (((bitField0_ & 0x00000020) == 0x00000020)) { subBuilder = runAsUser_.toBuilder(); } runAsUser_ = input.readMessage( io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(runAsUser_); runAsUser_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; break; } case 98: { io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions.Builder subBuilder = null; if (((bitField0_ & 0x00000080) == 0x00000080)) { subBuilder = supplementalGroups_.toBuilder(); } supplementalGroups_ = input.readMessage( io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions .PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(supplementalGroups_); supplementalGroups_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000080; break; } case 106: { io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions.Builder subBuilder = null; if (((bitField0_ & 0x00000100) == 0x00000100)) { subBuilder = fsGroup_.toBuilder(); } fsGroup_ = input.readMessage( io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(fsGroup_); fsGroup_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000100; break; } case 112: { bitField0_ |= 0x00000200; readOnlyRootFilesystem_ = input.readBool(); break; } case 120: { bitField0_ |= 0x00000400; defaultAllowPrivilegeEscalation_ = input.readBool(); break; } case 128: { bitField0_ |= 0x00000800; allowPrivilegeEscalation_ = input.readBool(); break; } case 138: { if (!((mutable_bitField0_ & 0x00020000) == 0x00020000)) { allowedHostPaths_ = new java.util.ArrayList< io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath>(); mutable_bitField0_ |= 0x00020000; } allowedHostPaths_.add( input.readMessage( io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath.PARSER, extensionRegistry)); break; } case 146: { if (!((mutable_bitField0_ & 0x00040000) == 0x00040000)) { allowedFlexVolumes_ = new java.util.ArrayList< io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume>(); mutable_bitField0_ |= 0x00040000; } allowedFlexVolumes_.add( input.readMessage( io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume.PARSER, extensionRegistry)); break; } case 154: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00100000) == 0x00100000)) { allowedUnsafeSysctls_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00100000; } allowedUnsafeSysctls_.add(bs); break; } case 162: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00200000) == 0x00200000)) { forbiddenSysctls_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00200000; } forbiddenSysctls_.add(bs); break; } case 170: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00400000) == 0x00400000)) { allowedProcMountTypes_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00400000; } allowedProcMountTypes_.add(bs); break; } case 178: { io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions.Builder subBuilder = null; if (((bitField0_ & 0x00000040) == 0x00000040)) { subBuilder = runAsGroup_.toBuilder(); } runAsGroup_ = input.readMessage( io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(runAsGroup_); runAsGroup_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000040; break; } case 186: { if (!((mutable_bitField0_ & 0x00080000) == 0x00080000)) { allowedCSIDrivers_ = new java.util.ArrayList< io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver>(); mutable_bitField0_ |= 0x00080000; } allowedCSIDrivers_.add( input.readMessage( io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver.PARSER, extensionRegistry)); break; } case 194: { io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions.Builder subBuilder = null; if (((bitField0_ & 0x00001000) == 0x00001000)) { subBuilder = runtimeClass_.toBuilder(); } runtimeClass_ = input.readMessage( io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(runtimeClass_); runtimeClass_ = subBuilder.buildPartial(); } bitField0_ |= 0x00001000; 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)) { defaultAddCapabilities_ = defaultAddCapabilities_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { requiredDropCapabilities_ = requiredDropCapabilities_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { allowedCapabilities_ = allowedCapabilities_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { volumes_ = volumes_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { hostPorts_ = java.util.Collections.unmodifiableList(hostPorts_); } if (((mutable_bitField0_ & 0x00020000) == 0x00020000)) { allowedHostPaths_ = java.util.Collections.unmodifiableList(allowedHostPaths_); } if (((mutable_bitField0_ & 0x00040000) == 0x00040000)) { allowedFlexVolumes_ = java.util.Collections.unmodifiableList(allowedFlexVolumes_); } if (((mutable_bitField0_ & 0x00100000) == 0x00100000)) { allowedUnsafeSysctls_ = allowedUnsafeSysctls_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00200000) == 0x00200000)) { forbiddenSysctls_ = forbiddenSysctls_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00400000) == 0x00400000)) { allowedProcMountTypes_ = allowedProcMountTypes_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00080000) == 0x00080000)) { allowedCSIDrivers_ = java.util.Collections.unmodifiableList(allowedCSIDrivers_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_PodSecurityPolicySpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_PodSecurityPolicySpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec.class, io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec.Builder.class); } private int bitField0_; public static final int PRIVILEGED_FIELD_NUMBER = 1; private boolean privileged_; /** * * *
     * privileged determines if a pod can request to be run as privileged.
     * +optional
     * 
* * optional bool privileged = 1; */ public boolean hasPrivileged() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * privileged determines if a pod can request to be run as privileged.
     * +optional
     * 
* * optional bool privileged = 1; */ public boolean getPrivileged() { return privileged_; } public static final int DEFAULTADDCAPABILITIES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList defaultAddCapabilities_; /** * * *
     * defaultAddCapabilities is the default set of capabilities that will be added to the container
     * unless the pod spec specifically drops the capability.  You may not list a capability in both
     * defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly
     * allowed, and need not be included in the allowedCapabilities list.
     * +optional
     * 
* * repeated string defaultAddCapabilities = 2; */ public com.google.protobuf.ProtocolStringList getDefaultAddCapabilitiesList() { return defaultAddCapabilities_; } /** * * *
     * defaultAddCapabilities is the default set of capabilities that will be added to the container
     * unless the pod spec specifically drops the capability.  You may not list a capability in both
     * defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly
     * allowed, and need not be included in the allowedCapabilities list.
     * +optional
     * 
* * repeated string defaultAddCapabilities = 2; */ public int getDefaultAddCapabilitiesCount() { return defaultAddCapabilities_.size(); } /** * * *
     * defaultAddCapabilities is the default set of capabilities that will be added to the container
     * unless the pod spec specifically drops the capability.  You may not list a capability in both
     * defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly
     * allowed, and need not be included in the allowedCapabilities list.
     * +optional
     * 
* * repeated string defaultAddCapabilities = 2; */ public java.lang.String getDefaultAddCapabilities(int index) { return defaultAddCapabilities_.get(index); } /** * * *
     * defaultAddCapabilities is the default set of capabilities that will be added to the container
     * unless the pod spec specifically drops the capability.  You may not list a capability in both
     * defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly
     * allowed, and need not be included in the allowedCapabilities list.
     * +optional
     * 
* * repeated string defaultAddCapabilities = 2; */ public com.google.protobuf.ByteString getDefaultAddCapabilitiesBytes(int index) { return defaultAddCapabilities_.getByteString(index); } public static final int REQUIREDDROPCAPABILITIES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList requiredDropCapabilities_; /** * * *
     * requiredDropCapabilities are the capabilities that will be dropped from the container.  These
     * are required to be dropped and cannot be added.
     * +optional
     * 
* * repeated string requiredDropCapabilities = 3; */ public com.google.protobuf.ProtocolStringList getRequiredDropCapabilitiesList() { return requiredDropCapabilities_; } /** * * *
     * requiredDropCapabilities are the capabilities that will be dropped from the container.  These
     * are required to be dropped and cannot be added.
     * +optional
     * 
* * repeated string requiredDropCapabilities = 3; */ public int getRequiredDropCapabilitiesCount() { return requiredDropCapabilities_.size(); } /** * * *
     * requiredDropCapabilities are the capabilities that will be dropped from the container.  These
     * are required to be dropped and cannot be added.
     * +optional
     * 
* * repeated string requiredDropCapabilities = 3; */ public java.lang.String getRequiredDropCapabilities(int index) { return requiredDropCapabilities_.get(index); } /** * * *
     * requiredDropCapabilities are the capabilities that will be dropped from the container.  These
     * are required to be dropped and cannot be added.
     * +optional
     * 
* * repeated string requiredDropCapabilities = 3; */ public com.google.protobuf.ByteString getRequiredDropCapabilitiesBytes(int index) { return requiredDropCapabilities_.getByteString(index); } public static final int ALLOWEDCAPABILITIES_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList allowedCapabilities_; /** * * *
     * allowedCapabilities is a list of capabilities that can be requested to add to the container.
     * Capabilities in this field may be added at the pod author's discretion.
     * You must not list a capability in both allowedCapabilities and requiredDropCapabilities.
     * +optional
     * 
* * repeated string allowedCapabilities = 4; */ public com.google.protobuf.ProtocolStringList getAllowedCapabilitiesList() { return allowedCapabilities_; } /** * * *
     * allowedCapabilities is a list of capabilities that can be requested to add to the container.
     * Capabilities in this field may be added at the pod author's discretion.
     * You must not list a capability in both allowedCapabilities and requiredDropCapabilities.
     * +optional
     * 
* * repeated string allowedCapabilities = 4; */ public int getAllowedCapabilitiesCount() { return allowedCapabilities_.size(); } /** * * *
     * allowedCapabilities is a list of capabilities that can be requested to add to the container.
     * Capabilities in this field may be added at the pod author's discretion.
     * You must not list a capability in both allowedCapabilities and requiredDropCapabilities.
     * +optional
     * 
* * repeated string allowedCapabilities = 4; */ public java.lang.String getAllowedCapabilities(int index) { return allowedCapabilities_.get(index); } /** * * *
     * allowedCapabilities is a list of capabilities that can be requested to add to the container.
     * Capabilities in this field may be added at the pod author's discretion.
     * You must not list a capability in both allowedCapabilities and requiredDropCapabilities.
     * +optional
     * 
* * repeated string allowedCapabilities = 4; */ public com.google.protobuf.ByteString getAllowedCapabilitiesBytes(int index) { return allowedCapabilities_.getByteString(index); } public static final int VOLUMES_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList volumes_; /** * * *
     * volumes is an allowlist of volume plugins. Empty indicates that
     * no volumes may be used. To allow all volumes you may use '*'.
     * +optional
     * 
* * repeated string volumes = 5; */ public com.google.protobuf.ProtocolStringList getVolumesList() { return volumes_; } /** * * *
     * volumes is an allowlist of volume plugins. Empty indicates that
     * no volumes may be used. To allow all volumes you may use '*'.
     * +optional
     * 
* * repeated string volumes = 5; */ public int getVolumesCount() { return volumes_.size(); } /** * * *
     * volumes is an allowlist of volume plugins. Empty indicates that
     * no volumes may be used. To allow all volumes you may use '*'.
     * +optional
     * 
* * repeated string volumes = 5; */ public java.lang.String getVolumes(int index) { return volumes_.get(index); } /** * * *
     * volumes is an allowlist of volume plugins. Empty indicates that
     * no volumes may be used. To allow all volumes you may use '*'.
     * +optional
     * 
* * repeated string volumes = 5; */ public com.google.protobuf.ByteString getVolumesBytes(int index) { return volumes_.getByteString(index); } public static final int HOSTNETWORK_FIELD_NUMBER = 6; private boolean hostNetwork_; /** * * *
     * hostNetwork determines if the policy allows the use of HostNetwork in the pod spec.
     * +optional
     * 
* * optional bool hostNetwork = 6; */ public boolean hasHostNetwork() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * hostNetwork determines if the policy allows the use of HostNetwork in the pod spec.
     * +optional
     * 
* * optional bool hostNetwork = 6; */ public boolean getHostNetwork() { return hostNetwork_; } public static final int HOSTPORTS_FIELD_NUMBER = 7; private java.util.List hostPorts_; /** * * *
     * hostPorts determines which host port ranges are allowed to be exposed.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.HostPortRange hostPorts = 7; */ public java.util.List getHostPortsList() { return hostPorts_; } /** * * *
     * hostPorts determines which host port ranges are allowed to be exposed.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.HostPortRange hostPorts = 7; */ public java.util.List getHostPortsOrBuilderList() { return hostPorts_; } /** * * *
     * hostPorts determines which host port ranges are allowed to be exposed.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.HostPortRange hostPorts = 7; */ public int getHostPortsCount() { return hostPorts_.size(); } /** * * *
     * hostPorts determines which host port ranges are allowed to be exposed.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.HostPortRange hostPorts = 7; */ public io.kubernetes.client.proto.V1beta1Policy.HostPortRange getHostPorts(int index) { return hostPorts_.get(index); } /** * * *
     * hostPorts determines which host port ranges are allowed to be exposed.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.HostPortRange hostPorts = 7; */ public io.kubernetes.client.proto.V1beta1Policy.HostPortRangeOrBuilder getHostPortsOrBuilder( int index) { return hostPorts_.get(index); } public static final int HOSTPID_FIELD_NUMBER = 8; private boolean hostPID_; /** * * *
     * hostPID determines if the policy allows the use of HostPID in the pod spec.
     * +optional
     * 
* * optional bool hostPID = 8; */ public boolean hasHostPID() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * * *
     * hostPID determines if the policy allows the use of HostPID in the pod spec.
     * +optional
     * 
* * optional bool hostPID = 8; */ public boolean getHostPID() { return hostPID_; } public static final int HOSTIPC_FIELD_NUMBER = 9; private boolean hostIPC_; /** * * *
     * hostIPC determines if the policy allows the use of HostIPC in the pod spec.
     * +optional
     * 
* * optional bool hostIPC = 9; */ public boolean hasHostIPC() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * * *
     * hostIPC determines if the policy allows the use of HostIPC in the pod spec.
     * +optional
     * 
* * optional bool hostIPC = 9; */ public boolean getHostIPC() { return hostIPC_; } public static final int SELINUX_FIELD_NUMBER = 10; private io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions seLinux_; /** * * *
     * seLinux is the strategy that will dictate the allowable labels that may be set.
     * 
* * optional .k8s.io.api.policy.v1beta1.SELinuxStrategyOptions seLinux = 10; */ public boolean hasSeLinux() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * * *
     * seLinux is the strategy that will dictate the allowable labels that may be set.
     * 
* * optional .k8s.io.api.policy.v1beta1.SELinuxStrategyOptions seLinux = 10; */ public io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions getSeLinux() { return seLinux_ == null ? io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions.getDefaultInstance() : seLinux_; } /** * * *
     * seLinux is the strategy that will dictate the allowable labels that may be set.
     * 
* * optional .k8s.io.api.policy.v1beta1.SELinuxStrategyOptions seLinux = 10; */ public io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptionsOrBuilder getSeLinuxOrBuilder() { return seLinux_ == null ? io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions.getDefaultInstance() : seLinux_; } public static final int RUNASUSER_FIELD_NUMBER = 11; private io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions runAsUser_; /** * * *
     * runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set.
     * 
* * optional .k8s.io.api.policy.v1beta1.RunAsUserStrategyOptions runAsUser = 11; */ public boolean hasRunAsUser() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
     * runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set.
     * 
* * optional .k8s.io.api.policy.v1beta1.RunAsUserStrategyOptions runAsUser = 11; */ public io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions getRunAsUser() { return runAsUser_ == null ? io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions.getDefaultInstance() : runAsUser_; } /** * * *
     * runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set.
     * 
* * optional .k8s.io.api.policy.v1beta1.RunAsUserStrategyOptions runAsUser = 11; */ public io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptionsOrBuilder getRunAsUserOrBuilder() { return runAsUser_ == null ? io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions.getDefaultInstance() : runAsUser_; } public static final int RUNASGROUP_FIELD_NUMBER = 22; private io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions runAsGroup_; /** * * *
     * RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set.
     * If this field is omitted, the pod's RunAsGroup can take any value. This field requires the
     * RunAsGroup feature gate to be enabled.
     * +optional
     * 
* * optional .k8s.io.api.policy.v1beta1.RunAsGroupStrategyOptions runAsGroup = 22; */ public boolean hasRunAsGroup() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * * *
     * RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set.
     * If this field is omitted, the pod's RunAsGroup can take any value. This field requires the
     * RunAsGroup feature gate to be enabled.
     * +optional
     * 
* * optional .k8s.io.api.policy.v1beta1.RunAsGroupStrategyOptions runAsGroup = 22; */ public io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions getRunAsGroup() { return runAsGroup_ == null ? io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions.getDefaultInstance() : runAsGroup_; } /** * * *
     * RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set.
     * If this field is omitted, the pod's RunAsGroup can take any value. This field requires the
     * RunAsGroup feature gate to be enabled.
     * +optional
     * 
* * optional .k8s.io.api.policy.v1beta1.RunAsGroupStrategyOptions runAsGroup = 22; */ public io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptionsOrBuilder getRunAsGroupOrBuilder() { return runAsGroup_ == null ? io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions.getDefaultInstance() : runAsGroup_; } public static final int SUPPLEMENTALGROUPS_FIELD_NUMBER = 12; private io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions supplementalGroups_; /** * * *
     * supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext.
     * 
* * * optional .k8s.io.api.policy.v1beta1.SupplementalGroupsStrategyOptions supplementalGroups = 12; * */ public boolean hasSupplementalGroups() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
     * supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext.
     * 
* * * optional .k8s.io.api.policy.v1beta1.SupplementalGroupsStrategyOptions supplementalGroups = 12; * */ public io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions getSupplementalGroups() { return supplementalGroups_ == null ? io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions .getDefaultInstance() : supplementalGroups_; } /** * * *
     * supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext.
     * 
* * * optional .k8s.io.api.policy.v1beta1.SupplementalGroupsStrategyOptions supplementalGroups = 12; * */ public io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptionsOrBuilder getSupplementalGroupsOrBuilder() { return supplementalGroups_ == null ? io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions .getDefaultInstance() : supplementalGroups_; } public static final int FSGROUP_FIELD_NUMBER = 13; private io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions fsGroup_; /** * * *
     * fsGroup is the strategy that will dictate what fs group is used by the SecurityContext.
     * 
* * optional .k8s.io.api.policy.v1beta1.FSGroupStrategyOptions fsGroup = 13; */ public boolean hasFsGroup() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * * *
     * fsGroup is the strategy that will dictate what fs group is used by the SecurityContext.
     * 
* * optional .k8s.io.api.policy.v1beta1.FSGroupStrategyOptions fsGroup = 13; */ public io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions getFsGroup() { return fsGroup_ == null ? io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions.getDefaultInstance() : fsGroup_; } /** * * *
     * fsGroup is the strategy that will dictate what fs group is used by the SecurityContext.
     * 
* * optional .k8s.io.api.policy.v1beta1.FSGroupStrategyOptions fsGroup = 13; */ public io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptionsOrBuilder getFsGroupOrBuilder() { return fsGroup_ == null ? io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions.getDefaultInstance() : fsGroup_; } public static final int READONLYROOTFILESYSTEM_FIELD_NUMBER = 14; private boolean readOnlyRootFilesystem_; /** * * *
     * readOnlyRootFilesystem when set to true will force containers to run with a read only root file
     * system.  If the container specifically requests to run with a non-read only root file system
     * the PSP should deny the pod.
     * If set to false the container may run with a read only root file system if it wishes but it
     * will not be forced to.
     * +optional
     * 
* * optional bool readOnlyRootFilesystem = 14; */ public boolean hasReadOnlyRootFilesystem() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * * *
     * readOnlyRootFilesystem when set to true will force containers to run with a read only root file
     * system.  If the container specifically requests to run with a non-read only root file system
     * the PSP should deny the pod.
     * If set to false the container may run with a read only root file system if it wishes but it
     * will not be forced to.
     * +optional
     * 
* * optional bool readOnlyRootFilesystem = 14; */ public boolean getReadOnlyRootFilesystem() { return readOnlyRootFilesystem_; } public static final int DEFAULTALLOWPRIVILEGEESCALATION_FIELD_NUMBER = 15; private boolean defaultAllowPrivilegeEscalation_; /** * * *
     * defaultAllowPrivilegeEscalation controls the default setting for whether a
     * process can gain more privileges than its parent process.
     * +optional
     * 
* * optional bool defaultAllowPrivilegeEscalation = 15; */ public boolean hasDefaultAllowPrivilegeEscalation() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * * *
     * defaultAllowPrivilegeEscalation controls the default setting for whether a
     * process can gain more privileges than its parent process.
     * +optional
     * 
* * optional bool defaultAllowPrivilegeEscalation = 15; */ public boolean getDefaultAllowPrivilegeEscalation() { return defaultAllowPrivilegeEscalation_; } public static final int ALLOWPRIVILEGEESCALATION_FIELD_NUMBER = 16; private boolean allowPrivilegeEscalation_; /** * * *
     * allowPrivilegeEscalation determines if a pod can request to allow
     * privilege escalation. If unspecified, defaults to true.
     * +optional
     * 
* * optional bool allowPrivilegeEscalation = 16; */ public boolean hasAllowPrivilegeEscalation() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * * *
     * allowPrivilegeEscalation determines if a pod can request to allow
     * privilege escalation. If unspecified, defaults to true.
     * +optional
     * 
* * optional bool allowPrivilegeEscalation = 16; */ public boolean getAllowPrivilegeEscalation() { return allowPrivilegeEscalation_; } public static final int ALLOWEDHOSTPATHS_FIELD_NUMBER = 17; private java.util.List allowedHostPaths_; /** * * *
     * allowedHostPaths is an allowlist of host paths. Empty indicates
     * that all host paths may be used.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedHostPath allowedHostPaths = 17; */ public java.util.List getAllowedHostPathsList() { return allowedHostPaths_; } /** * * *
     * allowedHostPaths is an allowlist of host paths. Empty indicates
     * that all host paths may be used.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedHostPath allowedHostPaths = 17; */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Policy.AllowedHostPathOrBuilder> getAllowedHostPathsOrBuilderList() { return allowedHostPaths_; } /** * * *
     * allowedHostPaths is an allowlist of host paths. Empty indicates
     * that all host paths may be used.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedHostPath allowedHostPaths = 17; */ public int getAllowedHostPathsCount() { return allowedHostPaths_.size(); } /** * * *
     * allowedHostPaths is an allowlist of host paths. Empty indicates
     * that all host paths may be used.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedHostPath allowedHostPaths = 17; */ public io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath getAllowedHostPaths(int index) { return allowedHostPaths_.get(index); } /** * * *
     * allowedHostPaths is an allowlist of host paths. Empty indicates
     * that all host paths may be used.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedHostPath allowedHostPaths = 17; */ public io.kubernetes.client.proto.V1beta1Policy.AllowedHostPathOrBuilder getAllowedHostPathsOrBuilder(int index) { return allowedHostPaths_.get(index); } public static final int ALLOWEDFLEXVOLUMES_FIELD_NUMBER = 18; private java.util.List allowedFlexVolumes_; /** * * *
     * allowedFlexVolumes is an allowlist of Flexvolumes.  Empty or nil indicates that all
     * Flexvolumes may be used.  This parameter is effective only when the usage of the Flexvolumes
     * is allowed in the "volumes" field.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedFlexVolume allowedFlexVolumes = 18; */ public java.util.List getAllowedFlexVolumesList() { return allowedFlexVolumes_; } /** * * *
     * allowedFlexVolumes is an allowlist of Flexvolumes.  Empty or nil indicates that all
     * Flexvolumes may be used.  This parameter is effective only when the usage of the Flexvolumes
     * is allowed in the "volumes" field.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedFlexVolume allowedFlexVolumes = 18; */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolumeOrBuilder> getAllowedFlexVolumesOrBuilderList() { return allowedFlexVolumes_; } /** * * *
     * allowedFlexVolumes is an allowlist of Flexvolumes.  Empty or nil indicates that all
     * Flexvolumes may be used.  This parameter is effective only when the usage of the Flexvolumes
     * is allowed in the "volumes" field.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedFlexVolume allowedFlexVolumes = 18; */ public int getAllowedFlexVolumesCount() { return allowedFlexVolumes_.size(); } /** * * *
     * allowedFlexVolumes is an allowlist of Flexvolumes.  Empty or nil indicates that all
     * Flexvolumes may be used.  This parameter is effective only when the usage of the Flexvolumes
     * is allowed in the "volumes" field.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedFlexVolume allowedFlexVolumes = 18; */ public io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume getAllowedFlexVolumes( int index) { return allowedFlexVolumes_.get(index); } /** * * *
     * allowedFlexVolumes is an allowlist of Flexvolumes.  Empty or nil indicates that all
     * Flexvolumes may be used.  This parameter is effective only when the usage of the Flexvolumes
     * is allowed in the "volumes" field.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedFlexVolume allowedFlexVolumes = 18; */ public io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolumeOrBuilder getAllowedFlexVolumesOrBuilder(int index) { return allowedFlexVolumes_.get(index); } public static final int ALLOWEDCSIDRIVERS_FIELD_NUMBER = 23; private java.util.List allowedCSIDrivers_; /** * * *
     * AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be embedded within a pod spec.
     * An empty value indicates that any CSI driver can be used for inline ephemeral volumes.
     * This is a beta field, and is only honored if the API server enables the CSIInlineVolume feature gate.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedCSIDriver allowedCSIDrivers = 23; */ public java.util.List getAllowedCSIDriversList() { return allowedCSIDrivers_; } /** * * *
     * AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be embedded within a pod spec.
     * An empty value indicates that any CSI driver can be used for inline ephemeral volumes.
     * This is a beta field, and is only honored if the API server enables the CSIInlineVolume feature gate.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedCSIDriver allowedCSIDrivers = 23; */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriverOrBuilder> getAllowedCSIDriversOrBuilderList() { return allowedCSIDrivers_; } /** * * *
     * AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be embedded within a pod spec.
     * An empty value indicates that any CSI driver can be used for inline ephemeral volumes.
     * This is a beta field, and is only honored if the API server enables the CSIInlineVolume feature gate.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedCSIDriver allowedCSIDrivers = 23; */ public int getAllowedCSIDriversCount() { return allowedCSIDrivers_.size(); } /** * * *
     * AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be embedded within a pod spec.
     * An empty value indicates that any CSI driver can be used for inline ephemeral volumes.
     * This is a beta field, and is only honored if the API server enables the CSIInlineVolume feature gate.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedCSIDriver allowedCSIDrivers = 23; */ public io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver getAllowedCSIDrivers( int index) { return allowedCSIDrivers_.get(index); } /** * * *
     * AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be embedded within a pod spec.
     * An empty value indicates that any CSI driver can be used for inline ephemeral volumes.
     * This is a beta field, and is only honored if the API server enables the CSIInlineVolume feature gate.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedCSIDriver allowedCSIDrivers = 23; */ public io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriverOrBuilder getAllowedCSIDriversOrBuilder(int index) { return allowedCSIDrivers_.get(index); } public static final int ALLOWEDUNSAFESYSCTLS_FIELD_NUMBER = 19; private com.google.protobuf.LazyStringList allowedUnsafeSysctls_; /** * * *
     * allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none.
     * Each entry is either a plain sysctl name or ends in "*" in which case it is considered
     * as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed.
     * Kubelet has to allowlist all allowed unsafe sysctls explicitly to avoid rejection.
     * Examples:
     * e.g. "foo/*" allows "foo/bar", "foo/baz", etc.
     * e.g. "foo.*" allows "foo.bar", "foo.baz", etc.
     * +optional
     * 
* * repeated string allowedUnsafeSysctls = 19; */ public com.google.protobuf.ProtocolStringList getAllowedUnsafeSysctlsList() { return allowedUnsafeSysctls_; } /** * * *
     * allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none.
     * Each entry is either a plain sysctl name or ends in "*" in which case it is considered
     * as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed.
     * Kubelet has to allowlist all allowed unsafe sysctls explicitly to avoid rejection.
     * Examples:
     * e.g. "foo/*" allows "foo/bar", "foo/baz", etc.
     * e.g. "foo.*" allows "foo.bar", "foo.baz", etc.
     * +optional
     * 
* * repeated string allowedUnsafeSysctls = 19; */ public int getAllowedUnsafeSysctlsCount() { return allowedUnsafeSysctls_.size(); } /** * * *
     * allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none.
     * Each entry is either a plain sysctl name or ends in "*" in which case it is considered
     * as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed.
     * Kubelet has to allowlist all allowed unsafe sysctls explicitly to avoid rejection.
     * Examples:
     * e.g. "foo/*" allows "foo/bar", "foo/baz", etc.
     * e.g. "foo.*" allows "foo.bar", "foo.baz", etc.
     * +optional
     * 
* * repeated string allowedUnsafeSysctls = 19; */ public java.lang.String getAllowedUnsafeSysctls(int index) { return allowedUnsafeSysctls_.get(index); } /** * * *
     * allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none.
     * Each entry is either a plain sysctl name or ends in "*" in which case it is considered
     * as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed.
     * Kubelet has to allowlist all allowed unsafe sysctls explicitly to avoid rejection.
     * Examples:
     * e.g. "foo/*" allows "foo/bar", "foo/baz", etc.
     * e.g. "foo.*" allows "foo.bar", "foo.baz", etc.
     * +optional
     * 
* * repeated string allowedUnsafeSysctls = 19; */ public com.google.protobuf.ByteString getAllowedUnsafeSysctlsBytes(int index) { return allowedUnsafeSysctls_.getByteString(index); } public static final int FORBIDDENSYSCTLS_FIELD_NUMBER = 20; private com.google.protobuf.LazyStringList forbiddenSysctls_; /** * * *
     * forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none.
     * Each entry is either a plain sysctl name or ends in "*" in which case it is considered
     * as a prefix of forbidden sysctls. Single * means all sysctls are forbidden.
     * Examples:
     * e.g. "foo/*" forbids "foo/bar", "foo/baz", etc.
     * e.g. "foo.*" forbids "foo.bar", "foo.baz", etc.
     * +optional
     * 
* * repeated string forbiddenSysctls = 20; */ public com.google.protobuf.ProtocolStringList getForbiddenSysctlsList() { return forbiddenSysctls_; } /** * * *
     * forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none.
     * Each entry is either a plain sysctl name or ends in "*" in which case it is considered
     * as a prefix of forbidden sysctls. Single * means all sysctls are forbidden.
     * Examples:
     * e.g. "foo/*" forbids "foo/bar", "foo/baz", etc.
     * e.g. "foo.*" forbids "foo.bar", "foo.baz", etc.
     * +optional
     * 
* * repeated string forbiddenSysctls = 20; */ public int getForbiddenSysctlsCount() { return forbiddenSysctls_.size(); } /** * * *
     * forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none.
     * Each entry is either a plain sysctl name or ends in "*" in which case it is considered
     * as a prefix of forbidden sysctls. Single * means all sysctls are forbidden.
     * Examples:
     * e.g. "foo/*" forbids "foo/bar", "foo/baz", etc.
     * e.g. "foo.*" forbids "foo.bar", "foo.baz", etc.
     * +optional
     * 
* * repeated string forbiddenSysctls = 20; */ public java.lang.String getForbiddenSysctls(int index) { return forbiddenSysctls_.get(index); } /** * * *
     * forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none.
     * Each entry is either a plain sysctl name or ends in "*" in which case it is considered
     * as a prefix of forbidden sysctls. Single * means all sysctls are forbidden.
     * Examples:
     * e.g. "foo/*" forbids "foo/bar", "foo/baz", etc.
     * e.g. "foo.*" forbids "foo.bar", "foo.baz", etc.
     * +optional
     * 
* * repeated string forbiddenSysctls = 20; */ public com.google.protobuf.ByteString getForbiddenSysctlsBytes(int index) { return forbiddenSysctls_.getByteString(index); } public static final int ALLOWEDPROCMOUNTTYPES_FIELD_NUMBER = 21; private com.google.protobuf.LazyStringList allowedProcMountTypes_; /** * * *
     * AllowedProcMountTypes is an allowlist of allowed ProcMountTypes.
     * Empty or nil indicates that only the DefaultProcMountType may be used.
     * This requires the ProcMountType feature flag to be enabled.
     * +optional
     * 
* * repeated string allowedProcMountTypes = 21; */ public com.google.protobuf.ProtocolStringList getAllowedProcMountTypesList() { return allowedProcMountTypes_; } /** * * *
     * AllowedProcMountTypes is an allowlist of allowed ProcMountTypes.
     * Empty or nil indicates that only the DefaultProcMountType may be used.
     * This requires the ProcMountType feature flag to be enabled.
     * +optional
     * 
* * repeated string allowedProcMountTypes = 21; */ public int getAllowedProcMountTypesCount() { return allowedProcMountTypes_.size(); } /** * * *
     * AllowedProcMountTypes is an allowlist of allowed ProcMountTypes.
     * Empty or nil indicates that only the DefaultProcMountType may be used.
     * This requires the ProcMountType feature flag to be enabled.
     * +optional
     * 
* * repeated string allowedProcMountTypes = 21; */ public java.lang.String getAllowedProcMountTypes(int index) { return allowedProcMountTypes_.get(index); } /** * * *
     * AllowedProcMountTypes is an allowlist of allowed ProcMountTypes.
     * Empty or nil indicates that only the DefaultProcMountType may be used.
     * This requires the ProcMountType feature flag to be enabled.
     * +optional
     * 
* * repeated string allowedProcMountTypes = 21; */ public com.google.protobuf.ByteString getAllowedProcMountTypesBytes(int index) { return allowedProcMountTypes_.getByteString(index); } public static final int RUNTIMECLASS_FIELD_NUMBER = 24; private io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions runtimeClass_; /** * * *
     * runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod.
     * If this field is omitted, the pod's runtimeClassName field is unrestricted.
     * Enforcement of this field depends on the RuntimeClass feature gate being enabled.
     * +optional
     * 
* * optional .k8s.io.api.policy.v1beta1.RuntimeClassStrategyOptions runtimeClass = 24; * */ public boolean hasRuntimeClass() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * * *
     * runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod.
     * If this field is omitted, the pod's runtimeClassName field is unrestricted.
     * Enforcement of this field depends on the RuntimeClass feature gate being enabled.
     * +optional
     * 
* * optional .k8s.io.api.policy.v1beta1.RuntimeClassStrategyOptions runtimeClass = 24; * */ public io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions getRuntimeClass() { return runtimeClass_ == null ? io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions .getDefaultInstance() : runtimeClass_; } /** * * *
     * runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod.
     * If this field is omitted, the pod's runtimeClassName field is unrestricted.
     * Enforcement of this field depends on the RuntimeClass feature gate being enabled.
     * +optional
     * 
* * optional .k8s.io.api.policy.v1beta1.RuntimeClassStrategyOptions runtimeClass = 24; * */ public io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptionsOrBuilder getRuntimeClassOrBuilder() { return runtimeClass_ == null ? io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions .getDefaultInstance() : runtimeClass_; } 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.writeBool(1, privileged_); } for (int i = 0; i < defaultAddCapabilities_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString( output, 2, defaultAddCapabilities_.getRaw(i)); } for (int i = 0; i < requiredDropCapabilities_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString( output, 3, requiredDropCapabilities_.getRaw(i)); } for (int i = 0; i < allowedCapabilities_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString( output, 4, allowedCapabilities_.getRaw(i)); } for (int i = 0; i < volumes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, volumes_.getRaw(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(6, hostNetwork_); } for (int i = 0; i < hostPorts_.size(); i++) { output.writeMessage(7, hostPorts_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(8, hostPID_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(9, hostIPC_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(10, getSeLinux()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(11, getRunAsUser()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeMessage(12, getSupplementalGroups()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeMessage(13, getFsGroup()); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeBool(14, readOnlyRootFilesystem_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeBool(15, defaultAllowPrivilegeEscalation_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeBool(16, allowPrivilegeEscalation_); } for (int i = 0; i < allowedHostPaths_.size(); i++) { output.writeMessage(17, allowedHostPaths_.get(i)); } for (int i = 0; i < allowedFlexVolumes_.size(); i++) { output.writeMessage(18, allowedFlexVolumes_.get(i)); } for (int i = 0; i < allowedUnsafeSysctls_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString( output, 19, allowedUnsafeSysctls_.getRaw(i)); } for (int i = 0; i < forbiddenSysctls_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 20, forbiddenSysctls_.getRaw(i)); } for (int i = 0; i < allowedProcMountTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString( output, 21, allowedProcMountTypes_.getRaw(i)); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeMessage(22, getRunAsGroup()); } for (int i = 0; i < allowedCSIDrivers_.size(); i++) { output.writeMessage(23, allowedCSIDrivers_.get(i)); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeMessage(24, getRuntimeClass()); } 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.computeBoolSize(1, privileged_); } { int dataSize = 0; for (int i = 0; i < defaultAddCapabilities_.size(); i++) { dataSize += computeStringSizeNoTag(defaultAddCapabilities_.getRaw(i)); } size += dataSize; size += 1 * getDefaultAddCapabilitiesList().size(); } { int dataSize = 0; for (int i = 0; i < requiredDropCapabilities_.size(); i++) { dataSize += computeStringSizeNoTag(requiredDropCapabilities_.getRaw(i)); } size += dataSize; size += 1 * getRequiredDropCapabilitiesList().size(); } { int dataSize = 0; for (int i = 0; i < allowedCapabilities_.size(); i++) { dataSize += computeStringSizeNoTag(allowedCapabilities_.getRaw(i)); } size += dataSize; size += 1 * getAllowedCapabilitiesList().size(); } { int dataSize = 0; for (int i = 0; i < volumes_.size(); i++) { dataSize += computeStringSizeNoTag(volumes_.getRaw(i)); } size += dataSize; size += 1 * getVolumesList().size(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, hostNetwork_); } for (int i = 0; i < hostPorts_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, hostPorts_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, hostPID_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, hostIPC_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getSeLinux()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getRunAsUser()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getSupplementalGroups()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getFsGroup()); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, readOnlyRootFilesystem_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize( 15, defaultAllowPrivilegeEscalation_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(16, allowPrivilegeEscalation_); } for (int i = 0; i < allowedHostPaths_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, allowedHostPaths_.get(i)); } for (int i = 0; i < allowedFlexVolumes_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 18, allowedFlexVolumes_.get(i)); } { int dataSize = 0; for (int i = 0; i < allowedUnsafeSysctls_.size(); i++) { dataSize += computeStringSizeNoTag(allowedUnsafeSysctls_.getRaw(i)); } size += dataSize; size += 2 * getAllowedUnsafeSysctlsList().size(); } { int dataSize = 0; for (int i = 0; i < forbiddenSysctls_.size(); i++) { dataSize += computeStringSizeNoTag(forbiddenSysctls_.getRaw(i)); } size += dataSize; size += 2 * getForbiddenSysctlsList().size(); } { int dataSize = 0; for (int i = 0; i < allowedProcMountTypes_.size(); i++) { dataSize += computeStringSizeNoTag(allowedProcMountTypes_.getRaw(i)); } size += dataSize; size += 2 * getAllowedProcMountTypesList().size(); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getRunAsGroup()); } for (int i = 0; i < allowedCSIDrivers_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, allowedCSIDrivers_.get(i)); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getRuntimeClass()); } 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.V1beta1Policy.PodSecurityPolicySpec)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec other = (io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec) obj; boolean result = true; result = result && (hasPrivileged() == other.hasPrivileged()); if (hasPrivileged()) { result = result && (getPrivileged() == other.getPrivileged()); } result = result && getDefaultAddCapabilitiesList().equals(other.getDefaultAddCapabilitiesList()); result = result && getRequiredDropCapabilitiesList().equals(other.getRequiredDropCapabilitiesList()); result = result && getAllowedCapabilitiesList().equals(other.getAllowedCapabilitiesList()); result = result && getVolumesList().equals(other.getVolumesList()); result = result && (hasHostNetwork() == other.hasHostNetwork()); if (hasHostNetwork()) { result = result && (getHostNetwork() == other.getHostNetwork()); } result = result && getHostPortsList().equals(other.getHostPortsList()); result = result && (hasHostPID() == other.hasHostPID()); if (hasHostPID()) { result = result && (getHostPID() == other.getHostPID()); } result = result && (hasHostIPC() == other.hasHostIPC()); if (hasHostIPC()) { result = result && (getHostIPC() == other.getHostIPC()); } result = result && (hasSeLinux() == other.hasSeLinux()); if (hasSeLinux()) { result = result && getSeLinux().equals(other.getSeLinux()); } result = result && (hasRunAsUser() == other.hasRunAsUser()); if (hasRunAsUser()) { result = result && getRunAsUser().equals(other.getRunAsUser()); } result = result && (hasRunAsGroup() == other.hasRunAsGroup()); if (hasRunAsGroup()) { result = result && getRunAsGroup().equals(other.getRunAsGroup()); } result = result && (hasSupplementalGroups() == other.hasSupplementalGroups()); if (hasSupplementalGroups()) { result = result && getSupplementalGroups().equals(other.getSupplementalGroups()); } result = result && (hasFsGroup() == other.hasFsGroup()); if (hasFsGroup()) { result = result && getFsGroup().equals(other.getFsGroup()); } result = result && (hasReadOnlyRootFilesystem() == other.hasReadOnlyRootFilesystem()); if (hasReadOnlyRootFilesystem()) { result = result && (getReadOnlyRootFilesystem() == other.getReadOnlyRootFilesystem()); } result = result && (hasDefaultAllowPrivilegeEscalation() == other.hasDefaultAllowPrivilegeEscalation()); if (hasDefaultAllowPrivilegeEscalation()) { result = result && (getDefaultAllowPrivilegeEscalation() == other.getDefaultAllowPrivilegeEscalation()); } result = result && (hasAllowPrivilegeEscalation() == other.hasAllowPrivilegeEscalation()); if (hasAllowPrivilegeEscalation()) { result = result && (getAllowPrivilegeEscalation() == other.getAllowPrivilegeEscalation()); } result = result && getAllowedHostPathsList().equals(other.getAllowedHostPathsList()); result = result && getAllowedFlexVolumesList().equals(other.getAllowedFlexVolumesList()); result = result && getAllowedCSIDriversList().equals(other.getAllowedCSIDriversList()); result = result && getAllowedUnsafeSysctlsList().equals(other.getAllowedUnsafeSysctlsList()); result = result && getForbiddenSysctlsList().equals(other.getForbiddenSysctlsList()); result = result && getAllowedProcMountTypesList().equals(other.getAllowedProcMountTypesList()); result = result && (hasRuntimeClass() == other.hasRuntimeClass()); if (hasRuntimeClass()) { result = result && getRuntimeClass().equals(other.getRuntimeClass()); } 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 (hasPrivileged()) { hash = (37 * hash) + PRIVILEGED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPrivileged()); } if (getDefaultAddCapabilitiesCount() > 0) { hash = (37 * hash) + DEFAULTADDCAPABILITIES_FIELD_NUMBER; hash = (53 * hash) + getDefaultAddCapabilitiesList().hashCode(); } if (getRequiredDropCapabilitiesCount() > 0) { hash = (37 * hash) + REQUIREDDROPCAPABILITIES_FIELD_NUMBER; hash = (53 * hash) + getRequiredDropCapabilitiesList().hashCode(); } if (getAllowedCapabilitiesCount() > 0) { hash = (37 * hash) + ALLOWEDCAPABILITIES_FIELD_NUMBER; hash = (53 * hash) + getAllowedCapabilitiesList().hashCode(); } if (getVolumesCount() > 0) { hash = (37 * hash) + VOLUMES_FIELD_NUMBER; hash = (53 * hash) + getVolumesList().hashCode(); } if (hasHostNetwork()) { hash = (37 * hash) + HOSTNETWORK_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHostNetwork()); } if (getHostPortsCount() > 0) { hash = (37 * hash) + HOSTPORTS_FIELD_NUMBER; hash = (53 * hash) + getHostPortsList().hashCode(); } if (hasHostPID()) { hash = (37 * hash) + HOSTPID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHostPID()); } if (hasHostIPC()) { hash = (37 * hash) + HOSTIPC_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHostIPC()); } if (hasSeLinux()) { hash = (37 * hash) + SELINUX_FIELD_NUMBER; hash = (53 * hash) + getSeLinux().hashCode(); } if (hasRunAsUser()) { hash = (37 * hash) + RUNASUSER_FIELD_NUMBER; hash = (53 * hash) + getRunAsUser().hashCode(); } if (hasRunAsGroup()) { hash = (37 * hash) + RUNASGROUP_FIELD_NUMBER; hash = (53 * hash) + getRunAsGroup().hashCode(); } if (hasSupplementalGroups()) { hash = (37 * hash) + SUPPLEMENTALGROUPS_FIELD_NUMBER; hash = (53 * hash) + getSupplementalGroups().hashCode(); } if (hasFsGroup()) { hash = (37 * hash) + FSGROUP_FIELD_NUMBER; hash = (53 * hash) + getFsGroup().hashCode(); } if (hasReadOnlyRootFilesystem()) { hash = (37 * hash) + READONLYROOTFILESYSTEM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReadOnlyRootFilesystem()); } if (hasDefaultAllowPrivilegeEscalation()) { hash = (37 * hash) + DEFAULTALLOWPRIVILEGEESCALATION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDefaultAllowPrivilegeEscalation()); } if (hasAllowPrivilegeEscalation()) { hash = (37 * hash) + ALLOWPRIVILEGEESCALATION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowPrivilegeEscalation()); } if (getAllowedHostPathsCount() > 0) { hash = (37 * hash) + ALLOWEDHOSTPATHS_FIELD_NUMBER; hash = (53 * hash) + getAllowedHostPathsList().hashCode(); } if (getAllowedFlexVolumesCount() > 0) { hash = (37 * hash) + ALLOWEDFLEXVOLUMES_FIELD_NUMBER; hash = (53 * hash) + getAllowedFlexVolumesList().hashCode(); } if (getAllowedCSIDriversCount() > 0) { hash = (37 * hash) + ALLOWEDCSIDRIVERS_FIELD_NUMBER; hash = (53 * hash) + getAllowedCSIDriversList().hashCode(); } if (getAllowedUnsafeSysctlsCount() > 0) { hash = (37 * hash) + ALLOWEDUNSAFESYSCTLS_FIELD_NUMBER; hash = (53 * hash) + getAllowedUnsafeSysctlsList().hashCode(); } if (getForbiddenSysctlsCount() > 0) { hash = (37 * hash) + FORBIDDENSYSCTLS_FIELD_NUMBER; hash = (53 * hash) + getForbiddenSysctlsList().hashCode(); } if (getAllowedProcMountTypesCount() > 0) { hash = (37 * hash) + ALLOWEDPROCMOUNTTYPES_FIELD_NUMBER; hash = (53 * hash) + getAllowedProcMountTypesList().hashCode(); } if (hasRuntimeClass()) { hash = (37 * hash) + RUNTIMECLASS_FIELD_NUMBER; hash = (53 * hash) + getRuntimeClass().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec 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.V1beta1Policy.PodSecurityPolicySpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec 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.V1beta1Policy.PodSecurityPolicySpec parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec 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.V1beta1Policy.PodSecurityPolicySpec parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec 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.V1beta1Policy.PodSecurityPolicySpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec 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.V1beta1Policy.PodSecurityPolicySpec 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; } /** * * *
     * PodSecurityPolicySpec defines the policy enforced.
     * 
* * Protobuf type {@code k8s.io.api.policy.v1beta1.PodSecurityPolicySpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.policy.v1beta1.PodSecurityPolicySpec) io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_PodSecurityPolicySpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_PodSecurityPolicySpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec.class, io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec.Builder.class); } // Construct using io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getHostPortsFieldBuilder(); getSeLinuxFieldBuilder(); getRunAsUserFieldBuilder(); getRunAsGroupFieldBuilder(); getSupplementalGroupsFieldBuilder(); getFsGroupFieldBuilder(); getAllowedHostPathsFieldBuilder(); getAllowedFlexVolumesFieldBuilder(); getAllowedCSIDriversFieldBuilder(); getRuntimeClassFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); privileged_ = false; bitField0_ = (bitField0_ & ~0x00000001); defaultAddCapabilities_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); requiredDropCapabilities_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); allowedCapabilities_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); volumes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); hostNetwork_ = false; bitField0_ = (bitField0_ & ~0x00000020); if (hostPortsBuilder_ == null) { hostPorts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { hostPortsBuilder_.clear(); } hostPID_ = false; bitField0_ = (bitField0_ & ~0x00000080); hostIPC_ = false; bitField0_ = (bitField0_ & ~0x00000100); if (seLinuxBuilder_ == null) { seLinux_ = null; } else { seLinuxBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); if (runAsUserBuilder_ == null) { runAsUser_ = null; } else { runAsUserBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); if (runAsGroupBuilder_ == null) { runAsGroup_ = null; } else { runAsGroupBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); if (supplementalGroupsBuilder_ == null) { supplementalGroups_ = null; } else { supplementalGroupsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00001000); if (fsGroupBuilder_ == null) { fsGroup_ = null; } else { fsGroupBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00002000); readOnlyRootFilesystem_ = false; bitField0_ = (bitField0_ & ~0x00004000); defaultAllowPrivilegeEscalation_ = false; bitField0_ = (bitField0_ & ~0x00008000); allowPrivilegeEscalation_ = false; bitField0_ = (bitField0_ & ~0x00010000); if (allowedHostPathsBuilder_ == null) { allowedHostPaths_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00020000); } else { allowedHostPathsBuilder_.clear(); } if (allowedFlexVolumesBuilder_ == null) { allowedFlexVolumes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00040000); } else { allowedFlexVolumesBuilder_.clear(); } if (allowedCSIDriversBuilder_ == null) { allowedCSIDrivers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00080000); } else { allowedCSIDriversBuilder_.clear(); } allowedUnsafeSysctls_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00100000); forbiddenSysctls_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00200000); allowedProcMountTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00400000); if (runtimeClassBuilder_ == null) { runtimeClass_ = null; } else { runtimeClassBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00800000); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_PodSecurityPolicySpec_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec build() { io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec buildPartial() { io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec result = new io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.privileged_ = privileged_; if (((bitField0_ & 0x00000002) == 0x00000002)) { defaultAddCapabilities_ = defaultAddCapabilities_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.defaultAddCapabilities_ = defaultAddCapabilities_; if (((bitField0_ & 0x00000004) == 0x00000004)) { requiredDropCapabilities_ = requiredDropCapabilities_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); } result.requiredDropCapabilities_ = requiredDropCapabilities_; if (((bitField0_ & 0x00000008) == 0x00000008)) { allowedCapabilities_ = allowedCapabilities_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.allowedCapabilities_ = allowedCapabilities_; if (((bitField0_ & 0x00000010) == 0x00000010)) { volumes_ = volumes_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000010); } result.volumes_ = volumes_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000002; } result.hostNetwork_ = hostNetwork_; if (hostPortsBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040)) { hostPorts_ = java.util.Collections.unmodifiableList(hostPorts_); bitField0_ = (bitField0_ & ~0x00000040); } result.hostPorts_ = hostPorts_; } else { result.hostPorts_ = hostPortsBuilder_.build(); } if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000004; } result.hostPID_ = hostPID_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000008; } result.hostIPC_ = hostIPC_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000010; } if (seLinuxBuilder_ == null) { result.seLinux_ = seLinux_; } else { result.seLinux_ = seLinuxBuilder_.build(); } if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000020; } if (runAsUserBuilder_ == null) { result.runAsUser_ = runAsUser_; } else { result.runAsUser_ = runAsUserBuilder_.build(); } if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000040; } if (runAsGroupBuilder_ == null) { result.runAsGroup_ = runAsGroup_; } else { result.runAsGroup_ = runAsGroupBuilder_.build(); } if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00000080; } if (supplementalGroupsBuilder_ == null) { result.supplementalGroups_ = supplementalGroups_; } else { result.supplementalGroups_ = supplementalGroupsBuilder_.build(); } if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00000100; } if (fsGroupBuilder_ == null) { result.fsGroup_ = fsGroup_; } else { result.fsGroup_ = fsGroupBuilder_.build(); } if (((from_bitField0_ & 0x00004000) == 0x00004000)) { to_bitField0_ |= 0x00000200; } result.readOnlyRootFilesystem_ = readOnlyRootFilesystem_; if (((from_bitField0_ & 0x00008000) == 0x00008000)) { to_bitField0_ |= 0x00000400; } result.defaultAllowPrivilegeEscalation_ = defaultAllowPrivilegeEscalation_; if (((from_bitField0_ & 0x00010000) == 0x00010000)) { to_bitField0_ |= 0x00000800; } result.allowPrivilegeEscalation_ = allowPrivilegeEscalation_; if (allowedHostPathsBuilder_ == null) { if (((bitField0_ & 0x00020000) == 0x00020000)) { allowedHostPaths_ = java.util.Collections.unmodifiableList(allowedHostPaths_); bitField0_ = (bitField0_ & ~0x00020000); } result.allowedHostPaths_ = allowedHostPaths_; } else { result.allowedHostPaths_ = allowedHostPathsBuilder_.build(); } if (allowedFlexVolumesBuilder_ == null) { if (((bitField0_ & 0x00040000) == 0x00040000)) { allowedFlexVolumes_ = java.util.Collections.unmodifiableList(allowedFlexVolumes_); bitField0_ = (bitField0_ & ~0x00040000); } result.allowedFlexVolumes_ = allowedFlexVolumes_; } else { result.allowedFlexVolumes_ = allowedFlexVolumesBuilder_.build(); } if (allowedCSIDriversBuilder_ == null) { if (((bitField0_ & 0x00080000) == 0x00080000)) { allowedCSIDrivers_ = java.util.Collections.unmodifiableList(allowedCSIDrivers_); bitField0_ = (bitField0_ & ~0x00080000); } result.allowedCSIDrivers_ = allowedCSIDrivers_; } else { result.allowedCSIDrivers_ = allowedCSIDriversBuilder_.build(); } if (((bitField0_ & 0x00100000) == 0x00100000)) { allowedUnsafeSysctls_ = allowedUnsafeSysctls_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00100000); } result.allowedUnsafeSysctls_ = allowedUnsafeSysctls_; if (((bitField0_ & 0x00200000) == 0x00200000)) { forbiddenSysctls_ = forbiddenSysctls_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00200000); } result.forbiddenSysctls_ = forbiddenSysctls_; if (((bitField0_ & 0x00400000) == 0x00400000)) { allowedProcMountTypes_ = allowedProcMountTypes_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00400000); } result.allowedProcMountTypes_ = allowedProcMountTypes_; if (((from_bitField0_ & 0x00800000) == 0x00800000)) { to_bitField0_ |= 0x00001000; } if (runtimeClassBuilder_ == null) { result.runtimeClass_ = runtimeClass_; } else { result.runtimeClass_ = runtimeClassBuilder_.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.V1beta1Policy.PodSecurityPolicySpec) { return mergeFrom((io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec other) { if (other == io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec.getDefaultInstance()) return this; if (other.hasPrivileged()) { setPrivileged(other.getPrivileged()); } if (!other.defaultAddCapabilities_.isEmpty()) { if (defaultAddCapabilities_.isEmpty()) { defaultAddCapabilities_ = other.defaultAddCapabilities_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDefaultAddCapabilitiesIsMutable(); defaultAddCapabilities_.addAll(other.defaultAddCapabilities_); } onChanged(); } if (!other.requiredDropCapabilities_.isEmpty()) { if (requiredDropCapabilities_.isEmpty()) { requiredDropCapabilities_ = other.requiredDropCapabilities_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureRequiredDropCapabilitiesIsMutable(); requiredDropCapabilities_.addAll(other.requiredDropCapabilities_); } onChanged(); } if (!other.allowedCapabilities_.isEmpty()) { if (allowedCapabilities_.isEmpty()) { allowedCapabilities_ = other.allowedCapabilities_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureAllowedCapabilitiesIsMutable(); allowedCapabilities_.addAll(other.allowedCapabilities_); } onChanged(); } if (!other.volumes_.isEmpty()) { if (volumes_.isEmpty()) { volumes_ = other.volumes_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureVolumesIsMutable(); volumes_.addAll(other.volumes_); } onChanged(); } if (other.hasHostNetwork()) { setHostNetwork(other.getHostNetwork()); } if (hostPortsBuilder_ == null) { if (!other.hostPorts_.isEmpty()) { if (hostPorts_.isEmpty()) { hostPorts_ = other.hostPorts_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureHostPortsIsMutable(); hostPorts_.addAll(other.hostPorts_); } onChanged(); } } else { if (!other.hostPorts_.isEmpty()) { if (hostPortsBuilder_.isEmpty()) { hostPortsBuilder_.dispose(); hostPortsBuilder_ = null; hostPorts_ = other.hostPorts_; bitField0_ = (bitField0_ & ~0x00000040); hostPortsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getHostPortsFieldBuilder() : null; } else { hostPortsBuilder_.addAllMessages(other.hostPorts_); } } } if (other.hasHostPID()) { setHostPID(other.getHostPID()); } if (other.hasHostIPC()) { setHostIPC(other.getHostIPC()); } if (other.hasSeLinux()) { mergeSeLinux(other.getSeLinux()); } if (other.hasRunAsUser()) { mergeRunAsUser(other.getRunAsUser()); } if (other.hasRunAsGroup()) { mergeRunAsGroup(other.getRunAsGroup()); } if (other.hasSupplementalGroups()) { mergeSupplementalGroups(other.getSupplementalGroups()); } if (other.hasFsGroup()) { mergeFsGroup(other.getFsGroup()); } if (other.hasReadOnlyRootFilesystem()) { setReadOnlyRootFilesystem(other.getReadOnlyRootFilesystem()); } if (other.hasDefaultAllowPrivilegeEscalation()) { setDefaultAllowPrivilegeEscalation(other.getDefaultAllowPrivilegeEscalation()); } if (other.hasAllowPrivilegeEscalation()) { setAllowPrivilegeEscalation(other.getAllowPrivilegeEscalation()); } if (allowedHostPathsBuilder_ == null) { if (!other.allowedHostPaths_.isEmpty()) { if (allowedHostPaths_.isEmpty()) { allowedHostPaths_ = other.allowedHostPaths_; bitField0_ = (bitField0_ & ~0x00020000); } else { ensureAllowedHostPathsIsMutable(); allowedHostPaths_.addAll(other.allowedHostPaths_); } onChanged(); } } else { if (!other.allowedHostPaths_.isEmpty()) { if (allowedHostPathsBuilder_.isEmpty()) { allowedHostPathsBuilder_.dispose(); allowedHostPathsBuilder_ = null; allowedHostPaths_ = other.allowedHostPaths_; bitField0_ = (bitField0_ & ~0x00020000); allowedHostPathsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAllowedHostPathsFieldBuilder() : null; } else { allowedHostPathsBuilder_.addAllMessages(other.allowedHostPaths_); } } } if (allowedFlexVolumesBuilder_ == null) { if (!other.allowedFlexVolumes_.isEmpty()) { if (allowedFlexVolumes_.isEmpty()) { allowedFlexVolumes_ = other.allowedFlexVolumes_; bitField0_ = (bitField0_ & ~0x00040000); } else { ensureAllowedFlexVolumesIsMutable(); allowedFlexVolumes_.addAll(other.allowedFlexVolumes_); } onChanged(); } } else { if (!other.allowedFlexVolumes_.isEmpty()) { if (allowedFlexVolumesBuilder_.isEmpty()) { allowedFlexVolumesBuilder_.dispose(); allowedFlexVolumesBuilder_ = null; allowedFlexVolumes_ = other.allowedFlexVolumes_; bitField0_ = (bitField0_ & ~0x00040000); allowedFlexVolumesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAllowedFlexVolumesFieldBuilder() : null; } else { allowedFlexVolumesBuilder_.addAllMessages(other.allowedFlexVolumes_); } } } if (allowedCSIDriversBuilder_ == null) { if (!other.allowedCSIDrivers_.isEmpty()) { if (allowedCSIDrivers_.isEmpty()) { allowedCSIDrivers_ = other.allowedCSIDrivers_; bitField0_ = (bitField0_ & ~0x00080000); } else { ensureAllowedCSIDriversIsMutable(); allowedCSIDrivers_.addAll(other.allowedCSIDrivers_); } onChanged(); } } else { if (!other.allowedCSIDrivers_.isEmpty()) { if (allowedCSIDriversBuilder_.isEmpty()) { allowedCSIDriversBuilder_.dispose(); allowedCSIDriversBuilder_ = null; allowedCSIDrivers_ = other.allowedCSIDrivers_; bitField0_ = (bitField0_ & ~0x00080000); allowedCSIDriversBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAllowedCSIDriversFieldBuilder() : null; } else { allowedCSIDriversBuilder_.addAllMessages(other.allowedCSIDrivers_); } } } if (!other.allowedUnsafeSysctls_.isEmpty()) { if (allowedUnsafeSysctls_.isEmpty()) { allowedUnsafeSysctls_ = other.allowedUnsafeSysctls_; bitField0_ = (bitField0_ & ~0x00100000); } else { ensureAllowedUnsafeSysctlsIsMutable(); allowedUnsafeSysctls_.addAll(other.allowedUnsafeSysctls_); } onChanged(); } if (!other.forbiddenSysctls_.isEmpty()) { if (forbiddenSysctls_.isEmpty()) { forbiddenSysctls_ = other.forbiddenSysctls_; bitField0_ = (bitField0_ & ~0x00200000); } else { ensureForbiddenSysctlsIsMutable(); forbiddenSysctls_.addAll(other.forbiddenSysctls_); } onChanged(); } if (!other.allowedProcMountTypes_.isEmpty()) { if (allowedProcMountTypes_.isEmpty()) { allowedProcMountTypes_ = other.allowedProcMountTypes_; bitField0_ = (bitField0_ & ~0x00400000); } else { ensureAllowedProcMountTypesIsMutable(); allowedProcMountTypes_.addAll(other.allowedProcMountTypes_); } onChanged(); } if (other.hasRuntimeClass()) { mergeRuntimeClass(other.getRuntimeClass()); } 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.V1beta1Policy.PodSecurityPolicySpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private boolean privileged_; /** * * *
       * privileged determines if a pod can request to be run as privileged.
       * +optional
       * 
* * optional bool privileged = 1; */ public boolean hasPrivileged() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * privileged determines if a pod can request to be run as privileged.
       * +optional
       * 
* * optional bool privileged = 1; */ public boolean getPrivileged() { return privileged_; } /** * * *
       * privileged determines if a pod can request to be run as privileged.
       * +optional
       * 
* * optional bool privileged = 1; */ public Builder setPrivileged(boolean value) { bitField0_ |= 0x00000001; privileged_ = value; onChanged(); return this; } /** * * *
       * privileged determines if a pod can request to be run as privileged.
       * +optional
       * 
* * optional bool privileged = 1; */ public Builder clearPrivileged() { bitField0_ = (bitField0_ & ~0x00000001); privileged_ = false; onChanged(); return this; } private com.google.protobuf.LazyStringList defaultAddCapabilities_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDefaultAddCapabilitiesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { defaultAddCapabilities_ = new com.google.protobuf.LazyStringArrayList(defaultAddCapabilities_); bitField0_ |= 0x00000002; } } /** * * *
       * defaultAddCapabilities is the default set of capabilities that will be added to the container
       * unless the pod spec specifically drops the capability.  You may not list a capability in both
       * defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly
       * allowed, and need not be included in the allowedCapabilities list.
       * +optional
       * 
* * repeated string defaultAddCapabilities = 2; */ public com.google.protobuf.ProtocolStringList getDefaultAddCapabilitiesList() { return defaultAddCapabilities_.getUnmodifiableView(); } /** * * *
       * defaultAddCapabilities is the default set of capabilities that will be added to the container
       * unless the pod spec specifically drops the capability.  You may not list a capability in both
       * defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly
       * allowed, and need not be included in the allowedCapabilities list.
       * +optional
       * 
* * repeated string defaultAddCapabilities = 2; */ public int getDefaultAddCapabilitiesCount() { return defaultAddCapabilities_.size(); } /** * * *
       * defaultAddCapabilities is the default set of capabilities that will be added to the container
       * unless the pod spec specifically drops the capability.  You may not list a capability in both
       * defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly
       * allowed, and need not be included in the allowedCapabilities list.
       * +optional
       * 
* * repeated string defaultAddCapabilities = 2; */ public java.lang.String getDefaultAddCapabilities(int index) { return defaultAddCapabilities_.get(index); } /** * * *
       * defaultAddCapabilities is the default set of capabilities that will be added to the container
       * unless the pod spec specifically drops the capability.  You may not list a capability in both
       * defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly
       * allowed, and need not be included in the allowedCapabilities list.
       * +optional
       * 
* * repeated string defaultAddCapabilities = 2; */ public com.google.protobuf.ByteString getDefaultAddCapabilitiesBytes(int index) { return defaultAddCapabilities_.getByteString(index); } /** * * *
       * defaultAddCapabilities is the default set of capabilities that will be added to the container
       * unless the pod spec specifically drops the capability.  You may not list a capability in both
       * defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly
       * allowed, and need not be included in the allowedCapabilities list.
       * +optional
       * 
* * repeated string defaultAddCapabilities = 2; */ public Builder setDefaultAddCapabilities(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDefaultAddCapabilitiesIsMutable(); defaultAddCapabilities_.set(index, value); onChanged(); return this; } /** * * *
       * defaultAddCapabilities is the default set of capabilities that will be added to the container
       * unless the pod spec specifically drops the capability.  You may not list a capability in both
       * defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly
       * allowed, and need not be included in the allowedCapabilities list.
       * +optional
       * 
* * repeated string defaultAddCapabilities = 2; */ public Builder addDefaultAddCapabilities(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDefaultAddCapabilitiesIsMutable(); defaultAddCapabilities_.add(value); onChanged(); return this; } /** * * *
       * defaultAddCapabilities is the default set of capabilities that will be added to the container
       * unless the pod spec specifically drops the capability.  You may not list a capability in both
       * defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly
       * allowed, and need not be included in the allowedCapabilities list.
       * +optional
       * 
* * repeated string defaultAddCapabilities = 2; */ public Builder addAllDefaultAddCapabilities(java.lang.Iterable values) { ensureDefaultAddCapabilitiesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, defaultAddCapabilities_); onChanged(); return this; } /** * * *
       * defaultAddCapabilities is the default set of capabilities that will be added to the container
       * unless the pod spec specifically drops the capability.  You may not list a capability in both
       * defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly
       * allowed, and need not be included in the allowedCapabilities list.
       * +optional
       * 
* * repeated string defaultAddCapabilities = 2; */ public Builder clearDefaultAddCapabilities() { defaultAddCapabilities_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
       * defaultAddCapabilities is the default set of capabilities that will be added to the container
       * unless the pod spec specifically drops the capability.  You may not list a capability in both
       * defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly
       * allowed, and need not be included in the allowedCapabilities list.
       * +optional
       * 
* * repeated string defaultAddCapabilities = 2; */ public Builder addDefaultAddCapabilitiesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureDefaultAddCapabilitiesIsMutable(); defaultAddCapabilities_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList requiredDropCapabilities_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureRequiredDropCapabilitiesIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { requiredDropCapabilities_ = new com.google.protobuf.LazyStringArrayList(requiredDropCapabilities_); bitField0_ |= 0x00000004; } } /** * * *
       * requiredDropCapabilities are the capabilities that will be dropped from the container.  These
       * are required to be dropped and cannot be added.
       * +optional
       * 
* * repeated string requiredDropCapabilities = 3; */ public com.google.protobuf.ProtocolStringList getRequiredDropCapabilitiesList() { return requiredDropCapabilities_.getUnmodifiableView(); } /** * * *
       * requiredDropCapabilities are the capabilities that will be dropped from the container.  These
       * are required to be dropped and cannot be added.
       * +optional
       * 
* * repeated string requiredDropCapabilities = 3; */ public int getRequiredDropCapabilitiesCount() { return requiredDropCapabilities_.size(); } /** * * *
       * requiredDropCapabilities are the capabilities that will be dropped from the container.  These
       * are required to be dropped and cannot be added.
       * +optional
       * 
* * repeated string requiredDropCapabilities = 3; */ public java.lang.String getRequiredDropCapabilities(int index) { return requiredDropCapabilities_.get(index); } /** * * *
       * requiredDropCapabilities are the capabilities that will be dropped from the container.  These
       * are required to be dropped and cannot be added.
       * +optional
       * 
* * repeated string requiredDropCapabilities = 3; */ public com.google.protobuf.ByteString getRequiredDropCapabilitiesBytes(int index) { return requiredDropCapabilities_.getByteString(index); } /** * * *
       * requiredDropCapabilities are the capabilities that will be dropped from the container.  These
       * are required to be dropped and cannot be added.
       * +optional
       * 
* * repeated string requiredDropCapabilities = 3; */ public Builder setRequiredDropCapabilities(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRequiredDropCapabilitiesIsMutable(); requiredDropCapabilities_.set(index, value); onChanged(); return this; } /** * * *
       * requiredDropCapabilities are the capabilities that will be dropped from the container.  These
       * are required to be dropped and cannot be added.
       * +optional
       * 
* * repeated string requiredDropCapabilities = 3; */ public Builder addRequiredDropCapabilities(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRequiredDropCapabilitiesIsMutable(); requiredDropCapabilities_.add(value); onChanged(); return this; } /** * * *
       * requiredDropCapabilities are the capabilities that will be dropped from the container.  These
       * are required to be dropped and cannot be added.
       * +optional
       * 
* * repeated string requiredDropCapabilities = 3; */ public Builder addAllRequiredDropCapabilities(java.lang.Iterable values) { ensureRequiredDropCapabilitiesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requiredDropCapabilities_); onChanged(); return this; } /** * * *
       * requiredDropCapabilities are the capabilities that will be dropped from the container.  These
       * are required to be dropped and cannot be added.
       * +optional
       * 
* * repeated string requiredDropCapabilities = 3; */ public Builder clearRequiredDropCapabilities() { requiredDropCapabilities_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
       * requiredDropCapabilities are the capabilities that will be dropped from the container.  These
       * are required to be dropped and cannot be added.
       * +optional
       * 
* * repeated string requiredDropCapabilities = 3; */ public Builder addRequiredDropCapabilitiesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureRequiredDropCapabilitiesIsMutable(); requiredDropCapabilities_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList allowedCapabilities_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAllowedCapabilitiesIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { allowedCapabilities_ = new com.google.protobuf.LazyStringArrayList(allowedCapabilities_); bitField0_ |= 0x00000008; } } /** * * *
       * allowedCapabilities is a list of capabilities that can be requested to add to the container.
       * Capabilities in this field may be added at the pod author's discretion.
       * You must not list a capability in both allowedCapabilities and requiredDropCapabilities.
       * +optional
       * 
* * repeated string allowedCapabilities = 4; */ public com.google.protobuf.ProtocolStringList getAllowedCapabilitiesList() { return allowedCapabilities_.getUnmodifiableView(); } /** * * *
       * allowedCapabilities is a list of capabilities that can be requested to add to the container.
       * Capabilities in this field may be added at the pod author's discretion.
       * You must not list a capability in both allowedCapabilities and requiredDropCapabilities.
       * +optional
       * 
* * repeated string allowedCapabilities = 4; */ public int getAllowedCapabilitiesCount() { return allowedCapabilities_.size(); } /** * * *
       * allowedCapabilities is a list of capabilities that can be requested to add to the container.
       * Capabilities in this field may be added at the pod author's discretion.
       * You must not list a capability in both allowedCapabilities and requiredDropCapabilities.
       * +optional
       * 
* * repeated string allowedCapabilities = 4; */ public java.lang.String getAllowedCapabilities(int index) { return allowedCapabilities_.get(index); } /** * * *
       * allowedCapabilities is a list of capabilities that can be requested to add to the container.
       * Capabilities in this field may be added at the pod author's discretion.
       * You must not list a capability in both allowedCapabilities and requiredDropCapabilities.
       * +optional
       * 
* * repeated string allowedCapabilities = 4; */ public com.google.protobuf.ByteString getAllowedCapabilitiesBytes(int index) { return allowedCapabilities_.getByteString(index); } /** * * *
       * allowedCapabilities is a list of capabilities that can be requested to add to the container.
       * Capabilities in this field may be added at the pod author's discretion.
       * You must not list a capability in both allowedCapabilities and requiredDropCapabilities.
       * +optional
       * 
* * repeated string allowedCapabilities = 4; */ public Builder setAllowedCapabilities(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAllowedCapabilitiesIsMutable(); allowedCapabilities_.set(index, value); onChanged(); return this; } /** * * *
       * allowedCapabilities is a list of capabilities that can be requested to add to the container.
       * Capabilities in this field may be added at the pod author's discretion.
       * You must not list a capability in both allowedCapabilities and requiredDropCapabilities.
       * +optional
       * 
* * repeated string allowedCapabilities = 4; */ public Builder addAllowedCapabilities(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAllowedCapabilitiesIsMutable(); allowedCapabilities_.add(value); onChanged(); return this; } /** * * *
       * allowedCapabilities is a list of capabilities that can be requested to add to the container.
       * Capabilities in this field may be added at the pod author's discretion.
       * You must not list a capability in both allowedCapabilities and requiredDropCapabilities.
       * +optional
       * 
* * repeated string allowedCapabilities = 4; */ public Builder addAllAllowedCapabilities(java.lang.Iterable values) { ensureAllowedCapabilitiesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedCapabilities_); onChanged(); return this; } /** * * *
       * allowedCapabilities is a list of capabilities that can be requested to add to the container.
       * Capabilities in this field may be added at the pod author's discretion.
       * You must not list a capability in both allowedCapabilities and requiredDropCapabilities.
       * +optional
       * 
* * repeated string allowedCapabilities = 4; */ public Builder clearAllowedCapabilities() { allowedCapabilities_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * * *
       * allowedCapabilities is a list of capabilities that can be requested to add to the container.
       * Capabilities in this field may be added at the pod author's discretion.
       * You must not list a capability in both allowedCapabilities and requiredDropCapabilities.
       * +optional
       * 
* * repeated string allowedCapabilities = 4; */ public Builder addAllowedCapabilitiesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureAllowedCapabilitiesIsMutable(); allowedCapabilities_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList volumes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureVolumesIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { volumes_ = new com.google.protobuf.LazyStringArrayList(volumes_); bitField0_ |= 0x00000010; } } /** * * *
       * volumes is an allowlist of volume plugins. Empty indicates that
       * no volumes may be used. To allow all volumes you may use '*'.
       * +optional
       * 
* * repeated string volumes = 5; */ public com.google.protobuf.ProtocolStringList getVolumesList() { return volumes_.getUnmodifiableView(); } /** * * *
       * volumes is an allowlist of volume plugins. Empty indicates that
       * no volumes may be used. To allow all volumes you may use '*'.
       * +optional
       * 
* * repeated string volumes = 5; */ public int getVolumesCount() { return volumes_.size(); } /** * * *
       * volumes is an allowlist of volume plugins. Empty indicates that
       * no volumes may be used. To allow all volumes you may use '*'.
       * +optional
       * 
* * repeated string volumes = 5; */ public java.lang.String getVolumes(int index) { return volumes_.get(index); } /** * * *
       * volumes is an allowlist of volume plugins. Empty indicates that
       * no volumes may be used. To allow all volumes you may use '*'.
       * +optional
       * 
* * repeated string volumes = 5; */ public com.google.protobuf.ByteString getVolumesBytes(int index) { return volumes_.getByteString(index); } /** * * *
       * volumes is an allowlist of volume plugins. Empty indicates that
       * no volumes may be used. To allow all volumes you may use '*'.
       * +optional
       * 
* * repeated string volumes = 5; */ public Builder setVolumes(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureVolumesIsMutable(); volumes_.set(index, value); onChanged(); return this; } /** * * *
       * volumes is an allowlist of volume plugins. Empty indicates that
       * no volumes may be used. To allow all volumes you may use '*'.
       * +optional
       * 
* * repeated string volumes = 5; */ public Builder addVolumes(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureVolumesIsMutable(); volumes_.add(value); onChanged(); return this; } /** * * *
       * volumes is an allowlist of volume plugins. Empty indicates that
       * no volumes may be used. To allow all volumes you may use '*'.
       * +optional
       * 
* * repeated string volumes = 5; */ public Builder addAllVolumes(java.lang.Iterable values) { ensureVolumesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, volumes_); onChanged(); return this; } /** * * *
       * volumes is an allowlist of volume plugins. Empty indicates that
       * no volumes may be used. To allow all volumes you may use '*'.
       * +optional
       * 
* * repeated string volumes = 5; */ public Builder clearVolumes() { volumes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * * *
       * volumes is an allowlist of volume plugins. Empty indicates that
       * no volumes may be used. To allow all volumes you may use '*'.
       * +optional
       * 
* * repeated string volumes = 5; */ public Builder addVolumesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureVolumesIsMutable(); volumes_.add(value); onChanged(); return this; } private boolean hostNetwork_; /** * * *
       * hostNetwork determines if the policy allows the use of HostNetwork in the pod spec.
       * +optional
       * 
* * optional bool hostNetwork = 6; */ public boolean hasHostNetwork() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * * *
       * hostNetwork determines if the policy allows the use of HostNetwork in the pod spec.
       * +optional
       * 
* * optional bool hostNetwork = 6; */ public boolean getHostNetwork() { return hostNetwork_; } /** * * *
       * hostNetwork determines if the policy allows the use of HostNetwork in the pod spec.
       * +optional
       * 
* * optional bool hostNetwork = 6; */ public Builder setHostNetwork(boolean value) { bitField0_ |= 0x00000020; hostNetwork_ = value; onChanged(); return this; } /** * * *
       * hostNetwork determines if the policy allows the use of HostNetwork in the pod spec.
       * +optional
       * 
* * optional bool hostNetwork = 6; */ public Builder clearHostNetwork() { bitField0_ = (bitField0_ & ~0x00000020); hostNetwork_ = false; onChanged(); return this; } private java.util.List hostPorts_ = java.util.Collections.emptyList(); private void ensureHostPortsIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { hostPorts_ = new java.util.ArrayList( hostPorts_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.HostPortRange, io.kubernetes.client.proto.V1beta1Policy.HostPortRange.Builder, io.kubernetes.client.proto.V1beta1Policy.HostPortRangeOrBuilder> hostPortsBuilder_; /** * * *
       * hostPorts determines which host port ranges are allowed to be exposed.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.HostPortRange hostPorts = 7; */ public java.util.List getHostPortsList() { if (hostPortsBuilder_ == null) { return java.util.Collections.unmodifiableList(hostPorts_); } else { return hostPortsBuilder_.getMessageList(); } } /** * * *
       * hostPorts determines which host port ranges are allowed to be exposed.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.HostPortRange hostPorts = 7; */ public int getHostPortsCount() { if (hostPortsBuilder_ == null) { return hostPorts_.size(); } else { return hostPortsBuilder_.getCount(); } } /** * * *
       * hostPorts determines which host port ranges are allowed to be exposed.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.HostPortRange hostPorts = 7; */ public io.kubernetes.client.proto.V1beta1Policy.HostPortRange getHostPorts(int index) { if (hostPortsBuilder_ == null) { return hostPorts_.get(index); } else { return hostPortsBuilder_.getMessage(index); } } /** * * *
       * hostPorts determines which host port ranges are allowed to be exposed.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.HostPortRange hostPorts = 7; */ public Builder setHostPorts( int index, io.kubernetes.client.proto.V1beta1Policy.HostPortRange value) { if (hostPortsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHostPortsIsMutable(); hostPorts_.set(index, value); onChanged(); } else { hostPortsBuilder_.setMessage(index, value); } return this; } /** * * *
       * hostPorts determines which host port ranges are allowed to be exposed.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.HostPortRange hostPorts = 7; */ public Builder setHostPorts( int index, io.kubernetes.client.proto.V1beta1Policy.HostPortRange.Builder builderForValue) { if (hostPortsBuilder_ == null) { ensureHostPortsIsMutable(); hostPorts_.set(index, builderForValue.build()); onChanged(); } else { hostPortsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * hostPorts determines which host port ranges are allowed to be exposed.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.HostPortRange hostPorts = 7; */ public Builder addHostPorts(io.kubernetes.client.proto.V1beta1Policy.HostPortRange value) { if (hostPortsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHostPortsIsMutable(); hostPorts_.add(value); onChanged(); } else { hostPortsBuilder_.addMessage(value); } return this; } /** * * *
       * hostPorts determines which host port ranges are allowed to be exposed.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.HostPortRange hostPorts = 7; */ public Builder addHostPorts( int index, io.kubernetes.client.proto.V1beta1Policy.HostPortRange value) { if (hostPortsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHostPortsIsMutable(); hostPorts_.add(index, value); onChanged(); } else { hostPortsBuilder_.addMessage(index, value); } return this; } /** * * *
       * hostPorts determines which host port ranges are allowed to be exposed.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.HostPortRange hostPorts = 7; */ public Builder addHostPorts( io.kubernetes.client.proto.V1beta1Policy.HostPortRange.Builder builderForValue) { if (hostPortsBuilder_ == null) { ensureHostPortsIsMutable(); hostPorts_.add(builderForValue.build()); onChanged(); } else { hostPortsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * hostPorts determines which host port ranges are allowed to be exposed.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.HostPortRange hostPorts = 7; */ public Builder addHostPorts( int index, io.kubernetes.client.proto.V1beta1Policy.HostPortRange.Builder builderForValue) { if (hostPortsBuilder_ == null) { ensureHostPortsIsMutable(); hostPorts_.add(index, builderForValue.build()); onChanged(); } else { hostPortsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * hostPorts determines which host port ranges are allowed to be exposed.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.HostPortRange hostPorts = 7; */ public Builder addAllHostPorts( java.lang.Iterable values) { if (hostPortsBuilder_ == null) { ensureHostPortsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hostPorts_); onChanged(); } else { hostPortsBuilder_.addAllMessages(values); } return this; } /** * * *
       * hostPorts determines which host port ranges are allowed to be exposed.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.HostPortRange hostPorts = 7; */ public Builder clearHostPorts() { if (hostPortsBuilder_ == null) { hostPorts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { hostPortsBuilder_.clear(); } return this; } /** * * *
       * hostPorts determines which host port ranges are allowed to be exposed.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.HostPortRange hostPorts = 7; */ public Builder removeHostPorts(int index) { if (hostPortsBuilder_ == null) { ensureHostPortsIsMutable(); hostPorts_.remove(index); onChanged(); } else { hostPortsBuilder_.remove(index); } return this; } /** * * *
       * hostPorts determines which host port ranges are allowed to be exposed.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.HostPortRange hostPorts = 7; */ public io.kubernetes.client.proto.V1beta1Policy.HostPortRange.Builder getHostPortsBuilder( int index) { return getHostPortsFieldBuilder().getBuilder(index); } /** * * *
       * hostPorts determines which host port ranges are allowed to be exposed.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.HostPortRange hostPorts = 7; */ public io.kubernetes.client.proto.V1beta1Policy.HostPortRangeOrBuilder getHostPortsOrBuilder( int index) { if (hostPortsBuilder_ == null) { return hostPorts_.get(index); } else { return hostPortsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * hostPorts determines which host port ranges are allowed to be exposed.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.HostPortRange hostPorts = 7; */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Policy.HostPortRangeOrBuilder> getHostPortsOrBuilderList() { if (hostPortsBuilder_ != null) { return hostPortsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(hostPorts_); } } /** * * *
       * hostPorts determines which host port ranges are allowed to be exposed.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.HostPortRange hostPorts = 7; */ public io.kubernetes.client.proto.V1beta1Policy.HostPortRange.Builder addHostPortsBuilder() { return getHostPortsFieldBuilder() .addBuilder( io.kubernetes.client.proto.V1beta1Policy.HostPortRange.getDefaultInstance()); } /** * * *
       * hostPorts determines which host port ranges are allowed to be exposed.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.HostPortRange hostPorts = 7; */ public io.kubernetes.client.proto.V1beta1Policy.HostPortRange.Builder addHostPortsBuilder( int index) { return getHostPortsFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1beta1Policy.HostPortRange.getDefaultInstance()); } /** * * *
       * hostPorts determines which host port ranges are allowed to be exposed.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.HostPortRange hostPorts = 7; */ public java.util.List getHostPortsBuilderList() { return getHostPortsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.HostPortRange, io.kubernetes.client.proto.V1beta1Policy.HostPortRange.Builder, io.kubernetes.client.proto.V1beta1Policy.HostPortRangeOrBuilder> getHostPortsFieldBuilder() { if (hostPortsBuilder_ == null) { hostPortsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.HostPortRange, io.kubernetes.client.proto.V1beta1Policy.HostPortRange.Builder, io.kubernetes.client.proto.V1beta1Policy.HostPortRangeOrBuilder>( hostPorts_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); hostPorts_ = null; } return hostPortsBuilder_; } private boolean hostPID_; /** * * *
       * hostPID determines if the policy allows the use of HostPID in the pod spec.
       * +optional
       * 
* * optional bool hostPID = 8; */ public boolean hasHostPID() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * * *
       * hostPID determines if the policy allows the use of HostPID in the pod spec.
       * +optional
       * 
* * optional bool hostPID = 8; */ public boolean getHostPID() { return hostPID_; } /** * * *
       * hostPID determines if the policy allows the use of HostPID in the pod spec.
       * +optional
       * 
* * optional bool hostPID = 8; */ public Builder setHostPID(boolean value) { bitField0_ |= 0x00000080; hostPID_ = value; onChanged(); return this; } /** * * *
       * hostPID determines if the policy allows the use of HostPID in the pod spec.
       * +optional
       * 
* * optional bool hostPID = 8; */ public Builder clearHostPID() { bitField0_ = (bitField0_ & ~0x00000080); hostPID_ = false; onChanged(); return this; } private boolean hostIPC_; /** * * *
       * hostIPC determines if the policy allows the use of HostIPC in the pod spec.
       * +optional
       * 
* * optional bool hostIPC = 9; */ public boolean hasHostIPC() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * * *
       * hostIPC determines if the policy allows the use of HostIPC in the pod spec.
       * +optional
       * 
* * optional bool hostIPC = 9; */ public boolean getHostIPC() { return hostIPC_; } /** * * *
       * hostIPC determines if the policy allows the use of HostIPC in the pod spec.
       * +optional
       * 
* * optional bool hostIPC = 9; */ public Builder setHostIPC(boolean value) { bitField0_ |= 0x00000100; hostIPC_ = value; onChanged(); return this; } /** * * *
       * hostIPC determines if the policy allows the use of HostIPC in the pod spec.
       * +optional
       * 
* * optional bool hostIPC = 9; */ public Builder clearHostIPC() { bitField0_ = (bitField0_ & ~0x00000100); hostIPC_ = false; onChanged(); return this; } private io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions seLinux_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions, io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions.Builder, io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptionsOrBuilder> seLinuxBuilder_; /** * * *
       * seLinux is the strategy that will dictate the allowable labels that may be set.
       * 
* * optional .k8s.io.api.policy.v1beta1.SELinuxStrategyOptions seLinux = 10; */ public boolean hasSeLinux() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * * *
       * seLinux is the strategy that will dictate the allowable labels that may be set.
       * 
* * optional .k8s.io.api.policy.v1beta1.SELinuxStrategyOptions seLinux = 10; */ public io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions getSeLinux() { if (seLinuxBuilder_ == null) { return seLinux_ == null ? io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions.getDefaultInstance() : seLinux_; } else { return seLinuxBuilder_.getMessage(); } } /** * * *
       * seLinux is the strategy that will dictate the allowable labels that may be set.
       * 
* * optional .k8s.io.api.policy.v1beta1.SELinuxStrategyOptions seLinux = 10; */ public Builder setSeLinux( io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions value) { if (seLinuxBuilder_ == null) { if (value == null) { throw new NullPointerException(); } seLinux_ = value; onChanged(); } else { seLinuxBuilder_.setMessage(value); } bitField0_ |= 0x00000200; return this; } /** * * *
       * seLinux is the strategy that will dictate the allowable labels that may be set.
       * 
* * optional .k8s.io.api.policy.v1beta1.SELinuxStrategyOptions seLinux = 10; */ public Builder setSeLinux( io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions.Builder builderForValue) { if (seLinuxBuilder_ == null) { seLinux_ = builderForValue.build(); onChanged(); } else { seLinuxBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; return this; } /** * * *
       * seLinux is the strategy that will dictate the allowable labels that may be set.
       * 
* * optional .k8s.io.api.policy.v1beta1.SELinuxStrategyOptions seLinux = 10; */ public Builder mergeSeLinux( io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions value) { if (seLinuxBuilder_ == null) { if (((bitField0_ & 0x00000200) == 0x00000200) && seLinux_ != null && seLinux_ != io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions .getDefaultInstance()) { seLinux_ = io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions.newBuilder(seLinux_) .mergeFrom(value) .buildPartial(); } else { seLinux_ = value; } onChanged(); } else { seLinuxBuilder_.mergeFrom(value); } bitField0_ |= 0x00000200; return this; } /** * * *
       * seLinux is the strategy that will dictate the allowable labels that may be set.
       * 
* * optional .k8s.io.api.policy.v1beta1.SELinuxStrategyOptions seLinux = 10; */ public Builder clearSeLinux() { if (seLinuxBuilder_ == null) { seLinux_ = null; onChanged(); } else { seLinuxBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); return this; } /** * * *
       * seLinux is the strategy that will dictate the allowable labels that may be set.
       * 
* * optional .k8s.io.api.policy.v1beta1.SELinuxStrategyOptions seLinux = 10; */ public io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions.Builder getSeLinuxBuilder() { bitField0_ |= 0x00000200; onChanged(); return getSeLinuxFieldBuilder().getBuilder(); } /** * * *
       * seLinux is the strategy that will dictate the allowable labels that may be set.
       * 
* * optional .k8s.io.api.policy.v1beta1.SELinuxStrategyOptions seLinux = 10; */ public io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptionsOrBuilder getSeLinuxOrBuilder() { if (seLinuxBuilder_ != null) { return seLinuxBuilder_.getMessageOrBuilder(); } else { return seLinux_ == null ? io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions.getDefaultInstance() : seLinux_; } } /** * * *
       * seLinux is the strategy that will dictate the allowable labels that may be set.
       * 
* * optional .k8s.io.api.policy.v1beta1.SELinuxStrategyOptions seLinux = 10; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions, io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions.Builder, io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptionsOrBuilder> getSeLinuxFieldBuilder() { if (seLinuxBuilder_ == null) { seLinuxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions, io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions.Builder, io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptionsOrBuilder>( getSeLinux(), getParentForChildren(), isClean()); seLinux_ = null; } return seLinuxBuilder_; } private io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions runAsUser_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions, io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions.Builder, io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptionsOrBuilder> runAsUserBuilder_; /** * * *
       * runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set.
       * 
* * optional .k8s.io.api.policy.v1beta1.RunAsUserStrategyOptions runAsUser = 11; */ public boolean hasRunAsUser() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * * *
       * runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set.
       * 
* * optional .k8s.io.api.policy.v1beta1.RunAsUserStrategyOptions runAsUser = 11; */ public io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions getRunAsUser() { if (runAsUserBuilder_ == null) { return runAsUser_ == null ? io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions .getDefaultInstance() : runAsUser_; } else { return runAsUserBuilder_.getMessage(); } } /** * * *
       * runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set.
       * 
* * optional .k8s.io.api.policy.v1beta1.RunAsUserStrategyOptions runAsUser = 11; */ public Builder setRunAsUser( io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions value) { if (runAsUserBuilder_ == null) { if (value == null) { throw new NullPointerException(); } runAsUser_ = value; onChanged(); } else { runAsUserBuilder_.setMessage(value); } bitField0_ |= 0x00000400; return this; } /** * * *
       * runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set.
       * 
* * optional .k8s.io.api.policy.v1beta1.RunAsUserStrategyOptions runAsUser = 11; */ public Builder setRunAsUser( io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions.Builder builderForValue) { if (runAsUserBuilder_ == null) { runAsUser_ = builderForValue.build(); onChanged(); } else { runAsUserBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; return this; } /** * * *
       * runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set.
       * 
* * optional .k8s.io.api.policy.v1beta1.RunAsUserStrategyOptions runAsUser = 11; */ public Builder mergeRunAsUser( io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions value) { if (runAsUserBuilder_ == null) { if (((bitField0_ & 0x00000400) == 0x00000400) && runAsUser_ != null && runAsUser_ != io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions .getDefaultInstance()) { runAsUser_ = io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions.newBuilder( runAsUser_) .mergeFrom(value) .buildPartial(); } else { runAsUser_ = value; } onChanged(); } else { runAsUserBuilder_.mergeFrom(value); } bitField0_ |= 0x00000400; return this; } /** * * *
       * runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set.
       * 
* * optional .k8s.io.api.policy.v1beta1.RunAsUserStrategyOptions runAsUser = 11; */ public Builder clearRunAsUser() { if (runAsUserBuilder_ == null) { runAsUser_ = null; onChanged(); } else { runAsUserBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); return this; } /** * * *
       * runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set.
       * 
* * optional .k8s.io.api.policy.v1beta1.RunAsUserStrategyOptions runAsUser = 11; */ public io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions.Builder getRunAsUserBuilder() { bitField0_ |= 0x00000400; onChanged(); return getRunAsUserFieldBuilder().getBuilder(); } /** * * *
       * runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set.
       * 
* * optional .k8s.io.api.policy.v1beta1.RunAsUserStrategyOptions runAsUser = 11; */ public io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptionsOrBuilder getRunAsUserOrBuilder() { if (runAsUserBuilder_ != null) { return runAsUserBuilder_.getMessageOrBuilder(); } else { return runAsUser_ == null ? io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions .getDefaultInstance() : runAsUser_; } } /** * * *
       * runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set.
       * 
* * optional .k8s.io.api.policy.v1beta1.RunAsUserStrategyOptions runAsUser = 11; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions, io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions.Builder, io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptionsOrBuilder> getRunAsUserFieldBuilder() { if (runAsUserBuilder_ == null) { runAsUserBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions, io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions.Builder, io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptionsOrBuilder>( getRunAsUser(), getParentForChildren(), isClean()); runAsUser_ = null; } return runAsUserBuilder_; } private io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions runAsGroup_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions, io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions.Builder, io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptionsOrBuilder> runAsGroupBuilder_; /** * * *
       * RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set.
       * If this field is omitted, the pod's RunAsGroup can take any value. This field requires the
       * RunAsGroup feature gate to be enabled.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.RunAsGroupStrategyOptions runAsGroup = 22; */ public boolean hasRunAsGroup() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * * *
       * RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set.
       * If this field is omitted, the pod's RunAsGroup can take any value. This field requires the
       * RunAsGroup feature gate to be enabled.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.RunAsGroupStrategyOptions runAsGroup = 22; */ public io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions getRunAsGroup() { if (runAsGroupBuilder_ == null) { return runAsGroup_ == null ? io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions .getDefaultInstance() : runAsGroup_; } else { return runAsGroupBuilder_.getMessage(); } } /** * * *
       * RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set.
       * If this field is omitted, the pod's RunAsGroup can take any value. This field requires the
       * RunAsGroup feature gate to be enabled.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.RunAsGroupStrategyOptions runAsGroup = 22; */ public Builder setRunAsGroup( io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions value) { if (runAsGroupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } runAsGroup_ = value; onChanged(); } else { runAsGroupBuilder_.setMessage(value); } bitField0_ |= 0x00000800; return this; } /** * * *
       * RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set.
       * If this field is omitted, the pod's RunAsGroup can take any value. This field requires the
       * RunAsGroup feature gate to be enabled.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.RunAsGroupStrategyOptions runAsGroup = 22; */ public Builder setRunAsGroup( io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions.Builder builderForValue) { if (runAsGroupBuilder_ == null) { runAsGroup_ = builderForValue.build(); onChanged(); } else { runAsGroupBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000800; return this; } /** * * *
       * RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set.
       * If this field is omitted, the pod's RunAsGroup can take any value. This field requires the
       * RunAsGroup feature gate to be enabled.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.RunAsGroupStrategyOptions runAsGroup = 22; */ public Builder mergeRunAsGroup( io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions value) { if (runAsGroupBuilder_ == null) { if (((bitField0_ & 0x00000800) == 0x00000800) && runAsGroup_ != null && runAsGroup_ != io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions .getDefaultInstance()) { runAsGroup_ = io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions.newBuilder( runAsGroup_) .mergeFrom(value) .buildPartial(); } else { runAsGroup_ = value; } onChanged(); } else { runAsGroupBuilder_.mergeFrom(value); } bitField0_ |= 0x00000800; return this; } /** * * *
       * RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set.
       * If this field is omitted, the pod's RunAsGroup can take any value. This field requires the
       * RunAsGroup feature gate to be enabled.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.RunAsGroupStrategyOptions runAsGroup = 22; */ public Builder clearRunAsGroup() { if (runAsGroupBuilder_ == null) { runAsGroup_ = null; onChanged(); } else { runAsGroupBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); return this; } /** * * *
       * RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set.
       * If this field is omitted, the pod's RunAsGroup can take any value. This field requires the
       * RunAsGroup feature gate to be enabled.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.RunAsGroupStrategyOptions runAsGroup = 22; */ public io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions.Builder getRunAsGroupBuilder() { bitField0_ |= 0x00000800; onChanged(); return getRunAsGroupFieldBuilder().getBuilder(); } /** * * *
       * RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set.
       * If this field is omitted, the pod's RunAsGroup can take any value. This field requires the
       * RunAsGroup feature gate to be enabled.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.RunAsGroupStrategyOptions runAsGroup = 22; */ public io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptionsOrBuilder getRunAsGroupOrBuilder() { if (runAsGroupBuilder_ != null) { return runAsGroupBuilder_.getMessageOrBuilder(); } else { return runAsGroup_ == null ? io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions .getDefaultInstance() : runAsGroup_; } } /** * * *
       * RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set.
       * If this field is omitted, the pod's RunAsGroup can take any value. This field requires the
       * RunAsGroup feature gate to be enabled.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.RunAsGroupStrategyOptions runAsGroup = 22; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions, io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions.Builder, io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptionsOrBuilder> getRunAsGroupFieldBuilder() { if (runAsGroupBuilder_ == null) { runAsGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions, io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions.Builder, io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptionsOrBuilder>( getRunAsGroup(), getParentForChildren(), isClean()); runAsGroup_ = null; } return runAsGroupBuilder_; } private io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions supplementalGroups_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions, io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions.Builder, io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptionsOrBuilder> supplementalGroupsBuilder_; /** * * *
       * supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext.
       * 
* * * optional .k8s.io.api.policy.v1beta1.SupplementalGroupsStrategyOptions supplementalGroups = 12; * */ public boolean hasSupplementalGroups() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * * *
       * supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext.
       * 
* * * optional .k8s.io.api.policy.v1beta1.SupplementalGroupsStrategyOptions supplementalGroups = 12; * */ public io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions getSupplementalGroups() { if (supplementalGroupsBuilder_ == null) { return supplementalGroups_ == null ? io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions .getDefaultInstance() : supplementalGroups_; } else { return supplementalGroupsBuilder_.getMessage(); } } /** * * *
       * supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext.
       * 
* * * optional .k8s.io.api.policy.v1beta1.SupplementalGroupsStrategyOptions supplementalGroups = 12; * */ public Builder setSupplementalGroups( io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions value) { if (supplementalGroupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } supplementalGroups_ = value; onChanged(); } else { supplementalGroupsBuilder_.setMessage(value); } bitField0_ |= 0x00001000; return this; } /** * * *
       * supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext.
       * 
* * * optional .k8s.io.api.policy.v1beta1.SupplementalGroupsStrategyOptions supplementalGroups = 12; * */ public Builder setSupplementalGroups( io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions.Builder builderForValue) { if (supplementalGroupsBuilder_ == null) { supplementalGroups_ = builderForValue.build(); onChanged(); } else { supplementalGroupsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00001000; return this; } /** * * *
       * supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext.
       * 
* * * optional .k8s.io.api.policy.v1beta1.SupplementalGroupsStrategyOptions supplementalGroups = 12; * */ public Builder mergeSupplementalGroups( io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions value) { if (supplementalGroupsBuilder_ == null) { if (((bitField0_ & 0x00001000) == 0x00001000) && supplementalGroups_ != null && supplementalGroups_ != io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions .getDefaultInstance()) { supplementalGroups_ = io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions .newBuilder(supplementalGroups_) .mergeFrom(value) .buildPartial(); } else { supplementalGroups_ = value; } onChanged(); } else { supplementalGroupsBuilder_.mergeFrom(value); } bitField0_ |= 0x00001000; return this; } /** * * *
       * supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext.
       * 
* * * optional .k8s.io.api.policy.v1beta1.SupplementalGroupsStrategyOptions supplementalGroups = 12; * */ public Builder clearSupplementalGroups() { if (supplementalGroupsBuilder_ == null) { supplementalGroups_ = null; onChanged(); } else { supplementalGroupsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00001000); return this; } /** * * *
       * supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext.
       * 
* * * optional .k8s.io.api.policy.v1beta1.SupplementalGroupsStrategyOptions supplementalGroups = 12; * */ public io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions.Builder getSupplementalGroupsBuilder() { bitField0_ |= 0x00001000; onChanged(); return getSupplementalGroupsFieldBuilder().getBuilder(); } /** * * *
       * supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext.
       * 
* * * optional .k8s.io.api.policy.v1beta1.SupplementalGroupsStrategyOptions supplementalGroups = 12; * */ public io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptionsOrBuilder getSupplementalGroupsOrBuilder() { if (supplementalGroupsBuilder_ != null) { return supplementalGroupsBuilder_.getMessageOrBuilder(); } else { return supplementalGroups_ == null ? io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions .getDefaultInstance() : supplementalGroups_; } } /** * * *
       * supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext.
       * 
* * * optional .k8s.io.api.policy.v1beta1.SupplementalGroupsStrategyOptions supplementalGroups = 12; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions, io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions.Builder, io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptionsOrBuilder> getSupplementalGroupsFieldBuilder() { if (supplementalGroupsBuilder_ == null) { supplementalGroupsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions, io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions .Builder, io.kubernetes.client.proto.V1beta1Policy .SupplementalGroupsStrategyOptionsOrBuilder>( getSupplementalGroups(), getParentForChildren(), isClean()); supplementalGroups_ = null; } return supplementalGroupsBuilder_; } private io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions fsGroup_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions, io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions.Builder, io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptionsOrBuilder> fsGroupBuilder_; /** * * *
       * fsGroup is the strategy that will dictate what fs group is used by the SecurityContext.
       * 
* * optional .k8s.io.api.policy.v1beta1.FSGroupStrategyOptions fsGroup = 13; */ public boolean hasFsGroup() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * * *
       * fsGroup is the strategy that will dictate what fs group is used by the SecurityContext.
       * 
* * optional .k8s.io.api.policy.v1beta1.FSGroupStrategyOptions fsGroup = 13; */ public io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions getFsGroup() { if (fsGroupBuilder_ == null) { return fsGroup_ == null ? io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions.getDefaultInstance() : fsGroup_; } else { return fsGroupBuilder_.getMessage(); } } /** * * *
       * fsGroup is the strategy that will dictate what fs group is used by the SecurityContext.
       * 
* * optional .k8s.io.api.policy.v1beta1.FSGroupStrategyOptions fsGroup = 13; */ public Builder setFsGroup( io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions value) { if (fsGroupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fsGroup_ = value; onChanged(); } else { fsGroupBuilder_.setMessage(value); } bitField0_ |= 0x00002000; return this; } /** * * *
       * fsGroup is the strategy that will dictate what fs group is used by the SecurityContext.
       * 
* * optional .k8s.io.api.policy.v1beta1.FSGroupStrategyOptions fsGroup = 13; */ public Builder setFsGroup( io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions.Builder builderForValue) { if (fsGroupBuilder_ == null) { fsGroup_ = builderForValue.build(); onChanged(); } else { fsGroupBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00002000; return this; } /** * * *
       * fsGroup is the strategy that will dictate what fs group is used by the SecurityContext.
       * 
* * optional .k8s.io.api.policy.v1beta1.FSGroupStrategyOptions fsGroup = 13; */ public Builder mergeFsGroup( io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions value) { if (fsGroupBuilder_ == null) { if (((bitField0_ & 0x00002000) == 0x00002000) && fsGroup_ != null && fsGroup_ != io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions .getDefaultInstance()) { fsGroup_ = io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions.newBuilder(fsGroup_) .mergeFrom(value) .buildPartial(); } else { fsGroup_ = value; } onChanged(); } else { fsGroupBuilder_.mergeFrom(value); } bitField0_ |= 0x00002000; return this; } /** * * *
       * fsGroup is the strategy that will dictate what fs group is used by the SecurityContext.
       * 
* * optional .k8s.io.api.policy.v1beta1.FSGroupStrategyOptions fsGroup = 13; */ public Builder clearFsGroup() { if (fsGroupBuilder_ == null) { fsGroup_ = null; onChanged(); } else { fsGroupBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00002000); return this; } /** * * *
       * fsGroup is the strategy that will dictate what fs group is used by the SecurityContext.
       * 
* * optional .k8s.io.api.policy.v1beta1.FSGroupStrategyOptions fsGroup = 13; */ public io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions.Builder getFsGroupBuilder() { bitField0_ |= 0x00002000; onChanged(); return getFsGroupFieldBuilder().getBuilder(); } /** * * *
       * fsGroup is the strategy that will dictate what fs group is used by the SecurityContext.
       * 
* * optional .k8s.io.api.policy.v1beta1.FSGroupStrategyOptions fsGroup = 13; */ public io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptionsOrBuilder getFsGroupOrBuilder() { if (fsGroupBuilder_ != null) { return fsGroupBuilder_.getMessageOrBuilder(); } else { return fsGroup_ == null ? io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions.getDefaultInstance() : fsGroup_; } } /** * * *
       * fsGroup is the strategy that will dictate what fs group is used by the SecurityContext.
       * 
* * optional .k8s.io.api.policy.v1beta1.FSGroupStrategyOptions fsGroup = 13; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions, io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions.Builder, io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptionsOrBuilder> getFsGroupFieldBuilder() { if (fsGroupBuilder_ == null) { fsGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions, io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptions.Builder, io.kubernetes.client.proto.V1beta1Policy.FSGroupStrategyOptionsOrBuilder>( getFsGroup(), getParentForChildren(), isClean()); fsGroup_ = null; } return fsGroupBuilder_; } private boolean readOnlyRootFilesystem_; /** * * *
       * readOnlyRootFilesystem when set to true will force containers to run with a read only root file
       * system.  If the container specifically requests to run with a non-read only root file system
       * the PSP should deny the pod.
       * If set to false the container may run with a read only root file system if it wishes but it
       * will not be forced to.
       * +optional
       * 
* * optional bool readOnlyRootFilesystem = 14; */ public boolean hasReadOnlyRootFilesystem() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * * *
       * readOnlyRootFilesystem when set to true will force containers to run with a read only root file
       * system.  If the container specifically requests to run with a non-read only root file system
       * the PSP should deny the pod.
       * If set to false the container may run with a read only root file system if it wishes but it
       * will not be forced to.
       * +optional
       * 
* * optional bool readOnlyRootFilesystem = 14; */ public boolean getReadOnlyRootFilesystem() { return readOnlyRootFilesystem_; } /** * * *
       * readOnlyRootFilesystem when set to true will force containers to run with a read only root file
       * system.  If the container specifically requests to run with a non-read only root file system
       * the PSP should deny the pod.
       * If set to false the container may run with a read only root file system if it wishes but it
       * will not be forced to.
       * +optional
       * 
* * optional bool readOnlyRootFilesystem = 14; */ public Builder setReadOnlyRootFilesystem(boolean value) { bitField0_ |= 0x00004000; readOnlyRootFilesystem_ = value; onChanged(); return this; } /** * * *
       * readOnlyRootFilesystem when set to true will force containers to run with a read only root file
       * system.  If the container specifically requests to run with a non-read only root file system
       * the PSP should deny the pod.
       * If set to false the container may run with a read only root file system if it wishes but it
       * will not be forced to.
       * +optional
       * 
* * optional bool readOnlyRootFilesystem = 14; */ public Builder clearReadOnlyRootFilesystem() { bitField0_ = (bitField0_ & ~0x00004000); readOnlyRootFilesystem_ = false; onChanged(); return this; } private boolean defaultAllowPrivilegeEscalation_; /** * * *
       * defaultAllowPrivilegeEscalation controls the default setting for whether a
       * process can gain more privileges than its parent process.
       * +optional
       * 
* * optional bool defaultAllowPrivilegeEscalation = 15; */ public boolean hasDefaultAllowPrivilegeEscalation() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * * *
       * defaultAllowPrivilegeEscalation controls the default setting for whether a
       * process can gain more privileges than its parent process.
       * +optional
       * 
* * optional bool defaultAllowPrivilegeEscalation = 15; */ public boolean getDefaultAllowPrivilegeEscalation() { return defaultAllowPrivilegeEscalation_; } /** * * *
       * defaultAllowPrivilegeEscalation controls the default setting for whether a
       * process can gain more privileges than its parent process.
       * +optional
       * 
* * optional bool defaultAllowPrivilegeEscalation = 15; */ public Builder setDefaultAllowPrivilegeEscalation(boolean value) { bitField0_ |= 0x00008000; defaultAllowPrivilegeEscalation_ = value; onChanged(); return this; } /** * * *
       * defaultAllowPrivilegeEscalation controls the default setting for whether a
       * process can gain more privileges than its parent process.
       * +optional
       * 
* * optional bool defaultAllowPrivilegeEscalation = 15; */ public Builder clearDefaultAllowPrivilegeEscalation() { bitField0_ = (bitField0_ & ~0x00008000); defaultAllowPrivilegeEscalation_ = false; onChanged(); return this; } private boolean allowPrivilegeEscalation_; /** * * *
       * allowPrivilegeEscalation determines if a pod can request to allow
       * privilege escalation. If unspecified, defaults to true.
       * +optional
       * 
* * optional bool allowPrivilegeEscalation = 16; */ public boolean hasAllowPrivilegeEscalation() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * * *
       * allowPrivilegeEscalation determines if a pod can request to allow
       * privilege escalation. If unspecified, defaults to true.
       * +optional
       * 
* * optional bool allowPrivilegeEscalation = 16; */ public boolean getAllowPrivilegeEscalation() { return allowPrivilegeEscalation_; } /** * * *
       * allowPrivilegeEscalation determines if a pod can request to allow
       * privilege escalation. If unspecified, defaults to true.
       * +optional
       * 
* * optional bool allowPrivilegeEscalation = 16; */ public Builder setAllowPrivilegeEscalation(boolean value) { bitField0_ |= 0x00010000; allowPrivilegeEscalation_ = value; onChanged(); return this; } /** * * *
       * allowPrivilegeEscalation determines if a pod can request to allow
       * privilege escalation. If unspecified, defaults to true.
       * +optional
       * 
* * optional bool allowPrivilegeEscalation = 16; */ public Builder clearAllowPrivilegeEscalation() { bitField0_ = (bitField0_ & ~0x00010000); allowPrivilegeEscalation_ = false; onChanged(); return this; } private java.util.List allowedHostPaths_ = java.util.Collections.emptyList(); private void ensureAllowedHostPathsIsMutable() { if (!((bitField0_ & 0x00020000) == 0x00020000)) { allowedHostPaths_ = new java.util.ArrayList( allowedHostPaths_); bitField0_ |= 0x00020000; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath, io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath.Builder, io.kubernetes.client.proto.V1beta1Policy.AllowedHostPathOrBuilder> allowedHostPathsBuilder_; /** * * *
       * allowedHostPaths is an allowlist of host paths. Empty indicates
       * that all host paths may be used.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedHostPath allowedHostPaths = 17; */ public java.util.List getAllowedHostPathsList() { if (allowedHostPathsBuilder_ == null) { return java.util.Collections.unmodifiableList(allowedHostPaths_); } else { return allowedHostPathsBuilder_.getMessageList(); } } /** * * *
       * allowedHostPaths is an allowlist of host paths. Empty indicates
       * that all host paths may be used.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedHostPath allowedHostPaths = 17; */ public int getAllowedHostPathsCount() { if (allowedHostPathsBuilder_ == null) { return allowedHostPaths_.size(); } else { return allowedHostPathsBuilder_.getCount(); } } /** * * *
       * allowedHostPaths is an allowlist of host paths. Empty indicates
       * that all host paths may be used.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedHostPath allowedHostPaths = 17; */ public io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath getAllowedHostPaths( int index) { if (allowedHostPathsBuilder_ == null) { return allowedHostPaths_.get(index); } else { return allowedHostPathsBuilder_.getMessage(index); } } /** * * *
       * allowedHostPaths is an allowlist of host paths. Empty indicates
       * that all host paths may be used.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedHostPath allowedHostPaths = 17; */ public Builder setAllowedHostPaths( int index, io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath value) { if (allowedHostPathsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAllowedHostPathsIsMutable(); allowedHostPaths_.set(index, value); onChanged(); } else { allowedHostPathsBuilder_.setMessage(index, value); } return this; } /** * * *
       * allowedHostPaths is an allowlist of host paths. Empty indicates
       * that all host paths may be used.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedHostPath allowedHostPaths = 17; */ public Builder setAllowedHostPaths( int index, io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath.Builder builderForValue) { if (allowedHostPathsBuilder_ == null) { ensureAllowedHostPathsIsMutable(); allowedHostPaths_.set(index, builderForValue.build()); onChanged(); } else { allowedHostPathsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * allowedHostPaths is an allowlist of host paths. Empty indicates
       * that all host paths may be used.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedHostPath allowedHostPaths = 17; */ public Builder addAllowedHostPaths( io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath value) { if (allowedHostPathsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAllowedHostPathsIsMutable(); allowedHostPaths_.add(value); onChanged(); } else { allowedHostPathsBuilder_.addMessage(value); } return this; } /** * * *
       * allowedHostPaths is an allowlist of host paths. Empty indicates
       * that all host paths may be used.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedHostPath allowedHostPaths = 17; */ public Builder addAllowedHostPaths( int index, io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath value) { if (allowedHostPathsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAllowedHostPathsIsMutable(); allowedHostPaths_.add(index, value); onChanged(); } else { allowedHostPathsBuilder_.addMessage(index, value); } return this; } /** * * *
       * allowedHostPaths is an allowlist of host paths. Empty indicates
       * that all host paths may be used.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedHostPath allowedHostPaths = 17; */ public Builder addAllowedHostPaths( io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath.Builder builderForValue) { if (allowedHostPathsBuilder_ == null) { ensureAllowedHostPathsIsMutable(); allowedHostPaths_.add(builderForValue.build()); onChanged(); } else { allowedHostPathsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * allowedHostPaths is an allowlist of host paths. Empty indicates
       * that all host paths may be used.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedHostPath allowedHostPaths = 17; */ public Builder addAllowedHostPaths( int index, io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath.Builder builderForValue) { if (allowedHostPathsBuilder_ == null) { ensureAllowedHostPathsIsMutable(); allowedHostPaths_.add(index, builderForValue.build()); onChanged(); } else { allowedHostPathsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * allowedHostPaths is an allowlist of host paths. Empty indicates
       * that all host paths may be used.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedHostPath allowedHostPaths = 17; */ public Builder addAllAllowedHostPaths( java.lang.Iterable values) { if (allowedHostPathsBuilder_ == null) { ensureAllowedHostPathsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedHostPaths_); onChanged(); } else { allowedHostPathsBuilder_.addAllMessages(values); } return this; } /** * * *
       * allowedHostPaths is an allowlist of host paths. Empty indicates
       * that all host paths may be used.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedHostPath allowedHostPaths = 17; */ public Builder clearAllowedHostPaths() { if (allowedHostPathsBuilder_ == null) { allowedHostPaths_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00020000); onChanged(); } else { allowedHostPathsBuilder_.clear(); } return this; } /** * * *
       * allowedHostPaths is an allowlist of host paths. Empty indicates
       * that all host paths may be used.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedHostPath allowedHostPaths = 17; */ public Builder removeAllowedHostPaths(int index) { if (allowedHostPathsBuilder_ == null) { ensureAllowedHostPathsIsMutable(); allowedHostPaths_.remove(index); onChanged(); } else { allowedHostPathsBuilder_.remove(index); } return this; } /** * * *
       * allowedHostPaths is an allowlist of host paths. Empty indicates
       * that all host paths may be used.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedHostPath allowedHostPaths = 17; */ public io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath.Builder getAllowedHostPathsBuilder(int index) { return getAllowedHostPathsFieldBuilder().getBuilder(index); } /** * * *
       * allowedHostPaths is an allowlist of host paths. Empty indicates
       * that all host paths may be used.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedHostPath allowedHostPaths = 17; */ public io.kubernetes.client.proto.V1beta1Policy.AllowedHostPathOrBuilder getAllowedHostPathsOrBuilder(int index) { if (allowedHostPathsBuilder_ == null) { return allowedHostPaths_.get(index); } else { return allowedHostPathsBuilder_.getMessageOrBuilder(index); } } /** * * *
       * allowedHostPaths is an allowlist of host paths. Empty indicates
       * that all host paths may be used.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedHostPath allowedHostPaths = 17; */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Policy.AllowedHostPathOrBuilder> getAllowedHostPathsOrBuilderList() { if (allowedHostPathsBuilder_ != null) { return allowedHostPathsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(allowedHostPaths_); } } /** * * *
       * allowedHostPaths is an allowlist of host paths. Empty indicates
       * that all host paths may be used.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedHostPath allowedHostPaths = 17; */ public io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath.Builder addAllowedHostPathsBuilder() { return getAllowedHostPathsFieldBuilder() .addBuilder( io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath.getDefaultInstance()); } /** * * *
       * allowedHostPaths is an allowlist of host paths. Empty indicates
       * that all host paths may be used.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedHostPath allowedHostPaths = 17; */ public io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath.Builder addAllowedHostPathsBuilder(int index) { return getAllowedHostPathsFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath.getDefaultInstance()); } /** * * *
       * allowedHostPaths is an allowlist of host paths. Empty indicates
       * that all host paths may be used.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedHostPath allowedHostPaths = 17; */ public java.util.List getAllowedHostPathsBuilderList() { return getAllowedHostPathsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath, io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath.Builder, io.kubernetes.client.proto.V1beta1Policy.AllowedHostPathOrBuilder> getAllowedHostPathsFieldBuilder() { if (allowedHostPathsBuilder_ == null) { allowedHostPathsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath, io.kubernetes.client.proto.V1beta1Policy.AllowedHostPath.Builder, io.kubernetes.client.proto.V1beta1Policy.AllowedHostPathOrBuilder>( allowedHostPaths_, ((bitField0_ & 0x00020000) == 0x00020000), getParentForChildren(), isClean()); allowedHostPaths_ = null; } return allowedHostPathsBuilder_; } private java.util.List allowedFlexVolumes_ = java.util.Collections.emptyList(); private void ensureAllowedFlexVolumesIsMutable() { if (!((bitField0_ & 0x00040000) == 0x00040000)) { allowedFlexVolumes_ = new java.util.ArrayList( allowedFlexVolumes_); bitField0_ |= 0x00040000; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume, io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume.Builder, io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolumeOrBuilder> allowedFlexVolumesBuilder_; /** * * *
       * allowedFlexVolumes is an allowlist of Flexvolumes.  Empty or nil indicates that all
       * Flexvolumes may be used.  This parameter is effective only when the usage of the Flexvolumes
       * is allowed in the "volumes" field.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedFlexVolume allowedFlexVolumes = 18; */ public java.util.List getAllowedFlexVolumesList() { if (allowedFlexVolumesBuilder_ == null) { return java.util.Collections.unmodifiableList(allowedFlexVolumes_); } else { return allowedFlexVolumesBuilder_.getMessageList(); } } /** * * *
       * allowedFlexVolumes is an allowlist of Flexvolumes.  Empty or nil indicates that all
       * Flexvolumes may be used.  This parameter is effective only when the usage of the Flexvolumes
       * is allowed in the "volumes" field.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedFlexVolume allowedFlexVolumes = 18; */ public int getAllowedFlexVolumesCount() { if (allowedFlexVolumesBuilder_ == null) { return allowedFlexVolumes_.size(); } else { return allowedFlexVolumesBuilder_.getCount(); } } /** * * *
       * allowedFlexVolumes is an allowlist of Flexvolumes.  Empty or nil indicates that all
       * Flexvolumes may be used.  This parameter is effective only when the usage of the Flexvolumes
       * is allowed in the "volumes" field.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedFlexVolume allowedFlexVolumes = 18; */ public io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume getAllowedFlexVolumes( int index) { if (allowedFlexVolumesBuilder_ == null) { return allowedFlexVolumes_.get(index); } else { return allowedFlexVolumesBuilder_.getMessage(index); } } /** * * *
       * allowedFlexVolumes is an allowlist of Flexvolumes.  Empty or nil indicates that all
       * Flexvolumes may be used.  This parameter is effective only when the usage of the Flexvolumes
       * is allowed in the "volumes" field.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedFlexVolume allowedFlexVolumes = 18; */ public Builder setAllowedFlexVolumes( int index, io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume value) { if (allowedFlexVolumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAllowedFlexVolumesIsMutable(); allowedFlexVolumes_.set(index, value); onChanged(); } else { allowedFlexVolumesBuilder_.setMessage(index, value); } return this; } /** * * *
       * allowedFlexVolumes is an allowlist of Flexvolumes.  Empty or nil indicates that all
       * Flexvolumes may be used.  This parameter is effective only when the usage of the Flexvolumes
       * is allowed in the "volumes" field.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedFlexVolume allowedFlexVolumes = 18; */ public Builder setAllowedFlexVolumes( int index, io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume.Builder builderForValue) { if (allowedFlexVolumesBuilder_ == null) { ensureAllowedFlexVolumesIsMutable(); allowedFlexVolumes_.set(index, builderForValue.build()); onChanged(); } else { allowedFlexVolumesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * allowedFlexVolumes is an allowlist of Flexvolumes.  Empty or nil indicates that all
       * Flexvolumes may be used.  This parameter is effective only when the usage of the Flexvolumes
       * is allowed in the "volumes" field.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedFlexVolume allowedFlexVolumes = 18; */ public Builder addAllowedFlexVolumes( io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume value) { if (allowedFlexVolumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAllowedFlexVolumesIsMutable(); allowedFlexVolumes_.add(value); onChanged(); } else { allowedFlexVolumesBuilder_.addMessage(value); } return this; } /** * * *
       * allowedFlexVolumes is an allowlist of Flexvolumes.  Empty or nil indicates that all
       * Flexvolumes may be used.  This parameter is effective only when the usage of the Flexvolumes
       * is allowed in the "volumes" field.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedFlexVolume allowedFlexVolumes = 18; */ public Builder addAllowedFlexVolumes( int index, io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume value) { if (allowedFlexVolumesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAllowedFlexVolumesIsMutable(); allowedFlexVolumes_.add(index, value); onChanged(); } else { allowedFlexVolumesBuilder_.addMessage(index, value); } return this; } /** * * *
       * allowedFlexVolumes is an allowlist of Flexvolumes.  Empty or nil indicates that all
       * Flexvolumes may be used.  This parameter is effective only when the usage of the Flexvolumes
       * is allowed in the "volumes" field.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedFlexVolume allowedFlexVolumes = 18; */ public Builder addAllowedFlexVolumes( io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume.Builder builderForValue) { if (allowedFlexVolumesBuilder_ == null) { ensureAllowedFlexVolumesIsMutable(); allowedFlexVolumes_.add(builderForValue.build()); onChanged(); } else { allowedFlexVolumesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * allowedFlexVolumes is an allowlist of Flexvolumes.  Empty or nil indicates that all
       * Flexvolumes may be used.  This parameter is effective only when the usage of the Flexvolumes
       * is allowed in the "volumes" field.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedFlexVolume allowedFlexVolumes = 18; */ public Builder addAllowedFlexVolumes( int index, io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume.Builder builderForValue) { if (allowedFlexVolumesBuilder_ == null) { ensureAllowedFlexVolumesIsMutable(); allowedFlexVolumes_.add(index, builderForValue.build()); onChanged(); } else { allowedFlexVolumesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * allowedFlexVolumes is an allowlist of Flexvolumes.  Empty or nil indicates that all
       * Flexvolumes may be used.  This parameter is effective only when the usage of the Flexvolumes
       * is allowed in the "volumes" field.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedFlexVolume allowedFlexVolumes = 18; */ public Builder addAllAllowedFlexVolumes( java.lang.Iterable values) { if (allowedFlexVolumesBuilder_ == null) { ensureAllowedFlexVolumesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedFlexVolumes_); onChanged(); } else { allowedFlexVolumesBuilder_.addAllMessages(values); } return this; } /** * * *
       * allowedFlexVolumes is an allowlist of Flexvolumes.  Empty or nil indicates that all
       * Flexvolumes may be used.  This parameter is effective only when the usage of the Flexvolumes
       * is allowed in the "volumes" field.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedFlexVolume allowedFlexVolumes = 18; */ public Builder clearAllowedFlexVolumes() { if (allowedFlexVolumesBuilder_ == null) { allowedFlexVolumes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00040000); onChanged(); } else { allowedFlexVolumesBuilder_.clear(); } return this; } /** * * *
       * allowedFlexVolumes is an allowlist of Flexvolumes.  Empty or nil indicates that all
       * Flexvolumes may be used.  This parameter is effective only when the usage of the Flexvolumes
       * is allowed in the "volumes" field.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedFlexVolume allowedFlexVolumes = 18; */ public Builder removeAllowedFlexVolumes(int index) { if (allowedFlexVolumesBuilder_ == null) { ensureAllowedFlexVolumesIsMutable(); allowedFlexVolumes_.remove(index); onChanged(); } else { allowedFlexVolumesBuilder_.remove(index); } return this; } /** * * *
       * allowedFlexVolumes is an allowlist of Flexvolumes.  Empty or nil indicates that all
       * Flexvolumes may be used.  This parameter is effective only when the usage of the Flexvolumes
       * is allowed in the "volumes" field.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedFlexVolume allowedFlexVolumes = 18; */ public io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume.Builder getAllowedFlexVolumesBuilder(int index) { return getAllowedFlexVolumesFieldBuilder().getBuilder(index); } /** * * *
       * allowedFlexVolumes is an allowlist of Flexvolumes.  Empty or nil indicates that all
       * Flexvolumes may be used.  This parameter is effective only when the usage of the Flexvolumes
       * is allowed in the "volumes" field.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedFlexVolume allowedFlexVolumes = 18; */ public io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolumeOrBuilder getAllowedFlexVolumesOrBuilder(int index) { if (allowedFlexVolumesBuilder_ == null) { return allowedFlexVolumes_.get(index); } else { return allowedFlexVolumesBuilder_.getMessageOrBuilder(index); } } /** * * *
       * allowedFlexVolumes is an allowlist of Flexvolumes.  Empty or nil indicates that all
       * Flexvolumes may be used.  This parameter is effective only when the usage of the Flexvolumes
       * is allowed in the "volumes" field.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedFlexVolume allowedFlexVolumes = 18; */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolumeOrBuilder> getAllowedFlexVolumesOrBuilderList() { if (allowedFlexVolumesBuilder_ != null) { return allowedFlexVolumesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(allowedFlexVolumes_); } } /** * * *
       * allowedFlexVolumes is an allowlist of Flexvolumes.  Empty or nil indicates that all
       * Flexvolumes may be used.  This parameter is effective only when the usage of the Flexvolumes
       * is allowed in the "volumes" field.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedFlexVolume allowedFlexVolumes = 18; */ public io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume.Builder addAllowedFlexVolumesBuilder() { return getAllowedFlexVolumesFieldBuilder() .addBuilder( io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume.getDefaultInstance()); } /** * * *
       * allowedFlexVolumes is an allowlist of Flexvolumes.  Empty or nil indicates that all
       * Flexvolumes may be used.  This parameter is effective only when the usage of the Flexvolumes
       * is allowed in the "volumes" field.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedFlexVolume allowedFlexVolumes = 18; */ public io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume.Builder addAllowedFlexVolumesBuilder(int index) { return getAllowedFlexVolumesFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume.getDefaultInstance()); } /** * * *
       * allowedFlexVolumes is an allowlist of Flexvolumes.  Empty or nil indicates that all
       * Flexvolumes may be used.  This parameter is effective only when the usage of the Flexvolumes
       * is allowed in the "volumes" field.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedFlexVolume allowedFlexVolumes = 18; */ public java.util.List getAllowedFlexVolumesBuilderList() { return getAllowedFlexVolumesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume, io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume.Builder, io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolumeOrBuilder> getAllowedFlexVolumesFieldBuilder() { if (allowedFlexVolumesBuilder_ == null) { allowedFlexVolumesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume, io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolume.Builder, io.kubernetes.client.proto.V1beta1Policy.AllowedFlexVolumeOrBuilder>( allowedFlexVolumes_, ((bitField0_ & 0x00040000) == 0x00040000), getParentForChildren(), isClean()); allowedFlexVolumes_ = null; } return allowedFlexVolumesBuilder_; } private java.util.List allowedCSIDrivers_ = java.util.Collections.emptyList(); private void ensureAllowedCSIDriversIsMutable() { if (!((bitField0_ & 0x00080000) == 0x00080000)) { allowedCSIDrivers_ = new java.util.ArrayList( allowedCSIDrivers_); bitField0_ |= 0x00080000; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver, io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver.Builder, io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriverOrBuilder> allowedCSIDriversBuilder_; /** * * *
       * AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be embedded within a pod spec.
       * An empty value indicates that any CSI driver can be used for inline ephemeral volumes.
       * This is a beta field, and is only honored if the API server enables the CSIInlineVolume feature gate.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedCSIDriver allowedCSIDrivers = 23; */ public java.util.List getAllowedCSIDriversList() { if (allowedCSIDriversBuilder_ == null) { return java.util.Collections.unmodifiableList(allowedCSIDrivers_); } else { return allowedCSIDriversBuilder_.getMessageList(); } } /** * * *
       * AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be embedded within a pod spec.
       * An empty value indicates that any CSI driver can be used for inline ephemeral volumes.
       * This is a beta field, and is only honored if the API server enables the CSIInlineVolume feature gate.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedCSIDriver allowedCSIDrivers = 23; */ public int getAllowedCSIDriversCount() { if (allowedCSIDriversBuilder_ == null) { return allowedCSIDrivers_.size(); } else { return allowedCSIDriversBuilder_.getCount(); } } /** * * *
       * AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be embedded within a pod spec.
       * An empty value indicates that any CSI driver can be used for inline ephemeral volumes.
       * This is a beta field, and is only honored if the API server enables the CSIInlineVolume feature gate.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedCSIDriver allowedCSIDrivers = 23; */ public io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver getAllowedCSIDrivers( int index) { if (allowedCSIDriversBuilder_ == null) { return allowedCSIDrivers_.get(index); } else { return allowedCSIDriversBuilder_.getMessage(index); } } /** * * *
       * AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be embedded within a pod spec.
       * An empty value indicates that any CSI driver can be used for inline ephemeral volumes.
       * This is a beta field, and is only honored if the API server enables the CSIInlineVolume feature gate.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedCSIDriver allowedCSIDrivers = 23; */ public Builder setAllowedCSIDrivers( int index, io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver value) { if (allowedCSIDriversBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAllowedCSIDriversIsMutable(); allowedCSIDrivers_.set(index, value); onChanged(); } else { allowedCSIDriversBuilder_.setMessage(index, value); } return this; } /** * * *
       * AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be embedded within a pod spec.
       * An empty value indicates that any CSI driver can be used for inline ephemeral volumes.
       * This is a beta field, and is only honored if the API server enables the CSIInlineVolume feature gate.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedCSIDriver allowedCSIDrivers = 23; */ public Builder setAllowedCSIDrivers( int index, io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver.Builder builderForValue) { if (allowedCSIDriversBuilder_ == null) { ensureAllowedCSIDriversIsMutable(); allowedCSIDrivers_.set(index, builderForValue.build()); onChanged(); } else { allowedCSIDriversBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be embedded within a pod spec.
       * An empty value indicates that any CSI driver can be used for inline ephemeral volumes.
       * This is a beta field, and is only honored if the API server enables the CSIInlineVolume feature gate.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedCSIDriver allowedCSIDrivers = 23; */ public Builder addAllowedCSIDrivers( io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver value) { if (allowedCSIDriversBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAllowedCSIDriversIsMutable(); allowedCSIDrivers_.add(value); onChanged(); } else { allowedCSIDriversBuilder_.addMessage(value); } return this; } /** * * *
       * AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be embedded within a pod spec.
       * An empty value indicates that any CSI driver can be used for inline ephemeral volumes.
       * This is a beta field, and is only honored if the API server enables the CSIInlineVolume feature gate.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedCSIDriver allowedCSIDrivers = 23; */ public Builder addAllowedCSIDrivers( int index, io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver value) { if (allowedCSIDriversBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAllowedCSIDriversIsMutable(); allowedCSIDrivers_.add(index, value); onChanged(); } else { allowedCSIDriversBuilder_.addMessage(index, value); } return this; } /** * * *
       * AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be embedded within a pod spec.
       * An empty value indicates that any CSI driver can be used for inline ephemeral volumes.
       * This is a beta field, and is only honored if the API server enables the CSIInlineVolume feature gate.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedCSIDriver allowedCSIDrivers = 23; */ public Builder addAllowedCSIDrivers( io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver.Builder builderForValue) { if (allowedCSIDriversBuilder_ == null) { ensureAllowedCSIDriversIsMutable(); allowedCSIDrivers_.add(builderForValue.build()); onChanged(); } else { allowedCSIDriversBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be embedded within a pod spec.
       * An empty value indicates that any CSI driver can be used for inline ephemeral volumes.
       * This is a beta field, and is only honored if the API server enables the CSIInlineVolume feature gate.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedCSIDriver allowedCSIDrivers = 23; */ public Builder addAllowedCSIDrivers( int index, io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver.Builder builderForValue) { if (allowedCSIDriversBuilder_ == null) { ensureAllowedCSIDriversIsMutable(); allowedCSIDrivers_.add(index, builderForValue.build()); onChanged(); } else { allowedCSIDriversBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be embedded within a pod spec.
       * An empty value indicates that any CSI driver can be used for inline ephemeral volumes.
       * This is a beta field, and is only honored if the API server enables the CSIInlineVolume feature gate.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedCSIDriver allowedCSIDrivers = 23; */ public Builder addAllAllowedCSIDrivers( java.lang.Iterable values) { if (allowedCSIDriversBuilder_ == null) { ensureAllowedCSIDriversIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedCSIDrivers_); onChanged(); } else { allowedCSIDriversBuilder_.addAllMessages(values); } return this; } /** * * *
       * AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be embedded within a pod spec.
       * An empty value indicates that any CSI driver can be used for inline ephemeral volumes.
       * This is a beta field, and is only honored if the API server enables the CSIInlineVolume feature gate.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedCSIDriver allowedCSIDrivers = 23; */ public Builder clearAllowedCSIDrivers() { if (allowedCSIDriversBuilder_ == null) { allowedCSIDrivers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00080000); onChanged(); } else { allowedCSIDriversBuilder_.clear(); } return this; } /** * * *
       * AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be embedded within a pod spec.
       * An empty value indicates that any CSI driver can be used for inline ephemeral volumes.
       * This is a beta field, and is only honored if the API server enables the CSIInlineVolume feature gate.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedCSIDriver allowedCSIDrivers = 23; */ public Builder removeAllowedCSIDrivers(int index) { if (allowedCSIDriversBuilder_ == null) { ensureAllowedCSIDriversIsMutable(); allowedCSIDrivers_.remove(index); onChanged(); } else { allowedCSIDriversBuilder_.remove(index); } return this; } /** * * *
       * AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be embedded within a pod spec.
       * An empty value indicates that any CSI driver can be used for inline ephemeral volumes.
       * This is a beta field, and is only honored if the API server enables the CSIInlineVolume feature gate.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedCSIDriver allowedCSIDrivers = 23; */ public io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver.Builder getAllowedCSIDriversBuilder(int index) { return getAllowedCSIDriversFieldBuilder().getBuilder(index); } /** * * *
       * AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be embedded within a pod spec.
       * An empty value indicates that any CSI driver can be used for inline ephemeral volumes.
       * This is a beta field, and is only honored if the API server enables the CSIInlineVolume feature gate.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedCSIDriver allowedCSIDrivers = 23; */ public io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriverOrBuilder getAllowedCSIDriversOrBuilder(int index) { if (allowedCSIDriversBuilder_ == null) { return allowedCSIDrivers_.get(index); } else { return allowedCSIDriversBuilder_.getMessageOrBuilder(index); } } /** * * *
       * AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be embedded within a pod spec.
       * An empty value indicates that any CSI driver can be used for inline ephemeral volumes.
       * This is a beta field, and is only honored if the API server enables the CSIInlineVolume feature gate.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedCSIDriver allowedCSIDrivers = 23; */ public java.util.List< ? extends io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriverOrBuilder> getAllowedCSIDriversOrBuilderList() { if (allowedCSIDriversBuilder_ != null) { return allowedCSIDriversBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(allowedCSIDrivers_); } } /** * * *
       * AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be embedded within a pod spec.
       * An empty value indicates that any CSI driver can be used for inline ephemeral volumes.
       * This is a beta field, and is only honored if the API server enables the CSIInlineVolume feature gate.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedCSIDriver allowedCSIDrivers = 23; */ public io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver.Builder addAllowedCSIDriversBuilder() { return getAllowedCSIDriversFieldBuilder() .addBuilder( io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver.getDefaultInstance()); } /** * * *
       * AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be embedded within a pod spec.
       * An empty value indicates that any CSI driver can be used for inline ephemeral volumes.
       * This is a beta field, and is only honored if the API server enables the CSIInlineVolume feature gate.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedCSIDriver allowedCSIDrivers = 23; */ public io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver.Builder addAllowedCSIDriversBuilder(int index) { return getAllowedCSIDriversFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver.getDefaultInstance()); } /** * * *
       * AllowedCSIDrivers is an allowlist of inline CSI drivers that must be explicitly set to be embedded within a pod spec.
       * An empty value indicates that any CSI driver can be used for inline ephemeral volumes.
       * This is a beta field, and is only honored if the API server enables the CSIInlineVolume feature gate.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.AllowedCSIDriver allowedCSIDrivers = 23; */ public java.util.List getAllowedCSIDriversBuilderList() { return getAllowedCSIDriversFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver, io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver.Builder, io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriverOrBuilder> getAllowedCSIDriversFieldBuilder() { if (allowedCSIDriversBuilder_ == null) { allowedCSIDriversBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver, io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriver.Builder, io.kubernetes.client.proto.V1beta1Policy.AllowedCSIDriverOrBuilder>( allowedCSIDrivers_, ((bitField0_ & 0x00080000) == 0x00080000), getParentForChildren(), isClean()); allowedCSIDrivers_ = null; } return allowedCSIDriversBuilder_; } private com.google.protobuf.LazyStringList allowedUnsafeSysctls_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAllowedUnsafeSysctlsIsMutable() { if (!((bitField0_ & 0x00100000) == 0x00100000)) { allowedUnsafeSysctls_ = new com.google.protobuf.LazyStringArrayList(allowedUnsafeSysctls_); bitField0_ |= 0x00100000; } } /** * * *
       * allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none.
       * Each entry is either a plain sysctl name or ends in "*" in which case it is considered
       * as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed.
       * Kubelet has to allowlist all allowed unsafe sysctls explicitly to avoid rejection.
       * Examples:
       * e.g. "foo/*" allows "foo/bar", "foo/baz", etc.
       * e.g. "foo.*" allows "foo.bar", "foo.baz", etc.
       * +optional
       * 
* * repeated string allowedUnsafeSysctls = 19; */ public com.google.protobuf.ProtocolStringList getAllowedUnsafeSysctlsList() { return allowedUnsafeSysctls_.getUnmodifiableView(); } /** * * *
       * allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none.
       * Each entry is either a plain sysctl name or ends in "*" in which case it is considered
       * as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed.
       * Kubelet has to allowlist all allowed unsafe sysctls explicitly to avoid rejection.
       * Examples:
       * e.g. "foo/*" allows "foo/bar", "foo/baz", etc.
       * e.g. "foo.*" allows "foo.bar", "foo.baz", etc.
       * +optional
       * 
* * repeated string allowedUnsafeSysctls = 19; */ public int getAllowedUnsafeSysctlsCount() { return allowedUnsafeSysctls_.size(); } /** * * *
       * allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none.
       * Each entry is either a plain sysctl name or ends in "*" in which case it is considered
       * as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed.
       * Kubelet has to allowlist all allowed unsafe sysctls explicitly to avoid rejection.
       * Examples:
       * e.g. "foo/*" allows "foo/bar", "foo/baz", etc.
       * e.g. "foo.*" allows "foo.bar", "foo.baz", etc.
       * +optional
       * 
* * repeated string allowedUnsafeSysctls = 19; */ public java.lang.String getAllowedUnsafeSysctls(int index) { return allowedUnsafeSysctls_.get(index); } /** * * *
       * allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none.
       * Each entry is either a plain sysctl name or ends in "*" in which case it is considered
       * as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed.
       * Kubelet has to allowlist all allowed unsafe sysctls explicitly to avoid rejection.
       * Examples:
       * e.g. "foo/*" allows "foo/bar", "foo/baz", etc.
       * e.g. "foo.*" allows "foo.bar", "foo.baz", etc.
       * +optional
       * 
* * repeated string allowedUnsafeSysctls = 19; */ public com.google.protobuf.ByteString getAllowedUnsafeSysctlsBytes(int index) { return allowedUnsafeSysctls_.getByteString(index); } /** * * *
       * allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none.
       * Each entry is either a plain sysctl name or ends in "*" in which case it is considered
       * as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed.
       * Kubelet has to allowlist all allowed unsafe sysctls explicitly to avoid rejection.
       * Examples:
       * e.g. "foo/*" allows "foo/bar", "foo/baz", etc.
       * e.g. "foo.*" allows "foo.bar", "foo.baz", etc.
       * +optional
       * 
* * repeated string allowedUnsafeSysctls = 19; */ public Builder setAllowedUnsafeSysctls(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAllowedUnsafeSysctlsIsMutable(); allowedUnsafeSysctls_.set(index, value); onChanged(); return this; } /** * * *
       * allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none.
       * Each entry is either a plain sysctl name or ends in "*" in which case it is considered
       * as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed.
       * Kubelet has to allowlist all allowed unsafe sysctls explicitly to avoid rejection.
       * Examples:
       * e.g. "foo/*" allows "foo/bar", "foo/baz", etc.
       * e.g. "foo.*" allows "foo.bar", "foo.baz", etc.
       * +optional
       * 
* * repeated string allowedUnsafeSysctls = 19; */ public Builder addAllowedUnsafeSysctls(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAllowedUnsafeSysctlsIsMutable(); allowedUnsafeSysctls_.add(value); onChanged(); return this; } /** * * *
       * allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none.
       * Each entry is either a plain sysctl name or ends in "*" in which case it is considered
       * as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed.
       * Kubelet has to allowlist all allowed unsafe sysctls explicitly to avoid rejection.
       * Examples:
       * e.g. "foo/*" allows "foo/bar", "foo/baz", etc.
       * e.g. "foo.*" allows "foo.bar", "foo.baz", etc.
       * +optional
       * 
* * repeated string allowedUnsafeSysctls = 19; */ public Builder addAllAllowedUnsafeSysctls(java.lang.Iterable values) { ensureAllowedUnsafeSysctlsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedUnsafeSysctls_); onChanged(); return this; } /** * * *
       * allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none.
       * Each entry is either a plain sysctl name or ends in "*" in which case it is considered
       * as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed.
       * Kubelet has to allowlist all allowed unsafe sysctls explicitly to avoid rejection.
       * Examples:
       * e.g. "foo/*" allows "foo/bar", "foo/baz", etc.
       * e.g. "foo.*" allows "foo.bar", "foo.baz", etc.
       * +optional
       * 
* * repeated string allowedUnsafeSysctls = 19; */ public Builder clearAllowedUnsafeSysctls() { allowedUnsafeSysctls_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00100000); onChanged(); return this; } /** * * *
       * allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none.
       * Each entry is either a plain sysctl name or ends in "*" in which case it is considered
       * as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed.
       * Kubelet has to allowlist all allowed unsafe sysctls explicitly to avoid rejection.
       * Examples:
       * e.g. "foo/*" allows "foo/bar", "foo/baz", etc.
       * e.g. "foo.*" allows "foo.bar", "foo.baz", etc.
       * +optional
       * 
* * repeated string allowedUnsafeSysctls = 19; */ public Builder addAllowedUnsafeSysctlsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureAllowedUnsafeSysctlsIsMutable(); allowedUnsafeSysctls_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList forbiddenSysctls_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureForbiddenSysctlsIsMutable() { if (!((bitField0_ & 0x00200000) == 0x00200000)) { forbiddenSysctls_ = new com.google.protobuf.LazyStringArrayList(forbiddenSysctls_); bitField0_ |= 0x00200000; } } /** * * *
       * forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none.
       * Each entry is either a plain sysctl name or ends in "*" in which case it is considered
       * as a prefix of forbidden sysctls. Single * means all sysctls are forbidden.
       * Examples:
       * e.g. "foo/*" forbids "foo/bar", "foo/baz", etc.
       * e.g. "foo.*" forbids "foo.bar", "foo.baz", etc.
       * +optional
       * 
* * repeated string forbiddenSysctls = 20; */ public com.google.protobuf.ProtocolStringList getForbiddenSysctlsList() { return forbiddenSysctls_.getUnmodifiableView(); } /** * * *
       * forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none.
       * Each entry is either a plain sysctl name or ends in "*" in which case it is considered
       * as a prefix of forbidden sysctls. Single * means all sysctls are forbidden.
       * Examples:
       * e.g. "foo/*" forbids "foo/bar", "foo/baz", etc.
       * e.g. "foo.*" forbids "foo.bar", "foo.baz", etc.
       * +optional
       * 
* * repeated string forbiddenSysctls = 20; */ public int getForbiddenSysctlsCount() { return forbiddenSysctls_.size(); } /** * * *
       * forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none.
       * Each entry is either a plain sysctl name or ends in "*" in which case it is considered
       * as a prefix of forbidden sysctls. Single * means all sysctls are forbidden.
       * Examples:
       * e.g. "foo/*" forbids "foo/bar", "foo/baz", etc.
       * e.g. "foo.*" forbids "foo.bar", "foo.baz", etc.
       * +optional
       * 
* * repeated string forbiddenSysctls = 20; */ public java.lang.String getForbiddenSysctls(int index) { return forbiddenSysctls_.get(index); } /** * * *
       * forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none.
       * Each entry is either a plain sysctl name or ends in "*" in which case it is considered
       * as a prefix of forbidden sysctls. Single * means all sysctls are forbidden.
       * Examples:
       * e.g. "foo/*" forbids "foo/bar", "foo/baz", etc.
       * e.g. "foo.*" forbids "foo.bar", "foo.baz", etc.
       * +optional
       * 
* * repeated string forbiddenSysctls = 20; */ public com.google.protobuf.ByteString getForbiddenSysctlsBytes(int index) { return forbiddenSysctls_.getByteString(index); } /** * * *
       * forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none.
       * Each entry is either a plain sysctl name or ends in "*" in which case it is considered
       * as a prefix of forbidden sysctls. Single * means all sysctls are forbidden.
       * Examples:
       * e.g. "foo/*" forbids "foo/bar", "foo/baz", etc.
       * e.g. "foo.*" forbids "foo.bar", "foo.baz", etc.
       * +optional
       * 
* * repeated string forbiddenSysctls = 20; */ public Builder setForbiddenSysctls(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureForbiddenSysctlsIsMutable(); forbiddenSysctls_.set(index, value); onChanged(); return this; } /** * * *
       * forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none.
       * Each entry is either a plain sysctl name or ends in "*" in which case it is considered
       * as a prefix of forbidden sysctls. Single * means all sysctls are forbidden.
       * Examples:
       * e.g. "foo/*" forbids "foo/bar", "foo/baz", etc.
       * e.g. "foo.*" forbids "foo.bar", "foo.baz", etc.
       * +optional
       * 
* * repeated string forbiddenSysctls = 20; */ public Builder addForbiddenSysctls(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureForbiddenSysctlsIsMutable(); forbiddenSysctls_.add(value); onChanged(); return this; } /** * * *
       * forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none.
       * Each entry is either a plain sysctl name or ends in "*" in which case it is considered
       * as a prefix of forbidden sysctls. Single * means all sysctls are forbidden.
       * Examples:
       * e.g. "foo/*" forbids "foo/bar", "foo/baz", etc.
       * e.g. "foo.*" forbids "foo.bar", "foo.baz", etc.
       * +optional
       * 
* * repeated string forbiddenSysctls = 20; */ public Builder addAllForbiddenSysctls(java.lang.Iterable values) { ensureForbiddenSysctlsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, forbiddenSysctls_); onChanged(); return this; } /** * * *
       * forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none.
       * Each entry is either a plain sysctl name or ends in "*" in which case it is considered
       * as a prefix of forbidden sysctls. Single * means all sysctls are forbidden.
       * Examples:
       * e.g. "foo/*" forbids "foo/bar", "foo/baz", etc.
       * e.g. "foo.*" forbids "foo.bar", "foo.baz", etc.
       * +optional
       * 
* * repeated string forbiddenSysctls = 20; */ public Builder clearForbiddenSysctls() { forbiddenSysctls_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00200000); onChanged(); return this; } /** * * *
       * forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none.
       * Each entry is either a plain sysctl name or ends in "*" in which case it is considered
       * as a prefix of forbidden sysctls. Single * means all sysctls are forbidden.
       * Examples:
       * e.g. "foo/*" forbids "foo/bar", "foo/baz", etc.
       * e.g. "foo.*" forbids "foo.bar", "foo.baz", etc.
       * +optional
       * 
* * repeated string forbiddenSysctls = 20; */ public Builder addForbiddenSysctlsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureForbiddenSysctlsIsMutable(); forbiddenSysctls_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList allowedProcMountTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAllowedProcMountTypesIsMutable() { if (!((bitField0_ & 0x00400000) == 0x00400000)) { allowedProcMountTypes_ = new com.google.protobuf.LazyStringArrayList(allowedProcMountTypes_); bitField0_ |= 0x00400000; } } /** * * *
       * AllowedProcMountTypes is an allowlist of allowed ProcMountTypes.
       * Empty or nil indicates that only the DefaultProcMountType may be used.
       * This requires the ProcMountType feature flag to be enabled.
       * +optional
       * 
* * repeated string allowedProcMountTypes = 21; */ public com.google.protobuf.ProtocolStringList getAllowedProcMountTypesList() { return allowedProcMountTypes_.getUnmodifiableView(); } /** * * *
       * AllowedProcMountTypes is an allowlist of allowed ProcMountTypes.
       * Empty or nil indicates that only the DefaultProcMountType may be used.
       * This requires the ProcMountType feature flag to be enabled.
       * +optional
       * 
* * repeated string allowedProcMountTypes = 21; */ public int getAllowedProcMountTypesCount() { return allowedProcMountTypes_.size(); } /** * * *
       * AllowedProcMountTypes is an allowlist of allowed ProcMountTypes.
       * Empty or nil indicates that only the DefaultProcMountType may be used.
       * This requires the ProcMountType feature flag to be enabled.
       * +optional
       * 
* * repeated string allowedProcMountTypes = 21; */ public java.lang.String getAllowedProcMountTypes(int index) { return allowedProcMountTypes_.get(index); } /** * * *
       * AllowedProcMountTypes is an allowlist of allowed ProcMountTypes.
       * Empty or nil indicates that only the DefaultProcMountType may be used.
       * This requires the ProcMountType feature flag to be enabled.
       * +optional
       * 
* * repeated string allowedProcMountTypes = 21; */ public com.google.protobuf.ByteString getAllowedProcMountTypesBytes(int index) { return allowedProcMountTypes_.getByteString(index); } /** * * *
       * AllowedProcMountTypes is an allowlist of allowed ProcMountTypes.
       * Empty or nil indicates that only the DefaultProcMountType may be used.
       * This requires the ProcMountType feature flag to be enabled.
       * +optional
       * 
* * repeated string allowedProcMountTypes = 21; */ public Builder setAllowedProcMountTypes(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAllowedProcMountTypesIsMutable(); allowedProcMountTypes_.set(index, value); onChanged(); return this; } /** * * *
       * AllowedProcMountTypes is an allowlist of allowed ProcMountTypes.
       * Empty or nil indicates that only the DefaultProcMountType may be used.
       * This requires the ProcMountType feature flag to be enabled.
       * +optional
       * 
* * repeated string allowedProcMountTypes = 21; */ public Builder addAllowedProcMountTypes(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAllowedProcMountTypesIsMutable(); allowedProcMountTypes_.add(value); onChanged(); return this; } /** * * *
       * AllowedProcMountTypes is an allowlist of allowed ProcMountTypes.
       * Empty or nil indicates that only the DefaultProcMountType may be used.
       * This requires the ProcMountType feature flag to be enabled.
       * +optional
       * 
* * repeated string allowedProcMountTypes = 21; */ public Builder addAllAllowedProcMountTypes(java.lang.Iterable values) { ensureAllowedProcMountTypesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedProcMountTypes_); onChanged(); return this; } /** * * *
       * AllowedProcMountTypes is an allowlist of allowed ProcMountTypes.
       * Empty or nil indicates that only the DefaultProcMountType may be used.
       * This requires the ProcMountType feature flag to be enabled.
       * +optional
       * 
* * repeated string allowedProcMountTypes = 21; */ public Builder clearAllowedProcMountTypes() { allowedProcMountTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00400000); onChanged(); return this; } /** * * *
       * AllowedProcMountTypes is an allowlist of allowed ProcMountTypes.
       * Empty or nil indicates that only the DefaultProcMountType may be used.
       * This requires the ProcMountType feature flag to be enabled.
       * +optional
       * 
* * repeated string allowedProcMountTypes = 21; */ public Builder addAllowedProcMountTypesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureAllowedProcMountTypesIsMutable(); allowedProcMountTypes_.add(value); onChanged(); return this; } private io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions runtimeClass_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions, io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions.Builder, io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptionsOrBuilder> runtimeClassBuilder_; /** * * *
       * runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod.
       * If this field is omitted, the pod's runtimeClassName field is unrestricted.
       * Enforcement of this field depends on the RuntimeClass feature gate being enabled.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.RuntimeClassStrategyOptions runtimeClass = 24; * */ public boolean hasRuntimeClass() { return ((bitField0_ & 0x00800000) == 0x00800000); } /** * * *
       * runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod.
       * If this field is omitted, the pod's runtimeClassName field is unrestricted.
       * Enforcement of this field depends on the RuntimeClass feature gate being enabled.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.RuntimeClassStrategyOptions runtimeClass = 24; * */ public io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions getRuntimeClass() { if (runtimeClassBuilder_ == null) { return runtimeClass_ == null ? io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions .getDefaultInstance() : runtimeClass_; } else { return runtimeClassBuilder_.getMessage(); } } /** * * *
       * runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod.
       * If this field is omitted, the pod's runtimeClassName field is unrestricted.
       * Enforcement of this field depends on the RuntimeClass feature gate being enabled.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.RuntimeClassStrategyOptions runtimeClass = 24; * */ public Builder setRuntimeClass( io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions value) { if (runtimeClassBuilder_ == null) { if (value == null) { throw new NullPointerException(); } runtimeClass_ = value; onChanged(); } else { runtimeClassBuilder_.setMessage(value); } bitField0_ |= 0x00800000; return this; } /** * * *
       * runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod.
       * If this field is omitted, the pod's runtimeClassName field is unrestricted.
       * Enforcement of this field depends on the RuntimeClass feature gate being enabled.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.RuntimeClassStrategyOptions runtimeClass = 24; * */ public Builder setRuntimeClass( io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions.Builder builderForValue) { if (runtimeClassBuilder_ == null) { runtimeClass_ = builderForValue.build(); onChanged(); } else { runtimeClassBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00800000; return this; } /** * * *
       * runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod.
       * If this field is omitted, the pod's runtimeClassName field is unrestricted.
       * Enforcement of this field depends on the RuntimeClass feature gate being enabled.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.RuntimeClassStrategyOptions runtimeClass = 24; * */ public Builder mergeRuntimeClass( io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions value) { if (runtimeClassBuilder_ == null) { if (((bitField0_ & 0x00800000) == 0x00800000) && runtimeClass_ != null && runtimeClass_ != io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions .getDefaultInstance()) { runtimeClass_ = io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions.newBuilder( runtimeClass_) .mergeFrom(value) .buildPartial(); } else { runtimeClass_ = value; } onChanged(); } else { runtimeClassBuilder_.mergeFrom(value); } bitField0_ |= 0x00800000; return this; } /** * * *
       * runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod.
       * If this field is omitted, the pod's runtimeClassName field is unrestricted.
       * Enforcement of this field depends on the RuntimeClass feature gate being enabled.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.RuntimeClassStrategyOptions runtimeClass = 24; * */ public Builder clearRuntimeClass() { if (runtimeClassBuilder_ == null) { runtimeClass_ = null; onChanged(); } else { runtimeClassBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00800000); return this; } /** * * *
       * runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod.
       * If this field is omitted, the pod's runtimeClassName field is unrestricted.
       * Enforcement of this field depends on the RuntimeClass feature gate being enabled.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.RuntimeClassStrategyOptions runtimeClass = 24; * */ public io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions.Builder getRuntimeClassBuilder() { bitField0_ |= 0x00800000; onChanged(); return getRuntimeClassFieldBuilder().getBuilder(); } /** * * *
       * runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod.
       * If this field is omitted, the pod's runtimeClassName field is unrestricted.
       * Enforcement of this field depends on the RuntimeClass feature gate being enabled.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.RuntimeClassStrategyOptions runtimeClass = 24; * */ public io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptionsOrBuilder getRuntimeClassOrBuilder() { if (runtimeClassBuilder_ != null) { return runtimeClassBuilder_.getMessageOrBuilder(); } else { return runtimeClass_ == null ? io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions .getDefaultInstance() : runtimeClass_; } } /** * * *
       * runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod.
       * If this field is omitted, the pod's runtimeClassName field is unrestricted.
       * Enforcement of this field depends on the RuntimeClass feature gate being enabled.
       * +optional
       * 
* * optional .k8s.io.api.policy.v1beta1.RuntimeClassStrategyOptions runtimeClass = 24; * */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions, io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions.Builder, io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptionsOrBuilder> getRuntimeClassFieldBuilder() { if (runtimeClassBuilder_ == null) { runtimeClassBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions, io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions.Builder, io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptionsOrBuilder>( getRuntimeClass(), getParentForChildren(), isClean()); runtimeClass_ = null; } return runtimeClassBuilder_; } @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.policy.v1beta1.PodSecurityPolicySpec) } // @@protoc_insertion_point(class_scope:k8s.io.api.policy.v1beta1.PodSecurityPolicySpec) private static final io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec(); } public static io.kubernetes.client.proto.V1beta1Policy.PodSecurityPolicySpec getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PodSecurityPolicySpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PodSecurityPolicySpec(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.V1beta1Policy.PodSecurityPolicySpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RunAsGroupStrategyOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.policy.v1beta1.RunAsGroupStrategyOptions) com.google.protobuf.MessageOrBuilder { /** * * *
     * rule is the strategy that will dictate the allowable RunAsGroup values that may be set.
     * 
* * optional string rule = 1; */ boolean hasRule(); /** * * *
     * rule is the strategy that will dictate the allowable RunAsGroup values that may be set.
     * 
* * optional string rule = 1; */ java.lang.String getRule(); /** * * *
     * rule is the strategy that will dictate the allowable RunAsGroup values that may be set.
     * 
* * optional string rule = 1; */ com.google.protobuf.ByteString getRuleBytes(); /** * * *
     * ranges are the allowed ranges of gids that may be used. If you would like to force a single gid
     * then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ java.util.List getRangesList(); /** * * *
     * ranges are the allowed ranges of gids that may be used. If you would like to force a single gid
     * then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ io.kubernetes.client.proto.V1beta1Policy.IDRange getRanges(int index); /** * * *
     * ranges are the allowed ranges of gids that may be used. If you would like to force a single gid
     * then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ int getRangesCount(); /** * * *
     * ranges are the allowed ranges of gids that may be used. If you would like to force a single gid
     * then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ java.util.List getRangesOrBuilderList(); /** * * *
     * ranges are the allowed ranges of gids that may be used. If you would like to force a single gid
     * then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ io.kubernetes.client.proto.V1beta1Policy.IDRangeOrBuilder getRangesOrBuilder(int index); } /** * * *
   * RunAsGroupStrategyOptions defines the strategy type and any options used to create the strategy.
   * 
* * Protobuf type {@code k8s.io.api.policy.v1beta1.RunAsGroupStrategyOptions} */ public static final class RunAsGroupStrategyOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.policy.v1beta1.RunAsGroupStrategyOptions) RunAsGroupStrategyOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use RunAsGroupStrategyOptions.newBuilder() to construct. private RunAsGroupStrategyOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RunAsGroupStrategyOptions() { rule_ = ""; ranges_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RunAsGroupStrategyOptions( 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; rule_ = bs; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { ranges_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } ranges_.add( input.readMessage( io.kubernetes.client.proto.V1beta1Policy.IDRange.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)) { ranges_ = java.util.Collections.unmodifiableList(ranges_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_RunAsGroupStrategyOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_RunAsGroupStrategyOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions.class, io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions.Builder.class); } private int bitField0_; public static final int RULE_FIELD_NUMBER = 1; private volatile java.lang.Object rule_; /** * * *
     * rule is the strategy that will dictate the allowable RunAsGroup values that may be set.
     * 
* * optional string rule = 1; */ public boolean hasRule() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * rule is the strategy that will dictate the allowable RunAsGroup values that may be set.
     * 
* * optional string rule = 1; */ public java.lang.String getRule() { java.lang.Object ref = rule_; 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()) { rule_ = s; } return s; } } /** * * *
     * rule is the strategy that will dictate the allowable RunAsGroup values that may be set.
     * 
* * optional string rule = 1; */ public com.google.protobuf.ByteString getRuleBytes() { java.lang.Object ref = rule_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); rule_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RANGES_FIELD_NUMBER = 2; private java.util.List ranges_; /** * * *
     * ranges are the allowed ranges of gids that may be used. If you would like to force a single gid
     * then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public java.util.List getRangesList() { return ranges_; } /** * * *
     * ranges are the allowed ranges of gids that may be used. If you would like to force a single gid
     * then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public java.util.List getRangesOrBuilderList() { return ranges_; } /** * * *
     * ranges are the allowed ranges of gids that may be used. If you would like to force a single gid
     * then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public int getRangesCount() { return ranges_.size(); } /** * * *
     * ranges are the allowed ranges of gids that may be used. If you would like to force a single gid
     * then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public io.kubernetes.client.proto.V1beta1Policy.IDRange getRanges(int index) { return ranges_.get(index); } /** * * *
     * ranges are the allowed ranges of gids that may be used. If you would like to force a single gid
     * then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public io.kubernetes.client.proto.V1beta1Policy.IDRangeOrBuilder getRangesOrBuilder(int index) { return ranges_.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)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, rule_); } for (int i = 0; i < ranges_.size(); i++) { output.writeMessage(2, ranges_.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.GeneratedMessageV3.computeStringSize(1, rule_); } for (int i = 0; i < ranges_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, ranges_.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.V1beta1Policy.RunAsGroupStrategyOptions)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions other = (io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions) obj; boolean result = true; result = result && (hasRule() == other.hasRule()); if (hasRule()) { result = result && getRule().equals(other.getRule()); } result = result && getRangesList().equals(other.getRangesList()); 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 (hasRule()) { hash = (37 * hash) + RULE_FIELD_NUMBER; hash = (53 * hash) + getRule().hashCode(); } if (getRangesCount() > 0) { hash = (37 * hash) + RANGES_FIELD_NUMBER; hash = (53 * hash) + getRangesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions 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.V1beta1Policy.RunAsGroupStrategyOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions 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.V1beta1Policy.RunAsGroupStrategyOptions parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions 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.V1beta1Policy.RunAsGroupStrategyOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions 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.V1beta1Policy.RunAsGroupStrategyOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions 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.V1beta1Policy.RunAsGroupStrategyOptions 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; } /** * * *
     * RunAsGroupStrategyOptions defines the strategy type and any options used to create the strategy.
     * 
* * Protobuf type {@code k8s.io.api.policy.v1beta1.RunAsGroupStrategyOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.policy.v1beta1.RunAsGroupStrategyOptions) io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_RunAsGroupStrategyOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_RunAsGroupStrategyOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions.class, io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions.Builder.class); } // Construct using // io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRangesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); rule_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (rangesBuilder_ == null) { ranges_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { rangesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_RunAsGroupStrategyOptions_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions .getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions build() { io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions buildPartial() { io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions result = new io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.rule_ = rule_; if (rangesBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { ranges_ = java.util.Collections.unmodifiableList(ranges_); bitField0_ = (bitField0_ & ~0x00000002); } result.ranges_ = ranges_; } else { result.ranges_ = rangesBuilder_.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.V1beta1Policy.RunAsGroupStrategyOptions) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions other) { if (other == io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions .getDefaultInstance()) return this; if (other.hasRule()) { bitField0_ |= 0x00000001; rule_ = other.rule_; onChanged(); } if (rangesBuilder_ == null) { if (!other.ranges_.isEmpty()) { if (ranges_.isEmpty()) { ranges_ = other.ranges_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRangesIsMutable(); ranges_.addAll(other.ranges_); } onChanged(); } } else { if (!other.ranges_.isEmpty()) { if (rangesBuilder_.isEmpty()) { rangesBuilder_.dispose(); rangesBuilder_ = null; ranges_ = other.ranges_; bitField0_ = (bitField0_ & ~0x00000002); rangesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRangesFieldBuilder() : null; } else { rangesBuilder_.addAllMessages(other.ranges_); } } } 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.V1beta1Policy.RunAsGroupStrategyOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object rule_ = ""; /** * * *
       * rule is the strategy that will dictate the allowable RunAsGroup values that may be set.
       * 
* * optional string rule = 1; */ public boolean hasRule() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * rule is the strategy that will dictate the allowable RunAsGroup values that may be set.
       * 
* * optional string rule = 1; */ public java.lang.String getRule() { java.lang.Object ref = rule_; 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()) { rule_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * rule is the strategy that will dictate the allowable RunAsGroup values that may be set.
       * 
* * optional string rule = 1; */ public com.google.protobuf.ByteString getRuleBytes() { java.lang.Object ref = rule_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); rule_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * rule is the strategy that will dictate the allowable RunAsGroup values that may be set.
       * 
* * optional string rule = 1; */ public Builder setRule(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; rule_ = value; onChanged(); return this; } /** * * *
       * rule is the strategy that will dictate the allowable RunAsGroup values that may be set.
       * 
* * optional string rule = 1; */ public Builder clearRule() { bitField0_ = (bitField0_ & ~0x00000001); rule_ = getDefaultInstance().getRule(); onChanged(); return this; } /** * * *
       * rule is the strategy that will dictate the allowable RunAsGroup values that may be set.
       * 
* * optional string rule = 1; */ public Builder setRuleBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; rule_ = value; onChanged(); return this; } private java.util.List ranges_ = java.util.Collections.emptyList(); private void ensureRangesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { ranges_ = new java.util.ArrayList(ranges_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.IDRange, io.kubernetes.client.proto.V1beta1Policy.IDRange.Builder, io.kubernetes.client.proto.V1beta1Policy.IDRangeOrBuilder> rangesBuilder_; /** * * *
       * ranges are the allowed ranges of gids that may be used. If you would like to force a single gid
       * then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public java.util.List getRangesList() { if (rangesBuilder_ == null) { return java.util.Collections.unmodifiableList(ranges_); } else { return rangesBuilder_.getMessageList(); } } /** * * *
       * ranges are the allowed ranges of gids that may be used. If you would like to force a single gid
       * then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public int getRangesCount() { if (rangesBuilder_ == null) { return ranges_.size(); } else { return rangesBuilder_.getCount(); } } /** * * *
       * ranges are the allowed ranges of gids that may be used. If you would like to force a single gid
       * then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public io.kubernetes.client.proto.V1beta1Policy.IDRange getRanges(int index) { if (rangesBuilder_ == null) { return ranges_.get(index); } else { return rangesBuilder_.getMessage(index); } } /** * * *
       * ranges are the allowed ranges of gids that may be used. If you would like to force a single gid
       * then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public Builder setRanges(int index, io.kubernetes.client.proto.V1beta1Policy.IDRange value) { if (rangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRangesIsMutable(); ranges_.set(index, value); onChanged(); } else { rangesBuilder_.setMessage(index, value); } return this; } /** * * *
       * ranges are the allowed ranges of gids that may be used. If you would like to force a single gid
       * then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public Builder setRanges( int index, io.kubernetes.client.proto.V1beta1Policy.IDRange.Builder builderForValue) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); ranges_.set(index, builderForValue.build()); onChanged(); } else { rangesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * ranges are the allowed ranges of gids that may be used. If you would like to force a single gid
       * then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public Builder addRanges(io.kubernetes.client.proto.V1beta1Policy.IDRange value) { if (rangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRangesIsMutable(); ranges_.add(value); onChanged(); } else { rangesBuilder_.addMessage(value); } return this; } /** * * *
       * ranges are the allowed ranges of gids that may be used. If you would like to force a single gid
       * then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public Builder addRanges(int index, io.kubernetes.client.proto.V1beta1Policy.IDRange value) { if (rangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRangesIsMutable(); ranges_.add(index, value); onChanged(); } else { rangesBuilder_.addMessage(index, value); } return this; } /** * * *
       * ranges are the allowed ranges of gids that may be used. If you would like to force a single gid
       * then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public Builder addRanges( io.kubernetes.client.proto.V1beta1Policy.IDRange.Builder builderForValue) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); ranges_.add(builderForValue.build()); onChanged(); } else { rangesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * ranges are the allowed ranges of gids that may be used. If you would like to force a single gid
       * then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public Builder addRanges( int index, io.kubernetes.client.proto.V1beta1Policy.IDRange.Builder builderForValue) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); ranges_.add(index, builderForValue.build()); onChanged(); } else { rangesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * ranges are the allowed ranges of gids that may be used. If you would like to force a single gid
       * then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public Builder addAllRanges( java.lang.Iterable values) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ranges_); onChanged(); } else { rangesBuilder_.addAllMessages(values); } return this; } /** * * *
       * ranges are the allowed ranges of gids that may be used. If you would like to force a single gid
       * then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public Builder clearRanges() { if (rangesBuilder_ == null) { ranges_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { rangesBuilder_.clear(); } return this; } /** * * *
       * ranges are the allowed ranges of gids that may be used. If you would like to force a single gid
       * then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public Builder removeRanges(int index) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); ranges_.remove(index); onChanged(); } else { rangesBuilder_.remove(index); } return this; } /** * * *
       * ranges are the allowed ranges of gids that may be used. If you would like to force a single gid
       * then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public io.kubernetes.client.proto.V1beta1Policy.IDRange.Builder getRangesBuilder(int index) { return getRangesFieldBuilder().getBuilder(index); } /** * * *
       * ranges are the allowed ranges of gids that may be used. If you would like to force a single gid
       * then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public io.kubernetes.client.proto.V1beta1Policy.IDRangeOrBuilder getRangesOrBuilder( int index) { if (rangesBuilder_ == null) { return ranges_.get(index); } else { return rangesBuilder_.getMessageOrBuilder(index); } } /** * * *
       * ranges are the allowed ranges of gids that may be used. If you would like to force a single gid
       * then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public java.util.List getRangesOrBuilderList() { if (rangesBuilder_ != null) { return rangesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ranges_); } } /** * * *
       * ranges are the allowed ranges of gids that may be used. If you would like to force a single gid
       * then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public io.kubernetes.client.proto.V1beta1Policy.IDRange.Builder addRangesBuilder() { return getRangesFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1beta1Policy.IDRange.getDefaultInstance()); } /** * * *
       * ranges are the allowed ranges of gids that may be used. If you would like to force a single gid
       * then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public io.kubernetes.client.proto.V1beta1Policy.IDRange.Builder addRangesBuilder(int index) { return getRangesFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1beta1Policy.IDRange.getDefaultInstance()); } /** * * *
       * ranges are the allowed ranges of gids that may be used. If you would like to force a single gid
       * then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public java.util.List getRangesBuilderList() { return getRangesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.IDRange, io.kubernetes.client.proto.V1beta1Policy.IDRange.Builder, io.kubernetes.client.proto.V1beta1Policy.IDRangeOrBuilder> getRangesFieldBuilder() { if (rangesBuilder_ == null) { rangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.IDRange, io.kubernetes.client.proto.V1beta1Policy.IDRange.Builder, io.kubernetes.client.proto.V1beta1Policy.IDRangeOrBuilder>( ranges_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); ranges_ = null; } return rangesBuilder_; } @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.policy.v1beta1.RunAsGroupStrategyOptions) } // @@protoc_insertion_point(class_scope:k8s.io.api.policy.v1beta1.RunAsGroupStrategyOptions) private static final io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions(); } public static io.kubernetes.client.proto.V1beta1Policy.RunAsGroupStrategyOptions getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RunAsGroupStrategyOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RunAsGroupStrategyOptions(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.V1beta1Policy.RunAsGroupStrategyOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RunAsUserStrategyOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.policy.v1beta1.RunAsUserStrategyOptions) com.google.protobuf.MessageOrBuilder { /** * * *
     * rule is the strategy that will dictate the allowable RunAsUser values that may be set.
     * 
* * optional string rule = 1; */ boolean hasRule(); /** * * *
     * rule is the strategy that will dictate the allowable RunAsUser values that may be set.
     * 
* * optional string rule = 1; */ java.lang.String getRule(); /** * * *
     * rule is the strategy that will dictate the allowable RunAsUser values that may be set.
     * 
* * optional string rule = 1; */ com.google.protobuf.ByteString getRuleBytes(); /** * * *
     * ranges are the allowed ranges of uids that may be used. If you would like to force a single uid
     * then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ java.util.List getRangesList(); /** * * *
     * ranges are the allowed ranges of uids that may be used. If you would like to force a single uid
     * then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ io.kubernetes.client.proto.V1beta1Policy.IDRange getRanges(int index); /** * * *
     * ranges are the allowed ranges of uids that may be used. If you would like to force a single uid
     * then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ int getRangesCount(); /** * * *
     * ranges are the allowed ranges of uids that may be used. If you would like to force a single uid
     * then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ java.util.List getRangesOrBuilderList(); /** * * *
     * ranges are the allowed ranges of uids that may be used. If you would like to force a single uid
     * then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ io.kubernetes.client.proto.V1beta1Policy.IDRangeOrBuilder getRangesOrBuilder(int index); } /** * * *
   * RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy.
   * 
* * Protobuf type {@code k8s.io.api.policy.v1beta1.RunAsUserStrategyOptions} */ public static final class RunAsUserStrategyOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.policy.v1beta1.RunAsUserStrategyOptions) RunAsUserStrategyOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use RunAsUserStrategyOptions.newBuilder() to construct. private RunAsUserStrategyOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RunAsUserStrategyOptions() { rule_ = ""; ranges_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RunAsUserStrategyOptions( 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; rule_ = bs; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { ranges_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } ranges_.add( input.readMessage( io.kubernetes.client.proto.V1beta1Policy.IDRange.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)) { ranges_ = java.util.Collections.unmodifiableList(ranges_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_RunAsUserStrategyOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_RunAsUserStrategyOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions.class, io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions.Builder.class); } private int bitField0_; public static final int RULE_FIELD_NUMBER = 1; private volatile java.lang.Object rule_; /** * * *
     * rule is the strategy that will dictate the allowable RunAsUser values that may be set.
     * 
* * optional string rule = 1; */ public boolean hasRule() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * rule is the strategy that will dictate the allowable RunAsUser values that may be set.
     * 
* * optional string rule = 1; */ public java.lang.String getRule() { java.lang.Object ref = rule_; 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()) { rule_ = s; } return s; } } /** * * *
     * rule is the strategy that will dictate the allowable RunAsUser values that may be set.
     * 
* * optional string rule = 1; */ public com.google.protobuf.ByteString getRuleBytes() { java.lang.Object ref = rule_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); rule_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RANGES_FIELD_NUMBER = 2; private java.util.List ranges_; /** * * *
     * ranges are the allowed ranges of uids that may be used. If you would like to force a single uid
     * then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public java.util.List getRangesList() { return ranges_; } /** * * *
     * ranges are the allowed ranges of uids that may be used. If you would like to force a single uid
     * then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public java.util.List getRangesOrBuilderList() { return ranges_; } /** * * *
     * ranges are the allowed ranges of uids that may be used. If you would like to force a single uid
     * then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public int getRangesCount() { return ranges_.size(); } /** * * *
     * ranges are the allowed ranges of uids that may be used. If you would like to force a single uid
     * then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public io.kubernetes.client.proto.V1beta1Policy.IDRange getRanges(int index) { return ranges_.get(index); } /** * * *
     * ranges are the allowed ranges of uids that may be used. If you would like to force a single uid
     * then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public io.kubernetes.client.proto.V1beta1Policy.IDRangeOrBuilder getRangesOrBuilder(int index) { return ranges_.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)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, rule_); } for (int i = 0; i < ranges_.size(); i++) { output.writeMessage(2, ranges_.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.GeneratedMessageV3.computeStringSize(1, rule_); } for (int i = 0; i < ranges_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, ranges_.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.V1beta1Policy.RunAsUserStrategyOptions)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions other = (io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions) obj; boolean result = true; result = result && (hasRule() == other.hasRule()); if (hasRule()) { result = result && getRule().equals(other.getRule()); } result = result && getRangesList().equals(other.getRangesList()); 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 (hasRule()) { hash = (37 * hash) + RULE_FIELD_NUMBER; hash = (53 * hash) + getRule().hashCode(); } if (getRangesCount() > 0) { hash = (37 * hash) + RANGES_FIELD_NUMBER; hash = (53 * hash) + getRangesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions 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.V1beta1Policy.RunAsUserStrategyOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions 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.V1beta1Policy.RunAsUserStrategyOptions parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions 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.V1beta1Policy.RunAsUserStrategyOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions 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.V1beta1Policy.RunAsUserStrategyOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions 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.V1beta1Policy.RunAsUserStrategyOptions 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; } /** * * *
     * RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy.
     * 
* * Protobuf type {@code k8s.io.api.policy.v1beta1.RunAsUserStrategyOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.policy.v1beta1.RunAsUserStrategyOptions) io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_RunAsUserStrategyOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_RunAsUserStrategyOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions.class, io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions.Builder.class); } // Construct using // io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRangesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); rule_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (rangesBuilder_ == null) { ranges_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { rangesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_RunAsUserStrategyOptions_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions .getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions build() { io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions buildPartial() { io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions result = new io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.rule_ = rule_; if (rangesBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { ranges_ = java.util.Collections.unmodifiableList(ranges_); bitField0_ = (bitField0_ & ~0x00000002); } result.ranges_ = ranges_; } else { result.ranges_ = rangesBuilder_.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.V1beta1Policy.RunAsUserStrategyOptions) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions other) { if (other == io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions .getDefaultInstance()) return this; if (other.hasRule()) { bitField0_ |= 0x00000001; rule_ = other.rule_; onChanged(); } if (rangesBuilder_ == null) { if (!other.ranges_.isEmpty()) { if (ranges_.isEmpty()) { ranges_ = other.ranges_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRangesIsMutable(); ranges_.addAll(other.ranges_); } onChanged(); } } else { if (!other.ranges_.isEmpty()) { if (rangesBuilder_.isEmpty()) { rangesBuilder_.dispose(); rangesBuilder_ = null; ranges_ = other.ranges_; bitField0_ = (bitField0_ & ~0x00000002); rangesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRangesFieldBuilder() : null; } else { rangesBuilder_.addAllMessages(other.ranges_); } } } 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.V1beta1Policy.RunAsUserStrategyOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object rule_ = ""; /** * * *
       * rule is the strategy that will dictate the allowable RunAsUser values that may be set.
       * 
* * optional string rule = 1; */ public boolean hasRule() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * rule is the strategy that will dictate the allowable RunAsUser values that may be set.
       * 
* * optional string rule = 1; */ public java.lang.String getRule() { java.lang.Object ref = rule_; 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()) { rule_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * rule is the strategy that will dictate the allowable RunAsUser values that may be set.
       * 
* * optional string rule = 1; */ public com.google.protobuf.ByteString getRuleBytes() { java.lang.Object ref = rule_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); rule_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * rule is the strategy that will dictate the allowable RunAsUser values that may be set.
       * 
* * optional string rule = 1; */ public Builder setRule(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; rule_ = value; onChanged(); return this; } /** * * *
       * rule is the strategy that will dictate the allowable RunAsUser values that may be set.
       * 
* * optional string rule = 1; */ public Builder clearRule() { bitField0_ = (bitField0_ & ~0x00000001); rule_ = getDefaultInstance().getRule(); onChanged(); return this; } /** * * *
       * rule is the strategy that will dictate the allowable RunAsUser values that may be set.
       * 
* * optional string rule = 1; */ public Builder setRuleBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; rule_ = value; onChanged(); return this; } private java.util.List ranges_ = java.util.Collections.emptyList(); private void ensureRangesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { ranges_ = new java.util.ArrayList(ranges_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.IDRange, io.kubernetes.client.proto.V1beta1Policy.IDRange.Builder, io.kubernetes.client.proto.V1beta1Policy.IDRangeOrBuilder> rangesBuilder_; /** * * *
       * ranges are the allowed ranges of uids that may be used. If you would like to force a single uid
       * then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public java.util.List getRangesList() { if (rangesBuilder_ == null) { return java.util.Collections.unmodifiableList(ranges_); } else { return rangesBuilder_.getMessageList(); } } /** * * *
       * ranges are the allowed ranges of uids that may be used. If you would like to force a single uid
       * then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public int getRangesCount() { if (rangesBuilder_ == null) { return ranges_.size(); } else { return rangesBuilder_.getCount(); } } /** * * *
       * ranges are the allowed ranges of uids that may be used. If you would like to force a single uid
       * then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public io.kubernetes.client.proto.V1beta1Policy.IDRange getRanges(int index) { if (rangesBuilder_ == null) { return ranges_.get(index); } else { return rangesBuilder_.getMessage(index); } } /** * * *
       * ranges are the allowed ranges of uids that may be used. If you would like to force a single uid
       * then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public Builder setRanges(int index, io.kubernetes.client.proto.V1beta1Policy.IDRange value) { if (rangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRangesIsMutable(); ranges_.set(index, value); onChanged(); } else { rangesBuilder_.setMessage(index, value); } return this; } /** * * *
       * ranges are the allowed ranges of uids that may be used. If you would like to force a single uid
       * then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public Builder setRanges( int index, io.kubernetes.client.proto.V1beta1Policy.IDRange.Builder builderForValue) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); ranges_.set(index, builderForValue.build()); onChanged(); } else { rangesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * ranges are the allowed ranges of uids that may be used. If you would like to force a single uid
       * then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public Builder addRanges(io.kubernetes.client.proto.V1beta1Policy.IDRange value) { if (rangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRangesIsMutable(); ranges_.add(value); onChanged(); } else { rangesBuilder_.addMessage(value); } return this; } /** * * *
       * ranges are the allowed ranges of uids that may be used. If you would like to force a single uid
       * then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public Builder addRanges(int index, io.kubernetes.client.proto.V1beta1Policy.IDRange value) { if (rangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRangesIsMutable(); ranges_.add(index, value); onChanged(); } else { rangesBuilder_.addMessage(index, value); } return this; } /** * * *
       * ranges are the allowed ranges of uids that may be used. If you would like to force a single uid
       * then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public Builder addRanges( io.kubernetes.client.proto.V1beta1Policy.IDRange.Builder builderForValue) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); ranges_.add(builderForValue.build()); onChanged(); } else { rangesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * ranges are the allowed ranges of uids that may be used. If you would like to force a single uid
       * then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public Builder addRanges( int index, io.kubernetes.client.proto.V1beta1Policy.IDRange.Builder builderForValue) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); ranges_.add(index, builderForValue.build()); onChanged(); } else { rangesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * ranges are the allowed ranges of uids that may be used. If you would like to force a single uid
       * then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public Builder addAllRanges( java.lang.Iterable values) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ranges_); onChanged(); } else { rangesBuilder_.addAllMessages(values); } return this; } /** * * *
       * ranges are the allowed ranges of uids that may be used. If you would like to force a single uid
       * then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public Builder clearRanges() { if (rangesBuilder_ == null) { ranges_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { rangesBuilder_.clear(); } return this; } /** * * *
       * ranges are the allowed ranges of uids that may be used. If you would like to force a single uid
       * then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public Builder removeRanges(int index) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); ranges_.remove(index); onChanged(); } else { rangesBuilder_.remove(index); } return this; } /** * * *
       * ranges are the allowed ranges of uids that may be used. If you would like to force a single uid
       * then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public io.kubernetes.client.proto.V1beta1Policy.IDRange.Builder getRangesBuilder(int index) { return getRangesFieldBuilder().getBuilder(index); } /** * * *
       * ranges are the allowed ranges of uids that may be used. If you would like to force a single uid
       * then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public io.kubernetes.client.proto.V1beta1Policy.IDRangeOrBuilder getRangesOrBuilder( int index) { if (rangesBuilder_ == null) { return ranges_.get(index); } else { return rangesBuilder_.getMessageOrBuilder(index); } } /** * * *
       * ranges are the allowed ranges of uids that may be used. If you would like to force a single uid
       * then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public java.util.List getRangesOrBuilderList() { if (rangesBuilder_ != null) { return rangesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ranges_); } } /** * * *
       * ranges are the allowed ranges of uids that may be used. If you would like to force a single uid
       * then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public io.kubernetes.client.proto.V1beta1Policy.IDRange.Builder addRangesBuilder() { return getRangesFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1beta1Policy.IDRange.getDefaultInstance()); } /** * * *
       * ranges are the allowed ranges of uids that may be used. If you would like to force a single uid
       * then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public io.kubernetes.client.proto.V1beta1Policy.IDRange.Builder addRangesBuilder(int index) { return getRangesFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1beta1Policy.IDRange.getDefaultInstance()); } /** * * *
       * ranges are the allowed ranges of uids that may be used. If you would like to force a single uid
       * then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public java.util.List getRangesBuilderList() { return getRangesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.IDRange, io.kubernetes.client.proto.V1beta1Policy.IDRange.Builder, io.kubernetes.client.proto.V1beta1Policy.IDRangeOrBuilder> getRangesFieldBuilder() { if (rangesBuilder_ == null) { rangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.IDRange, io.kubernetes.client.proto.V1beta1Policy.IDRange.Builder, io.kubernetes.client.proto.V1beta1Policy.IDRangeOrBuilder>( ranges_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); ranges_ = null; } return rangesBuilder_; } @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.policy.v1beta1.RunAsUserStrategyOptions) } // @@protoc_insertion_point(class_scope:k8s.io.api.policy.v1beta1.RunAsUserStrategyOptions) private static final io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions(); } public static io.kubernetes.client.proto.V1beta1Policy.RunAsUserStrategyOptions getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RunAsUserStrategyOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RunAsUserStrategyOptions(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.V1beta1Policy.RunAsUserStrategyOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RuntimeClassStrategyOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.policy.v1beta1.RuntimeClassStrategyOptions) com.google.protobuf.MessageOrBuilder { /** * * *
     * allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod.
     * A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the
     * list. An empty list requires the RuntimeClassName field to be unset.
     * 
* * repeated string allowedRuntimeClassNames = 1; */ java.util.List getAllowedRuntimeClassNamesList(); /** * * *
     * allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod.
     * A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the
     * list. An empty list requires the RuntimeClassName field to be unset.
     * 
* * repeated string allowedRuntimeClassNames = 1; */ int getAllowedRuntimeClassNamesCount(); /** * * *
     * allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod.
     * A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the
     * list. An empty list requires the RuntimeClassName field to be unset.
     * 
* * repeated string allowedRuntimeClassNames = 1; */ java.lang.String getAllowedRuntimeClassNames(int index); /** * * *
     * allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod.
     * A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the
     * list. An empty list requires the RuntimeClassName field to be unset.
     * 
* * repeated string allowedRuntimeClassNames = 1; */ com.google.protobuf.ByteString getAllowedRuntimeClassNamesBytes(int index); /** * * *
     * defaultRuntimeClassName is the default RuntimeClassName to set on the pod.
     * The default MUST be allowed by the allowedRuntimeClassNames list.
     * A value of nil does not mutate the Pod.
     * +optional
     * 
* * optional string defaultRuntimeClassName = 2; */ boolean hasDefaultRuntimeClassName(); /** * * *
     * defaultRuntimeClassName is the default RuntimeClassName to set on the pod.
     * The default MUST be allowed by the allowedRuntimeClassNames list.
     * A value of nil does not mutate the Pod.
     * +optional
     * 
* * optional string defaultRuntimeClassName = 2; */ java.lang.String getDefaultRuntimeClassName(); /** * * *
     * defaultRuntimeClassName is the default RuntimeClassName to set on the pod.
     * The default MUST be allowed by the allowedRuntimeClassNames list.
     * A value of nil does not mutate the Pod.
     * +optional
     * 
* * optional string defaultRuntimeClassName = 2; */ com.google.protobuf.ByteString getDefaultRuntimeClassNameBytes(); } /** * * *
   * RuntimeClassStrategyOptions define the strategy that will dictate the allowable RuntimeClasses
   * for a pod.
   * 
* * Protobuf type {@code k8s.io.api.policy.v1beta1.RuntimeClassStrategyOptions} */ public static final class RuntimeClassStrategyOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.policy.v1beta1.RuntimeClassStrategyOptions) RuntimeClassStrategyOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use RuntimeClassStrategyOptions.newBuilder() to construct. private RuntimeClassStrategyOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RuntimeClassStrategyOptions() { allowedRuntimeClassNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; defaultRuntimeClassName_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RuntimeClassStrategyOptions( 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)) { allowedRuntimeClassNames_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } allowedRuntimeClassNames_.add(bs); break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; defaultRuntimeClassName_ = 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)) { allowedRuntimeClassNames_ = allowedRuntimeClassNames_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_RuntimeClassStrategyOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_RuntimeClassStrategyOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions.class, io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions.Builder.class); } private int bitField0_; public static final int ALLOWEDRUNTIMECLASSNAMES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList allowedRuntimeClassNames_; /** * * *
     * allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod.
     * A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the
     * list. An empty list requires the RuntimeClassName field to be unset.
     * 
* * repeated string allowedRuntimeClassNames = 1; */ public com.google.protobuf.ProtocolStringList getAllowedRuntimeClassNamesList() { return allowedRuntimeClassNames_; } /** * * *
     * allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod.
     * A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the
     * list. An empty list requires the RuntimeClassName field to be unset.
     * 
* * repeated string allowedRuntimeClassNames = 1; */ public int getAllowedRuntimeClassNamesCount() { return allowedRuntimeClassNames_.size(); } /** * * *
     * allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod.
     * A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the
     * list. An empty list requires the RuntimeClassName field to be unset.
     * 
* * repeated string allowedRuntimeClassNames = 1; */ public java.lang.String getAllowedRuntimeClassNames(int index) { return allowedRuntimeClassNames_.get(index); } /** * * *
     * allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod.
     * A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the
     * list. An empty list requires the RuntimeClassName field to be unset.
     * 
* * repeated string allowedRuntimeClassNames = 1; */ public com.google.protobuf.ByteString getAllowedRuntimeClassNamesBytes(int index) { return allowedRuntimeClassNames_.getByteString(index); } public static final int DEFAULTRUNTIMECLASSNAME_FIELD_NUMBER = 2; private volatile java.lang.Object defaultRuntimeClassName_; /** * * *
     * defaultRuntimeClassName is the default RuntimeClassName to set on the pod.
     * The default MUST be allowed by the allowedRuntimeClassNames list.
     * A value of nil does not mutate the Pod.
     * +optional
     * 
* * optional string defaultRuntimeClassName = 2; */ public boolean hasDefaultRuntimeClassName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * defaultRuntimeClassName is the default RuntimeClassName to set on the pod.
     * The default MUST be allowed by the allowedRuntimeClassNames list.
     * A value of nil does not mutate the Pod.
     * +optional
     * 
* * optional string defaultRuntimeClassName = 2; */ public java.lang.String getDefaultRuntimeClassName() { java.lang.Object ref = defaultRuntimeClassName_; 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()) { defaultRuntimeClassName_ = s; } return s; } } /** * * *
     * defaultRuntimeClassName is the default RuntimeClassName to set on the pod.
     * The default MUST be allowed by the allowedRuntimeClassNames list.
     * A value of nil does not mutate the Pod.
     * +optional
     * 
* * optional string defaultRuntimeClassName = 2; */ public com.google.protobuf.ByteString getDefaultRuntimeClassNameBytes() { java.lang.Object ref = defaultRuntimeClassName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); defaultRuntimeClassName_ = 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 < allowedRuntimeClassNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString( output, 1, allowedRuntimeClassNames_.getRaw(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, defaultRuntimeClassName_); } 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 < allowedRuntimeClassNames_.size(); i++) { dataSize += computeStringSizeNoTag(allowedRuntimeClassNames_.getRaw(i)); } size += dataSize; size += 1 * getAllowedRuntimeClassNamesList().size(); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, defaultRuntimeClassName_); } 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.V1beta1Policy.RuntimeClassStrategyOptions)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions other = (io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions) obj; boolean result = true; result = result && getAllowedRuntimeClassNamesList().equals(other.getAllowedRuntimeClassNamesList()); result = result && (hasDefaultRuntimeClassName() == other.hasDefaultRuntimeClassName()); if (hasDefaultRuntimeClassName()) { result = result && getDefaultRuntimeClassName().equals(other.getDefaultRuntimeClassName()); } 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 (getAllowedRuntimeClassNamesCount() > 0) { hash = (37 * hash) + ALLOWEDRUNTIMECLASSNAMES_FIELD_NUMBER; hash = (53 * hash) + getAllowedRuntimeClassNamesList().hashCode(); } if (hasDefaultRuntimeClassName()) { hash = (37 * hash) + DEFAULTRUNTIMECLASSNAME_FIELD_NUMBER; hash = (53 * hash) + getDefaultRuntimeClassName().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions 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.V1beta1Policy.RuntimeClassStrategyOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions 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.V1beta1Policy.RuntimeClassStrategyOptions parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions 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.V1beta1Policy.RuntimeClassStrategyOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions 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.V1beta1Policy.RuntimeClassStrategyOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions 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.V1beta1Policy.RuntimeClassStrategyOptions 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; } /** * * *
     * RuntimeClassStrategyOptions define the strategy that will dictate the allowable RuntimeClasses
     * for a pod.
     * 
* * Protobuf type {@code k8s.io.api.policy.v1beta1.RuntimeClassStrategyOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.policy.v1beta1.RuntimeClassStrategyOptions) io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_RuntimeClassStrategyOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_RuntimeClassStrategyOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions.class, io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions.Builder.class); } // Construct using // io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions.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(); allowedRuntimeClassNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); defaultRuntimeClassName_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_RuntimeClassStrategyOptions_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions .getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions build() { io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions buildPartial() { io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions result = new io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { allowedRuntimeClassNames_ = allowedRuntimeClassNames_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.allowedRuntimeClassNames_ = allowedRuntimeClassNames_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } result.defaultRuntimeClassName_ = defaultRuntimeClassName_; 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.V1beta1Policy.RuntimeClassStrategyOptions) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions other) { if (other == io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions .getDefaultInstance()) return this; if (!other.allowedRuntimeClassNames_.isEmpty()) { if (allowedRuntimeClassNames_.isEmpty()) { allowedRuntimeClassNames_ = other.allowedRuntimeClassNames_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAllowedRuntimeClassNamesIsMutable(); allowedRuntimeClassNames_.addAll(other.allowedRuntimeClassNames_); } onChanged(); } if (other.hasDefaultRuntimeClassName()) { bitField0_ |= 0x00000002; defaultRuntimeClassName_ = other.defaultRuntimeClassName_; 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.V1beta1Policy.RuntimeClassStrategyOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList allowedRuntimeClassNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAllowedRuntimeClassNamesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { allowedRuntimeClassNames_ = new com.google.protobuf.LazyStringArrayList(allowedRuntimeClassNames_); bitField0_ |= 0x00000001; } } /** * * *
       * allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod.
       * A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the
       * list. An empty list requires the RuntimeClassName field to be unset.
       * 
* * repeated string allowedRuntimeClassNames = 1; */ public com.google.protobuf.ProtocolStringList getAllowedRuntimeClassNamesList() { return allowedRuntimeClassNames_.getUnmodifiableView(); } /** * * *
       * allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod.
       * A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the
       * list. An empty list requires the RuntimeClassName field to be unset.
       * 
* * repeated string allowedRuntimeClassNames = 1; */ public int getAllowedRuntimeClassNamesCount() { return allowedRuntimeClassNames_.size(); } /** * * *
       * allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod.
       * A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the
       * list. An empty list requires the RuntimeClassName field to be unset.
       * 
* * repeated string allowedRuntimeClassNames = 1; */ public java.lang.String getAllowedRuntimeClassNames(int index) { return allowedRuntimeClassNames_.get(index); } /** * * *
       * allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod.
       * A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the
       * list. An empty list requires the RuntimeClassName field to be unset.
       * 
* * repeated string allowedRuntimeClassNames = 1; */ public com.google.protobuf.ByteString getAllowedRuntimeClassNamesBytes(int index) { return allowedRuntimeClassNames_.getByteString(index); } /** * * *
       * allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod.
       * A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the
       * list. An empty list requires the RuntimeClassName field to be unset.
       * 
* * repeated string allowedRuntimeClassNames = 1; */ public Builder setAllowedRuntimeClassNames(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAllowedRuntimeClassNamesIsMutable(); allowedRuntimeClassNames_.set(index, value); onChanged(); return this; } /** * * *
       * allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod.
       * A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the
       * list. An empty list requires the RuntimeClassName field to be unset.
       * 
* * repeated string allowedRuntimeClassNames = 1; */ public Builder addAllowedRuntimeClassNames(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAllowedRuntimeClassNamesIsMutable(); allowedRuntimeClassNames_.add(value); onChanged(); return this; } /** * * *
       * allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod.
       * A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the
       * list. An empty list requires the RuntimeClassName field to be unset.
       * 
* * repeated string allowedRuntimeClassNames = 1; */ public Builder addAllAllowedRuntimeClassNames(java.lang.Iterable values) { ensureAllowedRuntimeClassNamesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedRuntimeClassNames_); onChanged(); return this; } /** * * *
       * allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod.
       * A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the
       * list. An empty list requires the RuntimeClassName field to be unset.
       * 
* * repeated string allowedRuntimeClassNames = 1; */ public Builder clearAllowedRuntimeClassNames() { allowedRuntimeClassNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * allowedRuntimeClassNames is an allowlist of RuntimeClass names that may be specified on a pod.
       * A value of "*" means that any RuntimeClass name is allowed, and must be the only item in the
       * list. An empty list requires the RuntimeClassName field to be unset.
       * 
* * repeated string allowedRuntimeClassNames = 1; */ public Builder addAllowedRuntimeClassNamesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureAllowedRuntimeClassNamesIsMutable(); allowedRuntimeClassNames_.add(value); onChanged(); return this; } private java.lang.Object defaultRuntimeClassName_ = ""; /** * * *
       * defaultRuntimeClassName is the default RuntimeClassName to set on the pod.
       * The default MUST be allowed by the allowedRuntimeClassNames list.
       * A value of nil does not mutate the Pod.
       * +optional
       * 
* * optional string defaultRuntimeClassName = 2; */ public boolean hasDefaultRuntimeClassName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * defaultRuntimeClassName is the default RuntimeClassName to set on the pod.
       * The default MUST be allowed by the allowedRuntimeClassNames list.
       * A value of nil does not mutate the Pod.
       * +optional
       * 
* * optional string defaultRuntimeClassName = 2; */ public java.lang.String getDefaultRuntimeClassName() { java.lang.Object ref = defaultRuntimeClassName_; 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()) { defaultRuntimeClassName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * defaultRuntimeClassName is the default RuntimeClassName to set on the pod.
       * The default MUST be allowed by the allowedRuntimeClassNames list.
       * A value of nil does not mutate the Pod.
       * +optional
       * 
* * optional string defaultRuntimeClassName = 2; */ public com.google.protobuf.ByteString getDefaultRuntimeClassNameBytes() { java.lang.Object ref = defaultRuntimeClassName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); defaultRuntimeClassName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * defaultRuntimeClassName is the default RuntimeClassName to set on the pod.
       * The default MUST be allowed by the allowedRuntimeClassNames list.
       * A value of nil does not mutate the Pod.
       * +optional
       * 
* * optional string defaultRuntimeClassName = 2; */ public Builder setDefaultRuntimeClassName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; defaultRuntimeClassName_ = value; onChanged(); return this; } /** * * *
       * defaultRuntimeClassName is the default RuntimeClassName to set on the pod.
       * The default MUST be allowed by the allowedRuntimeClassNames list.
       * A value of nil does not mutate the Pod.
       * +optional
       * 
* * optional string defaultRuntimeClassName = 2; */ public Builder clearDefaultRuntimeClassName() { bitField0_ = (bitField0_ & ~0x00000002); defaultRuntimeClassName_ = getDefaultInstance().getDefaultRuntimeClassName(); onChanged(); return this; } /** * * *
       * defaultRuntimeClassName is the default RuntimeClassName to set on the pod.
       * The default MUST be allowed by the allowedRuntimeClassNames list.
       * A value of nil does not mutate the Pod.
       * +optional
       * 
* * optional string defaultRuntimeClassName = 2; */ public Builder setDefaultRuntimeClassNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; defaultRuntimeClassName_ = 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.policy.v1beta1.RuntimeClassStrategyOptions) } // @@protoc_insertion_point(class_scope:k8s.io.api.policy.v1beta1.RuntimeClassStrategyOptions) private static final io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions(); } public static io.kubernetes.client.proto.V1beta1Policy.RuntimeClassStrategyOptions getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RuntimeClassStrategyOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RuntimeClassStrategyOptions(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.V1beta1Policy.RuntimeClassStrategyOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SELinuxStrategyOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.policy.v1beta1.SELinuxStrategyOptions) com.google.protobuf.MessageOrBuilder { /** * * *
     * rule is the strategy that will dictate the allowable labels that may be set.
     * 
* * optional string rule = 1; */ boolean hasRule(); /** * * *
     * rule is the strategy that will dictate the allowable labels that may be set.
     * 
* * optional string rule = 1; */ java.lang.String getRule(); /** * * *
     * rule is the strategy that will dictate the allowable labels that may be set.
     * 
* * optional string rule = 1; */ com.google.protobuf.ByteString getRuleBytes(); /** * * *
     * seLinuxOptions required to run as; required for MustRunAs
     * More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 2; */ boolean hasSeLinuxOptions(); /** * * *
     * seLinuxOptions required to run as; required for MustRunAs
     * More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 2; */ io.kubernetes.client.proto.V1.SELinuxOptions getSeLinuxOptions(); /** * * *
     * seLinuxOptions required to run as; required for MustRunAs
     * More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 2; */ io.kubernetes.client.proto.V1.SELinuxOptionsOrBuilder getSeLinuxOptionsOrBuilder(); } /** * * *
   * SELinuxStrategyOptions defines the strategy type and any options used to create the strategy.
   * 
* * Protobuf type {@code k8s.io.api.policy.v1beta1.SELinuxStrategyOptions} */ public static final class SELinuxStrategyOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.policy.v1beta1.SELinuxStrategyOptions) SELinuxStrategyOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use SELinuxStrategyOptions.newBuilder() to construct. private SELinuxStrategyOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SELinuxStrategyOptions() { rule_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SELinuxStrategyOptions( 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; rule_ = bs; break; } case 18: { io.kubernetes.client.proto.V1.SELinuxOptions.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = seLinuxOptions_.toBuilder(); } seLinuxOptions_ = input.readMessage( io.kubernetes.client.proto.V1.SELinuxOptions.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(seLinuxOptions_); seLinuxOptions_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; 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.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_SELinuxStrategyOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_SELinuxStrategyOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions.class, io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions.Builder.class); } private int bitField0_; public static final int RULE_FIELD_NUMBER = 1; private volatile java.lang.Object rule_; /** * * *
     * rule is the strategy that will dictate the allowable labels that may be set.
     * 
* * optional string rule = 1; */ public boolean hasRule() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * rule is the strategy that will dictate the allowable labels that may be set.
     * 
* * optional string rule = 1; */ public java.lang.String getRule() { java.lang.Object ref = rule_; 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()) { rule_ = s; } return s; } } /** * * *
     * rule is the strategy that will dictate the allowable labels that may be set.
     * 
* * optional string rule = 1; */ public com.google.protobuf.ByteString getRuleBytes() { java.lang.Object ref = rule_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); rule_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SELINUXOPTIONS_FIELD_NUMBER = 2; private io.kubernetes.client.proto.V1.SELinuxOptions seLinuxOptions_; /** * * *
     * seLinuxOptions required to run as; required for MustRunAs
     * More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 2; */ public boolean hasSeLinuxOptions() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
     * seLinuxOptions required to run as; required for MustRunAs
     * More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 2; */ public io.kubernetes.client.proto.V1.SELinuxOptions getSeLinuxOptions() { return seLinuxOptions_ == null ? io.kubernetes.client.proto.V1.SELinuxOptions.getDefaultInstance() : seLinuxOptions_; } /** * * *
     * seLinuxOptions required to run as; required for MustRunAs
     * More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
     * +optional
     * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 2; */ public io.kubernetes.client.proto.V1.SELinuxOptionsOrBuilder getSeLinuxOptionsOrBuilder() { return seLinuxOptions_ == null ? io.kubernetes.client.proto.V1.SELinuxOptions.getDefaultInstance() : seLinuxOptions_; } 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, rule_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getSeLinuxOptions()); } 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, rule_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSeLinuxOptions()); } 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.V1beta1Policy.SELinuxStrategyOptions)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions other = (io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions) obj; boolean result = true; result = result && (hasRule() == other.hasRule()); if (hasRule()) { result = result && getRule().equals(other.getRule()); } result = result && (hasSeLinuxOptions() == other.hasSeLinuxOptions()); if (hasSeLinuxOptions()) { result = result && getSeLinuxOptions().equals(other.getSeLinuxOptions()); } 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 (hasRule()) { hash = (37 * hash) + RULE_FIELD_NUMBER; hash = (53 * hash) + getRule().hashCode(); } if (hasSeLinuxOptions()) { hash = (37 * hash) + SELINUXOPTIONS_FIELD_NUMBER; hash = (53 * hash) + getSeLinuxOptions().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions 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.V1beta1Policy.SELinuxStrategyOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions 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.V1beta1Policy.SELinuxStrategyOptions parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions 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.V1beta1Policy.SELinuxStrategyOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions 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.V1beta1Policy.SELinuxStrategyOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions 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.V1beta1Policy.SELinuxStrategyOptions 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; } /** * * *
     * SELinuxStrategyOptions defines the strategy type and any options used to create the strategy.
     * 
* * Protobuf type {@code k8s.io.api.policy.v1beta1.SELinuxStrategyOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.policy.v1beta1.SELinuxStrategyOptions) io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_SELinuxStrategyOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_SELinuxStrategyOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions.class, io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions.Builder.class); } // Construct using // io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSeLinuxOptionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); rule_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (seLinuxOptionsBuilder_ == null) { seLinuxOptions_ = null; } else { seLinuxOptionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_SELinuxStrategyOptions_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions.getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions build() { io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions buildPartial() { io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions result = new io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.rule_ = rule_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (seLinuxOptionsBuilder_ == null) { result.seLinuxOptions_ = seLinuxOptions_; } else { result.seLinuxOptions_ = seLinuxOptionsBuilder_.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.V1beta1Policy.SELinuxStrategyOptions) { return mergeFrom((io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions other) { if (other == io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions.getDefaultInstance()) return this; if (other.hasRule()) { bitField0_ |= 0x00000001; rule_ = other.rule_; onChanged(); } if (other.hasSeLinuxOptions()) { mergeSeLinuxOptions(other.getSeLinuxOptions()); } 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.V1beta1Policy.SELinuxStrategyOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object rule_ = ""; /** * * *
       * rule is the strategy that will dictate the allowable labels that may be set.
       * 
* * optional string rule = 1; */ public boolean hasRule() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * rule is the strategy that will dictate the allowable labels that may be set.
       * 
* * optional string rule = 1; */ public java.lang.String getRule() { java.lang.Object ref = rule_; 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()) { rule_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * rule is the strategy that will dictate the allowable labels that may be set.
       * 
* * optional string rule = 1; */ public com.google.protobuf.ByteString getRuleBytes() { java.lang.Object ref = rule_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); rule_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * rule is the strategy that will dictate the allowable labels that may be set.
       * 
* * optional string rule = 1; */ public Builder setRule(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; rule_ = value; onChanged(); return this; } /** * * *
       * rule is the strategy that will dictate the allowable labels that may be set.
       * 
* * optional string rule = 1; */ public Builder clearRule() { bitField0_ = (bitField0_ & ~0x00000001); rule_ = getDefaultInstance().getRule(); onChanged(); return this; } /** * * *
       * rule is the strategy that will dictate the allowable labels that may be set.
       * 
* * optional string rule = 1; */ public Builder setRuleBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; rule_ = value; onChanged(); return this; } private io.kubernetes.client.proto.V1.SELinuxOptions seLinuxOptions_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SELinuxOptions, io.kubernetes.client.proto.V1.SELinuxOptions.Builder, io.kubernetes.client.proto.V1.SELinuxOptionsOrBuilder> seLinuxOptionsBuilder_; /** * * *
       * seLinuxOptions required to run as; required for MustRunAs
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 2; */ public boolean hasSeLinuxOptions() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * * *
       * seLinuxOptions required to run as; required for MustRunAs
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 2; */ public io.kubernetes.client.proto.V1.SELinuxOptions getSeLinuxOptions() { if (seLinuxOptionsBuilder_ == null) { return seLinuxOptions_ == null ? io.kubernetes.client.proto.V1.SELinuxOptions.getDefaultInstance() : seLinuxOptions_; } else { return seLinuxOptionsBuilder_.getMessage(); } } /** * * *
       * seLinuxOptions required to run as; required for MustRunAs
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 2; */ public Builder setSeLinuxOptions(io.kubernetes.client.proto.V1.SELinuxOptions value) { if (seLinuxOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } seLinuxOptions_ = value; onChanged(); } else { seLinuxOptionsBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * seLinuxOptions required to run as; required for MustRunAs
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 2; */ public Builder setSeLinuxOptions( io.kubernetes.client.proto.V1.SELinuxOptions.Builder builderForValue) { if (seLinuxOptionsBuilder_ == null) { seLinuxOptions_ = builderForValue.build(); onChanged(); } else { seLinuxOptionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * * *
       * seLinuxOptions required to run as; required for MustRunAs
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 2; */ public Builder mergeSeLinuxOptions(io.kubernetes.client.proto.V1.SELinuxOptions value) { if (seLinuxOptionsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && seLinuxOptions_ != null && seLinuxOptions_ != io.kubernetes.client.proto.V1.SELinuxOptions.getDefaultInstance()) { seLinuxOptions_ = io.kubernetes.client.proto.V1.SELinuxOptions.newBuilder(seLinuxOptions_) .mergeFrom(value) .buildPartial(); } else { seLinuxOptions_ = value; } onChanged(); } else { seLinuxOptionsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * * *
       * seLinuxOptions required to run as; required for MustRunAs
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 2; */ public Builder clearSeLinuxOptions() { if (seLinuxOptionsBuilder_ == null) { seLinuxOptions_ = null; onChanged(); } else { seLinuxOptionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * * *
       * seLinuxOptions required to run as; required for MustRunAs
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 2; */ public io.kubernetes.client.proto.V1.SELinuxOptions.Builder getSeLinuxOptionsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSeLinuxOptionsFieldBuilder().getBuilder(); } /** * * *
       * seLinuxOptions required to run as; required for MustRunAs
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 2; */ public io.kubernetes.client.proto.V1.SELinuxOptionsOrBuilder getSeLinuxOptionsOrBuilder() { if (seLinuxOptionsBuilder_ != null) { return seLinuxOptionsBuilder_.getMessageOrBuilder(); } else { return seLinuxOptions_ == null ? io.kubernetes.client.proto.V1.SELinuxOptions.getDefaultInstance() : seLinuxOptions_; } } /** * * *
       * seLinuxOptions required to run as; required for MustRunAs
       * More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
       * +optional
       * 
* * optional .k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SELinuxOptions, io.kubernetes.client.proto.V1.SELinuxOptions.Builder, io.kubernetes.client.proto.V1.SELinuxOptionsOrBuilder> getSeLinuxOptionsFieldBuilder() { if (seLinuxOptionsBuilder_ == null) { seLinuxOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.kubernetes.client.proto.V1.SELinuxOptions, io.kubernetes.client.proto.V1.SELinuxOptions.Builder, io.kubernetes.client.proto.V1.SELinuxOptionsOrBuilder>( getSeLinuxOptions(), getParentForChildren(), isClean()); seLinuxOptions_ = null; } return seLinuxOptionsBuilder_; } @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.policy.v1beta1.SELinuxStrategyOptions) } // @@protoc_insertion_point(class_scope:k8s.io.api.policy.v1beta1.SELinuxStrategyOptions) private static final io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions(); } public static io.kubernetes.client.proto.V1beta1Policy.SELinuxStrategyOptions getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SELinuxStrategyOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SELinuxStrategyOptions(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.V1beta1Policy.SELinuxStrategyOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SupplementalGroupsStrategyOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.api.policy.v1beta1.SupplementalGroupsStrategyOptions) com.google.protobuf.MessageOrBuilder { /** * * *
     * rule is the strategy that will dictate what supplemental groups is used in the SecurityContext.
     * +optional
     * 
* * optional string rule = 1; */ boolean hasRule(); /** * * *
     * rule is the strategy that will dictate what supplemental groups is used in the SecurityContext.
     * +optional
     * 
* * optional string rule = 1; */ java.lang.String getRule(); /** * * *
     * rule is the strategy that will dictate what supplemental groups is used in the SecurityContext.
     * +optional
     * 
* * optional string rule = 1; */ com.google.protobuf.ByteString getRuleBytes(); /** * * *
     * ranges are the allowed ranges of supplemental groups.  If you would like to force a single
     * supplemental group then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ java.util.List getRangesList(); /** * * *
     * ranges are the allowed ranges of supplemental groups.  If you would like to force a single
     * supplemental group then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ io.kubernetes.client.proto.V1beta1Policy.IDRange getRanges(int index); /** * * *
     * ranges are the allowed ranges of supplemental groups.  If you would like to force a single
     * supplemental group then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ int getRangesCount(); /** * * *
     * ranges are the allowed ranges of supplemental groups.  If you would like to force a single
     * supplemental group then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ java.util.List getRangesOrBuilderList(); /** * * *
     * ranges are the allowed ranges of supplemental groups.  If you would like to force a single
     * supplemental group then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ io.kubernetes.client.proto.V1beta1Policy.IDRangeOrBuilder getRangesOrBuilder(int index); } /** * * *
   * SupplementalGroupsStrategyOptions defines the strategy type and options used to create the strategy.
   * 
* * Protobuf type {@code k8s.io.api.policy.v1beta1.SupplementalGroupsStrategyOptions} */ public static final class SupplementalGroupsStrategyOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:k8s.io.api.policy.v1beta1.SupplementalGroupsStrategyOptions) SupplementalGroupsStrategyOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use SupplementalGroupsStrategyOptions.newBuilder() to construct. private SupplementalGroupsStrategyOptions( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SupplementalGroupsStrategyOptions() { rule_ = ""; ranges_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SupplementalGroupsStrategyOptions( 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; rule_ = bs; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { ranges_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } ranges_.add( input.readMessage( io.kubernetes.client.proto.V1beta1Policy.IDRange.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)) { ranges_ = java.util.Collections.unmodifiableList(ranges_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_SupplementalGroupsStrategyOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_SupplementalGroupsStrategyOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions.class, io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions.Builder .class); } private int bitField0_; public static final int RULE_FIELD_NUMBER = 1; private volatile java.lang.Object rule_; /** * * *
     * rule is the strategy that will dictate what supplemental groups is used in the SecurityContext.
     * +optional
     * 
* * optional string rule = 1; */ public boolean hasRule() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
     * rule is the strategy that will dictate what supplemental groups is used in the SecurityContext.
     * +optional
     * 
* * optional string rule = 1; */ public java.lang.String getRule() { java.lang.Object ref = rule_; 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()) { rule_ = s; } return s; } } /** * * *
     * rule is the strategy that will dictate what supplemental groups is used in the SecurityContext.
     * +optional
     * 
* * optional string rule = 1; */ public com.google.protobuf.ByteString getRuleBytes() { java.lang.Object ref = rule_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); rule_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RANGES_FIELD_NUMBER = 2; private java.util.List ranges_; /** * * *
     * ranges are the allowed ranges of supplemental groups.  If you would like to force a single
     * supplemental group then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public java.util.List getRangesList() { return ranges_; } /** * * *
     * ranges are the allowed ranges of supplemental groups.  If you would like to force a single
     * supplemental group then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public java.util.List getRangesOrBuilderList() { return ranges_; } /** * * *
     * ranges are the allowed ranges of supplemental groups.  If you would like to force a single
     * supplemental group then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public int getRangesCount() { return ranges_.size(); } /** * * *
     * ranges are the allowed ranges of supplemental groups.  If you would like to force a single
     * supplemental group then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public io.kubernetes.client.proto.V1beta1Policy.IDRange getRanges(int index) { return ranges_.get(index); } /** * * *
     * ranges are the allowed ranges of supplemental groups.  If you would like to force a single
     * supplemental group then supply a single range with the same start and end. Required for MustRunAs.
     * +optional
     * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public io.kubernetes.client.proto.V1beta1Policy.IDRangeOrBuilder getRangesOrBuilder(int index) { return ranges_.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)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, rule_); } for (int i = 0; i < ranges_.size(); i++) { output.writeMessage(2, ranges_.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.GeneratedMessageV3.computeStringSize(1, rule_); } for (int i = 0; i < ranges_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, ranges_.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.V1beta1Policy.SupplementalGroupsStrategyOptions)) { return super.equals(obj); } io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions other = (io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions) obj; boolean result = true; result = result && (hasRule() == other.hasRule()); if (hasRule()) { result = result && getRule().equals(other.getRule()); } result = result && getRangesList().equals(other.getRangesList()); 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 (hasRule()) { hash = (37 * hash) + RULE_FIELD_NUMBER; hash = (53 * hash) + getRule().hashCode(); } if (getRangesCount() > 0) { hash = (37 * hash) + RANGES_FIELD_NUMBER; hash = (53 * hash) + getRangesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions 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.V1beta1Policy.SupplementalGroupsStrategyOptions parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions 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.V1beta1Policy.SupplementalGroupsStrategyOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions 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.V1beta1Policy.SupplementalGroupsStrategyOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions 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.V1beta1Policy.SupplementalGroupsStrategyOptions parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions 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.V1beta1Policy.SupplementalGroupsStrategyOptions 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; } /** * * *
     * SupplementalGroupsStrategyOptions defines the strategy type and options used to create the strategy.
     * 
* * Protobuf type {@code k8s.io.api.policy.v1beta1.SupplementalGroupsStrategyOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:k8s.io.api.policy.v1beta1.SupplementalGroupsStrategyOptions) io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_SupplementalGroupsStrategyOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_SupplementalGroupsStrategyOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions.class, io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions.Builder .class); } // Construct using // io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRangesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); rule_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (rangesBuilder_ == null) { ranges_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { rangesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.kubernetes.client.proto.V1beta1Policy .internal_static_k8s_io_api_policy_v1beta1_SupplementalGroupsStrategyOptions_descriptor; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions getDefaultInstanceForType() { return io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions .getDefaultInstance(); } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions build() { io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions buildPartial() { io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions result = new io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.rule_ = rule_; if (rangesBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { ranges_ = java.util.Collections.unmodifiableList(ranges_); bitField0_ = (bitField0_ & ~0x00000002); } result.ranges_ = ranges_; } else { result.ranges_ = rangesBuilder_.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.V1beta1Policy.SupplementalGroupsStrategyOptions) { return mergeFrom( (io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions other) { if (other == io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions .getDefaultInstance()) return this; if (other.hasRule()) { bitField0_ |= 0x00000001; rule_ = other.rule_; onChanged(); } if (rangesBuilder_ == null) { if (!other.ranges_.isEmpty()) { if (ranges_.isEmpty()) { ranges_ = other.ranges_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRangesIsMutable(); ranges_.addAll(other.ranges_); } onChanged(); } } else { if (!other.ranges_.isEmpty()) { if (rangesBuilder_.isEmpty()) { rangesBuilder_.dispose(); rangesBuilder_ = null; ranges_ = other.ranges_; bitField0_ = (bitField0_ & ~0x00000002); rangesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRangesFieldBuilder() : null; } else { rangesBuilder_.addAllMessages(other.ranges_); } } } 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.V1beta1Policy.SupplementalGroupsStrategyOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object rule_ = ""; /** * * *
       * rule is the strategy that will dictate what supplemental groups is used in the SecurityContext.
       * +optional
       * 
* * optional string rule = 1; */ public boolean hasRule() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * * *
       * rule is the strategy that will dictate what supplemental groups is used in the SecurityContext.
       * +optional
       * 
* * optional string rule = 1; */ public java.lang.String getRule() { java.lang.Object ref = rule_; 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()) { rule_ = s; } return s; } else { return (java.lang.String) ref; } } /** * * *
       * rule is the strategy that will dictate what supplemental groups is used in the SecurityContext.
       * +optional
       * 
* * optional string rule = 1; */ public com.google.protobuf.ByteString getRuleBytes() { java.lang.Object ref = rule_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); rule_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * rule is the strategy that will dictate what supplemental groups is used in the SecurityContext.
       * +optional
       * 
* * optional string rule = 1; */ public Builder setRule(java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; rule_ = value; onChanged(); return this; } /** * * *
       * rule is the strategy that will dictate what supplemental groups is used in the SecurityContext.
       * +optional
       * 
* * optional string rule = 1; */ public Builder clearRule() { bitField0_ = (bitField0_ & ~0x00000001); rule_ = getDefaultInstance().getRule(); onChanged(); return this; } /** * * *
       * rule is the strategy that will dictate what supplemental groups is used in the SecurityContext.
       * +optional
       * 
* * optional string rule = 1; */ public Builder setRuleBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; rule_ = value; onChanged(); return this; } private java.util.List ranges_ = java.util.Collections.emptyList(); private void ensureRangesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { ranges_ = new java.util.ArrayList(ranges_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.IDRange, io.kubernetes.client.proto.V1beta1Policy.IDRange.Builder, io.kubernetes.client.proto.V1beta1Policy.IDRangeOrBuilder> rangesBuilder_; /** * * *
       * ranges are the allowed ranges of supplemental groups.  If you would like to force a single
       * supplemental group then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public java.util.List getRangesList() { if (rangesBuilder_ == null) { return java.util.Collections.unmodifiableList(ranges_); } else { return rangesBuilder_.getMessageList(); } } /** * * *
       * ranges are the allowed ranges of supplemental groups.  If you would like to force a single
       * supplemental group then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public int getRangesCount() { if (rangesBuilder_ == null) { return ranges_.size(); } else { return rangesBuilder_.getCount(); } } /** * * *
       * ranges are the allowed ranges of supplemental groups.  If you would like to force a single
       * supplemental group then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public io.kubernetes.client.proto.V1beta1Policy.IDRange getRanges(int index) { if (rangesBuilder_ == null) { return ranges_.get(index); } else { return rangesBuilder_.getMessage(index); } } /** * * *
       * ranges are the allowed ranges of supplemental groups.  If you would like to force a single
       * supplemental group then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public Builder setRanges(int index, io.kubernetes.client.proto.V1beta1Policy.IDRange value) { if (rangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRangesIsMutable(); ranges_.set(index, value); onChanged(); } else { rangesBuilder_.setMessage(index, value); } return this; } /** * * *
       * ranges are the allowed ranges of supplemental groups.  If you would like to force a single
       * supplemental group then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public Builder setRanges( int index, io.kubernetes.client.proto.V1beta1Policy.IDRange.Builder builderForValue) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); ranges_.set(index, builderForValue.build()); onChanged(); } else { rangesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * ranges are the allowed ranges of supplemental groups.  If you would like to force a single
       * supplemental group then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public Builder addRanges(io.kubernetes.client.proto.V1beta1Policy.IDRange value) { if (rangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRangesIsMutable(); ranges_.add(value); onChanged(); } else { rangesBuilder_.addMessage(value); } return this; } /** * * *
       * ranges are the allowed ranges of supplemental groups.  If you would like to force a single
       * supplemental group then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public Builder addRanges(int index, io.kubernetes.client.proto.V1beta1Policy.IDRange value) { if (rangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRangesIsMutable(); ranges_.add(index, value); onChanged(); } else { rangesBuilder_.addMessage(index, value); } return this; } /** * * *
       * ranges are the allowed ranges of supplemental groups.  If you would like to force a single
       * supplemental group then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public Builder addRanges( io.kubernetes.client.proto.V1beta1Policy.IDRange.Builder builderForValue) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); ranges_.add(builderForValue.build()); onChanged(); } else { rangesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * ranges are the allowed ranges of supplemental groups.  If you would like to force a single
       * supplemental group then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public Builder addRanges( int index, io.kubernetes.client.proto.V1beta1Policy.IDRange.Builder builderForValue) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); ranges_.add(index, builderForValue.build()); onChanged(); } else { rangesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * ranges are the allowed ranges of supplemental groups.  If you would like to force a single
       * supplemental group then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public Builder addAllRanges( java.lang.Iterable values) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ranges_); onChanged(); } else { rangesBuilder_.addAllMessages(values); } return this; } /** * * *
       * ranges are the allowed ranges of supplemental groups.  If you would like to force a single
       * supplemental group then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public Builder clearRanges() { if (rangesBuilder_ == null) { ranges_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { rangesBuilder_.clear(); } return this; } /** * * *
       * ranges are the allowed ranges of supplemental groups.  If you would like to force a single
       * supplemental group then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public Builder removeRanges(int index) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); ranges_.remove(index); onChanged(); } else { rangesBuilder_.remove(index); } return this; } /** * * *
       * ranges are the allowed ranges of supplemental groups.  If you would like to force a single
       * supplemental group then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public io.kubernetes.client.proto.V1beta1Policy.IDRange.Builder getRangesBuilder(int index) { return getRangesFieldBuilder().getBuilder(index); } /** * * *
       * ranges are the allowed ranges of supplemental groups.  If you would like to force a single
       * supplemental group then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public io.kubernetes.client.proto.V1beta1Policy.IDRangeOrBuilder getRangesOrBuilder( int index) { if (rangesBuilder_ == null) { return ranges_.get(index); } else { return rangesBuilder_.getMessageOrBuilder(index); } } /** * * *
       * ranges are the allowed ranges of supplemental groups.  If you would like to force a single
       * supplemental group then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public java.util.List getRangesOrBuilderList() { if (rangesBuilder_ != null) { return rangesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ranges_); } } /** * * *
       * ranges are the allowed ranges of supplemental groups.  If you would like to force a single
       * supplemental group then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public io.kubernetes.client.proto.V1beta1Policy.IDRange.Builder addRangesBuilder() { return getRangesFieldBuilder() .addBuilder(io.kubernetes.client.proto.V1beta1Policy.IDRange.getDefaultInstance()); } /** * * *
       * ranges are the allowed ranges of supplemental groups.  If you would like to force a single
       * supplemental group then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public io.kubernetes.client.proto.V1beta1Policy.IDRange.Builder addRangesBuilder(int index) { return getRangesFieldBuilder() .addBuilder( index, io.kubernetes.client.proto.V1beta1Policy.IDRange.getDefaultInstance()); } /** * * *
       * ranges are the allowed ranges of supplemental groups.  If you would like to force a single
       * supplemental group then supply a single range with the same start and end. Required for MustRunAs.
       * +optional
       * 
* * repeated .k8s.io.api.policy.v1beta1.IDRange ranges = 2; */ public java.util.List getRangesBuilderList() { return getRangesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.IDRange, io.kubernetes.client.proto.V1beta1Policy.IDRange.Builder, io.kubernetes.client.proto.V1beta1Policy.IDRangeOrBuilder> getRangesFieldBuilder() { if (rangesBuilder_ == null) { rangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.kubernetes.client.proto.V1beta1Policy.IDRange, io.kubernetes.client.proto.V1beta1Policy.IDRange.Builder, io.kubernetes.client.proto.V1beta1Policy.IDRangeOrBuilder>( ranges_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); ranges_ = null; } return rangesBuilder_; } @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.policy.v1beta1.SupplementalGroupsStrategyOptions) } // @@protoc_insertion_point(class_scope:k8s.io.api.policy.v1beta1.SupplementalGroupsStrategyOptions) private static final io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions(); } public static io.kubernetes.client.proto.V1beta1Policy.SupplementalGroupsStrategyOptions getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SupplementalGroupsStrategyOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SupplementalGroupsStrategyOptions(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.V1beta1Policy.SupplementalGroupsStrategyOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_policy_v1beta1_AllowedCSIDriver_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_policy_v1beta1_AllowedCSIDriver_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_policy_v1beta1_AllowedFlexVolume_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_policy_v1beta1_AllowedFlexVolume_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_policy_v1beta1_AllowedHostPath_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_policy_v1beta1_AllowedHostPath_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_policy_v1beta1_Eviction_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_policy_v1beta1_Eviction_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_policy_v1beta1_FSGroupStrategyOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_policy_v1beta1_FSGroupStrategyOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_policy_v1beta1_HostPortRange_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_policy_v1beta1_HostPortRange_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_policy_v1beta1_IDRange_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_policy_v1beta1_IDRange_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudget_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudget_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudgetList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudgetList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudgetSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudgetSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudgetStatus_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudgetStatus_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudgetStatus_DisruptedPodsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudgetStatus_DisruptedPodsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_policy_v1beta1_PodSecurityPolicy_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_policy_v1beta1_PodSecurityPolicy_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_policy_v1beta1_PodSecurityPolicyList_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_policy_v1beta1_PodSecurityPolicyList_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_policy_v1beta1_PodSecurityPolicySpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_policy_v1beta1_PodSecurityPolicySpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_policy_v1beta1_RunAsGroupStrategyOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_policy_v1beta1_RunAsGroupStrategyOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_policy_v1beta1_RunAsUserStrategyOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_policy_v1beta1_RunAsUserStrategyOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_policy_v1beta1_RuntimeClassStrategyOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_policy_v1beta1_RuntimeClassStrategyOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_policy_v1beta1_SELinuxStrategyOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_policy_v1beta1_SELinuxStrategyOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_policy_v1beta1_SupplementalGroupsStrategyOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_policy_v1beta1_SupplementalGroupsStrategyOptions_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n)k8s.io/api/policy/v1beta1/generated.pr" + "oto\022\031k8s.io.api.policy.v1beta1\032\"k8s.io/a" + "pi/core/v1/generated.proto\0324k8s.io/apima" + "chinery/pkg/apis/meta/v1/generated.proto" + "\032/k8s.io/apimachinery/pkg/runtime/genera" + "ted.proto\0326k8s.io/apimachinery/pkg/runti" + "me/schema/generated.proto\0323k8s.io/apimac" + "hinery/pkg/util/intstr/generated.proto\" " + "\n\020AllowedCSIDriver\022\014\n\004name\030\001 \001(\t\"#\n\021Allo" + "wedFlexVolume\022\016\n\006driver\030\001 \001(\t\"7\n\017Allowed" + "HostPath\022\022\n\npathPrefix\030\001 \001(\t\022\020\n\010readOnly" + "\030\002 \001(\010\"\232\001\n\010Eviction\022B\n\010metadata\030\001 \001(\01320." + "k8s.io.apimachinery.pkg.apis.meta.v1.Obj" + "ectMeta\022J\n\rdeleteOptions\030\002 \001(\01323.k8s.io." + "apimachinery.pkg.apis.meta.v1.DeleteOpti" + "ons\"Z\n\026FSGroupStrategyOptions\022\014\n\004rule\030\001 " + "\001(\t\0222\n\006ranges\030\002 \003(\0132\".k8s.io.api.policy." + "v1beta1.IDRange\")\n\rHostPortRange\022\013\n\003min\030" + "\001 \001(\005\022\013\n\003max\030\002 \001(\005\"#\n\007IDRange\022\013\n\003min\030\001 \001" + "(\003\022\013\n\003max\030\002 \001(\003\"\341\001\n\023PodDisruptionBudget\022" + "B\n\010metadata\030\001 \001(\01320.k8s.io.apimachinery." + "pkg.apis.meta.v1.ObjectMeta\022@\n\004spec\030\002 \001(" + "\01322.k8s.io.api.policy.v1beta1.PodDisrupt" + "ionBudgetSpec\022D\n\006status\030\003 \001(\01324.k8s.io.a" + "pi.policy.v1beta1.PodDisruptionBudgetSta" + "tus\"\232\001\n\027PodDisruptionBudgetList\022@\n\010metad" + "ata\030\001 \001(\0132..k8s.io.apimachinery.pkg.apis" + ".meta.v1.ListMeta\022=\n\005items\030\002 \003(\0132..k8s.i" + "o.api.policy.v1beta1.PodDisruptionBudget" + "\"\362\001\n\027PodDisruptionBudgetSpec\022F\n\014minAvail" + "able\030\001 \001(\01320.k8s.io.apimachinery.pkg.uti" + "l.intstr.IntOrString\022E\n\010selector\030\002 \001(\01323" + ".k8s.io.apimachinery.pkg.apis.meta.v1.La" + "belSelector\022H\n\016maxUnavailable\030\003 \001(\01320.k8" + "s.io.apimachinery.pkg.util.intstr.IntOrS" + "tring\"\240\003\n\031PodDisruptionBudgetStatus\022\032\n\022o" + "bservedGeneration\030\001 \001(\003\022^\n\rdisruptedPods" + "\030\002 \003(\0132G.k8s.io.api.policy.v1beta1.PodDi" + "sruptionBudgetStatus.DisruptedPodsEntry\022" + "\032\n\022disruptionsAllowed\030\003 \001(\005\022\026\n\016currentHe" + "althy\030\004 \001(\005\022\026\n\016desiredHealthy\030\005 \001(\005\022\024\n\014e" + "xpectedPods\030\006 \001(\005\022C\n\nconditions\030\007 \003(\0132/." + "k8s.io.apimachinery.pkg.apis.meta.v1.Con" + "dition\032`\n\022DisruptedPodsEntry\022\013\n\003key\030\001 \001(" + "\t\0229\n\005value\030\002 \001(\0132*.k8s.io.apimachinery.p" + "kg.apis.meta.v1.Time:\0028\001\"\227\001\n\021PodSecurity" + "Policy\022B\n\010metadata\030\001 \001(\01320.k8s.io.apimac" + "hinery.pkg.apis.meta.v1.ObjectMeta\022>\n\004sp" + "ec\030\002 \001(\01320.k8s.io.api.policy.v1beta1.Pod" + "SecurityPolicySpec\"\226\001\n\025PodSecurityPolicy" + "List\022@\n\010metadata\030\001 \001(\0132..k8s.io.apimachi" + "nery.pkg.apis.meta.v1.ListMeta\022;\n\005items\030" + "\002 \003(\0132,.k8s.io.api.policy.v1beta1.PodSec" + "urityPolicy\"\353\010\n\025PodSecurityPolicySpec\022\022\n" + "\nprivileged\030\001 \001(\010\022\036\n\026defaultAddCapabilit" + "ies\030\002 \003(\t\022 \n\030requiredDropCapabilities\030\003 " + "\003(\t\022\033\n\023allowedCapabilities\030\004 \003(\t\022\017\n\007volu" + "mes\030\005 \003(\t\022\023\n\013hostNetwork\030\006 \001(\010\022;\n\thostPo" + "rts\030\007 \003(\0132(.k8s.io.api.policy.v1beta1.Ho" + "stPortRange\022\017\n\007hostPID\030\010 \001(\010\022\017\n\007hostIPC\030" + "\t \001(\010\022B\n\007seLinux\030\n \001(\01321.k8s.io.api.poli" + "cy.v1beta1.SELinuxStrategyOptions\022F\n\trun" + "AsUser\030\013 \001(\01323.k8s.io.api.policy.v1beta1" + ".RunAsUserStrategyOptions\022H\n\nrunAsGroup\030" + "\026 \001(\01324.k8s.io.api.policy.v1beta1.RunAsG" + "roupStrategyOptions\022X\n\022supplementalGroup" + "s\030\014 \001(\0132<.k8s.io.api.policy.v1beta1.Supp" + "lementalGroupsStrategyOptions\022B\n\007fsGroup" + "\030\r \001(\01321.k8s.io.api.policy.v1beta1.FSGro" + "upStrategyOptions\022\036\n\026readOnlyRootFilesys" + "tem\030\016 \001(\010\022\'\n\037defaultAllowPrivilegeEscala" + "tion\030\017 \001(\010\022 \n\030allowPrivilegeEscalation\030\020" + " \001(\010\022D\n\020allowedHostPaths\030\021 \003(\0132*.k8s.io." + "api.policy.v1beta1.AllowedHostPath\022H\n\022al" + "lowedFlexVolumes\030\022 \003(\0132,.k8s.io.api.poli" + "cy.v1beta1.AllowedFlexVolume\022F\n\021allowedC" + "SIDrivers\030\027 \003(\0132+.k8s.io.api.policy.v1be" + "ta1.AllowedCSIDriver\022\034\n\024allowedUnsafeSys" + "ctls\030\023 \003(\t\022\030\n\020forbiddenSysctls\030\024 \003(\t\022\035\n\025" + "allowedProcMountTypes\030\025 \003(\t\022L\n\014runtimeCl" + "ass\030\030 \001(\01326.k8s.io.api.policy.v1beta1.Ru" + "ntimeClassStrategyOptions\"]\n\031RunAsGroupS" + "trategyOptions\022\014\n\004rule\030\001 \001(\t\0222\n\006ranges\030\002" + " \003(\0132\".k8s.io.api.policy.v1beta1.IDRange" + "\"\\\n\030RunAsUserStrategyOptions\022\014\n\004rule\030\001 \001" + "(\t\0222\n\006ranges\030\002 \003(\0132\".k8s.io.api.policy.v" + "1beta1.IDRange\"`\n\033RuntimeClassStrategyOp" + "tions\022 \n\030allowedRuntimeClassNames\030\001 \003(\t\022" + "\037\n\027defaultRuntimeClassName\030\002 \001(\t\"b\n\026SELi" + "nuxStrategyOptions\022\014\n\004rule\030\001 \001(\t\022:\n\016seLi" + "nuxOptions\030\002 \001(\0132\".k8s.io.api.core.v1.SE" + "LinuxOptions\"e\n!SupplementalGroupsStrate" + "gyOptions\022\014\n\004rule\030\001 \001(\t\0222\n\006ranges\030\002 \003(\0132" + "\".k8s.io.api.policy.v1beta1.IDRangeB4\n\032i" + "o.kubernetes.client.protoB\rV1beta1Policy" + "Z\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.V1.getDescriptor(), io.kubernetes.client.proto.Meta.getDescriptor(), io.kubernetes.client.proto.Runtime.getDescriptor(), io.kubernetes.client.proto.RuntimeSchema.getDescriptor(), io.kubernetes.client.proto.IntStr.getDescriptor(), }, assigner); internal_static_k8s_io_api_policy_v1beta1_AllowedCSIDriver_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_k8s_io_api_policy_v1beta1_AllowedCSIDriver_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_policy_v1beta1_AllowedCSIDriver_descriptor, new java.lang.String[] { "Name", }); internal_static_k8s_io_api_policy_v1beta1_AllowedFlexVolume_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_k8s_io_api_policy_v1beta1_AllowedFlexVolume_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_policy_v1beta1_AllowedFlexVolume_descriptor, new java.lang.String[] { "Driver", }); internal_static_k8s_io_api_policy_v1beta1_AllowedHostPath_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_k8s_io_api_policy_v1beta1_AllowedHostPath_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_policy_v1beta1_AllowedHostPath_descriptor, new java.lang.String[] { "PathPrefix", "ReadOnly", }); internal_static_k8s_io_api_policy_v1beta1_Eviction_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_k8s_io_api_policy_v1beta1_Eviction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_policy_v1beta1_Eviction_descriptor, new java.lang.String[] { "Metadata", "DeleteOptions", }); internal_static_k8s_io_api_policy_v1beta1_FSGroupStrategyOptions_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_k8s_io_api_policy_v1beta1_FSGroupStrategyOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_policy_v1beta1_FSGroupStrategyOptions_descriptor, new java.lang.String[] { "Rule", "Ranges", }); internal_static_k8s_io_api_policy_v1beta1_HostPortRange_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_k8s_io_api_policy_v1beta1_HostPortRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_policy_v1beta1_HostPortRange_descriptor, new java.lang.String[] { "Min", "Max", }); internal_static_k8s_io_api_policy_v1beta1_IDRange_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_k8s_io_api_policy_v1beta1_IDRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_policy_v1beta1_IDRange_descriptor, new java.lang.String[] { "Min", "Max", }); internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudget_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudget_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudget_descriptor, new java.lang.String[] { "Metadata", "Spec", "Status", }); internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudgetList_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudgetList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudgetList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudgetSpec_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudgetSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudgetSpec_descriptor, new java.lang.String[] { "MinAvailable", "Selector", "MaxUnavailable", }); internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudgetStatus_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudgetStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudgetStatus_descriptor, new java.lang.String[] { "ObservedGeneration", "DisruptedPods", "DisruptionsAllowed", "CurrentHealthy", "DesiredHealthy", "ExpectedPods", "Conditions", }); internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudgetStatus_DisruptedPodsEntry_descriptor = internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudgetStatus_descriptor .getNestedTypes() .get(0); internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudgetStatus_DisruptedPodsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_policy_v1beta1_PodDisruptionBudgetStatus_DisruptedPodsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_policy_v1beta1_PodSecurityPolicy_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_k8s_io_api_policy_v1beta1_PodSecurityPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_policy_v1beta1_PodSecurityPolicy_descriptor, new java.lang.String[] { "Metadata", "Spec", }); internal_static_k8s_io_api_policy_v1beta1_PodSecurityPolicyList_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_k8s_io_api_policy_v1beta1_PodSecurityPolicyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_policy_v1beta1_PodSecurityPolicyList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_policy_v1beta1_PodSecurityPolicySpec_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_k8s_io_api_policy_v1beta1_PodSecurityPolicySpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_policy_v1beta1_PodSecurityPolicySpec_descriptor, new java.lang.String[] { "Privileged", "DefaultAddCapabilities", "RequiredDropCapabilities", "AllowedCapabilities", "Volumes", "HostNetwork", "HostPorts", "HostPID", "HostIPC", "SeLinux", "RunAsUser", "RunAsGroup", "SupplementalGroups", "FsGroup", "ReadOnlyRootFilesystem", "DefaultAllowPrivilegeEscalation", "AllowPrivilegeEscalation", "AllowedHostPaths", "AllowedFlexVolumes", "AllowedCSIDrivers", "AllowedUnsafeSysctls", "ForbiddenSysctls", "AllowedProcMountTypes", "RuntimeClass", }); internal_static_k8s_io_api_policy_v1beta1_RunAsGroupStrategyOptions_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_k8s_io_api_policy_v1beta1_RunAsGroupStrategyOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_policy_v1beta1_RunAsGroupStrategyOptions_descriptor, new java.lang.String[] { "Rule", "Ranges", }); internal_static_k8s_io_api_policy_v1beta1_RunAsUserStrategyOptions_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_k8s_io_api_policy_v1beta1_RunAsUserStrategyOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_policy_v1beta1_RunAsUserStrategyOptions_descriptor, new java.lang.String[] { "Rule", "Ranges", }); internal_static_k8s_io_api_policy_v1beta1_RuntimeClassStrategyOptions_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_k8s_io_api_policy_v1beta1_RuntimeClassStrategyOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_policy_v1beta1_RuntimeClassStrategyOptions_descriptor, new java.lang.String[] { "AllowedRuntimeClassNames", "DefaultRuntimeClassName", }); internal_static_k8s_io_api_policy_v1beta1_SELinuxStrategyOptions_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_k8s_io_api_policy_v1beta1_SELinuxStrategyOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_policy_v1beta1_SELinuxStrategyOptions_descriptor, new java.lang.String[] { "Rule", "SeLinuxOptions", }); internal_static_k8s_io_api_policy_v1beta1_SupplementalGroupsStrategyOptions_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_k8s_io_api_policy_v1beta1_SupplementalGroupsStrategyOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_policy_v1beta1_SupplementalGroupsStrategyOptions_descriptor, new java.lang.String[] { "Rule", "Ranges", }); io.kubernetes.client.proto.V1.getDescriptor(); io.kubernetes.client.proto.Meta.getDescriptor(); io.kubernetes.client.proto.Runtime.getDescriptor(); io.kubernetes.client.proto.RuntimeSchema.getDescriptor(); io.kubernetes.client.proto.IntStr.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy