diff --git a/proto/README.md b/proto/README.md
new file mode 100644
index 0000000000..13d9a4388c
--- /dev/null
+++ b/proto/README.md
@@ -0,0 +1,7 @@
+# Generating proto files
+
+```sh
+git clone https://github.com/kubernetes-client/gen
+cd gen/proto
+./generate.sh java ${PATH_TO_JAVA_CLIENT_ROOT}/java/proto/src/main/java/
+`````````````````````````````````
diff --git a/proto/pom.xml b/proto/pom.xml
new file mode 100644
index 0000000000..ba4ad8af6b
--- /dev/null
+++ b/proto/pom.xml
@@ -0,0 +1,47 @@
+
+ * name is the name of the group. + *+ * + *
optional string name = 1;
+ */
+ boolean hasName();
+ /**
+ * + * name is the name of the group. + *+ * + *
optional string name = 1;
+ */
+ java.lang.String getName();
+ /**
+ * + * name is the name of the group. + *+ * + *
optional string name = 1;
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+
+ /**
+ * + * versions are the versions supported in this group. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery versions = 2;
+ */
+ java.util.List+ * versions are the versions supported in this group. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery versions = 2;
+ */
+ io.kubernetes.client.proto.Generated.GroupVersionForDiscovery getVersions(int index);
+ /**
+ * + * versions are the versions supported in this group. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery versions = 2;
+ */
+ int getVersionsCount();
+ /**
+ * + * versions are the versions supported in this group. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery versions = 2;
+ */
+ java.util.List extends io.kubernetes.client.proto.Generated.GroupVersionForDiscoveryOrBuilder>
+ getVersionsOrBuilderList();
+ /**
+ * + * versions are the versions supported in this group. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery versions = 2;
+ */
+ io.kubernetes.client.proto.Generated.GroupVersionForDiscoveryOrBuilder getVersionsOrBuilder(
+ int index);
+
+ /**
+ * + * preferredVersion is the version preferred by the API server, which + * probably is the storage version. + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery preferredVersion = 3;
+ */
+ boolean hasPreferredVersion();
+ /**
+ * + * preferredVersion is the version preferred by the API server, which + * probably is the storage version. + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery preferredVersion = 3;
+ */
+ io.kubernetes.client.proto.Generated.GroupVersionForDiscovery getPreferredVersion();
+ /**
+ * + * preferredVersion is the version preferred by the API server, which + * probably is the storage version. + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery preferredVersion = 3;
+ */
+ io.kubernetes.client.proto.Generated.GroupVersionForDiscoveryOrBuilder getPreferredVersionOrBuilder();
+
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
+ */
+ java.util.List+ * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
+ */
+ io.kubernetes.client.proto.Generated.ServerAddressByClientCIDR getServerAddressByClientCIDRs(int index);
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
+ */
+ int getServerAddressByClientCIDRsCount();
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
+ */
+ java.util.List extends io.kubernetes.client.proto.Generated.ServerAddressByClientCIDROrBuilder>
+ getServerAddressByClientCIDRsOrBuilderList();
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
+ */
+ io.kubernetes.client.proto.Generated.ServerAddressByClientCIDROrBuilder getServerAddressByClientCIDRsOrBuilder(
+ int index);
+ }
+ /**
+ * + * APIGroup contains the name, the supported versions, and the preferred version + * of a group. + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup} + */ + public static final class APIGroup extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup) + APIGroupOrBuilder { + private static final long serialVersionUID = 0L; + // Use APIGroup.newBuilder() to construct. + private APIGroup(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private APIGroup() { + name_ = ""; + versions_ = java.util.Collections.emptyList(); + serverAddressByClientCIDRs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private APIGroup( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + name_ = bs; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + versions_ = new java.util.ArrayList
+ * name is the name of the group. + *+ * + *
optional string name = 1;
+ */
+ public boolean hasName() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * + * name is the name of the group. + *+ * + *
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 name of the group. + *+ * + *
optional string name = 1;
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VERSIONS_FIELD_NUMBER = 2;
+ private java.util.List+ * versions are the versions supported in this group. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery versions = 2;
+ */
+ public java.util.List+ * versions are the versions supported in this group. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery versions = 2;
+ */
+ public java.util.List extends io.kubernetes.client.proto.Generated.GroupVersionForDiscoveryOrBuilder>
+ getVersionsOrBuilderList() {
+ return versions_;
+ }
+ /**
+ * + * versions are the versions supported in this group. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery versions = 2;
+ */
+ public int getVersionsCount() {
+ return versions_.size();
+ }
+ /**
+ * + * versions are the versions supported in this group. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery versions = 2;
+ */
+ public io.kubernetes.client.proto.Generated.GroupVersionForDiscovery getVersions(int index) {
+ return versions_.get(index);
+ }
+ /**
+ * + * versions are the versions supported in this group. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery versions = 2;
+ */
+ public io.kubernetes.client.proto.Generated.GroupVersionForDiscoveryOrBuilder getVersionsOrBuilder(
+ int index) {
+ return versions_.get(index);
+ }
+
+ public static final int PREFERREDVERSION_FIELD_NUMBER = 3;
+ private io.kubernetes.client.proto.Generated.GroupVersionForDiscovery preferredVersion_;
+ /**
+ * + * preferredVersion is the version preferred by the API server, which + * probably is the storage version. + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery preferredVersion = 3;
+ */
+ public boolean hasPreferredVersion() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * + * preferredVersion is the version preferred by the API server, which + * probably is the storage version. + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery preferredVersion = 3;
+ */
+ public io.kubernetes.client.proto.Generated.GroupVersionForDiscovery getPreferredVersion() {
+ return preferredVersion_ == null ? io.kubernetes.client.proto.Generated.GroupVersionForDiscovery.getDefaultInstance() : preferredVersion_;
+ }
+ /**
+ * + * preferredVersion is the version preferred by the API server, which + * probably is the storage version. + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery preferredVersion = 3;
+ */
+ public io.kubernetes.client.proto.Generated.GroupVersionForDiscoveryOrBuilder getPreferredVersionOrBuilder() {
+ return preferredVersion_ == null ? io.kubernetes.client.proto.Generated.GroupVersionForDiscovery.getDefaultInstance() : preferredVersion_;
+ }
+
+ public static final int SERVERADDRESSBYCLIENTCIDRS_FIELD_NUMBER = 4;
+ private java.util.List+ * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
+ */
+ public java.util.List+ * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
+ */
+ public java.util.List extends io.kubernetes.client.proto.Generated.ServerAddressByClientCIDROrBuilder>
+ getServerAddressByClientCIDRsOrBuilderList() {
+ return serverAddressByClientCIDRs_;
+ }
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
+ */
+ public int getServerAddressByClientCIDRsCount() {
+ return serverAddressByClientCIDRs_.size();
+ }
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
+ */
+ public io.kubernetes.client.proto.Generated.ServerAddressByClientCIDR getServerAddressByClientCIDRs(int index) {
+ return serverAddressByClientCIDRs_.get(index);
+ }
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
+ */
+ public io.kubernetes.client.proto.Generated.ServerAddressByClientCIDROrBuilder getServerAddressByClientCIDRsOrBuilder(
+ int index) {
+ return serverAddressByClientCIDRs_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ for (int i = 0; i < versions_.size(); i++) {
+ output.writeMessage(2, versions_.get(i));
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeMessage(3, getPreferredVersion());
+ }
+ for (int i = 0; i < serverAddressByClientCIDRs_.size(); i++) {
+ output.writeMessage(4, serverAddressByClientCIDRs_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ 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_);
+ }
+ for (int i = 0; i < versions_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, versions_.get(i));
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, getPreferredVersion());
+ }
+ for (int i = 0; i < serverAddressByClientCIDRs_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(4, serverAddressByClientCIDRs_.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.Generated.APIGroup)) {
+ return super.equals(obj);
+ }
+ io.kubernetes.client.proto.Generated.APIGroup other = (io.kubernetes.client.proto.Generated.APIGroup) obj;
+
+ boolean result = true;
+ result = result && (hasName() == other.hasName());
+ if (hasName()) {
+ result = result && getName()
+ .equals(other.getName());
+ }
+ result = result && getVersionsList()
+ .equals(other.getVersionsList());
+ result = result && (hasPreferredVersion() == other.hasPreferredVersion());
+ if (hasPreferredVersion()) {
+ result = result && getPreferredVersion()
+ .equals(other.getPreferredVersion());
+ }
+ result = result && getServerAddressByClientCIDRsList()
+ .equals(other.getServerAddressByClientCIDRsList());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasName()) {
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ }
+ if (getVersionsCount() > 0) {
+ hash = (37 * hash) + VERSIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getVersionsList().hashCode();
+ }
+ if (hasPreferredVersion()) {
+ hash = (37 * hash) + PREFERREDVERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getPreferredVersion().hashCode();
+ }
+ if (getServerAddressByClientCIDRsCount() > 0) {
+ hash = (37 * hash) + SERVERADDRESSBYCLIENTCIDRS_FIELD_NUMBER;
+ hash = (53 * hash) + getServerAddressByClientCIDRsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.kubernetes.client.proto.Generated.APIGroup parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.APIGroup 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.Generated.APIGroup parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.APIGroup 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.Generated.APIGroup parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.APIGroup parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.kubernetes.client.proto.Generated.APIGroup parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.APIGroup 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.Generated.APIGroup parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.APIGroup 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.Generated.APIGroup parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.APIGroup parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.kubernetes.client.proto.Generated.APIGroup prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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;
+ }
+ /**
+ * + * APIGroup contains the name, the supported versions, and the preferred version + * of a group. + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * name is the name of the group. + *+ * + *
optional string name = 1;
+ */
+ public boolean hasName() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * + * name is the name of the group. + *+ * + *
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 name of the group. + *+ * + *
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 name of the group. + *+ * + *
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 name of the group. + *+ * + *
optional string name = 1;
+ */
+ public Builder clearName() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * name is the name of the group. + *+ * + *
optional string name = 1;
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List+ * versions are the versions supported in this group. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery versions = 2;
+ */
+ public java.util.List+ * versions are the versions supported in this group. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery versions = 2;
+ */
+ public int getVersionsCount() {
+ if (versionsBuilder_ == null) {
+ return versions_.size();
+ } else {
+ return versionsBuilder_.getCount();
+ }
+ }
+ /**
+ * + * versions are the versions supported in this group. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery versions = 2;
+ */
+ public io.kubernetes.client.proto.Generated.GroupVersionForDiscovery getVersions(int index) {
+ if (versionsBuilder_ == null) {
+ return versions_.get(index);
+ } else {
+ return versionsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * + * versions are the versions supported in this group. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery versions = 2;
+ */
+ public Builder setVersions(
+ int index, io.kubernetes.client.proto.Generated.GroupVersionForDiscovery value) {
+ if (versionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureVersionsIsMutable();
+ versions_.set(index, value);
+ onChanged();
+ } else {
+ versionsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * versions are the versions supported in this group. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery versions = 2;
+ */
+ public Builder setVersions(
+ int index, io.kubernetes.client.proto.Generated.GroupVersionForDiscovery.Builder builderForValue) {
+ if (versionsBuilder_ == null) {
+ ensureVersionsIsMutable();
+ versions_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ versionsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * versions are the versions supported in this group. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery versions = 2;
+ */
+ public Builder addVersions(io.kubernetes.client.proto.Generated.GroupVersionForDiscovery value) {
+ if (versionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureVersionsIsMutable();
+ versions_.add(value);
+ onChanged();
+ } else {
+ versionsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * + * versions are the versions supported in this group. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery versions = 2;
+ */
+ public Builder addVersions(
+ int index, io.kubernetes.client.proto.Generated.GroupVersionForDiscovery value) {
+ if (versionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureVersionsIsMutable();
+ versions_.add(index, value);
+ onChanged();
+ } else {
+ versionsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * versions are the versions supported in this group. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery versions = 2;
+ */
+ public Builder addVersions(
+ io.kubernetes.client.proto.Generated.GroupVersionForDiscovery.Builder builderForValue) {
+ if (versionsBuilder_ == null) {
+ ensureVersionsIsMutable();
+ versions_.add(builderForValue.build());
+ onChanged();
+ } else {
+ versionsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * versions are the versions supported in this group. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery versions = 2;
+ */
+ public Builder addVersions(
+ int index, io.kubernetes.client.proto.Generated.GroupVersionForDiscovery.Builder builderForValue) {
+ if (versionsBuilder_ == null) {
+ ensureVersionsIsMutable();
+ versions_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ versionsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * versions are the versions supported in this group. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery versions = 2;
+ */
+ public Builder addAllVersions(
+ java.lang.Iterable extends io.kubernetes.client.proto.Generated.GroupVersionForDiscovery> values) {
+ if (versionsBuilder_ == null) {
+ ensureVersionsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, versions_);
+ onChanged();
+ } else {
+ versionsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * + * versions are the versions supported in this group. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery versions = 2;
+ */
+ public Builder clearVersions() {
+ if (versionsBuilder_ == null) {
+ versions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ versionsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * + * versions are the versions supported in this group. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery versions = 2;
+ */
+ public Builder removeVersions(int index) {
+ if (versionsBuilder_ == null) {
+ ensureVersionsIsMutable();
+ versions_.remove(index);
+ onChanged();
+ } else {
+ versionsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * + * versions are the versions supported in this group. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery versions = 2;
+ */
+ public io.kubernetes.client.proto.Generated.GroupVersionForDiscovery.Builder getVersionsBuilder(
+ int index) {
+ return getVersionsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * + * versions are the versions supported in this group. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery versions = 2;
+ */
+ public io.kubernetes.client.proto.Generated.GroupVersionForDiscoveryOrBuilder getVersionsOrBuilder(
+ int index) {
+ if (versionsBuilder_ == null) {
+ return versions_.get(index); } else {
+ return versionsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * + * versions are the versions supported in this group. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery versions = 2;
+ */
+ public java.util.List extends io.kubernetes.client.proto.Generated.GroupVersionForDiscoveryOrBuilder>
+ getVersionsOrBuilderList() {
+ if (versionsBuilder_ != null) {
+ return versionsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(versions_);
+ }
+ }
+ /**
+ * + * versions are the versions supported in this group. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery versions = 2;
+ */
+ public io.kubernetes.client.proto.Generated.GroupVersionForDiscovery.Builder addVersionsBuilder() {
+ return getVersionsFieldBuilder().addBuilder(
+ io.kubernetes.client.proto.Generated.GroupVersionForDiscovery.getDefaultInstance());
+ }
+ /**
+ * + * versions are the versions supported in this group. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery versions = 2;
+ */
+ public io.kubernetes.client.proto.Generated.GroupVersionForDiscovery.Builder addVersionsBuilder(
+ int index) {
+ return getVersionsFieldBuilder().addBuilder(
+ index, io.kubernetes.client.proto.Generated.GroupVersionForDiscovery.getDefaultInstance());
+ }
+ /**
+ * + * versions are the versions supported in this group. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery versions = 2;
+ */
+ public java.util.List+ * preferredVersion is the version preferred by the API server, which + * probably is the storage version. + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery preferredVersion = 3;
+ */
+ public boolean hasPreferredVersion() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * + * preferredVersion is the version preferred by the API server, which + * probably is the storage version. + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery preferredVersion = 3;
+ */
+ public io.kubernetes.client.proto.Generated.GroupVersionForDiscovery getPreferredVersion() {
+ if (preferredVersionBuilder_ == null) {
+ return preferredVersion_ == null ? io.kubernetes.client.proto.Generated.GroupVersionForDiscovery.getDefaultInstance() : preferredVersion_;
+ } else {
+ return preferredVersionBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * preferredVersion is the version preferred by the API server, which + * probably is the storage version. + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery preferredVersion = 3;
+ */
+ public Builder setPreferredVersion(io.kubernetes.client.proto.Generated.GroupVersionForDiscovery value) {
+ if (preferredVersionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ preferredVersion_ = value;
+ onChanged();
+ } else {
+ preferredVersionBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ return this;
+ }
+ /**
+ * + * preferredVersion is the version preferred by the API server, which + * probably is the storage version. + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery preferredVersion = 3;
+ */
+ public Builder setPreferredVersion(
+ io.kubernetes.client.proto.Generated.GroupVersionForDiscovery.Builder builderForValue) {
+ if (preferredVersionBuilder_ == null) {
+ preferredVersion_ = builderForValue.build();
+ onChanged();
+ } else {
+ preferredVersionBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ return this;
+ }
+ /**
+ * + * preferredVersion is the version preferred by the API server, which + * probably is the storage version. + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery preferredVersion = 3;
+ */
+ public Builder mergePreferredVersion(io.kubernetes.client.proto.Generated.GroupVersionForDiscovery value) {
+ if (preferredVersionBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) == 0x00000004) &&
+ preferredVersion_ != null &&
+ preferredVersion_ != io.kubernetes.client.proto.Generated.GroupVersionForDiscovery.getDefaultInstance()) {
+ preferredVersion_ =
+ io.kubernetes.client.proto.Generated.GroupVersionForDiscovery.newBuilder(preferredVersion_).mergeFrom(value).buildPartial();
+ } else {
+ preferredVersion_ = value;
+ }
+ onChanged();
+ } else {
+ preferredVersionBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000004;
+ return this;
+ }
+ /**
+ * + * preferredVersion is the version preferred by the API server, which + * probably is the storage version. + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery preferredVersion = 3;
+ */
+ public Builder clearPreferredVersion() {
+ if (preferredVersionBuilder_ == null) {
+ preferredVersion_ = null;
+ onChanged();
+ } else {
+ preferredVersionBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000004);
+ return this;
+ }
+ /**
+ * + * preferredVersion is the version preferred by the API server, which + * probably is the storage version. + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery preferredVersion = 3;
+ */
+ public io.kubernetes.client.proto.Generated.GroupVersionForDiscovery.Builder getPreferredVersionBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getPreferredVersionFieldBuilder().getBuilder();
+ }
+ /**
+ * + * preferredVersion is the version preferred by the API server, which + * probably is the storage version. + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery preferredVersion = 3;
+ */
+ public io.kubernetes.client.proto.Generated.GroupVersionForDiscoveryOrBuilder getPreferredVersionOrBuilder() {
+ if (preferredVersionBuilder_ != null) {
+ return preferredVersionBuilder_.getMessageOrBuilder();
+ } else {
+ return preferredVersion_ == null ?
+ io.kubernetes.client.proto.Generated.GroupVersionForDiscovery.getDefaultInstance() : preferredVersion_;
+ }
+ }
+ /**
+ * + * preferredVersion is the version preferred by the API server, which + * probably is the storage version. + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery preferredVersion = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.kubernetes.client.proto.Generated.GroupVersionForDiscovery, io.kubernetes.client.proto.Generated.GroupVersionForDiscovery.Builder, io.kubernetes.client.proto.Generated.GroupVersionForDiscoveryOrBuilder>
+ getPreferredVersionFieldBuilder() {
+ if (preferredVersionBuilder_ == null) {
+ preferredVersionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.kubernetes.client.proto.Generated.GroupVersionForDiscovery, io.kubernetes.client.proto.Generated.GroupVersionForDiscovery.Builder, io.kubernetes.client.proto.Generated.GroupVersionForDiscoveryOrBuilder>(
+ getPreferredVersion(),
+ getParentForChildren(),
+ isClean());
+ preferredVersion_ = null;
+ }
+ return preferredVersionBuilder_;
+ }
+
+ private java.util.List+ * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
+ */
+ public java.util.List+ * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
+ */
+ public int getServerAddressByClientCIDRsCount() {
+ if (serverAddressByClientCIDRsBuilder_ == null) {
+ return serverAddressByClientCIDRs_.size();
+ } else {
+ return serverAddressByClientCIDRsBuilder_.getCount();
+ }
+ }
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
+ */
+ public io.kubernetes.client.proto.Generated.ServerAddressByClientCIDR getServerAddressByClientCIDRs(int index) {
+ if (serverAddressByClientCIDRsBuilder_ == null) {
+ return serverAddressByClientCIDRs_.get(index);
+ } else {
+ return serverAddressByClientCIDRsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
+ */
+ public Builder setServerAddressByClientCIDRs(
+ int index, io.kubernetes.client.proto.Generated.ServerAddressByClientCIDR value) {
+ if (serverAddressByClientCIDRsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureServerAddressByClientCIDRsIsMutable();
+ serverAddressByClientCIDRs_.set(index, value);
+ onChanged();
+ } else {
+ serverAddressByClientCIDRsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
+ */
+ public Builder setServerAddressByClientCIDRs(
+ int index, io.kubernetes.client.proto.Generated.ServerAddressByClientCIDR.Builder builderForValue) {
+ if (serverAddressByClientCIDRsBuilder_ == null) {
+ ensureServerAddressByClientCIDRsIsMutable();
+ serverAddressByClientCIDRs_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ serverAddressByClientCIDRsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
+ */
+ public Builder addServerAddressByClientCIDRs(io.kubernetes.client.proto.Generated.ServerAddressByClientCIDR value) {
+ if (serverAddressByClientCIDRsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureServerAddressByClientCIDRsIsMutable();
+ serverAddressByClientCIDRs_.add(value);
+ onChanged();
+ } else {
+ serverAddressByClientCIDRsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
+ */
+ public Builder addServerAddressByClientCIDRs(
+ int index, io.kubernetes.client.proto.Generated.ServerAddressByClientCIDR value) {
+ if (serverAddressByClientCIDRsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureServerAddressByClientCIDRsIsMutable();
+ serverAddressByClientCIDRs_.add(index, value);
+ onChanged();
+ } else {
+ serverAddressByClientCIDRsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
+ */
+ public Builder addServerAddressByClientCIDRs(
+ io.kubernetes.client.proto.Generated.ServerAddressByClientCIDR.Builder builderForValue) {
+ if (serverAddressByClientCIDRsBuilder_ == null) {
+ ensureServerAddressByClientCIDRsIsMutable();
+ serverAddressByClientCIDRs_.add(builderForValue.build());
+ onChanged();
+ } else {
+ serverAddressByClientCIDRsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
+ */
+ public Builder addServerAddressByClientCIDRs(
+ int index, io.kubernetes.client.proto.Generated.ServerAddressByClientCIDR.Builder builderForValue) {
+ if (serverAddressByClientCIDRsBuilder_ == null) {
+ ensureServerAddressByClientCIDRsIsMutable();
+ serverAddressByClientCIDRs_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ serverAddressByClientCIDRsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
+ */
+ public Builder addAllServerAddressByClientCIDRs(
+ java.lang.Iterable extends io.kubernetes.client.proto.Generated.ServerAddressByClientCIDR> values) {
+ if (serverAddressByClientCIDRsBuilder_ == null) {
+ ensureServerAddressByClientCIDRsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, serverAddressByClientCIDRs_);
+ onChanged();
+ } else {
+ serverAddressByClientCIDRsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
+ */
+ public Builder clearServerAddressByClientCIDRs() {
+ if (serverAddressByClientCIDRsBuilder_ == null) {
+ serverAddressByClientCIDRs_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ } else {
+ serverAddressByClientCIDRsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
+ */
+ public Builder removeServerAddressByClientCIDRs(int index) {
+ if (serverAddressByClientCIDRsBuilder_ == null) {
+ ensureServerAddressByClientCIDRsIsMutable();
+ serverAddressByClientCIDRs_.remove(index);
+ onChanged();
+ } else {
+ serverAddressByClientCIDRsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
+ */
+ public io.kubernetes.client.proto.Generated.ServerAddressByClientCIDR.Builder getServerAddressByClientCIDRsBuilder(
+ int index) {
+ return getServerAddressByClientCIDRsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
+ */
+ public io.kubernetes.client.proto.Generated.ServerAddressByClientCIDROrBuilder getServerAddressByClientCIDRsOrBuilder(
+ int index) {
+ if (serverAddressByClientCIDRsBuilder_ == null) {
+ return serverAddressByClientCIDRs_.get(index); } else {
+ return serverAddressByClientCIDRsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
+ */
+ public java.util.List extends io.kubernetes.client.proto.Generated.ServerAddressByClientCIDROrBuilder>
+ getServerAddressByClientCIDRsOrBuilderList() {
+ if (serverAddressByClientCIDRsBuilder_ != null) {
+ return serverAddressByClientCIDRsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(serverAddressByClientCIDRs_);
+ }
+ }
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
+ */
+ public io.kubernetes.client.proto.Generated.ServerAddressByClientCIDR.Builder addServerAddressByClientCIDRsBuilder() {
+ return getServerAddressByClientCIDRsFieldBuilder().addBuilder(
+ io.kubernetes.client.proto.Generated.ServerAddressByClientCIDR.getDefaultInstance());
+ }
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
+ */
+ public io.kubernetes.client.proto.Generated.ServerAddressByClientCIDR.Builder addServerAddressByClientCIDRsBuilder(
+ int index) {
+ return getServerAddressByClientCIDRsFieldBuilder().addBuilder(
+ index, io.kubernetes.client.proto.Generated.ServerAddressByClientCIDR.getDefaultInstance());
+ }
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
+ */
+ public java.util.List+ * groups is a list of APIGroup. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup groups = 1;
+ */
+ java.util.List+ * groups is a list of APIGroup. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup groups = 1;
+ */
+ io.kubernetes.client.proto.Generated.APIGroup getGroups(int index);
+ /**
+ * + * groups is a list of APIGroup. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup groups = 1;
+ */
+ int getGroupsCount();
+ /**
+ * + * groups is a list of APIGroup. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup groups = 1;
+ */
+ java.util.List extends io.kubernetes.client.proto.Generated.APIGroupOrBuilder>
+ getGroupsOrBuilderList();
+ /**
+ * + * groups is a list of APIGroup. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup groups = 1;
+ */
+ io.kubernetes.client.proto.Generated.APIGroupOrBuilder getGroupsOrBuilder(
+ int index);
+ }
+ /**
+ * + * APIGroupList is a list of APIGroup, to allow clients to discover the API at + * /apis. + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.APIGroupList} + */ + public static final class APIGroupList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.APIGroupList) + APIGroupListOrBuilder { + private static final long serialVersionUID = 0L; + // Use APIGroupList.newBuilder() to construct. + private APIGroupList(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private APIGroupList() { + groups_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private APIGroupList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + groups_ = new java.util.ArrayList
+ * groups is a list of APIGroup. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup groups = 1;
+ */
+ public java.util.List+ * groups is a list of APIGroup. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup groups = 1;
+ */
+ public java.util.List extends io.kubernetes.client.proto.Generated.APIGroupOrBuilder>
+ getGroupsOrBuilderList() {
+ return groups_;
+ }
+ /**
+ * + * groups is a list of APIGroup. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup groups = 1;
+ */
+ public int getGroupsCount() {
+ return groups_.size();
+ }
+ /**
+ * + * groups is a list of APIGroup. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup groups = 1;
+ */
+ public io.kubernetes.client.proto.Generated.APIGroup getGroups(int index) {
+ return groups_.get(index);
+ }
+ /**
+ * + * groups is a list of APIGroup. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup groups = 1;
+ */
+ public io.kubernetes.client.proto.Generated.APIGroupOrBuilder getGroupsOrBuilder(
+ int index) {
+ return groups_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < groups_.size(); i++) {
+ output.writeMessage(1, groups_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < groups_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, groups_.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.Generated.APIGroupList)) {
+ return super.equals(obj);
+ }
+ io.kubernetes.client.proto.Generated.APIGroupList other = (io.kubernetes.client.proto.Generated.APIGroupList) obj;
+
+ boolean result = true;
+ result = result && getGroupsList()
+ .equals(other.getGroupsList());
+ 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 (getGroupsCount() > 0) {
+ hash = (37 * hash) + GROUPS_FIELD_NUMBER;
+ hash = (53 * hash) + getGroupsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.kubernetes.client.proto.Generated.APIGroupList parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.APIGroupList 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.Generated.APIGroupList parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.APIGroupList 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.Generated.APIGroupList parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.APIGroupList parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.kubernetes.client.proto.Generated.APIGroupList parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.APIGroupList 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.Generated.APIGroupList parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.APIGroupList 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.Generated.APIGroupList parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.APIGroupList parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.kubernetes.client.proto.Generated.APIGroupList prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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;
+ }
+ /**
+ * + * APIGroupList is a list of APIGroup, to allow clients to discover the API at + * /apis. + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.APIGroupList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * groups is a list of APIGroup. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup groups = 1;
+ */
+ public java.util.List+ * groups is a list of APIGroup. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup groups = 1;
+ */
+ public int getGroupsCount() {
+ if (groupsBuilder_ == null) {
+ return groups_.size();
+ } else {
+ return groupsBuilder_.getCount();
+ }
+ }
+ /**
+ * + * groups is a list of APIGroup. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup groups = 1;
+ */
+ public io.kubernetes.client.proto.Generated.APIGroup getGroups(int index) {
+ if (groupsBuilder_ == null) {
+ return groups_.get(index);
+ } else {
+ return groupsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * + * groups is a list of APIGroup. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup groups = 1;
+ */
+ public Builder setGroups(
+ int index, io.kubernetes.client.proto.Generated.APIGroup value) {
+ if (groupsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureGroupsIsMutable();
+ groups_.set(index, value);
+ onChanged();
+ } else {
+ groupsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * groups is a list of APIGroup. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup groups = 1;
+ */
+ public Builder setGroups(
+ int index, io.kubernetes.client.proto.Generated.APIGroup.Builder builderForValue) {
+ if (groupsBuilder_ == null) {
+ ensureGroupsIsMutable();
+ groups_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ groupsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * groups is a list of APIGroup. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup groups = 1;
+ */
+ public Builder addGroups(io.kubernetes.client.proto.Generated.APIGroup value) {
+ if (groupsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureGroupsIsMutable();
+ groups_.add(value);
+ onChanged();
+ } else {
+ groupsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * + * groups is a list of APIGroup. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup groups = 1;
+ */
+ public Builder addGroups(
+ int index, io.kubernetes.client.proto.Generated.APIGroup value) {
+ if (groupsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureGroupsIsMutable();
+ groups_.add(index, value);
+ onChanged();
+ } else {
+ groupsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * groups is a list of APIGroup. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup groups = 1;
+ */
+ public Builder addGroups(
+ io.kubernetes.client.proto.Generated.APIGroup.Builder builderForValue) {
+ if (groupsBuilder_ == null) {
+ ensureGroupsIsMutable();
+ groups_.add(builderForValue.build());
+ onChanged();
+ } else {
+ groupsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * groups is a list of APIGroup. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup groups = 1;
+ */
+ public Builder addGroups(
+ int index, io.kubernetes.client.proto.Generated.APIGroup.Builder builderForValue) {
+ if (groupsBuilder_ == null) {
+ ensureGroupsIsMutable();
+ groups_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ groupsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * groups is a list of APIGroup. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup groups = 1;
+ */
+ public Builder addAllGroups(
+ java.lang.Iterable extends io.kubernetes.client.proto.Generated.APIGroup> values) {
+ if (groupsBuilder_ == null) {
+ ensureGroupsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, groups_);
+ onChanged();
+ } else {
+ groupsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * + * groups is a list of APIGroup. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup groups = 1;
+ */
+ public Builder clearGroups() {
+ if (groupsBuilder_ == null) {
+ groups_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ groupsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * + * groups is a list of APIGroup. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup groups = 1;
+ */
+ public Builder removeGroups(int index) {
+ if (groupsBuilder_ == null) {
+ ensureGroupsIsMutable();
+ groups_.remove(index);
+ onChanged();
+ } else {
+ groupsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * + * groups is a list of APIGroup. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup groups = 1;
+ */
+ public io.kubernetes.client.proto.Generated.APIGroup.Builder getGroupsBuilder(
+ int index) {
+ return getGroupsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * + * groups is a list of APIGroup. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup groups = 1;
+ */
+ public io.kubernetes.client.proto.Generated.APIGroupOrBuilder getGroupsOrBuilder(
+ int index) {
+ if (groupsBuilder_ == null) {
+ return groups_.get(index); } else {
+ return groupsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * + * groups is a list of APIGroup. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup groups = 1;
+ */
+ public java.util.List extends io.kubernetes.client.proto.Generated.APIGroupOrBuilder>
+ getGroupsOrBuilderList() {
+ if (groupsBuilder_ != null) {
+ return groupsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(groups_);
+ }
+ }
+ /**
+ * + * groups is a list of APIGroup. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup groups = 1;
+ */
+ public io.kubernetes.client.proto.Generated.APIGroup.Builder addGroupsBuilder() {
+ return getGroupsFieldBuilder().addBuilder(
+ io.kubernetes.client.proto.Generated.APIGroup.getDefaultInstance());
+ }
+ /**
+ * + * groups is a list of APIGroup. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup groups = 1;
+ */
+ public io.kubernetes.client.proto.Generated.APIGroup.Builder addGroupsBuilder(
+ int index) {
+ return getGroupsFieldBuilder().addBuilder(
+ index, io.kubernetes.client.proto.Generated.APIGroup.getDefaultInstance());
+ }
+ /**
+ * + * groups is a list of APIGroup. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup groups = 1;
+ */
+ public java.util.List+ * name is the plural name of the resource. + *+ * + *
optional string name = 1;
+ */
+ boolean hasName();
+ /**
+ * + * name is the plural name of the resource. + *+ * + *
optional string name = 1;
+ */
+ java.lang.String getName();
+ /**
+ * + * name is the plural name of the resource. + *+ * + *
optional string name = 1;
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+
+ /**
+ * + * singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. + * The singularName is more correct for reporting status on a single item and both singular and plural are allowed + * from the kubectl CLI interface. + *+ * + *
optional string singularName = 6;
+ */
+ boolean hasSingularName();
+ /**
+ * + * singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. + * The singularName is more correct for reporting status on a single item and both singular and plural are allowed + * from the kubectl CLI interface. + *+ * + *
optional string singularName = 6;
+ */
+ java.lang.String getSingularName();
+ /**
+ * + * singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. + * The singularName is more correct for reporting status on a single item and both singular and plural are allowed + * from the kubectl CLI interface. + *+ * + *
optional string singularName = 6;
+ */
+ com.google.protobuf.ByteString
+ getSingularNameBytes();
+
+ /**
+ * + * namespaced indicates if a resource is namespaced or not. + *+ * + *
optional bool namespaced = 2;
+ */
+ boolean hasNamespaced();
+ /**
+ * + * namespaced indicates if a resource is namespaced or not. + *+ * + *
optional bool namespaced = 2;
+ */
+ boolean getNamespaced();
+
+ /**
+ * + * kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') + *+ * + *
optional string kind = 3;
+ */
+ boolean hasKind();
+ /**
+ * + * kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') + *+ * + *
optional string kind = 3;
+ */
+ java.lang.String getKind();
+ /**
+ * + * kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') + *+ * + *
optional string kind = 3;
+ */
+ com.google.protobuf.ByteString
+ getKindBytes();
+
+ /**
+ * + * verbs is a list of supported kube verbs (this includes get, list, watch, create, + * update, patch, delete, deletecollection, and proxy) + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Verbs verbs = 4;
+ */
+ boolean hasVerbs();
+ /**
+ * + * verbs is a list of supported kube verbs (this includes get, list, watch, create, + * update, patch, delete, deletecollection, and proxy) + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Verbs verbs = 4;
+ */
+ io.kubernetes.client.proto.Generated.Verbs getVerbs();
+ /**
+ * + * verbs is a list of supported kube verbs (this includes get, list, watch, create, + * update, patch, delete, deletecollection, and proxy) + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Verbs verbs = 4;
+ */
+ io.kubernetes.client.proto.Generated.VerbsOrBuilder getVerbsOrBuilder();
+
+ /**
+ * + * shortNames is a list of suggested short names of the resource. + *+ * + *
repeated string shortNames = 5;
+ */
+ java.util.List+ * shortNames is a list of suggested short names of the resource. + *+ * + *
repeated string shortNames = 5;
+ */
+ int getShortNamesCount();
+ /**
+ * + * shortNames is a list of suggested short names of the resource. + *+ * + *
repeated string shortNames = 5;
+ */
+ java.lang.String getShortNames(int index);
+ /**
+ * + * shortNames is a list of suggested short names of the resource. + *+ * + *
repeated string shortNames = 5;
+ */
+ com.google.protobuf.ByteString
+ getShortNamesBytes(int index);
+
+ /**
+ * + * categories is a list of the grouped resources this resource belongs to (e.g. 'all') + *+ * + *
repeated string categories = 7;
+ */
+ java.util.List+ * categories is a list of the grouped resources this resource belongs to (e.g. 'all') + *+ * + *
repeated string categories = 7;
+ */
+ int getCategoriesCount();
+ /**
+ * + * categories is a list of the grouped resources this resource belongs to (e.g. 'all') + *+ * + *
repeated string categories = 7;
+ */
+ java.lang.String getCategories(int index);
+ /**
+ * + * categories is a list of the grouped resources this resource belongs to (e.g. 'all') + *+ * + *
repeated string categories = 7;
+ */
+ com.google.protobuf.ByteString
+ getCategoriesBytes(int index);
+ }
+ /**
+ * + * APIResource specifies the name of a resource and whether it is namespaced. + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.APIResource} + */ + public static final class APIResource extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.APIResource) + APIResourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use APIResource.newBuilder() to construct. + private APIResource(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private APIResource() { + name_ = ""; + singularName_ = ""; + namespaced_ = false; + kind_ = ""; + shortNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + categories_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private APIResource( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + name_ = bs; + break; + } + case 16: { + bitField0_ |= 0x00000004; + namespaced_ = input.readBool(); + break; + } + case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000008; + kind_ = bs; + break; + } + case 34: { + io.kubernetes.client.proto.Generated.Verbs.Builder subBuilder = null; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + subBuilder = verbs_.toBuilder(); + } + verbs_ = input.readMessage(io.kubernetes.client.proto.Generated.Verbs.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(verbs_); + verbs_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000010; + break; + } + case 42: { + com.google.protobuf.ByteString bs = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + shortNames_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000020; + } + shortNames_.add(bs); + break; + } + case 50: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + singularName_ = bs; + break; + } + case 58: { + com.google.protobuf.ByteString bs = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + categories_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000040; + } + categories_.add(bs); + 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_ & 0x00000020) == 0x00000020)) { + shortNames_ = shortNames_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + categories_ = categories_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.Generated.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_APIResource_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.Generated.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_APIResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.Generated.APIResource.class, io.kubernetes.client.proto.Generated.APIResource.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+ * name is the plural name of the resource. + *+ * + *
optional string name = 1;
+ */
+ public boolean hasName() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * + * name is the plural name of the resource. + *+ * + *
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 plural name of the resource. + *+ * + *
optional string name = 1;
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SINGULARNAME_FIELD_NUMBER = 6;
+ private volatile java.lang.Object singularName_;
+ /**
+ * + * singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. + * The singularName is more correct for reporting status on a single item and both singular and plural are allowed + * from the kubectl CLI interface. + *+ * + *
optional string singularName = 6;
+ */
+ public boolean hasSingularName() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * + * singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. + * The singularName is more correct for reporting status on a single item and both singular and plural are allowed + * from the kubectl CLI interface. + *+ * + *
optional string singularName = 6;
+ */
+ public java.lang.String getSingularName() {
+ java.lang.Object ref = singularName_;
+ 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()) {
+ singularName_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * + * singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. + * The singularName is more correct for reporting status on a single item and both singular and plural are allowed + * from the kubectl CLI interface. + *+ * + *
optional string singularName = 6;
+ */
+ public com.google.protobuf.ByteString
+ getSingularNameBytes() {
+ java.lang.Object ref = singularName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ singularName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int NAMESPACED_FIELD_NUMBER = 2;
+ private boolean namespaced_;
+ /**
+ * + * namespaced indicates if a resource is namespaced or not. + *+ * + *
optional bool namespaced = 2;
+ */
+ public boolean hasNamespaced() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * + * namespaced indicates if a resource is namespaced or not. + *+ * + *
optional bool namespaced = 2;
+ */
+ public boolean getNamespaced() {
+ return namespaced_;
+ }
+
+ public static final int KIND_FIELD_NUMBER = 3;
+ private volatile java.lang.Object kind_;
+ /**
+ * + * kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') + *+ * + *
optional string kind = 3;
+ */
+ public boolean hasKind() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+ /**
+ * + * kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') + *+ * + *
optional string kind = 3;
+ */
+ public java.lang.String getKind() {
+ java.lang.Object ref = kind_;
+ 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()) {
+ kind_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * + * kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') + *+ * + *
optional string kind = 3;
+ */
+ public com.google.protobuf.ByteString
+ getKindBytes() {
+ java.lang.Object ref = kind_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ kind_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VERBS_FIELD_NUMBER = 4;
+ private io.kubernetes.client.proto.Generated.Verbs verbs_;
+ /**
+ * + * verbs is a list of supported kube verbs (this includes get, list, watch, create, + * update, patch, delete, deletecollection, and proxy) + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Verbs verbs = 4;
+ */
+ public boolean hasVerbs() {
+ return ((bitField0_ & 0x00000010) == 0x00000010);
+ }
+ /**
+ * + * verbs is a list of supported kube verbs (this includes get, list, watch, create, + * update, patch, delete, deletecollection, and proxy) + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Verbs verbs = 4;
+ */
+ public io.kubernetes.client.proto.Generated.Verbs getVerbs() {
+ return verbs_ == null ? io.kubernetes.client.proto.Generated.Verbs.getDefaultInstance() : verbs_;
+ }
+ /**
+ * + * verbs is a list of supported kube verbs (this includes get, list, watch, create, + * update, patch, delete, deletecollection, and proxy) + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Verbs verbs = 4;
+ */
+ public io.kubernetes.client.proto.Generated.VerbsOrBuilder getVerbsOrBuilder() {
+ return verbs_ == null ? io.kubernetes.client.proto.Generated.Verbs.getDefaultInstance() : verbs_;
+ }
+
+ public static final int SHORTNAMES_FIELD_NUMBER = 5;
+ private com.google.protobuf.LazyStringList shortNames_;
+ /**
+ * + * shortNames is a list of suggested short names of the resource. + *+ * + *
repeated string shortNames = 5;
+ */
+ public com.google.protobuf.ProtocolStringList
+ getShortNamesList() {
+ return shortNames_;
+ }
+ /**
+ * + * shortNames is a list of suggested short names of the resource. + *+ * + *
repeated string shortNames = 5;
+ */
+ public int getShortNamesCount() {
+ return shortNames_.size();
+ }
+ /**
+ * + * shortNames is a list of suggested short names of the resource. + *+ * + *
repeated string shortNames = 5;
+ */
+ public java.lang.String getShortNames(int index) {
+ return shortNames_.get(index);
+ }
+ /**
+ * + * shortNames is a list of suggested short names of the resource. + *+ * + *
repeated string shortNames = 5;
+ */
+ public com.google.protobuf.ByteString
+ getShortNamesBytes(int index) {
+ return shortNames_.getByteString(index);
+ }
+
+ public static final int CATEGORIES_FIELD_NUMBER = 7;
+ private com.google.protobuf.LazyStringList categories_;
+ /**
+ * + * categories is a list of the grouped resources this resource belongs to (e.g. 'all') + *+ * + *
repeated string categories = 7;
+ */
+ public com.google.protobuf.ProtocolStringList
+ getCategoriesList() {
+ return categories_;
+ }
+ /**
+ * + * categories is a list of the grouped resources this resource belongs to (e.g. 'all') + *+ * + *
repeated string categories = 7;
+ */
+ public int getCategoriesCount() {
+ return categories_.size();
+ }
+ /**
+ * + * categories is a list of the grouped resources this resource belongs to (e.g. 'all') + *+ * + *
repeated string categories = 7;
+ */
+ public java.lang.String getCategories(int index) {
+ return categories_.get(index);
+ }
+ /**
+ * + * categories is a list of the grouped resources this resource belongs to (e.g. 'all') + *+ * + *
repeated string categories = 7;
+ */
+ public com.google.protobuf.ByteString
+ getCategoriesBytes(int index) {
+ return categories_.getByteString(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ output.writeBool(2, namespaced_);
+ }
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, kind_);
+ }
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ output.writeMessage(4, getVerbs());
+ }
+ for (int i = 0; i < shortNames_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, shortNames_.getRaw(i));
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, singularName_);
+ }
+ for (int i = 0; i < categories_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 7, categories_.getRaw(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(2, namespaced_);
+ }
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, kind_);
+ }
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(4, getVerbs());
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < shortNames_.size(); i++) {
+ dataSize += computeStringSizeNoTag(shortNames_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getShortNamesList().size();
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, singularName_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < categories_.size(); i++) {
+ dataSize += computeStringSizeNoTag(categories_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getCategoriesList().size();
+ }
+ 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.Generated.APIResource)) {
+ return super.equals(obj);
+ }
+ io.kubernetes.client.proto.Generated.APIResource other = (io.kubernetes.client.proto.Generated.APIResource) obj;
+
+ boolean result = true;
+ result = result && (hasName() == other.hasName());
+ if (hasName()) {
+ result = result && getName()
+ .equals(other.getName());
+ }
+ result = result && (hasSingularName() == other.hasSingularName());
+ if (hasSingularName()) {
+ result = result && getSingularName()
+ .equals(other.getSingularName());
+ }
+ result = result && (hasNamespaced() == other.hasNamespaced());
+ if (hasNamespaced()) {
+ result = result && (getNamespaced()
+ == other.getNamespaced());
+ }
+ result = result && (hasKind() == other.hasKind());
+ if (hasKind()) {
+ result = result && getKind()
+ .equals(other.getKind());
+ }
+ result = result && (hasVerbs() == other.hasVerbs());
+ if (hasVerbs()) {
+ result = result && getVerbs()
+ .equals(other.getVerbs());
+ }
+ result = result && getShortNamesList()
+ .equals(other.getShortNamesList());
+ result = result && getCategoriesList()
+ .equals(other.getCategoriesList());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasName()) {
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ }
+ if (hasSingularName()) {
+ hash = (37 * hash) + SINGULARNAME_FIELD_NUMBER;
+ hash = (53 * hash) + getSingularName().hashCode();
+ }
+ if (hasNamespaced()) {
+ hash = (37 * hash) + NAMESPACED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getNamespaced());
+ }
+ if (hasKind()) {
+ hash = (37 * hash) + KIND_FIELD_NUMBER;
+ hash = (53 * hash) + getKind().hashCode();
+ }
+ if (hasVerbs()) {
+ hash = (37 * hash) + VERBS_FIELD_NUMBER;
+ hash = (53 * hash) + getVerbs().hashCode();
+ }
+ if (getShortNamesCount() > 0) {
+ hash = (37 * hash) + SHORTNAMES_FIELD_NUMBER;
+ hash = (53 * hash) + getShortNamesList().hashCode();
+ }
+ if (getCategoriesCount() > 0) {
+ hash = (37 * hash) + CATEGORIES_FIELD_NUMBER;
+ hash = (53 * hash) + getCategoriesList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.kubernetes.client.proto.Generated.APIResource parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.APIResource 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.Generated.APIResource parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.APIResource 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.Generated.APIResource parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.APIResource parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.kubernetes.client.proto.Generated.APIResource parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.APIResource 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.Generated.APIResource parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.APIResource 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.Generated.APIResource parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.APIResource parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.kubernetes.client.proto.Generated.APIResource prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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;
+ }
+ /**
+ * + * APIResource specifies the name of a resource and whether it is namespaced. + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.APIResource} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * name is the plural name of the resource. + *+ * + *
optional string name = 1;
+ */
+ public boolean hasName() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * + * name is the plural name of the resource. + *+ * + *
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 plural name of the resource. + *+ * + *
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 plural name of the resource. + *+ * + *
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 plural name of the resource. + *+ * + *
optional string name = 1;
+ */
+ public Builder clearName() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * name is the plural name of the resource. + *+ * + *
optional string name = 1;
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object singularName_ = "";
+ /**
+ * + * singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. + * The singularName is more correct for reporting status on a single item and both singular and plural are allowed + * from the kubectl CLI interface. + *+ * + *
optional string singularName = 6;
+ */
+ public boolean hasSingularName() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * + * singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. + * The singularName is more correct for reporting status on a single item and both singular and plural are allowed + * from the kubectl CLI interface. + *+ * + *
optional string singularName = 6;
+ */
+ public java.lang.String getSingularName() {
+ java.lang.Object ref = singularName_;
+ 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()) {
+ singularName_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. + * The singularName is more correct for reporting status on a single item and both singular and plural are allowed + * from the kubectl CLI interface. + *+ * + *
optional string singularName = 6;
+ */
+ public com.google.protobuf.ByteString
+ getSingularNameBytes() {
+ java.lang.Object ref = singularName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ singularName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. + * The singularName is more correct for reporting status on a single item and both singular and plural are allowed + * from the kubectl CLI interface. + *+ * + *
optional string singularName = 6;
+ */
+ public Builder setSingularName(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ singularName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. + * The singularName is more correct for reporting status on a single item and both singular and plural are allowed + * from the kubectl CLI interface. + *+ * + *
optional string singularName = 6;
+ */
+ public Builder clearSingularName() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ singularName_ = getDefaultInstance().getSingularName();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. + * The singularName is more correct for reporting status on a single item and both singular and plural are allowed + * from the kubectl CLI interface. + *+ * + *
optional string singularName = 6;
+ */
+ public Builder setSingularNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ singularName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private boolean namespaced_ ;
+ /**
+ * + * namespaced indicates if a resource is namespaced or not. + *+ * + *
optional bool namespaced = 2;
+ */
+ public boolean hasNamespaced() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * + * namespaced indicates if a resource is namespaced or not. + *+ * + *
optional bool namespaced = 2;
+ */
+ public boolean getNamespaced() {
+ return namespaced_;
+ }
+ /**
+ * + * namespaced indicates if a resource is namespaced or not. + *+ * + *
optional bool namespaced = 2;
+ */
+ public Builder setNamespaced(boolean value) {
+ bitField0_ |= 0x00000004;
+ namespaced_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * namespaced indicates if a resource is namespaced or not. + *+ * + *
optional bool namespaced = 2;
+ */
+ public Builder clearNamespaced() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ namespaced_ = false;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object kind_ = "";
+ /**
+ * + * kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') + *+ * + *
optional string kind = 3;
+ */
+ public boolean hasKind() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+ /**
+ * + * kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') + *+ * + *
optional string kind = 3;
+ */
+ public java.lang.String getKind() {
+ java.lang.Object ref = kind_;
+ 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()) {
+ kind_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') + *+ * + *
optional string kind = 3;
+ */
+ public com.google.protobuf.ByteString
+ getKindBytes() {
+ java.lang.Object ref = kind_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ kind_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') + *+ * + *
optional string kind = 3;
+ */
+ public Builder setKind(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000008;
+ kind_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') + *+ * + *
optional string kind = 3;
+ */
+ public Builder clearKind() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ kind_ = getDefaultInstance().getKind();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') + *+ * + *
optional string kind = 3;
+ */
+ public Builder setKindBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000008;
+ kind_ = value;
+ onChanged();
+ return this;
+ }
+
+ private io.kubernetes.client.proto.Generated.Verbs verbs_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.kubernetes.client.proto.Generated.Verbs, io.kubernetes.client.proto.Generated.Verbs.Builder, io.kubernetes.client.proto.Generated.VerbsOrBuilder> verbsBuilder_;
+ /**
+ * + * verbs is a list of supported kube verbs (this includes get, list, watch, create, + * update, patch, delete, deletecollection, and proxy) + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Verbs verbs = 4;
+ */
+ public boolean hasVerbs() {
+ return ((bitField0_ & 0x00000010) == 0x00000010);
+ }
+ /**
+ * + * verbs is a list of supported kube verbs (this includes get, list, watch, create, + * update, patch, delete, deletecollection, and proxy) + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Verbs verbs = 4;
+ */
+ public io.kubernetes.client.proto.Generated.Verbs getVerbs() {
+ if (verbsBuilder_ == null) {
+ return verbs_ == null ? io.kubernetes.client.proto.Generated.Verbs.getDefaultInstance() : verbs_;
+ } else {
+ return verbsBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * verbs is a list of supported kube verbs (this includes get, list, watch, create, + * update, patch, delete, deletecollection, and proxy) + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Verbs verbs = 4;
+ */
+ public Builder setVerbs(io.kubernetes.client.proto.Generated.Verbs value) {
+ if (verbsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ verbs_ = value;
+ onChanged();
+ } else {
+ verbsBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000010;
+ return this;
+ }
+ /**
+ * + * verbs is a list of supported kube verbs (this includes get, list, watch, create, + * update, patch, delete, deletecollection, and proxy) + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Verbs verbs = 4;
+ */
+ public Builder setVerbs(
+ io.kubernetes.client.proto.Generated.Verbs.Builder builderForValue) {
+ if (verbsBuilder_ == null) {
+ verbs_ = builderForValue.build();
+ onChanged();
+ } else {
+ verbsBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000010;
+ return this;
+ }
+ /**
+ * + * verbs is a list of supported kube verbs (this includes get, list, watch, create, + * update, patch, delete, deletecollection, and proxy) + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Verbs verbs = 4;
+ */
+ public Builder mergeVerbs(io.kubernetes.client.proto.Generated.Verbs value) {
+ if (verbsBuilder_ == null) {
+ if (((bitField0_ & 0x00000010) == 0x00000010) &&
+ verbs_ != null &&
+ verbs_ != io.kubernetes.client.proto.Generated.Verbs.getDefaultInstance()) {
+ verbs_ =
+ io.kubernetes.client.proto.Generated.Verbs.newBuilder(verbs_).mergeFrom(value).buildPartial();
+ } else {
+ verbs_ = value;
+ }
+ onChanged();
+ } else {
+ verbsBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000010;
+ return this;
+ }
+ /**
+ * + * verbs is a list of supported kube verbs (this includes get, list, watch, create, + * update, patch, delete, deletecollection, and proxy) + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Verbs verbs = 4;
+ */
+ public Builder clearVerbs() {
+ if (verbsBuilder_ == null) {
+ verbs_ = null;
+ onChanged();
+ } else {
+ verbsBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000010);
+ return this;
+ }
+ /**
+ * + * verbs is a list of supported kube verbs (this includes get, list, watch, create, + * update, patch, delete, deletecollection, and proxy) + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Verbs verbs = 4;
+ */
+ public io.kubernetes.client.proto.Generated.Verbs.Builder getVerbsBuilder() {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return getVerbsFieldBuilder().getBuilder();
+ }
+ /**
+ * + * verbs is a list of supported kube verbs (this includes get, list, watch, create, + * update, patch, delete, deletecollection, and proxy) + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Verbs verbs = 4;
+ */
+ public io.kubernetes.client.proto.Generated.VerbsOrBuilder getVerbsOrBuilder() {
+ if (verbsBuilder_ != null) {
+ return verbsBuilder_.getMessageOrBuilder();
+ } else {
+ return verbs_ == null ?
+ io.kubernetes.client.proto.Generated.Verbs.getDefaultInstance() : verbs_;
+ }
+ }
+ /**
+ * + * verbs is a list of supported kube verbs (this includes get, list, watch, create, + * update, patch, delete, deletecollection, and proxy) + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Verbs verbs = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.kubernetes.client.proto.Generated.Verbs, io.kubernetes.client.proto.Generated.Verbs.Builder, io.kubernetes.client.proto.Generated.VerbsOrBuilder>
+ getVerbsFieldBuilder() {
+ if (verbsBuilder_ == null) {
+ verbsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.kubernetes.client.proto.Generated.Verbs, io.kubernetes.client.proto.Generated.Verbs.Builder, io.kubernetes.client.proto.Generated.VerbsOrBuilder>(
+ getVerbs(),
+ getParentForChildren(),
+ isClean());
+ verbs_ = null;
+ }
+ return verbsBuilder_;
+ }
+
+ private com.google.protobuf.LazyStringList shortNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ private void ensureShortNamesIsMutable() {
+ if (!((bitField0_ & 0x00000020) == 0x00000020)) {
+ shortNames_ = new com.google.protobuf.LazyStringArrayList(shortNames_);
+ bitField0_ |= 0x00000020;
+ }
+ }
+ /**
+ * + * shortNames is a list of suggested short names of the resource. + *+ * + *
repeated string shortNames = 5;
+ */
+ public com.google.protobuf.ProtocolStringList
+ getShortNamesList() {
+ return shortNames_.getUnmodifiableView();
+ }
+ /**
+ * + * shortNames is a list of suggested short names of the resource. + *+ * + *
repeated string shortNames = 5;
+ */
+ public int getShortNamesCount() {
+ return shortNames_.size();
+ }
+ /**
+ * + * shortNames is a list of suggested short names of the resource. + *+ * + *
repeated string shortNames = 5;
+ */
+ public java.lang.String getShortNames(int index) {
+ return shortNames_.get(index);
+ }
+ /**
+ * + * shortNames is a list of suggested short names of the resource. + *+ * + *
repeated string shortNames = 5;
+ */
+ public com.google.protobuf.ByteString
+ getShortNamesBytes(int index) {
+ return shortNames_.getByteString(index);
+ }
+ /**
+ * + * shortNames is a list of suggested short names of the resource. + *+ * + *
repeated string shortNames = 5;
+ */
+ public Builder setShortNames(
+ int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureShortNamesIsMutable();
+ shortNames_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * shortNames is a list of suggested short names of the resource. + *+ * + *
repeated string shortNames = 5;
+ */
+ public Builder addShortNames(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureShortNamesIsMutable();
+ shortNames_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * shortNames is a list of suggested short names of the resource. + *+ * + *
repeated string shortNames = 5;
+ */
+ public Builder addAllShortNames(
+ java.lang.Iterable+ * shortNames is a list of suggested short names of the resource. + *+ * + *
repeated string shortNames = 5;
+ */
+ public Builder clearShortNames() {
+ shortNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * shortNames is a list of suggested short names of the resource. + *+ * + *
repeated string shortNames = 5;
+ */
+ public Builder addShortNamesBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureShortNamesIsMutable();
+ shortNames_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringList categories_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ private void ensureCategoriesIsMutable() {
+ if (!((bitField0_ & 0x00000040) == 0x00000040)) {
+ categories_ = new com.google.protobuf.LazyStringArrayList(categories_);
+ bitField0_ |= 0x00000040;
+ }
+ }
+ /**
+ * + * categories is a list of the grouped resources this resource belongs to (e.g. 'all') + *+ * + *
repeated string categories = 7;
+ */
+ public com.google.protobuf.ProtocolStringList
+ getCategoriesList() {
+ return categories_.getUnmodifiableView();
+ }
+ /**
+ * + * categories is a list of the grouped resources this resource belongs to (e.g. 'all') + *+ * + *
repeated string categories = 7;
+ */
+ public int getCategoriesCount() {
+ return categories_.size();
+ }
+ /**
+ * + * categories is a list of the grouped resources this resource belongs to (e.g. 'all') + *+ * + *
repeated string categories = 7;
+ */
+ public java.lang.String getCategories(int index) {
+ return categories_.get(index);
+ }
+ /**
+ * + * categories is a list of the grouped resources this resource belongs to (e.g. 'all') + *+ * + *
repeated string categories = 7;
+ */
+ public com.google.protobuf.ByteString
+ getCategoriesBytes(int index) {
+ return categories_.getByteString(index);
+ }
+ /**
+ * + * categories is a list of the grouped resources this resource belongs to (e.g. 'all') + *+ * + *
repeated string categories = 7;
+ */
+ public Builder setCategories(
+ int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCategoriesIsMutable();
+ categories_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * categories is a list of the grouped resources this resource belongs to (e.g. 'all') + *+ * + *
repeated string categories = 7;
+ */
+ public Builder addCategories(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCategoriesIsMutable();
+ categories_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * categories is a list of the grouped resources this resource belongs to (e.g. 'all') + *+ * + *
repeated string categories = 7;
+ */
+ public Builder addAllCategories(
+ java.lang.Iterable+ * categories is a list of the grouped resources this resource belongs to (e.g. 'all') + *+ * + *
repeated string categories = 7;
+ */
+ public Builder clearCategories() {
+ categories_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000040);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * categories is a list of the grouped resources this resource belongs to (e.g. 'all') + *+ * + *
repeated string categories = 7;
+ */
+ public Builder addCategoriesBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCategoriesIsMutable();
+ categories_.add(value);
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.APIResource)
+ }
+
+ // @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.APIResource)
+ private static final io.kubernetes.client.proto.Generated.APIResource DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.kubernetes.client.proto.Generated.APIResource();
+ }
+
+ public static io.kubernetes.client.proto.Generated.APIResource getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser+ * groupVersion is the group and version this APIResourceList is for. + *+ * + *
optional string groupVersion = 1;
+ */
+ boolean hasGroupVersion();
+ /**
+ * + * groupVersion is the group and version this APIResourceList is for. + *+ * + *
optional string groupVersion = 1;
+ */
+ java.lang.String getGroupVersion();
+ /**
+ * + * groupVersion is the group and version this APIResourceList is for. + *+ * + *
optional string groupVersion = 1;
+ */
+ com.google.protobuf.ByteString
+ getGroupVersionBytes();
+
+ /**
+ * + * resources contains the name of the resources and if they are namespaced. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIResource resources = 2;
+ */
+ java.util.List+ * resources contains the name of the resources and if they are namespaced. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIResource resources = 2;
+ */
+ io.kubernetes.client.proto.Generated.APIResource getResources(int index);
+ /**
+ * + * resources contains the name of the resources and if they are namespaced. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIResource resources = 2;
+ */
+ int getResourcesCount();
+ /**
+ * + * resources contains the name of the resources and if they are namespaced. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIResource resources = 2;
+ */
+ java.util.List extends io.kubernetes.client.proto.Generated.APIResourceOrBuilder>
+ getResourcesOrBuilderList();
+ /**
+ * + * resources contains the name of the resources and if they are namespaced. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIResource resources = 2;
+ */
+ io.kubernetes.client.proto.Generated.APIResourceOrBuilder getResourcesOrBuilder(
+ int index);
+ }
+ /**
+ * + * APIResourceList is a list of APIResource, it is used to expose the name of the + * resources supported in a specific group and version, and if the resource + * is namespaced. + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.APIResourceList} + */ + public static final class APIResourceList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.APIResourceList) + APIResourceListOrBuilder { + private static final long serialVersionUID = 0L; + // Use APIResourceList.newBuilder() to construct. + private APIResourceList(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private APIResourceList() { + groupVersion_ = ""; + resources_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private APIResourceList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + groupVersion_ = bs; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + resources_ = new java.util.ArrayList
+ * groupVersion is the group and version this APIResourceList is for. + *+ * + *
optional string groupVersion = 1;
+ */
+ public boolean hasGroupVersion() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * + * groupVersion is the group and version this APIResourceList is for. + *+ * + *
optional string groupVersion = 1;
+ */
+ public java.lang.String getGroupVersion() {
+ java.lang.Object ref = groupVersion_;
+ 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()) {
+ groupVersion_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * + * groupVersion is the group and version this APIResourceList is for. + *+ * + *
optional string groupVersion = 1;
+ */
+ public com.google.protobuf.ByteString
+ getGroupVersionBytes() {
+ java.lang.Object ref = groupVersion_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ groupVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int RESOURCES_FIELD_NUMBER = 2;
+ private java.util.List+ * resources contains the name of the resources and if they are namespaced. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIResource resources = 2;
+ */
+ public java.util.List+ * resources contains the name of the resources and if they are namespaced. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIResource resources = 2;
+ */
+ public java.util.List extends io.kubernetes.client.proto.Generated.APIResourceOrBuilder>
+ getResourcesOrBuilderList() {
+ return resources_;
+ }
+ /**
+ * + * resources contains the name of the resources and if they are namespaced. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIResource resources = 2;
+ */
+ public int getResourcesCount() {
+ return resources_.size();
+ }
+ /**
+ * + * resources contains the name of the resources and if they are namespaced. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIResource resources = 2;
+ */
+ public io.kubernetes.client.proto.Generated.APIResource getResources(int index) {
+ return resources_.get(index);
+ }
+ /**
+ * + * resources contains the name of the resources and if they are namespaced. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIResource resources = 2;
+ */
+ public io.kubernetes.client.proto.Generated.APIResourceOrBuilder getResourcesOrBuilder(
+ int index) {
+ return resources_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, groupVersion_);
+ }
+ for (int i = 0; i < resources_.size(); i++) {
+ output.writeMessage(2, resources_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, groupVersion_);
+ }
+ for (int i = 0; i < resources_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, resources_.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.Generated.APIResourceList)) {
+ return super.equals(obj);
+ }
+ io.kubernetes.client.proto.Generated.APIResourceList other = (io.kubernetes.client.proto.Generated.APIResourceList) obj;
+
+ boolean result = true;
+ result = result && (hasGroupVersion() == other.hasGroupVersion());
+ if (hasGroupVersion()) {
+ result = result && getGroupVersion()
+ .equals(other.getGroupVersion());
+ }
+ result = result && getResourcesList()
+ .equals(other.getResourcesList());
+ 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 (hasGroupVersion()) {
+ hash = (37 * hash) + GROUPVERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getGroupVersion().hashCode();
+ }
+ if (getResourcesCount() > 0) {
+ hash = (37 * hash) + RESOURCES_FIELD_NUMBER;
+ hash = (53 * hash) + getResourcesList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.kubernetes.client.proto.Generated.APIResourceList parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.APIResourceList 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.Generated.APIResourceList parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.APIResourceList 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.Generated.APIResourceList parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.APIResourceList parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.kubernetes.client.proto.Generated.APIResourceList parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.APIResourceList 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.Generated.APIResourceList parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.APIResourceList 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.Generated.APIResourceList parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.APIResourceList parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.kubernetes.client.proto.Generated.APIResourceList prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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;
+ }
+ /**
+ * + * APIResourceList is a list of APIResource, it is used to expose the name of the + * resources supported in a specific group and version, and if the resource + * is namespaced. + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.APIResourceList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * groupVersion is the group and version this APIResourceList is for. + *+ * + *
optional string groupVersion = 1;
+ */
+ public boolean hasGroupVersion() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * + * groupVersion is the group and version this APIResourceList is for. + *+ * + *
optional string groupVersion = 1;
+ */
+ public java.lang.String getGroupVersion() {
+ java.lang.Object ref = groupVersion_;
+ 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()) {
+ groupVersion_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * groupVersion is the group and version this APIResourceList is for. + *+ * + *
optional string groupVersion = 1;
+ */
+ public com.google.protobuf.ByteString
+ getGroupVersionBytes() {
+ java.lang.Object ref = groupVersion_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ groupVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * groupVersion is the group and version this APIResourceList is for. + *+ * + *
optional string groupVersion = 1;
+ */
+ public Builder setGroupVersion(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ groupVersion_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * groupVersion is the group and version this APIResourceList is for. + *+ * + *
optional string groupVersion = 1;
+ */
+ public Builder clearGroupVersion() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ groupVersion_ = getDefaultInstance().getGroupVersion();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * groupVersion is the group and version this APIResourceList is for. + *+ * + *
optional string groupVersion = 1;
+ */
+ public Builder setGroupVersionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ groupVersion_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List+ * resources contains the name of the resources and if they are namespaced. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIResource resources = 2;
+ */
+ public java.util.List+ * resources contains the name of the resources and if they are namespaced. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIResource resources = 2;
+ */
+ public int getResourcesCount() {
+ if (resourcesBuilder_ == null) {
+ return resources_.size();
+ } else {
+ return resourcesBuilder_.getCount();
+ }
+ }
+ /**
+ * + * resources contains the name of the resources and if they are namespaced. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIResource resources = 2;
+ */
+ public io.kubernetes.client.proto.Generated.APIResource getResources(int index) {
+ if (resourcesBuilder_ == null) {
+ return resources_.get(index);
+ } else {
+ return resourcesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * + * resources contains the name of the resources and if they are namespaced. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIResource resources = 2;
+ */
+ public Builder setResources(
+ int index, io.kubernetes.client.proto.Generated.APIResource value) {
+ if (resourcesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureResourcesIsMutable();
+ resources_.set(index, value);
+ onChanged();
+ } else {
+ resourcesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * resources contains the name of the resources and if they are namespaced. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIResource resources = 2;
+ */
+ public Builder setResources(
+ int index, io.kubernetes.client.proto.Generated.APIResource.Builder builderForValue) {
+ if (resourcesBuilder_ == null) {
+ ensureResourcesIsMutable();
+ resources_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ resourcesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * resources contains the name of the resources and if they are namespaced. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIResource resources = 2;
+ */
+ public Builder addResources(io.kubernetes.client.proto.Generated.APIResource value) {
+ if (resourcesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureResourcesIsMutable();
+ resources_.add(value);
+ onChanged();
+ } else {
+ resourcesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * + * resources contains the name of the resources and if they are namespaced. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIResource resources = 2;
+ */
+ public Builder addResources(
+ int index, io.kubernetes.client.proto.Generated.APIResource value) {
+ if (resourcesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureResourcesIsMutable();
+ resources_.add(index, value);
+ onChanged();
+ } else {
+ resourcesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * resources contains the name of the resources and if they are namespaced. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIResource resources = 2;
+ */
+ public Builder addResources(
+ io.kubernetes.client.proto.Generated.APIResource.Builder builderForValue) {
+ if (resourcesBuilder_ == null) {
+ ensureResourcesIsMutable();
+ resources_.add(builderForValue.build());
+ onChanged();
+ } else {
+ resourcesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * resources contains the name of the resources and if they are namespaced. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIResource resources = 2;
+ */
+ public Builder addResources(
+ int index, io.kubernetes.client.proto.Generated.APIResource.Builder builderForValue) {
+ if (resourcesBuilder_ == null) {
+ ensureResourcesIsMutable();
+ resources_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ resourcesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * resources contains the name of the resources and if they are namespaced. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIResource resources = 2;
+ */
+ public Builder addAllResources(
+ java.lang.Iterable extends io.kubernetes.client.proto.Generated.APIResource> values) {
+ if (resourcesBuilder_ == null) {
+ ensureResourcesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, resources_);
+ onChanged();
+ } else {
+ resourcesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * + * resources contains the name of the resources and if they are namespaced. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIResource resources = 2;
+ */
+ public Builder clearResources() {
+ if (resourcesBuilder_ == null) {
+ resources_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ resourcesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * + * resources contains the name of the resources and if they are namespaced. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIResource resources = 2;
+ */
+ public Builder removeResources(int index) {
+ if (resourcesBuilder_ == null) {
+ ensureResourcesIsMutable();
+ resources_.remove(index);
+ onChanged();
+ } else {
+ resourcesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * + * resources contains the name of the resources and if they are namespaced. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIResource resources = 2;
+ */
+ public io.kubernetes.client.proto.Generated.APIResource.Builder getResourcesBuilder(
+ int index) {
+ return getResourcesFieldBuilder().getBuilder(index);
+ }
+ /**
+ * + * resources contains the name of the resources and if they are namespaced. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIResource resources = 2;
+ */
+ public io.kubernetes.client.proto.Generated.APIResourceOrBuilder getResourcesOrBuilder(
+ int index) {
+ if (resourcesBuilder_ == null) {
+ return resources_.get(index); } else {
+ return resourcesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * + * resources contains the name of the resources and if they are namespaced. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIResource resources = 2;
+ */
+ public java.util.List extends io.kubernetes.client.proto.Generated.APIResourceOrBuilder>
+ getResourcesOrBuilderList() {
+ if (resourcesBuilder_ != null) {
+ return resourcesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(resources_);
+ }
+ }
+ /**
+ * + * resources contains the name of the resources and if they are namespaced. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIResource resources = 2;
+ */
+ public io.kubernetes.client.proto.Generated.APIResource.Builder addResourcesBuilder() {
+ return getResourcesFieldBuilder().addBuilder(
+ io.kubernetes.client.proto.Generated.APIResource.getDefaultInstance());
+ }
+ /**
+ * + * resources contains the name of the resources and if they are namespaced. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIResource resources = 2;
+ */
+ public io.kubernetes.client.proto.Generated.APIResource.Builder addResourcesBuilder(
+ int index) {
+ return getResourcesFieldBuilder().addBuilder(
+ index, io.kubernetes.client.proto.Generated.APIResource.getDefaultInstance());
+ }
+ /**
+ * + * resources contains the name of the resources and if they are namespaced. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIResource resources = 2;
+ */
+ public java.util.List+ * versions are the api versions that are available. + *+ * + *
repeated string versions = 1;
+ */
+ java.util.List+ * versions are the api versions that are available. + *+ * + *
repeated string versions = 1;
+ */
+ int getVersionsCount();
+ /**
+ * + * versions are the api versions that are available. + *+ * + *
repeated string versions = 1;
+ */
+ java.lang.String getVersions(int index);
+ /**
+ * + * versions are the api versions that are available. + *+ * + *
repeated string versions = 1;
+ */
+ com.google.protobuf.ByteString
+ getVersionsBytes(int index);
+
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
+ */
+ java.util.List+ * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
+ */
+ io.kubernetes.client.proto.Generated.ServerAddressByClientCIDR getServerAddressByClientCIDRs(int index);
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
+ */
+ int getServerAddressByClientCIDRsCount();
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
+ */
+ java.util.List extends io.kubernetes.client.proto.Generated.ServerAddressByClientCIDROrBuilder>
+ getServerAddressByClientCIDRsOrBuilderList();
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
+ */
+ io.kubernetes.client.proto.Generated.ServerAddressByClientCIDROrBuilder getServerAddressByClientCIDRsOrBuilder(
+ int index);
+ }
+ /**
+ * + * APIVersions lists the versions that are available, to allow clients to + * discover the API at /api, which is the root path of the legacy v1 API. + * + * +protobuf.options.(gogoproto.goproto_stringer)=false + * +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.APIVersions} + */ + public static final class APIVersions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.APIVersions) + APIVersionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use APIVersions.newBuilder() to construct. + private APIVersions(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private APIVersions() { + versions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + serverAddressByClientCIDRs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private APIVersions( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + versions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + versions_.add(bs); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + serverAddressByClientCIDRs_ = new java.util.ArrayList
+ * versions are the api versions that are available. + *+ * + *
repeated string versions = 1;
+ */
+ public com.google.protobuf.ProtocolStringList
+ getVersionsList() {
+ return versions_;
+ }
+ /**
+ * + * versions are the api versions that are available. + *+ * + *
repeated string versions = 1;
+ */
+ public int getVersionsCount() {
+ return versions_.size();
+ }
+ /**
+ * + * versions are the api versions that are available. + *+ * + *
repeated string versions = 1;
+ */
+ public java.lang.String getVersions(int index) {
+ return versions_.get(index);
+ }
+ /**
+ * + * versions are the api versions that are available. + *+ * + *
repeated string versions = 1;
+ */
+ public com.google.protobuf.ByteString
+ getVersionsBytes(int index) {
+ return versions_.getByteString(index);
+ }
+
+ public static final int SERVERADDRESSBYCLIENTCIDRS_FIELD_NUMBER = 2;
+ private java.util.List+ * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
+ */
+ public java.util.List+ * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
+ */
+ public java.util.List extends io.kubernetes.client.proto.Generated.ServerAddressByClientCIDROrBuilder>
+ getServerAddressByClientCIDRsOrBuilderList() {
+ return serverAddressByClientCIDRs_;
+ }
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
+ */
+ public int getServerAddressByClientCIDRsCount() {
+ return serverAddressByClientCIDRs_.size();
+ }
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
+ */
+ public io.kubernetes.client.proto.Generated.ServerAddressByClientCIDR getServerAddressByClientCIDRs(int index) {
+ return serverAddressByClientCIDRs_.get(index);
+ }
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
+ */
+ public io.kubernetes.client.proto.Generated.ServerAddressByClientCIDROrBuilder getServerAddressByClientCIDRsOrBuilder(
+ int index) {
+ return serverAddressByClientCIDRs_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < versions_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, versions_.getRaw(i));
+ }
+ for (int i = 0; i < serverAddressByClientCIDRs_.size(); i++) {
+ output.writeMessage(2, serverAddressByClientCIDRs_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ for (int i = 0; i < versions_.size(); i++) {
+ dataSize += computeStringSizeNoTag(versions_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getVersionsList().size();
+ }
+ for (int i = 0; i < serverAddressByClientCIDRs_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, serverAddressByClientCIDRs_.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.Generated.APIVersions)) {
+ return super.equals(obj);
+ }
+ io.kubernetes.client.proto.Generated.APIVersions other = (io.kubernetes.client.proto.Generated.APIVersions) obj;
+
+ boolean result = true;
+ result = result && getVersionsList()
+ .equals(other.getVersionsList());
+ result = result && getServerAddressByClientCIDRsList()
+ .equals(other.getServerAddressByClientCIDRsList());
+ 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 (getVersionsCount() > 0) {
+ hash = (37 * hash) + VERSIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getVersionsList().hashCode();
+ }
+ if (getServerAddressByClientCIDRsCount() > 0) {
+ hash = (37 * hash) + SERVERADDRESSBYCLIENTCIDRS_FIELD_NUMBER;
+ hash = (53 * hash) + getServerAddressByClientCIDRsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.kubernetes.client.proto.Generated.APIVersions parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.APIVersions 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.Generated.APIVersions parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.APIVersions 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.Generated.APIVersions parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.APIVersions parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.kubernetes.client.proto.Generated.APIVersions parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.APIVersions 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.Generated.APIVersions parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.APIVersions 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.Generated.APIVersions parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.APIVersions parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.kubernetes.client.proto.Generated.APIVersions prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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;
+ }
+ /**
+ * + * APIVersions lists the versions that are available, to allow clients to + * discover the API at /api, which is the root path of the legacy v1 API. + * + * +protobuf.options.(gogoproto.goproto_stringer)=false + * +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.APIVersions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * versions are the api versions that are available. + *+ * + *
repeated string versions = 1;
+ */
+ public com.google.protobuf.ProtocolStringList
+ getVersionsList() {
+ return versions_.getUnmodifiableView();
+ }
+ /**
+ * + * versions are the api versions that are available. + *+ * + *
repeated string versions = 1;
+ */
+ public int getVersionsCount() {
+ return versions_.size();
+ }
+ /**
+ * + * versions are the api versions that are available. + *+ * + *
repeated string versions = 1;
+ */
+ public java.lang.String getVersions(int index) {
+ return versions_.get(index);
+ }
+ /**
+ * + * versions are the api versions that are available. + *+ * + *
repeated string versions = 1;
+ */
+ public com.google.protobuf.ByteString
+ getVersionsBytes(int index) {
+ return versions_.getByteString(index);
+ }
+ /**
+ * + * versions are the api versions that are available. + *+ * + *
repeated string versions = 1;
+ */
+ public Builder setVersions(
+ int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureVersionsIsMutable();
+ versions_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * versions are the api versions that are available. + *+ * + *
repeated string versions = 1;
+ */
+ public Builder addVersions(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureVersionsIsMutable();
+ versions_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * versions are the api versions that are available. + *+ * + *
repeated string versions = 1;
+ */
+ public Builder addAllVersions(
+ java.lang.Iterable+ * versions are the api versions that are available. + *+ * + *
repeated string versions = 1;
+ */
+ public Builder clearVersions() {
+ versions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * versions are the api versions that are available. + *+ * + *
repeated string versions = 1;
+ */
+ public Builder addVersionsBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureVersionsIsMutable();
+ versions_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private java.util.List+ * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
+ */
+ public java.util.List+ * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
+ */
+ public int getServerAddressByClientCIDRsCount() {
+ if (serverAddressByClientCIDRsBuilder_ == null) {
+ return serverAddressByClientCIDRs_.size();
+ } else {
+ return serverAddressByClientCIDRsBuilder_.getCount();
+ }
+ }
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
+ */
+ public io.kubernetes.client.proto.Generated.ServerAddressByClientCIDR getServerAddressByClientCIDRs(int index) {
+ if (serverAddressByClientCIDRsBuilder_ == null) {
+ return serverAddressByClientCIDRs_.get(index);
+ } else {
+ return serverAddressByClientCIDRsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
+ */
+ public Builder setServerAddressByClientCIDRs(
+ int index, io.kubernetes.client.proto.Generated.ServerAddressByClientCIDR value) {
+ if (serverAddressByClientCIDRsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureServerAddressByClientCIDRsIsMutable();
+ serverAddressByClientCIDRs_.set(index, value);
+ onChanged();
+ } else {
+ serverAddressByClientCIDRsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
+ */
+ public Builder setServerAddressByClientCIDRs(
+ int index, io.kubernetes.client.proto.Generated.ServerAddressByClientCIDR.Builder builderForValue) {
+ if (serverAddressByClientCIDRsBuilder_ == null) {
+ ensureServerAddressByClientCIDRsIsMutable();
+ serverAddressByClientCIDRs_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ serverAddressByClientCIDRsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
+ */
+ public Builder addServerAddressByClientCIDRs(io.kubernetes.client.proto.Generated.ServerAddressByClientCIDR value) {
+ if (serverAddressByClientCIDRsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureServerAddressByClientCIDRsIsMutable();
+ serverAddressByClientCIDRs_.add(value);
+ onChanged();
+ } else {
+ serverAddressByClientCIDRsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
+ */
+ public Builder addServerAddressByClientCIDRs(
+ int index, io.kubernetes.client.proto.Generated.ServerAddressByClientCIDR value) {
+ if (serverAddressByClientCIDRsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureServerAddressByClientCIDRsIsMutable();
+ serverAddressByClientCIDRs_.add(index, value);
+ onChanged();
+ } else {
+ serverAddressByClientCIDRsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
+ */
+ public Builder addServerAddressByClientCIDRs(
+ io.kubernetes.client.proto.Generated.ServerAddressByClientCIDR.Builder builderForValue) {
+ if (serverAddressByClientCIDRsBuilder_ == null) {
+ ensureServerAddressByClientCIDRsIsMutable();
+ serverAddressByClientCIDRs_.add(builderForValue.build());
+ onChanged();
+ } else {
+ serverAddressByClientCIDRsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
+ */
+ public Builder addServerAddressByClientCIDRs(
+ int index, io.kubernetes.client.proto.Generated.ServerAddressByClientCIDR.Builder builderForValue) {
+ if (serverAddressByClientCIDRsBuilder_ == null) {
+ ensureServerAddressByClientCIDRsIsMutable();
+ serverAddressByClientCIDRs_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ serverAddressByClientCIDRsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
+ */
+ public Builder addAllServerAddressByClientCIDRs(
+ java.lang.Iterable extends io.kubernetes.client.proto.Generated.ServerAddressByClientCIDR> values) {
+ if (serverAddressByClientCIDRsBuilder_ == null) {
+ ensureServerAddressByClientCIDRsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, serverAddressByClientCIDRs_);
+ onChanged();
+ } else {
+ serverAddressByClientCIDRsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
+ */
+ public Builder clearServerAddressByClientCIDRs() {
+ if (serverAddressByClientCIDRsBuilder_ == null) {
+ serverAddressByClientCIDRs_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ serverAddressByClientCIDRsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
+ */
+ public Builder removeServerAddressByClientCIDRs(int index) {
+ if (serverAddressByClientCIDRsBuilder_ == null) {
+ ensureServerAddressByClientCIDRsIsMutable();
+ serverAddressByClientCIDRs_.remove(index);
+ onChanged();
+ } else {
+ serverAddressByClientCIDRsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
+ */
+ public io.kubernetes.client.proto.Generated.ServerAddressByClientCIDR.Builder getServerAddressByClientCIDRsBuilder(
+ int index) {
+ return getServerAddressByClientCIDRsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
+ */
+ public io.kubernetes.client.proto.Generated.ServerAddressByClientCIDROrBuilder getServerAddressByClientCIDRsOrBuilder(
+ int index) {
+ if (serverAddressByClientCIDRsBuilder_ == null) {
+ return serverAddressByClientCIDRs_.get(index); } else {
+ return serverAddressByClientCIDRsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
+ */
+ public java.util.List extends io.kubernetes.client.proto.Generated.ServerAddressByClientCIDROrBuilder>
+ getServerAddressByClientCIDRsOrBuilderList() {
+ if (serverAddressByClientCIDRsBuilder_ != null) {
+ return serverAddressByClientCIDRsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(serverAddressByClientCIDRs_);
+ }
+ }
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
+ */
+ public io.kubernetes.client.proto.Generated.ServerAddressByClientCIDR.Builder addServerAddressByClientCIDRsBuilder() {
+ return getServerAddressByClientCIDRsFieldBuilder().addBuilder(
+ io.kubernetes.client.proto.Generated.ServerAddressByClientCIDR.getDefaultInstance());
+ }
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
+ */
+ public io.kubernetes.client.proto.Generated.ServerAddressByClientCIDR.Builder addServerAddressByClientCIDRsBuilder(
+ int index) {
+ return getServerAddressByClientCIDRsFieldBuilder().addBuilder(
+ index, io.kubernetes.client.proto.Generated.ServerAddressByClientCIDR.getDefaultInstance());
+ }
+ /**
+ * + * a map of client CIDR to server address that is serving this group. + * This is to help clients reach servers in the most network-efficient way possible. + * Clients can use the appropriate server address as per the CIDR that they match. + * In case of multiple matches, clients should use the longest matching CIDR. + * The server returns only those CIDRs that it thinks that the client can match. + * For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + * Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
+ */
+ public java.util.List+ * The duration in seconds before the object should be deleted. Value must be non-negative integer. + * The value zero indicates delete immediately. If this value is nil, the default grace period for the + * specified type will be used. + * Defaults to a per object value if not specified. zero means delete immediately. + * +optional + *+ * + *
optional int64 gracePeriodSeconds = 1;
+ */
+ boolean hasGracePeriodSeconds();
+ /**
+ * + * The duration in seconds before the object should be deleted. Value must be non-negative integer. + * The value zero indicates delete immediately. If this value is nil, the default grace period for the + * specified type will be used. + * Defaults to a per object value if not specified. zero means delete immediately. + * +optional + *+ * + *
optional int64 gracePeriodSeconds = 1;
+ */
+ long getGracePeriodSeconds();
+
+ /**
+ * + * Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be + * returned. + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions preconditions = 2;
+ */
+ boolean hasPreconditions();
+ /**
+ * + * Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be + * returned. + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions preconditions = 2;
+ */
+ io.kubernetes.client.proto.Generated.Preconditions getPreconditions();
+ /**
+ * + * Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be + * returned. + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions preconditions = 2;
+ */
+ io.kubernetes.client.proto.Generated.PreconditionsOrBuilder getPreconditionsOrBuilder();
+
+ /**
+ * + * Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. + * Should the dependent objects be orphaned. If true/false, the "orphan" + * finalizer will be added to/removed from the object's finalizers list. + * Either this field or PropagationPolicy may be set, but not both. + * +optional + *+ * + *
optional bool orphanDependents = 3;
+ */
+ boolean hasOrphanDependents();
+ /**
+ * + * Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. + * Should the dependent objects be orphaned. If true/false, the "orphan" + * finalizer will be added to/removed from the object's finalizers list. + * Either this field or PropagationPolicy may be set, but not both. + * +optional + *+ * + *
optional bool orphanDependents = 3;
+ */
+ boolean getOrphanDependents();
+
+ /**
+ * + * Whether and how garbage collection will be performed. + * Either this field or OrphanDependents may be set, but not both. + * The default policy is decided by the existing finalizer set in the + * metadata.finalizers and the resource-specific default policy. + * +optional + *+ * + *
optional string propagationPolicy = 4;
+ */
+ boolean hasPropagationPolicy();
+ /**
+ * + * Whether and how garbage collection will be performed. + * Either this field or OrphanDependents may be set, but not both. + * The default policy is decided by the existing finalizer set in the + * metadata.finalizers and the resource-specific default policy. + * +optional + *+ * + *
optional string propagationPolicy = 4;
+ */
+ java.lang.String getPropagationPolicy();
+ /**
+ * + * Whether and how garbage collection will be performed. + * Either this field or OrphanDependents may be set, but not both. + * The default policy is decided by the existing finalizer set in the + * metadata.finalizers and the resource-specific default policy. + * +optional + *+ * + *
optional string propagationPolicy = 4;
+ */
+ com.google.protobuf.ByteString
+ getPropagationPolicyBytes();
+ }
+ /**
+ * + * DeleteOptions may be provided when deleting an API object. + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions} + */ + public static final class DeleteOptions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions) + DeleteOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteOptions.newBuilder() to construct. + private DeleteOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private DeleteOptions() { + gracePeriodSeconds_ = 0L; + orphanDependents_ = false; + propagationPolicy_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteOptions( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gracePeriodSeconds_ = input.readInt64(); + break; + } + case 18: { + io.kubernetes.client.proto.Generated.Preconditions.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = preconditions_.toBuilder(); + } + preconditions_ = input.readMessage(io.kubernetes.client.proto.Generated.Preconditions.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(preconditions_); + preconditions_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + case 24: { + bitField0_ |= 0x00000004; + orphanDependents_ = input.readBool(); + break; + } + case 34: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000008; + propagationPolicy_ = bs; + 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.Generated.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_DeleteOptions_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.Generated.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_DeleteOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.Generated.DeleteOptions.class, io.kubernetes.client.proto.Generated.DeleteOptions.Builder.class); + } + + private int bitField0_; + public static final int GRACEPERIODSECONDS_FIELD_NUMBER = 1; + private long gracePeriodSeconds_; + /** + *
+ * The duration in seconds before the object should be deleted. Value must be non-negative integer. + * The value zero indicates delete immediately. If this value is nil, the default grace period for the + * specified type will be used. + * Defaults to a per object value if not specified. zero means delete immediately. + * +optional + *+ * + *
optional int64 gracePeriodSeconds = 1;
+ */
+ public boolean hasGracePeriodSeconds() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * + * The duration in seconds before the object should be deleted. Value must be non-negative integer. + * The value zero indicates delete immediately. If this value is nil, the default grace period for the + * specified type will be used. + * Defaults to a per object value if not specified. zero means delete immediately. + * +optional + *+ * + *
optional int64 gracePeriodSeconds = 1;
+ */
+ public long getGracePeriodSeconds() {
+ return gracePeriodSeconds_;
+ }
+
+ public static final int PRECONDITIONS_FIELD_NUMBER = 2;
+ private io.kubernetes.client.proto.Generated.Preconditions preconditions_;
+ /**
+ * + * Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be + * returned. + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions preconditions = 2;
+ */
+ public boolean hasPreconditions() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * + * Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be + * returned. + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions preconditions = 2;
+ */
+ public io.kubernetes.client.proto.Generated.Preconditions getPreconditions() {
+ return preconditions_ == null ? io.kubernetes.client.proto.Generated.Preconditions.getDefaultInstance() : preconditions_;
+ }
+ /**
+ * + * Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be + * returned. + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions preconditions = 2;
+ */
+ public io.kubernetes.client.proto.Generated.PreconditionsOrBuilder getPreconditionsOrBuilder() {
+ return preconditions_ == null ? io.kubernetes.client.proto.Generated.Preconditions.getDefaultInstance() : preconditions_;
+ }
+
+ public static final int ORPHANDEPENDENTS_FIELD_NUMBER = 3;
+ private boolean orphanDependents_;
+ /**
+ * + * Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. + * Should the dependent objects be orphaned. If true/false, the "orphan" + * finalizer will be added to/removed from the object's finalizers list. + * Either this field or PropagationPolicy may be set, but not both. + * +optional + *+ * + *
optional bool orphanDependents = 3;
+ */
+ public boolean hasOrphanDependents() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * + * Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. + * Should the dependent objects be orphaned. If true/false, the "orphan" + * finalizer will be added to/removed from the object's finalizers list. + * Either this field or PropagationPolicy may be set, but not both. + * +optional + *+ * + *
optional bool orphanDependents = 3;
+ */
+ public boolean getOrphanDependents() {
+ return orphanDependents_;
+ }
+
+ public static final int PROPAGATIONPOLICY_FIELD_NUMBER = 4;
+ private volatile java.lang.Object propagationPolicy_;
+ /**
+ * + * Whether and how garbage collection will be performed. + * Either this field or OrphanDependents may be set, but not both. + * The default policy is decided by the existing finalizer set in the + * metadata.finalizers and the resource-specific default policy. + * +optional + *+ * + *
optional string propagationPolicy = 4;
+ */
+ public boolean hasPropagationPolicy() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+ /**
+ * + * Whether and how garbage collection will be performed. + * Either this field or OrphanDependents may be set, but not both. + * The default policy is decided by the existing finalizer set in the + * metadata.finalizers and the resource-specific default policy. + * +optional + *+ * + *
optional string propagationPolicy = 4;
+ */
+ public java.lang.String getPropagationPolicy() {
+ java.lang.Object ref = propagationPolicy_;
+ 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()) {
+ propagationPolicy_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * + * Whether and how garbage collection will be performed. + * Either this field or OrphanDependents may be set, but not both. + * The default policy is decided by the existing finalizer set in the + * metadata.finalizers and the resource-specific default policy. + * +optional + *+ * + *
optional string propagationPolicy = 4;
+ */
+ public com.google.protobuf.ByteString
+ getPropagationPolicyBytes() {
+ java.lang.Object ref = propagationPolicy_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ propagationPolicy_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeInt64(1, gracePeriodSeconds_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeMessage(2, getPreconditions());
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ output.writeBool(3, orphanDependents_);
+ }
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, propagationPolicy_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(1, gracePeriodSeconds_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getPreconditions());
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(3, orphanDependents_);
+ }
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, propagationPolicy_);
+ }
+ 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.Generated.DeleteOptions)) {
+ return super.equals(obj);
+ }
+ io.kubernetes.client.proto.Generated.DeleteOptions other = (io.kubernetes.client.proto.Generated.DeleteOptions) obj;
+
+ boolean result = true;
+ result = result && (hasGracePeriodSeconds() == other.hasGracePeriodSeconds());
+ if (hasGracePeriodSeconds()) {
+ result = result && (getGracePeriodSeconds()
+ == other.getGracePeriodSeconds());
+ }
+ result = result && (hasPreconditions() == other.hasPreconditions());
+ if (hasPreconditions()) {
+ result = result && getPreconditions()
+ .equals(other.getPreconditions());
+ }
+ result = result && (hasOrphanDependents() == other.hasOrphanDependents());
+ if (hasOrphanDependents()) {
+ result = result && (getOrphanDependents()
+ == other.getOrphanDependents());
+ }
+ result = result && (hasPropagationPolicy() == other.hasPropagationPolicy());
+ if (hasPropagationPolicy()) {
+ result = result && getPropagationPolicy()
+ .equals(other.getPropagationPolicy());
+ }
+ 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 (hasGracePeriodSeconds()) {
+ hash = (37 * hash) + GRACEPERIODSECONDS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getGracePeriodSeconds());
+ }
+ if (hasPreconditions()) {
+ hash = (37 * hash) + PRECONDITIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getPreconditions().hashCode();
+ }
+ if (hasOrphanDependents()) {
+ hash = (37 * hash) + ORPHANDEPENDENTS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getOrphanDependents());
+ }
+ if (hasPropagationPolicy()) {
+ hash = (37 * hash) + PROPAGATIONPOLICY_FIELD_NUMBER;
+ hash = (53 * hash) + getPropagationPolicy().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.kubernetes.client.proto.Generated.DeleteOptions parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.DeleteOptions 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.Generated.DeleteOptions parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.DeleteOptions 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.Generated.DeleteOptions parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.DeleteOptions parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.kubernetes.client.proto.Generated.DeleteOptions parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.DeleteOptions 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.Generated.DeleteOptions parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.DeleteOptions 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.Generated.DeleteOptions parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.DeleteOptions parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.kubernetes.client.proto.Generated.DeleteOptions prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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;
+ }
+ /**
+ * + * DeleteOptions may be provided when deleting an API object. + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * The duration in seconds before the object should be deleted. Value must be non-negative integer. + * The value zero indicates delete immediately. If this value is nil, the default grace period for the + * specified type will be used. + * Defaults to a per object value if not specified. zero means delete immediately. + * +optional + *+ * + *
optional int64 gracePeriodSeconds = 1;
+ */
+ public boolean hasGracePeriodSeconds() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * + * The duration in seconds before the object should be deleted. Value must be non-negative integer. + * The value zero indicates delete immediately. If this value is nil, the default grace period for the + * specified type will be used. + * Defaults to a per object value if not specified. zero means delete immediately. + * +optional + *+ * + *
optional int64 gracePeriodSeconds = 1;
+ */
+ public long getGracePeriodSeconds() {
+ return gracePeriodSeconds_;
+ }
+ /**
+ * + * The duration in seconds before the object should be deleted. Value must be non-negative integer. + * The value zero indicates delete immediately. If this value is nil, the default grace period for the + * specified type will be used. + * Defaults to a per object value if not specified. zero means delete immediately. + * +optional + *+ * + *
optional int64 gracePeriodSeconds = 1;
+ */
+ public Builder setGracePeriodSeconds(long value) {
+ bitField0_ |= 0x00000001;
+ gracePeriodSeconds_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The duration in seconds before the object should be deleted. Value must be non-negative integer. + * The value zero indicates delete immediately. If this value is nil, the default grace period for the + * specified type will be used. + * Defaults to a per object value if not specified. zero means delete immediately. + * +optional + *+ * + *
optional int64 gracePeriodSeconds = 1;
+ */
+ public Builder clearGracePeriodSeconds() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ gracePeriodSeconds_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private io.kubernetes.client.proto.Generated.Preconditions preconditions_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.kubernetes.client.proto.Generated.Preconditions, io.kubernetes.client.proto.Generated.Preconditions.Builder, io.kubernetes.client.proto.Generated.PreconditionsOrBuilder> preconditionsBuilder_;
+ /**
+ * + * Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be + * returned. + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions preconditions = 2;
+ */
+ public boolean hasPreconditions() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * + * Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be + * returned. + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions preconditions = 2;
+ */
+ public io.kubernetes.client.proto.Generated.Preconditions getPreconditions() {
+ if (preconditionsBuilder_ == null) {
+ return preconditions_ == null ? io.kubernetes.client.proto.Generated.Preconditions.getDefaultInstance() : preconditions_;
+ } else {
+ return preconditionsBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be + * returned. + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions preconditions = 2;
+ */
+ public Builder setPreconditions(io.kubernetes.client.proto.Generated.Preconditions value) {
+ if (preconditionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ preconditions_ = value;
+ onChanged();
+ } else {
+ preconditionsBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ return this;
+ }
+ /**
+ * + * Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be + * returned. + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions preconditions = 2;
+ */
+ public Builder setPreconditions(
+ io.kubernetes.client.proto.Generated.Preconditions.Builder builderForValue) {
+ if (preconditionsBuilder_ == null) {
+ preconditions_ = builderForValue.build();
+ onChanged();
+ } else {
+ preconditionsBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ return this;
+ }
+ /**
+ * + * Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be + * returned. + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions preconditions = 2;
+ */
+ public Builder mergePreconditions(io.kubernetes.client.proto.Generated.Preconditions value) {
+ if (preconditionsBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) == 0x00000002) &&
+ preconditions_ != null &&
+ preconditions_ != io.kubernetes.client.proto.Generated.Preconditions.getDefaultInstance()) {
+ preconditions_ =
+ io.kubernetes.client.proto.Generated.Preconditions.newBuilder(preconditions_).mergeFrom(value).buildPartial();
+ } else {
+ preconditions_ = value;
+ }
+ onChanged();
+ } else {
+ preconditionsBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ return this;
+ }
+ /**
+ * + * Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be + * returned. + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions preconditions = 2;
+ */
+ public Builder clearPreconditions() {
+ if (preconditionsBuilder_ == null) {
+ preconditions_ = null;
+ onChanged();
+ } else {
+ preconditionsBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000002);
+ return this;
+ }
+ /**
+ * + * Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be + * returned. + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions preconditions = 2;
+ */
+ public io.kubernetes.client.proto.Generated.Preconditions.Builder getPreconditionsBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getPreconditionsFieldBuilder().getBuilder();
+ }
+ /**
+ * + * Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be + * returned. + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions preconditions = 2;
+ */
+ public io.kubernetes.client.proto.Generated.PreconditionsOrBuilder getPreconditionsOrBuilder() {
+ if (preconditionsBuilder_ != null) {
+ return preconditionsBuilder_.getMessageOrBuilder();
+ } else {
+ return preconditions_ == null ?
+ io.kubernetes.client.proto.Generated.Preconditions.getDefaultInstance() : preconditions_;
+ }
+ }
+ /**
+ * + * Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be + * returned. + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions preconditions = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.kubernetes.client.proto.Generated.Preconditions, io.kubernetes.client.proto.Generated.Preconditions.Builder, io.kubernetes.client.proto.Generated.PreconditionsOrBuilder>
+ getPreconditionsFieldBuilder() {
+ if (preconditionsBuilder_ == null) {
+ preconditionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.kubernetes.client.proto.Generated.Preconditions, io.kubernetes.client.proto.Generated.Preconditions.Builder, io.kubernetes.client.proto.Generated.PreconditionsOrBuilder>(
+ getPreconditions(),
+ getParentForChildren(),
+ isClean());
+ preconditions_ = null;
+ }
+ return preconditionsBuilder_;
+ }
+
+ private boolean orphanDependents_ ;
+ /**
+ * + * Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. + * Should the dependent objects be orphaned. If true/false, the "orphan" + * finalizer will be added to/removed from the object's finalizers list. + * Either this field or PropagationPolicy may be set, but not both. + * +optional + *+ * + *
optional bool orphanDependents = 3;
+ */
+ public boolean hasOrphanDependents() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * + * Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. + * Should the dependent objects be orphaned. If true/false, the "orphan" + * finalizer will be added to/removed from the object's finalizers list. + * Either this field or PropagationPolicy may be set, but not both. + * +optional + *+ * + *
optional bool orphanDependents = 3;
+ */
+ public boolean getOrphanDependents() {
+ return orphanDependents_;
+ }
+ /**
+ * + * Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. + * Should the dependent objects be orphaned. If true/false, the "orphan" + * finalizer will be added to/removed from the object's finalizers list. + * Either this field or PropagationPolicy may be set, but not both. + * +optional + *+ * + *
optional bool orphanDependents = 3;
+ */
+ public Builder setOrphanDependents(boolean value) {
+ bitField0_ |= 0x00000004;
+ orphanDependents_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. + * Should the dependent objects be orphaned. If true/false, the "orphan" + * finalizer will be added to/removed from the object's finalizers list. + * Either this field or PropagationPolicy may be set, but not both. + * +optional + *+ * + *
optional bool orphanDependents = 3;
+ */
+ public Builder clearOrphanDependents() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ orphanDependents_ = false;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object propagationPolicy_ = "";
+ /**
+ * + * Whether and how garbage collection will be performed. + * Either this field or OrphanDependents may be set, but not both. + * The default policy is decided by the existing finalizer set in the + * metadata.finalizers and the resource-specific default policy. + * +optional + *+ * + *
optional string propagationPolicy = 4;
+ */
+ public boolean hasPropagationPolicy() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+ /**
+ * + * Whether and how garbage collection will be performed. + * Either this field or OrphanDependents may be set, but not both. + * The default policy is decided by the existing finalizer set in the + * metadata.finalizers and the resource-specific default policy. + * +optional + *+ * + *
optional string propagationPolicy = 4;
+ */
+ public java.lang.String getPropagationPolicy() {
+ java.lang.Object ref = propagationPolicy_;
+ 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()) {
+ propagationPolicy_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Whether and how garbage collection will be performed. + * Either this field or OrphanDependents may be set, but not both. + * The default policy is decided by the existing finalizer set in the + * metadata.finalizers and the resource-specific default policy. + * +optional + *+ * + *
optional string propagationPolicy = 4;
+ */
+ public com.google.protobuf.ByteString
+ getPropagationPolicyBytes() {
+ java.lang.Object ref = propagationPolicy_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ propagationPolicy_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Whether and how garbage collection will be performed. + * Either this field or OrphanDependents may be set, but not both. + * The default policy is decided by the existing finalizer set in the + * metadata.finalizers and the resource-specific default policy. + * +optional + *+ * + *
optional string propagationPolicy = 4;
+ */
+ public Builder setPropagationPolicy(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000008;
+ propagationPolicy_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Whether and how garbage collection will be performed. + * Either this field or OrphanDependents may be set, but not both. + * The default policy is decided by the existing finalizer set in the + * metadata.finalizers and the resource-specific default policy. + * +optional + *+ * + *
optional string propagationPolicy = 4;
+ */
+ public Builder clearPropagationPolicy() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ propagationPolicy_ = getDefaultInstance().getPropagationPolicy();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Whether and how garbage collection will be performed. + * Either this field or OrphanDependents may be set, but not both. + * The default policy is decided by the existing finalizer set in the + * metadata.finalizers and the resource-specific default policy. + * +optional + *+ * + *
optional string propagationPolicy = 4;
+ */
+ public Builder setPropagationPolicyBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000008;
+ propagationPolicy_ = value;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions)
+ }
+
+ // @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions)
+ private static final io.kubernetes.client.proto.Generated.DeleteOptions DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.kubernetes.client.proto.Generated.DeleteOptions();
+ }
+
+ public static io.kubernetes.client.proto.Generated.DeleteOptions getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parseroptional int64 duration = 1;
+ */
+ boolean hasDuration();
+ /**
+ * optional int64 duration = 1;
+ */
+ long getDuration();
+ }
+ /**
+ * + * Duration is a wrapper around time.Duration which supports correct + * marshaling to YAML and JSON. In particular, it marshals into strings, which + * can be used as map keys in json. + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.Duration} + */ + public static final class Duration extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.Duration) + DurationOrBuilder { + private static final long serialVersionUID = 0L; + // Use Duration.newBuilder() to construct. + private Duration(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private Duration() { + duration_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Duration( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + duration_ = input.readInt64(); + 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.Generated.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_Duration_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.Generated.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_Duration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.Generated.Duration.class, io.kubernetes.client.proto.Generated.Duration.Builder.class); + } + + private int bitField0_; + public static final int DURATION_FIELD_NUMBER = 1; + private long duration_; + /** + *
optional int64 duration = 1;
+ */
+ public boolean hasDuration() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * optional int64 duration = 1;
+ */
+ public long getDuration() {
+ return duration_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeInt64(1, duration_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(1, duration_);
+ }
+ 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.Generated.Duration)) {
+ return super.equals(obj);
+ }
+ io.kubernetes.client.proto.Generated.Duration other = (io.kubernetes.client.proto.Generated.Duration) obj;
+
+ boolean result = true;
+ result = result && (hasDuration() == other.hasDuration());
+ if (hasDuration()) {
+ result = result && (getDuration()
+ == other.getDuration());
+ }
+ 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 (hasDuration()) {
+ hash = (37 * hash) + DURATION_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getDuration());
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.kubernetes.client.proto.Generated.Duration parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.Duration 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.Generated.Duration parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.Duration 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.Generated.Duration parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.Duration parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.kubernetes.client.proto.Generated.Duration parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.Duration 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.Generated.Duration parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.Duration 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.Generated.Duration parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.Duration parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.kubernetes.client.proto.Generated.Duration prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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;
+ }
+ /**
+ * + * Duration is a wrapper around time.Duration which supports correct + * marshaling to YAML and JSON. In particular, it marshals into strings, which + * can be used as map keys in json. + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.Duration} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
optional int64 duration = 1;
+ */
+ public boolean hasDuration() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * optional int64 duration = 1;
+ */
+ public long getDuration() {
+ return duration_;
+ }
+ /**
+ * optional int64 duration = 1;
+ */
+ public Builder setDuration(long value) {
+ bitField0_ |= 0x00000001;
+ duration_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int64 duration = 1;
+ */
+ public Builder clearDuration() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ duration_ = 0L;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.Duration)
+ }
+
+ // @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.Duration)
+ private static final io.kubernetes.client.proto.Generated.Duration DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.kubernetes.client.proto.Generated.Duration();
+ }
+
+ public static io.kubernetes.client.proto.Generated.Duration getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser+ * Should this value be exported. Export strips fields that a user can not specify. + *+ * + *
optional bool export = 1;
+ */
+ boolean hasExport();
+ /**
+ * + * Should this value be exported. Export strips fields that a user can not specify. + *+ * + *
optional bool export = 1;
+ */
+ boolean getExport();
+
+ /**
+ * + * Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + *+ * + *
optional bool exact = 2;
+ */
+ boolean hasExact();
+ /**
+ * + * Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + *+ * + *
optional bool exact = 2;
+ */
+ boolean getExact();
+ }
+ /**
+ * + * ExportOptions is the query options to the standard REST get call. + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.ExportOptions} + */ + public static final class ExportOptions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.ExportOptions) + ExportOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExportOptions.newBuilder() to construct. + private ExportOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private ExportOptions() { + export_ = false; + exact_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExportOptions( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + export_ = input.readBool(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + exact_ = input.readBool(); + 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.Generated.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_ExportOptions_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.Generated.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_ExportOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.Generated.ExportOptions.class, io.kubernetes.client.proto.Generated.ExportOptions.Builder.class); + } + + private int bitField0_; + public static final int EXPORT_FIELD_NUMBER = 1; + private boolean export_; + /** + *
+ * Should this value be exported. Export strips fields that a user can not specify. + *+ * + *
optional bool export = 1;
+ */
+ public boolean hasExport() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * + * Should this value be exported. Export strips fields that a user can not specify. + *+ * + *
optional bool export = 1;
+ */
+ public boolean getExport() {
+ return export_;
+ }
+
+ public static final int EXACT_FIELD_NUMBER = 2;
+ private boolean exact_;
+ /**
+ * + * Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + *+ * + *
optional bool exact = 2;
+ */
+ public boolean hasExact() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * + * Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + *+ * + *
optional bool exact = 2;
+ */
+ public boolean getExact() {
+ return exact_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeBool(1, export_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeBool(2, exact_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(1, export_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(2, exact_);
+ }
+ 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.Generated.ExportOptions)) {
+ return super.equals(obj);
+ }
+ io.kubernetes.client.proto.Generated.ExportOptions other = (io.kubernetes.client.proto.Generated.ExportOptions) obj;
+
+ boolean result = true;
+ result = result && (hasExport() == other.hasExport());
+ if (hasExport()) {
+ result = result && (getExport()
+ == other.getExport());
+ }
+ result = result && (hasExact() == other.hasExact());
+ if (hasExact()) {
+ result = result && (getExact()
+ == other.getExact());
+ }
+ 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 (hasExport()) {
+ hash = (37 * hash) + EXPORT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getExport());
+ }
+ if (hasExact()) {
+ hash = (37 * hash) + EXACT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getExact());
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.kubernetes.client.proto.Generated.ExportOptions parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.ExportOptions 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.Generated.ExportOptions parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.ExportOptions 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.Generated.ExportOptions parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.ExportOptions parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.kubernetes.client.proto.Generated.ExportOptions parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.ExportOptions 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.Generated.ExportOptions parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.ExportOptions 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.Generated.ExportOptions parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.ExportOptions parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.kubernetes.client.proto.Generated.ExportOptions prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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;
+ }
+ /**
+ * + * ExportOptions is the query options to the standard REST get call. + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.ExportOptions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * Should this value be exported. Export strips fields that a user can not specify. + *+ * + *
optional bool export = 1;
+ */
+ public boolean hasExport() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * + * Should this value be exported. Export strips fields that a user can not specify. + *+ * + *
optional bool export = 1;
+ */
+ public boolean getExport() {
+ return export_;
+ }
+ /**
+ * + * Should this value be exported. Export strips fields that a user can not specify. + *+ * + *
optional bool export = 1;
+ */
+ public Builder setExport(boolean value) {
+ bitField0_ |= 0x00000001;
+ export_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Should this value be exported. Export strips fields that a user can not specify. + *+ * + *
optional bool export = 1;
+ */
+ public Builder clearExport() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ export_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean exact_ ;
+ /**
+ * + * Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + *+ * + *
optional bool exact = 2;
+ */
+ public boolean hasExact() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * + * Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + *+ * + *
optional bool exact = 2;
+ */
+ public boolean getExact() {
+ return exact_;
+ }
+ /**
+ * + * Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + *+ * + *
optional bool exact = 2;
+ */
+ public Builder setExact(boolean value) {
+ bitField0_ |= 0x00000002;
+ exact_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + *+ * + *
optional bool exact = 2;
+ */
+ public Builder clearExact() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ exact_ = false;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.ExportOptions)
+ }
+
+ // @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.ExportOptions)
+ private static final io.kubernetes.client.proto.Generated.ExportOptions DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.kubernetes.client.proto.Generated.ExportOptions();
+ }
+
+ public static io.kubernetes.client.proto.Generated.ExportOptions getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser+ * When specified: + * - if unset, then the result is returned from remote storage based on quorum-read flag; + * - if it's 0, then we simply return what we currently have in cache, no guarantee; + * - if set to non zero, then the result is at least as fresh as given rv. + *+ * + *
optional string resourceVersion = 1;
+ */
+ boolean hasResourceVersion();
+ /**
+ * + * When specified: + * - if unset, then the result is returned from remote storage based on quorum-read flag; + * - if it's 0, then we simply return what we currently have in cache, no guarantee; + * - if set to non zero, then the result is at least as fresh as given rv. + *+ * + *
optional string resourceVersion = 1;
+ */
+ java.lang.String getResourceVersion();
+ /**
+ * + * When specified: + * - if unset, then the result is returned from remote storage based on quorum-read flag; + * - if it's 0, then we simply return what we currently have in cache, no guarantee; + * - if set to non zero, then the result is at least as fresh as given rv. + *+ * + *
optional string resourceVersion = 1;
+ */
+ com.google.protobuf.ByteString
+ getResourceVersionBytes();
+
+ /**
+ * + * If true, partially initialized resources are included in the response. + * +optional + *+ * + *
optional bool includeUninitialized = 2;
+ */
+ boolean hasIncludeUninitialized();
+ /**
+ * + * If true, partially initialized resources are included in the response. + * +optional + *+ * + *
optional bool includeUninitialized = 2;
+ */
+ boolean getIncludeUninitialized();
+ }
+ /**
+ * + * GetOptions is the standard query options to the standard REST get call. + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.GetOptions} + */ + public static final class GetOptions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.GetOptions) + GetOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetOptions.newBuilder() to construct. + private GetOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private GetOptions() { + resourceVersion_ = ""; + includeUninitialized_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetOptions( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + resourceVersion_ = bs; + break; + } + case 16: { + bitField0_ |= 0x00000002; + includeUninitialized_ = input.readBool(); + 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.Generated.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GetOptions_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.Generated.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GetOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.Generated.GetOptions.class, io.kubernetes.client.proto.Generated.GetOptions.Builder.class); + } + + private int bitField0_; + public static final int RESOURCEVERSION_FIELD_NUMBER = 1; + private volatile java.lang.Object resourceVersion_; + /** + *
+ * When specified: + * - if unset, then the result is returned from remote storage based on quorum-read flag; + * - if it's 0, then we simply return what we currently have in cache, no guarantee; + * - if set to non zero, then the result is at least as fresh as given rv. + *+ * + *
optional string resourceVersion = 1;
+ */
+ public boolean hasResourceVersion() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * + * When specified: + * - if unset, then the result is returned from remote storage based on quorum-read flag; + * - if it's 0, then we simply return what we currently have in cache, no guarantee; + * - if set to non zero, then the result is at least as fresh as given rv. + *+ * + *
optional string resourceVersion = 1;
+ */
+ public java.lang.String getResourceVersion() {
+ java.lang.Object ref = resourceVersion_;
+ 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()) {
+ resourceVersion_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * + * When specified: + * - if unset, then the result is returned from remote storage based on quorum-read flag; + * - if it's 0, then we simply return what we currently have in cache, no guarantee; + * - if set to non zero, then the result is at least as fresh as given rv. + *+ * + *
optional string resourceVersion = 1;
+ */
+ public com.google.protobuf.ByteString
+ getResourceVersionBytes() {
+ java.lang.Object ref = resourceVersion_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ resourceVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int INCLUDEUNINITIALIZED_FIELD_NUMBER = 2;
+ private boolean includeUninitialized_;
+ /**
+ * + * If true, partially initialized resources are included in the response. + * +optional + *+ * + *
optional bool includeUninitialized = 2;
+ */
+ public boolean hasIncludeUninitialized() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * + * If true, partially initialized resources are included in the response. + * +optional + *+ * + *
optional bool includeUninitialized = 2;
+ */
+ public boolean getIncludeUninitialized() {
+ return includeUninitialized_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceVersion_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeBool(2, includeUninitialized_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceVersion_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(2, includeUninitialized_);
+ }
+ 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.Generated.GetOptions)) {
+ return super.equals(obj);
+ }
+ io.kubernetes.client.proto.Generated.GetOptions other = (io.kubernetes.client.proto.Generated.GetOptions) obj;
+
+ boolean result = true;
+ result = result && (hasResourceVersion() == other.hasResourceVersion());
+ if (hasResourceVersion()) {
+ result = result && getResourceVersion()
+ .equals(other.getResourceVersion());
+ }
+ result = result && (hasIncludeUninitialized() == other.hasIncludeUninitialized());
+ if (hasIncludeUninitialized()) {
+ result = result && (getIncludeUninitialized()
+ == other.getIncludeUninitialized());
+ }
+ 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 (hasResourceVersion()) {
+ hash = (37 * hash) + RESOURCEVERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getResourceVersion().hashCode();
+ }
+ if (hasIncludeUninitialized()) {
+ hash = (37 * hash) + INCLUDEUNINITIALIZED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getIncludeUninitialized());
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.kubernetes.client.proto.Generated.GetOptions parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.GetOptions 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.Generated.GetOptions parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.GetOptions 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.Generated.GetOptions parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.GetOptions parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.kubernetes.client.proto.Generated.GetOptions parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.GetOptions 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.Generated.GetOptions parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.GetOptions 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.Generated.GetOptions parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.GetOptions parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.kubernetes.client.proto.Generated.GetOptions prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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;
+ }
+ /**
+ * + * GetOptions is the standard query options to the standard REST get call. + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.GetOptions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * When specified: + * - if unset, then the result is returned from remote storage based on quorum-read flag; + * - if it's 0, then we simply return what we currently have in cache, no guarantee; + * - if set to non zero, then the result is at least as fresh as given rv. + *+ * + *
optional string resourceVersion = 1;
+ */
+ public boolean hasResourceVersion() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * + * When specified: + * - if unset, then the result is returned from remote storage based on quorum-read flag; + * - if it's 0, then we simply return what we currently have in cache, no guarantee; + * - if set to non zero, then the result is at least as fresh as given rv. + *+ * + *
optional string resourceVersion = 1;
+ */
+ public java.lang.String getResourceVersion() {
+ java.lang.Object ref = resourceVersion_;
+ 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()) {
+ resourceVersion_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * When specified: + * - if unset, then the result is returned from remote storage based on quorum-read flag; + * - if it's 0, then we simply return what we currently have in cache, no guarantee; + * - if set to non zero, then the result is at least as fresh as given rv. + *+ * + *
optional string resourceVersion = 1;
+ */
+ public com.google.protobuf.ByteString
+ getResourceVersionBytes() {
+ java.lang.Object ref = resourceVersion_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ resourceVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * When specified: + * - if unset, then the result is returned from remote storage based on quorum-read flag; + * - if it's 0, then we simply return what we currently have in cache, no guarantee; + * - if set to non zero, then the result is at least as fresh as given rv. + *+ * + *
optional string resourceVersion = 1;
+ */
+ public Builder setResourceVersion(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ resourceVersion_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * When specified: + * - if unset, then the result is returned from remote storage based on quorum-read flag; + * - if it's 0, then we simply return what we currently have in cache, no guarantee; + * - if set to non zero, then the result is at least as fresh as given rv. + *+ * + *
optional string resourceVersion = 1;
+ */
+ public Builder clearResourceVersion() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ resourceVersion_ = getDefaultInstance().getResourceVersion();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * When specified: + * - if unset, then the result is returned from remote storage based on quorum-read flag; + * - if it's 0, then we simply return what we currently have in cache, no guarantee; + * - if set to non zero, then the result is at least as fresh as given rv. + *+ * + *
optional string resourceVersion = 1;
+ */
+ public Builder setResourceVersionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ resourceVersion_ = value;
+ onChanged();
+ return this;
+ }
+
+ private boolean includeUninitialized_ ;
+ /**
+ * + * If true, partially initialized resources are included in the response. + * +optional + *+ * + *
optional bool includeUninitialized = 2;
+ */
+ public boolean hasIncludeUninitialized() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * + * If true, partially initialized resources are included in the response. + * +optional + *+ * + *
optional bool includeUninitialized = 2;
+ */
+ public boolean getIncludeUninitialized() {
+ return includeUninitialized_;
+ }
+ /**
+ * + * If true, partially initialized resources are included in the response. + * +optional + *+ * + *
optional bool includeUninitialized = 2;
+ */
+ public Builder setIncludeUninitialized(boolean value) {
+ bitField0_ |= 0x00000002;
+ includeUninitialized_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * If true, partially initialized resources are included in the response. + * +optional + *+ * + *
optional bool includeUninitialized = 2;
+ */
+ public Builder clearIncludeUninitialized() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ includeUninitialized_ = false;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GetOptions)
+ }
+
+ // @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GetOptions)
+ private static final io.kubernetes.client.proto.Generated.GetOptions DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.kubernetes.client.proto.Generated.GetOptions();
+ }
+
+ public static io.kubernetes.client.proto.Generated.GetOptions getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parseroptional string group = 1;
+ */
+ boolean hasGroup();
+ /**
+ * optional string group = 1;
+ */
+ java.lang.String getGroup();
+ /**
+ * optional string group = 1;
+ */
+ com.google.protobuf.ByteString
+ getGroupBytes();
+
+ /**
+ * optional string kind = 2;
+ */
+ boolean hasKind();
+ /**
+ * optional string kind = 2;
+ */
+ java.lang.String getKind();
+ /**
+ * optional string kind = 2;
+ */
+ com.google.protobuf.ByteString
+ getKindBytes();
+ }
+ /**
+ * + * GroupKind specifies a Group and a Kind, but does not force a version. This is useful for identifying + * concepts during lookup stages without having partially valid types + * + * +protobuf.options.(gogoproto.goproto_stringer)=false + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.GroupKind} + */ + public static final class GroupKind extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.GroupKind) + GroupKindOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupKind.newBuilder() to construct. + private GroupKind(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private GroupKind() { + group_ = ""; + kind_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupKind( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + group_ = bs; + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + kind_ = bs; + 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.Generated.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupKind_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.Generated.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupKind_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.Generated.GroupKind.class, io.kubernetes.client.proto.Generated.GroupKind.Builder.class); + } + + private int bitField0_; + public static final int GROUP_FIELD_NUMBER = 1; + private volatile java.lang.Object group_; + /** + *
optional string group = 1;
+ */
+ public boolean hasGroup() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * optional string group = 1;
+ */
+ public java.lang.String getGroup() {
+ java.lang.Object ref = group_;
+ 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()) {
+ group_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * optional string group = 1;
+ */
+ public com.google.protobuf.ByteString
+ getGroupBytes() {
+ java.lang.Object ref = group_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ group_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int KIND_FIELD_NUMBER = 2;
+ private volatile java.lang.Object kind_;
+ /**
+ * optional string kind = 2;
+ */
+ public boolean hasKind() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * optional string kind = 2;
+ */
+ public java.lang.String getKind() {
+ java.lang.Object ref = kind_;
+ 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()) {
+ kind_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * optional string kind = 2;
+ */
+ public com.google.protobuf.ByteString
+ getKindBytes() {
+ java.lang.Object ref = kind_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ kind_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, group_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kind_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, group_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kind_);
+ }
+ 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.Generated.GroupKind)) {
+ return super.equals(obj);
+ }
+ io.kubernetes.client.proto.Generated.GroupKind other = (io.kubernetes.client.proto.Generated.GroupKind) obj;
+
+ boolean result = true;
+ result = result && (hasGroup() == other.hasGroup());
+ if (hasGroup()) {
+ result = result && getGroup()
+ .equals(other.getGroup());
+ }
+ result = result && (hasKind() == other.hasKind());
+ if (hasKind()) {
+ result = result && getKind()
+ .equals(other.getKind());
+ }
+ 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 (hasGroup()) {
+ hash = (37 * hash) + GROUP_FIELD_NUMBER;
+ hash = (53 * hash) + getGroup().hashCode();
+ }
+ if (hasKind()) {
+ hash = (37 * hash) + KIND_FIELD_NUMBER;
+ hash = (53 * hash) + getKind().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.kubernetes.client.proto.Generated.GroupKind parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupKind 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.Generated.GroupKind parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupKind 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.Generated.GroupKind parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupKind parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupKind parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupKind 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.Generated.GroupKind parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupKind 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.Generated.GroupKind parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupKind parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.kubernetes.client.proto.Generated.GroupKind prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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;
+ }
+ /**
+ * + * GroupKind specifies a Group and a Kind, but does not force a version. This is useful for identifying + * concepts during lookup stages without having partially valid types + * + * +protobuf.options.(gogoproto.goproto_stringer)=false + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.GroupKind} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
optional string group = 1;
+ */
+ public boolean hasGroup() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * optional string group = 1;
+ */
+ public java.lang.String getGroup() {
+ java.lang.Object ref = group_;
+ 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()) {
+ group_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * optional string group = 1;
+ */
+ public com.google.protobuf.ByteString
+ getGroupBytes() {
+ java.lang.Object ref = group_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ group_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string group = 1;
+ */
+ public Builder setGroup(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ group_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string group = 1;
+ */
+ public Builder clearGroup() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ group_ = getDefaultInstance().getGroup();
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string group = 1;
+ */
+ public Builder setGroupBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ group_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object kind_ = "";
+ /**
+ * optional string kind = 2;
+ */
+ public boolean hasKind() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * optional string kind = 2;
+ */
+ public java.lang.String getKind() {
+ java.lang.Object ref = kind_;
+ 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()) {
+ kind_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * optional string kind = 2;
+ */
+ public com.google.protobuf.ByteString
+ getKindBytes() {
+ java.lang.Object ref = kind_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ kind_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string kind = 2;
+ */
+ public Builder setKind(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ kind_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string kind = 2;
+ */
+ public Builder clearKind() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ kind_ = getDefaultInstance().getKind();
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string kind = 2;
+ */
+ public Builder setKindBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ kind_ = value;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GroupKind)
+ }
+
+ // @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GroupKind)
+ private static final io.kubernetes.client.proto.Generated.GroupKind DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.kubernetes.client.proto.Generated.GroupKind();
+ }
+
+ public static io.kubernetes.client.proto.Generated.GroupKind getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parseroptional string group = 1;
+ */
+ boolean hasGroup();
+ /**
+ * optional string group = 1;
+ */
+ java.lang.String getGroup();
+ /**
+ * optional string group = 1;
+ */
+ com.google.protobuf.ByteString
+ getGroupBytes();
+
+ /**
+ * optional string resource = 2;
+ */
+ boolean hasResource();
+ /**
+ * optional string resource = 2;
+ */
+ java.lang.String getResource();
+ /**
+ * optional string resource = 2;
+ */
+ com.google.protobuf.ByteString
+ getResourceBytes();
+ }
+ /**
+ * + * GroupResource specifies a Group and a Resource, but does not force a version. This is useful for identifying + * concepts during lookup stages without having partially valid types + * + * +protobuf.options.(gogoproto.goproto_stringer)=false + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.GroupResource} + */ + public static final class GroupResource extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.GroupResource) + GroupResourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupResource.newBuilder() to construct. + private GroupResource(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private GroupResource() { + group_ = ""; + resource_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupResource( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + group_ = bs; + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + resource_ = bs; + 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.Generated.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupResource_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.Generated.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.Generated.GroupResource.class, io.kubernetes.client.proto.Generated.GroupResource.Builder.class); + } + + private int bitField0_; + public static final int GROUP_FIELD_NUMBER = 1; + private volatile java.lang.Object group_; + /** + *
optional string group = 1;
+ */
+ public boolean hasGroup() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * optional string group = 1;
+ */
+ public java.lang.String getGroup() {
+ java.lang.Object ref = group_;
+ 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()) {
+ group_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * optional string group = 1;
+ */
+ public com.google.protobuf.ByteString
+ getGroupBytes() {
+ java.lang.Object ref = group_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ group_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int RESOURCE_FIELD_NUMBER = 2;
+ private volatile java.lang.Object resource_;
+ /**
+ * optional string resource = 2;
+ */
+ public boolean hasResource() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * optional string resource = 2;
+ */
+ public java.lang.String getResource() {
+ java.lang.Object ref = resource_;
+ 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()) {
+ resource_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * optional string resource = 2;
+ */
+ public com.google.protobuf.ByteString
+ getResourceBytes() {
+ java.lang.Object ref = resource_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ resource_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, group_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resource_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, group_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resource_);
+ }
+ 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.Generated.GroupResource)) {
+ return super.equals(obj);
+ }
+ io.kubernetes.client.proto.Generated.GroupResource other = (io.kubernetes.client.proto.Generated.GroupResource) obj;
+
+ boolean result = true;
+ result = result && (hasGroup() == other.hasGroup());
+ if (hasGroup()) {
+ result = result && getGroup()
+ .equals(other.getGroup());
+ }
+ result = result && (hasResource() == other.hasResource());
+ if (hasResource()) {
+ result = result && getResource()
+ .equals(other.getResource());
+ }
+ 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 (hasGroup()) {
+ hash = (37 * hash) + GROUP_FIELD_NUMBER;
+ hash = (53 * hash) + getGroup().hashCode();
+ }
+ if (hasResource()) {
+ hash = (37 * hash) + RESOURCE_FIELD_NUMBER;
+ hash = (53 * hash) + getResource().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.kubernetes.client.proto.Generated.GroupResource parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupResource 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.Generated.GroupResource parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupResource 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.Generated.GroupResource parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupResource parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupResource parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupResource 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.Generated.GroupResource parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupResource 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.Generated.GroupResource parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupResource parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.kubernetes.client.proto.Generated.GroupResource prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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;
+ }
+ /**
+ * + * GroupResource specifies a Group and a Resource, but does not force a version. This is useful for identifying + * concepts during lookup stages without having partially valid types + * + * +protobuf.options.(gogoproto.goproto_stringer)=false + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.GroupResource} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
optional string group = 1;
+ */
+ public boolean hasGroup() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * optional string group = 1;
+ */
+ public java.lang.String getGroup() {
+ java.lang.Object ref = group_;
+ 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()) {
+ group_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * optional string group = 1;
+ */
+ public com.google.protobuf.ByteString
+ getGroupBytes() {
+ java.lang.Object ref = group_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ group_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string group = 1;
+ */
+ public Builder setGroup(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ group_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string group = 1;
+ */
+ public Builder clearGroup() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ group_ = getDefaultInstance().getGroup();
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string group = 1;
+ */
+ public Builder setGroupBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ group_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object resource_ = "";
+ /**
+ * optional string resource = 2;
+ */
+ public boolean hasResource() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * optional string resource = 2;
+ */
+ public java.lang.String getResource() {
+ java.lang.Object ref = resource_;
+ 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()) {
+ resource_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * optional string resource = 2;
+ */
+ public com.google.protobuf.ByteString
+ getResourceBytes() {
+ java.lang.Object ref = resource_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ resource_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string resource = 2;
+ */
+ public Builder setResource(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ resource_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string resource = 2;
+ */
+ public Builder clearResource() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ resource_ = getDefaultInstance().getResource();
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string resource = 2;
+ */
+ public Builder setResourceBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ resource_ = value;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GroupResource)
+ }
+
+ // @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GroupResource)
+ private static final io.kubernetes.client.proto.Generated.GroupResource DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.kubernetes.client.proto.Generated.GroupResource();
+ }
+
+ public static io.kubernetes.client.proto.Generated.GroupResource getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parseroptional string group = 1;
+ */
+ boolean hasGroup();
+ /**
+ * optional string group = 1;
+ */
+ java.lang.String getGroup();
+ /**
+ * optional string group = 1;
+ */
+ com.google.protobuf.ByteString
+ getGroupBytes();
+
+ /**
+ * optional string version = 2;
+ */
+ boolean hasVersion();
+ /**
+ * optional string version = 2;
+ */
+ java.lang.String getVersion();
+ /**
+ * optional string version = 2;
+ */
+ com.google.protobuf.ByteString
+ getVersionBytes();
+ }
+ /**
+ * + * GroupVersion contains the "group" and the "version", which uniquely identifies the API. + * + * +protobuf.options.(gogoproto.goproto_stringer)=false + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersion} + */ + public static final class GroupVersion extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersion) + GroupVersionOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupVersion.newBuilder() to construct. + private GroupVersion(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private GroupVersion() { + group_ = ""; + version_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupVersion( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + group_ = bs; + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + version_ = bs; + 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.Generated.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersion_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.Generated.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.Generated.GroupVersion.class, io.kubernetes.client.proto.Generated.GroupVersion.Builder.class); + } + + private int bitField0_; + public static final int GROUP_FIELD_NUMBER = 1; + private volatile java.lang.Object group_; + /** + *
optional string group = 1;
+ */
+ public boolean hasGroup() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * optional string group = 1;
+ */
+ public java.lang.String getGroup() {
+ java.lang.Object ref = group_;
+ 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()) {
+ group_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * optional string group = 1;
+ */
+ public com.google.protobuf.ByteString
+ getGroupBytes() {
+ java.lang.Object ref = group_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ group_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VERSION_FIELD_NUMBER = 2;
+ private volatile java.lang.Object version_;
+ /**
+ * optional string version = 2;
+ */
+ public boolean hasVersion() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * optional string version = 2;
+ */
+ public java.lang.String getVersion() {
+ java.lang.Object ref = version_;
+ 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()) {
+ version_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * optional string version = 2;
+ */
+ public com.google.protobuf.ByteString
+ getVersionBytes() {
+ java.lang.Object ref = version_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ version_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, group_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, group_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_);
+ }
+ 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.Generated.GroupVersion)) {
+ return super.equals(obj);
+ }
+ io.kubernetes.client.proto.Generated.GroupVersion other = (io.kubernetes.client.proto.Generated.GroupVersion) obj;
+
+ boolean result = true;
+ result = result && (hasGroup() == other.hasGroup());
+ if (hasGroup()) {
+ result = result && getGroup()
+ .equals(other.getGroup());
+ }
+ result = result && (hasVersion() == other.hasVersion());
+ if (hasVersion()) {
+ result = result && getVersion()
+ .equals(other.getVersion());
+ }
+ 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 (hasGroup()) {
+ hash = (37 * hash) + GROUP_FIELD_NUMBER;
+ hash = (53 * hash) + getGroup().hashCode();
+ }
+ if (hasVersion()) {
+ hash = (37 * hash) + VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getVersion().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.kubernetes.client.proto.Generated.GroupVersion parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupVersion 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.Generated.GroupVersion parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupVersion 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.Generated.GroupVersion parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupVersion parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupVersion parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupVersion 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.Generated.GroupVersion parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupVersion 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.Generated.GroupVersion parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupVersion parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.kubernetes.client.proto.Generated.GroupVersion prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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;
+ }
+ /**
+ * + * GroupVersion contains the "group" and the "version", which uniquely identifies the API. + * + * +protobuf.options.(gogoproto.goproto_stringer)=false + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersion} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
optional string group = 1;
+ */
+ public boolean hasGroup() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * optional string group = 1;
+ */
+ public java.lang.String getGroup() {
+ java.lang.Object ref = group_;
+ 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()) {
+ group_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * optional string group = 1;
+ */
+ public com.google.protobuf.ByteString
+ getGroupBytes() {
+ java.lang.Object ref = group_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ group_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string group = 1;
+ */
+ public Builder setGroup(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ group_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string group = 1;
+ */
+ public Builder clearGroup() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ group_ = getDefaultInstance().getGroup();
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string group = 1;
+ */
+ public Builder setGroupBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ group_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object version_ = "";
+ /**
+ * optional string version = 2;
+ */
+ public boolean hasVersion() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * optional string version = 2;
+ */
+ public java.lang.String getVersion() {
+ java.lang.Object ref = version_;
+ 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()) {
+ version_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * optional string version = 2;
+ */
+ public com.google.protobuf.ByteString
+ getVersionBytes() {
+ java.lang.Object ref = version_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ version_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string version = 2;
+ */
+ public Builder setVersion(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ version_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string version = 2;
+ */
+ public Builder clearVersion() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ version_ = getDefaultInstance().getVersion();
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string version = 2;
+ */
+ public Builder setVersionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ version_ = value;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersion)
+ }
+
+ // @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersion)
+ private static final io.kubernetes.client.proto.Generated.GroupVersion DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.kubernetes.client.proto.Generated.GroupVersion();
+ }
+
+ public static io.kubernetes.client.proto.Generated.GroupVersion getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser+ * groupVersion specifies the API group and version in the form "group/version" + *+ * + *
optional string groupVersion = 1;
+ */
+ boolean hasGroupVersion();
+ /**
+ * + * groupVersion specifies the API group and version in the form "group/version" + *+ * + *
optional string groupVersion = 1;
+ */
+ java.lang.String getGroupVersion();
+ /**
+ * + * groupVersion specifies the API group and version in the form "group/version" + *+ * + *
optional string groupVersion = 1;
+ */
+ com.google.protobuf.ByteString
+ getGroupVersionBytes();
+
+ /**
+ * + * version specifies the version in the form of "version". This is to save + * the clients the trouble of splitting the GroupVersion. + *+ * + *
optional string version = 2;
+ */
+ boolean hasVersion();
+ /**
+ * + * version specifies the version in the form of "version". This is to save + * the clients the trouble of splitting the GroupVersion. + *+ * + *
optional string version = 2;
+ */
+ java.lang.String getVersion();
+ /**
+ * + * version specifies the version in the form of "version". This is to save + * the clients the trouble of splitting the GroupVersion. + *+ * + *
optional string version = 2;
+ */
+ com.google.protobuf.ByteString
+ getVersionBytes();
+ }
+ /**
+ * + * GroupVersion contains the "group/version" and "version" string of a version. + * It is made a struct to keep extensibility. + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery} + */ + public static final class GroupVersionForDiscovery extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery) + GroupVersionForDiscoveryOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupVersionForDiscovery.newBuilder() to construct. + private GroupVersionForDiscovery(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private GroupVersionForDiscovery() { + groupVersion_ = ""; + version_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupVersionForDiscovery( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + groupVersion_ = bs; + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + version_ = bs; + 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.Generated.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersionForDiscovery_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.Generated.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersionForDiscovery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.Generated.GroupVersionForDiscovery.class, io.kubernetes.client.proto.Generated.GroupVersionForDiscovery.Builder.class); + } + + private int bitField0_; + public static final int GROUPVERSION_FIELD_NUMBER = 1; + private volatile java.lang.Object groupVersion_; + /** + *
+ * groupVersion specifies the API group and version in the form "group/version" + *+ * + *
optional string groupVersion = 1;
+ */
+ public boolean hasGroupVersion() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * + * groupVersion specifies the API group and version in the form "group/version" + *+ * + *
optional string groupVersion = 1;
+ */
+ public java.lang.String getGroupVersion() {
+ java.lang.Object ref = groupVersion_;
+ 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()) {
+ groupVersion_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * + * groupVersion specifies the API group and version in the form "group/version" + *+ * + *
optional string groupVersion = 1;
+ */
+ public com.google.protobuf.ByteString
+ getGroupVersionBytes() {
+ java.lang.Object ref = groupVersion_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ groupVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VERSION_FIELD_NUMBER = 2;
+ private volatile java.lang.Object version_;
+ /**
+ * + * version specifies the version in the form of "version". This is to save + * the clients the trouble of splitting the GroupVersion. + *+ * + *
optional string version = 2;
+ */
+ public boolean hasVersion() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * + * version specifies the version in the form of "version". This is to save + * the clients the trouble of splitting the GroupVersion. + *+ * + *
optional string version = 2;
+ */
+ public java.lang.String getVersion() {
+ java.lang.Object ref = version_;
+ 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()) {
+ version_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * + * version specifies the version in the form of "version". This is to save + * the clients the trouble of splitting the GroupVersion. + *+ * + *
optional string version = 2;
+ */
+ public com.google.protobuf.ByteString
+ getVersionBytes() {
+ java.lang.Object ref = version_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ version_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, groupVersion_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, groupVersion_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_);
+ }
+ 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.Generated.GroupVersionForDiscovery)) {
+ return super.equals(obj);
+ }
+ io.kubernetes.client.proto.Generated.GroupVersionForDiscovery other = (io.kubernetes.client.proto.Generated.GroupVersionForDiscovery) obj;
+
+ boolean result = true;
+ result = result && (hasGroupVersion() == other.hasGroupVersion());
+ if (hasGroupVersion()) {
+ result = result && getGroupVersion()
+ .equals(other.getGroupVersion());
+ }
+ result = result && (hasVersion() == other.hasVersion());
+ if (hasVersion()) {
+ result = result && getVersion()
+ .equals(other.getVersion());
+ }
+ 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 (hasGroupVersion()) {
+ hash = (37 * hash) + GROUPVERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getGroupVersion().hashCode();
+ }
+ if (hasVersion()) {
+ hash = (37 * hash) + VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getVersion().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.kubernetes.client.proto.Generated.GroupVersionForDiscovery parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupVersionForDiscovery 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.Generated.GroupVersionForDiscovery parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupVersionForDiscovery 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.Generated.GroupVersionForDiscovery parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupVersionForDiscovery parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupVersionForDiscovery parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupVersionForDiscovery 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.Generated.GroupVersionForDiscovery parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupVersionForDiscovery 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.Generated.GroupVersionForDiscovery parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupVersionForDiscovery parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.kubernetes.client.proto.Generated.GroupVersionForDiscovery prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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;
+ }
+ /**
+ * + * GroupVersion contains the "group/version" and "version" string of a version. + * It is made a struct to keep extensibility. + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * groupVersion specifies the API group and version in the form "group/version" + *+ * + *
optional string groupVersion = 1;
+ */
+ public boolean hasGroupVersion() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * + * groupVersion specifies the API group and version in the form "group/version" + *+ * + *
optional string groupVersion = 1;
+ */
+ public java.lang.String getGroupVersion() {
+ java.lang.Object ref = groupVersion_;
+ 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()) {
+ groupVersion_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * groupVersion specifies the API group and version in the form "group/version" + *+ * + *
optional string groupVersion = 1;
+ */
+ public com.google.protobuf.ByteString
+ getGroupVersionBytes() {
+ java.lang.Object ref = groupVersion_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ groupVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * groupVersion specifies the API group and version in the form "group/version" + *+ * + *
optional string groupVersion = 1;
+ */
+ public Builder setGroupVersion(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ groupVersion_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * groupVersion specifies the API group and version in the form "group/version" + *+ * + *
optional string groupVersion = 1;
+ */
+ public Builder clearGroupVersion() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ groupVersion_ = getDefaultInstance().getGroupVersion();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * groupVersion specifies the API group and version in the form "group/version" + *+ * + *
optional string groupVersion = 1;
+ */
+ public Builder setGroupVersionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ groupVersion_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object version_ = "";
+ /**
+ * + * version specifies the version in the form of "version". This is to save + * the clients the trouble of splitting the GroupVersion. + *+ * + *
optional string version = 2;
+ */
+ public boolean hasVersion() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * + * version specifies the version in the form of "version". This is to save + * the clients the trouble of splitting the GroupVersion. + *+ * + *
optional string version = 2;
+ */
+ public java.lang.String getVersion() {
+ java.lang.Object ref = version_;
+ 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()) {
+ version_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * version specifies the version in the form of "version". This is to save + * the clients the trouble of splitting the GroupVersion. + *+ * + *
optional string version = 2;
+ */
+ public com.google.protobuf.ByteString
+ getVersionBytes() {
+ java.lang.Object ref = version_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ version_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * version specifies the version in the form of "version". This is to save + * the clients the trouble of splitting the GroupVersion. + *+ * + *
optional string version = 2;
+ */
+ public Builder setVersion(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ version_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * version specifies the version in the form of "version". This is to save + * the clients the trouble of splitting the GroupVersion. + *+ * + *
optional string version = 2;
+ */
+ public Builder clearVersion() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ version_ = getDefaultInstance().getVersion();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * version specifies the version in the form of "version". This is to save + * the clients the trouble of splitting the GroupVersion. + *+ * + *
optional string version = 2;
+ */
+ public Builder setVersionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ version_ = value;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery)
+ }
+
+ // @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery)
+ private static final io.kubernetes.client.proto.Generated.GroupVersionForDiscovery DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.kubernetes.client.proto.Generated.GroupVersionForDiscovery();
+ }
+
+ public static io.kubernetes.client.proto.Generated.GroupVersionForDiscovery getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parseroptional string group = 1;
+ */
+ boolean hasGroup();
+ /**
+ * optional string group = 1;
+ */
+ java.lang.String getGroup();
+ /**
+ * optional string group = 1;
+ */
+ com.google.protobuf.ByteString
+ getGroupBytes();
+
+ /**
+ * optional string version = 2;
+ */
+ boolean hasVersion();
+ /**
+ * optional string version = 2;
+ */
+ java.lang.String getVersion();
+ /**
+ * optional string version = 2;
+ */
+ com.google.protobuf.ByteString
+ getVersionBytes();
+
+ /**
+ * optional string kind = 3;
+ */
+ boolean hasKind();
+ /**
+ * optional string kind = 3;
+ */
+ java.lang.String getKind();
+ /**
+ * optional string kind = 3;
+ */
+ com.google.protobuf.ByteString
+ getKindBytes();
+ }
+ /**
+ * + * GroupVersionKind unambiguously identifies a kind. It doesn't anonymously include GroupVersion + * to avoid automatic coersion. It doesn't use a GroupVersion to avoid custom marshalling + * + * +protobuf.options.(gogoproto.goproto_stringer)=false + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind} + */ + public static final class GroupVersionKind extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind) + GroupVersionKindOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupVersionKind.newBuilder() to construct. + private GroupVersionKind(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private GroupVersionKind() { + group_ = ""; + version_ = ""; + kind_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupVersionKind( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + group_ = bs; + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + version_ = bs; + break; + } + case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000004; + kind_ = bs; + 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.Generated.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersionKind_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.Generated.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersionKind_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.Generated.GroupVersionKind.class, io.kubernetes.client.proto.Generated.GroupVersionKind.Builder.class); + } + + private int bitField0_; + public static final int GROUP_FIELD_NUMBER = 1; + private volatile java.lang.Object group_; + /** + *
optional string group = 1;
+ */
+ public boolean hasGroup() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * optional string group = 1;
+ */
+ public java.lang.String getGroup() {
+ java.lang.Object ref = group_;
+ 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()) {
+ group_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * optional string group = 1;
+ */
+ public com.google.protobuf.ByteString
+ getGroupBytes() {
+ java.lang.Object ref = group_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ group_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VERSION_FIELD_NUMBER = 2;
+ private volatile java.lang.Object version_;
+ /**
+ * optional string version = 2;
+ */
+ public boolean hasVersion() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * optional string version = 2;
+ */
+ public java.lang.String getVersion() {
+ java.lang.Object ref = version_;
+ 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()) {
+ version_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * optional string version = 2;
+ */
+ public com.google.protobuf.ByteString
+ getVersionBytes() {
+ java.lang.Object ref = version_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ version_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int KIND_FIELD_NUMBER = 3;
+ private volatile java.lang.Object kind_;
+ /**
+ * optional string kind = 3;
+ */
+ public boolean hasKind() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * optional string kind = 3;
+ */
+ public java.lang.String getKind() {
+ java.lang.Object ref = kind_;
+ 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()) {
+ kind_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * optional string kind = 3;
+ */
+ public com.google.protobuf.ByteString
+ getKindBytes() {
+ java.lang.Object ref = kind_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ kind_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, group_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_);
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, kind_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, group_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_);
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, kind_);
+ }
+ 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.Generated.GroupVersionKind)) {
+ return super.equals(obj);
+ }
+ io.kubernetes.client.proto.Generated.GroupVersionKind other = (io.kubernetes.client.proto.Generated.GroupVersionKind) obj;
+
+ boolean result = true;
+ result = result && (hasGroup() == other.hasGroup());
+ if (hasGroup()) {
+ result = result && getGroup()
+ .equals(other.getGroup());
+ }
+ result = result && (hasVersion() == other.hasVersion());
+ if (hasVersion()) {
+ result = result && getVersion()
+ .equals(other.getVersion());
+ }
+ result = result && (hasKind() == other.hasKind());
+ if (hasKind()) {
+ result = result && getKind()
+ .equals(other.getKind());
+ }
+ 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 (hasGroup()) {
+ hash = (37 * hash) + GROUP_FIELD_NUMBER;
+ hash = (53 * hash) + getGroup().hashCode();
+ }
+ if (hasVersion()) {
+ hash = (37 * hash) + VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getVersion().hashCode();
+ }
+ if (hasKind()) {
+ hash = (37 * hash) + KIND_FIELD_NUMBER;
+ hash = (53 * hash) + getKind().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.kubernetes.client.proto.Generated.GroupVersionKind parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupVersionKind 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.Generated.GroupVersionKind parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupVersionKind 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.Generated.GroupVersionKind parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupVersionKind parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupVersionKind parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupVersionKind 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.Generated.GroupVersionKind parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupVersionKind 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.Generated.GroupVersionKind parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupVersionKind parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.kubernetes.client.proto.Generated.GroupVersionKind prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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;
+ }
+ /**
+ * + * GroupVersionKind unambiguously identifies a kind. It doesn't anonymously include GroupVersion + * to avoid automatic coersion. It doesn't use a GroupVersion to avoid custom marshalling + * + * +protobuf.options.(gogoproto.goproto_stringer)=false + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
optional string group = 1;
+ */
+ public boolean hasGroup() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * optional string group = 1;
+ */
+ public java.lang.String getGroup() {
+ java.lang.Object ref = group_;
+ 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()) {
+ group_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * optional string group = 1;
+ */
+ public com.google.protobuf.ByteString
+ getGroupBytes() {
+ java.lang.Object ref = group_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ group_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string group = 1;
+ */
+ public Builder setGroup(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ group_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string group = 1;
+ */
+ public Builder clearGroup() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ group_ = getDefaultInstance().getGroup();
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string group = 1;
+ */
+ public Builder setGroupBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ group_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object version_ = "";
+ /**
+ * optional string version = 2;
+ */
+ public boolean hasVersion() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * optional string version = 2;
+ */
+ public java.lang.String getVersion() {
+ java.lang.Object ref = version_;
+ 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()) {
+ version_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * optional string version = 2;
+ */
+ public com.google.protobuf.ByteString
+ getVersionBytes() {
+ java.lang.Object ref = version_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ version_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string version = 2;
+ */
+ public Builder setVersion(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ version_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string version = 2;
+ */
+ public Builder clearVersion() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ version_ = getDefaultInstance().getVersion();
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string version = 2;
+ */
+ public Builder setVersionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ version_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object kind_ = "";
+ /**
+ * optional string kind = 3;
+ */
+ public boolean hasKind() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * optional string kind = 3;
+ */
+ public java.lang.String getKind() {
+ java.lang.Object ref = kind_;
+ 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()) {
+ kind_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * optional string kind = 3;
+ */
+ public com.google.protobuf.ByteString
+ getKindBytes() {
+ java.lang.Object ref = kind_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ kind_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string kind = 3;
+ */
+ public Builder setKind(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
+ kind_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string kind = 3;
+ */
+ public Builder clearKind() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ kind_ = getDefaultInstance().getKind();
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string kind = 3;
+ */
+ public Builder setKindBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
+ kind_ = value;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind)
+ }
+
+ // @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind)
+ private static final io.kubernetes.client.proto.Generated.GroupVersionKind DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.kubernetes.client.proto.Generated.GroupVersionKind();
+ }
+
+ public static io.kubernetes.client.proto.Generated.GroupVersionKind getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parseroptional string group = 1;
+ */
+ boolean hasGroup();
+ /**
+ * optional string group = 1;
+ */
+ java.lang.String getGroup();
+ /**
+ * optional string group = 1;
+ */
+ com.google.protobuf.ByteString
+ getGroupBytes();
+
+ /**
+ * optional string version = 2;
+ */
+ boolean hasVersion();
+ /**
+ * optional string version = 2;
+ */
+ java.lang.String getVersion();
+ /**
+ * optional string version = 2;
+ */
+ com.google.protobuf.ByteString
+ getVersionBytes();
+
+ /**
+ * optional string resource = 3;
+ */
+ boolean hasResource();
+ /**
+ * optional string resource = 3;
+ */
+ java.lang.String getResource();
+ /**
+ * optional string resource = 3;
+ */
+ com.google.protobuf.ByteString
+ getResourceBytes();
+ }
+ /**
+ * + * GroupVersionResource unambiguously identifies a resource. It doesn't anonymously include GroupVersion + * to avoid automatic coersion. It doesn't use a GroupVersion to avoid custom marshalling + * + * +protobuf.options.(gogoproto.goproto_stringer)=false + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource} + */ + public static final class GroupVersionResource extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource) + GroupVersionResourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupVersionResource.newBuilder() to construct. + private GroupVersionResource(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private GroupVersionResource() { + group_ = ""; + version_ = ""; + resource_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupVersionResource( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + group_ = bs; + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + version_ = bs; + break; + } + case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000004; + resource_ = bs; + 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.Generated.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersionResource_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.Generated.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersionResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.Generated.GroupVersionResource.class, io.kubernetes.client.proto.Generated.GroupVersionResource.Builder.class); + } + + private int bitField0_; + public static final int GROUP_FIELD_NUMBER = 1; + private volatile java.lang.Object group_; + /** + *
optional string group = 1;
+ */
+ public boolean hasGroup() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * optional string group = 1;
+ */
+ public java.lang.String getGroup() {
+ java.lang.Object ref = group_;
+ 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()) {
+ group_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * optional string group = 1;
+ */
+ public com.google.protobuf.ByteString
+ getGroupBytes() {
+ java.lang.Object ref = group_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ group_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VERSION_FIELD_NUMBER = 2;
+ private volatile java.lang.Object version_;
+ /**
+ * optional string version = 2;
+ */
+ public boolean hasVersion() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * optional string version = 2;
+ */
+ public java.lang.String getVersion() {
+ java.lang.Object ref = version_;
+ 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()) {
+ version_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * optional string version = 2;
+ */
+ public com.google.protobuf.ByteString
+ getVersionBytes() {
+ java.lang.Object ref = version_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ version_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int RESOURCE_FIELD_NUMBER = 3;
+ private volatile java.lang.Object resource_;
+ /**
+ * optional string resource = 3;
+ */
+ public boolean hasResource() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * optional string resource = 3;
+ */
+ public java.lang.String getResource() {
+ java.lang.Object ref = resource_;
+ 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()) {
+ resource_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * optional string resource = 3;
+ */
+ public com.google.protobuf.ByteString
+ getResourceBytes() {
+ java.lang.Object ref = resource_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ resource_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, group_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_);
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, resource_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, group_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_);
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resource_);
+ }
+ 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.Generated.GroupVersionResource)) {
+ return super.equals(obj);
+ }
+ io.kubernetes.client.proto.Generated.GroupVersionResource other = (io.kubernetes.client.proto.Generated.GroupVersionResource) obj;
+
+ boolean result = true;
+ result = result && (hasGroup() == other.hasGroup());
+ if (hasGroup()) {
+ result = result && getGroup()
+ .equals(other.getGroup());
+ }
+ result = result && (hasVersion() == other.hasVersion());
+ if (hasVersion()) {
+ result = result && getVersion()
+ .equals(other.getVersion());
+ }
+ result = result && (hasResource() == other.hasResource());
+ if (hasResource()) {
+ result = result && getResource()
+ .equals(other.getResource());
+ }
+ 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 (hasGroup()) {
+ hash = (37 * hash) + GROUP_FIELD_NUMBER;
+ hash = (53 * hash) + getGroup().hashCode();
+ }
+ if (hasVersion()) {
+ hash = (37 * hash) + VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getVersion().hashCode();
+ }
+ if (hasResource()) {
+ hash = (37 * hash) + RESOURCE_FIELD_NUMBER;
+ hash = (53 * hash) + getResource().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.kubernetes.client.proto.Generated.GroupVersionResource parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupVersionResource 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.Generated.GroupVersionResource parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupVersionResource 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.Generated.GroupVersionResource parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupVersionResource parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupVersionResource parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupVersionResource 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.Generated.GroupVersionResource parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupVersionResource 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.Generated.GroupVersionResource parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.GroupVersionResource parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.kubernetes.client.proto.Generated.GroupVersionResource prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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;
+ }
+ /**
+ * + * GroupVersionResource unambiguously identifies a resource. It doesn't anonymously include GroupVersion + * to avoid automatic coersion. It doesn't use a GroupVersion to avoid custom marshalling + * + * +protobuf.options.(gogoproto.goproto_stringer)=false + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
optional string group = 1;
+ */
+ public boolean hasGroup() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * optional string group = 1;
+ */
+ public java.lang.String getGroup() {
+ java.lang.Object ref = group_;
+ 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()) {
+ group_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * optional string group = 1;
+ */
+ public com.google.protobuf.ByteString
+ getGroupBytes() {
+ java.lang.Object ref = group_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ group_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string group = 1;
+ */
+ public Builder setGroup(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ group_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string group = 1;
+ */
+ public Builder clearGroup() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ group_ = getDefaultInstance().getGroup();
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string group = 1;
+ */
+ public Builder setGroupBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ group_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object version_ = "";
+ /**
+ * optional string version = 2;
+ */
+ public boolean hasVersion() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * optional string version = 2;
+ */
+ public java.lang.String getVersion() {
+ java.lang.Object ref = version_;
+ 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()) {
+ version_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * optional string version = 2;
+ */
+ public com.google.protobuf.ByteString
+ getVersionBytes() {
+ java.lang.Object ref = version_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ version_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string version = 2;
+ */
+ public Builder setVersion(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ version_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string version = 2;
+ */
+ public Builder clearVersion() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ version_ = getDefaultInstance().getVersion();
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string version = 2;
+ */
+ public Builder setVersionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ version_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object resource_ = "";
+ /**
+ * optional string resource = 3;
+ */
+ public boolean hasResource() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * optional string resource = 3;
+ */
+ public java.lang.String getResource() {
+ java.lang.Object ref = resource_;
+ 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()) {
+ resource_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * optional string resource = 3;
+ */
+ public com.google.protobuf.ByteString
+ getResourceBytes() {
+ java.lang.Object ref = resource_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ resource_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string resource = 3;
+ */
+ public Builder setResource(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
+ resource_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string resource = 3;
+ */
+ public Builder clearResource() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ resource_ = getDefaultInstance().getResource();
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string resource = 3;
+ */
+ public Builder setResourceBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
+ resource_ = value;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource)
+ }
+
+ // @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource)
+ private static final io.kubernetes.client.proto.Generated.GroupVersionResource DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.kubernetes.client.proto.Generated.GroupVersionResource();
+ }
+
+ public static io.kubernetes.client.proto.Generated.GroupVersionResource getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser+ * name of the process that is responsible for initializing this object. + *+ * + *
optional string name = 1;
+ */
+ boolean hasName();
+ /**
+ * + * name of the process that is responsible for initializing this object. + *+ * + *
optional string name = 1;
+ */
+ java.lang.String getName();
+ /**
+ * + * name of the process that is responsible for initializing this object. + *+ * + *
optional string name = 1;
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+ }
+ /**
+ * + * Initializer is information about an initializer that has not yet completed. + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.Initializer} + */ + public static final class Initializer extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.Initializer) + InitializerOrBuilder { + private static final long serialVersionUID = 0L; + // Use Initializer.newBuilder() to construct. + private Initializer(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private Initializer() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Initializer( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + name_ = bs; + 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.Generated.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_Initializer_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.Generated.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_Initializer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.Generated.Initializer.class, io.kubernetes.client.proto.Generated.Initializer.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+ * name of the process that is responsible for initializing this object. + *+ * + *
optional string name = 1;
+ */
+ public boolean hasName() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * + * name of the process that is responsible for initializing this object. + *+ * + *
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 of the process that is responsible for initializing this object. + *+ * + *
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;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ 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);
+ }
+
+ 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.Generated.Initializer)) {
+ return super.equals(obj);
+ }
+ io.kubernetes.client.proto.Generated.Initializer other = (io.kubernetes.client.proto.Generated.Initializer) 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.Generated.Initializer parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.Initializer 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.Generated.Initializer parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.Initializer 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.Generated.Initializer parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.Initializer parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.kubernetes.client.proto.Generated.Initializer parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.Initializer 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.Generated.Initializer parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.Initializer 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.Generated.Initializer parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.Initializer parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.kubernetes.client.proto.Generated.Initializer prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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;
+ }
+ /**
+ * + * Initializer is information about an initializer that has not yet completed. + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.Initializer} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * name of the process that is responsible for initializing this object. + *+ * + *
optional string name = 1;
+ */
+ public boolean hasName() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * + * name of the process that is responsible for initializing this object. + *+ * + *
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 of the process that is responsible for initializing this object. + *+ * + *
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 of the process that is responsible for initializing this object. + *+ * + *
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 of the process that is responsible for initializing this object. + *+ * + *
optional string name = 1;
+ */
+ public Builder clearName() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * name of the process that is responsible for initializing this object. + *+ * + *
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;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.Initializer)
+ }
+
+ // @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.Initializer)
+ private static final io.kubernetes.client.proto.Generated.Initializer DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.kubernetes.client.proto.Generated.Initializer();
+ }
+
+ public static io.kubernetes.client.proto.Generated.Initializer getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser+ * Pending is a list of initializers that must execute in order before this object is visible. + * When the last pending initializer is removed, and no failing result is set, the initializers + * struct will be set to nil and the object is considered as initialized and visible to all + * clients. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Initializer pending = 1;
+ */
+ java.util.List+ * Pending is a list of initializers that must execute in order before this object is visible. + * When the last pending initializer is removed, and no failing result is set, the initializers + * struct will be set to nil and the object is considered as initialized and visible to all + * clients. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Initializer pending = 1;
+ */
+ io.kubernetes.client.proto.Generated.Initializer getPending(int index);
+ /**
+ * + * Pending is a list of initializers that must execute in order before this object is visible. + * When the last pending initializer is removed, and no failing result is set, the initializers + * struct will be set to nil and the object is considered as initialized and visible to all + * clients. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Initializer pending = 1;
+ */
+ int getPendingCount();
+ /**
+ * + * Pending is a list of initializers that must execute in order before this object is visible. + * When the last pending initializer is removed, and no failing result is set, the initializers + * struct will be set to nil and the object is considered as initialized and visible to all + * clients. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Initializer pending = 1;
+ */
+ java.util.List extends io.kubernetes.client.proto.Generated.InitializerOrBuilder>
+ getPendingOrBuilderList();
+ /**
+ * + * Pending is a list of initializers that must execute in order before this object is visible. + * When the last pending initializer is removed, and no failing result is set, the initializers + * struct will be set to nil and the object is considered as initialized and visible to all + * clients. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Initializer pending = 1;
+ */
+ io.kubernetes.client.proto.Generated.InitializerOrBuilder getPendingOrBuilder(
+ int index);
+
+ /**
+ * + * If result is set with the Failure field, the object will be persisted to storage and then deleted, + * ensuring that other clients can observe the deletion. + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Status result = 2;
+ */
+ boolean hasResult();
+ /**
+ * + * If result is set with the Failure field, the object will be persisted to storage and then deleted, + * ensuring that other clients can observe the deletion. + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Status result = 2;
+ */
+ io.kubernetes.client.proto.Generated.Status getResult();
+ /**
+ * + * If result is set with the Failure field, the object will be persisted to storage and then deleted, + * ensuring that other clients can observe the deletion. + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Status result = 2;
+ */
+ io.kubernetes.client.proto.Generated.StatusOrBuilder getResultOrBuilder();
+ }
+ /**
+ * + * Initializers tracks the progress of initialization. + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.Initializers} + */ + public static final class Initializers extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.Initializers) + InitializersOrBuilder { + private static final long serialVersionUID = 0L; + // Use Initializers.newBuilder() to construct. + private Initializers(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private Initializers() { + pending_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Initializers( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + pending_ = new java.util.ArrayList
+ * Pending is a list of initializers that must execute in order before this object is visible. + * When the last pending initializer is removed, and no failing result is set, the initializers + * struct will be set to nil and the object is considered as initialized and visible to all + * clients. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Initializer pending = 1;
+ */
+ public java.util.List+ * Pending is a list of initializers that must execute in order before this object is visible. + * When the last pending initializer is removed, and no failing result is set, the initializers + * struct will be set to nil and the object is considered as initialized and visible to all + * clients. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Initializer pending = 1;
+ */
+ public java.util.List extends io.kubernetes.client.proto.Generated.InitializerOrBuilder>
+ getPendingOrBuilderList() {
+ return pending_;
+ }
+ /**
+ * + * Pending is a list of initializers that must execute in order before this object is visible. + * When the last pending initializer is removed, and no failing result is set, the initializers + * struct will be set to nil and the object is considered as initialized and visible to all + * clients. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Initializer pending = 1;
+ */
+ public int getPendingCount() {
+ return pending_.size();
+ }
+ /**
+ * + * Pending is a list of initializers that must execute in order before this object is visible. + * When the last pending initializer is removed, and no failing result is set, the initializers + * struct will be set to nil and the object is considered as initialized and visible to all + * clients. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Initializer pending = 1;
+ */
+ public io.kubernetes.client.proto.Generated.Initializer getPending(int index) {
+ return pending_.get(index);
+ }
+ /**
+ * + * Pending is a list of initializers that must execute in order before this object is visible. + * When the last pending initializer is removed, and no failing result is set, the initializers + * struct will be set to nil and the object is considered as initialized and visible to all + * clients. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Initializer pending = 1;
+ */
+ public io.kubernetes.client.proto.Generated.InitializerOrBuilder getPendingOrBuilder(
+ int index) {
+ return pending_.get(index);
+ }
+
+ public static final int RESULT_FIELD_NUMBER = 2;
+ private io.kubernetes.client.proto.Generated.Status result_;
+ /**
+ * + * If result is set with the Failure field, the object will be persisted to storage and then deleted, + * ensuring that other clients can observe the deletion. + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Status result = 2;
+ */
+ public boolean hasResult() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * + * If result is set with the Failure field, the object will be persisted to storage and then deleted, + * ensuring that other clients can observe the deletion. + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Status result = 2;
+ */
+ public io.kubernetes.client.proto.Generated.Status getResult() {
+ return result_ == null ? io.kubernetes.client.proto.Generated.Status.getDefaultInstance() : result_;
+ }
+ /**
+ * + * If result is set with the Failure field, the object will be persisted to storage and then deleted, + * ensuring that other clients can observe the deletion. + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Status result = 2;
+ */
+ public io.kubernetes.client.proto.Generated.StatusOrBuilder getResultOrBuilder() {
+ return result_ == null ? io.kubernetes.client.proto.Generated.Status.getDefaultInstance() : result_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < pending_.size(); i++) {
+ output.writeMessage(1, pending_.get(i));
+ }
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeMessage(2, getResult());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < pending_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, pending_.get(i));
+ }
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getResult());
+ }
+ 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.Generated.Initializers)) {
+ return super.equals(obj);
+ }
+ io.kubernetes.client.proto.Generated.Initializers other = (io.kubernetes.client.proto.Generated.Initializers) obj;
+
+ boolean result = true;
+ result = result && getPendingList()
+ .equals(other.getPendingList());
+ result = result && (hasResult() == other.hasResult());
+ if (hasResult()) {
+ result = result && getResult()
+ .equals(other.getResult());
+ }
+ 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 (getPendingCount() > 0) {
+ hash = (37 * hash) + PENDING_FIELD_NUMBER;
+ hash = (53 * hash) + getPendingList().hashCode();
+ }
+ if (hasResult()) {
+ hash = (37 * hash) + RESULT_FIELD_NUMBER;
+ hash = (53 * hash) + getResult().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.kubernetes.client.proto.Generated.Initializers parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.Initializers 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.Generated.Initializers parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.Initializers 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.Generated.Initializers parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.Initializers parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.kubernetes.client.proto.Generated.Initializers parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.Initializers 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.Generated.Initializers parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.Initializers 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.Generated.Initializers parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.Initializers parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.kubernetes.client.proto.Generated.Initializers prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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;
+ }
+ /**
+ * + * Initializers tracks the progress of initialization. + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.Initializers} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * Pending is a list of initializers that must execute in order before this object is visible. + * When the last pending initializer is removed, and no failing result is set, the initializers + * struct will be set to nil and the object is considered as initialized and visible to all + * clients. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Initializer pending = 1;
+ */
+ public java.util.List+ * Pending is a list of initializers that must execute in order before this object is visible. + * When the last pending initializer is removed, and no failing result is set, the initializers + * struct will be set to nil and the object is considered as initialized and visible to all + * clients. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Initializer pending = 1;
+ */
+ public int getPendingCount() {
+ if (pendingBuilder_ == null) {
+ return pending_.size();
+ } else {
+ return pendingBuilder_.getCount();
+ }
+ }
+ /**
+ * + * Pending is a list of initializers that must execute in order before this object is visible. + * When the last pending initializer is removed, and no failing result is set, the initializers + * struct will be set to nil and the object is considered as initialized and visible to all + * clients. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Initializer pending = 1;
+ */
+ public io.kubernetes.client.proto.Generated.Initializer getPending(int index) {
+ if (pendingBuilder_ == null) {
+ return pending_.get(index);
+ } else {
+ return pendingBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * + * Pending is a list of initializers that must execute in order before this object is visible. + * When the last pending initializer is removed, and no failing result is set, the initializers + * struct will be set to nil and the object is considered as initialized and visible to all + * clients. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Initializer pending = 1;
+ */
+ public Builder setPending(
+ int index, io.kubernetes.client.proto.Generated.Initializer value) {
+ if (pendingBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePendingIsMutable();
+ pending_.set(index, value);
+ onChanged();
+ } else {
+ pendingBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * Pending is a list of initializers that must execute in order before this object is visible. + * When the last pending initializer is removed, and no failing result is set, the initializers + * struct will be set to nil and the object is considered as initialized and visible to all + * clients. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Initializer pending = 1;
+ */
+ public Builder setPending(
+ int index, io.kubernetes.client.proto.Generated.Initializer.Builder builderForValue) {
+ if (pendingBuilder_ == null) {
+ ensurePendingIsMutable();
+ pending_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ pendingBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * Pending is a list of initializers that must execute in order before this object is visible. + * When the last pending initializer is removed, and no failing result is set, the initializers + * struct will be set to nil and the object is considered as initialized and visible to all + * clients. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Initializer pending = 1;
+ */
+ public Builder addPending(io.kubernetes.client.proto.Generated.Initializer value) {
+ if (pendingBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePendingIsMutable();
+ pending_.add(value);
+ onChanged();
+ } else {
+ pendingBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * + * Pending is a list of initializers that must execute in order before this object is visible. + * When the last pending initializer is removed, and no failing result is set, the initializers + * struct will be set to nil and the object is considered as initialized and visible to all + * clients. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Initializer pending = 1;
+ */
+ public Builder addPending(
+ int index, io.kubernetes.client.proto.Generated.Initializer value) {
+ if (pendingBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePendingIsMutable();
+ pending_.add(index, value);
+ onChanged();
+ } else {
+ pendingBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * Pending is a list of initializers that must execute in order before this object is visible. + * When the last pending initializer is removed, and no failing result is set, the initializers + * struct will be set to nil and the object is considered as initialized and visible to all + * clients. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Initializer pending = 1;
+ */
+ public Builder addPending(
+ io.kubernetes.client.proto.Generated.Initializer.Builder builderForValue) {
+ if (pendingBuilder_ == null) {
+ ensurePendingIsMutable();
+ pending_.add(builderForValue.build());
+ onChanged();
+ } else {
+ pendingBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * Pending is a list of initializers that must execute in order before this object is visible. + * When the last pending initializer is removed, and no failing result is set, the initializers + * struct will be set to nil and the object is considered as initialized and visible to all + * clients. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Initializer pending = 1;
+ */
+ public Builder addPending(
+ int index, io.kubernetes.client.proto.Generated.Initializer.Builder builderForValue) {
+ if (pendingBuilder_ == null) {
+ ensurePendingIsMutable();
+ pending_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ pendingBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * Pending is a list of initializers that must execute in order before this object is visible. + * When the last pending initializer is removed, and no failing result is set, the initializers + * struct will be set to nil and the object is considered as initialized and visible to all + * clients. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Initializer pending = 1;
+ */
+ public Builder addAllPending(
+ java.lang.Iterable extends io.kubernetes.client.proto.Generated.Initializer> values) {
+ if (pendingBuilder_ == null) {
+ ensurePendingIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, pending_);
+ onChanged();
+ } else {
+ pendingBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * + * Pending is a list of initializers that must execute in order before this object is visible. + * When the last pending initializer is removed, and no failing result is set, the initializers + * struct will be set to nil and the object is considered as initialized and visible to all + * clients. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Initializer pending = 1;
+ */
+ public Builder clearPending() {
+ if (pendingBuilder_ == null) {
+ pending_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ pendingBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * + * Pending is a list of initializers that must execute in order before this object is visible. + * When the last pending initializer is removed, and no failing result is set, the initializers + * struct will be set to nil and the object is considered as initialized and visible to all + * clients. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Initializer pending = 1;
+ */
+ public Builder removePending(int index) {
+ if (pendingBuilder_ == null) {
+ ensurePendingIsMutable();
+ pending_.remove(index);
+ onChanged();
+ } else {
+ pendingBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * + * Pending is a list of initializers that must execute in order before this object is visible. + * When the last pending initializer is removed, and no failing result is set, the initializers + * struct will be set to nil and the object is considered as initialized and visible to all + * clients. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Initializer pending = 1;
+ */
+ public io.kubernetes.client.proto.Generated.Initializer.Builder getPendingBuilder(
+ int index) {
+ return getPendingFieldBuilder().getBuilder(index);
+ }
+ /**
+ * + * Pending is a list of initializers that must execute in order before this object is visible. + * When the last pending initializer is removed, and no failing result is set, the initializers + * struct will be set to nil and the object is considered as initialized and visible to all + * clients. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Initializer pending = 1;
+ */
+ public io.kubernetes.client.proto.Generated.InitializerOrBuilder getPendingOrBuilder(
+ int index) {
+ if (pendingBuilder_ == null) {
+ return pending_.get(index); } else {
+ return pendingBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * + * Pending is a list of initializers that must execute in order before this object is visible. + * When the last pending initializer is removed, and no failing result is set, the initializers + * struct will be set to nil and the object is considered as initialized and visible to all + * clients. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Initializer pending = 1;
+ */
+ public java.util.List extends io.kubernetes.client.proto.Generated.InitializerOrBuilder>
+ getPendingOrBuilderList() {
+ if (pendingBuilder_ != null) {
+ return pendingBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(pending_);
+ }
+ }
+ /**
+ * + * Pending is a list of initializers that must execute in order before this object is visible. + * When the last pending initializer is removed, and no failing result is set, the initializers + * struct will be set to nil and the object is considered as initialized and visible to all + * clients. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Initializer pending = 1;
+ */
+ public io.kubernetes.client.proto.Generated.Initializer.Builder addPendingBuilder() {
+ return getPendingFieldBuilder().addBuilder(
+ io.kubernetes.client.proto.Generated.Initializer.getDefaultInstance());
+ }
+ /**
+ * + * Pending is a list of initializers that must execute in order before this object is visible. + * When the last pending initializer is removed, and no failing result is set, the initializers + * struct will be set to nil and the object is considered as initialized and visible to all + * clients. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Initializer pending = 1;
+ */
+ public io.kubernetes.client.proto.Generated.Initializer.Builder addPendingBuilder(
+ int index) {
+ return getPendingFieldBuilder().addBuilder(
+ index, io.kubernetes.client.proto.Generated.Initializer.getDefaultInstance());
+ }
+ /**
+ * + * Pending is a list of initializers that must execute in order before this object is visible. + * When the last pending initializer is removed, and no failing result is set, the initializers + * struct will be set to nil and the object is considered as initialized and visible to all + * clients. + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Initializer pending = 1;
+ */
+ public java.util.List+ * If result is set with the Failure field, the object will be persisted to storage and then deleted, + * ensuring that other clients can observe the deletion. + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Status result = 2;
+ */
+ public boolean hasResult() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * + * If result is set with the Failure field, the object will be persisted to storage and then deleted, + * ensuring that other clients can observe the deletion. + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Status result = 2;
+ */
+ public io.kubernetes.client.proto.Generated.Status getResult() {
+ if (resultBuilder_ == null) {
+ return result_ == null ? io.kubernetes.client.proto.Generated.Status.getDefaultInstance() : result_;
+ } else {
+ return resultBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * If result is set with the Failure field, the object will be persisted to storage and then deleted, + * ensuring that other clients can observe the deletion. + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Status result = 2;
+ */
+ public Builder setResult(io.kubernetes.client.proto.Generated.Status value) {
+ if (resultBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ result_ = value;
+ onChanged();
+ } else {
+ resultBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ return this;
+ }
+ /**
+ * + * If result is set with the Failure field, the object will be persisted to storage and then deleted, + * ensuring that other clients can observe the deletion. + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Status result = 2;
+ */
+ public Builder setResult(
+ io.kubernetes.client.proto.Generated.Status.Builder builderForValue) {
+ if (resultBuilder_ == null) {
+ result_ = builderForValue.build();
+ onChanged();
+ } else {
+ resultBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ return this;
+ }
+ /**
+ * + * If result is set with the Failure field, the object will be persisted to storage and then deleted, + * ensuring that other clients can observe the deletion. + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Status result = 2;
+ */
+ public Builder mergeResult(io.kubernetes.client.proto.Generated.Status value) {
+ if (resultBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) == 0x00000002) &&
+ result_ != null &&
+ result_ != io.kubernetes.client.proto.Generated.Status.getDefaultInstance()) {
+ result_ =
+ io.kubernetes.client.proto.Generated.Status.newBuilder(result_).mergeFrom(value).buildPartial();
+ } else {
+ result_ = value;
+ }
+ onChanged();
+ } else {
+ resultBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ return this;
+ }
+ /**
+ * + * If result is set with the Failure field, the object will be persisted to storage and then deleted, + * ensuring that other clients can observe the deletion. + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Status result = 2;
+ */
+ public Builder clearResult() {
+ if (resultBuilder_ == null) {
+ result_ = null;
+ onChanged();
+ } else {
+ resultBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000002);
+ return this;
+ }
+ /**
+ * + * If result is set with the Failure field, the object will be persisted to storage and then deleted, + * ensuring that other clients can observe the deletion. + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Status result = 2;
+ */
+ public io.kubernetes.client.proto.Generated.Status.Builder getResultBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getResultFieldBuilder().getBuilder();
+ }
+ /**
+ * + * If result is set with the Failure field, the object will be persisted to storage and then deleted, + * ensuring that other clients can observe the deletion. + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Status result = 2;
+ */
+ public io.kubernetes.client.proto.Generated.StatusOrBuilder getResultOrBuilder() {
+ if (resultBuilder_ != null) {
+ return resultBuilder_.getMessageOrBuilder();
+ } else {
+ return result_ == null ?
+ io.kubernetes.client.proto.Generated.Status.getDefaultInstance() : result_;
+ }
+ }
+ /**
+ * + * If result is set with the Failure field, the object will be persisted to storage and then deleted, + * ensuring that other clients can observe the deletion. + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Status result = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.kubernetes.client.proto.Generated.Status, io.kubernetes.client.proto.Generated.Status.Builder, io.kubernetes.client.proto.Generated.StatusOrBuilder>
+ getResultFieldBuilder() {
+ if (resultBuilder_ == null) {
+ resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.kubernetes.client.proto.Generated.Status, io.kubernetes.client.proto.Generated.Status.Builder, io.kubernetes.client.proto.Generated.StatusOrBuilder>(
+ getResult(),
+ getParentForChildren(),
+ isClean());
+ result_ = null;
+ }
+ return resultBuilder_;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.Initializers)
+ }
+
+ // @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.Initializers)
+ private static final io.kubernetes.client.proto.Generated.Initializers DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.kubernetes.client.proto.Generated.Initializers();
+ }
+
+ public static io.kubernetes.client.proto.Generated.Initializers getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser+ * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + * +optional + *+ * + *
map<string, string> matchLabels = 1;
+ */
+ int getMatchLabelsCount();
+ /**
+ * + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + * +optional + *+ * + *
map<string, string> matchLabels = 1;
+ */
+ boolean containsMatchLabels(
+ java.lang.String key);
+ /**
+ * Use {@link #getMatchLabelsMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Map+ * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + * +optional + *+ * + *
map<string, string> matchLabels = 1;
+ */
+ java.util.Map+ * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + * +optional + *+ * + *
map<string, string> matchLabels = 1;
+ */
+
+ java.lang.String getMatchLabelsOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue);
+ /**
+ * + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + * +optional + *+ * + *
map<string, string> matchLabels = 1;
+ */
+
+ java.lang.String getMatchLabelsOrThrow(
+ java.lang.String key);
+
+ /**
+ * + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + * +optional + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement matchExpressions = 2;
+ */
+ java.util.List+ * matchExpressions is a list of label selector requirements. The requirements are ANDed. + * +optional + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement matchExpressions = 2;
+ */
+ io.kubernetes.client.proto.Generated.LabelSelectorRequirement getMatchExpressions(int index);
+ /**
+ * + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + * +optional + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement matchExpressions = 2;
+ */
+ int getMatchExpressionsCount();
+ /**
+ * + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + * +optional + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement matchExpressions = 2;
+ */
+ java.util.List extends io.kubernetes.client.proto.Generated.LabelSelectorRequirementOrBuilder>
+ getMatchExpressionsOrBuilderList();
+ /**
+ * + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + * +optional + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement matchExpressions = 2;
+ */
+ io.kubernetes.client.proto.Generated.LabelSelectorRequirementOrBuilder getMatchExpressionsOrBuilder(
+ int index);
+ }
+ /**
+ * + * A label selector is a label query over a set of resources. The result of matchLabels and + * matchExpressions are ANDed. An empty label selector matches all objects. A null + * label selector matches no objects. + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector} + */ + public static final class LabelSelector extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector) + LabelSelectorOrBuilder { + private static final long serialVersionUID = 0L; + // Use LabelSelector.newBuilder() to construct. + private LabelSelector(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private LabelSelector() { + matchExpressions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LabelSelector( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + matchLabels_ = com.google.protobuf.MapField.newMapField( + MatchLabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry
+ * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + * +optional + *+ * + *
map<string, string> matchLabels = 1;
+ */
+
+ public boolean containsMatchLabels(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetMatchLabels().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getMatchLabelsMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Map+ * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + * +optional + *+ * + *
map<string, string> matchLabels = 1;
+ */
+
+ public java.util.Map+ * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + * +optional + *+ * + *
map<string, string> matchLabels = 1;
+ */
+
+ public java.lang.String getMatchLabelsOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + * +optional + *+ * + *
map<string, string> matchLabels = 1;
+ */
+
+ public java.lang.String getMatchLabelsOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * matchExpressions is a list of label selector requirements. The requirements are ANDed. + * +optional + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement matchExpressions = 2;
+ */
+ public java.util.List+ * matchExpressions is a list of label selector requirements. The requirements are ANDed. + * +optional + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement matchExpressions = 2;
+ */
+ public java.util.List extends io.kubernetes.client.proto.Generated.LabelSelectorRequirementOrBuilder>
+ getMatchExpressionsOrBuilderList() {
+ return matchExpressions_;
+ }
+ /**
+ * + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + * +optional + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement matchExpressions = 2;
+ */
+ public int getMatchExpressionsCount() {
+ return matchExpressions_.size();
+ }
+ /**
+ * + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + * +optional + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement matchExpressions = 2;
+ */
+ public io.kubernetes.client.proto.Generated.LabelSelectorRequirement getMatchExpressions(int index) {
+ return matchExpressions_.get(index);
+ }
+ /**
+ * + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + * +optional + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement matchExpressions = 2;
+ */
+ public io.kubernetes.client.proto.Generated.LabelSelectorRequirementOrBuilder getMatchExpressionsOrBuilder(
+ int index) {
+ return matchExpressions_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ com.google.protobuf.GeneratedMessageV3
+ .serializeStringMapTo(
+ output,
+ internalGetMatchLabels(),
+ MatchLabelsDefaultEntryHolder.defaultEntry,
+ 1);
+ for (int i = 0; i < matchExpressions_.size(); i++) {
+ output.writeMessage(2, matchExpressions_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (java.util.Map.Entry+ * A label selector is a label query over a set of resources. The result of matchLabels and + * matchExpressions are ANDed. An empty label selector matches all objects. A null + * label selector matches no objects. + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + * +optional + *+ * + *
map<string, string> matchLabels = 1;
+ */
+
+ public boolean containsMatchLabels(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetMatchLabels().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getMatchLabelsMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Map+ * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + * +optional + *+ * + *
map<string, string> matchLabels = 1;
+ */
+
+ public java.util.Map+ * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + * +optional + *+ * + *
map<string, string> matchLabels = 1;
+ */
+
+ public java.lang.String getMatchLabelsOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + * +optional + *+ * + *
map<string, string> matchLabels = 1;
+ */
+
+ public java.lang.String getMatchLabelsOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + * +optional + *+ * + *
map<string, string> matchLabels = 1;
+ */
+
+ public Builder removeMatchLabels(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableMatchLabels().getMutableMap()
+ .remove(key);
+ return this;
+ }
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Map+ * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + * +optional + *+ * + *
map<string, string> matchLabels = 1;
+ */
+ public Builder putMatchLabels(
+ java.lang.String key,
+ java.lang.String value) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ if (value == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableMatchLabels().getMutableMap()
+ .put(key, value);
+ return this;
+ }
+ /**
+ * + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + * map is equivalent to an element of matchExpressions, whose key field is "key", the + * operator is "In", and the values array contains only "value". The requirements are ANDed. + * +optional + *+ * + *
map<string, string> matchLabels = 1;
+ */
+
+ public Builder putAllMatchLabels(
+ java.util.Map+ * matchExpressions is a list of label selector requirements. The requirements are ANDed. + * +optional + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement matchExpressions = 2;
+ */
+ public java.util.List+ * matchExpressions is a list of label selector requirements. The requirements are ANDed. + * +optional + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement matchExpressions = 2;
+ */
+ public int getMatchExpressionsCount() {
+ if (matchExpressionsBuilder_ == null) {
+ return matchExpressions_.size();
+ } else {
+ return matchExpressionsBuilder_.getCount();
+ }
+ }
+ /**
+ * + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + * +optional + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement matchExpressions = 2;
+ */
+ public io.kubernetes.client.proto.Generated.LabelSelectorRequirement getMatchExpressions(int index) {
+ if (matchExpressionsBuilder_ == null) {
+ return matchExpressions_.get(index);
+ } else {
+ return matchExpressionsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + * +optional + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement matchExpressions = 2;
+ */
+ public Builder setMatchExpressions(
+ int index, io.kubernetes.client.proto.Generated.LabelSelectorRequirement value) {
+ if (matchExpressionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureMatchExpressionsIsMutable();
+ matchExpressions_.set(index, value);
+ onChanged();
+ } else {
+ matchExpressionsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + * +optional + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement matchExpressions = 2;
+ */
+ public Builder setMatchExpressions(
+ int index, io.kubernetes.client.proto.Generated.LabelSelectorRequirement.Builder builderForValue) {
+ if (matchExpressionsBuilder_ == null) {
+ ensureMatchExpressionsIsMutable();
+ matchExpressions_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ matchExpressionsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + * +optional + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement matchExpressions = 2;
+ */
+ public Builder addMatchExpressions(io.kubernetes.client.proto.Generated.LabelSelectorRequirement value) {
+ if (matchExpressionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureMatchExpressionsIsMutable();
+ matchExpressions_.add(value);
+ onChanged();
+ } else {
+ matchExpressionsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + * +optional + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement matchExpressions = 2;
+ */
+ public Builder addMatchExpressions(
+ int index, io.kubernetes.client.proto.Generated.LabelSelectorRequirement value) {
+ if (matchExpressionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureMatchExpressionsIsMutable();
+ matchExpressions_.add(index, value);
+ onChanged();
+ } else {
+ matchExpressionsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + * +optional + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement matchExpressions = 2;
+ */
+ public Builder addMatchExpressions(
+ io.kubernetes.client.proto.Generated.LabelSelectorRequirement.Builder builderForValue) {
+ if (matchExpressionsBuilder_ == null) {
+ ensureMatchExpressionsIsMutable();
+ matchExpressions_.add(builderForValue.build());
+ onChanged();
+ } else {
+ matchExpressionsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + * +optional + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement matchExpressions = 2;
+ */
+ public Builder addMatchExpressions(
+ int index, io.kubernetes.client.proto.Generated.LabelSelectorRequirement.Builder builderForValue) {
+ if (matchExpressionsBuilder_ == null) {
+ ensureMatchExpressionsIsMutable();
+ matchExpressions_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ matchExpressionsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + * +optional + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement matchExpressions = 2;
+ */
+ public Builder addAllMatchExpressions(
+ java.lang.Iterable extends io.kubernetes.client.proto.Generated.LabelSelectorRequirement> values) {
+ if (matchExpressionsBuilder_ == null) {
+ ensureMatchExpressionsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, matchExpressions_);
+ onChanged();
+ } else {
+ matchExpressionsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + * +optional + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement matchExpressions = 2;
+ */
+ public Builder clearMatchExpressions() {
+ if (matchExpressionsBuilder_ == null) {
+ matchExpressions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ matchExpressionsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + * +optional + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement matchExpressions = 2;
+ */
+ public Builder removeMatchExpressions(int index) {
+ if (matchExpressionsBuilder_ == null) {
+ ensureMatchExpressionsIsMutable();
+ matchExpressions_.remove(index);
+ onChanged();
+ } else {
+ matchExpressionsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + * +optional + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement matchExpressions = 2;
+ */
+ public io.kubernetes.client.proto.Generated.LabelSelectorRequirement.Builder getMatchExpressionsBuilder(
+ int index) {
+ return getMatchExpressionsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + * +optional + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement matchExpressions = 2;
+ */
+ public io.kubernetes.client.proto.Generated.LabelSelectorRequirementOrBuilder getMatchExpressionsOrBuilder(
+ int index) {
+ if (matchExpressionsBuilder_ == null) {
+ return matchExpressions_.get(index); } else {
+ return matchExpressionsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + * +optional + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement matchExpressions = 2;
+ */
+ public java.util.List extends io.kubernetes.client.proto.Generated.LabelSelectorRequirementOrBuilder>
+ getMatchExpressionsOrBuilderList() {
+ if (matchExpressionsBuilder_ != null) {
+ return matchExpressionsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(matchExpressions_);
+ }
+ }
+ /**
+ * + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + * +optional + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement matchExpressions = 2;
+ */
+ public io.kubernetes.client.proto.Generated.LabelSelectorRequirement.Builder addMatchExpressionsBuilder() {
+ return getMatchExpressionsFieldBuilder().addBuilder(
+ io.kubernetes.client.proto.Generated.LabelSelectorRequirement.getDefaultInstance());
+ }
+ /**
+ * + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + * +optional + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement matchExpressions = 2;
+ */
+ public io.kubernetes.client.proto.Generated.LabelSelectorRequirement.Builder addMatchExpressionsBuilder(
+ int index) {
+ return getMatchExpressionsFieldBuilder().addBuilder(
+ index, io.kubernetes.client.proto.Generated.LabelSelectorRequirement.getDefaultInstance());
+ }
+ /**
+ * + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + * +optional + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement matchExpressions = 2;
+ */
+ public java.util.List+ * key is the label key that the selector applies to. + * +patchMergeKey=key + * +patchStrategy=merge + *+ * + *
optional string key = 1;
+ */
+ boolean hasKey();
+ /**
+ * + * key is the label key that the selector applies to. + * +patchMergeKey=key + * +patchStrategy=merge + *+ * + *
optional string key = 1;
+ */
+ java.lang.String getKey();
+ /**
+ * + * key is the label key that the selector applies to. + * +patchMergeKey=key + * +patchStrategy=merge + *+ * + *
optional string key = 1;
+ */
+ com.google.protobuf.ByteString
+ getKeyBytes();
+
+ /**
+ * + * operator represents a key's relationship to a set of values. + * Valid operators ard In, NotIn, Exists and DoesNotExist. + *+ * + *
optional string operator = 2;
+ */
+ boolean hasOperator();
+ /**
+ * + * operator represents a key's relationship to a set of values. + * Valid operators ard In, NotIn, Exists and DoesNotExist. + *+ * + *
optional string operator = 2;
+ */
+ java.lang.String getOperator();
+ /**
+ * + * operator represents a key's relationship to a set of values. + * Valid operators ard In, NotIn, Exists and DoesNotExist. + *+ * + *
optional string operator = 2;
+ */
+ com.google.protobuf.ByteString
+ getOperatorBytes();
+
+ /**
+ * + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + * +optional + *+ * + *
repeated string values = 3;
+ */
+ java.util.List+ * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + * +optional + *+ * + *
repeated string values = 3;
+ */
+ int getValuesCount();
+ /**
+ * + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + * +optional + *+ * + *
repeated string values = 3;
+ */
+ java.lang.String getValues(int index);
+ /**
+ * + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + * +optional + *+ * + *
repeated string values = 3;
+ */
+ com.google.protobuf.ByteString
+ getValuesBytes(int index);
+ }
+ /**
+ * + * A label selector requirement is a selector that contains values, a key, and an operator that + * relates the key and values. + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement} + */ + public static final class LabelSelectorRequirement extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement) + LabelSelectorRequirementOrBuilder { + private static final long serialVersionUID = 0L; + // Use LabelSelectorRequirement.newBuilder() to construct. + private LabelSelectorRequirement(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private LabelSelectorRequirement() { + key_ = ""; + operator_ = ""; + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LabelSelectorRequirement( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + key_ = bs; + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + operator_ = bs; + break; + } + case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + values_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + values_.add(bs); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + values_ = values_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.Generated.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_LabelSelectorRequirement_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.Generated.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_LabelSelectorRequirement_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.Generated.LabelSelectorRequirement.class, io.kubernetes.client.proto.Generated.LabelSelectorRequirement.Builder.class); + } + + private int bitField0_; + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; + /** + *
+ * key is the label key that the selector applies to. + * +patchMergeKey=key + * +patchStrategy=merge + *+ * + *
optional string key = 1;
+ */
+ public boolean hasKey() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * + * key is the label key that the selector applies to. + * +patchMergeKey=key + * +patchStrategy=merge + *+ * + *
optional string key = 1;
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ 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()) {
+ key_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * + * key is the label key that the selector applies to. + * +patchMergeKey=key + * +patchStrategy=merge + *+ * + *
optional string key = 1;
+ */
+ public com.google.protobuf.ByteString
+ getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int OPERATOR_FIELD_NUMBER = 2;
+ private volatile java.lang.Object operator_;
+ /**
+ * + * operator represents a key's relationship to a set of values. + * Valid operators ard In, NotIn, Exists and DoesNotExist. + *+ * + *
optional string operator = 2;
+ */
+ public boolean hasOperator() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * + * operator represents a key's relationship to a set of values. + * Valid operators ard In, NotIn, Exists and DoesNotExist. + *+ * + *
optional string operator = 2;
+ */
+ public java.lang.String getOperator() {
+ java.lang.Object ref = operator_;
+ 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()) {
+ operator_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * + * operator represents a key's relationship to a set of values. + * Valid operators ard In, NotIn, Exists and DoesNotExist. + *+ * + *
optional string operator = 2;
+ */
+ public com.google.protobuf.ByteString
+ getOperatorBytes() {
+ java.lang.Object ref = operator_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ operator_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VALUES_FIELD_NUMBER = 3;
+ private com.google.protobuf.LazyStringList values_;
+ /**
+ * + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + * +optional + *+ * + *
repeated string values = 3;
+ */
+ public com.google.protobuf.ProtocolStringList
+ getValuesList() {
+ return values_;
+ }
+ /**
+ * + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + * +optional + *+ * + *
repeated string values = 3;
+ */
+ public int getValuesCount() {
+ return values_.size();
+ }
+ /**
+ * + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + * +optional + *+ * + *
repeated string values = 3;
+ */
+ public java.lang.String getValues(int index) {
+ return values_.get(index);
+ }
+ /**
+ * + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + * +optional + *+ * + *
repeated string values = 3;
+ */
+ public com.google.protobuf.ByteString
+ getValuesBytes(int index) {
+ return values_.getByteString(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, operator_);
+ }
+ for (int i = 0; i < values_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, values_.getRaw(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, operator_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < values_.size(); i++) {
+ dataSize += computeStringSizeNoTag(values_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getValuesList().size();
+ }
+ 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.Generated.LabelSelectorRequirement)) {
+ return super.equals(obj);
+ }
+ io.kubernetes.client.proto.Generated.LabelSelectorRequirement other = (io.kubernetes.client.proto.Generated.LabelSelectorRequirement) obj;
+
+ boolean result = true;
+ result = result && (hasKey() == other.hasKey());
+ if (hasKey()) {
+ result = result && getKey()
+ .equals(other.getKey());
+ }
+ result = result && (hasOperator() == other.hasOperator());
+ if (hasOperator()) {
+ result = result && getOperator()
+ .equals(other.getOperator());
+ }
+ result = result && getValuesList()
+ .equals(other.getValuesList());
+ 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 (hasKey()) {
+ hash = (37 * hash) + KEY_FIELD_NUMBER;
+ hash = (53 * hash) + getKey().hashCode();
+ }
+ if (hasOperator()) {
+ hash = (37 * hash) + OPERATOR_FIELD_NUMBER;
+ hash = (53 * hash) + getOperator().hashCode();
+ }
+ if (getValuesCount() > 0) {
+ hash = (37 * hash) + VALUES_FIELD_NUMBER;
+ hash = (53 * hash) + getValuesList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.kubernetes.client.proto.Generated.LabelSelectorRequirement parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.LabelSelectorRequirement 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.Generated.LabelSelectorRequirement parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.LabelSelectorRequirement 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.Generated.LabelSelectorRequirement parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.LabelSelectorRequirement parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.kubernetes.client.proto.Generated.LabelSelectorRequirement parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.LabelSelectorRequirement 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.Generated.LabelSelectorRequirement parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.LabelSelectorRequirement 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.Generated.LabelSelectorRequirement parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.LabelSelectorRequirement parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.kubernetes.client.proto.Generated.LabelSelectorRequirement prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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;
+ }
+ /**
+ * + * A label selector requirement is a selector that contains values, a key, and an operator that + * relates the key and values. + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * key is the label key that the selector applies to. + * +patchMergeKey=key + * +patchStrategy=merge + *+ * + *
optional string key = 1;
+ */
+ public boolean hasKey() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * + * key is the label key that the selector applies to. + * +patchMergeKey=key + * +patchStrategy=merge + *+ * + *
optional string key = 1;
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ 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()) {
+ key_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * key is the label key that the selector applies to. + * +patchMergeKey=key + * +patchStrategy=merge + *+ * + *
optional string key = 1;
+ */
+ public com.google.protobuf.ByteString
+ getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * key is the label key that the selector applies to. + * +patchMergeKey=key + * +patchStrategy=merge + *+ * + *
optional string key = 1;
+ */
+ public Builder setKey(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ key_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * key is the label key that the selector applies to. + * +patchMergeKey=key + * +patchStrategy=merge + *+ * + *
optional string key = 1;
+ */
+ public Builder clearKey() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ key_ = getDefaultInstance().getKey();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * key is the label key that the selector applies to. + * +patchMergeKey=key + * +patchStrategy=merge + *+ * + *
optional string key = 1;
+ */
+ public Builder setKeyBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ key_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object operator_ = "";
+ /**
+ * + * operator represents a key's relationship to a set of values. + * Valid operators ard In, NotIn, Exists and DoesNotExist. + *+ * + *
optional string operator = 2;
+ */
+ public boolean hasOperator() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * + * operator represents a key's relationship to a set of values. + * Valid operators ard In, NotIn, Exists and DoesNotExist. + *+ * + *
optional string operator = 2;
+ */
+ public java.lang.String getOperator() {
+ java.lang.Object ref = operator_;
+ 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()) {
+ operator_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * operator represents a key's relationship to a set of values. + * Valid operators ard In, NotIn, Exists and DoesNotExist. + *+ * + *
optional string operator = 2;
+ */
+ public com.google.protobuf.ByteString
+ getOperatorBytes() {
+ java.lang.Object ref = operator_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ operator_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * operator represents a key's relationship to a set of values. + * Valid operators ard In, NotIn, Exists and DoesNotExist. + *+ * + *
optional string operator = 2;
+ */
+ public Builder setOperator(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ operator_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * operator represents a key's relationship to a set of values. + * Valid operators ard In, NotIn, Exists and DoesNotExist. + *+ * + *
optional string operator = 2;
+ */
+ public Builder clearOperator() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ operator_ = getDefaultInstance().getOperator();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * operator represents a key's relationship to a set of values. + * Valid operators ard In, NotIn, Exists and DoesNotExist. + *+ * + *
optional string operator = 2;
+ */
+ public Builder setOperatorBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ operator_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ private void ensureValuesIsMutable() {
+ if (!((bitField0_ & 0x00000004) == 0x00000004)) {
+ values_ = new com.google.protobuf.LazyStringArrayList(values_);
+ bitField0_ |= 0x00000004;
+ }
+ }
+ /**
+ * + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + * +optional + *+ * + *
repeated string values = 3;
+ */
+ public com.google.protobuf.ProtocolStringList
+ getValuesList() {
+ return values_.getUnmodifiableView();
+ }
+ /**
+ * + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + * +optional + *+ * + *
repeated string values = 3;
+ */
+ public int getValuesCount() {
+ return values_.size();
+ }
+ /**
+ * + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + * +optional + *+ * + *
repeated string values = 3;
+ */
+ public java.lang.String getValues(int index) {
+ return values_.get(index);
+ }
+ /**
+ * + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + * +optional + *+ * + *
repeated string values = 3;
+ */
+ public com.google.protobuf.ByteString
+ getValuesBytes(int index) {
+ return values_.getByteString(index);
+ }
+ /**
+ * + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + * +optional + *+ * + *
repeated string values = 3;
+ */
+ public Builder setValues(
+ int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValuesIsMutable();
+ values_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + * +optional + *+ * + *
repeated string values = 3;
+ */
+ public Builder addValues(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValuesIsMutable();
+ values_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + * +optional + *+ * + *
repeated string values = 3;
+ */
+ public Builder addAllValues(
+ java.lang.Iterable+ * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + * +optional + *+ * + *
repeated string values = 3;
+ */
+ public Builder clearValues() {
+ values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * values is an array of string values. If the operator is In or NotIn, + * the values array must be non-empty. If the operator is Exists or DoesNotExist, + * the values array must be empty. This array is replaced during a strategic + * merge patch. + * +optional + *+ * + *
repeated string values = 3;
+ */
+ public Builder addValuesBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValuesIsMutable();
+ values_.add(value);
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement)
+ }
+
+ // @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement)
+ private static final io.kubernetes.client.proto.Generated.LabelSelectorRequirement DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.kubernetes.client.proto.Generated.LabelSelectorRequirement();
+ }
+
+ public static io.kubernetes.client.proto.Generated.LabelSelectorRequirement getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser+ * SelfLink is a URL representing this object. + * Populated by the system. + * Read-only. + * +optional + *+ * + *
optional string selfLink = 1;
+ */
+ boolean hasSelfLink();
+ /**
+ * + * SelfLink is a URL representing this object. + * Populated by the system. + * Read-only. + * +optional + *+ * + *
optional string selfLink = 1;
+ */
+ java.lang.String getSelfLink();
+ /**
+ * + * SelfLink is a URL representing this object. + * Populated by the system. + * Read-only. + * +optional + *+ * + *
optional string selfLink = 1;
+ */
+ com.google.protobuf.ByteString
+ getSelfLinkBytes();
+
+ /**
+ * + * String that identifies the server's internal version of this object that + * can be used by clients to determine when objects have changed. + * Value must be treated as opaque by clients and passed unmodified back to the server. + * Populated by the system. + * Read-only. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + * +optional + *+ * + *
optional string resourceVersion = 2;
+ */
+ boolean hasResourceVersion();
+ /**
+ * + * String that identifies the server's internal version of this object that + * can be used by clients to determine when objects have changed. + * Value must be treated as opaque by clients and passed unmodified back to the server. + * Populated by the system. + * Read-only. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + * +optional + *+ * + *
optional string resourceVersion = 2;
+ */
+ java.lang.String getResourceVersion();
+ /**
+ * + * String that identifies the server's internal version of this object that + * can be used by clients to determine when objects have changed. + * Value must be treated as opaque by clients and passed unmodified back to the server. + * Populated by the system. + * Read-only. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + * +optional + *+ * + *
optional string resourceVersion = 2;
+ */
+ com.google.protobuf.ByteString
+ getResourceVersionBytes();
+ }
+ /**
+ * + * ListMeta describes metadata that synthetic resources must have, including lists and + * various status objects. A resource may have only one of {ObjectMeta, ListMeta}. + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta} + */ + public static final class ListMeta extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta) + ListMetaOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListMeta.newBuilder() to construct. + private ListMeta(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private ListMeta() { + selfLink_ = ""; + resourceVersion_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListMeta( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + selfLink_ = bs; + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + resourceVersion_ = bs; + 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.Generated.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_ListMeta_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.Generated.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_ListMeta_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.Generated.ListMeta.class, io.kubernetes.client.proto.Generated.ListMeta.Builder.class); + } + + private int bitField0_; + public static final int SELFLINK_FIELD_NUMBER = 1; + private volatile java.lang.Object selfLink_; + /** + *
+ * SelfLink is a URL representing this object. + * Populated by the system. + * Read-only. + * +optional + *+ * + *
optional string selfLink = 1;
+ */
+ public boolean hasSelfLink() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * + * SelfLink is a URL representing this object. + * Populated by the system. + * Read-only. + * +optional + *+ * + *
optional string selfLink = 1;
+ */
+ public java.lang.String getSelfLink() {
+ java.lang.Object ref = selfLink_;
+ 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()) {
+ selfLink_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * + * SelfLink is a URL representing this object. + * Populated by the system. + * Read-only. + * +optional + *+ * + *
optional string selfLink = 1;
+ */
+ public com.google.protobuf.ByteString
+ getSelfLinkBytes() {
+ java.lang.Object ref = selfLink_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ selfLink_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int RESOURCEVERSION_FIELD_NUMBER = 2;
+ private volatile java.lang.Object resourceVersion_;
+ /**
+ * + * String that identifies the server's internal version of this object that + * can be used by clients to determine when objects have changed. + * Value must be treated as opaque by clients and passed unmodified back to the server. + * Populated by the system. + * Read-only. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + * +optional + *+ * + *
optional string resourceVersion = 2;
+ */
+ public boolean hasResourceVersion() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * + * String that identifies the server's internal version of this object that + * can be used by clients to determine when objects have changed. + * Value must be treated as opaque by clients and passed unmodified back to the server. + * Populated by the system. + * Read-only. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + * +optional + *+ * + *
optional string resourceVersion = 2;
+ */
+ public java.lang.String getResourceVersion() {
+ java.lang.Object ref = resourceVersion_;
+ 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()) {
+ resourceVersion_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * + * String that identifies the server's internal version of this object that + * can be used by clients to determine when objects have changed. + * Value must be treated as opaque by clients and passed unmodified back to the server. + * Populated by the system. + * Read-only. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + * +optional + *+ * + *
optional string resourceVersion = 2;
+ */
+ public com.google.protobuf.ByteString
+ getResourceVersionBytes() {
+ java.lang.Object ref = resourceVersion_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ resourceVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, selfLink_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resourceVersion_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, selfLink_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resourceVersion_);
+ }
+ 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.Generated.ListMeta)) {
+ return super.equals(obj);
+ }
+ io.kubernetes.client.proto.Generated.ListMeta other = (io.kubernetes.client.proto.Generated.ListMeta) obj;
+
+ boolean result = true;
+ result = result && (hasSelfLink() == other.hasSelfLink());
+ if (hasSelfLink()) {
+ result = result && getSelfLink()
+ .equals(other.getSelfLink());
+ }
+ result = result && (hasResourceVersion() == other.hasResourceVersion());
+ if (hasResourceVersion()) {
+ result = result && getResourceVersion()
+ .equals(other.getResourceVersion());
+ }
+ 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 (hasSelfLink()) {
+ hash = (37 * hash) + SELFLINK_FIELD_NUMBER;
+ hash = (53 * hash) + getSelfLink().hashCode();
+ }
+ if (hasResourceVersion()) {
+ hash = (37 * hash) + RESOURCEVERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getResourceVersion().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.kubernetes.client.proto.Generated.ListMeta parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.ListMeta 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.Generated.ListMeta parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.ListMeta 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.Generated.ListMeta parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.ListMeta parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.kubernetes.client.proto.Generated.ListMeta parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.ListMeta 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.Generated.ListMeta parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.ListMeta 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.Generated.ListMeta parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.ListMeta parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.kubernetes.client.proto.Generated.ListMeta prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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;
+ }
+ /**
+ * + * ListMeta describes metadata that synthetic resources must have, including lists and + * various status objects. A resource may have only one of {ObjectMeta, ListMeta}. + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * SelfLink is a URL representing this object. + * Populated by the system. + * Read-only. + * +optional + *+ * + *
optional string selfLink = 1;
+ */
+ public boolean hasSelfLink() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * + * SelfLink is a URL representing this object. + * Populated by the system. + * Read-only. + * +optional + *+ * + *
optional string selfLink = 1;
+ */
+ public java.lang.String getSelfLink() {
+ java.lang.Object ref = selfLink_;
+ 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()) {
+ selfLink_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * SelfLink is a URL representing this object. + * Populated by the system. + * Read-only. + * +optional + *+ * + *
optional string selfLink = 1;
+ */
+ public com.google.protobuf.ByteString
+ getSelfLinkBytes() {
+ java.lang.Object ref = selfLink_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ selfLink_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * SelfLink is a URL representing this object. + * Populated by the system. + * Read-only. + * +optional + *+ * + *
optional string selfLink = 1;
+ */
+ public Builder setSelfLink(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ selfLink_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * SelfLink is a URL representing this object. + * Populated by the system. + * Read-only. + * +optional + *+ * + *
optional string selfLink = 1;
+ */
+ public Builder clearSelfLink() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ selfLink_ = getDefaultInstance().getSelfLink();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * SelfLink is a URL representing this object. + * Populated by the system. + * Read-only. + * +optional + *+ * + *
optional string selfLink = 1;
+ */
+ public Builder setSelfLinkBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ selfLink_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object resourceVersion_ = "";
+ /**
+ * + * String that identifies the server's internal version of this object that + * can be used by clients to determine when objects have changed. + * Value must be treated as opaque by clients and passed unmodified back to the server. + * Populated by the system. + * Read-only. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + * +optional + *+ * + *
optional string resourceVersion = 2;
+ */
+ public boolean hasResourceVersion() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * + * String that identifies the server's internal version of this object that + * can be used by clients to determine when objects have changed. + * Value must be treated as opaque by clients and passed unmodified back to the server. + * Populated by the system. + * Read-only. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + * +optional + *+ * + *
optional string resourceVersion = 2;
+ */
+ public java.lang.String getResourceVersion() {
+ java.lang.Object ref = resourceVersion_;
+ 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()) {
+ resourceVersion_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * String that identifies the server's internal version of this object that + * can be used by clients to determine when objects have changed. + * Value must be treated as opaque by clients and passed unmodified back to the server. + * Populated by the system. + * Read-only. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + * +optional + *+ * + *
optional string resourceVersion = 2;
+ */
+ public com.google.protobuf.ByteString
+ getResourceVersionBytes() {
+ java.lang.Object ref = resourceVersion_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ resourceVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * String that identifies the server's internal version of this object that + * can be used by clients to determine when objects have changed. + * Value must be treated as opaque by clients and passed unmodified back to the server. + * Populated by the system. + * Read-only. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + * +optional + *+ * + *
optional string resourceVersion = 2;
+ */
+ public Builder setResourceVersion(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ resourceVersion_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * String that identifies the server's internal version of this object that + * can be used by clients to determine when objects have changed. + * Value must be treated as opaque by clients and passed unmodified back to the server. + * Populated by the system. + * Read-only. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + * +optional + *+ * + *
optional string resourceVersion = 2;
+ */
+ public Builder clearResourceVersion() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ resourceVersion_ = getDefaultInstance().getResourceVersion();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * String that identifies the server's internal version of this object that + * can be used by clients to determine when objects have changed. + * Value must be treated as opaque by clients and passed unmodified back to the server. + * Populated by the system. + * Read-only. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + * +optional + *+ * + *
optional string resourceVersion = 2;
+ */
+ public Builder setResourceVersionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ resourceVersion_ = value;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta)
+ }
+
+ // @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta)
+ private static final io.kubernetes.client.proto.Generated.ListMeta DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.kubernetes.client.proto.Generated.ListMeta();
+ }
+
+ public static io.kubernetes.client.proto.Generated.ListMeta getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser+ * A selector to restrict the list of returned objects by their labels. + * Defaults to everything. + * +optional + *+ * + *
optional string labelSelector = 1;
+ */
+ boolean hasLabelSelector();
+ /**
+ * + * A selector to restrict the list of returned objects by their labels. + * Defaults to everything. + * +optional + *+ * + *
optional string labelSelector = 1;
+ */
+ java.lang.String getLabelSelector();
+ /**
+ * + * A selector to restrict the list of returned objects by their labels. + * Defaults to everything. + * +optional + *+ * + *
optional string labelSelector = 1;
+ */
+ com.google.protobuf.ByteString
+ getLabelSelectorBytes();
+
+ /**
+ * + * A selector to restrict the list of returned objects by their fields. + * Defaults to everything. + * +optional + *+ * + *
optional string fieldSelector = 2;
+ */
+ boolean hasFieldSelector();
+ /**
+ * + * A selector to restrict the list of returned objects by their fields. + * Defaults to everything. + * +optional + *+ * + *
optional string fieldSelector = 2;
+ */
+ java.lang.String getFieldSelector();
+ /**
+ * + * A selector to restrict the list of returned objects by their fields. + * Defaults to everything. + * +optional + *+ * + *
optional string fieldSelector = 2;
+ */
+ com.google.protobuf.ByteString
+ getFieldSelectorBytes();
+
+ /**
+ * + * If true, partially initialized resources are included in the response. + * +optional + *+ * + *
optional bool includeUninitialized = 6;
+ */
+ boolean hasIncludeUninitialized();
+ /**
+ * + * If true, partially initialized resources are included in the response. + * +optional + *+ * + *
optional bool includeUninitialized = 6;
+ */
+ boolean getIncludeUninitialized();
+
+ /**
+ * + * Watch for changes to the described resources and return them as a stream of + * add, update, and remove notifications. Specify resourceVersion. + * +optional + *+ * + *
optional bool watch = 3;
+ */
+ boolean hasWatch();
+ /**
+ * + * Watch for changes to the described resources and return them as a stream of + * add, update, and remove notifications. Specify resourceVersion. + * +optional + *+ * + *
optional bool watch = 3;
+ */
+ boolean getWatch();
+
+ /**
+ * + * When specified with a watch call, shows changes that occur after that particular version of a resource. + * Defaults to changes from the beginning of history. + * When specified for list: + * - if unset, then the result is returned from remote storage based on quorum-read flag; + * - if it's 0, then we simply return what we currently have in cache, no guarantee; + * - if set to non zero, then the result is at least as fresh as given rv. + * +optional + *+ * + *
optional string resourceVersion = 4;
+ */
+ boolean hasResourceVersion();
+ /**
+ * + * When specified with a watch call, shows changes that occur after that particular version of a resource. + * Defaults to changes from the beginning of history. + * When specified for list: + * - if unset, then the result is returned from remote storage based on quorum-read flag; + * - if it's 0, then we simply return what we currently have in cache, no guarantee; + * - if set to non zero, then the result is at least as fresh as given rv. + * +optional + *+ * + *
optional string resourceVersion = 4;
+ */
+ java.lang.String getResourceVersion();
+ /**
+ * + * When specified with a watch call, shows changes that occur after that particular version of a resource. + * Defaults to changes from the beginning of history. + * When specified for list: + * - if unset, then the result is returned from remote storage based on quorum-read flag; + * - if it's 0, then we simply return what we currently have in cache, no guarantee; + * - if set to non zero, then the result is at least as fresh as given rv. + * +optional + *+ * + *
optional string resourceVersion = 4;
+ */
+ com.google.protobuf.ByteString
+ getResourceVersionBytes();
+
+ /**
+ * + * Timeout for the list/watch call. + * +optional + *+ * + *
optional int64 timeoutSeconds = 5;
+ */
+ boolean hasTimeoutSeconds();
+ /**
+ * + * Timeout for the list/watch call. + * +optional + *+ * + *
optional int64 timeoutSeconds = 5;
+ */
+ long getTimeoutSeconds();
+ }
+ /**
+ * + * ListOptions is the query options to a standard REST list call. + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.ListOptions} + */ + public static final class ListOptions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.ListOptions) + ListOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListOptions.newBuilder() to construct. + private ListOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private ListOptions() { + labelSelector_ = ""; + fieldSelector_ = ""; + includeUninitialized_ = false; + watch_ = false; + resourceVersion_ = ""; + timeoutSeconds_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListOptions( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + labelSelector_ = bs; + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + fieldSelector_ = bs; + break; + } + case 24: { + bitField0_ |= 0x00000008; + watch_ = input.readBool(); + break; + } + case 34: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000010; + resourceVersion_ = bs; + break; + } + case 40: { + bitField0_ |= 0x00000020; + timeoutSeconds_ = input.readInt64(); + break; + } + case 48: { + bitField0_ |= 0x00000004; + includeUninitialized_ = input.readBool(); + 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.Generated.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_ListOptions_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.Generated.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_ListOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.Generated.ListOptions.class, io.kubernetes.client.proto.Generated.ListOptions.Builder.class); + } + + private int bitField0_; + public static final int LABELSELECTOR_FIELD_NUMBER = 1; + private volatile java.lang.Object labelSelector_; + /** + *
+ * A selector to restrict the list of returned objects by their labels. + * Defaults to everything. + * +optional + *+ * + *
optional string labelSelector = 1;
+ */
+ public boolean hasLabelSelector() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * + * A selector to restrict the list of returned objects by their labels. + * Defaults to everything. + * +optional + *+ * + *
optional string labelSelector = 1;
+ */
+ public java.lang.String getLabelSelector() {
+ java.lang.Object ref = labelSelector_;
+ 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()) {
+ labelSelector_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * + * A selector to restrict the list of returned objects by their labels. + * Defaults to everything. + * +optional + *+ * + *
optional string labelSelector = 1;
+ */
+ public com.google.protobuf.ByteString
+ getLabelSelectorBytes() {
+ java.lang.Object ref = labelSelector_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ labelSelector_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int FIELDSELECTOR_FIELD_NUMBER = 2;
+ private volatile java.lang.Object fieldSelector_;
+ /**
+ * + * A selector to restrict the list of returned objects by their fields. + * Defaults to everything. + * +optional + *+ * + *
optional string fieldSelector = 2;
+ */
+ public boolean hasFieldSelector() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * + * A selector to restrict the list of returned objects by their fields. + * Defaults to everything. + * +optional + *+ * + *
optional string fieldSelector = 2;
+ */
+ public java.lang.String getFieldSelector() {
+ java.lang.Object ref = fieldSelector_;
+ 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()) {
+ fieldSelector_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * + * A selector to restrict the list of returned objects by their fields. + * Defaults to everything. + * +optional + *+ * + *
optional string fieldSelector = 2;
+ */
+ public com.google.protobuf.ByteString
+ getFieldSelectorBytes() {
+ java.lang.Object ref = fieldSelector_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ fieldSelector_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int INCLUDEUNINITIALIZED_FIELD_NUMBER = 6;
+ private boolean includeUninitialized_;
+ /**
+ * + * If true, partially initialized resources are included in the response. + * +optional + *+ * + *
optional bool includeUninitialized = 6;
+ */
+ public boolean hasIncludeUninitialized() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * + * If true, partially initialized resources are included in the response. + * +optional + *+ * + *
optional bool includeUninitialized = 6;
+ */
+ public boolean getIncludeUninitialized() {
+ return includeUninitialized_;
+ }
+
+ public static final int WATCH_FIELD_NUMBER = 3;
+ private boolean watch_;
+ /**
+ * + * Watch for changes to the described resources and return them as a stream of + * add, update, and remove notifications. Specify resourceVersion. + * +optional + *+ * + *
optional bool watch = 3;
+ */
+ public boolean hasWatch() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+ /**
+ * + * Watch for changes to the described resources and return them as a stream of + * add, update, and remove notifications. Specify resourceVersion. + * +optional + *+ * + *
optional bool watch = 3;
+ */
+ public boolean getWatch() {
+ return watch_;
+ }
+
+ public static final int RESOURCEVERSION_FIELD_NUMBER = 4;
+ private volatile java.lang.Object resourceVersion_;
+ /**
+ * + * When specified with a watch call, shows changes that occur after that particular version of a resource. + * Defaults to changes from the beginning of history. + * When specified for list: + * - if unset, then the result is returned from remote storage based on quorum-read flag; + * - if it's 0, then we simply return what we currently have in cache, no guarantee; + * - if set to non zero, then the result is at least as fresh as given rv. + * +optional + *+ * + *
optional string resourceVersion = 4;
+ */
+ public boolean hasResourceVersion() {
+ return ((bitField0_ & 0x00000010) == 0x00000010);
+ }
+ /**
+ * + * When specified with a watch call, shows changes that occur after that particular version of a resource. + * Defaults to changes from the beginning of history. + * When specified for list: + * - if unset, then the result is returned from remote storage based on quorum-read flag; + * - if it's 0, then we simply return what we currently have in cache, no guarantee; + * - if set to non zero, then the result is at least as fresh as given rv. + * +optional + *+ * + *
optional string resourceVersion = 4;
+ */
+ public java.lang.String getResourceVersion() {
+ java.lang.Object ref = resourceVersion_;
+ 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()) {
+ resourceVersion_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * + * When specified with a watch call, shows changes that occur after that particular version of a resource. + * Defaults to changes from the beginning of history. + * When specified for list: + * - if unset, then the result is returned from remote storage based on quorum-read flag; + * - if it's 0, then we simply return what we currently have in cache, no guarantee; + * - if set to non zero, then the result is at least as fresh as given rv. + * +optional + *+ * + *
optional string resourceVersion = 4;
+ */
+ public com.google.protobuf.ByteString
+ getResourceVersionBytes() {
+ java.lang.Object ref = resourceVersion_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ resourceVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TIMEOUTSECONDS_FIELD_NUMBER = 5;
+ private long timeoutSeconds_;
+ /**
+ * + * Timeout for the list/watch call. + * +optional + *+ * + *
optional int64 timeoutSeconds = 5;
+ */
+ public boolean hasTimeoutSeconds() {
+ return ((bitField0_ & 0x00000020) == 0x00000020);
+ }
+ /**
+ * + * Timeout for the list/watch call. + * +optional + *+ * + *
optional int64 timeoutSeconds = 5;
+ */
+ public long getTimeoutSeconds() {
+ return timeoutSeconds_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, labelSelector_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fieldSelector_);
+ }
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ output.writeBool(3, watch_);
+ }
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, resourceVersion_);
+ }
+ if (((bitField0_ & 0x00000020) == 0x00000020)) {
+ output.writeInt64(5, timeoutSeconds_);
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ output.writeBool(6, includeUninitialized_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, labelSelector_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fieldSelector_);
+ }
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(3, watch_);
+ }
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, resourceVersion_);
+ }
+ if (((bitField0_ & 0x00000020) == 0x00000020)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(5, timeoutSeconds_);
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(6, includeUninitialized_);
+ }
+ 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.Generated.ListOptions)) {
+ return super.equals(obj);
+ }
+ io.kubernetes.client.proto.Generated.ListOptions other = (io.kubernetes.client.proto.Generated.ListOptions) obj;
+
+ boolean result = true;
+ result = result && (hasLabelSelector() == other.hasLabelSelector());
+ if (hasLabelSelector()) {
+ result = result && getLabelSelector()
+ .equals(other.getLabelSelector());
+ }
+ result = result && (hasFieldSelector() == other.hasFieldSelector());
+ if (hasFieldSelector()) {
+ result = result && getFieldSelector()
+ .equals(other.getFieldSelector());
+ }
+ result = result && (hasIncludeUninitialized() == other.hasIncludeUninitialized());
+ if (hasIncludeUninitialized()) {
+ result = result && (getIncludeUninitialized()
+ == other.getIncludeUninitialized());
+ }
+ result = result && (hasWatch() == other.hasWatch());
+ if (hasWatch()) {
+ result = result && (getWatch()
+ == other.getWatch());
+ }
+ result = result && (hasResourceVersion() == other.hasResourceVersion());
+ if (hasResourceVersion()) {
+ result = result && getResourceVersion()
+ .equals(other.getResourceVersion());
+ }
+ result = result && (hasTimeoutSeconds() == other.hasTimeoutSeconds());
+ if (hasTimeoutSeconds()) {
+ result = result && (getTimeoutSeconds()
+ == other.getTimeoutSeconds());
+ }
+ 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 (hasLabelSelector()) {
+ hash = (37 * hash) + LABELSELECTOR_FIELD_NUMBER;
+ hash = (53 * hash) + getLabelSelector().hashCode();
+ }
+ if (hasFieldSelector()) {
+ hash = (37 * hash) + FIELDSELECTOR_FIELD_NUMBER;
+ hash = (53 * hash) + getFieldSelector().hashCode();
+ }
+ if (hasIncludeUninitialized()) {
+ hash = (37 * hash) + INCLUDEUNINITIALIZED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getIncludeUninitialized());
+ }
+ if (hasWatch()) {
+ hash = (37 * hash) + WATCH_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getWatch());
+ }
+ if (hasResourceVersion()) {
+ hash = (37 * hash) + RESOURCEVERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getResourceVersion().hashCode();
+ }
+ if (hasTimeoutSeconds()) {
+ hash = (37 * hash) + TIMEOUTSECONDS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getTimeoutSeconds());
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.kubernetes.client.proto.Generated.ListOptions parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.ListOptions 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.Generated.ListOptions parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.ListOptions 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.Generated.ListOptions parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.ListOptions parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.kubernetes.client.proto.Generated.ListOptions parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.ListOptions 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.Generated.ListOptions parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.ListOptions 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.Generated.ListOptions parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.ListOptions parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.kubernetes.client.proto.Generated.ListOptions prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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;
+ }
+ /**
+ * + * ListOptions is the query options to a standard REST list call. + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.ListOptions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * A selector to restrict the list of returned objects by their labels. + * Defaults to everything. + * +optional + *+ * + *
optional string labelSelector = 1;
+ */
+ public boolean hasLabelSelector() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * + * A selector to restrict the list of returned objects by their labels. + * Defaults to everything. + * +optional + *+ * + *
optional string labelSelector = 1;
+ */
+ public java.lang.String getLabelSelector() {
+ java.lang.Object ref = labelSelector_;
+ 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()) {
+ labelSelector_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * A selector to restrict the list of returned objects by their labels. + * Defaults to everything. + * +optional + *+ * + *
optional string labelSelector = 1;
+ */
+ public com.google.protobuf.ByteString
+ getLabelSelectorBytes() {
+ java.lang.Object ref = labelSelector_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ labelSelector_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * A selector to restrict the list of returned objects by their labels. + * Defaults to everything. + * +optional + *+ * + *
optional string labelSelector = 1;
+ */
+ public Builder setLabelSelector(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ labelSelector_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A selector to restrict the list of returned objects by their labels. + * Defaults to everything. + * +optional + *+ * + *
optional string labelSelector = 1;
+ */
+ public Builder clearLabelSelector() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ labelSelector_ = getDefaultInstance().getLabelSelector();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A selector to restrict the list of returned objects by their labels. + * Defaults to everything. + * +optional + *+ * + *
optional string labelSelector = 1;
+ */
+ public Builder setLabelSelectorBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ labelSelector_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object fieldSelector_ = "";
+ /**
+ * + * A selector to restrict the list of returned objects by their fields. + * Defaults to everything. + * +optional + *+ * + *
optional string fieldSelector = 2;
+ */
+ public boolean hasFieldSelector() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * + * A selector to restrict the list of returned objects by their fields. + * Defaults to everything. + * +optional + *+ * + *
optional string fieldSelector = 2;
+ */
+ public java.lang.String getFieldSelector() {
+ java.lang.Object ref = fieldSelector_;
+ 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()) {
+ fieldSelector_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * A selector to restrict the list of returned objects by their fields. + * Defaults to everything. + * +optional + *+ * + *
optional string fieldSelector = 2;
+ */
+ public com.google.protobuf.ByteString
+ getFieldSelectorBytes() {
+ java.lang.Object ref = fieldSelector_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ fieldSelector_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * A selector to restrict the list of returned objects by their fields. + * Defaults to everything. + * +optional + *+ * + *
optional string fieldSelector = 2;
+ */
+ public Builder setFieldSelector(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ fieldSelector_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A selector to restrict the list of returned objects by their fields. + * Defaults to everything. + * +optional + *+ * + *
optional string fieldSelector = 2;
+ */
+ public Builder clearFieldSelector() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ fieldSelector_ = getDefaultInstance().getFieldSelector();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A selector to restrict the list of returned objects by their fields. + * Defaults to everything. + * +optional + *+ * + *
optional string fieldSelector = 2;
+ */
+ public Builder setFieldSelectorBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ fieldSelector_ = value;
+ onChanged();
+ return this;
+ }
+
+ private boolean includeUninitialized_ ;
+ /**
+ * + * If true, partially initialized resources are included in the response. + * +optional + *+ * + *
optional bool includeUninitialized = 6;
+ */
+ public boolean hasIncludeUninitialized() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * + * If true, partially initialized resources are included in the response. + * +optional + *+ * + *
optional bool includeUninitialized = 6;
+ */
+ public boolean getIncludeUninitialized() {
+ return includeUninitialized_;
+ }
+ /**
+ * + * If true, partially initialized resources are included in the response. + * +optional + *+ * + *
optional bool includeUninitialized = 6;
+ */
+ public Builder setIncludeUninitialized(boolean value) {
+ bitField0_ |= 0x00000004;
+ includeUninitialized_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * If true, partially initialized resources are included in the response. + * +optional + *+ * + *
optional bool includeUninitialized = 6;
+ */
+ public Builder clearIncludeUninitialized() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ includeUninitialized_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean watch_ ;
+ /**
+ * + * Watch for changes to the described resources and return them as a stream of + * add, update, and remove notifications. Specify resourceVersion. + * +optional + *+ * + *
optional bool watch = 3;
+ */
+ public boolean hasWatch() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+ /**
+ * + * Watch for changes to the described resources and return them as a stream of + * add, update, and remove notifications. Specify resourceVersion. + * +optional + *+ * + *
optional bool watch = 3;
+ */
+ public boolean getWatch() {
+ return watch_;
+ }
+ /**
+ * + * Watch for changes to the described resources and return them as a stream of + * add, update, and remove notifications. Specify resourceVersion. + * +optional + *+ * + *
optional bool watch = 3;
+ */
+ public Builder setWatch(boolean value) {
+ bitField0_ |= 0x00000008;
+ watch_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Watch for changes to the described resources and return them as a stream of + * add, update, and remove notifications. Specify resourceVersion. + * +optional + *+ * + *
optional bool watch = 3;
+ */
+ public Builder clearWatch() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ watch_ = false;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object resourceVersion_ = "";
+ /**
+ * + * When specified with a watch call, shows changes that occur after that particular version of a resource. + * Defaults to changes from the beginning of history. + * When specified for list: + * - if unset, then the result is returned from remote storage based on quorum-read flag; + * - if it's 0, then we simply return what we currently have in cache, no guarantee; + * - if set to non zero, then the result is at least as fresh as given rv. + * +optional + *+ * + *
optional string resourceVersion = 4;
+ */
+ public boolean hasResourceVersion() {
+ return ((bitField0_ & 0x00000010) == 0x00000010);
+ }
+ /**
+ * + * When specified with a watch call, shows changes that occur after that particular version of a resource. + * Defaults to changes from the beginning of history. + * When specified for list: + * - if unset, then the result is returned from remote storage based on quorum-read flag; + * - if it's 0, then we simply return what we currently have in cache, no guarantee; + * - if set to non zero, then the result is at least as fresh as given rv. + * +optional + *+ * + *
optional string resourceVersion = 4;
+ */
+ public java.lang.String getResourceVersion() {
+ java.lang.Object ref = resourceVersion_;
+ 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()) {
+ resourceVersion_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * When specified with a watch call, shows changes that occur after that particular version of a resource. + * Defaults to changes from the beginning of history. + * When specified for list: + * - if unset, then the result is returned from remote storage based on quorum-read flag; + * - if it's 0, then we simply return what we currently have in cache, no guarantee; + * - if set to non zero, then the result is at least as fresh as given rv. + * +optional + *+ * + *
optional string resourceVersion = 4;
+ */
+ public com.google.protobuf.ByteString
+ getResourceVersionBytes() {
+ java.lang.Object ref = resourceVersion_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ resourceVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * When specified with a watch call, shows changes that occur after that particular version of a resource. + * Defaults to changes from the beginning of history. + * When specified for list: + * - if unset, then the result is returned from remote storage based on quorum-read flag; + * - if it's 0, then we simply return what we currently have in cache, no guarantee; + * - if set to non zero, then the result is at least as fresh as given rv. + * +optional + *+ * + *
optional string resourceVersion = 4;
+ */
+ public Builder setResourceVersion(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000010;
+ resourceVersion_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * When specified with a watch call, shows changes that occur after that particular version of a resource. + * Defaults to changes from the beginning of history. + * When specified for list: + * - if unset, then the result is returned from remote storage based on quorum-read flag; + * - if it's 0, then we simply return what we currently have in cache, no guarantee; + * - if set to non zero, then the result is at least as fresh as given rv. + * +optional + *+ * + *
optional string resourceVersion = 4;
+ */
+ public Builder clearResourceVersion() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ resourceVersion_ = getDefaultInstance().getResourceVersion();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * When specified with a watch call, shows changes that occur after that particular version of a resource. + * Defaults to changes from the beginning of history. + * When specified for list: + * - if unset, then the result is returned from remote storage based on quorum-read flag; + * - if it's 0, then we simply return what we currently have in cache, no guarantee; + * - if set to non zero, then the result is at least as fresh as given rv. + * +optional + *+ * + *
optional string resourceVersion = 4;
+ */
+ public Builder setResourceVersionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000010;
+ resourceVersion_ = value;
+ onChanged();
+ return this;
+ }
+
+ private long timeoutSeconds_ ;
+ /**
+ * + * Timeout for the list/watch call. + * +optional + *+ * + *
optional int64 timeoutSeconds = 5;
+ */
+ public boolean hasTimeoutSeconds() {
+ return ((bitField0_ & 0x00000020) == 0x00000020);
+ }
+ /**
+ * + * Timeout for the list/watch call. + * +optional + *+ * + *
optional int64 timeoutSeconds = 5;
+ */
+ public long getTimeoutSeconds() {
+ return timeoutSeconds_;
+ }
+ /**
+ * + * Timeout for the list/watch call. + * +optional + *+ * + *
optional int64 timeoutSeconds = 5;
+ */
+ public Builder setTimeoutSeconds(long value) {
+ bitField0_ |= 0x00000020;
+ timeoutSeconds_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Timeout for the list/watch call. + * +optional + *+ * + *
optional int64 timeoutSeconds = 5;
+ */
+ public Builder clearTimeoutSeconds() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ timeoutSeconds_ = 0L;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.ListOptions)
+ }
+
+ // @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.ListOptions)
+ private static final io.kubernetes.client.proto.Generated.ListOptions DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.kubernetes.client.proto.Generated.ListOptions();
+ }
+
+ public static io.kubernetes.client.proto.Generated.ListOptions getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser+ * Represents seconds of UTC time since Unix epoch + * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + * 9999-12-31T23:59:59Z inclusive. + *+ * + *
optional int64 seconds = 1;
+ */
+ boolean hasSeconds();
+ /**
+ * + * Represents seconds of UTC time since Unix epoch + * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + * 9999-12-31T23:59:59Z inclusive. + *+ * + *
optional int64 seconds = 1;
+ */
+ long getSeconds();
+
+ /**
+ * + * Non-negative fractions of a second at nanosecond resolution. Negative + * second values with fractions must still have non-negative nanos values + * that count forward in time. Must be from 0 to 999,999,999 + * inclusive. This field may be limited in precision depending on context. + *+ * + *
optional int32 nanos = 2;
+ */
+ boolean hasNanos();
+ /**
+ * + * Non-negative fractions of a second at nanosecond resolution. Negative + * second values with fractions must still have non-negative nanos values + * that count forward in time. Must be from 0 to 999,999,999 + * inclusive. This field may be limited in precision depending on context. + *+ * + *
optional int32 nanos = 2;
+ */
+ int getNanos();
+ }
+ /**
+ * + * MicroTime is version of Time with microsecond level precision. + * + * +protobuf.options.marshal=false + * +protobuf.as=Timestamp + * +protobuf.options.(gogoproto.goproto_stringer)=false + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime} + */ + public static final class MicroTime extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime) + MicroTimeOrBuilder { + private static final long serialVersionUID = 0L; + // Use MicroTime.newBuilder() to construct. + private MicroTime(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private MicroTime() { + seconds_ = 0L; + nanos_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MicroTime( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + seconds_ = input.readInt64(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + nanos_ = input.readInt32(); + 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.Generated.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_MicroTime_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.Generated.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_MicroTime_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.Generated.MicroTime.class, io.kubernetes.client.proto.Generated.MicroTime.Builder.class); + } + + private int bitField0_; + public static final int SECONDS_FIELD_NUMBER = 1; + private long seconds_; + /** + *
+ * Represents seconds of UTC time since Unix epoch + * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + * 9999-12-31T23:59:59Z inclusive. + *+ * + *
optional int64 seconds = 1;
+ */
+ public boolean hasSeconds() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * + * Represents seconds of UTC time since Unix epoch + * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + * 9999-12-31T23:59:59Z inclusive. + *+ * + *
optional int64 seconds = 1;
+ */
+ public long getSeconds() {
+ return seconds_;
+ }
+
+ public static final int NANOS_FIELD_NUMBER = 2;
+ private int nanos_;
+ /**
+ * + * Non-negative fractions of a second at nanosecond resolution. Negative + * second values with fractions must still have non-negative nanos values + * that count forward in time. Must be from 0 to 999,999,999 + * inclusive. This field may be limited in precision depending on context. + *+ * + *
optional int32 nanos = 2;
+ */
+ public boolean hasNanos() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * + * Non-negative fractions of a second at nanosecond resolution. Negative + * second values with fractions must still have non-negative nanos values + * that count forward in time. Must be from 0 to 999,999,999 + * inclusive. This field may be limited in precision depending on context. + *+ * + *
optional int32 nanos = 2;
+ */
+ public int getNanos() {
+ return nanos_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeInt64(1, seconds_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeInt32(2, nanos_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(1, seconds_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(2, nanos_);
+ }
+ 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.Generated.MicroTime)) {
+ return super.equals(obj);
+ }
+ io.kubernetes.client.proto.Generated.MicroTime other = (io.kubernetes.client.proto.Generated.MicroTime) obj;
+
+ boolean result = true;
+ result = result && (hasSeconds() == other.hasSeconds());
+ if (hasSeconds()) {
+ result = result && (getSeconds()
+ == other.getSeconds());
+ }
+ result = result && (hasNanos() == other.hasNanos());
+ if (hasNanos()) {
+ result = result && (getNanos()
+ == other.getNanos());
+ }
+ 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 (hasSeconds()) {
+ hash = (37 * hash) + SECONDS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getSeconds());
+ }
+ if (hasNanos()) {
+ hash = (37 * hash) + NANOS_FIELD_NUMBER;
+ hash = (53 * hash) + getNanos();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.kubernetes.client.proto.Generated.MicroTime parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.MicroTime 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.Generated.MicroTime parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.MicroTime 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.Generated.MicroTime parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.MicroTime parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.kubernetes.client.proto.Generated.MicroTime parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.MicroTime 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.Generated.MicroTime parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.MicroTime 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.Generated.MicroTime parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.MicroTime parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.kubernetes.client.proto.Generated.MicroTime prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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;
+ }
+ /**
+ * + * MicroTime is version of Time with microsecond level precision. + * + * +protobuf.options.marshal=false + * +protobuf.as=Timestamp + * +protobuf.options.(gogoproto.goproto_stringer)=false + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * Represents seconds of UTC time since Unix epoch + * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + * 9999-12-31T23:59:59Z inclusive. + *+ * + *
optional int64 seconds = 1;
+ */
+ public boolean hasSeconds() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * + * Represents seconds of UTC time since Unix epoch + * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + * 9999-12-31T23:59:59Z inclusive. + *+ * + *
optional int64 seconds = 1;
+ */
+ public long getSeconds() {
+ return seconds_;
+ }
+ /**
+ * + * Represents seconds of UTC time since Unix epoch + * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + * 9999-12-31T23:59:59Z inclusive. + *+ * + *
optional int64 seconds = 1;
+ */
+ public Builder setSeconds(long value) {
+ bitField0_ |= 0x00000001;
+ seconds_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Represents seconds of UTC time since Unix epoch + * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + * 9999-12-31T23:59:59Z inclusive. + *+ * + *
optional int64 seconds = 1;
+ */
+ public Builder clearSeconds() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ seconds_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private int nanos_ ;
+ /**
+ * + * Non-negative fractions of a second at nanosecond resolution. Negative + * second values with fractions must still have non-negative nanos values + * that count forward in time. Must be from 0 to 999,999,999 + * inclusive. This field may be limited in precision depending on context. + *+ * + *
optional int32 nanos = 2;
+ */
+ public boolean hasNanos() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * + * Non-negative fractions of a second at nanosecond resolution. Negative + * second values with fractions must still have non-negative nanos values + * that count forward in time. Must be from 0 to 999,999,999 + * inclusive. This field may be limited in precision depending on context. + *+ * + *
optional int32 nanos = 2;
+ */
+ public int getNanos() {
+ return nanos_;
+ }
+ /**
+ * + * Non-negative fractions of a second at nanosecond resolution. Negative + * second values with fractions must still have non-negative nanos values + * that count forward in time. Must be from 0 to 999,999,999 + * inclusive. This field may be limited in precision depending on context. + *+ * + *
optional int32 nanos = 2;
+ */
+ public Builder setNanos(int value) {
+ bitField0_ |= 0x00000002;
+ nanos_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Non-negative fractions of a second at nanosecond resolution. Negative + * second values with fractions must still have non-negative nanos values + * that count forward in time. Must be from 0 to 999,999,999 + * inclusive. This field may be limited in precision depending on context. + *+ * + *
optional int32 nanos = 2;
+ */
+ public Builder clearNanos() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ nanos_ = 0;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime)
+ }
+
+ // @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime)
+ private static final io.kubernetes.client.proto.Generated.MicroTime DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.kubernetes.client.proto.Generated.MicroTime();
+ }
+
+ public static io.kubernetes.client.proto.Generated.MicroTime getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser+ * Name must be unique within a namespace. Is required when creating resources, although + * some resources may allow a client to request the generation of an appropriate name + * automatically. Name is primarily intended for creation idempotence and configuration + * definition. + * Cannot be updated. + * More info: http://kubernetes.io/docs/user-guide/identifiers#names + * +optional + *+ * + *
optional string name = 1;
+ */
+ boolean hasName();
+ /**
+ * + * Name must be unique within a namespace. Is required when creating resources, although + * some resources may allow a client to request the generation of an appropriate name + * automatically. Name is primarily intended for creation idempotence and configuration + * definition. + * Cannot be updated. + * More info: http://kubernetes.io/docs/user-guide/identifiers#names + * +optional + *+ * + *
optional string name = 1;
+ */
+ java.lang.String getName();
+ /**
+ * + * Name must be unique within a namespace. Is required when creating resources, although + * some resources may allow a client to request the generation of an appropriate name + * automatically. Name is primarily intended for creation idempotence and configuration + * definition. + * Cannot be updated. + * More info: http://kubernetes.io/docs/user-guide/identifiers#names + * +optional + *+ * + *
optional string name = 1;
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+
+ /**
+ * + * GenerateName is an optional prefix, used by the server, to generate a unique + * name ONLY IF the Name field has not been provided. + * If this field is used, the name returned to the client will be different + * than the name passed. This value will also be combined with a unique suffix. + * The provided value has the same validation rules as the Name field, + * and may be truncated by the length of the suffix required to make the value + * unique on the server. + * + * If this field is specified and the generated name exists, the server will + * NOT return a 409 - instead, it will either return 201 Created or 500 with Reason + * ServerTimeout indicating a unique name could not be found in the time allotted, and the client + * should retry (optionally after the time indicated in the Retry-After header). + * + * Applied only if Name is not specified. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency + * +optional + *+ * + *
optional string generateName = 2;
+ */
+ boolean hasGenerateName();
+ /**
+ * + * GenerateName is an optional prefix, used by the server, to generate a unique + * name ONLY IF the Name field has not been provided. + * If this field is used, the name returned to the client will be different + * than the name passed. This value will also be combined with a unique suffix. + * The provided value has the same validation rules as the Name field, + * and may be truncated by the length of the suffix required to make the value + * unique on the server. + * + * If this field is specified and the generated name exists, the server will + * NOT return a 409 - instead, it will either return 201 Created or 500 with Reason + * ServerTimeout indicating a unique name could not be found in the time allotted, and the client + * should retry (optionally after the time indicated in the Retry-After header). + * + * Applied only if Name is not specified. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency + * +optional + *+ * + *
optional string generateName = 2;
+ */
+ java.lang.String getGenerateName();
+ /**
+ * + * GenerateName is an optional prefix, used by the server, to generate a unique + * name ONLY IF the Name field has not been provided. + * If this field is used, the name returned to the client will be different + * than the name passed. This value will also be combined with a unique suffix. + * The provided value has the same validation rules as the Name field, + * and may be truncated by the length of the suffix required to make the value + * unique on the server. + * + * If this field is specified and the generated name exists, the server will + * NOT return a 409 - instead, it will either return 201 Created or 500 with Reason + * ServerTimeout indicating a unique name could not be found in the time allotted, and the client + * should retry (optionally after the time indicated in the Retry-After header). + * + * Applied only if Name is not specified. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency + * +optional + *+ * + *
optional string generateName = 2;
+ */
+ com.google.protobuf.ByteString
+ getGenerateNameBytes();
+
+ /**
+ * + * Namespace defines the space within each name must be unique. An empty namespace is + * equivalent to the "default" namespace, but "default" is the canonical representation. + * Not all objects are required to be scoped to a namespace - the value of this field for + * those objects will be empty. + * + * Must be a DNS_LABEL. + * Cannot be updated. + * More info: http://kubernetes.io/docs/user-guide/namespaces + * +optional + *+ * + *
optional string namespace = 3;
+ */
+ boolean hasNamespace();
+ /**
+ * + * Namespace defines the space within each name must be unique. An empty namespace is + * equivalent to the "default" namespace, but "default" is the canonical representation. + * Not all objects are required to be scoped to a namespace - the value of this field for + * those objects will be empty. + * + * Must be a DNS_LABEL. + * Cannot be updated. + * More info: http://kubernetes.io/docs/user-guide/namespaces + * +optional + *+ * + *
optional string namespace = 3;
+ */
+ java.lang.String getNamespace();
+ /**
+ * + * Namespace defines the space within each name must be unique. An empty namespace is + * equivalent to the "default" namespace, but "default" is the canonical representation. + * Not all objects are required to be scoped to a namespace - the value of this field for + * those objects will be empty. + * + * Must be a DNS_LABEL. + * Cannot be updated. + * More info: http://kubernetes.io/docs/user-guide/namespaces + * +optional + *+ * + *
optional string namespace = 3;
+ */
+ com.google.protobuf.ByteString
+ getNamespaceBytes();
+
+ /**
+ * + * SelfLink is a URL representing this object. + * Populated by the system. + * Read-only. + * +optional + *+ * + *
optional string selfLink = 4;
+ */
+ boolean hasSelfLink();
+ /**
+ * + * SelfLink is a URL representing this object. + * Populated by the system. + * Read-only. + * +optional + *+ * + *
optional string selfLink = 4;
+ */
+ java.lang.String getSelfLink();
+ /**
+ * + * SelfLink is a URL representing this object. + * Populated by the system. + * Read-only. + * +optional + *+ * + *
optional string selfLink = 4;
+ */
+ com.google.protobuf.ByteString
+ getSelfLinkBytes();
+
+ /**
+ * + * UID is the unique in time and space value for this object. It is typically generated by + * the server on successful creation of a resource and is not allowed to change on PUT + * operations. + * + * Populated by the system. + * Read-only. + * More info: http://kubernetes.io/docs/user-guide/identifiers#uids + * +optional + *+ * + *
optional string uid = 5;
+ */
+ boolean hasUid();
+ /**
+ * + * UID is the unique in time and space value for this object. It is typically generated by + * the server on successful creation of a resource and is not allowed to change on PUT + * operations. + * + * Populated by the system. + * Read-only. + * More info: http://kubernetes.io/docs/user-guide/identifiers#uids + * +optional + *+ * + *
optional string uid = 5;
+ */
+ java.lang.String getUid();
+ /**
+ * + * UID is the unique in time and space value for this object. It is typically generated by + * the server on successful creation of a resource and is not allowed to change on PUT + * operations. + * + * Populated by the system. + * Read-only. + * More info: http://kubernetes.io/docs/user-guide/identifiers#uids + * +optional + *+ * + *
optional string uid = 5;
+ */
+ com.google.protobuf.ByteString
+ getUidBytes();
+
+ /**
+ * + * An opaque value that represents the internal version of this object that can + * be used by clients to determine when objects have changed. May be used for optimistic + * concurrency, change detection, and the watch operation on a resource or set of resources. + * Clients must treat these values as opaque and passed unmodified back to the server. + * They may only be valid for a particular resource or set of resources. + * + * Populated by the system. + * Read-only. + * Value must be treated as opaque by clients and . + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + * +optional + *+ * + *
optional string resourceVersion = 6;
+ */
+ boolean hasResourceVersion();
+ /**
+ * + * An opaque value that represents the internal version of this object that can + * be used by clients to determine when objects have changed. May be used for optimistic + * concurrency, change detection, and the watch operation on a resource or set of resources. + * Clients must treat these values as opaque and passed unmodified back to the server. + * They may only be valid for a particular resource or set of resources. + * + * Populated by the system. + * Read-only. + * Value must be treated as opaque by clients and . + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + * +optional + *+ * + *
optional string resourceVersion = 6;
+ */
+ java.lang.String getResourceVersion();
+ /**
+ * + * An opaque value that represents the internal version of this object that can + * be used by clients to determine when objects have changed. May be used for optimistic + * concurrency, change detection, and the watch operation on a resource or set of resources. + * Clients must treat these values as opaque and passed unmodified back to the server. + * They may only be valid for a particular resource or set of resources. + * + * Populated by the system. + * Read-only. + * Value must be treated as opaque by clients and . + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + * +optional + *+ * + *
optional string resourceVersion = 6;
+ */
+ com.google.protobuf.ByteString
+ getResourceVersionBytes();
+
+ /**
+ * + * A sequence number representing a specific generation of the desired state. + * Populated by the system. Read-only. + * +optional + *+ * + *
optional int64 generation = 7;
+ */
+ boolean hasGeneration();
+ /**
+ * + * A sequence number representing a specific generation of the desired state. + * Populated by the system. Read-only. + * +optional + *+ * + *
optional int64 generation = 7;
+ */
+ long getGeneration();
+
+ /**
+ * + * CreationTimestamp is a timestamp representing the server time when this object was + * created. It is not guaranteed to be set in happens-before order across separate operations. + * Clients may not set this value. It is represented in RFC3339 form and is in UTC. + * + * Populated by the system. + * Read-only. + * Null for lists. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time creationTimestamp = 8;
+ */
+ boolean hasCreationTimestamp();
+ /**
+ * + * CreationTimestamp is a timestamp representing the server time when this object was + * created. It is not guaranteed to be set in happens-before order across separate operations. + * Clients may not set this value. It is represented in RFC3339 form and is in UTC. + * + * Populated by the system. + * Read-only. + * Null for lists. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time creationTimestamp = 8;
+ */
+ io.kubernetes.client.proto.Generated.Time getCreationTimestamp();
+ /**
+ * + * CreationTimestamp is a timestamp representing the server time when this object was + * created. It is not guaranteed to be set in happens-before order across separate operations. + * Clients may not set this value. It is represented in RFC3339 form and is in UTC. + * + * Populated by the system. + * Read-only. + * Null for lists. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time creationTimestamp = 8;
+ */
+ io.kubernetes.client.proto.Generated.TimeOrBuilder getCreationTimestampOrBuilder();
+
+ /**
+ * + * DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This + * field is set by the server when a graceful deletion is requested by the user, and is not + * directly settable by a client. The resource is expected to be deleted (no longer visible + * from resource lists, and not reachable by name) after the time in this field. Once set, + * this value may not be unset or be set further into the future, although it may be shortened + * or the resource may be deleted prior to this time. For example, a user may request that + * a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination + * signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard + * termination signal (SIGKILL) to the container and after cleanup, remove the pod from the + * API. In the presence of network partitions, this object may still exist after this + * timestamp, until an administrator or automated process can determine the resource is + * fully terminated. + * If not set, graceful deletion of the object has not been requested. + * + * Populated by the system when a graceful deletion is requested. + * Read-only. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deletionTimestamp = 9;
+ */
+ boolean hasDeletionTimestamp();
+ /**
+ * + * DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This + * field is set by the server when a graceful deletion is requested by the user, and is not + * directly settable by a client. The resource is expected to be deleted (no longer visible + * from resource lists, and not reachable by name) after the time in this field. Once set, + * this value may not be unset or be set further into the future, although it may be shortened + * or the resource may be deleted prior to this time. For example, a user may request that + * a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination + * signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard + * termination signal (SIGKILL) to the container and after cleanup, remove the pod from the + * API. In the presence of network partitions, this object may still exist after this + * timestamp, until an administrator or automated process can determine the resource is + * fully terminated. + * If not set, graceful deletion of the object has not been requested. + * + * Populated by the system when a graceful deletion is requested. + * Read-only. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deletionTimestamp = 9;
+ */
+ io.kubernetes.client.proto.Generated.Time getDeletionTimestamp();
+ /**
+ * + * DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This + * field is set by the server when a graceful deletion is requested by the user, and is not + * directly settable by a client. The resource is expected to be deleted (no longer visible + * from resource lists, and not reachable by name) after the time in this field. Once set, + * this value may not be unset or be set further into the future, although it may be shortened + * or the resource may be deleted prior to this time. For example, a user may request that + * a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination + * signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard + * termination signal (SIGKILL) to the container and after cleanup, remove the pod from the + * API. In the presence of network partitions, this object may still exist after this + * timestamp, until an administrator or automated process can determine the resource is + * fully terminated. + * If not set, graceful deletion of the object has not been requested. + * + * Populated by the system when a graceful deletion is requested. + * Read-only. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deletionTimestamp = 9;
+ */
+ io.kubernetes.client.proto.Generated.TimeOrBuilder getDeletionTimestampOrBuilder();
+
+ /**
+ * + * Number of seconds allowed for this object to gracefully terminate before + * it will be removed from the system. Only set when deletionTimestamp is also set. + * May only be shortened. + * Read-only. + * +optional + *+ * + *
optional int64 deletionGracePeriodSeconds = 10;
+ */
+ boolean hasDeletionGracePeriodSeconds();
+ /**
+ * + * Number of seconds allowed for this object to gracefully terminate before + * it will be removed from the system. Only set when deletionTimestamp is also set. + * May only be shortened. + * Read-only. + * +optional + *+ * + *
optional int64 deletionGracePeriodSeconds = 10;
+ */
+ long getDeletionGracePeriodSeconds();
+
+ /**
+ * + * Map of string keys and values that can be used to organize and categorize + * (scope and select) objects. May match selectors of replication controllers + * and services. + * More info: http://kubernetes.io/docs/user-guide/labels + * +optional + *+ * + *
map<string, string> labels = 11;
+ */
+ int getLabelsCount();
+ /**
+ * + * Map of string keys and values that can be used to organize and categorize + * (scope and select) objects. May match selectors of replication controllers + * and services. + * More info: http://kubernetes.io/docs/user-guide/labels + * +optional + *+ * + *
map<string, string> labels = 11;
+ */
+ boolean containsLabels(
+ java.lang.String key);
+ /**
+ * Use {@link #getLabelsMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Map+ * Map of string keys and values that can be used to organize and categorize + * (scope and select) objects. May match selectors of replication controllers + * and services. + * More info: http://kubernetes.io/docs/user-guide/labels + * +optional + *+ * + *
map<string, string> labels = 11;
+ */
+ java.util.Map+ * Map of string keys and values that can be used to organize and categorize + * (scope and select) objects. May match selectors of replication controllers + * and services. + * More info: http://kubernetes.io/docs/user-guide/labels + * +optional + *+ * + *
map<string, string> labels = 11;
+ */
+
+ java.lang.String getLabelsOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue);
+ /**
+ * + * Map of string keys and values that can be used to organize and categorize + * (scope and select) objects. May match selectors of replication controllers + * and services. + * More info: http://kubernetes.io/docs/user-guide/labels + * +optional + *+ * + *
map<string, string> labels = 11;
+ */
+
+ java.lang.String getLabelsOrThrow(
+ java.lang.String key);
+
+ /**
+ * + * Annotations is an unstructured key value map stored with a resource that may be + * set by external tools to store and retrieve arbitrary metadata. They are not + * queryable and should be preserved when modifying objects. + * More info: http://kubernetes.io/docs/user-guide/annotations + * +optional + *+ * + *
map<string, string> annotations = 12;
+ */
+ int getAnnotationsCount();
+ /**
+ * + * Annotations is an unstructured key value map stored with a resource that may be + * set by external tools to store and retrieve arbitrary metadata. They are not + * queryable and should be preserved when modifying objects. + * More info: http://kubernetes.io/docs/user-guide/annotations + * +optional + *+ * + *
map<string, string> annotations = 12;
+ */
+ boolean containsAnnotations(
+ java.lang.String key);
+ /**
+ * Use {@link #getAnnotationsMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Map+ * Annotations is an unstructured key value map stored with a resource that may be + * set by external tools to store and retrieve arbitrary metadata. They are not + * queryable and should be preserved when modifying objects. + * More info: http://kubernetes.io/docs/user-guide/annotations + * +optional + *+ * + *
map<string, string> annotations = 12;
+ */
+ java.util.Map+ * Annotations is an unstructured key value map stored with a resource that may be + * set by external tools to store and retrieve arbitrary metadata. They are not + * queryable and should be preserved when modifying objects. + * More info: http://kubernetes.io/docs/user-guide/annotations + * +optional + *+ * + *
map<string, string> annotations = 12;
+ */
+
+ java.lang.String getAnnotationsOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue);
+ /**
+ * + * Annotations is an unstructured key value map stored with a resource that may be + * set by external tools to store and retrieve arbitrary metadata. They are not + * queryable and should be preserved when modifying objects. + * More info: http://kubernetes.io/docs/user-guide/annotations + * +optional + *+ * + *
map<string, string> annotations = 12;
+ */
+
+ java.lang.String getAnnotationsOrThrow(
+ java.lang.String key);
+
+ /**
+ * + * List of objects depended by this object. If ALL objects in the list have + * been deleted, this object will be garbage collected. If this object is managed by a controller, + * then an entry in this list will point to this controller, with the controller field set to true. + * There cannot be more than one managing controller. + * +optional + * +patchMergeKey=uid + * +patchStrategy=merge + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference ownerReferences = 13;
+ */
+ java.util.List+ * List of objects depended by this object. If ALL objects in the list have + * been deleted, this object will be garbage collected. If this object is managed by a controller, + * then an entry in this list will point to this controller, with the controller field set to true. + * There cannot be more than one managing controller. + * +optional + * +patchMergeKey=uid + * +patchStrategy=merge + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference ownerReferences = 13;
+ */
+ io.kubernetes.client.proto.Generated.OwnerReference getOwnerReferences(int index);
+ /**
+ * + * List of objects depended by this object. If ALL objects in the list have + * been deleted, this object will be garbage collected. If this object is managed by a controller, + * then an entry in this list will point to this controller, with the controller field set to true. + * There cannot be more than one managing controller. + * +optional + * +patchMergeKey=uid + * +patchStrategy=merge + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference ownerReferences = 13;
+ */
+ int getOwnerReferencesCount();
+ /**
+ * + * List of objects depended by this object. If ALL objects in the list have + * been deleted, this object will be garbage collected. If this object is managed by a controller, + * then an entry in this list will point to this controller, with the controller field set to true. + * There cannot be more than one managing controller. + * +optional + * +patchMergeKey=uid + * +patchStrategy=merge + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference ownerReferences = 13;
+ */
+ java.util.List extends io.kubernetes.client.proto.Generated.OwnerReferenceOrBuilder>
+ getOwnerReferencesOrBuilderList();
+ /**
+ * + * List of objects depended by this object. If ALL objects in the list have + * been deleted, this object will be garbage collected. If this object is managed by a controller, + * then an entry in this list will point to this controller, with the controller field set to true. + * There cannot be more than one managing controller. + * +optional + * +patchMergeKey=uid + * +patchStrategy=merge + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference ownerReferences = 13;
+ */
+ io.kubernetes.client.proto.Generated.OwnerReferenceOrBuilder getOwnerReferencesOrBuilder(
+ int index);
+
+ /**
+ * + * An initializer is a controller which enforces some system invariant at object creation time. + * This field is a list of initializers that have not yet acted on this object. If nil or empty, + * this object has been completely initialized. Otherwise, the object is considered uninitialized + * and is hidden (in list/watch and get calls) from clients that haven't explicitly asked to + * observe uninitialized objects. + * + * When an object is created, the system will populate this list with the current set of initializers. + * Only privileged users may set or modify this list. Once it is empty, it may not be modified further + * by any user. + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Initializers initializers = 16;
+ */
+ boolean hasInitializers();
+ /**
+ * + * An initializer is a controller which enforces some system invariant at object creation time. + * This field is a list of initializers that have not yet acted on this object. If nil or empty, + * this object has been completely initialized. Otherwise, the object is considered uninitialized + * and is hidden (in list/watch and get calls) from clients that haven't explicitly asked to + * observe uninitialized objects. + * + * When an object is created, the system will populate this list with the current set of initializers. + * Only privileged users may set or modify this list. Once it is empty, it may not be modified further + * by any user. + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Initializers initializers = 16;
+ */
+ io.kubernetes.client.proto.Generated.Initializers getInitializers();
+ /**
+ * + * An initializer is a controller which enforces some system invariant at object creation time. + * This field is a list of initializers that have not yet acted on this object. If nil or empty, + * this object has been completely initialized. Otherwise, the object is considered uninitialized + * and is hidden (in list/watch and get calls) from clients that haven't explicitly asked to + * observe uninitialized objects. + * + * When an object is created, the system will populate this list with the current set of initializers. + * Only privileged users may set or modify this list. Once it is empty, it may not be modified further + * by any user. + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Initializers initializers = 16;
+ */
+ io.kubernetes.client.proto.Generated.InitializersOrBuilder getInitializersOrBuilder();
+
+ /**
+ * + * Must be empty before the object is deleted from the registry. Each entry + * is an identifier for the responsible component that will remove the entry + * from the list. If the deletionTimestamp of the object is non-nil, entries + * in this list can only be removed. + * +optional + * +patchStrategy=merge + *+ * + *
repeated string finalizers = 14;
+ */
+ java.util.List+ * Must be empty before the object is deleted from the registry. Each entry + * is an identifier for the responsible component that will remove the entry + * from the list. If the deletionTimestamp of the object is non-nil, entries + * in this list can only be removed. + * +optional + * +patchStrategy=merge + *+ * + *
repeated string finalizers = 14;
+ */
+ int getFinalizersCount();
+ /**
+ * + * Must be empty before the object is deleted from the registry. Each entry + * is an identifier for the responsible component that will remove the entry + * from the list. If the deletionTimestamp of the object is non-nil, entries + * in this list can only be removed. + * +optional + * +patchStrategy=merge + *+ * + *
repeated string finalizers = 14;
+ */
+ java.lang.String getFinalizers(int index);
+ /**
+ * + * Must be empty before the object is deleted from the registry. Each entry + * is an identifier for the responsible component that will remove the entry + * from the list. If the deletionTimestamp of the object is non-nil, entries + * in this list can only be removed. + * +optional + * +patchStrategy=merge + *+ * + *
repeated string finalizers = 14;
+ */
+ com.google.protobuf.ByteString
+ getFinalizersBytes(int index);
+
+ /**
+ * + * The name of the cluster which the object belongs to. + * This is used to distinguish resources with same name and namespace in different clusters. + * This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * +optional + *+ * + *
optional string clusterName = 15;
+ */
+ boolean hasClusterName();
+ /**
+ * + * The name of the cluster which the object belongs to. + * This is used to distinguish resources with same name and namespace in different clusters. + * This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * +optional + *+ * + *
optional string clusterName = 15;
+ */
+ java.lang.String getClusterName();
+ /**
+ * + * The name of the cluster which the object belongs to. + * This is used to distinguish resources with same name and namespace in different clusters. + * This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * +optional + *+ * + *
optional string clusterName = 15;
+ */
+ com.google.protobuf.ByteString
+ getClusterNameBytes();
+ }
+ /**
+ * + * ObjectMeta is metadata that all persisted resources must have, which includes all objects + * users must create. + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta} + */ + public static final class ObjectMeta extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta) + ObjectMetaOrBuilder { + private static final long serialVersionUID = 0L; + // Use ObjectMeta.newBuilder() to construct. + private ObjectMeta(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private ObjectMeta() { + name_ = ""; + generateName_ = ""; + namespace_ = ""; + selfLink_ = ""; + uid_ = ""; + resourceVersion_ = ""; + generation_ = 0L; + deletionGracePeriodSeconds_ = 0L; + ownerReferences_ = java.util.Collections.emptyList(); + finalizers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + clusterName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ObjectMeta( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + name_ = bs; + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + generateName_ = bs; + break; + } + case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000004; + namespace_ = bs; + break; + } + case 34: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000008; + selfLink_ = bs; + break; + } + case 42: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000010; + uid_ = bs; + break; + } + case 50: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000020; + resourceVersion_ = bs; + break; + } + case 56: { + bitField0_ |= 0x00000040; + generation_ = input.readInt64(); + break; + } + case 66: { + io.kubernetes.client.proto.Generated.Time.Builder subBuilder = null; + if (((bitField0_ & 0x00000080) == 0x00000080)) { + subBuilder = creationTimestamp_.toBuilder(); + } + creationTimestamp_ = input.readMessage(io.kubernetes.client.proto.Generated.Time.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(creationTimestamp_); + creationTimestamp_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000080; + break; + } + case 74: { + io.kubernetes.client.proto.Generated.Time.Builder subBuilder = null; + if (((bitField0_ & 0x00000100) == 0x00000100)) { + subBuilder = deletionTimestamp_.toBuilder(); + } + deletionTimestamp_ = input.readMessage(io.kubernetes.client.proto.Generated.Time.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deletionTimestamp_); + deletionTimestamp_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000100; + break; + } + case 80: { + bitField0_ |= 0x00000200; + deletionGracePeriodSeconds_ = input.readInt64(); + break; + } + case 90: { + if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000400; + } + com.google.protobuf.MapEntry
+ * Name must be unique within a namespace. Is required when creating resources, although + * some resources may allow a client to request the generation of an appropriate name + * automatically. Name is primarily intended for creation idempotence and configuration + * definition. + * Cannot be updated. + * More info: http://kubernetes.io/docs/user-guide/identifiers#names + * +optional + *+ * + *
optional string name = 1;
+ */
+ public boolean hasName() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * + * Name must be unique within a namespace. Is required when creating resources, although + * some resources may allow a client to request the generation of an appropriate name + * automatically. Name is primarily intended for creation idempotence and configuration + * definition. + * Cannot be updated. + * More info: http://kubernetes.io/docs/user-guide/identifiers#names + * +optional + *+ * + *
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 must be unique within a namespace. Is required when creating resources, although + * some resources may allow a client to request the generation of an appropriate name + * automatically. Name is primarily intended for creation idempotence and configuration + * definition. + * Cannot be updated. + * More info: http://kubernetes.io/docs/user-guide/identifiers#names + * +optional + *+ * + *
optional string name = 1;
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int GENERATENAME_FIELD_NUMBER = 2;
+ private volatile java.lang.Object generateName_;
+ /**
+ * + * GenerateName is an optional prefix, used by the server, to generate a unique + * name ONLY IF the Name field has not been provided. + * If this field is used, the name returned to the client will be different + * than the name passed. This value will also be combined with a unique suffix. + * The provided value has the same validation rules as the Name field, + * and may be truncated by the length of the suffix required to make the value + * unique on the server. + * + * If this field is specified and the generated name exists, the server will + * NOT return a 409 - instead, it will either return 201 Created or 500 with Reason + * ServerTimeout indicating a unique name could not be found in the time allotted, and the client + * should retry (optionally after the time indicated in the Retry-After header). + * + * Applied only if Name is not specified. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency + * +optional + *+ * + *
optional string generateName = 2;
+ */
+ public boolean hasGenerateName() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * + * GenerateName is an optional prefix, used by the server, to generate a unique + * name ONLY IF the Name field has not been provided. + * If this field is used, the name returned to the client will be different + * than the name passed. This value will also be combined with a unique suffix. + * The provided value has the same validation rules as the Name field, + * and may be truncated by the length of the suffix required to make the value + * unique on the server. + * + * If this field is specified and the generated name exists, the server will + * NOT return a 409 - instead, it will either return 201 Created or 500 with Reason + * ServerTimeout indicating a unique name could not be found in the time allotted, and the client + * should retry (optionally after the time indicated in the Retry-After header). + * + * Applied only if Name is not specified. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency + * +optional + *+ * + *
optional string generateName = 2;
+ */
+ public java.lang.String getGenerateName() {
+ java.lang.Object ref = generateName_;
+ 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()) {
+ generateName_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * + * GenerateName is an optional prefix, used by the server, to generate a unique + * name ONLY IF the Name field has not been provided. + * If this field is used, the name returned to the client will be different + * than the name passed. This value will also be combined with a unique suffix. + * The provided value has the same validation rules as the Name field, + * and may be truncated by the length of the suffix required to make the value + * unique on the server. + * + * If this field is specified and the generated name exists, the server will + * NOT return a 409 - instead, it will either return 201 Created or 500 with Reason + * ServerTimeout indicating a unique name could not be found in the time allotted, and the client + * should retry (optionally after the time indicated in the Retry-After header). + * + * Applied only if Name is not specified. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency + * +optional + *+ * + *
optional string generateName = 2;
+ */
+ public com.google.protobuf.ByteString
+ getGenerateNameBytes() {
+ java.lang.Object ref = generateName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ generateName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int NAMESPACE_FIELD_NUMBER = 3;
+ private volatile java.lang.Object namespace_;
+ /**
+ * + * Namespace defines the space within each name must be unique. An empty namespace is + * equivalent to the "default" namespace, but "default" is the canonical representation. + * Not all objects are required to be scoped to a namespace - the value of this field for + * those objects will be empty. + * + * Must be a DNS_LABEL. + * Cannot be updated. + * More info: http://kubernetes.io/docs/user-guide/namespaces + * +optional + *+ * + *
optional string namespace = 3;
+ */
+ public boolean hasNamespace() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * + * Namespace defines the space within each name must be unique. An empty namespace is + * equivalent to the "default" namespace, but "default" is the canonical representation. + * Not all objects are required to be scoped to a namespace - the value of this field for + * those objects will be empty. + * + * Must be a DNS_LABEL. + * Cannot be updated. + * More info: http://kubernetes.io/docs/user-guide/namespaces + * +optional + *+ * + *
optional string namespace = 3;
+ */
+ public java.lang.String getNamespace() {
+ java.lang.Object ref = namespace_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ namespace_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * + * Namespace defines the space within each name must be unique. An empty namespace is + * equivalent to the "default" namespace, but "default" is the canonical representation. + * Not all objects are required to be scoped to a namespace - the value of this field for + * those objects will be empty. + * + * Must be a DNS_LABEL. + * Cannot be updated. + * More info: http://kubernetes.io/docs/user-guide/namespaces + * +optional + *+ * + *
optional string namespace = 3;
+ */
+ public com.google.protobuf.ByteString
+ getNamespaceBytes() {
+ java.lang.Object ref = namespace_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ namespace_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SELFLINK_FIELD_NUMBER = 4;
+ private volatile java.lang.Object selfLink_;
+ /**
+ * + * SelfLink is a URL representing this object. + * Populated by the system. + * Read-only. + * +optional + *+ * + *
optional string selfLink = 4;
+ */
+ public boolean hasSelfLink() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+ /**
+ * + * SelfLink is a URL representing this object. + * Populated by the system. + * Read-only. + * +optional + *+ * + *
optional string selfLink = 4;
+ */
+ public java.lang.String getSelfLink() {
+ java.lang.Object ref = selfLink_;
+ 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()) {
+ selfLink_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * + * SelfLink is a URL representing this object. + * Populated by the system. + * Read-only. + * +optional + *+ * + *
optional string selfLink = 4;
+ */
+ public com.google.protobuf.ByteString
+ getSelfLinkBytes() {
+ java.lang.Object ref = selfLink_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ selfLink_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int UID_FIELD_NUMBER = 5;
+ private volatile java.lang.Object uid_;
+ /**
+ * + * UID is the unique in time and space value for this object. It is typically generated by + * the server on successful creation of a resource and is not allowed to change on PUT + * operations. + * + * Populated by the system. + * Read-only. + * More info: http://kubernetes.io/docs/user-guide/identifiers#uids + * +optional + *+ * + *
optional string uid = 5;
+ */
+ public boolean hasUid() {
+ return ((bitField0_ & 0x00000010) == 0x00000010);
+ }
+ /**
+ * + * UID is the unique in time and space value for this object. It is typically generated by + * the server on successful creation of a resource and is not allowed to change on PUT + * operations. + * + * Populated by the system. + * Read-only. + * More info: http://kubernetes.io/docs/user-guide/identifiers#uids + * +optional + *+ * + *
optional string uid = 5;
+ */
+ public java.lang.String getUid() {
+ java.lang.Object ref = uid_;
+ 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()) {
+ uid_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * + * UID is the unique in time and space value for this object. It is typically generated by + * the server on successful creation of a resource and is not allowed to change on PUT + * operations. + * + * Populated by the system. + * Read-only. + * More info: http://kubernetes.io/docs/user-guide/identifiers#uids + * +optional + *+ * + *
optional string uid = 5;
+ */
+ public com.google.protobuf.ByteString
+ getUidBytes() {
+ java.lang.Object ref = uid_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ uid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int RESOURCEVERSION_FIELD_NUMBER = 6;
+ private volatile java.lang.Object resourceVersion_;
+ /**
+ * + * An opaque value that represents the internal version of this object that can + * be used by clients to determine when objects have changed. May be used for optimistic + * concurrency, change detection, and the watch operation on a resource or set of resources. + * Clients must treat these values as opaque and passed unmodified back to the server. + * They may only be valid for a particular resource or set of resources. + * + * Populated by the system. + * Read-only. + * Value must be treated as opaque by clients and . + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + * +optional + *+ * + *
optional string resourceVersion = 6;
+ */
+ public boolean hasResourceVersion() {
+ return ((bitField0_ & 0x00000020) == 0x00000020);
+ }
+ /**
+ * + * An opaque value that represents the internal version of this object that can + * be used by clients to determine when objects have changed. May be used for optimistic + * concurrency, change detection, and the watch operation on a resource or set of resources. + * Clients must treat these values as opaque and passed unmodified back to the server. + * They may only be valid for a particular resource or set of resources. + * + * Populated by the system. + * Read-only. + * Value must be treated as opaque by clients and . + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + * +optional + *+ * + *
optional string resourceVersion = 6;
+ */
+ public java.lang.String getResourceVersion() {
+ java.lang.Object ref = resourceVersion_;
+ 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()) {
+ resourceVersion_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * + * An opaque value that represents the internal version of this object that can + * be used by clients to determine when objects have changed. May be used for optimistic + * concurrency, change detection, and the watch operation on a resource or set of resources. + * Clients must treat these values as opaque and passed unmodified back to the server. + * They may only be valid for a particular resource or set of resources. + * + * Populated by the system. + * Read-only. + * Value must be treated as opaque by clients and . + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + * +optional + *+ * + *
optional string resourceVersion = 6;
+ */
+ public com.google.protobuf.ByteString
+ getResourceVersionBytes() {
+ java.lang.Object ref = resourceVersion_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ resourceVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int GENERATION_FIELD_NUMBER = 7;
+ private long generation_;
+ /**
+ * + * A sequence number representing a specific generation of the desired state. + * Populated by the system. Read-only. + * +optional + *+ * + *
optional int64 generation = 7;
+ */
+ public boolean hasGeneration() {
+ return ((bitField0_ & 0x00000040) == 0x00000040);
+ }
+ /**
+ * + * A sequence number representing a specific generation of the desired state. + * Populated by the system. Read-only. + * +optional + *+ * + *
optional int64 generation = 7;
+ */
+ public long getGeneration() {
+ return generation_;
+ }
+
+ public static final int CREATIONTIMESTAMP_FIELD_NUMBER = 8;
+ private io.kubernetes.client.proto.Generated.Time creationTimestamp_;
+ /**
+ * + * CreationTimestamp is a timestamp representing the server time when this object was + * created. It is not guaranteed to be set in happens-before order across separate operations. + * Clients may not set this value. It is represented in RFC3339 form and is in UTC. + * + * Populated by the system. + * Read-only. + * Null for lists. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time creationTimestamp = 8;
+ */
+ public boolean hasCreationTimestamp() {
+ return ((bitField0_ & 0x00000080) == 0x00000080);
+ }
+ /**
+ * + * CreationTimestamp is a timestamp representing the server time when this object was + * created. It is not guaranteed to be set in happens-before order across separate operations. + * Clients may not set this value. It is represented in RFC3339 form and is in UTC. + * + * Populated by the system. + * Read-only. + * Null for lists. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time creationTimestamp = 8;
+ */
+ public io.kubernetes.client.proto.Generated.Time getCreationTimestamp() {
+ return creationTimestamp_ == null ? io.kubernetes.client.proto.Generated.Time.getDefaultInstance() : creationTimestamp_;
+ }
+ /**
+ * + * CreationTimestamp is a timestamp representing the server time when this object was + * created. It is not guaranteed to be set in happens-before order across separate operations. + * Clients may not set this value. It is represented in RFC3339 form and is in UTC. + * + * Populated by the system. + * Read-only. + * Null for lists. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time creationTimestamp = 8;
+ */
+ public io.kubernetes.client.proto.Generated.TimeOrBuilder getCreationTimestampOrBuilder() {
+ return creationTimestamp_ == null ? io.kubernetes.client.proto.Generated.Time.getDefaultInstance() : creationTimestamp_;
+ }
+
+ public static final int DELETIONTIMESTAMP_FIELD_NUMBER = 9;
+ private io.kubernetes.client.proto.Generated.Time deletionTimestamp_;
+ /**
+ * + * DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This + * field is set by the server when a graceful deletion is requested by the user, and is not + * directly settable by a client. The resource is expected to be deleted (no longer visible + * from resource lists, and not reachable by name) after the time in this field. Once set, + * this value may not be unset or be set further into the future, although it may be shortened + * or the resource may be deleted prior to this time. For example, a user may request that + * a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination + * signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard + * termination signal (SIGKILL) to the container and after cleanup, remove the pod from the + * API. In the presence of network partitions, this object may still exist after this + * timestamp, until an administrator or automated process can determine the resource is + * fully terminated. + * If not set, graceful deletion of the object has not been requested. + * + * Populated by the system when a graceful deletion is requested. + * Read-only. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deletionTimestamp = 9;
+ */
+ public boolean hasDeletionTimestamp() {
+ return ((bitField0_ & 0x00000100) == 0x00000100);
+ }
+ /**
+ * + * DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This + * field is set by the server when a graceful deletion is requested by the user, and is not + * directly settable by a client. The resource is expected to be deleted (no longer visible + * from resource lists, and not reachable by name) after the time in this field. Once set, + * this value may not be unset or be set further into the future, although it may be shortened + * or the resource may be deleted prior to this time. For example, a user may request that + * a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination + * signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard + * termination signal (SIGKILL) to the container and after cleanup, remove the pod from the + * API. In the presence of network partitions, this object may still exist after this + * timestamp, until an administrator or automated process can determine the resource is + * fully terminated. + * If not set, graceful deletion of the object has not been requested. + * + * Populated by the system when a graceful deletion is requested. + * Read-only. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deletionTimestamp = 9;
+ */
+ public io.kubernetes.client.proto.Generated.Time getDeletionTimestamp() {
+ return deletionTimestamp_ == null ? io.kubernetes.client.proto.Generated.Time.getDefaultInstance() : deletionTimestamp_;
+ }
+ /**
+ * + * DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This + * field is set by the server when a graceful deletion is requested by the user, and is not + * directly settable by a client. The resource is expected to be deleted (no longer visible + * from resource lists, and not reachable by name) after the time in this field. Once set, + * this value may not be unset or be set further into the future, although it may be shortened + * or the resource may be deleted prior to this time. For example, a user may request that + * a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination + * signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard + * termination signal (SIGKILL) to the container and after cleanup, remove the pod from the + * API. In the presence of network partitions, this object may still exist after this + * timestamp, until an administrator or automated process can determine the resource is + * fully terminated. + * If not set, graceful deletion of the object has not been requested. + * + * Populated by the system when a graceful deletion is requested. + * Read-only. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deletionTimestamp = 9;
+ */
+ public io.kubernetes.client.proto.Generated.TimeOrBuilder getDeletionTimestampOrBuilder() {
+ return deletionTimestamp_ == null ? io.kubernetes.client.proto.Generated.Time.getDefaultInstance() : deletionTimestamp_;
+ }
+
+ public static final int DELETIONGRACEPERIODSECONDS_FIELD_NUMBER = 10;
+ private long deletionGracePeriodSeconds_;
+ /**
+ * + * Number of seconds allowed for this object to gracefully terminate before + * it will be removed from the system. Only set when deletionTimestamp is also set. + * May only be shortened. + * Read-only. + * +optional + *+ * + *
optional int64 deletionGracePeriodSeconds = 10;
+ */
+ public boolean hasDeletionGracePeriodSeconds() {
+ return ((bitField0_ & 0x00000200) == 0x00000200);
+ }
+ /**
+ * + * Number of seconds allowed for this object to gracefully terminate before + * it will be removed from the system. Only set when deletionTimestamp is also set. + * May only be shortened. + * Read-only. + * +optional + *+ * + *
optional int64 deletionGracePeriodSeconds = 10;
+ */
+ public long getDeletionGracePeriodSeconds() {
+ return deletionGracePeriodSeconds_;
+ }
+
+ public static final int LABELS_FIELD_NUMBER = 11;
+ private static final class LabelsDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.String, java.lang.String> defaultEntry =
+ com.google.protobuf.MapEntry
+ .+ * Map of string keys and values that can be used to organize and categorize + * (scope and select) objects. May match selectors of replication controllers + * and services. + * More info: http://kubernetes.io/docs/user-guide/labels + * +optional + *+ * + *
map<string, string> labels = 11;
+ */
+
+ public boolean containsLabels(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetLabels().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getLabelsMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Map+ * Map of string keys and values that can be used to organize and categorize + * (scope and select) objects. May match selectors of replication controllers + * and services. + * More info: http://kubernetes.io/docs/user-guide/labels + * +optional + *+ * + *
map<string, string> labels = 11;
+ */
+
+ public java.util.Map+ * Map of string keys and values that can be used to organize and categorize + * (scope and select) objects. May match selectors of replication controllers + * and services. + * More info: http://kubernetes.io/docs/user-guide/labels + * +optional + *+ * + *
map<string, string> labels = 11;
+ */
+
+ public java.lang.String getLabelsOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * Map of string keys and values that can be used to organize and categorize + * (scope and select) objects. May match selectors of replication controllers + * and services. + * More info: http://kubernetes.io/docs/user-guide/labels + * +optional + *+ * + *
map<string, string> labels = 11;
+ */
+
+ public java.lang.String getLabelsOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * Annotations is an unstructured key value map stored with a resource that may be + * set by external tools to store and retrieve arbitrary metadata. They are not + * queryable and should be preserved when modifying objects. + * More info: http://kubernetes.io/docs/user-guide/annotations + * +optional + *+ * + *
map<string, string> annotations = 12;
+ */
+
+ public boolean containsAnnotations(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetAnnotations().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getAnnotationsMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Map+ * Annotations is an unstructured key value map stored with a resource that may be + * set by external tools to store and retrieve arbitrary metadata. They are not + * queryable and should be preserved when modifying objects. + * More info: http://kubernetes.io/docs/user-guide/annotations + * +optional + *+ * + *
map<string, string> annotations = 12;
+ */
+
+ public java.util.Map+ * Annotations is an unstructured key value map stored with a resource that may be + * set by external tools to store and retrieve arbitrary metadata. They are not + * queryable and should be preserved when modifying objects. + * More info: http://kubernetes.io/docs/user-guide/annotations + * +optional + *+ * + *
map<string, string> annotations = 12;
+ */
+
+ public java.lang.String getAnnotationsOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * Annotations is an unstructured key value map stored with a resource that may be + * set by external tools to store and retrieve arbitrary metadata. They are not + * queryable and should be preserved when modifying objects. + * More info: http://kubernetes.io/docs/user-guide/annotations + * +optional + *+ * + *
map<string, string> annotations = 12;
+ */
+
+ public java.lang.String getAnnotationsOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * List of objects depended by this object. If ALL objects in the list have + * been deleted, this object will be garbage collected. If this object is managed by a controller, + * then an entry in this list will point to this controller, with the controller field set to true. + * There cannot be more than one managing controller. + * +optional + * +patchMergeKey=uid + * +patchStrategy=merge + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference ownerReferences = 13;
+ */
+ public java.util.List+ * List of objects depended by this object. If ALL objects in the list have + * been deleted, this object will be garbage collected. If this object is managed by a controller, + * then an entry in this list will point to this controller, with the controller field set to true. + * There cannot be more than one managing controller. + * +optional + * +patchMergeKey=uid + * +patchStrategy=merge + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference ownerReferences = 13;
+ */
+ public java.util.List extends io.kubernetes.client.proto.Generated.OwnerReferenceOrBuilder>
+ getOwnerReferencesOrBuilderList() {
+ return ownerReferences_;
+ }
+ /**
+ * + * List of objects depended by this object. If ALL objects in the list have + * been deleted, this object will be garbage collected. If this object is managed by a controller, + * then an entry in this list will point to this controller, with the controller field set to true. + * There cannot be more than one managing controller. + * +optional + * +patchMergeKey=uid + * +patchStrategy=merge + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference ownerReferences = 13;
+ */
+ public int getOwnerReferencesCount() {
+ return ownerReferences_.size();
+ }
+ /**
+ * + * List of objects depended by this object. If ALL objects in the list have + * been deleted, this object will be garbage collected. If this object is managed by a controller, + * then an entry in this list will point to this controller, with the controller field set to true. + * There cannot be more than one managing controller. + * +optional + * +patchMergeKey=uid + * +patchStrategy=merge + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference ownerReferences = 13;
+ */
+ public io.kubernetes.client.proto.Generated.OwnerReference getOwnerReferences(int index) {
+ return ownerReferences_.get(index);
+ }
+ /**
+ * + * List of objects depended by this object. If ALL objects in the list have + * been deleted, this object will be garbage collected. If this object is managed by a controller, + * then an entry in this list will point to this controller, with the controller field set to true. + * There cannot be more than one managing controller. + * +optional + * +patchMergeKey=uid + * +patchStrategy=merge + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference ownerReferences = 13;
+ */
+ public io.kubernetes.client.proto.Generated.OwnerReferenceOrBuilder getOwnerReferencesOrBuilder(
+ int index) {
+ return ownerReferences_.get(index);
+ }
+
+ public static final int INITIALIZERS_FIELD_NUMBER = 16;
+ private io.kubernetes.client.proto.Generated.Initializers initializers_;
+ /**
+ * + * An initializer is a controller which enforces some system invariant at object creation time. + * This field is a list of initializers that have not yet acted on this object. If nil or empty, + * this object has been completely initialized. Otherwise, the object is considered uninitialized + * and is hidden (in list/watch and get calls) from clients that haven't explicitly asked to + * observe uninitialized objects. + * + * When an object is created, the system will populate this list with the current set of initializers. + * Only privileged users may set or modify this list. Once it is empty, it may not be modified further + * by any user. + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Initializers initializers = 16;
+ */
+ public boolean hasInitializers() {
+ return ((bitField0_ & 0x00000400) == 0x00000400);
+ }
+ /**
+ * + * An initializer is a controller which enforces some system invariant at object creation time. + * This field is a list of initializers that have not yet acted on this object. If nil or empty, + * this object has been completely initialized. Otherwise, the object is considered uninitialized + * and is hidden (in list/watch and get calls) from clients that haven't explicitly asked to + * observe uninitialized objects. + * + * When an object is created, the system will populate this list with the current set of initializers. + * Only privileged users may set or modify this list. Once it is empty, it may not be modified further + * by any user. + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Initializers initializers = 16;
+ */
+ public io.kubernetes.client.proto.Generated.Initializers getInitializers() {
+ return initializers_ == null ? io.kubernetes.client.proto.Generated.Initializers.getDefaultInstance() : initializers_;
+ }
+ /**
+ * + * An initializer is a controller which enforces some system invariant at object creation time. + * This field is a list of initializers that have not yet acted on this object. If nil or empty, + * this object has been completely initialized. Otherwise, the object is considered uninitialized + * and is hidden (in list/watch and get calls) from clients that haven't explicitly asked to + * observe uninitialized objects. + * + * When an object is created, the system will populate this list with the current set of initializers. + * Only privileged users may set or modify this list. Once it is empty, it may not be modified further + * by any user. + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Initializers initializers = 16;
+ */
+ public io.kubernetes.client.proto.Generated.InitializersOrBuilder getInitializersOrBuilder() {
+ return initializers_ == null ? io.kubernetes.client.proto.Generated.Initializers.getDefaultInstance() : initializers_;
+ }
+
+ public static final int FINALIZERS_FIELD_NUMBER = 14;
+ private com.google.protobuf.LazyStringList finalizers_;
+ /**
+ * + * Must be empty before the object is deleted from the registry. Each entry + * is an identifier for the responsible component that will remove the entry + * from the list. If the deletionTimestamp of the object is non-nil, entries + * in this list can only be removed. + * +optional + * +patchStrategy=merge + *+ * + *
repeated string finalizers = 14;
+ */
+ public com.google.protobuf.ProtocolStringList
+ getFinalizersList() {
+ return finalizers_;
+ }
+ /**
+ * + * Must be empty before the object is deleted from the registry. Each entry + * is an identifier for the responsible component that will remove the entry + * from the list. If the deletionTimestamp of the object is non-nil, entries + * in this list can only be removed. + * +optional + * +patchStrategy=merge + *+ * + *
repeated string finalizers = 14;
+ */
+ public int getFinalizersCount() {
+ return finalizers_.size();
+ }
+ /**
+ * + * Must be empty before the object is deleted from the registry. Each entry + * is an identifier for the responsible component that will remove the entry + * from the list. If the deletionTimestamp of the object is non-nil, entries + * in this list can only be removed. + * +optional + * +patchStrategy=merge + *+ * + *
repeated string finalizers = 14;
+ */
+ public java.lang.String getFinalizers(int index) {
+ return finalizers_.get(index);
+ }
+ /**
+ * + * Must be empty before the object is deleted from the registry. Each entry + * is an identifier for the responsible component that will remove the entry + * from the list. If the deletionTimestamp of the object is non-nil, entries + * in this list can only be removed. + * +optional + * +patchStrategy=merge + *+ * + *
repeated string finalizers = 14;
+ */
+ public com.google.protobuf.ByteString
+ getFinalizersBytes(int index) {
+ return finalizers_.getByteString(index);
+ }
+
+ public static final int CLUSTERNAME_FIELD_NUMBER = 15;
+ private volatile java.lang.Object clusterName_;
+ /**
+ * + * The name of the cluster which the object belongs to. + * This is used to distinguish resources with same name and namespace in different clusters. + * This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * +optional + *+ * + *
optional string clusterName = 15;
+ */
+ public boolean hasClusterName() {
+ return ((bitField0_ & 0x00000800) == 0x00000800);
+ }
+ /**
+ * + * The name of the cluster which the object belongs to. + * This is used to distinguish resources with same name and namespace in different clusters. + * This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * +optional + *+ * + *
optional string clusterName = 15;
+ */
+ public java.lang.String getClusterName() {
+ java.lang.Object ref = clusterName_;
+ 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()) {
+ clusterName_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * + * The name of the cluster which the object belongs to. + * This is used to distinguish resources with same name and namespace in different clusters. + * This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * +optional + *+ * + *
optional string clusterName = 15;
+ */
+ public com.google.protobuf.ByteString
+ getClusterNameBytes() {
+ java.lang.Object ref = clusterName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ clusterName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, generateName_);
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, namespace_);
+ }
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, selfLink_);
+ }
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, uid_);
+ }
+ if (((bitField0_ & 0x00000020) == 0x00000020)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, resourceVersion_);
+ }
+ if (((bitField0_ & 0x00000040) == 0x00000040)) {
+ output.writeInt64(7, generation_);
+ }
+ if (((bitField0_ & 0x00000080) == 0x00000080)) {
+ output.writeMessage(8, getCreationTimestamp());
+ }
+ if (((bitField0_ & 0x00000100) == 0x00000100)) {
+ output.writeMessage(9, getDeletionTimestamp());
+ }
+ if (((bitField0_ & 0x00000200) == 0x00000200)) {
+ output.writeInt64(10, deletionGracePeriodSeconds_);
+ }
+ com.google.protobuf.GeneratedMessageV3
+ .serializeStringMapTo(
+ output,
+ internalGetLabels(),
+ LabelsDefaultEntryHolder.defaultEntry,
+ 11);
+ com.google.protobuf.GeneratedMessageV3
+ .serializeStringMapTo(
+ output,
+ internalGetAnnotations(),
+ AnnotationsDefaultEntryHolder.defaultEntry,
+ 12);
+ for (int i = 0; i < ownerReferences_.size(); i++) {
+ output.writeMessage(13, ownerReferences_.get(i));
+ }
+ for (int i = 0; i < finalizers_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 14, finalizers_.getRaw(i));
+ }
+ if (((bitField0_ & 0x00000800) == 0x00000800)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 15, clusterName_);
+ }
+ if (((bitField0_ & 0x00000400) == 0x00000400)) {
+ output.writeMessage(16, getInitializers());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, generateName_);
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, namespace_);
+ }
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, selfLink_);
+ }
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, uid_);
+ }
+ if (((bitField0_ & 0x00000020) == 0x00000020)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, resourceVersion_);
+ }
+ if (((bitField0_ & 0x00000040) == 0x00000040)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(7, generation_);
+ }
+ if (((bitField0_ & 0x00000080) == 0x00000080)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(8, getCreationTimestamp());
+ }
+ if (((bitField0_ & 0x00000100) == 0x00000100)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(9, getDeletionTimestamp());
+ }
+ if (((bitField0_ & 0x00000200) == 0x00000200)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(10, deletionGracePeriodSeconds_);
+ }
+ for (java.util.Map.Entry+ * ObjectMeta is metadata that all persisted resources must have, which includes all objects + * users must create. + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * Name must be unique within a namespace. Is required when creating resources, although + * some resources may allow a client to request the generation of an appropriate name + * automatically. Name is primarily intended for creation idempotence and configuration + * definition. + * Cannot be updated. + * More info: http://kubernetes.io/docs/user-guide/identifiers#names + * +optional + *+ * + *
optional string name = 1;
+ */
+ public boolean hasName() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * + * Name must be unique within a namespace. Is required when creating resources, although + * some resources may allow a client to request the generation of an appropriate name + * automatically. Name is primarily intended for creation idempotence and configuration + * definition. + * Cannot be updated. + * More info: http://kubernetes.io/docs/user-guide/identifiers#names + * +optional + *+ * + *
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 must be unique within a namespace. Is required when creating resources, although + * some resources may allow a client to request the generation of an appropriate name + * automatically. Name is primarily intended for creation idempotence and configuration + * definition. + * Cannot be updated. + * More info: http://kubernetes.io/docs/user-guide/identifiers#names + * +optional + *+ * + *
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 must be unique within a namespace. Is required when creating resources, although + * some resources may allow a client to request the generation of an appropriate name + * automatically. Name is primarily intended for creation idempotence and configuration + * definition. + * Cannot be updated. + * More info: http://kubernetes.io/docs/user-guide/identifiers#names + * +optional + *+ * + *
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 must be unique within a namespace. Is required when creating resources, although + * some resources may allow a client to request the generation of an appropriate name + * automatically. Name is primarily intended for creation idempotence and configuration + * definition. + * Cannot be updated. + * More info: http://kubernetes.io/docs/user-guide/identifiers#names + * +optional + *+ * + *
optional string name = 1;
+ */
+ public Builder clearName() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Name must be unique within a namespace. Is required when creating resources, although + * some resources may allow a client to request the generation of an appropriate name + * automatically. Name is primarily intended for creation idempotence and configuration + * definition. + * Cannot be updated. + * More info: http://kubernetes.io/docs/user-guide/identifiers#names + * +optional + *+ * + *
optional string name = 1;
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object generateName_ = "";
+ /**
+ * + * GenerateName is an optional prefix, used by the server, to generate a unique + * name ONLY IF the Name field has not been provided. + * If this field is used, the name returned to the client will be different + * than the name passed. This value will also be combined with a unique suffix. + * The provided value has the same validation rules as the Name field, + * and may be truncated by the length of the suffix required to make the value + * unique on the server. + * + * If this field is specified and the generated name exists, the server will + * NOT return a 409 - instead, it will either return 201 Created or 500 with Reason + * ServerTimeout indicating a unique name could not be found in the time allotted, and the client + * should retry (optionally after the time indicated in the Retry-After header). + * + * Applied only if Name is not specified. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency + * +optional + *+ * + *
optional string generateName = 2;
+ */
+ public boolean hasGenerateName() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * + * GenerateName is an optional prefix, used by the server, to generate a unique + * name ONLY IF the Name field has not been provided. + * If this field is used, the name returned to the client will be different + * than the name passed. This value will also be combined with a unique suffix. + * The provided value has the same validation rules as the Name field, + * and may be truncated by the length of the suffix required to make the value + * unique on the server. + * + * If this field is specified and the generated name exists, the server will + * NOT return a 409 - instead, it will either return 201 Created or 500 with Reason + * ServerTimeout indicating a unique name could not be found in the time allotted, and the client + * should retry (optionally after the time indicated in the Retry-After header). + * + * Applied only if Name is not specified. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency + * +optional + *+ * + *
optional string generateName = 2;
+ */
+ public java.lang.String getGenerateName() {
+ java.lang.Object ref = generateName_;
+ 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()) {
+ generateName_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * GenerateName is an optional prefix, used by the server, to generate a unique + * name ONLY IF the Name field has not been provided. + * If this field is used, the name returned to the client will be different + * than the name passed. This value will also be combined with a unique suffix. + * The provided value has the same validation rules as the Name field, + * and may be truncated by the length of the suffix required to make the value + * unique on the server. + * + * If this field is specified and the generated name exists, the server will + * NOT return a 409 - instead, it will either return 201 Created or 500 with Reason + * ServerTimeout indicating a unique name could not be found in the time allotted, and the client + * should retry (optionally after the time indicated in the Retry-After header). + * + * Applied only if Name is not specified. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency + * +optional + *+ * + *
optional string generateName = 2;
+ */
+ public com.google.protobuf.ByteString
+ getGenerateNameBytes() {
+ java.lang.Object ref = generateName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ generateName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * GenerateName is an optional prefix, used by the server, to generate a unique + * name ONLY IF the Name field has not been provided. + * If this field is used, the name returned to the client will be different + * than the name passed. This value will also be combined with a unique suffix. + * The provided value has the same validation rules as the Name field, + * and may be truncated by the length of the suffix required to make the value + * unique on the server. + * + * If this field is specified and the generated name exists, the server will + * NOT return a 409 - instead, it will either return 201 Created or 500 with Reason + * ServerTimeout indicating a unique name could not be found in the time allotted, and the client + * should retry (optionally after the time indicated in the Retry-After header). + * + * Applied only if Name is not specified. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency + * +optional + *+ * + *
optional string generateName = 2;
+ */
+ public Builder setGenerateName(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ generateName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * GenerateName is an optional prefix, used by the server, to generate a unique + * name ONLY IF the Name field has not been provided. + * If this field is used, the name returned to the client will be different + * than the name passed. This value will also be combined with a unique suffix. + * The provided value has the same validation rules as the Name field, + * and may be truncated by the length of the suffix required to make the value + * unique on the server. + * + * If this field is specified and the generated name exists, the server will + * NOT return a 409 - instead, it will either return 201 Created or 500 with Reason + * ServerTimeout indicating a unique name could not be found in the time allotted, and the client + * should retry (optionally after the time indicated in the Retry-After header). + * + * Applied only if Name is not specified. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency + * +optional + *+ * + *
optional string generateName = 2;
+ */
+ public Builder clearGenerateName() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ generateName_ = getDefaultInstance().getGenerateName();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * GenerateName is an optional prefix, used by the server, to generate a unique + * name ONLY IF the Name field has not been provided. + * If this field is used, the name returned to the client will be different + * than the name passed. This value will also be combined with a unique suffix. + * The provided value has the same validation rules as the Name field, + * and may be truncated by the length of the suffix required to make the value + * unique on the server. + * + * If this field is specified and the generated name exists, the server will + * NOT return a 409 - instead, it will either return 201 Created or 500 with Reason + * ServerTimeout indicating a unique name could not be found in the time allotted, and the client + * should retry (optionally after the time indicated in the Retry-After header). + * + * Applied only if Name is not specified. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency + * +optional + *+ * + *
optional string generateName = 2;
+ */
+ public Builder setGenerateNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ generateName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object namespace_ = "";
+ /**
+ * + * Namespace defines the space within each name must be unique. An empty namespace is + * equivalent to the "default" namespace, but "default" is the canonical representation. + * Not all objects are required to be scoped to a namespace - the value of this field for + * those objects will be empty. + * + * Must be a DNS_LABEL. + * Cannot be updated. + * More info: http://kubernetes.io/docs/user-guide/namespaces + * +optional + *+ * + *
optional string namespace = 3;
+ */
+ public boolean hasNamespace() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * + * Namespace defines the space within each name must be unique. An empty namespace is + * equivalent to the "default" namespace, but "default" is the canonical representation. + * Not all objects are required to be scoped to a namespace - the value of this field for + * those objects will be empty. + * + * Must be a DNS_LABEL. + * Cannot be updated. + * More info: http://kubernetes.io/docs/user-guide/namespaces + * +optional + *+ * + *
optional string namespace = 3;
+ */
+ public java.lang.String getNamespace() {
+ java.lang.Object ref = namespace_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ namespace_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Namespace defines the space within each name must be unique. An empty namespace is + * equivalent to the "default" namespace, but "default" is the canonical representation. + * Not all objects are required to be scoped to a namespace - the value of this field for + * those objects will be empty. + * + * Must be a DNS_LABEL. + * Cannot be updated. + * More info: http://kubernetes.io/docs/user-guide/namespaces + * +optional + *+ * + *
optional string namespace = 3;
+ */
+ public com.google.protobuf.ByteString
+ getNamespaceBytes() {
+ java.lang.Object ref = namespace_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ namespace_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Namespace defines the space within each name must be unique. An empty namespace is + * equivalent to the "default" namespace, but "default" is the canonical representation. + * Not all objects are required to be scoped to a namespace - the value of this field for + * those objects will be empty. + * + * Must be a DNS_LABEL. + * Cannot be updated. + * More info: http://kubernetes.io/docs/user-guide/namespaces + * +optional + *+ * + *
optional string namespace = 3;
+ */
+ public Builder setNamespace(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
+ namespace_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Namespace defines the space within each name must be unique. An empty namespace is + * equivalent to the "default" namespace, but "default" is the canonical representation. + * Not all objects are required to be scoped to a namespace - the value of this field for + * those objects will be empty. + * + * Must be a DNS_LABEL. + * Cannot be updated. + * More info: http://kubernetes.io/docs/user-guide/namespaces + * +optional + *+ * + *
optional string namespace = 3;
+ */
+ public Builder clearNamespace() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ namespace_ = getDefaultInstance().getNamespace();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Namespace defines the space within each name must be unique. An empty namespace is + * equivalent to the "default" namespace, but "default" is the canonical representation. + * Not all objects are required to be scoped to a namespace - the value of this field for + * those objects will be empty. + * + * Must be a DNS_LABEL. + * Cannot be updated. + * More info: http://kubernetes.io/docs/user-guide/namespaces + * +optional + *+ * + *
optional string namespace = 3;
+ */
+ public Builder setNamespaceBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
+ namespace_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object selfLink_ = "";
+ /**
+ * + * SelfLink is a URL representing this object. + * Populated by the system. + * Read-only. + * +optional + *+ * + *
optional string selfLink = 4;
+ */
+ public boolean hasSelfLink() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+ /**
+ * + * SelfLink is a URL representing this object. + * Populated by the system. + * Read-only. + * +optional + *+ * + *
optional string selfLink = 4;
+ */
+ public java.lang.String getSelfLink() {
+ java.lang.Object ref = selfLink_;
+ 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()) {
+ selfLink_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * SelfLink is a URL representing this object. + * Populated by the system. + * Read-only. + * +optional + *+ * + *
optional string selfLink = 4;
+ */
+ public com.google.protobuf.ByteString
+ getSelfLinkBytes() {
+ java.lang.Object ref = selfLink_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ selfLink_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * SelfLink is a URL representing this object. + * Populated by the system. + * Read-only. + * +optional + *+ * + *
optional string selfLink = 4;
+ */
+ public Builder setSelfLink(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000008;
+ selfLink_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * SelfLink is a URL representing this object. + * Populated by the system. + * Read-only. + * +optional + *+ * + *
optional string selfLink = 4;
+ */
+ public Builder clearSelfLink() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ selfLink_ = getDefaultInstance().getSelfLink();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * SelfLink is a URL representing this object. + * Populated by the system. + * Read-only. + * +optional + *+ * + *
optional string selfLink = 4;
+ */
+ public Builder setSelfLinkBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000008;
+ selfLink_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object uid_ = "";
+ /**
+ * + * UID is the unique in time and space value for this object. It is typically generated by + * the server on successful creation of a resource and is not allowed to change on PUT + * operations. + * + * Populated by the system. + * Read-only. + * More info: http://kubernetes.io/docs/user-guide/identifiers#uids + * +optional + *+ * + *
optional string uid = 5;
+ */
+ public boolean hasUid() {
+ return ((bitField0_ & 0x00000010) == 0x00000010);
+ }
+ /**
+ * + * UID is the unique in time and space value for this object. It is typically generated by + * the server on successful creation of a resource and is not allowed to change on PUT + * operations. + * + * Populated by the system. + * Read-only. + * More info: http://kubernetes.io/docs/user-guide/identifiers#uids + * +optional + *+ * + *
optional string uid = 5;
+ */
+ public java.lang.String getUid() {
+ java.lang.Object ref = uid_;
+ 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()) {
+ uid_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * UID is the unique in time and space value for this object. It is typically generated by + * the server on successful creation of a resource and is not allowed to change on PUT + * operations. + * + * Populated by the system. + * Read-only. + * More info: http://kubernetes.io/docs/user-guide/identifiers#uids + * +optional + *+ * + *
optional string uid = 5;
+ */
+ public com.google.protobuf.ByteString
+ getUidBytes() {
+ java.lang.Object ref = uid_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ uid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * UID is the unique in time and space value for this object. It is typically generated by + * the server on successful creation of a resource and is not allowed to change on PUT + * operations. + * + * Populated by the system. + * Read-only. + * More info: http://kubernetes.io/docs/user-guide/identifiers#uids + * +optional + *+ * + *
optional string uid = 5;
+ */
+ public Builder setUid(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000010;
+ uid_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * UID is the unique in time and space value for this object. It is typically generated by + * the server on successful creation of a resource and is not allowed to change on PUT + * operations. + * + * Populated by the system. + * Read-only. + * More info: http://kubernetes.io/docs/user-guide/identifiers#uids + * +optional + *+ * + *
optional string uid = 5;
+ */
+ public Builder clearUid() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ uid_ = getDefaultInstance().getUid();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * UID is the unique in time and space value for this object. It is typically generated by + * the server on successful creation of a resource and is not allowed to change on PUT + * operations. + * + * Populated by the system. + * Read-only. + * More info: http://kubernetes.io/docs/user-guide/identifiers#uids + * +optional + *+ * + *
optional string uid = 5;
+ */
+ public Builder setUidBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000010;
+ uid_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object resourceVersion_ = "";
+ /**
+ * + * An opaque value that represents the internal version of this object that can + * be used by clients to determine when objects have changed. May be used for optimistic + * concurrency, change detection, and the watch operation on a resource or set of resources. + * Clients must treat these values as opaque and passed unmodified back to the server. + * They may only be valid for a particular resource or set of resources. + * + * Populated by the system. + * Read-only. + * Value must be treated as opaque by clients and . + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + * +optional + *+ * + *
optional string resourceVersion = 6;
+ */
+ public boolean hasResourceVersion() {
+ return ((bitField0_ & 0x00000020) == 0x00000020);
+ }
+ /**
+ * + * An opaque value that represents the internal version of this object that can + * be used by clients to determine when objects have changed. May be used for optimistic + * concurrency, change detection, and the watch operation on a resource or set of resources. + * Clients must treat these values as opaque and passed unmodified back to the server. + * They may only be valid for a particular resource or set of resources. + * + * Populated by the system. + * Read-only. + * Value must be treated as opaque by clients and . + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + * +optional + *+ * + *
optional string resourceVersion = 6;
+ */
+ public java.lang.String getResourceVersion() {
+ java.lang.Object ref = resourceVersion_;
+ 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()) {
+ resourceVersion_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * An opaque value that represents the internal version of this object that can + * be used by clients to determine when objects have changed. May be used for optimistic + * concurrency, change detection, and the watch operation on a resource or set of resources. + * Clients must treat these values as opaque and passed unmodified back to the server. + * They may only be valid for a particular resource or set of resources. + * + * Populated by the system. + * Read-only. + * Value must be treated as opaque by clients and . + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + * +optional + *+ * + *
optional string resourceVersion = 6;
+ */
+ public com.google.protobuf.ByteString
+ getResourceVersionBytes() {
+ java.lang.Object ref = resourceVersion_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ resourceVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * An opaque value that represents the internal version of this object that can + * be used by clients to determine when objects have changed. May be used for optimistic + * concurrency, change detection, and the watch operation on a resource or set of resources. + * Clients must treat these values as opaque and passed unmodified back to the server. + * They may only be valid for a particular resource or set of resources. + * + * Populated by the system. + * Read-only. + * Value must be treated as opaque by clients and . + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + * +optional + *+ * + *
optional string resourceVersion = 6;
+ */
+ public Builder setResourceVersion(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000020;
+ resourceVersion_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * An opaque value that represents the internal version of this object that can + * be used by clients to determine when objects have changed. May be used for optimistic + * concurrency, change detection, and the watch operation on a resource or set of resources. + * Clients must treat these values as opaque and passed unmodified back to the server. + * They may only be valid for a particular resource or set of resources. + * + * Populated by the system. + * Read-only. + * Value must be treated as opaque by clients and . + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + * +optional + *+ * + *
optional string resourceVersion = 6;
+ */
+ public Builder clearResourceVersion() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ resourceVersion_ = getDefaultInstance().getResourceVersion();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * An opaque value that represents the internal version of this object that can + * be used by clients to determine when objects have changed. May be used for optimistic + * concurrency, change detection, and the watch operation on a resource or set of resources. + * Clients must treat these values as opaque and passed unmodified back to the server. + * They may only be valid for a particular resource or set of resources. + * + * Populated by the system. + * Read-only. + * Value must be treated as opaque by clients and . + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + * +optional + *+ * + *
optional string resourceVersion = 6;
+ */
+ public Builder setResourceVersionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000020;
+ resourceVersion_ = value;
+ onChanged();
+ return this;
+ }
+
+ private long generation_ ;
+ /**
+ * + * A sequence number representing a specific generation of the desired state. + * Populated by the system. Read-only. + * +optional + *+ * + *
optional int64 generation = 7;
+ */
+ public boolean hasGeneration() {
+ return ((bitField0_ & 0x00000040) == 0x00000040);
+ }
+ /**
+ * + * A sequence number representing a specific generation of the desired state. + * Populated by the system. Read-only. + * +optional + *+ * + *
optional int64 generation = 7;
+ */
+ public long getGeneration() {
+ return generation_;
+ }
+ /**
+ * + * A sequence number representing a specific generation of the desired state. + * Populated by the system. Read-only. + * +optional + *+ * + *
optional int64 generation = 7;
+ */
+ public Builder setGeneration(long value) {
+ bitField0_ |= 0x00000040;
+ generation_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A sequence number representing a specific generation of the desired state. + * Populated by the system. Read-only. + * +optional + *+ * + *
optional int64 generation = 7;
+ */
+ public Builder clearGeneration() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ generation_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private io.kubernetes.client.proto.Generated.Time creationTimestamp_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.kubernetes.client.proto.Generated.Time, io.kubernetes.client.proto.Generated.Time.Builder, io.kubernetes.client.proto.Generated.TimeOrBuilder> creationTimestampBuilder_;
+ /**
+ * + * CreationTimestamp is a timestamp representing the server time when this object was + * created. It is not guaranteed to be set in happens-before order across separate operations. + * Clients may not set this value. It is represented in RFC3339 form and is in UTC. + * + * Populated by the system. + * Read-only. + * Null for lists. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time creationTimestamp = 8;
+ */
+ public boolean hasCreationTimestamp() {
+ return ((bitField0_ & 0x00000080) == 0x00000080);
+ }
+ /**
+ * + * CreationTimestamp is a timestamp representing the server time when this object was + * created. It is not guaranteed to be set in happens-before order across separate operations. + * Clients may not set this value. It is represented in RFC3339 form and is in UTC. + * + * Populated by the system. + * Read-only. + * Null for lists. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time creationTimestamp = 8;
+ */
+ public io.kubernetes.client.proto.Generated.Time getCreationTimestamp() {
+ if (creationTimestampBuilder_ == null) {
+ return creationTimestamp_ == null ? io.kubernetes.client.proto.Generated.Time.getDefaultInstance() : creationTimestamp_;
+ } else {
+ return creationTimestampBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * CreationTimestamp is a timestamp representing the server time when this object was + * created. It is not guaranteed to be set in happens-before order across separate operations. + * Clients may not set this value. It is represented in RFC3339 form and is in UTC. + * + * Populated by the system. + * Read-only. + * Null for lists. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time creationTimestamp = 8;
+ */
+ public Builder setCreationTimestamp(io.kubernetes.client.proto.Generated.Time value) {
+ if (creationTimestampBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ creationTimestamp_ = value;
+ onChanged();
+ } else {
+ creationTimestampBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000080;
+ return this;
+ }
+ /**
+ * + * CreationTimestamp is a timestamp representing the server time when this object was + * created. It is not guaranteed to be set in happens-before order across separate operations. + * Clients may not set this value. It is represented in RFC3339 form and is in UTC. + * + * Populated by the system. + * Read-only. + * Null for lists. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time creationTimestamp = 8;
+ */
+ public Builder setCreationTimestamp(
+ io.kubernetes.client.proto.Generated.Time.Builder builderForValue) {
+ if (creationTimestampBuilder_ == null) {
+ creationTimestamp_ = builderForValue.build();
+ onChanged();
+ } else {
+ creationTimestampBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000080;
+ return this;
+ }
+ /**
+ * + * CreationTimestamp is a timestamp representing the server time when this object was + * created. It is not guaranteed to be set in happens-before order across separate operations. + * Clients may not set this value. It is represented in RFC3339 form and is in UTC. + * + * Populated by the system. + * Read-only. + * Null for lists. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time creationTimestamp = 8;
+ */
+ public Builder mergeCreationTimestamp(io.kubernetes.client.proto.Generated.Time value) {
+ if (creationTimestampBuilder_ == null) {
+ if (((bitField0_ & 0x00000080) == 0x00000080) &&
+ creationTimestamp_ != null &&
+ creationTimestamp_ != io.kubernetes.client.proto.Generated.Time.getDefaultInstance()) {
+ creationTimestamp_ =
+ io.kubernetes.client.proto.Generated.Time.newBuilder(creationTimestamp_).mergeFrom(value).buildPartial();
+ } else {
+ creationTimestamp_ = value;
+ }
+ onChanged();
+ } else {
+ creationTimestampBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000080;
+ return this;
+ }
+ /**
+ * + * CreationTimestamp is a timestamp representing the server time when this object was + * created. It is not guaranteed to be set in happens-before order across separate operations. + * Clients may not set this value. It is represented in RFC3339 form and is in UTC. + * + * Populated by the system. + * Read-only. + * Null for lists. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time creationTimestamp = 8;
+ */
+ public Builder clearCreationTimestamp() {
+ if (creationTimestampBuilder_ == null) {
+ creationTimestamp_ = null;
+ onChanged();
+ } else {
+ creationTimestampBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000080);
+ return this;
+ }
+ /**
+ * + * CreationTimestamp is a timestamp representing the server time when this object was + * created. It is not guaranteed to be set in happens-before order across separate operations. + * Clients may not set this value. It is represented in RFC3339 form and is in UTC. + * + * Populated by the system. + * Read-only. + * Null for lists. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time creationTimestamp = 8;
+ */
+ public io.kubernetes.client.proto.Generated.Time.Builder getCreationTimestampBuilder() {
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return getCreationTimestampFieldBuilder().getBuilder();
+ }
+ /**
+ * + * CreationTimestamp is a timestamp representing the server time when this object was + * created. It is not guaranteed to be set in happens-before order across separate operations. + * Clients may not set this value. It is represented in RFC3339 form and is in UTC. + * + * Populated by the system. + * Read-only. + * Null for lists. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time creationTimestamp = 8;
+ */
+ public io.kubernetes.client.proto.Generated.TimeOrBuilder getCreationTimestampOrBuilder() {
+ if (creationTimestampBuilder_ != null) {
+ return creationTimestampBuilder_.getMessageOrBuilder();
+ } else {
+ return creationTimestamp_ == null ?
+ io.kubernetes.client.proto.Generated.Time.getDefaultInstance() : creationTimestamp_;
+ }
+ }
+ /**
+ * + * CreationTimestamp is a timestamp representing the server time when this object was + * created. It is not guaranteed to be set in happens-before order across separate operations. + * Clients may not set this value. It is represented in RFC3339 form and is in UTC. + * + * Populated by the system. + * Read-only. + * Null for lists. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time creationTimestamp = 8;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.kubernetes.client.proto.Generated.Time, io.kubernetes.client.proto.Generated.Time.Builder, io.kubernetes.client.proto.Generated.TimeOrBuilder>
+ getCreationTimestampFieldBuilder() {
+ if (creationTimestampBuilder_ == null) {
+ creationTimestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.kubernetes.client.proto.Generated.Time, io.kubernetes.client.proto.Generated.Time.Builder, io.kubernetes.client.proto.Generated.TimeOrBuilder>(
+ getCreationTimestamp(),
+ getParentForChildren(),
+ isClean());
+ creationTimestamp_ = null;
+ }
+ return creationTimestampBuilder_;
+ }
+
+ private io.kubernetes.client.proto.Generated.Time deletionTimestamp_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.kubernetes.client.proto.Generated.Time, io.kubernetes.client.proto.Generated.Time.Builder, io.kubernetes.client.proto.Generated.TimeOrBuilder> deletionTimestampBuilder_;
+ /**
+ * + * DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This + * field is set by the server when a graceful deletion is requested by the user, and is not + * directly settable by a client. The resource is expected to be deleted (no longer visible + * from resource lists, and not reachable by name) after the time in this field. Once set, + * this value may not be unset or be set further into the future, although it may be shortened + * or the resource may be deleted prior to this time. For example, a user may request that + * a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination + * signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard + * termination signal (SIGKILL) to the container and after cleanup, remove the pod from the + * API. In the presence of network partitions, this object may still exist after this + * timestamp, until an administrator or automated process can determine the resource is + * fully terminated. + * If not set, graceful deletion of the object has not been requested. + * + * Populated by the system when a graceful deletion is requested. + * Read-only. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deletionTimestamp = 9;
+ */
+ public boolean hasDeletionTimestamp() {
+ return ((bitField0_ & 0x00000100) == 0x00000100);
+ }
+ /**
+ * + * DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This + * field is set by the server when a graceful deletion is requested by the user, and is not + * directly settable by a client. The resource is expected to be deleted (no longer visible + * from resource lists, and not reachable by name) after the time in this field. Once set, + * this value may not be unset or be set further into the future, although it may be shortened + * or the resource may be deleted prior to this time. For example, a user may request that + * a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination + * signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard + * termination signal (SIGKILL) to the container and after cleanup, remove the pod from the + * API. In the presence of network partitions, this object may still exist after this + * timestamp, until an administrator or automated process can determine the resource is + * fully terminated. + * If not set, graceful deletion of the object has not been requested. + * + * Populated by the system when a graceful deletion is requested. + * Read-only. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deletionTimestamp = 9;
+ */
+ public io.kubernetes.client.proto.Generated.Time getDeletionTimestamp() {
+ if (deletionTimestampBuilder_ == null) {
+ return deletionTimestamp_ == null ? io.kubernetes.client.proto.Generated.Time.getDefaultInstance() : deletionTimestamp_;
+ } else {
+ return deletionTimestampBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This + * field is set by the server when a graceful deletion is requested by the user, and is not + * directly settable by a client. The resource is expected to be deleted (no longer visible + * from resource lists, and not reachable by name) after the time in this field. Once set, + * this value may not be unset or be set further into the future, although it may be shortened + * or the resource may be deleted prior to this time. For example, a user may request that + * a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination + * signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard + * termination signal (SIGKILL) to the container and after cleanup, remove the pod from the + * API. In the presence of network partitions, this object may still exist after this + * timestamp, until an administrator or automated process can determine the resource is + * fully terminated. + * If not set, graceful deletion of the object has not been requested. + * + * Populated by the system when a graceful deletion is requested. + * Read-only. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deletionTimestamp = 9;
+ */
+ public Builder setDeletionTimestamp(io.kubernetes.client.proto.Generated.Time value) {
+ if (deletionTimestampBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ deletionTimestamp_ = value;
+ onChanged();
+ } else {
+ deletionTimestampBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000100;
+ return this;
+ }
+ /**
+ * + * DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This + * field is set by the server when a graceful deletion is requested by the user, and is not + * directly settable by a client. The resource is expected to be deleted (no longer visible + * from resource lists, and not reachable by name) after the time in this field. Once set, + * this value may not be unset or be set further into the future, although it may be shortened + * or the resource may be deleted prior to this time. For example, a user may request that + * a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination + * signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard + * termination signal (SIGKILL) to the container and after cleanup, remove the pod from the + * API. In the presence of network partitions, this object may still exist after this + * timestamp, until an administrator or automated process can determine the resource is + * fully terminated. + * If not set, graceful deletion of the object has not been requested. + * + * Populated by the system when a graceful deletion is requested. + * Read-only. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deletionTimestamp = 9;
+ */
+ public Builder setDeletionTimestamp(
+ io.kubernetes.client.proto.Generated.Time.Builder builderForValue) {
+ if (deletionTimestampBuilder_ == null) {
+ deletionTimestamp_ = builderForValue.build();
+ onChanged();
+ } else {
+ deletionTimestampBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000100;
+ return this;
+ }
+ /**
+ * + * DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This + * field is set by the server when a graceful deletion is requested by the user, and is not + * directly settable by a client. The resource is expected to be deleted (no longer visible + * from resource lists, and not reachable by name) after the time in this field. Once set, + * this value may not be unset or be set further into the future, although it may be shortened + * or the resource may be deleted prior to this time. For example, a user may request that + * a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination + * signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard + * termination signal (SIGKILL) to the container and after cleanup, remove the pod from the + * API. In the presence of network partitions, this object may still exist after this + * timestamp, until an administrator or automated process can determine the resource is + * fully terminated. + * If not set, graceful deletion of the object has not been requested. + * + * Populated by the system when a graceful deletion is requested. + * Read-only. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deletionTimestamp = 9;
+ */
+ public Builder mergeDeletionTimestamp(io.kubernetes.client.proto.Generated.Time value) {
+ if (deletionTimestampBuilder_ == null) {
+ if (((bitField0_ & 0x00000100) == 0x00000100) &&
+ deletionTimestamp_ != null &&
+ deletionTimestamp_ != io.kubernetes.client.proto.Generated.Time.getDefaultInstance()) {
+ deletionTimestamp_ =
+ io.kubernetes.client.proto.Generated.Time.newBuilder(deletionTimestamp_).mergeFrom(value).buildPartial();
+ } else {
+ deletionTimestamp_ = value;
+ }
+ onChanged();
+ } else {
+ deletionTimestampBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000100;
+ return this;
+ }
+ /**
+ * + * DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This + * field is set by the server when a graceful deletion is requested by the user, and is not + * directly settable by a client. The resource is expected to be deleted (no longer visible + * from resource lists, and not reachable by name) after the time in this field. Once set, + * this value may not be unset or be set further into the future, although it may be shortened + * or the resource may be deleted prior to this time. For example, a user may request that + * a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination + * signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard + * termination signal (SIGKILL) to the container and after cleanup, remove the pod from the + * API. In the presence of network partitions, this object may still exist after this + * timestamp, until an administrator or automated process can determine the resource is + * fully terminated. + * If not set, graceful deletion of the object has not been requested. + * + * Populated by the system when a graceful deletion is requested. + * Read-only. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deletionTimestamp = 9;
+ */
+ public Builder clearDeletionTimestamp() {
+ if (deletionTimestampBuilder_ == null) {
+ deletionTimestamp_ = null;
+ onChanged();
+ } else {
+ deletionTimestampBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000100);
+ return this;
+ }
+ /**
+ * + * DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This + * field is set by the server when a graceful deletion is requested by the user, and is not + * directly settable by a client. The resource is expected to be deleted (no longer visible + * from resource lists, and not reachable by name) after the time in this field. Once set, + * this value may not be unset or be set further into the future, although it may be shortened + * or the resource may be deleted prior to this time. For example, a user may request that + * a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination + * signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard + * termination signal (SIGKILL) to the container and after cleanup, remove the pod from the + * API. In the presence of network partitions, this object may still exist after this + * timestamp, until an administrator or automated process can determine the resource is + * fully terminated. + * If not set, graceful deletion of the object has not been requested. + * + * Populated by the system when a graceful deletion is requested. + * Read-only. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deletionTimestamp = 9;
+ */
+ public io.kubernetes.client.proto.Generated.Time.Builder getDeletionTimestampBuilder() {
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return getDeletionTimestampFieldBuilder().getBuilder();
+ }
+ /**
+ * + * DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This + * field is set by the server when a graceful deletion is requested by the user, and is not + * directly settable by a client. The resource is expected to be deleted (no longer visible + * from resource lists, and not reachable by name) after the time in this field. Once set, + * this value may not be unset or be set further into the future, although it may be shortened + * or the resource may be deleted prior to this time. For example, a user may request that + * a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination + * signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard + * termination signal (SIGKILL) to the container and after cleanup, remove the pod from the + * API. In the presence of network partitions, this object may still exist after this + * timestamp, until an administrator or automated process can determine the resource is + * fully terminated. + * If not set, graceful deletion of the object has not been requested. + * + * Populated by the system when a graceful deletion is requested. + * Read-only. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deletionTimestamp = 9;
+ */
+ public io.kubernetes.client.proto.Generated.TimeOrBuilder getDeletionTimestampOrBuilder() {
+ if (deletionTimestampBuilder_ != null) {
+ return deletionTimestampBuilder_.getMessageOrBuilder();
+ } else {
+ return deletionTimestamp_ == null ?
+ io.kubernetes.client.proto.Generated.Time.getDefaultInstance() : deletionTimestamp_;
+ }
+ }
+ /**
+ * + * DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This + * field is set by the server when a graceful deletion is requested by the user, and is not + * directly settable by a client. The resource is expected to be deleted (no longer visible + * from resource lists, and not reachable by name) after the time in this field. Once set, + * this value may not be unset or be set further into the future, although it may be shortened + * or the resource may be deleted prior to this time. For example, a user may request that + * a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination + * signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard + * termination signal (SIGKILL) to the container and after cleanup, remove the pod from the + * API. In the presence of network partitions, this object may still exist after this + * timestamp, until an administrator or automated process can determine the resource is + * fully terminated. + * If not set, graceful deletion of the object has not been requested. + * + * Populated by the system when a graceful deletion is requested. + * Read-only. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * +optional + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deletionTimestamp = 9;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.kubernetes.client.proto.Generated.Time, io.kubernetes.client.proto.Generated.Time.Builder, io.kubernetes.client.proto.Generated.TimeOrBuilder>
+ getDeletionTimestampFieldBuilder() {
+ if (deletionTimestampBuilder_ == null) {
+ deletionTimestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.kubernetes.client.proto.Generated.Time, io.kubernetes.client.proto.Generated.Time.Builder, io.kubernetes.client.proto.Generated.TimeOrBuilder>(
+ getDeletionTimestamp(),
+ getParentForChildren(),
+ isClean());
+ deletionTimestamp_ = null;
+ }
+ return deletionTimestampBuilder_;
+ }
+
+ private long deletionGracePeriodSeconds_ ;
+ /**
+ * + * Number of seconds allowed for this object to gracefully terminate before + * it will be removed from the system. Only set when deletionTimestamp is also set. + * May only be shortened. + * Read-only. + * +optional + *+ * + *
optional int64 deletionGracePeriodSeconds = 10;
+ */
+ public boolean hasDeletionGracePeriodSeconds() {
+ return ((bitField0_ & 0x00000200) == 0x00000200);
+ }
+ /**
+ * + * Number of seconds allowed for this object to gracefully terminate before + * it will be removed from the system. Only set when deletionTimestamp is also set. + * May only be shortened. + * Read-only. + * +optional + *+ * + *
optional int64 deletionGracePeriodSeconds = 10;
+ */
+ public long getDeletionGracePeriodSeconds() {
+ return deletionGracePeriodSeconds_;
+ }
+ /**
+ * + * Number of seconds allowed for this object to gracefully terminate before + * it will be removed from the system. Only set when deletionTimestamp is also set. + * May only be shortened. + * Read-only. + * +optional + *+ * + *
optional int64 deletionGracePeriodSeconds = 10;
+ */
+ public Builder setDeletionGracePeriodSeconds(long value) {
+ bitField0_ |= 0x00000200;
+ deletionGracePeriodSeconds_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Number of seconds allowed for this object to gracefully terminate before + * it will be removed from the system. Only set when deletionTimestamp is also set. + * May only be shortened. + * Read-only. + * +optional + *+ * + *
optional int64 deletionGracePeriodSeconds = 10;
+ */
+ public Builder clearDeletionGracePeriodSeconds() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ deletionGracePeriodSeconds_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.MapField<
+ java.lang.String, java.lang.String> labels_;
+ private com.google.protobuf.MapField+ * Map of string keys and values that can be used to organize and categorize + * (scope and select) objects. May match selectors of replication controllers + * and services. + * More info: http://kubernetes.io/docs/user-guide/labels + * +optional + *+ * + *
map<string, string> labels = 11;
+ */
+
+ public boolean containsLabels(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetLabels().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getLabelsMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Map+ * Map of string keys and values that can be used to organize and categorize + * (scope and select) objects. May match selectors of replication controllers + * and services. + * More info: http://kubernetes.io/docs/user-guide/labels + * +optional + *+ * + *
map<string, string> labels = 11;
+ */
+
+ public java.util.Map+ * Map of string keys and values that can be used to organize and categorize + * (scope and select) objects. May match selectors of replication controllers + * and services. + * More info: http://kubernetes.io/docs/user-guide/labels + * +optional + *+ * + *
map<string, string> labels = 11;
+ */
+
+ public java.lang.String getLabelsOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * Map of string keys and values that can be used to organize and categorize + * (scope and select) objects. May match selectors of replication controllers + * and services. + * More info: http://kubernetes.io/docs/user-guide/labels + * +optional + *+ * + *
map<string, string> labels = 11;
+ */
+
+ public java.lang.String getLabelsOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * Map of string keys and values that can be used to organize and categorize + * (scope and select) objects. May match selectors of replication controllers + * and services. + * More info: http://kubernetes.io/docs/user-guide/labels + * +optional + *+ * + *
map<string, string> labels = 11;
+ */
+
+ public Builder removeLabels(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableLabels().getMutableMap()
+ .remove(key);
+ return this;
+ }
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Map+ * Map of string keys and values that can be used to organize and categorize + * (scope and select) objects. May match selectors of replication controllers + * and services. + * More info: http://kubernetes.io/docs/user-guide/labels + * +optional + *+ * + *
map<string, string> labels = 11;
+ */
+ public Builder putLabels(
+ java.lang.String key,
+ java.lang.String value) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ if (value == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableLabels().getMutableMap()
+ .put(key, value);
+ return this;
+ }
+ /**
+ * + * Map of string keys and values that can be used to organize and categorize + * (scope and select) objects. May match selectors of replication controllers + * and services. + * More info: http://kubernetes.io/docs/user-guide/labels + * +optional + *+ * + *
map<string, string> labels = 11;
+ */
+
+ public Builder putAllLabels(
+ java.util.Map+ * Annotations is an unstructured key value map stored with a resource that may be + * set by external tools to store and retrieve arbitrary metadata. They are not + * queryable and should be preserved when modifying objects. + * More info: http://kubernetes.io/docs/user-guide/annotations + * +optional + *+ * + *
map<string, string> annotations = 12;
+ */
+
+ public boolean containsAnnotations(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetAnnotations().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getAnnotationsMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Map+ * Annotations is an unstructured key value map stored with a resource that may be + * set by external tools to store and retrieve arbitrary metadata. They are not + * queryable and should be preserved when modifying objects. + * More info: http://kubernetes.io/docs/user-guide/annotations + * +optional + *+ * + *
map<string, string> annotations = 12;
+ */
+
+ public java.util.Map+ * Annotations is an unstructured key value map stored with a resource that may be + * set by external tools to store and retrieve arbitrary metadata. They are not + * queryable and should be preserved when modifying objects. + * More info: http://kubernetes.io/docs/user-guide/annotations + * +optional + *+ * + *
map<string, string> annotations = 12;
+ */
+
+ public java.lang.String getAnnotationsOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * Annotations is an unstructured key value map stored with a resource that may be + * set by external tools to store and retrieve arbitrary metadata. They are not + * queryable and should be preserved when modifying objects. + * More info: http://kubernetes.io/docs/user-guide/annotations + * +optional + *+ * + *
map<string, string> annotations = 12;
+ */
+
+ public java.lang.String getAnnotationsOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * Annotations is an unstructured key value map stored with a resource that may be + * set by external tools to store and retrieve arbitrary metadata. They are not + * queryable and should be preserved when modifying objects. + * More info: http://kubernetes.io/docs/user-guide/annotations + * +optional + *+ * + *
map<string, string> annotations = 12;
+ */
+
+ public Builder removeAnnotations(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableAnnotations().getMutableMap()
+ .remove(key);
+ return this;
+ }
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Map+ * Annotations is an unstructured key value map stored with a resource that may be + * set by external tools to store and retrieve arbitrary metadata. They are not + * queryable and should be preserved when modifying objects. + * More info: http://kubernetes.io/docs/user-guide/annotations + * +optional + *+ * + *
map<string, string> annotations = 12;
+ */
+ public Builder putAnnotations(
+ java.lang.String key,
+ java.lang.String value) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ if (value == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableAnnotations().getMutableMap()
+ .put(key, value);
+ return this;
+ }
+ /**
+ * + * Annotations is an unstructured key value map stored with a resource that may be + * set by external tools to store and retrieve arbitrary metadata. They are not + * queryable and should be preserved when modifying objects. + * More info: http://kubernetes.io/docs/user-guide/annotations + * +optional + *+ * + *
map<string, string> annotations = 12;
+ */
+
+ public Builder putAllAnnotations(
+ java.util.Map+ * List of objects depended by this object. If ALL objects in the list have + * been deleted, this object will be garbage collected. If this object is managed by a controller, + * then an entry in this list will point to this controller, with the controller field set to true. + * There cannot be more than one managing controller. + * +optional + * +patchMergeKey=uid + * +patchStrategy=merge + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference ownerReferences = 13;
+ */
+ public java.util.List+ * List of objects depended by this object. If ALL objects in the list have + * been deleted, this object will be garbage collected. If this object is managed by a controller, + * then an entry in this list will point to this controller, with the controller field set to true. + * There cannot be more than one managing controller. + * +optional + * +patchMergeKey=uid + * +patchStrategy=merge + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference ownerReferences = 13;
+ */
+ public int getOwnerReferencesCount() {
+ if (ownerReferencesBuilder_ == null) {
+ return ownerReferences_.size();
+ } else {
+ return ownerReferencesBuilder_.getCount();
+ }
+ }
+ /**
+ * + * List of objects depended by this object. If ALL objects in the list have + * been deleted, this object will be garbage collected. If this object is managed by a controller, + * then an entry in this list will point to this controller, with the controller field set to true. + * There cannot be more than one managing controller. + * +optional + * +patchMergeKey=uid + * +patchStrategy=merge + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference ownerReferences = 13;
+ */
+ public io.kubernetes.client.proto.Generated.OwnerReference getOwnerReferences(int index) {
+ if (ownerReferencesBuilder_ == null) {
+ return ownerReferences_.get(index);
+ } else {
+ return ownerReferencesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * + * List of objects depended by this object. If ALL objects in the list have + * been deleted, this object will be garbage collected. If this object is managed by a controller, + * then an entry in this list will point to this controller, with the controller field set to true. + * There cannot be more than one managing controller. + * +optional + * +patchMergeKey=uid + * +patchStrategy=merge + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference ownerReferences = 13;
+ */
+ public Builder setOwnerReferences(
+ int index, io.kubernetes.client.proto.Generated.OwnerReference value) {
+ if (ownerReferencesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureOwnerReferencesIsMutable();
+ ownerReferences_.set(index, value);
+ onChanged();
+ } else {
+ ownerReferencesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * List of objects depended by this object. If ALL objects in the list have + * been deleted, this object will be garbage collected. If this object is managed by a controller, + * then an entry in this list will point to this controller, with the controller field set to true. + * There cannot be more than one managing controller. + * +optional + * +patchMergeKey=uid + * +patchStrategy=merge + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference ownerReferences = 13;
+ */
+ public Builder setOwnerReferences(
+ int index, io.kubernetes.client.proto.Generated.OwnerReference.Builder builderForValue) {
+ if (ownerReferencesBuilder_ == null) {
+ ensureOwnerReferencesIsMutable();
+ ownerReferences_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ ownerReferencesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * List of objects depended by this object. If ALL objects in the list have + * been deleted, this object will be garbage collected. If this object is managed by a controller, + * then an entry in this list will point to this controller, with the controller field set to true. + * There cannot be more than one managing controller. + * +optional + * +patchMergeKey=uid + * +patchStrategy=merge + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference ownerReferences = 13;
+ */
+ public Builder addOwnerReferences(io.kubernetes.client.proto.Generated.OwnerReference value) {
+ if (ownerReferencesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureOwnerReferencesIsMutable();
+ ownerReferences_.add(value);
+ onChanged();
+ } else {
+ ownerReferencesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * + * List of objects depended by this object. If ALL objects in the list have + * been deleted, this object will be garbage collected. If this object is managed by a controller, + * then an entry in this list will point to this controller, with the controller field set to true. + * There cannot be more than one managing controller. + * +optional + * +patchMergeKey=uid + * +patchStrategy=merge + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference ownerReferences = 13;
+ */
+ public Builder addOwnerReferences(
+ int index, io.kubernetes.client.proto.Generated.OwnerReference value) {
+ if (ownerReferencesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureOwnerReferencesIsMutable();
+ ownerReferences_.add(index, value);
+ onChanged();
+ } else {
+ ownerReferencesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * List of objects depended by this object. If ALL objects in the list have + * been deleted, this object will be garbage collected. If this object is managed by a controller, + * then an entry in this list will point to this controller, with the controller field set to true. + * There cannot be more than one managing controller. + * +optional + * +patchMergeKey=uid + * +patchStrategy=merge + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference ownerReferences = 13;
+ */
+ public Builder addOwnerReferences(
+ io.kubernetes.client.proto.Generated.OwnerReference.Builder builderForValue) {
+ if (ownerReferencesBuilder_ == null) {
+ ensureOwnerReferencesIsMutable();
+ ownerReferences_.add(builderForValue.build());
+ onChanged();
+ } else {
+ ownerReferencesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * List of objects depended by this object. If ALL objects in the list have + * been deleted, this object will be garbage collected. If this object is managed by a controller, + * then an entry in this list will point to this controller, with the controller field set to true. + * There cannot be more than one managing controller. + * +optional + * +patchMergeKey=uid + * +patchStrategy=merge + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference ownerReferences = 13;
+ */
+ public Builder addOwnerReferences(
+ int index, io.kubernetes.client.proto.Generated.OwnerReference.Builder builderForValue) {
+ if (ownerReferencesBuilder_ == null) {
+ ensureOwnerReferencesIsMutable();
+ ownerReferences_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ ownerReferencesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * List of objects depended by this object. If ALL objects in the list have + * been deleted, this object will be garbage collected. If this object is managed by a controller, + * then an entry in this list will point to this controller, with the controller field set to true. + * There cannot be more than one managing controller. + * +optional + * +patchMergeKey=uid + * +patchStrategy=merge + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference ownerReferences = 13;
+ */
+ public Builder addAllOwnerReferences(
+ java.lang.Iterable extends io.kubernetes.client.proto.Generated.OwnerReference> values) {
+ if (ownerReferencesBuilder_ == null) {
+ ensureOwnerReferencesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, ownerReferences_);
+ onChanged();
+ } else {
+ ownerReferencesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * + * List of objects depended by this object. If ALL objects in the list have + * been deleted, this object will be garbage collected. If this object is managed by a controller, + * then an entry in this list will point to this controller, with the controller field set to true. + * There cannot be more than one managing controller. + * +optional + * +patchMergeKey=uid + * +patchStrategy=merge + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference ownerReferences = 13;
+ */
+ public Builder clearOwnerReferences() {
+ if (ownerReferencesBuilder_ == null) {
+ ownerReferences_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00001000);
+ onChanged();
+ } else {
+ ownerReferencesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * + * List of objects depended by this object. If ALL objects in the list have + * been deleted, this object will be garbage collected. If this object is managed by a controller, + * then an entry in this list will point to this controller, with the controller field set to true. + * There cannot be more than one managing controller. + * +optional + * +patchMergeKey=uid + * +patchStrategy=merge + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference ownerReferences = 13;
+ */
+ public Builder removeOwnerReferences(int index) {
+ if (ownerReferencesBuilder_ == null) {
+ ensureOwnerReferencesIsMutable();
+ ownerReferences_.remove(index);
+ onChanged();
+ } else {
+ ownerReferencesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * + * List of objects depended by this object. If ALL objects in the list have + * been deleted, this object will be garbage collected. If this object is managed by a controller, + * then an entry in this list will point to this controller, with the controller field set to true. + * There cannot be more than one managing controller. + * +optional + * +patchMergeKey=uid + * +patchStrategy=merge + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference ownerReferences = 13;
+ */
+ public io.kubernetes.client.proto.Generated.OwnerReference.Builder getOwnerReferencesBuilder(
+ int index) {
+ return getOwnerReferencesFieldBuilder().getBuilder(index);
+ }
+ /**
+ * + * List of objects depended by this object. If ALL objects in the list have + * been deleted, this object will be garbage collected. If this object is managed by a controller, + * then an entry in this list will point to this controller, with the controller field set to true. + * There cannot be more than one managing controller. + * +optional + * +patchMergeKey=uid + * +patchStrategy=merge + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference ownerReferences = 13;
+ */
+ public io.kubernetes.client.proto.Generated.OwnerReferenceOrBuilder getOwnerReferencesOrBuilder(
+ int index) {
+ if (ownerReferencesBuilder_ == null) {
+ return ownerReferences_.get(index); } else {
+ return ownerReferencesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * + * List of objects depended by this object. If ALL objects in the list have + * been deleted, this object will be garbage collected. If this object is managed by a controller, + * then an entry in this list will point to this controller, with the controller field set to true. + * There cannot be more than one managing controller. + * +optional + * +patchMergeKey=uid + * +patchStrategy=merge + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference ownerReferences = 13;
+ */
+ public java.util.List extends io.kubernetes.client.proto.Generated.OwnerReferenceOrBuilder>
+ getOwnerReferencesOrBuilderList() {
+ if (ownerReferencesBuilder_ != null) {
+ return ownerReferencesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(ownerReferences_);
+ }
+ }
+ /**
+ * + * List of objects depended by this object. If ALL objects in the list have + * been deleted, this object will be garbage collected. If this object is managed by a controller, + * then an entry in this list will point to this controller, with the controller field set to true. + * There cannot be more than one managing controller. + * +optional + * +patchMergeKey=uid + * +patchStrategy=merge + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference ownerReferences = 13;
+ */
+ public io.kubernetes.client.proto.Generated.OwnerReference.Builder addOwnerReferencesBuilder() {
+ return getOwnerReferencesFieldBuilder().addBuilder(
+ io.kubernetes.client.proto.Generated.OwnerReference.getDefaultInstance());
+ }
+ /**
+ * + * List of objects depended by this object. If ALL objects in the list have + * been deleted, this object will be garbage collected. If this object is managed by a controller, + * then an entry in this list will point to this controller, with the controller field set to true. + * There cannot be more than one managing controller. + * +optional + * +patchMergeKey=uid + * +patchStrategy=merge + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference ownerReferences = 13;
+ */
+ public io.kubernetes.client.proto.Generated.OwnerReference.Builder addOwnerReferencesBuilder(
+ int index) {
+ return getOwnerReferencesFieldBuilder().addBuilder(
+ index, io.kubernetes.client.proto.Generated.OwnerReference.getDefaultInstance());
+ }
+ /**
+ * + * List of objects depended by this object. If ALL objects in the list have + * been deleted, this object will be garbage collected. If this object is managed by a controller, + * then an entry in this list will point to this controller, with the controller field set to true. + * There cannot be more than one managing controller. + * +optional + * +patchMergeKey=uid + * +patchStrategy=merge + *+ * + *
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference ownerReferences = 13;
+ */
+ public java.util.List+ * An initializer is a controller which enforces some system invariant at object creation time. + * This field is a list of initializers that have not yet acted on this object. If nil or empty, + * this object has been completely initialized. Otherwise, the object is considered uninitialized + * and is hidden (in list/watch and get calls) from clients that haven't explicitly asked to + * observe uninitialized objects. + * + * When an object is created, the system will populate this list with the current set of initializers. + * Only privileged users may set or modify this list. Once it is empty, it may not be modified further + * by any user. + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Initializers initializers = 16;
+ */
+ public boolean hasInitializers() {
+ return ((bitField0_ & 0x00002000) == 0x00002000);
+ }
+ /**
+ * + * An initializer is a controller which enforces some system invariant at object creation time. + * This field is a list of initializers that have not yet acted on this object. If nil or empty, + * this object has been completely initialized. Otherwise, the object is considered uninitialized + * and is hidden (in list/watch and get calls) from clients that haven't explicitly asked to + * observe uninitialized objects. + * + * When an object is created, the system will populate this list with the current set of initializers. + * Only privileged users may set or modify this list. Once it is empty, it may not be modified further + * by any user. + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Initializers initializers = 16;
+ */
+ public io.kubernetes.client.proto.Generated.Initializers getInitializers() {
+ if (initializersBuilder_ == null) {
+ return initializers_ == null ? io.kubernetes.client.proto.Generated.Initializers.getDefaultInstance() : initializers_;
+ } else {
+ return initializersBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * An initializer is a controller which enforces some system invariant at object creation time. + * This field is a list of initializers that have not yet acted on this object. If nil or empty, + * this object has been completely initialized. Otherwise, the object is considered uninitialized + * and is hidden (in list/watch and get calls) from clients that haven't explicitly asked to + * observe uninitialized objects. + * + * When an object is created, the system will populate this list with the current set of initializers. + * Only privileged users may set or modify this list. Once it is empty, it may not be modified further + * by any user. + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Initializers initializers = 16;
+ */
+ public Builder setInitializers(io.kubernetes.client.proto.Generated.Initializers value) {
+ if (initializersBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ initializers_ = value;
+ onChanged();
+ } else {
+ initializersBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00002000;
+ return this;
+ }
+ /**
+ * + * An initializer is a controller which enforces some system invariant at object creation time. + * This field is a list of initializers that have not yet acted on this object. If nil or empty, + * this object has been completely initialized. Otherwise, the object is considered uninitialized + * and is hidden (in list/watch and get calls) from clients that haven't explicitly asked to + * observe uninitialized objects. + * + * When an object is created, the system will populate this list with the current set of initializers. + * Only privileged users may set or modify this list. Once it is empty, it may not be modified further + * by any user. + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Initializers initializers = 16;
+ */
+ public Builder setInitializers(
+ io.kubernetes.client.proto.Generated.Initializers.Builder builderForValue) {
+ if (initializersBuilder_ == null) {
+ initializers_ = builderForValue.build();
+ onChanged();
+ } else {
+ initializersBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00002000;
+ return this;
+ }
+ /**
+ * + * An initializer is a controller which enforces some system invariant at object creation time. + * This field is a list of initializers that have not yet acted on this object. If nil or empty, + * this object has been completely initialized. Otherwise, the object is considered uninitialized + * and is hidden (in list/watch and get calls) from clients that haven't explicitly asked to + * observe uninitialized objects. + * + * When an object is created, the system will populate this list with the current set of initializers. + * Only privileged users may set or modify this list. Once it is empty, it may not be modified further + * by any user. + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Initializers initializers = 16;
+ */
+ public Builder mergeInitializers(io.kubernetes.client.proto.Generated.Initializers value) {
+ if (initializersBuilder_ == null) {
+ if (((bitField0_ & 0x00002000) == 0x00002000) &&
+ initializers_ != null &&
+ initializers_ != io.kubernetes.client.proto.Generated.Initializers.getDefaultInstance()) {
+ initializers_ =
+ io.kubernetes.client.proto.Generated.Initializers.newBuilder(initializers_).mergeFrom(value).buildPartial();
+ } else {
+ initializers_ = value;
+ }
+ onChanged();
+ } else {
+ initializersBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00002000;
+ return this;
+ }
+ /**
+ * + * An initializer is a controller which enforces some system invariant at object creation time. + * This field is a list of initializers that have not yet acted on this object. If nil or empty, + * this object has been completely initialized. Otherwise, the object is considered uninitialized + * and is hidden (in list/watch and get calls) from clients that haven't explicitly asked to + * observe uninitialized objects. + * + * When an object is created, the system will populate this list with the current set of initializers. + * Only privileged users may set or modify this list. Once it is empty, it may not be modified further + * by any user. + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Initializers initializers = 16;
+ */
+ public Builder clearInitializers() {
+ if (initializersBuilder_ == null) {
+ initializers_ = null;
+ onChanged();
+ } else {
+ initializersBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00002000);
+ return this;
+ }
+ /**
+ * + * An initializer is a controller which enforces some system invariant at object creation time. + * This field is a list of initializers that have not yet acted on this object. If nil or empty, + * this object has been completely initialized. Otherwise, the object is considered uninitialized + * and is hidden (in list/watch and get calls) from clients that haven't explicitly asked to + * observe uninitialized objects. + * + * When an object is created, the system will populate this list with the current set of initializers. + * Only privileged users may set or modify this list. Once it is empty, it may not be modified further + * by any user. + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Initializers initializers = 16;
+ */
+ public io.kubernetes.client.proto.Generated.Initializers.Builder getInitializersBuilder() {
+ bitField0_ |= 0x00002000;
+ onChanged();
+ return getInitializersFieldBuilder().getBuilder();
+ }
+ /**
+ * + * An initializer is a controller which enforces some system invariant at object creation time. + * This field is a list of initializers that have not yet acted on this object. If nil or empty, + * this object has been completely initialized. Otherwise, the object is considered uninitialized + * and is hidden (in list/watch and get calls) from clients that haven't explicitly asked to + * observe uninitialized objects. + * + * When an object is created, the system will populate this list with the current set of initializers. + * Only privileged users may set or modify this list. Once it is empty, it may not be modified further + * by any user. + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Initializers initializers = 16;
+ */
+ public io.kubernetes.client.proto.Generated.InitializersOrBuilder getInitializersOrBuilder() {
+ if (initializersBuilder_ != null) {
+ return initializersBuilder_.getMessageOrBuilder();
+ } else {
+ return initializers_ == null ?
+ io.kubernetes.client.proto.Generated.Initializers.getDefaultInstance() : initializers_;
+ }
+ }
+ /**
+ * + * An initializer is a controller which enforces some system invariant at object creation time. + * This field is a list of initializers that have not yet acted on this object. If nil or empty, + * this object has been completely initialized. Otherwise, the object is considered uninitialized + * and is hidden (in list/watch and get calls) from clients that haven't explicitly asked to + * observe uninitialized objects. + * + * When an object is created, the system will populate this list with the current set of initializers. + * Only privileged users may set or modify this list. Once it is empty, it may not be modified further + * by any user. + *+ * + *
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Initializers initializers = 16;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.kubernetes.client.proto.Generated.Initializers, io.kubernetes.client.proto.Generated.Initializers.Builder, io.kubernetes.client.proto.Generated.InitializersOrBuilder>
+ getInitializersFieldBuilder() {
+ if (initializersBuilder_ == null) {
+ initializersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.kubernetes.client.proto.Generated.Initializers, io.kubernetes.client.proto.Generated.Initializers.Builder, io.kubernetes.client.proto.Generated.InitializersOrBuilder>(
+ getInitializers(),
+ getParentForChildren(),
+ isClean());
+ initializers_ = null;
+ }
+ return initializersBuilder_;
+ }
+
+ private com.google.protobuf.LazyStringList finalizers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ private void ensureFinalizersIsMutable() {
+ if (!((bitField0_ & 0x00004000) == 0x00004000)) {
+ finalizers_ = new com.google.protobuf.LazyStringArrayList(finalizers_);
+ bitField0_ |= 0x00004000;
+ }
+ }
+ /**
+ * + * Must be empty before the object is deleted from the registry. Each entry + * is an identifier for the responsible component that will remove the entry + * from the list. If the deletionTimestamp of the object is non-nil, entries + * in this list can only be removed. + * +optional + * +patchStrategy=merge + *+ * + *
repeated string finalizers = 14;
+ */
+ public com.google.protobuf.ProtocolStringList
+ getFinalizersList() {
+ return finalizers_.getUnmodifiableView();
+ }
+ /**
+ * + * Must be empty before the object is deleted from the registry. Each entry + * is an identifier for the responsible component that will remove the entry + * from the list. If the deletionTimestamp of the object is non-nil, entries + * in this list can only be removed. + * +optional + * +patchStrategy=merge + *+ * + *
repeated string finalizers = 14;
+ */
+ public int getFinalizersCount() {
+ return finalizers_.size();
+ }
+ /**
+ * + * Must be empty before the object is deleted from the registry. Each entry + * is an identifier for the responsible component that will remove the entry + * from the list. If the deletionTimestamp of the object is non-nil, entries + * in this list can only be removed. + * +optional + * +patchStrategy=merge + *+ * + *
repeated string finalizers = 14;
+ */
+ public java.lang.String getFinalizers(int index) {
+ return finalizers_.get(index);
+ }
+ /**
+ * + * Must be empty before the object is deleted from the registry. Each entry + * is an identifier for the responsible component that will remove the entry + * from the list. If the deletionTimestamp of the object is non-nil, entries + * in this list can only be removed. + * +optional + * +patchStrategy=merge + *+ * + *
repeated string finalizers = 14;
+ */
+ public com.google.protobuf.ByteString
+ getFinalizersBytes(int index) {
+ return finalizers_.getByteString(index);
+ }
+ /**
+ * + * Must be empty before the object is deleted from the registry. Each entry + * is an identifier for the responsible component that will remove the entry + * from the list. If the deletionTimestamp of the object is non-nil, entries + * in this list can only be removed. + * +optional + * +patchStrategy=merge + *+ * + *
repeated string finalizers = 14;
+ */
+ public Builder setFinalizers(
+ int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFinalizersIsMutable();
+ finalizers_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Must be empty before the object is deleted from the registry. Each entry + * is an identifier for the responsible component that will remove the entry + * from the list. If the deletionTimestamp of the object is non-nil, entries + * in this list can only be removed. + * +optional + * +patchStrategy=merge + *+ * + *
repeated string finalizers = 14;
+ */
+ public Builder addFinalizers(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFinalizersIsMutable();
+ finalizers_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Must be empty before the object is deleted from the registry. Each entry + * is an identifier for the responsible component that will remove the entry + * from the list. If the deletionTimestamp of the object is non-nil, entries + * in this list can only be removed. + * +optional + * +patchStrategy=merge + *+ * + *
repeated string finalizers = 14;
+ */
+ public Builder addAllFinalizers(
+ java.lang.Iterable+ * Must be empty before the object is deleted from the registry. Each entry + * is an identifier for the responsible component that will remove the entry + * from the list. If the deletionTimestamp of the object is non-nil, entries + * in this list can only be removed. + * +optional + * +patchStrategy=merge + *+ * + *
repeated string finalizers = 14;
+ */
+ public Builder clearFinalizers() {
+ finalizers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00004000);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Must be empty before the object is deleted from the registry. Each entry + * is an identifier for the responsible component that will remove the entry + * from the list. If the deletionTimestamp of the object is non-nil, entries + * in this list can only be removed. + * +optional + * +patchStrategy=merge + *+ * + *
repeated string finalizers = 14;
+ */
+ public Builder addFinalizersBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFinalizersIsMutable();
+ finalizers_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object clusterName_ = "";
+ /**
+ * + * The name of the cluster which the object belongs to. + * This is used to distinguish resources with same name and namespace in different clusters. + * This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * +optional + *+ * + *
optional string clusterName = 15;
+ */
+ public boolean hasClusterName() {
+ return ((bitField0_ & 0x00008000) == 0x00008000);
+ }
+ /**
+ * + * The name of the cluster which the object belongs to. + * This is used to distinguish resources with same name and namespace in different clusters. + * This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * +optional + *+ * + *
optional string clusterName = 15;
+ */
+ public java.lang.String getClusterName() {
+ java.lang.Object ref = clusterName_;
+ 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()) {
+ clusterName_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * The name of the cluster which the object belongs to. + * This is used to distinguish resources with same name and namespace in different clusters. + * This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * +optional + *+ * + *
optional string clusterName = 15;
+ */
+ public com.google.protobuf.ByteString
+ getClusterNameBytes() {
+ java.lang.Object ref = clusterName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ clusterName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * The name of the cluster which the object belongs to. + * This is used to distinguish resources with same name and namespace in different clusters. + * This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * +optional + *+ * + *
optional string clusterName = 15;
+ */
+ public Builder setClusterName(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00008000;
+ clusterName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The name of the cluster which the object belongs to. + * This is used to distinguish resources with same name and namespace in different clusters. + * This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * +optional + *+ * + *
optional string clusterName = 15;
+ */
+ public Builder clearClusterName() {
+ bitField0_ = (bitField0_ & ~0x00008000);
+ clusterName_ = getDefaultInstance().getClusterName();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The name of the cluster which the object belongs to. + * This is used to distinguish resources with same name and namespace in different clusters. + * This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + * +optional + *+ * + *
optional string clusterName = 15;
+ */
+ public Builder setClusterNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00008000;
+ clusterName_ = value;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta)
+ }
+
+ // @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta)
+ private static final io.kubernetes.client.proto.Generated.ObjectMeta DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.kubernetes.client.proto.Generated.ObjectMeta();
+ }
+
+ public static io.kubernetes.client.proto.Generated.ObjectMeta getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser+ * API version of the referent. + *+ * + *
optional string apiVersion = 5;
+ */
+ boolean hasApiVersion();
+ /**
+ * + * API version of the referent. + *+ * + *
optional string apiVersion = 5;
+ */
+ java.lang.String getApiVersion();
+ /**
+ * + * API version of the referent. + *+ * + *
optional string apiVersion = 5;
+ */
+ com.google.protobuf.ByteString
+ getApiVersionBytes();
+
+ /**
+ * + * Kind of the referent. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + *+ * + *
optional string kind = 1;
+ */
+ boolean hasKind();
+ /**
+ * + * Kind of the referent. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + *+ * + *
optional string kind = 1;
+ */
+ java.lang.String getKind();
+ /**
+ * + * Kind of the referent. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + *+ * + *
optional string kind = 1;
+ */
+ com.google.protobuf.ByteString
+ getKindBytes();
+
+ /**
+ * + * Name of the referent. + * More info: http://kubernetes.io/docs/user-guide/identifiers#names + *+ * + *
optional string name = 3;
+ */
+ boolean hasName();
+ /**
+ * + * Name of the referent. + * More info: http://kubernetes.io/docs/user-guide/identifiers#names + *+ * + *
optional string name = 3;
+ */
+ java.lang.String getName();
+ /**
+ * + * Name of the referent. + * More info: http://kubernetes.io/docs/user-guide/identifiers#names + *+ * + *
optional string name = 3;
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+
+ /**
+ * + * UID of the referent. + * More info: http://kubernetes.io/docs/user-guide/identifiers#uids + *+ * + *
optional string uid = 4;
+ */
+ boolean hasUid();
+ /**
+ * + * UID of the referent. + * More info: http://kubernetes.io/docs/user-guide/identifiers#uids + *+ * + *
optional string uid = 4;
+ */
+ java.lang.String getUid();
+ /**
+ * + * UID of the referent. + * More info: http://kubernetes.io/docs/user-guide/identifiers#uids + *+ * + *
optional string uid = 4;
+ */
+ com.google.protobuf.ByteString
+ getUidBytes();
+
+ /**
+ * + * If true, this reference points to the managing controller. + * +optional + *+ * + *
optional bool controller = 6;
+ */
+ boolean hasController();
+ /**
+ * + * If true, this reference points to the managing controller. + * +optional + *+ * + *
optional bool controller = 6;
+ */
+ boolean getController();
+
+ /**
+ * + * If true, AND if the owner has the "foregroundDeletion" finalizer, then + * the owner cannot be deleted from the key-value store until this + * reference is removed. + * Defaults to false. + * To set this field, a user needs "delete" permission of the owner, + * otherwise 422 (Unprocessable Entity) will be returned. + * +optional + *+ * + *
optional bool blockOwnerDeletion = 7;
+ */
+ boolean hasBlockOwnerDeletion();
+ /**
+ * + * If true, AND if the owner has the "foregroundDeletion" finalizer, then + * the owner cannot be deleted from the key-value store until this + * reference is removed. + * Defaults to false. + * To set this field, a user needs "delete" permission of the owner, + * otherwise 422 (Unprocessable Entity) will be returned. + * +optional + *+ * + *
optional bool blockOwnerDeletion = 7;
+ */
+ boolean getBlockOwnerDeletion();
+ }
+ /**
+ * + * OwnerReference contains enough information to let you identify an owning + * object. Currently, an owning object must be in the same namespace, so there + * is no namespace field. + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference} + */ + public static final class OwnerReference extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference) + OwnerReferenceOrBuilder { + private static final long serialVersionUID = 0L; + // Use OwnerReference.newBuilder() to construct. + private OwnerReference(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private OwnerReference() { + apiVersion_ = ""; + kind_ = ""; + name_ = ""; + uid_ = ""; + controller_ = false; + blockOwnerDeletion_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private OwnerReference( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + kind_ = bs; + break; + } + case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000004; + name_ = bs; + break; + } + case 34: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000008; + uid_ = bs; + break; + } + case 42: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + apiVersion_ = bs; + break; + } + case 48: { + bitField0_ |= 0x00000010; + controller_ = input.readBool(); + break; + } + case 56: { + bitField0_ |= 0x00000020; + blockOwnerDeletion_ = input.readBool(); + 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.Generated.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_OwnerReference_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.Generated.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_OwnerReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.Generated.OwnerReference.class, io.kubernetes.client.proto.Generated.OwnerReference.Builder.class); + } + + private int bitField0_; + public static final int APIVERSION_FIELD_NUMBER = 5; + private volatile java.lang.Object apiVersion_; + /** + *
+ * API version of the referent. + *+ * + *
optional string apiVersion = 5;
+ */
+ public boolean hasApiVersion() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * + * API version of the referent. + *+ * + *
optional string apiVersion = 5;
+ */
+ public java.lang.String getApiVersion() {
+ java.lang.Object ref = apiVersion_;
+ 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()) {
+ apiVersion_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * + * API version of the referent. + *+ * + *
optional string apiVersion = 5;
+ */
+ public com.google.protobuf.ByteString
+ getApiVersionBytes() {
+ java.lang.Object ref = apiVersion_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ apiVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int KIND_FIELD_NUMBER = 1;
+ private volatile java.lang.Object kind_;
+ /**
+ * + * Kind of the referent. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + *+ * + *
optional string kind = 1;
+ */
+ public boolean hasKind() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * + * Kind of the referent. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + *+ * + *
optional string kind = 1;
+ */
+ public java.lang.String getKind() {
+ java.lang.Object ref = kind_;
+ 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()) {
+ kind_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * + * Kind of the referent. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + *+ * + *
optional string kind = 1;
+ */
+ public com.google.protobuf.ByteString
+ getKindBytes() {
+ java.lang.Object ref = kind_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ kind_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int NAME_FIELD_NUMBER = 3;
+ private volatile java.lang.Object name_;
+ /**
+ * + * Name of the referent. + * More info: http://kubernetes.io/docs/user-guide/identifiers#names + *+ * + *
optional string name = 3;
+ */
+ public boolean hasName() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * + * Name of the referent. + * More info: http://kubernetes.io/docs/user-guide/identifiers#names + *+ * + *
optional string name = 3;
+ */
+ 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 of the referent. + * More info: http://kubernetes.io/docs/user-guide/identifiers#names + *+ * + *
optional string name = 3;
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int UID_FIELD_NUMBER = 4;
+ private volatile java.lang.Object uid_;
+ /**
+ * + * UID of the referent. + * More info: http://kubernetes.io/docs/user-guide/identifiers#uids + *+ * + *
optional string uid = 4;
+ */
+ public boolean hasUid() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+ /**
+ * + * UID of the referent. + * More info: http://kubernetes.io/docs/user-guide/identifiers#uids + *+ * + *
optional string uid = 4;
+ */
+ public java.lang.String getUid() {
+ java.lang.Object ref = uid_;
+ 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()) {
+ uid_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * + * UID of the referent. + * More info: http://kubernetes.io/docs/user-guide/identifiers#uids + *+ * + *
optional string uid = 4;
+ */
+ public com.google.protobuf.ByteString
+ getUidBytes() {
+ java.lang.Object ref = uid_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ uid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CONTROLLER_FIELD_NUMBER = 6;
+ private boolean controller_;
+ /**
+ * + * If true, this reference points to the managing controller. + * +optional + *+ * + *
optional bool controller = 6;
+ */
+ public boolean hasController() {
+ return ((bitField0_ & 0x00000010) == 0x00000010);
+ }
+ /**
+ * + * If true, this reference points to the managing controller. + * +optional + *+ * + *
optional bool controller = 6;
+ */
+ public boolean getController() {
+ return controller_;
+ }
+
+ public static final int BLOCKOWNERDELETION_FIELD_NUMBER = 7;
+ private boolean blockOwnerDeletion_;
+ /**
+ * + * If true, AND if the owner has the "foregroundDeletion" finalizer, then + * the owner cannot be deleted from the key-value store until this + * reference is removed. + * Defaults to false. + * To set this field, a user needs "delete" permission of the owner, + * otherwise 422 (Unprocessable Entity) will be returned. + * +optional + *+ * + *
optional bool blockOwnerDeletion = 7;
+ */
+ public boolean hasBlockOwnerDeletion() {
+ return ((bitField0_ & 0x00000020) == 0x00000020);
+ }
+ /**
+ * + * If true, AND if the owner has the "foregroundDeletion" finalizer, then + * the owner cannot be deleted from the key-value store until this + * reference is removed. + * Defaults to false. + * To set this field, a user needs "delete" permission of the owner, + * otherwise 422 (Unprocessable Entity) will be returned. + * +optional + *+ * + *
optional bool blockOwnerDeletion = 7;
+ */
+ public boolean getBlockOwnerDeletion() {
+ return blockOwnerDeletion_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kind_);
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
+ }
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, uid_);
+ }
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, apiVersion_);
+ }
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ output.writeBool(6, controller_);
+ }
+ if (((bitField0_ & 0x00000020) == 0x00000020)) {
+ output.writeBool(7, blockOwnerDeletion_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kind_);
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
+ }
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, uid_);
+ }
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, apiVersion_);
+ }
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(6, controller_);
+ }
+ if (((bitField0_ & 0x00000020) == 0x00000020)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(7, blockOwnerDeletion_);
+ }
+ 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.Generated.OwnerReference)) {
+ return super.equals(obj);
+ }
+ io.kubernetes.client.proto.Generated.OwnerReference other = (io.kubernetes.client.proto.Generated.OwnerReference) obj;
+
+ boolean result = true;
+ result = result && (hasApiVersion() == other.hasApiVersion());
+ if (hasApiVersion()) {
+ result = result && getApiVersion()
+ .equals(other.getApiVersion());
+ }
+ result = result && (hasKind() == other.hasKind());
+ if (hasKind()) {
+ result = result && getKind()
+ .equals(other.getKind());
+ }
+ result = result && (hasName() == other.hasName());
+ if (hasName()) {
+ result = result && getName()
+ .equals(other.getName());
+ }
+ result = result && (hasUid() == other.hasUid());
+ if (hasUid()) {
+ result = result && getUid()
+ .equals(other.getUid());
+ }
+ result = result && (hasController() == other.hasController());
+ if (hasController()) {
+ result = result && (getController()
+ == other.getController());
+ }
+ result = result && (hasBlockOwnerDeletion() == other.hasBlockOwnerDeletion());
+ if (hasBlockOwnerDeletion()) {
+ result = result && (getBlockOwnerDeletion()
+ == other.getBlockOwnerDeletion());
+ }
+ 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 (hasApiVersion()) {
+ hash = (37 * hash) + APIVERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getApiVersion().hashCode();
+ }
+ if (hasKind()) {
+ hash = (37 * hash) + KIND_FIELD_NUMBER;
+ hash = (53 * hash) + getKind().hashCode();
+ }
+ if (hasName()) {
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ }
+ if (hasUid()) {
+ hash = (37 * hash) + UID_FIELD_NUMBER;
+ hash = (53 * hash) + getUid().hashCode();
+ }
+ if (hasController()) {
+ hash = (37 * hash) + CONTROLLER_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getController());
+ }
+ if (hasBlockOwnerDeletion()) {
+ hash = (37 * hash) + BLOCKOWNERDELETION_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getBlockOwnerDeletion());
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.kubernetes.client.proto.Generated.OwnerReference parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.OwnerReference 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.Generated.OwnerReference parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.OwnerReference 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.Generated.OwnerReference parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.OwnerReference parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.kubernetes.client.proto.Generated.OwnerReference parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.OwnerReference 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.Generated.OwnerReference parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.OwnerReference 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.Generated.OwnerReference parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.OwnerReference parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.kubernetes.client.proto.Generated.OwnerReference prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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;
+ }
+ /**
+ * + * OwnerReference contains enough information to let you identify an owning + * object. Currently, an owning object must be in the same namespace, so there + * is no namespace field. + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * API version of the referent. + *+ * + *
optional string apiVersion = 5;
+ */
+ public boolean hasApiVersion() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * + * API version of the referent. + *+ * + *
optional string apiVersion = 5;
+ */
+ public java.lang.String getApiVersion() {
+ java.lang.Object ref = apiVersion_;
+ 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()) {
+ apiVersion_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * API version of the referent. + *+ * + *
optional string apiVersion = 5;
+ */
+ public com.google.protobuf.ByteString
+ getApiVersionBytes() {
+ java.lang.Object ref = apiVersion_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ apiVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * API version of the referent. + *+ * + *
optional string apiVersion = 5;
+ */
+ public Builder setApiVersion(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ apiVersion_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * API version of the referent. + *+ * + *
optional string apiVersion = 5;
+ */
+ public Builder clearApiVersion() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ apiVersion_ = getDefaultInstance().getApiVersion();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * API version of the referent. + *+ * + *
optional string apiVersion = 5;
+ */
+ public Builder setApiVersionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ apiVersion_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object kind_ = "";
+ /**
+ * + * Kind of the referent. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + *+ * + *
optional string kind = 1;
+ */
+ public boolean hasKind() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * + * Kind of the referent. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + *+ * + *
optional string kind = 1;
+ */
+ public java.lang.String getKind() {
+ java.lang.Object ref = kind_;
+ 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()) {
+ kind_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Kind of the referent. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + *+ * + *
optional string kind = 1;
+ */
+ public com.google.protobuf.ByteString
+ getKindBytes() {
+ java.lang.Object ref = kind_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ kind_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Kind of the referent. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + *+ * + *
optional string kind = 1;
+ */
+ public Builder setKind(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ kind_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Kind of the referent. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + *+ * + *
optional string kind = 1;
+ */
+ public Builder clearKind() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ kind_ = getDefaultInstance().getKind();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Kind of the referent. + * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + *+ * + *
optional string kind = 1;
+ */
+ public Builder setKindBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ kind_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object name_ = "";
+ /**
+ * + * Name of the referent. + * More info: http://kubernetes.io/docs/user-guide/identifiers#names + *+ * + *
optional string name = 3;
+ */
+ public boolean hasName() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * + * Name of the referent. + * More info: http://kubernetes.io/docs/user-guide/identifiers#names + *+ * + *
optional string name = 3;
+ */
+ 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 of the referent. + * More info: http://kubernetes.io/docs/user-guide/identifiers#names + *+ * + *
optional string name = 3;
+ */
+ 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 of the referent. + * More info: http://kubernetes.io/docs/user-guide/identifiers#names + *+ * + *
optional string name = 3;
+ */
+ public Builder setName(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Name of the referent. + * More info: http://kubernetes.io/docs/user-guide/identifiers#names + *+ * + *
optional string name = 3;
+ */
+ public Builder clearName() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Name of the referent. + * More info: http://kubernetes.io/docs/user-guide/identifiers#names + *+ * + *
optional string name = 3;
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object uid_ = "";
+ /**
+ * + * UID of the referent. + * More info: http://kubernetes.io/docs/user-guide/identifiers#uids + *+ * + *
optional string uid = 4;
+ */
+ public boolean hasUid() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+ /**
+ * + * UID of the referent. + * More info: http://kubernetes.io/docs/user-guide/identifiers#uids + *+ * + *
optional string uid = 4;
+ */
+ public java.lang.String getUid() {
+ java.lang.Object ref = uid_;
+ 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()) {
+ uid_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * UID of the referent. + * More info: http://kubernetes.io/docs/user-guide/identifiers#uids + *+ * + *
optional string uid = 4;
+ */
+ public com.google.protobuf.ByteString
+ getUidBytes() {
+ java.lang.Object ref = uid_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ uid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * UID of the referent. + * More info: http://kubernetes.io/docs/user-guide/identifiers#uids + *+ * + *
optional string uid = 4;
+ */
+ public Builder setUid(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000008;
+ uid_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * UID of the referent. + * More info: http://kubernetes.io/docs/user-guide/identifiers#uids + *+ * + *
optional string uid = 4;
+ */
+ public Builder clearUid() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ uid_ = getDefaultInstance().getUid();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * UID of the referent. + * More info: http://kubernetes.io/docs/user-guide/identifiers#uids + *+ * + *
optional string uid = 4;
+ */
+ public Builder setUidBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000008;
+ uid_ = value;
+ onChanged();
+ return this;
+ }
+
+ private boolean controller_ ;
+ /**
+ * + * If true, this reference points to the managing controller. + * +optional + *+ * + *
optional bool controller = 6;
+ */
+ public boolean hasController() {
+ return ((bitField0_ & 0x00000010) == 0x00000010);
+ }
+ /**
+ * + * If true, this reference points to the managing controller. + * +optional + *+ * + *
optional bool controller = 6;
+ */
+ public boolean getController() {
+ return controller_;
+ }
+ /**
+ * + * If true, this reference points to the managing controller. + * +optional + *+ * + *
optional bool controller = 6;
+ */
+ public Builder setController(boolean value) {
+ bitField0_ |= 0x00000010;
+ controller_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * If true, this reference points to the managing controller. + * +optional + *+ * + *
optional bool controller = 6;
+ */
+ public Builder clearController() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ controller_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean blockOwnerDeletion_ ;
+ /**
+ * + * If true, AND if the owner has the "foregroundDeletion" finalizer, then + * the owner cannot be deleted from the key-value store until this + * reference is removed. + * Defaults to false. + * To set this field, a user needs "delete" permission of the owner, + * otherwise 422 (Unprocessable Entity) will be returned. + * +optional + *+ * + *
optional bool blockOwnerDeletion = 7;
+ */
+ public boolean hasBlockOwnerDeletion() {
+ return ((bitField0_ & 0x00000020) == 0x00000020);
+ }
+ /**
+ * + * If true, AND if the owner has the "foregroundDeletion" finalizer, then + * the owner cannot be deleted from the key-value store until this + * reference is removed. + * Defaults to false. + * To set this field, a user needs "delete" permission of the owner, + * otherwise 422 (Unprocessable Entity) will be returned. + * +optional + *+ * + *
optional bool blockOwnerDeletion = 7;
+ */
+ public boolean getBlockOwnerDeletion() {
+ return blockOwnerDeletion_;
+ }
+ /**
+ * + * If true, AND if the owner has the "foregroundDeletion" finalizer, then + * the owner cannot be deleted from the key-value store until this + * reference is removed. + * Defaults to false. + * To set this field, a user needs "delete" permission of the owner, + * otherwise 422 (Unprocessable Entity) will be returned. + * +optional + *+ * + *
optional bool blockOwnerDeletion = 7;
+ */
+ public Builder setBlockOwnerDeletion(boolean value) {
+ bitField0_ |= 0x00000020;
+ blockOwnerDeletion_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * If true, AND if the owner has the "foregroundDeletion" finalizer, then + * the owner cannot be deleted from the key-value store until this + * reference is removed. + * Defaults to false. + * To set this field, a user needs "delete" permission of the owner, + * otherwise 422 (Unprocessable Entity) will be returned. + * +optional + *+ * + *
optional bool blockOwnerDeletion = 7;
+ */
+ public Builder clearBlockOwnerDeletion() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ blockOwnerDeletion_ = false;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference)
+ }
+
+ // @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference)
+ private static final io.kubernetes.client.proto.Generated.OwnerReference DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.kubernetes.client.proto.Generated.OwnerReference();
+ }
+
+ public static io.kubernetes.client.proto.Generated.OwnerReference getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser+ * Specifies the target UID. + * +optional + *+ * + *
optional string uid = 1;
+ */
+ boolean hasUid();
+ /**
+ * + * Specifies the target UID. + * +optional + *+ * + *
optional string uid = 1;
+ */
+ java.lang.String getUid();
+ /**
+ * + * Specifies the target UID. + * +optional + *+ * + *
optional string uid = 1;
+ */
+ com.google.protobuf.ByteString
+ getUidBytes();
+ }
+ /**
+ * + * Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions} + */ + public static final class Preconditions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions) + PreconditionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use Preconditions.newBuilder() to construct. + private Preconditions(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private Preconditions() { + uid_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Preconditions( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + uid_ = bs; + 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.Generated.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_Preconditions_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.Generated.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_Preconditions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.Generated.Preconditions.class, io.kubernetes.client.proto.Generated.Preconditions.Builder.class); + } + + private int bitField0_; + public static final int UID_FIELD_NUMBER = 1; + private volatile java.lang.Object uid_; + /** + *
+ * Specifies the target UID. + * +optional + *+ * + *
optional string uid = 1;
+ */
+ public boolean hasUid() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * + * Specifies the target UID. + * +optional + *+ * + *
optional string uid = 1;
+ */
+ public java.lang.String getUid() {
+ java.lang.Object ref = uid_;
+ 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()) {
+ uid_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * + * Specifies the target UID. + * +optional + *+ * + *
optional string uid = 1;
+ */
+ public com.google.protobuf.ByteString
+ getUidBytes() {
+ java.lang.Object ref = uid_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ uid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uid_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uid_);
+ }
+ 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.Generated.Preconditions)) {
+ return super.equals(obj);
+ }
+ io.kubernetes.client.proto.Generated.Preconditions other = (io.kubernetes.client.proto.Generated.Preconditions) obj;
+
+ boolean result = true;
+ result = result && (hasUid() == other.hasUid());
+ if (hasUid()) {
+ result = result && getUid()
+ .equals(other.getUid());
+ }
+ 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 (hasUid()) {
+ hash = (37 * hash) + UID_FIELD_NUMBER;
+ hash = (53 * hash) + getUid().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.kubernetes.client.proto.Generated.Preconditions parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.Preconditions 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.Generated.Preconditions parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.Preconditions 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.Generated.Preconditions parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.kubernetes.client.proto.Generated.Preconditions parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.kubernetes.client.proto.Generated.Preconditions parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.Preconditions 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.Generated.Preconditions parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.Preconditions 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.Generated.Preconditions parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.kubernetes.client.proto.Generated.Preconditions parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.kubernetes.client.proto.Generated.Preconditions prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ 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;
+ }
+ /**
+ * + * Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. + *+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * Specifies the target UID. + * +optional + *+ * + *
optional string uid = 1;
+ */
+ public boolean hasUid() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * + * Specifies the target UID. + * +optional + *+ * + *
optional string uid = 1;
+ */
+ public java.lang.String getUid() {
+ java.lang.Object ref = uid_;
+ 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()) {
+ uid_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Specifies the target UID. + * +optional + *+ * + *
optional string uid = 1;
+ */
+ public com.google.protobuf.ByteString
+ getUidBytes() {
+ java.lang.Object ref = uid_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ uid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Specifies the target UID. + * +optional + *+ * + *
optional string uid = 1;
+ */
+ public Builder setUid(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ uid_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Specifies the target UID. + * +optional + *+ * + *
optional string uid = 1;
+ */
+ public Builder clearUid() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ uid_ = getDefaultInstance().getUid();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Specifies the target UID. + * +optional + *+ * + *
optional string uid = 1;
+ */
+ public Builder setUidBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ uid_ = value;
+ onChanged();
+ return this;
+ }
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions)
+ }
+
+ // @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions)
+ private static final io.kubernetes.client.proto.Generated.Preconditions DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.kubernetes.client.proto.Generated.Preconditions();
+ }
+
+ public static io.kubernetes.client.proto.Generated.Preconditions getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ @java.lang.Deprecated public static final com.google.protobuf.Parser