Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
Copyright 2021 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package io.kubernetes.client.proto;
public final class Meta {
private Meta() {}
public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface APIGroupOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* 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.
* +optional
*
* 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.
* +optional
*
* 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.
* +optional
*
* 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.
* +optional
*
* 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.
* +optional
*
* 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.Meta.GroupVersionForDiscoveryOrBuilder
getPreferredVersionOrBuilder() {
return preferredVersion_ == null
? io.kubernetes.client.proto.Meta.GroupVersionForDiscovery.getDefaultInstance()
: preferredVersion_;
}
public static final int SERVERADDRESSBYCLIENTCIDRS_FIELD_NUMBER = 4;
private java.util.List
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.
* +optional
*
* 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.
* +optional
*
* 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.
* +optional
*
* 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.
* +optional
*
* 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.
* +optional
*
*
*
* repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
*
*/
public io.kubernetes.client.proto.Meta.ServerAddressByClientCIDROrBuilder
getServerAddressByClientCIDRsOrBuilder(int index) {
return serverAddressByClientCIDRs_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, 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);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
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.Meta.APIGroup)) {
return super.equals(obj);
}
io.kubernetes.client.proto.Meta.APIGroup other =
(io.kubernetes.client.proto.Meta.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.Meta.APIGroup parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.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.Meta.APIGroup parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.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.Meta.APIGroup parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.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.Meta.APIGroup parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.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.Meta.APIGroup parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.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.Meta.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.Meta.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);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.Meta.APIGroup prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* APIGroup contains the name, the supported versions, and the preferred version
* of a group.
*
* 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.
* +optional
*
* 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.
* +optional
*
* 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.
* +optional
*
* 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.
* +optional
*
*
*
* repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
*
*/
public Builder setServerAddressByClientCIDRs(
int index, io.kubernetes.client.proto.Meta.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.
* +optional
*
* 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.
* +optional
*
* 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.
* +optional
*
*
*
* repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
*
*/
public Builder addServerAddressByClientCIDRs(
int index, io.kubernetes.client.proto.Meta.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.
* +optional
*
* 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.
* +optional
*
* 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.
* +optional
*
* 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.
* +optional
*
* 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.
* +optional
*
* 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.
* +optional
*
* 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.
* +optional
*
* 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.
* +optional
*
* 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.
* +optional
*
* 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.
* +optional
*
* 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.
* +optional
*
*
*
* repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
*
*/
public java.util.List
getServerAddressByClientCIDRsBuilderList() {
return getServerAddressByClientCIDRsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.Meta.ServerAddressByClientCIDR,
io.kubernetes.client.proto.Meta.ServerAddressByClientCIDR.Builder,
io.kubernetes.client.proto.Meta.ServerAddressByClientCIDROrBuilder>
getServerAddressByClientCIDRsFieldBuilder() {
if (serverAddressByClientCIDRsBuilder_ == null) {
serverAddressByClientCIDRsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.Meta.ServerAddressByClientCIDR,
io.kubernetes.client.proto.Meta.ServerAddressByClientCIDR.Builder,
io.kubernetes.client.proto.Meta.ServerAddressByClientCIDROrBuilder>(
serverAddressByClientCIDRs_,
((bitField0_ & 0x00000008) == 0x00000008),
getParentForChildren(),
isClean());
serverAddressByClientCIDRs_ = null;
}
return serverAddressByClientCIDRsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup)
}
// @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup)
private static final io.kubernetes.client.proto.Meta.APIGroup DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.Meta.APIGroup();
}
public static io.kubernetes.client.proto.Meta.APIGroup getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public APIGroup parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new APIGroup(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.APIGroup getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface APIGroupListOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.apimachinery.pkg.apis.meta.v1.APIGroupList)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* 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.
*
* 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.
*
* 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.
*
* group is the preferred group of the resource. Empty implies the group of the containing resource list.
* For subresources, this may have a different value, for example: Scale".
*
* group is the preferred group of the resource. Empty implies the group of the containing resource list.
* For subresources, this may have a different value, for example: Scale".
*
* group is the preferred group of the resource. Empty implies the group of the containing resource list.
* For subresources, this may have a different value, for example: Scale".
*
* version is the preferred version of the resource. Empty implies the version of the containing resource list
* For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
*
* version is the preferred version of the resource. Empty implies the version of the containing resource list
* For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
*
* version is the preferred version of the resource. Empty implies the version of the containing resource list
* For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
*
* The hash value of the storage version, the version this resource is
* converted to when written to the data store. Value must be treated
* as opaque by clients. Only equality comparison on the value is valid.
* This is an alpha feature and may change or be removed in the future.
* The field is populated by the apiserver only if the
* StorageVersionHash feature gate is enabled.
* This field will remain optional even if it graduates.
* +optional
*
* The hash value of the storage version, the version this resource is
* converted to when written to the data store. Value must be treated
* as opaque by clients. Only equality comparison on the value is valid.
* This is an alpha feature and may change or be removed in the future.
* The field is populated by the apiserver only if the
* StorageVersionHash feature gate is enabled.
* This field will remain optional even if it graduates.
* +optional
*
* The hash value of the storage version, the version this resource is
* converted to when written to the data store. Value must be treated
* as opaque by clients. Only equality comparison on the value is valid.
* This is an alpha feature and may change or be removed in the future.
* The field is populated by the apiserver only if the
* StorageVersionHash feature gate is enabled.
* This field will remain optional even if it graduates.
* +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 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.
*
* 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.
*
* 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.
*
* namespaced indicates if a resource is namespaced or not.
*
*
* optional bool namespaced = 2;
*/
public boolean getNamespaced() {
return namespaced_;
}
public static final int GROUP_FIELD_NUMBER = 8;
private volatile java.lang.Object group_;
/**
*
*
*
* group is the preferred group of the resource. Empty implies the group of the containing resource list.
* For subresources, this may have a different value, for example: Scale".
*
* group is the preferred group of the resource. Empty implies the group of the containing resource list.
* For subresources, this may have a different value, for example: Scale".
*
* group is the preferred group of the resource. Empty implies the group of the containing resource list.
* For subresources, this may have a different value, for example: Scale".
*
*
* optional string group = 8;
*/
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 = 9;
private volatile java.lang.Object version_;
/**
*
*
*
* version is the preferred version of the resource. Empty implies the version of the containing resource list
* For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
*
* version is the preferred version of the resource. Empty implies the version of the containing resource list
* For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
*
* version is the preferred version of the resource. Empty implies the version of the containing resource list
* For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
*
*
* optional string version = 9;
*/
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_;
/**
*
*
*
* kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')
*
* 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);
}
public static final int STORAGEVERSIONHASH_FIELD_NUMBER = 10;
private volatile java.lang.Object storageVersionHash_;
/**
*
*
*
* The hash value of the storage version, the version this resource is
* converted to when written to the data store. Value must be treated
* as opaque by clients. Only equality comparison on the value is valid.
* This is an alpha feature and may change or be removed in the future.
* The field is populated by the apiserver only if the
* StorageVersionHash feature gate is enabled.
* This field will remain optional even if it graduates.
* +optional
*
* The hash value of the storage version, the version this resource is
* converted to when written to the data store. Value must be treated
* as opaque by clients. Only equality comparison on the value is valid.
* This is an alpha feature and may change or be removed in the future.
* The field is populated by the apiserver only if the
* StorageVersionHash feature gate is enabled.
* This field will remain optional even if it graduates.
* +optional
*
* The hash value of the storage version, the version this resource is
* converted to when written to the data store. Value must be treated
* as opaque by clients. Only equality comparison on the value is valid.
* This is an alpha feature and may change or be removed in the future.
* The field is populated by the apiserver only if the
* StorageVersionHash feature gate is enabled.
* This field will remain optional even if it graduates.
* +optional
*
*
* optional string storageVersionHash = 10;
*/
public com.google.protobuf.ByteString getStorageVersionHashBytes() {
java.lang.Object ref = storageVersionHash_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
storageVersionHash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBool(2, namespaced_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, kind_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
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));
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, group_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, version_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, storageVersionHash_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, namespaced_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, kind_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
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();
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, group_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, version_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, storageVersionHash_);
}
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.Meta.APIResource)) {
return super.equals(obj);
}
io.kubernetes.client.proto.Meta.APIResource other =
(io.kubernetes.client.proto.Meta.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 && (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 && (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 && (hasStorageVersionHash() == other.hasStorageVersionHash());
if (hasStorageVersionHash()) {
result = result && getStorageVersionHash().equals(other.getStorageVersionHash());
}
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 (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();
}
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();
}
if (hasStorageVersionHash()) {
hash = (37 * hash) + STORAGEVERSIONHASH_FIELD_NUMBER;
hash = (53 * hash) + getStorageVersionHash().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.Meta.APIResource parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.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.Meta.APIResource parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.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.Meta.APIResource parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.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.Meta.APIResource parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.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.Meta.APIResource parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.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.Meta.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.Meta.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);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.Meta.APIResource prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* APIResource specifies the name of a resource and whether it is namespaced.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* group is the preferred group of the resource. Empty implies the group of the containing resource list.
* For subresources, this may have a different value, for example: Scale".
*
* group is the preferred group of the resource. Empty implies the group of the containing resource list.
* For subresources, this may have a different value, for example: Scale".
*
* group is the preferred group of the resource. Empty implies the group of the containing resource list.
* For subresources, this may have a different value, for example: Scale".
*
* group is the preferred group of the resource. Empty implies the group of the containing resource list.
* For subresources, this may have a different value, for example: Scale".
*
*
* optional string group = 8;
*/
public Builder setGroup(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
group_ = value;
onChanged();
return this;
}
/**
*
*
*
* group is the preferred group of the resource. Empty implies the group of the containing resource list.
* For subresources, this may have a different value, for example: Scale".
*
* group is the preferred group of the resource. Empty implies the group of the containing resource list.
* For subresources, this may have a different value, for example: Scale".
*
* version is the preferred version of the resource. Empty implies the version of the containing resource list
* For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
*
* version is the preferred version of the resource. Empty implies the version of the containing resource list
* For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
*
* version is the preferred version of the resource. Empty implies the version of the containing resource list
* For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
*
* version is the preferred version of the resource. Empty implies the version of the containing resource list
* For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
*
*
* optional string version = 9;
*/
public Builder setVersion(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
version_ = value;
onChanged();
return this;
}
/**
*
*
*
* version is the preferred version of the resource. Empty implies the version of the containing resource list
* For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
*
* version is the preferred version of the resource. Empty implies the version of the containing resource list
* For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
*
* The hash value of the storage version, the version this resource is
* converted to when written to the data store. Value must be treated
* as opaque by clients. Only equality comparison on the value is valid.
* This is an alpha feature and may change or be removed in the future.
* The field is populated by the apiserver only if the
* StorageVersionHash feature gate is enabled.
* This field will remain optional even if it graduates.
* +optional
*
* The hash value of the storage version, the version this resource is
* converted to when written to the data store. Value must be treated
* as opaque by clients. Only equality comparison on the value is valid.
* This is an alpha feature and may change or be removed in the future.
* The field is populated by the apiserver only if the
* StorageVersionHash feature gate is enabled.
* This field will remain optional even if it graduates.
* +optional
*
* The hash value of the storage version, the version this resource is
* converted to when written to the data store. Value must be treated
* as opaque by clients. Only equality comparison on the value is valid.
* This is an alpha feature and may change or be removed in the future.
* The field is populated by the apiserver only if the
* StorageVersionHash feature gate is enabled.
* This field will remain optional even if it graduates.
* +optional
*
* The hash value of the storage version, the version this resource is
* converted to when written to the data store. Value must be treated
* as opaque by clients. Only equality comparison on the value is valid.
* This is an alpha feature and may change or be removed in the future.
* The field is populated by the apiserver only if the
* StorageVersionHash feature gate is enabled.
* This field will remain optional even if it graduates.
* +optional
*
* The hash value of the storage version, the version this resource is
* converted to when written to the data store. Value must be treated
* as opaque by clients. Only equality comparison on the value is valid.
* This is an alpha feature and may change or be removed in the future.
* The field is populated by the apiserver only if the
* StorageVersionHash feature gate is enabled.
* This field will remain optional even if it graduates.
* +optional
*
* The hash value of the storage version, the version this resource is
* converted to when written to the data store. Value must be treated
* as opaque by clients. Only equality comparison on the value is valid.
* This is an alpha feature and may change or be removed in the future.
* The field is populated by the apiserver only if the
* StorageVersionHash feature gate is enabled.
* This field will remain optional even if it graduates.
* +optional
*
*
* optional string storageVersionHash = 10;
*/
public Builder setStorageVersionHashBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
storageVersionHash_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.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.Meta.APIResource DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.Meta.APIResource();
}
public static io.kubernetes.client.proto.Meta.APIResource getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public APIResource parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new APIResource(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.APIResource getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface APIResourceListOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.apimachinery.pkg.apis.meta.v1.APIResourceList)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* groupVersion is the group and version this APIResourceList is for.
*
* 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();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
groupVersion_ = bs;
break;
}
case 18:
{
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
resources_ =
new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
resources_.add(
input.readMessage(
io.kubernetes.client.proto.Meta.APIResource.PARSER, extensionRegistry));
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
resources_ = java.util.Collections.unmodifiableList(resources_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_APIResourceList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_APIResourceList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.APIResourceList.class,
io.kubernetes.client.proto.Meta.APIResourceList.Builder.class);
}
private int bitField0_;
public static final int GROUPVERSION_FIELD_NUMBER = 1;
private volatile java.lang.Object groupVersion_;
/**
*
*
*
* groupVersion is the group and version this APIResourceList is for.
*
* 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.Meta.APIResourceOrBuilder getResourcesOrBuilder(int index) {
return resources_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, groupVersion_);
}
for (int i = 0; i < resources_.size(); i++) {
output.writeMessage(2, resources_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, 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.Meta.APIResourceList)) {
return super.equals(obj);
}
io.kubernetes.client.proto.Meta.APIResourceList other =
(io.kubernetes.client.proto.Meta.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.Meta.APIResourceList parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.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.Meta.APIResourceList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.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.Meta.APIResourceList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.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.Meta.APIResourceList parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.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.Meta.APIResourceList parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.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.Meta.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.Meta.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);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.Meta.APIResourceList prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
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<
io.kubernetes.client.proto.Meta.ServerAddressByClientCIDR>();
mutable_bitField0_ |= 0x00000002;
}
serverAddressByClientCIDRs_.add(
input.readMessage(
io.kubernetes.client.proto.Meta.ServerAddressByClientCIDR.PARSER,
extensionRegistry));
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
versions_ = versions_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
serverAddressByClientCIDRs_ =
java.util.Collections.unmodifiableList(serverAddressByClientCIDRs_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_APIVersions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_APIVersions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.APIVersions.class,
io.kubernetes.client.proto.Meta.APIVersions.Builder.class);
}
public static final int VERSIONS_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList versions_;
/**
*
*
*
* versions are the api versions that are available.
*
* 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
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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.Meta.ServerAddressByClientCIDROrBuilder
getServerAddressByClientCIDRsOrBuilder(int index) {
return serverAddressByClientCIDRs_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
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);
}
@java.lang.Override
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.Meta.APIVersions)) {
return super.equals(obj);
}
io.kubernetes.client.proto.Meta.APIVersions other =
(io.kubernetes.client.proto.Meta.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.Meta.APIVersions parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.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.Meta.APIVersions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.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.Meta.APIVersions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.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.Meta.APIVersions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.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.Meta.APIVersions parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.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.Meta.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.Meta.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);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.Meta.APIVersions prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* 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
*
* 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.
*
* 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.
*
* 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.
*
* 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.Meta.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.
*
* 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.
*
* 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.Meta.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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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
getServerAddressByClientCIDRsBuilderList() {
return getServerAddressByClientCIDRsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.Meta.ServerAddressByClientCIDR,
io.kubernetes.client.proto.Meta.ServerAddressByClientCIDR.Builder,
io.kubernetes.client.proto.Meta.ServerAddressByClientCIDROrBuilder>
getServerAddressByClientCIDRsFieldBuilder() {
if (serverAddressByClientCIDRsBuilder_ == null) {
serverAddressByClientCIDRsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.Meta.ServerAddressByClientCIDR,
io.kubernetes.client.proto.Meta.ServerAddressByClientCIDR.Builder,
io.kubernetes.client.proto.Meta.ServerAddressByClientCIDROrBuilder>(
serverAddressByClientCIDRs_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
serverAddressByClientCIDRs_ = null;
}
return serverAddressByClientCIDRsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.APIVersions)
}
// @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.APIVersions)
private static final io.kubernetes.client.proto.Meta.APIVersions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.Meta.APIVersions();
}
public static io.kubernetes.client.proto.Meta.APIVersions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public APIVersions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new APIVersions(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.APIVersions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ApplyOptionsOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.apimachinery.pkg.apis.meta.v1.ApplyOptions)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* fieldManager is a name associated with the actor or entity
* that is making these changes. The value must be less than or
* 128 characters long, and only contain printable characters,
* as defined by https://golang.org/pkg/unicode/#IsPrint. This
* field is required.
*
* fieldManager is a name associated with the actor or entity
* that is making these changes. The value must be less than or
* 128 characters long, and only contain printable characters,
* as defined by https://golang.org/pkg/unicode/#IsPrint. This
* field is required.
*
* fieldManager is a name associated with the actor or entity
* that is making these changes. The value must be less than or
* 128 characters long, and only contain printable characters,
* as defined by https://golang.org/pkg/unicode/#IsPrint. This
* field is required.
*
* ApplyOptions may be provided when applying an API object.
* FieldManager is required for apply requests.
* ApplyOptions is equivalent to PatchOptions. It is provided as a convenience with documentation
* that speaks specifically to how the options fields relate to apply.
*
*
* Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.ApplyOptions}
*/
public static final class ApplyOptions extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.ApplyOptions)
ApplyOptionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use ApplyOptions.newBuilder() to construct.
private ApplyOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ApplyOptions() {
dryRun_ = com.google.protobuf.LazyStringArrayList.EMPTY;
force_ = false;
fieldManager_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private ApplyOptions(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
dryRun_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
dryRun_.add(bs);
break;
}
case 16:
{
bitField0_ |= 0x00000001;
force_ = input.readBool();
break;
}
case 26:
{
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
fieldManager_ = bs;
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
dryRun_ = dryRun_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_ApplyOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_ApplyOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.ApplyOptions.class,
io.kubernetes.client.proto.Meta.ApplyOptions.Builder.class);
}
private int bitField0_;
public static final int DRYRUN_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList dryRun_;
/**
*
*
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
*
* repeated string dryRun = 1;
*/
public int getDryRunCount() {
return dryRun_.size();
}
/**
*
*
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
*
* repeated string dryRun = 1;
*/
public com.google.protobuf.ByteString getDryRunBytes(int index) {
return dryRun_.getByteString(index);
}
public static final int FORCE_FIELD_NUMBER = 2;
private boolean force_;
/**
*
*
*
* Force is going to "force" Apply requests. It means user will
* re-acquire conflicting fields owned by other people.
*
* Force is going to "force" Apply requests. It means user will
* re-acquire conflicting fields owned by other people.
*
*
* optional bool force = 2;
*/
public boolean getForce() {
return force_;
}
public static final int FIELDMANAGER_FIELD_NUMBER = 3;
private volatile java.lang.Object fieldManager_;
/**
*
*
*
* fieldManager is a name associated with the actor or entity
* that is making these changes. The value must be less than or
* 128 characters long, and only contain printable characters,
* as defined by https://golang.org/pkg/unicode/#IsPrint. This
* field is required.
*
* fieldManager is a name associated with the actor or entity
* that is making these changes. The value must be less than or
* 128 characters long, and only contain printable characters,
* as defined by https://golang.org/pkg/unicode/#IsPrint. This
* field is required.
*
* fieldManager is a name associated with the actor or entity
* that is making these changes. The value must be less than or
* 128 characters long, and only contain printable characters,
* as defined by https://golang.org/pkg/unicode/#IsPrint. This
* field is required.
*
*
* optional string fieldManager = 3;
*/
public com.google.protobuf.ByteString getFieldManagerBytes() {
java.lang.Object ref = fieldManager_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
fieldManager_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
for (int i = 0; i < dryRun_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dryRun_.getRaw(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBool(2, force_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, fieldManager_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < dryRun_.size(); i++) {
dataSize += computeStringSizeNoTag(dryRun_.getRaw(i));
}
size += dataSize;
size += 1 * getDryRunList().size();
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, force_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, fieldManager_);
}
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.Meta.ApplyOptions)) {
return super.equals(obj);
}
io.kubernetes.client.proto.Meta.ApplyOptions other =
(io.kubernetes.client.proto.Meta.ApplyOptions) obj;
boolean result = true;
result = result && getDryRunList().equals(other.getDryRunList());
result = result && (hasForce() == other.hasForce());
if (hasForce()) {
result = result && (getForce() == other.getForce());
}
result = result && (hasFieldManager() == other.hasFieldManager());
if (hasFieldManager()) {
result = result && getFieldManager().equals(other.getFieldManager());
}
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 (getDryRunCount() > 0) {
hash = (37 * hash) + DRYRUN_FIELD_NUMBER;
hash = (53 * hash) + getDryRunList().hashCode();
}
if (hasForce()) {
hash = (37 * hash) + FORCE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce());
}
if (hasFieldManager()) {
hash = (37 * hash) + FIELDMANAGER_FIELD_NUMBER;
hash = (53 * hash) + getFieldManager().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.Meta.ApplyOptions parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.ApplyOptions 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.Meta.ApplyOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.ApplyOptions 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.Meta.ApplyOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.ApplyOptions parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.ApplyOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.ApplyOptions 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.Meta.ApplyOptions parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.ApplyOptions 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.Meta.ApplyOptions parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.ApplyOptions parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.Meta.ApplyOptions prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* ApplyOptions may be provided when applying an API object.
* FieldManager is required for apply requests.
* ApplyOptions is equivalent to PatchOptions. It is provided as a convenience with documentation
* that speaks specifically to how the options fields relate to apply.
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
*
* repeated string dryRun = 1;
*/
public int getDryRunCount() {
return dryRun_.size();
}
/**
*
*
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* fieldManager is a name associated with the actor or entity
* that is making these changes. The value must be less than or
* 128 characters long, and only contain printable characters,
* as defined by https://golang.org/pkg/unicode/#IsPrint. This
* field is required.
*
* fieldManager is a name associated with the actor or entity
* that is making these changes. The value must be less than or
* 128 characters long, and only contain printable characters,
* as defined by https://golang.org/pkg/unicode/#IsPrint. This
* field is required.
*
* fieldManager is a name associated with the actor or entity
* that is making these changes. The value must be less than or
* 128 characters long, and only contain printable characters,
* as defined by https://golang.org/pkg/unicode/#IsPrint. This
* field is required.
*
* fieldManager is a name associated with the actor or entity
* that is making these changes. The value must be less than or
* 128 characters long, and only contain printable characters,
* as defined by https://golang.org/pkg/unicode/#IsPrint. This
* field is required.
*
* fieldManager is a name associated with the actor or entity
* that is making these changes. The value must be less than or
* 128 characters long, and only contain printable characters,
* as defined by https://golang.org/pkg/unicode/#IsPrint. This
* field is required.
*
* fieldManager is a name associated with the actor or entity
* that is making these changes. The value must be less than or
* 128 characters long, and only contain printable characters,
* as defined by https://golang.org/pkg/unicode/#IsPrint. This
* field is required.
*
*
* optional string fieldManager = 3;
*/
public Builder setFieldManagerBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
fieldManager_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.ApplyOptions)
}
// @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.ApplyOptions)
private static final io.kubernetes.client.proto.Meta.ApplyOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.Meta.ApplyOptions();
}
public static io.kubernetes.client.proto.Meta.ApplyOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ApplyOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ApplyOptions(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.ApplyOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConditionOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.apimachinery.pkg.apis.meta.v1.Condition)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* type of condition in CamelCase or in foo.example.com/CamelCase.
* ---
* Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
* useful (see .node.status.conditions), the ability to deconflict is important.
* The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`
* +kubebuilder:validation:MaxLength=316
*
* type of condition in CamelCase or in foo.example.com/CamelCase.
* ---
* Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
* useful (see .node.status.conditions), the ability to deconflict is important.
* The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`
* +kubebuilder:validation:MaxLength=316
*
* type of condition in CamelCase or in foo.example.com/CamelCase.
* ---
* Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
* useful (see .node.status.conditions), the ability to deconflict is important.
* The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`
* +kubebuilder:validation:MaxLength=316
*
* status of the condition, one of True, False, Unknown.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Enum=True;False;Unknown
*
* status of the condition, one of True, False, Unknown.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Enum=True;False;Unknown
*
* status of the condition, one of True, False, Unknown.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Enum=True;False;Unknown
*
* observedGeneration represents the .metadata.generation that the condition was set based upon.
* For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
* with respect to the current state of the instance.
* +optional
* +kubebuilder:validation:Minimum=0
*
* observedGeneration represents the .metadata.generation that the condition was set based upon.
* For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
* with respect to the current state of the instance.
* +optional
* +kubebuilder:validation:Minimum=0
*
* lastTransitionTime is the last time the condition transitioned from one status to another.
* This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Type=string
* +kubebuilder:validation:Format=date-time
*
* lastTransitionTime is the last time the condition transitioned from one status to another.
* This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Type=string
* +kubebuilder:validation:Format=date-time
*
* lastTransitionTime is the last time the condition transitioned from one status to another.
* This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Type=string
* +kubebuilder:validation:Format=date-time
*
* reason contains a programmatic identifier indicating the reason for the condition's last transition.
* Producers of specific condition types may define expected values and meanings for this field,
* and whether the values are considered a guaranteed API.
* The value should be a CamelCase string.
* This field may not be empty.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:MaxLength=1024
* +kubebuilder:validation:MinLength=1
* +kubebuilder:validation:Pattern=`^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$`
*
* reason contains a programmatic identifier indicating the reason for the condition's last transition.
* Producers of specific condition types may define expected values and meanings for this field,
* and whether the values are considered a guaranteed API.
* The value should be a CamelCase string.
* This field may not be empty.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:MaxLength=1024
* +kubebuilder:validation:MinLength=1
* +kubebuilder:validation:Pattern=`^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$`
*
* reason contains a programmatic identifier indicating the reason for the condition's last transition.
* Producers of specific condition types may define expected values and meanings for this field,
* and whether the values are considered a guaranteed API.
* The value should be a CamelCase string.
* This field may not be empty.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:MaxLength=1024
* +kubebuilder:validation:MinLength=1
* +kubebuilder:validation:Pattern=`^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$`
*
* message is a human readable message indicating details about the transition.
* This may be an empty string.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:MaxLength=32768
*
* message is a human readable message indicating details about the transition.
* This may be an empty string.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:MaxLength=32768
*
* message is a human readable message indicating details about the transition.
* This may be an empty string.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:MaxLength=32768
*
* Condition contains details for one aspect of the current state of this API Resource.
* ---
* This struct is intended for direct use as an array at the field path .status.conditions. For example,
* type FooStatus struct{
* // Represents the observations of a foo's current state.
* // Known .status.conditions.type are: "Available", "Progressing", and "Degraded"
* // +patchMergeKey=type
* // +patchStrategy=merge
* // +listType=map
* // +listMapKey=type
* Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
* // other fields
* }
*
*
* Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.Condition}
*/
public static final class Condition extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.Condition)
ConditionOrBuilder {
private static final long serialVersionUID = 0L;
// Use Condition.newBuilder() to construct.
private Condition(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Condition() {
type_ = "";
status_ = "";
observedGeneration_ = 0L;
reason_ = "";
message_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private Condition(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
type_ = bs;
break;
}
case 18:
{
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
status_ = bs;
break;
}
case 24:
{
bitField0_ |= 0x00000004;
observedGeneration_ = input.readInt64();
break;
}
case 34:
{
io.kubernetes.client.proto.Meta.Time.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = lastTransitionTime_.toBuilder();
}
lastTransitionTime_ =
input.readMessage(
io.kubernetes.client.proto.Meta.Time.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(lastTransitionTime_);
lastTransitionTime_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
case 42:
{
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000010;
reason_ = bs;
break;
}
case 50:
{
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
message_ = bs;
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_Condition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_Condition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.Condition.class,
io.kubernetes.client.proto.Meta.Condition.Builder.class);
}
private int bitField0_;
public static final int TYPE_FIELD_NUMBER = 1;
private volatile java.lang.Object type_;
/**
*
*
*
* type of condition in CamelCase or in foo.example.com/CamelCase.
* ---
* Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
* useful (see .node.status.conditions), the ability to deconflict is important.
* The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`
* +kubebuilder:validation:MaxLength=316
*
* type of condition in CamelCase or in foo.example.com/CamelCase.
* ---
* Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
* useful (see .node.status.conditions), the ability to deconflict is important.
* The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`
* +kubebuilder:validation:MaxLength=316
*
* type of condition in CamelCase or in foo.example.com/CamelCase.
* ---
* Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
* useful (see .node.status.conditions), the ability to deconflict is important.
* The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`
* +kubebuilder:validation:MaxLength=316
*
*
* optional string type = 1;
*/
public com.google.protobuf.ByteString getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATUS_FIELD_NUMBER = 2;
private volatile java.lang.Object status_;
/**
*
*
*
* status of the condition, one of True, False, Unknown.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Enum=True;False;Unknown
*
* status of the condition, one of True, False, Unknown.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Enum=True;False;Unknown
*
* status of the condition, one of True, False, Unknown.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Enum=True;False;Unknown
*
*
* optional string status = 2;
*/
public com.google.protobuf.ByteString getStatusBytes() {
java.lang.Object ref = status_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
status_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OBSERVEDGENERATION_FIELD_NUMBER = 3;
private long observedGeneration_;
/**
*
*
*
* observedGeneration represents the .metadata.generation that the condition was set based upon.
* For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
* with respect to the current state of the instance.
* +optional
* +kubebuilder:validation:Minimum=0
*
* observedGeneration represents the .metadata.generation that the condition was set based upon.
* For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
* with respect to the current state of the instance.
* +optional
* +kubebuilder:validation:Minimum=0
*
*
* optional int64 observedGeneration = 3;
*/
public long getObservedGeneration() {
return observedGeneration_;
}
public static final int LASTTRANSITIONTIME_FIELD_NUMBER = 4;
private io.kubernetes.client.proto.Meta.Time lastTransitionTime_;
/**
*
*
*
* lastTransitionTime is the last time the condition transitioned from one status to another.
* This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Type=string
* +kubebuilder:validation:Format=date-time
*
* lastTransitionTime is the last time the condition transitioned from one status to another.
* This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Type=string
* +kubebuilder:validation:Format=date-time
*
* lastTransitionTime is the last time the condition transitioned from one status to another.
* This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Type=string
* +kubebuilder:validation:Format=date-time
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4;
*/
public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastTransitionTimeOrBuilder() {
return lastTransitionTime_ == null
? io.kubernetes.client.proto.Meta.Time.getDefaultInstance()
: lastTransitionTime_;
}
public static final int REASON_FIELD_NUMBER = 5;
private volatile java.lang.Object reason_;
/**
*
*
*
* reason contains a programmatic identifier indicating the reason for the condition's last transition.
* Producers of specific condition types may define expected values and meanings for this field,
* and whether the values are considered a guaranteed API.
* The value should be a CamelCase string.
* This field may not be empty.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:MaxLength=1024
* +kubebuilder:validation:MinLength=1
* +kubebuilder:validation:Pattern=`^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$`
*
* reason contains a programmatic identifier indicating the reason for the condition's last transition.
* Producers of specific condition types may define expected values and meanings for this field,
* and whether the values are considered a guaranteed API.
* The value should be a CamelCase string.
* This field may not be empty.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:MaxLength=1024
* +kubebuilder:validation:MinLength=1
* +kubebuilder:validation:Pattern=`^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$`
*
* reason contains a programmatic identifier indicating the reason for the condition's last transition.
* Producers of specific condition types may define expected values and meanings for this field,
* and whether the values are considered a guaranteed API.
* The value should be a CamelCase string.
* This field may not be empty.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:MaxLength=1024
* +kubebuilder:validation:MinLength=1
* +kubebuilder:validation:Pattern=`^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$`
*
*
* optional string reason = 5;
*/
public com.google.protobuf.ByteString getReasonBytes() {
java.lang.Object ref = reason_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
reason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MESSAGE_FIELD_NUMBER = 6;
private volatile java.lang.Object message_;
/**
*
*
*
* message is a human readable message indicating details about the transition.
* This may be an empty string.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:MaxLength=32768
*
* message is a human readable message indicating details about the transition.
* This may be an empty string.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:MaxLength=32768
*
* message is a human readable message indicating details about the transition.
* This may be an empty string.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:MaxLength=32768
*
*
* optional string message = 6;
*/
public com.google.protobuf.ByteString getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, status_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt64(3, observedGeneration_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(4, getLastTransitionTime());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, reason_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, message_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, status_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, observedGeneration_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLastTransitionTime());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, reason_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, message_);
}
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.Meta.Condition)) {
return super.equals(obj);
}
io.kubernetes.client.proto.Meta.Condition other =
(io.kubernetes.client.proto.Meta.Condition) obj;
boolean result = true;
result = result && (hasType() == other.hasType());
if (hasType()) {
result = result && getType().equals(other.getType());
}
result = result && (hasStatus() == other.hasStatus());
if (hasStatus()) {
result = result && getStatus().equals(other.getStatus());
}
result = result && (hasObservedGeneration() == other.hasObservedGeneration());
if (hasObservedGeneration()) {
result = result && (getObservedGeneration() == other.getObservedGeneration());
}
result = result && (hasLastTransitionTime() == other.hasLastTransitionTime());
if (hasLastTransitionTime()) {
result = result && getLastTransitionTime().equals(other.getLastTransitionTime());
}
result = result && (hasReason() == other.hasReason());
if (hasReason()) {
result = result && getReason().equals(other.getReason());
}
result = result && (hasMessage() == other.hasMessage());
if (hasMessage()) {
result = result && getMessage().equals(other.getMessage());
}
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 (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
}
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
}
if (hasObservedGeneration()) {
hash = (37 * hash) + OBSERVEDGENERATION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getObservedGeneration());
}
if (hasLastTransitionTime()) {
hash = (37 * hash) + LASTTRANSITIONTIME_FIELD_NUMBER;
hash = (53 * hash) + getLastTransitionTime().hashCode();
}
if (hasReason()) {
hash = (37 * hash) + REASON_FIELD_NUMBER;
hash = (53 * hash) + getReason().hashCode();
}
if (hasMessage()) {
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.Meta.Condition parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.Condition 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.Meta.Condition parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.Condition 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.Meta.Condition parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.Condition parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.Condition parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.Condition 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.Meta.Condition parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.Condition 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.Meta.Condition parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.Condition parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.Meta.Condition prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* Condition contains details for one aspect of the current state of this API Resource.
* ---
* This struct is intended for direct use as an array at the field path .status.conditions. For example,
* type FooStatus struct{
* // Represents the observations of a foo's current state.
* // Known .status.conditions.type are: "Available", "Progressing", and "Degraded"
* // +patchMergeKey=type
* // +patchStrategy=merge
* // +listType=map
* // +listMapKey=type
* Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
* // other fields
* }
*
* type of condition in CamelCase or in foo.example.com/CamelCase.
* ---
* Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
* useful (see .node.status.conditions), the ability to deconflict is important.
* The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`
* +kubebuilder:validation:MaxLength=316
*
* type of condition in CamelCase or in foo.example.com/CamelCase.
* ---
* Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
* useful (see .node.status.conditions), the ability to deconflict is important.
* The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`
* +kubebuilder:validation:MaxLength=316
*
* type of condition in CamelCase or in foo.example.com/CamelCase.
* ---
* Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
* useful (see .node.status.conditions), the ability to deconflict is important.
* The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`
* +kubebuilder:validation:MaxLength=316
*
* type of condition in CamelCase or in foo.example.com/CamelCase.
* ---
* Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
* useful (see .node.status.conditions), the ability to deconflict is important.
* The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`
* +kubebuilder:validation:MaxLength=316
*
*
* optional string type = 1;
*/
public Builder setType(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
type_ = value;
onChanged();
return this;
}
/**
*
*
*
* type of condition in CamelCase or in foo.example.com/CamelCase.
* ---
* Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
* useful (see .node.status.conditions), the ability to deconflict is important.
* The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`
* +kubebuilder:validation:MaxLength=316
*
* type of condition in CamelCase or in foo.example.com/CamelCase.
* ---
* Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
* useful (see .node.status.conditions), the ability to deconflict is important.
* The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`
* +kubebuilder:validation:MaxLength=316
*
* status of the condition, one of True, False, Unknown.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Enum=True;False;Unknown
*
* status of the condition, one of True, False, Unknown.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Enum=True;False;Unknown
*
* status of the condition, one of True, False, Unknown.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Enum=True;False;Unknown
*
* status of the condition, one of True, False, Unknown.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Enum=True;False;Unknown
*
*
* optional string status = 2;
*/
public Builder setStatus(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
status_ = value;
onChanged();
return this;
}
/**
*
*
*
* status of the condition, one of True, False, Unknown.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Enum=True;False;Unknown
*
* status of the condition, one of True, False, Unknown.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Enum=True;False;Unknown
*
*
* optional string status = 2;
*/
public Builder setStatusBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
status_ = value;
onChanged();
return this;
}
private long observedGeneration_;
/**
*
*
*
* observedGeneration represents the .metadata.generation that the condition was set based upon.
* For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
* with respect to the current state of the instance.
* +optional
* +kubebuilder:validation:Minimum=0
*
* observedGeneration represents the .metadata.generation that the condition was set based upon.
* For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
* with respect to the current state of the instance.
* +optional
* +kubebuilder:validation:Minimum=0
*
*
* optional int64 observedGeneration = 3;
*/
public long getObservedGeneration() {
return observedGeneration_;
}
/**
*
*
*
* observedGeneration represents the .metadata.generation that the condition was set based upon.
* For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
* with respect to the current state of the instance.
* +optional
* +kubebuilder:validation:Minimum=0
*
* observedGeneration represents the .metadata.generation that the condition was set based upon.
* For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
* with respect to the current state of the instance.
* +optional
* +kubebuilder:validation:Minimum=0
*
* lastTransitionTime is the last time the condition transitioned from one status to another.
* This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Type=string
* +kubebuilder:validation:Format=date-time
*
* lastTransitionTime is the last time the condition transitioned from one status to another.
* This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Type=string
* +kubebuilder:validation:Format=date-time
*
* lastTransitionTime is the last time the condition transitioned from one status to another.
* This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Type=string
* +kubebuilder:validation:Format=date-time
*
* lastTransitionTime is the last time the condition transitioned from one status to another.
* This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Type=string
* +kubebuilder:validation:Format=date-time
*
* lastTransitionTime is the last time the condition transitioned from one status to another.
* This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Type=string
* +kubebuilder:validation:Format=date-time
*
* lastTransitionTime is the last time the condition transitioned from one status to another.
* This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Type=string
* +kubebuilder:validation:Format=date-time
*
* lastTransitionTime is the last time the condition transitioned from one status to another.
* This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Type=string
* +kubebuilder:validation:Format=date-time
*
* lastTransitionTime is the last time the condition transitioned from one status to another.
* This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Type=string
* +kubebuilder:validation:Format=date-time
*
* lastTransitionTime is the last time the condition transitioned from one status to another.
* This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:Type=string
* +kubebuilder:validation:Format=date-time
*
* reason contains a programmatic identifier indicating the reason for the condition's last transition.
* Producers of specific condition types may define expected values and meanings for this field,
* and whether the values are considered a guaranteed API.
* The value should be a CamelCase string.
* This field may not be empty.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:MaxLength=1024
* +kubebuilder:validation:MinLength=1
* +kubebuilder:validation:Pattern=`^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$`
*
* reason contains a programmatic identifier indicating the reason for the condition's last transition.
* Producers of specific condition types may define expected values and meanings for this field,
* and whether the values are considered a guaranteed API.
* The value should be a CamelCase string.
* This field may not be empty.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:MaxLength=1024
* +kubebuilder:validation:MinLength=1
* +kubebuilder:validation:Pattern=`^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$`
*
* reason contains a programmatic identifier indicating the reason for the condition's last transition.
* Producers of specific condition types may define expected values and meanings for this field,
* and whether the values are considered a guaranteed API.
* The value should be a CamelCase string.
* This field may not be empty.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:MaxLength=1024
* +kubebuilder:validation:MinLength=1
* +kubebuilder:validation:Pattern=`^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$`
*
* reason contains a programmatic identifier indicating the reason for the condition's last transition.
* Producers of specific condition types may define expected values and meanings for this field,
* and whether the values are considered a guaranteed API.
* The value should be a CamelCase string.
* This field may not be empty.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:MaxLength=1024
* +kubebuilder:validation:MinLength=1
* +kubebuilder:validation:Pattern=`^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$`
*
* reason contains a programmatic identifier indicating the reason for the condition's last transition.
* Producers of specific condition types may define expected values and meanings for this field,
* and whether the values are considered a guaranteed API.
* The value should be a CamelCase string.
* This field may not be empty.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:MaxLength=1024
* +kubebuilder:validation:MinLength=1
* +kubebuilder:validation:Pattern=`^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$`
*
* reason contains a programmatic identifier indicating the reason for the condition's last transition.
* Producers of specific condition types may define expected values and meanings for this field,
* and whether the values are considered a guaranteed API.
* The value should be a CamelCase string.
* This field may not be empty.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:MaxLength=1024
* +kubebuilder:validation:MinLength=1
* +kubebuilder:validation:Pattern=`^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$`
*
* message is a human readable message indicating details about the transition.
* This may be an empty string.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:MaxLength=32768
*
* message is a human readable message indicating details about the transition.
* This may be an empty string.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:MaxLength=32768
*
* message is a human readable message indicating details about the transition.
* This may be an empty string.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:MaxLength=32768
*
* message is a human readable message indicating details about the transition.
* This may be an empty string.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:MaxLength=32768
*
* message is a human readable message indicating details about the transition.
* This may be an empty string.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:MaxLength=32768
*
* message is a human readable message indicating details about the transition.
* This may be an empty string.
* +required
* +kubebuilder:validation:Required
* +kubebuilder:validation:MaxLength=32768
*
*
* optional string message = 6;
*/
public Builder setMessageBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
message_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.Condition)
}
// @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.Condition)
private static final io.kubernetes.client.proto.Meta.Condition DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.Meta.Condition();
}
public static io.kubernetes.client.proto.Meta.Condition getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Condition parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Condition(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.Condition getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateOptionsOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.apimachinery.pkg.apis.meta.v1.CreateOptions)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* fieldManager is a name associated with the actor or entity
* that is making these changes. The value must be less than or
* 128 characters long, and only contain printable characters,
* as defined by https://golang.org/pkg/unicode/#IsPrint.
* +optional
*
* fieldManager is a name associated with the actor or entity
* that is making these changes. The value must be less than or
* 128 characters long, and only contain printable characters,
* as defined by https://golang.org/pkg/unicode/#IsPrint.
* +optional
*
* fieldManager is a name associated with the actor or entity
* that is making these changes. The value must be less than or
* 128 characters long, and only contain printable characters,
* as defined by https://golang.org/pkg/unicode/#IsPrint.
* +optional
*
* CreateOptions may be provided when creating an API object.
*
*
* Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.CreateOptions}
*/
public static final class CreateOptions extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.CreateOptions)
CreateOptionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateOptions.newBuilder() to construct.
private CreateOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateOptions() {
dryRun_ = com.google.protobuf.LazyStringArrayList.EMPTY;
fieldManager_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private CreateOptions(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
dryRun_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
dryRun_.add(bs);
break;
}
case 26:
{
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
fieldManager_ = bs;
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
dryRun_ = dryRun_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_CreateOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_CreateOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.CreateOptions.class,
io.kubernetes.client.proto.Meta.CreateOptions.Builder.class);
}
private int bitField0_;
public static final int DRYRUN_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList dryRun_;
/**
*
*
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
*
* repeated string dryRun = 1;
*/
public int getDryRunCount() {
return dryRun_.size();
}
/**
*
*
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
*
* repeated string dryRun = 1;
*/
public com.google.protobuf.ByteString getDryRunBytes(int index) {
return dryRun_.getByteString(index);
}
public static final int FIELDMANAGER_FIELD_NUMBER = 3;
private volatile java.lang.Object fieldManager_;
/**
*
*
*
* fieldManager is a name associated with the actor or entity
* that is making these changes. The value must be less than or
* 128 characters long, and only contain printable characters,
* as defined by https://golang.org/pkg/unicode/#IsPrint.
* +optional
*
* fieldManager is a name associated with the actor or entity
* that is making these changes. The value must be less than or
* 128 characters long, and only contain printable characters,
* as defined by https://golang.org/pkg/unicode/#IsPrint.
* +optional
*
* fieldManager is a name associated with the actor or entity
* that is making these changes. The value must be less than or
* 128 characters long, and only contain printable characters,
* as defined by https://golang.org/pkg/unicode/#IsPrint.
* +optional
*
*
* optional string fieldManager = 3;
*/
public com.google.protobuf.ByteString getFieldManagerBytes() {
java.lang.Object ref = fieldManager_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
fieldManager_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
for (int i = 0; i < dryRun_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dryRun_.getRaw(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, fieldManager_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < dryRun_.size(); i++) {
dataSize += computeStringSizeNoTag(dryRun_.getRaw(i));
}
size += dataSize;
size += 1 * getDryRunList().size();
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, fieldManager_);
}
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.Meta.CreateOptions)) {
return super.equals(obj);
}
io.kubernetes.client.proto.Meta.CreateOptions other =
(io.kubernetes.client.proto.Meta.CreateOptions) obj;
boolean result = true;
result = result && getDryRunList().equals(other.getDryRunList());
result = result && (hasFieldManager() == other.hasFieldManager());
if (hasFieldManager()) {
result = result && getFieldManager().equals(other.getFieldManager());
}
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 (getDryRunCount() > 0) {
hash = (37 * hash) + DRYRUN_FIELD_NUMBER;
hash = (53 * hash) + getDryRunList().hashCode();
}
if (hasFieldManager()) {
hash = (37 * hash) + FIELDMANAGER_FIELD_NUMBER;
hash = (53 * hash) + getFieldManager().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.Meta.CreateOptions parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.CreateOptions 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.Meta.CreateOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.CreateOptions 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.Meta.CreateOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.CreateOptions parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.CreateOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.CreateOptions 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.Meta.CreateOptions parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.CreateOptions 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.Meta.CreateOptions parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.CreateOptions parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.Meta.CreateOptions prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* CreateOptions may be provided when creating an API object.
*
*
* Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.CreateOptions}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.apimachinery.pkg.apis.meta.v1.CreateOptions)
io.kubernetes.client.proto.Meta.CreateOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_CreateOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_CreateOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.CreateOptions.class,
io.kubernetes.client.proto.Meta.CreateOptions.Builder.class);
}
// Construct using io.kubernetes.client.proto.Meta.CreateOptions.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
dryRun_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
fieldManager_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_CreateOptions_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.CreateOptions getDefaultInstanceForType() {
return io.kubernetes.client.proto.Meta.CreateOptions.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.CreateOptions build() {
io.kubernetes.client.proto.Meta.CreateOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.CreateOptions buildPartial() {
io.kubernetes.client.proto.Meta.CreateOptions result =
new io.kubernetes.client.proto.Meta.CreateOptions(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
dryRun_ = dryRun_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.dryRun_ = dryRun_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000001;
}
result.fieldManager_ = fieldManager_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.Meta.CreateOptions) {
return mergeFrom((io.kubernetes.client.proto.Meta.CreateOptions) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.Meta.CreateOptions other) {
if (other == io.kubernetes.client.proto.Meta.CreateOptions.getDefaultInstance())
return this;
if (!other.dryRun_.isEmpty()) {
if (dryRun_.isEmpty()) {
dryRun_ = other.dryRun_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDryRunIsMutable();
dryRun_.addAll(other.dryRun_);
}
onChanged();
}
if (other.hasFieldManager()) {
bitField0_ |= 0x00000002;
fieldManager_ = other.fieldManager_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.Meta.CreateOptions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.Meta.CreateOptions) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList dryRun_ =
com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureDryRunIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
dryRun_ = new com.google.protobuf.LazyStringArrayList(dryRun_);
bitField0_ |= 0x00000001;
}
}
/**
*
*
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
*
* repeated string dryRun = 1;
*/
public int getDryRunCount() {
return dryRun_.size();
}
/**
*
*
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* fieldManager is a name associated with the actor or entity
* that is making these changes. The value must be less than or
* 128 characters long, and only contain printable characters,
* as defined by https://golang.org/pkg/unicode/#IsPrint.
* +optional
*
* fieldManager is a name associated with the actor or entity
* that is making these changes. The value must be less than or
* 128 characters long, and only contain printable characters,
* as defined by https://golang.org/pkg/unicode/#IsPrint.
* +optional
*
* fieldManager is a name associated with the actor or entity
* that is making these changes. The value must be less than or
* 128 characters long, and only contain printable characters,
* as defined by https://golang.org/pkg/unicode/#IsPrint.
* +optional
*
* fieldManager is a name associated with the actor or entity
* that is making these changes. The value must be less than or
* 128 characters long, and only contain printable characters,
* as defined by https://golang.org/pkg/unicode/#IsPrint.
* +optional
*
* fieldManager is a name associated with the actor or entity
* that is making these changes. The value must be less than or
* 128 characters long, and only contain printable characters,
* as defined by https://golang.org/pkg/unicode/#IsPrint.
* +optional
*
* fieldManager is a name associated with the actor or entity
* that is making these changes. The value must be less than or
* 128 characters long, and only contain printable characters,
* as defined by https://golang.org/pkg/unicode/#IsPrint.
* +optional
*
*
* optional string fieldManager = 3;
*/
public Builder setFieldManagerBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
fieldManager_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.CreateOptions)
}
// @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.CreateOptions)
private static final io.kubernetes.client.proto.Meta.CreateOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.Meta.CreateOptions();
}
public static io.kubernetes.client.proto.Meta.CreateOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateOptions(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.CreateOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteOptionsOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* 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
*
* 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
*
* Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be
* returned.
* +k8s:conversion-gen=false
* +optional
*
* Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be
* returned.
* +k8s:conversion-gen=false
* +optional
*
* Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be
* returned.
* +k8s:conversion-gen=false
* +optional
*
* 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
*
* 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
*
* 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.
* Acceptable values are: 'Orphan' - orphan the dependents; 'Background' -
* allow the garbage collector to delete the dependents in the background;
* 'Foreground' - a cascading policy that deletes all dependents in the
* foreground.
* +optional
*
* 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.
* Acceptable values are: 'Orphan' - orphan the dependents; 'Background' -
* allow the garbage collector to delete the dependents in the background;
* 'Foreground' - a cascading policy that deletes all dependents in the
* foreground.
* +optional
*
* 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.
* Acceptable values are: 'Orphan' - orphan the dependents; 'Background' -
* allow the garbage collector to delete the dependents in the background;
* 'Foreground' - a cascading policy that deletes all dependents in the
* foreground.
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* 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_ = "";
dryRun_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@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();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8:
{
bitField0_ |= 0x00000001;
gracePeriodSeconds_ = input.readInt64();
break;
}
case 18:
{
io.kubernetes.client.proto.Meta.Preconditions.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = preconditions_.toBuilder();
}
preconditions_ =
input.readMessage(
io.kubernetes.client.proto.Meta.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;
}
case 42:
{
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
dryRun_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000010;
}
dryRun_.add(bs);
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
dryRun_ = dryRun_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_DeleteOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_DeleteOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.DeleteOptions.class,
io.kubernetes.client.proto.Meta.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
*
* 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.Meta.Preconditions preconditions_;
/**
*
*
*
* Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be
* returned.
* +k8s:conversion-gen=false
* +optional
*
* Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be
* returned.
* +k8s:conversion-gen=false
* +optional
*
* Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be
* returned.
* +k8s:conversion-gen=false
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions preconditions = 2;
*/
public io.kubernetes.client.proto.Meta.PreconditionsOrBuilder getPreconditionsOrBuilder() {
return preconditions_ == null
? io.kubernetes.client.proto.Meta.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
*
* 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.
* Acceptable values are: 'Orphan' - orphan the dependents; 'Background' -
* allow the garbage collector to delete the dependents in the background;
* 'Foreground' - a cascading policy that deletes all dependents in the
* foreground.
* +optional
*
* 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.
* Acceptable values are: 'Orphan' - orphan the dependents; 'Background' -
* allow the garbage collector to delete the dependents in the background;
* 'Foreground' - a cascading policy that deletes all dependents in the
* foreground.
* +optional
*
* 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.
* Acceptable values are: 'Orphan' - orphan the dependents; 'Background' -
* allow the garbage collector to delete the dependents in the background;
* 'Foreground' - a cascading policy that deletes all dependents in the
* foreground.
* +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;
}
}
public static final int DRYRUN_FIELD_NUMBER = 5;
private com.google.protobuf.LazyStringList dryRun_;
/**
*
*
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
*
* repeated string dryRun = 5;
*/
public int getDryRunCount() {
return dryRun_.size();
}
/**
*
*
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
*
* repeated string dryRun = 5;
*/
public com.google.protobuf.ByteString getDryRunBytes(int index) {
return dryRun_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
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_);
}
for (int i = 0; i < dryRun_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, dryRun_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, 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_);
}
{
int dataSize = 0;
for (int i = 0; i < dryRun_.size(); i++) {
dataSize += computeStringSizeNoTag(dryRun_.getRaw(i));
}
size += dataSize;
size += 1 * getDryRunList().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.Meta.DeleteOptions)) {
return super.equals(obj);
}
io.kubernetes.client.proto.Meta.DeleteOptions other =
(io.kubernetes.client.proto.Meta.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 && getDryRunList().equals(other.getDryRunList());
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();
}
if (getDryRunCount() > 0) {
hash = (37 * hash) + DRYRUN_FIELD_NUMBER;
hash = (53 * hash) + getDryRunList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.Meta.DeleteOptions parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.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.Meta.DeleteOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.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.Meta.DeleteOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.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.Meta.DeleteOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.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.Meta.DeleteOptions parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.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.Meta.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.Meta.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);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.Meta.DeleteOptions prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* DeleteOptions may be provided when deleting an API object.
*
* 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
*
* 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
*
* 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
*
* Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be
* returned.
* +k8s:conversion-gen=false
* +optional
*
* Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be
* returned.
* +k8s:conversion-gen=false
* +optional
*
* Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be
* returned.
* +k8s:conversion-gen=false
* +optional
*
* Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be
* returned.
* +k8s:conversion-gen=false
* +optional
*
* Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be
* returned.
* +k8s:conversion-gen=false
* +optional
*
* Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be
* returned.
* +k8s:conversion-gen=false
* +optional
*
* Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be
* returned.
* +k8s:conversion-gen=false
* +optional
*
* Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be
* returned.
* +k8s:conversion-gen=false
* +optional
*
* Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be
* returned.
* +k8s:conversion-gen=false
* +optional
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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.
* Acceptable values are: 'Orphan' - orphan the dependents; 'Background' -
* allow the garbage collector to delete the dependents in the background;
* 'Foreground' - a cascading policy that deletes all dependents in the
* foreground.
* +optional
*
* 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.
* Acceptable values are: 'Orphan' - orphan the dependents; 'Background' -
* allow the garbage collector to delete the dependents in the background;
* 'Foreground' - a cascading policy that deletes all dependents in the
* foreground.
* +optional
*
* 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.
* Acceptable values are: 'Orphan' - orphan the dependents; 'Background' -
* allow the garbage collector to delete the dependents in the background;
* 'Foreground' - a cascading policy that deletes all dependents in the
* foreground.
* +optional
*
* 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.
* Acceptable values are: 'Orphan' - orphan the dependents; 'Background' -
* allow the garbage collector to delete the dependents in the background;
* 'Foreground' - a cascading policy that deletes all dependents in the
* foreground.
* +optional
*
* 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.
* Acceptable values are: 'Orphan' - orphan the dependents; 'Background' -
* allow the garbage collector to delete the dependents in the background;
* 'Foreground' - a cascading policy that deletes all dependents in the
* foreground.
* +optional
*
* 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.
* Acceptable values are: 'Orphan' - orphan the dependents; 'Background' -
* allow the garbage collector to delete the dependents in the background;
* 'Foreground' - a cascading policy that deletes all dependents in the
* foreground.
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
*
* repeated string dryRun = 5;
*/
public int getDryRunCount() {
return dryRun_.size();
}
/**
*
*
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
*
* repeated string dryRun = 5;
*/
public Builder addDryRunBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureDryRunIsMutable();
dryRun_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.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.Meta.DeleteOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.Meta.DeleteOptions();
}
public static io.kubernetes.client.proto.Meta.DeleteOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeleteOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeleteOptions(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.DeleteOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DurationOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.apimachinery.pkg.apis.meta.v1.Duration)
com.google.protobuf.MessageOrBuilder {
/** optional 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();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8:
{
bitField0_ |= 0x00000001;
duration_ = input.readInt64();
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_Duration_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_Duration_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.Duration.class,
io.kubernetes.client.proto.Meta.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;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt64(1, duration_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, 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.Meta.Duration)) {
return super.equals(obj);
}
io.kubernetes.client.proto.Meta.Duration other =
(io.kubernetes.client.proto.Meta.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.Meta.Duration parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.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.Meta.Duration parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.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.Meta.Duration parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.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.Meta.Duration parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.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.Meta.Duration parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.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.Meta.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.Meta.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);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.Meta.Duration prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* 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
implements
// @@protoc_insertion_point(builder_implements:k8s.io.apimachinery.pkg.apis.meta.v1.Duration)
io.kubernetes.client.proto.Meta.DurationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_Duration_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_Duration_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.Duration.class,
io.kubernetes.client.proto.Meta.Duration.Builder.class);
}
// Construct using io.kubernetes.client.proto.Meta.Duration.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
duration_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_Duration_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.Duration getDefaultInstanceForType() {
return io.kubernetes.client.proto.Meta.Duration.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.Duration build() {
io.kubernetes.client.proto.Meta.Duration result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.Duration buildPartial() {
io.kubernetes.client.proto.Meta.Duration result =
new io.kubernetes.client.proto.Meta.Duration(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.duration_ = duration_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.Meta.Duration) {
return mergeFrom((io.kubernetes.client.proto.Meta.Duration) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.Meta.Duration other) {
if (other == io.kubernetes.client.proto.Meta.Duration.getDefaultInstance()) return this;
if (other.hasDuration()) {
setDuration(other.getDuration());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.Meta.Duration parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.Meta.Duration) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long duration_;
/** 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;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.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.Meta.Duration DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.Meta.Duration();
}
public static io.kubernetes.client.proto.Meta.Duration getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Duration parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Duration(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.Duration getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FieldsV1OrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.apimachinery.pkg.apis.meta.v1.FieldsV1)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Raw is the underlying serialization of this object.
*
* FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.
* Each key is either a '.' representing the field itself, and will always map to an empty set,
* or a string representing a sub-field or item. The string will follow one of these four formats:
* 'f:<name>', where <name> is the name of a field in a struct, or key in a map
* 'v:<value>', where <value> is the exact json formatted value of a list item
* 'i:<index>', where <index> is position of a item in a list
* 'k:<keys>', where <keys> is a map of a list item's key fields to their unique values
* If a key maps to an empty Fields value, the field that key represents is part of the set.
* The exact format is defined in sigs.k8s.io/structured-merge-diff
* +protobuf.options.(gogoproto.goproto_stringer)=false
*
*
* Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.FieldsV1}
*/
public static final class FieldsV1 extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.FieldsV1)
FieldsV1OrBuilder {
private static final long serialVersionUID = 0L;
// Use FieldsV1.newBuilder() to construct.
private FieldsV1(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FieldsV1() {
raw_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private FieldsV1(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
bitField0_ |= 0x00000001;
raw_ = input.readBytes();
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_FieldsV1_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_FieldsV1_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.FieldsV1.class,
io.kubernetes.client.proto.Meta.FieldsV1.Builder.class);
}
private int bitField0_;
public static final int RAW_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString raw_;
/**
*
*
*
* Raw is the underlying serialization of this object.
*
* Raw is the underlying serialization of this object.
*
*
* optional bytes Raw = 1;
*/
public com.google.protobuf.ByteString getRaw() {
return raw_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, raw_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, raw_);
}
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.Meta.FieldsV1)) {
return super.equals(obj);
}
io.kubernetes.client.proto.Meta.FieldsV1 other =
(io.kubernetes.client.proto.Meta.FieldsV1) obj;
boolean result = true;
result = result && (hasRaw() == other.hasRaw());
if (hasRaw()) {
result = result && getRaw().equals(other.getRaw());
}
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 (hasRaw()) {
hash = (37 * hash) + RAW_FIELD_NUMBER;
hash = (53 * hash) + getRaw().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.Meta.FieldsV1 parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.FieldsV1 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.Meta.FieldsV1 parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.FieldsV1 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.Meta.FieldsV1 parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.FieldsV1 parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.FieldsV1 parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.FieldsV1 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.Meta.FieldsV1 parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.FieldsV1 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.Meta.FieldsV1 parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.FieldsV1 parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.Meta.FieldsV1 prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.
* Each key is either a '.' representing the field itself, and will always map to an empty set,
* or a string representing a sub-field or item. The string will follow one of these four formats:
* 'f:<name>', where <name> is the name of a field in a struct, or key in a map
* 'v:<value>', where <value> is the exact json formatted value of a list item
* 'i:<index>', where <index> is position of a item in a list
* 'k:<keys>', where <keys> is a map of a list item's key fields to their unique values
* If a key maps to an empty Fields value, the field that key represents is part of the set.
* The exact format is defined in sigs.k8s.io/structured-merge-diff
* +protobuf.options.(gogoproto.goproto_stringer)=false
*
*
* Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.FieldsV1}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.apimachinery.pkg.apis.meta.v1.FieldsV1)
io.kubernetes.client.proto.Meta.FieldsV1OrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_FieldsV1_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_FieldsV1_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.FieldsV1.class,
io.kubernetes.client.proto.Meta.FieldsV1.Builder.class);
}
// Construct using io.kubernetes.client.proto.Meta.FieldsV1.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
raw_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_FieldsV1_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.FieldsV1 getDefaultInstanceForType() {
return io.kubernetes.client.proto.Meta.FieldsV1.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.FieldsV1 build() {
io.kubernetes.client.proto.Meta.FieldsV1 result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.FieldsV1 buildPartial() {
io.kubernetes.client.proto.Meta.FieldsV1 result =
new io.kubernetes.client.proto.Meta.FieldsV1(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.raw_ = raw_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.Meta.FieldsV1) {
return mergeFrom((io.kubernetes.client.proto.Meta.FieldsV1) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.Meta.FieldsV1 other) {
if (other == io.kubernetes.client.proto.Meta.FieldsV1.getDefaultInstance()) return this;
if (other.hasRaw()) {
setRaw(other.getRaw());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.Meta.FieldsV1 parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.Meta.FieldsV1) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString raw_ = com.google.protobuf.ByteString.EMPTY;
/**
*
*
*
* Raw is the underlying serialization of this object.
*
* Raw is the underlying serialization of this object.
*
*
* optional bytes Raw = 1;
*/
public com.google.protobuf.ByteString getRaw() {
return raw_;
}
/**
*
*
*
* Raw is the underlying serialization of this object.
*
*
* optional bytes Raw = 1;
*/
public Builder setRaw(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
raw_ = value;
onChanged();
return this;
}
/**
*
*
*
* Raw is the underlying serialization of this object.
*
*
* optional bytes Raw = 1;
*/
public Builder clearRaw() {
bitField0_ = (bitField0_ & ~0x00000001);
raw_ = getDefaultInstance().getRaw();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.FieldsV1)
}
// @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.FieldsV1)
private static final io.kubernetes.client.proto.Meta.FieldsV1 DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.Meta.FieldsV1();
}
public static io.kubernetes.client.proto.Meta.FieldsV1 getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FieldsV1 parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FieldsV1(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.FieldsV1 getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetOptionsOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.apimachinery.pkg.apis.meta.v1.GetOptions)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* resourceVersion sets a constraint on what resource versions a request may be served from.
* See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for
* details.
* Defaults to unset
* +optional
*
* resourceVersion sets a constraint on what resource versions a request may be served from.
* See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for
* details.
* Defaults to unset
* +optional
*
* resourceVersion sets a constraint on what resource versions a request may be served from.
* See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for
* details.
* Defaults to unset
* +optional
*
* 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_ = "";
}
@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();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
resourceVersion_ = bs;
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GetOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GetOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.GetOptions.class,
io.kubernetes.client.proto.Meta.GetOptions.Builder.class);
}
private int bitField0_;
public static final int RESOURCEVERSION_FIELD_NUMBER = 1;
private volatile java.lang.Object resourceVersion_;
/**
*
*
*
* resourceVersion sets a constraint on what resource versions a request may be served from.
* See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for
* details.
* Defaults to unset
* +optional
*
* resourceVersion sets a constraint on what resource versions a request may be served from.
* See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for
* details.
* Defaults to unset
* +optional
*
* resourceVersion sets a constraint on what resource versions a request may be served from.
* See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for
* details.
* Defaults to unset
* +optional
*
*
* 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;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceVersion_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, 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.Meta.GetOptions)) {
return super.equals(obj);
}
io.kubernetes.client.proto.Meta.GetOptions other =
(io.kubernetes.client.proto.Meta.GetOptions) obj;
boolean result = true;
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 (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.Meta.GetOptions parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.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.Meta.GetOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.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.Meta.GetOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.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.Meta.GetOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.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.Meta.GetOptions parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.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.Meta.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.Meta.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);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.Meta.GetOptions prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* 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
implements
// @@protoc_insertion_point(builder_implements:k8s.io.apimachinery.pkg.apis.meta.v1.GetOptions)
io.kubernetes.client.proto.Meta.GetOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GetOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GetOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.GetOptions.class,
io.kubernetes.client.proto.Meta.GetOptions.Builder.class);
}
// Construct using io.kubernetes.client.proto.Meta.GetOptions.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
resourceVersion_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GetOptions_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GetOptions getDefaultInstanceForType() {
return io.kubernetes.client.proto.Meta.GetOptions.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GetOptions build() {
io.kubernetes.client.proto.Meta.GetOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GetOptions buildPartial() {
io.kubernetes.client.proto.Meta.GetOptions result =
new io.kubernetes.client.proto.Meta.GetOptions(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.resourceVersion_ = resourceVersion_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.Meta.GetOptions) {
return mergeFrom((io.kubernetes.client.proto.Meta.GetOptions) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.Meta.GetOptions other) {
if (other == io.kubernetes.client.proto.Meta.GetOptions.getDefaultInstance()) return this;
if (other.hasResourceVersion()) {
bitField0_ |= 0x00000001;
resourceVersion_ = other.resourceVersion_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.Meta.GetOptions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.Meta.GetOptions) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object resourceVersion_ = "";
/**
*
*
*
* resourceVersion sets a constraint on what resource versions a request may be served from.
* See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for
* details.
* Defaults to unset
* +optional
*
* resourceVersion sets a constraint on what resource versions a request may be served from.
* See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for
* details.
* Defaults to unset
* +optional
*
* resourceVersion sets a constraint on what resource versions a request may be served from.
* See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for
* details.
* Defaults to unset
* +optional
*
* resourceVersion sets a constraint on what resource versions a request may be served from.
* See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for
* details.
* Defaults to unset
* +optional
*
* resourceVersion sets a constraint on what resource versions a request may be served from.
* See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for
* details.
* Defaults to unset
* +optional
*
* resourceVersion sets a constraint on what resource versions a request may be served from.
* See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for
* details.
* Defaults to unset
* +optional
*
*
* 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;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.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.Meta.GetOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.Meta.GetOptions();
}
public static io.kubernetes.client.proto.Meta.GetOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetOptions(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GetOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GroupKindOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.apimachinery.pkg.apis.meta.v1.GroupKind)
com.google.protobuf.MessageOrBuilder {
/** optional 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();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
group_ = bs;
break;
}
case 18:
{
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
kind_ = bs;
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupKind_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupKind_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.GroupKind.class,
io.kubernetes.client.proto.Meta.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;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, group_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kind_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, 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.Meta.GroupKind)) {
return super.equals(obj);
}
io.kubernetes.client.proto.Meta.GroupKind other =
(io.kubernetes.client.proto.Meta.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.Meta.GroupKind parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.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.Meta.GroupKind parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.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.Meta.GroupKind parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.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.Meta.GroupKind parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.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.Meta.GroupKind parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.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.Meta.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.Meta.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);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.Meta.GroupKind prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* 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
implements
// @@protoc_insertion_point(builder_implements:k8s.io.apimachinery.pkg.apis.meta.v1.GroupKind)
io.kubernetes.client.proto.Meta.GroupKindOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupKind_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupKind_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.GroupKind.class,
io.kubernetes.client.proto.Meta.GroupKind.Builder.class);
}
// Construct using io.kubernetes.client.proto.Meta.GroupKind.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
group_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
kind_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupKind_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupKind getDefaultInstanceForType() {
return io.kubernetes.client.proto.Meta.GroupKind.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupKind build() {
io.kubernetes.client.proto.Meta.GroupKind result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupKind buildPartial() {
io.kubernetes.client.proto.Meta.GroupKind result =
new io.kubernetes.client.proto.Meta.GroupKind(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.group_ = group_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.kind_ = kind_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.Meta.GroupKind) {
return mergeFrom((io.kubernetes.client.proto.Meta.GroupKind) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.Meta.GroupKind other) {
if (other == io.kubernetes.client.proto.Meta.GroupKind.getDefaultInstance()) return this;
if (other.hasGroup()) {
bitField0_ |= 0x00000001;
group_ = other.group_;
onChanged();
}
if (other.hasKind()) {
bitField0_ |= 0x00000002;
kind_ = other.kind_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.Meta.GroupKind parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.Meta.GroupKind) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private 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)) {
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;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.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.Meta.GroupKind DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.Meta.GroupKind();
}
public static io.kubernetes.client.proto.Meta.GroupKind getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GroupKind parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GroupKind(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupKind getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GroupResourceOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.apimachinery.pkg.apis.meta.v1.GroupResource)
com.google.protobuf.MessageOrBuilder {
/** optional 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();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
group_ = bs;
break;
}
case 18:
{
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
resource_ = bs;
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupResource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupResource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.GroupResource.class,
io.kubernetes.client.proto.Meta.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;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, group_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resource_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, 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.Meta.GroupResource)) {
return super.equals(obj);
}
io.kubernetes.client.proto.Meta.GroupResource other =
(io.kubernetes.client.proto.Meta.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.Meta.GroupResource parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.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.Meta.GroupResource parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.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.Meta.GroupResource parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.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.Meta.GroupResource parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.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.Meta.GroupResource parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.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.Meta.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.Meta.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);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.Meta.GroupResource prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* 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
implements
// @@protoc_insertion_point(builder_implements:k8s.io.apimachinery.pkg.apis.meta.v1.GroupResource)
io.kubernetes.client.proto.Meta.GroupResourceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupResource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupResource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.GroupResource.class,
io.kubernetes.client.proto.Meta.GroupResource.Builder.class);
}
// Construct using io.kubernetes.client.proto.Meta.GroupResource.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
group_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
resource_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupResource_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupResource getDefaultInstanceForType() {
return io.kubernetes.client.proto.Meta.GroupResource.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupResource build() {
io.kubernetes.client.proto.Meta.GroupResource result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupResource buildPartial() {
io.kubernetes.client.proto.Meta.GroupResource result =
new io.kubernetes.client.proto.Meta.GroupResource(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.group_ = group_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.resource_ = resource_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.Meta.GroupResource) {
return mergeFrom((io.kubernetes.client.proto.Meta.GroupResource) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.Meta.GroupResource other) {
if (other == io.kubernetes.client.proto.Meta.GroupResource.getDefaultInstance())
return this;
if (other.hasGroup()) {
bitField0_ |= 0x00000001;
group_ = other.group_;
onChanged();
}
if (other.hasResource()) {
bitField0_ |= 0x00000002;
resource_ = other.resource_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.Meta.GroupResource parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.Meta.GroupResource) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private 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)) {
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;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.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.Meta.GroupResource DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.Meta.GroupResource();
}
public static io.kubernetes.client.proto.Meta.GroupResource getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GroupResource parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GroupResource(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupResource getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GroupVersionOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersion)
com.google.protobuf.MessageOrBuilder {
/** optional 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();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
group_ = bs;
break;
}
case 18:
{
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
version_ = bs;
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersion_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.GroupVersion.class,
io.kubernetes.client.proto.Meta.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;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, group_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, 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.Meta.GroupVersion)) {
return super.equals(obj);
}
io.kubernetes.client.proto.Meta.GroupVersion other =
(io.kubernetes.client.proto.Meta.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.Meta.GroupVersion parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.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.Meta.GroupVersion parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.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.Meta.GroupVersion parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.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.Meta.GroupVersion parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.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.Meta.GroupVersion parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.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.Meta.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.Meta.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);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.Meta.GroupVersion prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* 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
implements
// @@protoc_insertion_point(builder_implements:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersion)
io.kubernetes.client.proto.Meta.GroupVersionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersion_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.GroupVersion.class,
io.kubernetes.client.proto.Meta.GroupVersion.Builder.class);
}
// Construct using io.kubernetes.client.proto.Meta.GroupVersion.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
group_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
version_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersion_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupVersion getDefaultInstanceForType() {
return io.kubernetes.client.proto.Meta.GroupVersion.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupVersion build() {
io.kubernetes.client.proto.Meta.GroupVersion result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupVersion buildPartial() {
io.kubernetes.client.proto.Meta.GroupVersion result =
new io.kubernetes.client.proto.Meta.GroupVersion(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.group_ = group_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.version_ = version_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.Meta.GroupVersion) {
return mergeFrom((io.kubernetes.client.proto.Meta.GroupVersion) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.Meta.GroupVersion other) {
if (other == io.kubernetes.client.proto.Meta.GroupVersion.getDefaultInstance()) return this;
if (other.hasGroup()) {
bitField0_ |= 0x00000001;
group_ = other.group_;
onChanged();
}
if (other.hasVersion()) {
bitField0_ |= 0x00000002;
version_ = other.version_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.Meta.GroupVersion parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.Meta.GroupVersion) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private 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)) {
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;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.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.Meta.GroupVersion DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.Meta.GroupVersion();
}
public static io.kubernetes.client.proto.Meta.GroupVersion getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GroupVersion parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GroupVersion(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupVersion getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GroupVersionForDiscoveryOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* groupVersion specifies the API group and version in the form "group/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 Builder setVersionBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
version_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.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.Meta.GroupVersionForDiscovery DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.Meta.GroupVersionForDiscovery();
}
public static io.kubernetes.client.proto.Meta.GroupVersionForDiscovery getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GroupVersionForDiscovery parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GroupVersionForDiscovery(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupVersionForDiscovery getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GroupVersionKindOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind)
com.google.protobuf.MessageOrBuilder {
/** optional 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 coercion. 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();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
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;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersionKind_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersionKind_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.GroupVersionKind.class,
io.kubernetes.client.proto.Meta.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;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, 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);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, 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.Meta.GroupVersionKind)) {
return super.equals(obj);
}
io.kubernetes.client.proto.Meta.GroupVersionKind other =
(io.kubernetes.client.proto.Meta.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.Meta.GroupVersionKind parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.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.Meta.GroupVersionKind parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.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.Meta.GroupVersionKind parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.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.Meta.GroupVersionKind parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.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.Meta.GroupVersionKind parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.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.Meta.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.Meta.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);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.Meta.GroupVersionKind prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* GroupVersionKind unambiguously identifies a kind. It doesn't anonymously include GroupVersion
* to avoid automatic coercion. 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
implements
// @@protoc_insertion_point(builder_implements:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind)
io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersionKind_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersionKind_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.GroupVersionKind.class,
io.kubernetes.client.proto.Meta.GroupVersionKind.Builder.class);
}
// Construct using io.kubernetes.client.proto.Meta.GroupVersionKind.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
group_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
version_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
kind_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersionKind_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupVersionKind getDefaultInstanceForType() {
return io.kubernetes.client.proto.Meta.GroupVersionKind.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupVersionKind build() {
io.kubernetes.client.proto.Meta.GroupVersionKind result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupVersionKind buildPartial() {
io.kubernetes.client.proto.Meta.GroupVersionKind result =
new io.kubernetes.client.proto.Meta.GroupVersionKind(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.group_ = group_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.version_ = version_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.kind_ = kind_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.Meta.GroupVersionKind) {
return mergeFrom((io.kubernetes.client.proto.Meta.GroupVersionKind) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.Meta.GroupVersionKind other) {
if (other == io.kubernetes.client.proto.Meta.GroupVersionKind.getDefaultInstance())
return this;
if (other.hasGroup()) {
bitField0_ |= 0x00000001;
group_ = other.group_;
onChanged();
}
if (other.hasVersion()) {
bitField0_ |= 0x00000002;
version_ = other.version_;
onChanged();
}
if (other.hasKind()) {
bitField0_ |= 0x00000004;
kind_ = other.kind_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.Meta.GroupVersionKind parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.Meta.GroupVersionKind) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private 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)) {
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;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.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.Meta.GroupVersionKind DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.Meta.GroupVersionKind();
}
public static io.kubernetes.client.proto.Meta.GroupVersionKind getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GroupVersionKind parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GroupVersionKind(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupVersionKind getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GroupVersionResourceOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource)
com.google.protobuf.MessageOrBuilder {
/** optional 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 coercion. 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();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
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;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersionResource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersionResource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.GroupVersionResource.class,
io.kubernetes.client.proto.Meta.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;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, 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);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, 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.Meta.GroupVersionResource)) {
return super.equals(obj);
}
io.kubernetes.client.proto.Meta.GroupVersionResource other =
(io.kubernetes.client.proto.Meta.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.Meta.GroupVersionResource parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.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.Meta.GroupVersionResource parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.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.Meta.GroupVersionResource parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.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.Meta.GroupVersionResource parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.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.Meta.GroupVersionResource parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.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.Meta.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.Meta.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);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
io.kubernetes.client.proto.Meta.GroupVersionResource prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* GroupVersionResource unambiguously identifies a resource. It doesn't anonymously include GroupVersion
* to avoid automatic coercion. 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
implements
// @@protoc_insertion_point(builder_implements:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource)
io.kubernetes.client.proto.Meta.GroupVersionResourceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersionResource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersionResource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.GroupVersionResource.class,
io.kubernetes.client.proto.Meta.GroupVersionResource.Builder.class);
}
// Construct using io.kubernetes.client.proto.Meta.GroupVersionResource.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
group_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
version_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
resource_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.Meta
.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersionResource_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupVersionResource getDefaultInstanceForType() {
return io.kubernetes.client.proto.Meta.GroupVersionResource.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupVersionResource build() {
io.kubernetes.client.proto.Meta.GroupVersionResource result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupVersionResource buildPartial() {
io.kubernetes.client.proto.Meta.GroupVersionResource result =
new io.kubernetes.client.proto.Meta.GroupVersionResource(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.group_ = group_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.version_ = version_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.resource_ = resource_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.Meta.GroupVersionResource) {
return mergeFrom((io.kubernetes.client.proto.Meta.GroupVersionResource) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.Meta.GroupVersionResource other) {
if (other == io.kubernetes.client.proto.Meta.GroupVersionResource.getDefaultInstance())
return this;
if (other.hasGroup()) {
bitField0_ |= 0x00000001;
group_ = other.group_;
onChanged();
}
if (other.hasVersion()) {
bitField0_ |= 0x00000002;
version_ = other.version_;
onChanged();
}
if (other.hasResource()) {
bitField0_ |= 0x00000004;
resource_ = other.resource_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.Meta.GroupVersionResource parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.Meta.GroupVersionResource) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private 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)) {
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;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.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.Meta.GroupVersionResource DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.Meta.GroupVersionResource();
}
public static io.kubernetes.client.proto.Meta.GroupVersionResource getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GroupVersionResource parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GroupVersionResource(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupVersionResource getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LabelSelectorOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*