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.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto
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.
*
* 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.
*
* 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.
*
* 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 = 4;
*/
public int getServerAddressByClientCIDRsCount() {
return serverAddressByClientCIDRs_.size();
}
/**
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
*
*
* repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
*/
public io.kubernetes.client.proto.Meta.ServerAddressByClientCIDROrBuilder getServerAddressByClientCIDRsOrBuilder(
int index) {
return serverAddressByClientCIDRs_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
for (int i = 0; i < versions_.size(); i++) {
output.writeMessage(2, versions_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(3, getPreferredVersion());
}
for (int i = 0; i < serverAddressByClientCIDRs_.size(); i++) {
output.writeMessage(4, serverAddressByClientCIDRs_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
for (int i = 0; i < versions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, versions_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getPreferredVersion());
}
for (int i = 0; i < serverAddressByClientCIDRs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, serverAddressByClientCIDRs_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.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);
}
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);
}
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.
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
*
*
* repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
*/
public int getServerAddressByClientCIDRsCount() {
if (serverAddressByClientCIDRsBuilder_ == null) {
return serverAddressByClientCIDRs_.size();
} else {
return serverAddressByClientCIDRsBuilder_.getCount();
}
}
/**
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
*
*
* repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
*/
public Builder setServerAddressByClientCIDRs(
int index, io.kubernetes.client.proto.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.
*
*
* repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
*/
public Builder addServerAddressByClientCIDRs(io.kubernetes.client.proto.Meta.ServerAddressByClientCIDR value) {
if (serverAddressByClientCIDRsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServerAddressByClientCIDRsIsMutable();
serverAddressByClientCIDRs_.add(value);
onChanged();
} else {
serverAddressByClientCIDRsBuilder_.addMessage(value);
}
return this;
}
/**
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
*
*
* repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
*/
public Builder addServerAddressByClientCIDRs(
int index, io.kubernetes.client.proto.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.
*
*
* repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
*/
public io.kubernetes.client.proto.Meta.ServerAddressByClientCIDR.Builder getServerAddressByClientCIDRsBuilder(
int index) {
return getServerAddressByClientCIDRsFieldBuilder().getBuilder(index);
}
/**
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
*
*
* repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
*/
public io.kubernetes.client.proto.Meta.ServerAddressByClientCIDROrBuilder getServerAddressByClientCIDRsOrBuilder(
int index) {
if (serverAddressByClientCIDRsBuilder_ == null) {
return serverAddressByClientCIDRs_.get(index); } else {
return serverAddressByClientCIDRsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
*
* 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 = 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_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.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() {
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;
}
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.
*
*
* optional string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
*
* name is the plural name of the resource.
*
*
* optional string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SINGULARNAME_FIELD_NUMBER = 6;
private volatile java.lang.Object singularName_;
/**
*
* singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely.
* The singularName is more correct for reporting status on a single item and both singular and plural are allowed
* from the kubectl CLI interface.
*
* 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.
*
*
* optional string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
private java.lang.Object singularName_ = "";
/**
*
* singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely.
* The singularName is more correct for reporting status on a single item and both singular and plural are allowed
* from the kubectl CLI interface.
*
* 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.
*
* APIResourceList is a list of APIResource, it is used to expose the name of the
* resources supported in a specific group and version, and if the resource
* is namespaced.
*
*
* Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.APIResourceList}
*/
public static final class APIResourceList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.APIResourceList)
APIResourceListOrBuilder {
private static final long serialVersionUID = 0L;
// Use APIResourceList.newBuilder() to construct.
private APIResourceList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private APIResourceList() {
groupVersion_ = "";
resources_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private APIResourceList(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
groupVersion_ = bs;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
resources_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
resources_.add(
input.readMessage(io.kubernetes.client.proto.Meta.APIResource.PARSER, extensionRegistry));
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;
}
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;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, groupVersion_);
}
for (int i = 0; i < resources_.size(); i++) {
output.writeMessage(2, resources_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, groupVersion_);
}
for (int i = 0; i < resources_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, resources_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.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);
}
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);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* APIResourceList is a list of APIResource, it is used to expose the name of the
* resources supported in a specific group and version, and if the resource
* is namespaced.
*
*
* Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.APIResourceList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.apimachinery.pkg.apis.meta.v1.APIResourceList)
io.kubernetes.client.proto.Meta.APIResourceListOrBuilder {
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;
}
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);
}
// Construct using io.kubernetes.client.proto.Meta.APIResourceList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getResourcesFieldBuilder();
}
}
public Builder clear() {
super.clear();
groupVersion_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (resourcesBuilder_ == null) {
resources_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
resourcesBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_APIResourceList_descriptor;
}
public io.kubernetes.client.proto.Meta.APIResourceList getDefaultInstanceForType() {
return io.kubernetes.client.proto.Meta.APIResourceList.getDefaultInstance();
}
public io.kubernetes.client.proto.Meta.APIResourceList build() {
io.kubernetes.client.proto.Meta.APIResourceList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.kubernetes.client.proto.Meta.APIResourceList buildPartial() {
io.kubernetes.client.proto.Meta.APIResourceList result = new io.kubernetes.client.proto.Meta.APIResourceList(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.groupVersion_ = groupVersion_;
if (resourcesBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
resources_ = java.util.Collections.unmodifiableList(resources_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.resources_ = resources_;
} else {
result.resources_ = resourcesBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.Meta.APIResourceList) {
return mergeFrom((io.kubernetes.client.proto.Meta.APIResourceList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.Meta.APIResourceList other) {
if (other == io.kubernetes.client.proto.Meta.APIResourceList.getDefaultInstance()) return this;
if (other.hasGroupVersion()) {
bitField0_ |= 0x00000001;
groupVersion_ = other.groupVersion_;
onChanged();
}
if (resourcesBuilder_ == null) {
if (!other.resources_.isEmpty()) {
if (resources_.isEmpty()) {
resources_ = other.resources_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureResourcesIsMutable();
resources_.addAll(other.resources_);
}
onChanged();
}
} else {
if (!other.resources_.isEmpty()) {
if (resourcesBuilder_.isEmpty()) {
resourcesBuilder_.dispose();
resourcesBuilder_ = null;
resources_ = other.resources_;
bitField0_ = (bitField0_ & ~0x00000002);
resourcesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getResourcesFieldBuilder() : null;
} else {
resourcesBuilder_.addAllMessages(other.resources_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.Meta.APIResourceList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.Meta.APIResourceList) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object groupVersion_ = "";
/**
*
* groupVersion is the group and version this APIResourceList is for.
*
* 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();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
versions_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
versions_.add(bs);
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
serverAddressByClientCIDRs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
serverAddressByClientCIDRs_.add(
input.readMessage(io.kubernetes.client.proto.Meta.ServerAddressByClientCIDR.PARSER, extensionRegistry));
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;
}
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.
*
*
* repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
*/
public int getServerAddressByClientCIDRsCount() {
return serverAddressByClientCIDRs_.size();
}
/**
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
*
* 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;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < versions_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, versions_.getRaw(i));
}
for (int i = 0; i < serverAddressByClientCIDRs_.size(); i++) {
output.writeMessage(2, serverAddressByClientCIDRs_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < versions_.size(); i++) {
dataSize += computeStringSizeNoTag(versions_.getRaw(i));
}
size += dataSize;
size += 1 * getVersionsList().size();
}
for (int i = 0; i < serverAddressByClientCIDRs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, serverAddressByClientCIDRs_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.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);
}
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);
}
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.
*
*
* repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
*/
public int getServerAddressByClientCIDRsCount() {
if (serverAddressByClientCIDRsBuilder_ == null) {
return serverAddressByClientCIDRs_.size();
} else {
return serverAddressByClientCIDRsBuilder_.getCount();
}
}
/**
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
*
* 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.
*
*
* repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
*/
public Builder addServerAddressByClientCIDRs(io.kubernetes.client.proto.Meta.ServerAddressByClientCIDR value) {
if (serverAddressByClientCIDRsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServerAddressByClientCIDRsIsMutable();
serverAddressByClientCIDRs_.add(value);
onChanged();
} else {
serverAddressByClientCIDRsBuilder_.addMessage(value);
}
return this;
}
/**
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
*
*
* repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
*/
public Builder addServerAddressByClientCIDRs(
int index, io.kubernetes.client.proto.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.
*
*
* repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
*/
public io.kubernetes.client.proto.Meta.ServerAddressByClientCIDR.Builder getServerAddressByClientCIDRsBuilder(
int index) {
return getServerAddressByClientCIDRsFieldBuilder().getBuilder(index);
}
/**
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
*
*
* repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
*/
public io.kubernetes.client.proto.Meta.ServerAddressByClientCIDROrBuilder getServerAddressByClientCIDRsOrBuilder(
int index) {
if (serverAddressByClientCIDRsBuilder_ == null) {
return serverAddressByClientCIDRs_.get(index); } else {
return serverAddressByClientCIDRsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
*
* 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_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.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() {
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;
}
public io.kubernetes.client.proto.Meta.APIVersions 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
*
* 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.
* +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.
* +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.
* +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_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeleteOptions(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
gracePeriodSeconds_ = input.readInt64();
break;
}
case 18: {
io.kubernetes.client.proto.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;
}
}
}
} 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_DeleteOptions_descriptor;
}
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.
* +optional
*
* Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be
* returned.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions preconditions = 2;
*/
public io.kubernetes.client.proto.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.
* +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.
* +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.
* +optional
*
*
* optional string propagationPolicy = 4;
*/
public com.google.protobuf.ByteString
getPropagationPolicyBytes() {
java.lang.Object ref = propagationPolicy_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
propagationPolicy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt64(1, gracePeriodSeconds_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getPreconditions());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBool(3, orphanDependents_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, propagationPolicy_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, gracePeriodSeconds_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPreconditions());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, orphanDependents_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, propagationPolicy_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.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 && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasGracePeriodSeconds()) {
hash = (37 * hash) + GRACEPERIODSECONDS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getGracePeriodSeconds());
}
if (hasPreconditions()) {
hash = (37 * hash) + PRECONDITIONS_FIELD_NUMBER;
hash = (53 * hash) + getPreconditions().hashCode();
}
if (hasOrphanDependents()) {
hash = (37 * hash) + ORPHANDEPENDENTS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getOrphanDependents());
}
if (hasPropagationPolicy()) {
hash = (37 * hash) + PROPAGATIONPOLICY_FIELD_NUMBER;
hash = (53 * hash) + getPropagationPolicy().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.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);
}
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);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* DeleteOptions may be provided when deleting an API object.
*
*
* Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions)
io.kubernetes.client.proto.Meta.DeleteOptionsOrBuilder {
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;
}
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);
}
// Construct using io.kubernetes.client.proto.Meta.DeleteOptions.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPreconditionsFieldBuilder();
}
}
public Builder clear() {
super.clear();
gracePeriodSeconds_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
if (preconditionsBuilder_ == null) {
preconditions_ = null;
} else {
preconditionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
orphanDependents_ = false;
bitField0_ = (bitField0_ & ~0x00000004);
propagationPolicy_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_DeleteOptions_descriptor;
}
public io.kubernetes.client.proto.Meta.DeleteOptions getDefaultInstanceForType() {
return io.kubernetes.client.proto.Meta.DeleteOptions.getDefaultInstance();
}
public io.kubernetes.client.proto.Meta.DeleteOptions build() {
io.kubernetes.client.proto.Meta.DeleteOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.kubernetes.client.proto.Meta.DeleteOptions buildPartial() {
io.kubernetes.client.proto.Meta.DeleteOptions result = new io.kubernetes.client.proto.Meta.DeleteOptions(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.gracePeriodSeconds_ = gracePeriodSeconds_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (preconditionsBuilder_ == null) {
result.preconditions_ = preconditions_;
} else {
result.preconditions_ = preconditionsBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.orphanDependents_ = orphanDependents_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.propagationPolicy_ = propagationPolicy_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.Meta.DeleteOptions) {
return mergeFrom((io.kubernetes.client.proto.Meta.DeleteOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.Meta.DeleteOptions other) {
if (other == io.kubernetes.client.proto.Meta.DeleteOptions.getDefaultInstance()) return this;
if (other.hasGracePeriodSeconds()) {
setGracePeriodSeconds(other.getGracePeriodSeconds());
}
if (other.hasPreconditions()) {
mergePreconditions(other.getPreconditions());
}
if (other.hasOrphanDependents()) {
setOrphanDependents(other.getOrphanDependents());
}
if (other.hasPropagationPolicy()) {
bitField0_ |= 0x00000008;
propagationPolicy_ = other.propagationPolicy_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.Meta.DeleteOptions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.Meta.DeleteOptions) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
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_;
}
/**
*
* 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
*
* 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.
* +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.
* +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.
* +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.
* +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.
* +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.
* +optional
*
*
* optional string propagationPolicy = 4;
*/
public Builder setPropagationPolicyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
propagationPolicy_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions)
}
// @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions)
private static final io.kubernetes.client.proto.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() {
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;
}
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();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
duration_ = input.readInt64();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_Duration_descriptor;
}
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;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt64(1, duration_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, duration_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.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);
}
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);
}
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;
}
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) {
}
}
public Builder clear() {
super.clear();
duration_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_Duration_descriptor;
}
public io.kubernetes.client.proto.Meta.Duration getDefaultInstanceForType() {
return io.kubernetes.client.proto.Meta.Duration.getDefaultInstance();
}
public io.kubernetes.client.proto.Meta.Duration build() {
io.kubernetes.client.proto.Meta.Duration result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
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;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
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;
}
public final boolean isInitialized() {
return true;
}
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;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.Duration)
}
// @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.Duration)
private static final io.kubernetes.client.proto.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() {
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;
}
public io.kubernetes.client.proto.Meta.Duration getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExportOptionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.apimachinery.pkg.apis.meta.v1.ExportOptions)
com.google.protobuf.MessageOrBuilder {
/**
*
* Should this value be exported. Export strips fields that a user can not specify.
*
* Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'.
*
*
* optional bool exact = 2;
*/
public Builder clearExact() {
bitField0_ = (bitField0_ & ~0x00000002);
exact_ = false;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.ExportOptions)
}
// @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.ExportOptions)
private static final io.kubernetes.client.proto.Meta.ExportOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.Meta.ExportOptions();
}
public static io.kubernetes.client.proto.Meta.ExportOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ExportOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExportOptions(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.kubernetes.client.proto.Meta.ExportOptions 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 {
/**
*
* When specified:
* - if unset, then the result is returned from remote storage based on quorum-read flag;
* - if it's 0, then we simply return what we currently have in cache, no guarantee;
* - if set to non zero, then the result is at least as fresh as given rv.
*
* When specified:
* - if unset, then the result is returned from remote storage based on quorum-read flag;
* - if it's 0, then we simply return what we currently have in cache, no guarantee;
* - if set to non zero, then the result is at least as fresh as given rv.
*
* When specified:
* - if unset, then the result is returned from remote storage based on quorum-read flag;
* - if it's 0, then we simply return what we currently have in cache, no guarantee;
* - if set to non zero, then the result is at least as fresh as given rv.
*
* GetOptions is the standard query options to the standard REST get call.
*
*
* Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.GetOptions}
*/
public static final class GetOptions extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.GetOptions)
GetOptionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetOptions.newBuilder() to construct.
private GetOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetOptions() {
resourceVersion_ = "";
includeUninitialized_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetOptions(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
resourceVersion_ = bs;
break;
}
case 16: {
bitField0_ |= 0x00000002;
includeUninitialized_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GetOptions_descriptor;
}
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_;
/**
*
* When specified:
* - if unset, then the result is returned from remote storage based on quorum-read flag;
* - if it's 0, then we simply return what we currently have in cache, no guarantee;
* - if set to non zero, then the result is at least as fresh as given rv.
*
* When specified:
* - if unset, then the result is returned from remote storage based on quorum-read flag;
* - if it's 0, then we simply return what we currently have in cache, no guarantee;
* - if set to non zero, then the result is at least as fresh as given rv.
*
* When specified:
* - if unset, then the result is returned from remote storage based on quorum-read flag;
* - if it's 0, then we simply return what we currently have in cache, no guarantee;
* - if set to non zero, then the result is at least as fresh as given rv.
*
*
* optional string resourceVersion = 1;
*/
public com.google.protobuf.ByteString
getResourceVersionBytes() {
java.lang.Object ref = resourceVersion_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INCLUDEUNINITIALIZED_FIELD_NUMBER = 2;
private boolean includeUninitialized_;
/**
*
* If true, partially initialized resources are included in the response.
* +optional
*
* If true, partially initialized resources are included in the response.
* +optional
*
*
* optional bool includeUninitialized = 2;
*/
public boolean getIncludeUninitialized() {
return includeUninitialized_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceVersion_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBool(2, includeUninitialized_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceVersion_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, includeUninitialized_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.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 && (hasIncludeUninitialized() == other.hasIncludeUninitialized());
if (hasIncludeUninitialized()) {
result = result && (getIncludeUninitialized()
== other.getIncludeUninitialized());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasResourceVersion()) {
hash = (37 * hash) + RESOURCEVERSION_FIELD_NUMBER;
hash = (53 * hash) + getResourceVersion().hashCode();
}
if (hasIncludeUninitialized()) {
hash = (37 * hash) + INCLUDEUNINITIALIZED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIncludeUninitialized());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.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);
}
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);
}
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;
}
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) {
}
}
public Builder clear() {
super.clear();
resourceVersion_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
includeUninitialized_ = false;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GetOptions_descriptor;
}
public io.kubernetes.client.proto.Meta.GetOptions getDefaultInstanceForType() {
return io.kubernetes.client.proto.Meta.GetOptions.getDefaultInstance();
}
public io.kubernetes.client.proto.Meta.GetOptions build() {
io.kubernetes.client.proto.Meta.GetOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
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_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.includeUninitialized_ = includeUninitialized_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
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();
}
if (other.hasIncludeUninitialized()) {
setIncludeUninitialized(other.getIncludeUninitialized());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
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_ = "";
/**
*
* When specified:
* - if unset, then the result is returned from remote storage based on quorum-read flag;
* - if it's 0, then we simply return what we currently have in cache, no guarantee;
* - if set to non zero, then the result is at least as fresh as given rv.
*
* When specified:
* - if unset, then the result is returned from remote storage based on quorum-read flag;
* - if it's 0, then we simply return what we currently have in cache, no guarantee;
* - if set to non zero, then the result is at least as fresh as given rv.
*
* When specified:
* - if unset, then the result is returned from remote storage based on quorum-read flag;
* - if it's 0, then we simply return what we currently have in cache, no guarantee;
* - if set to non zero, then the result is at least as fresh as given rv.
*
* When specified:
* - if unset, then the result is returned from remote storage based on quorum-read flag;
* - if it's 0, then we simply return what we currently have in cache, no guarantee;
* - if set to non zero, then the result is at least as fresh as given rv.
*
* When specified:
* - if unset, then the result is returned from remote storage based on quorum-read flag;
* - if it's 0, then we simply return what we currently have in cache, no guarantee;
* - if set to non zero, then the result is at least as fresh as given rv.
*
* When specified:
* - if unset, then the result is returned from remote storage based on quorum-read flag;
* - if it's 0, then we simply return what we currently have in cache, no guarantee;
* - if set to non zero, then the result is at least as fresh as given rv.
*
* If true, partially initialized resources are included in the response.
* +optional
*
*
* optional bool includeUninitialized = 2;
*/
public Builder clearIncludeUninitialized() {
bitField0_ = (bitField0_ & ~0x00000002);
includeUninitialized_ = false;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GetOptions)
}
// @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GetOptions)
private static final io.kubernetes.client.proto.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() {
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;
}
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();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
group_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
kind_ = bs;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupKind_descriptor;
}
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;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, group_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kind_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, group_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kind_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.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);
}
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);
}
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;
}
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) {
}
}
public Builder clear() {
super.clear();
group_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
kind_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupKind_descriptor;
}
public io.kubernetes.client.proto.Meta.GroupKind getDefaultInstanceForType() {
return io.kubernetes.client.proto.Meta.GroupKind.getDefaultInstance();
}
public io.kubernetes.client.proto.Meta.GroupKind build() {
io.kubernetes.client.proto.Meta.GroupKind result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
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;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
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;
}
public final boolean isInitialized() {
return true;
}
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;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GroupKind)
}
// @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GroupKind)
private static final io.kubernetes.client.proto.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() {
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;
}
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();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
group_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
resource_ = bs;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupResource_descriptor;
}
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;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, group_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resource_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, group_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resource_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.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);
}
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);
}
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;
}
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) {
}
}
public Builder clear() {
super.clear();
group_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
resource_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupResource_descriptor;
}
public io.kubernetes.client.proto.Meta.GroupResource getDefaultInstanceForType() {
return io.kubernetes.client.proto.Meta.GroupResource.getDefaultInstance();
}
public io.kubernetes.client.proto.Meta.GroupResource build() {
io.kubernetes.client.proto.Meta.GroupResource result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
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;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
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;
}
public final boolean isInitialized() {
return true;
}
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;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GroupResource)
}
// @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GroupResource)
private static final io.kubernetes.client.proto.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() {
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;
}
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();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
group_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
version_ = bs;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersion_descriptor;
}
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;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, group_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, group_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.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);
}
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);
}
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;
}
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) {
}
}
public Builder clear() {
super.clear();
group_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
version_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersion_descriptor;
}
public io.kubernetes.client.proto.Meta.GroupVersion getDefaultInstanceForType() {
return io.kubernetes.client.proto.Meta.GroupVersion.getDefaultInstance();
}
public io.kubernetes.client.proto.Meta.GroupVersion build() {
io.kubernetes.client.proto.Meta.GroupVersion result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
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;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
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;
}
public final boolean isInitialized() {
return true;
}
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;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersion)
}
// @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersion)
private static final io.kubernetes.client.proto.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() {
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;
}
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;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery)
}
// @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery)
private static final io.kubernetes.client.proto.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() {
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;
}
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 coersion. It doesn't use a GroupVersion to avoid custom marshalling
*
* +protobuf.options.(gogoproto.goproto_stringer)=false
*
*
* Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind}
*/
public static final class GroupVersionKind extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind)
GroupVersionKindOrBuilder {
private static final long serialVersionUID = 0L;
// Use GroupVersionKind.newBuilder() to construct.
private GroupVersionKind(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GroupVersionKind() {
group_ = "";
version_ = "";
kind_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GroupVersionKind(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
group_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
version_ = bs;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
kind_ = bs;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersionKind_descriptor;
}
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;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, group_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, kind_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, group_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, kind_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.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);
}
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);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* GroupVersionKind unambiguously identifies a kind. It doesn't anonymously include GroupVersion
* to avoid automatic coersion. It doesn't use a GroupVersion to avoid custom marshalling
*
* +protobuf.options.(gogoproto.goproto_stringer)=false
*
*
* Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder 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;
}
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) {
}
}
public Builder clear() {
super.clear();
group_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
version_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
kind_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersionKind_descriptor;
}
public io.kubernetes.client.proto.Meta.GroupVersionKind getDefaultInstanceForType() {
return io.kubernetes.client.proto.Meta.GroupVersionKind.getDefaultInstance();
}
public io.kubernetes.client.proto.Meta.GroupVersionKind build() {
io.kubernetes.client.proto.Meta.GroupVersionKind result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
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;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
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;
}
public final boolean isInitialized() {
return true;
}
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;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind)
}
// @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind)
private static final io.kubernetes.client.proto.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() {
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;
}
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 coersion. It doesn't use a GroupVersion to avoid custom marshalling
*
* +protobuf.options.(gogoproto.goproto_stringer)=false
*
*
* Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource}
*/
public static final class GroupVersionResource extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource)
GroupVersionResourceOrBuilder {
private static final long serialVersionUID = 0L;
// Use GroupVersionResource.newBuilder() to construct.
private GroupVersionResource(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GroupVersionResource() {
group_ = "";
version_ = "";
resource_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GroupVersionResource(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
group_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
version_ = bs;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
resource_ = bs;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersionResource_descriptor;
}
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;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, group_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, resource_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, group_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resource_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.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);
}
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);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* GroupVersionResource unambiguously identifies a resource. It doesn't anonymously include GroupVersion
* to avoid automatic coersion. It doesn't use a GroupVersion to avoid custom marshalling
*
* +protobuf.options.(gogoproto.goproto_stringer)=false
*
*
* Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder 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;
}
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) {
}
}
public Builder clear() {
super.clear();
group_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
version_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
resource_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersionResource_descriptor;
}
public io.kubernetes.client.proto.Meta.GroupVersionResource getDefaultInstanceForType() {
return io.kubernetes.client.proto.Meta.GroupVersionResource.getDefaultInstance();
}
public io.kubernetes.client.proto.Meta.GroupVersionResource build() {
io.kubernetes.client.proto.Meta.GroupVersionResource result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
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;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
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;
}
public final boolean isInitialized() {
return true;
}
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;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource)
}
// @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource)
private static final io.kubernetes.client.proto.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() {
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;
}
public io.kubernetes.client.proto.Meta.GroupVersionResource getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface InitializerOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.apimachinery.pkg.apis.meta.v1.Initializer)
com.google.protobuf.MessageOrBuilder {
/**
*
* name of the process that is responsible for initializing this object.
*
* name of the process that is responsible for initializing this object.
*
*
* optional string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.Initializer)
}
// @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.Initializer)
private static final io.kubernetes.client.proto.Meta.Initializer DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.Meta.Initializer();
}
public static io.kubernetes.client.proto.Meta.Initializer getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Initializer parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Initializer(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.kubernetes.client.proto.Meta.Initializer getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface InitializersOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.apimachinery.pkg.apis.meta.v1.Initializers)
com.google.protobuf.MessageOrBuilder {
/**
*
* Pending is a list of initializers that must execute in order before this object is visible.
* When the last pending initializer is removed, and no failing result is set, the initializers
* struct will be set to nil and the object is considered as initialized and visible to all
* clients.
*
* Pending is a list of initializers that must execute in order before this object is visible.
* When the last pending initializer is removed, and no failing result is set, the initializers
* struct will be set to nil and the object is considered as initialized and visible to all
* clients.
*
* Pending is a list of initializers that must execute in order before this object is visible.
* When the last pending initializer is removed, and no failing result is set, the initializers
* struct will be set to nil and the object is considered as initialized and visible to all
* clients.
*
* Pending is a list of initializers that must execute in order before this object is visible.
* When the last pending initializer is removed, and no failing result is set, the initializers
* struct will be set to nil and the object is considered as initialized and visible to all
* clients.
*
* Pending is a list of initializers that must execute in order before this object is visible.
* When the last pending initializer is removed, and no failing result is set, the initializers
* struct will be set to nil and the object is considered as initialized and visible to all
* clients.
*
* If result is set with the Failure field, the object will be persisted to storage and then deleted,
* ensuring that other clients can observe the deletion.
*
* If result is set with the Failure field, the object will be persisted to storage and then deleted,
* ensuring that other clients can observe the deletion.
*
* If result is set with the Failure field, the object will be persisted to storage and then deleted,
* ensuring that other clients can observe the deletion.
*
* Initializers tracks the progress of initialization.
*
*
* Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.Initializers}
*/
public static final class Initializers extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.Initializers)
InitializersOrBuilder {
private static final long serialVersionUID = 0L;
// Use Initializers.newBuilder() to construct.
private Initializers(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Initializers() {
pending_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Initializers(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
pending_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
pending_.add(
input.readMessage(io.kubernetes.client.proto.Meta.Initializer.PARSER, extensionRegistry));
break;
}
case 18: {
io.kubernetes.client.proto.Meta.Status.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = result_.toBuilder();
}
result_ = input.readMessage(io.kubernetes.client.proto.Meta.Status.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(result_);
result_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
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)) {
pending_ = java.util.Collections.unmodifiableList(pending_);
}
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_Initializers_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_Initializers_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.Initializers.class, io.kubernetes.client.proto.Meta.Initializers.Builder.class);
}
private int bitField0_;
public static final int PENDING_FIELD_NUMBER = 1;
private java.util.List pending_;
/**
*
* Pending is a list of initializers that must execute in order before this object is visible.
* When the last pending initializer is removed, and no failing result is set, the initializers
* struct will be set to nil and the object is considered as initialized and visible to all
* clients.
*
* Pending is a list of initializers that must execute in order before this object is visible.
* When the last pending initializer is removed, and no failing result is set, the initializers
* struct will be set to nil and the object is considered as initialized and visible to all
* clients.
*
* Pending is a list of initializers that must execute in order before this object is visible.
* When the last pending initializer is removed, and no failing result is set, the initializers
* struct will be set to nil and the object is considered as initialized and visible to all
* clients.
*
*
* repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Initializer pending = 1;
*/
public int getPendingCount() {
return pending_.size();
}
/**
*
* Pending is a list of initializers that must execute in order before this object is visible.
* When the last pending initializer is removed, and no failing result is set, the initializers
* struct will be set to nil and the object is considered as initialized and visible to all
* clients.
*
* Pending is a list of initializers that must execute in order before this object is visible.
* When the last pending initializer is removed, and no failing result is set, the initializers
* struct will be set to nil and the object is considered as initialized and visible to all
* clients.
*
*
* repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Initializer pending = 1;
*/
public io.kubernetes.client.proto.Meta.InitializerOrBuilder getPendingOrBuilder(
int index) {
return pending_.get(index);
}
public static final int RESULT_FIELD_NUMBER = 2;
private io.kubernetes.client.proto.Meta.Status result_;
/**
*
* If result is set with the Failure field, the object will be persisted to storage and then deleted,
* ensuring that other clients can observe the deletion.
*
* If result is set with the Failure field, the object will be persisted to storage and then deleted,
* ensuring that other clients can observe the deletion.
*
* If result is set with the Failure field, the object will be persisted to storage and then deleted,
* ensuring that other clients can observe the deletion.
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Status result = 2;
*/
public io.kubernetes.client.proto.Meta.StatusOrBuilder getResultOrBuilder() {
return result_ == null ? io.kubernetes.client.proto.Meta.Status.getDefaultInstance() : result_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < pending_.size(); i++) {
output.writeMessage(1, pending_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(2, getResult());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < pending_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, pending_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getResult());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.Meta.Initializers)) {
return super.equals(obj);
}
io.kubernetes.client.proto.Meta.Initializers other = (io.kubernetes.client.proto.Meta.Initializers) obj;
boolean result = true;
result = result && getPendingList()
.equals(other.getPendingList());
result = result && (hasResult() == other.hasResult());
if (hasResult()) {
result = result && getResult()
.equals(other.getResult());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getPendingCount() > 0) {
hash = (37 * hash) + PENDING_FIELD_NUMBER;
hash = (53 * hash) + getPendingList().hashCode();
}
if (hasResult()) {
hash = (37 * hash) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + getResult().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.Meta.Initializers parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.Initializers parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.Initializers parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.Initializers parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.Initializers parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.Initializers parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.Initializers parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.Initializers parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.Initializers parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.Initializers parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.Initializers parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.Initializers parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.Meta.Initializers prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Initializers tracks the progress of initialization.
*
*
* Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.Initializers}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.apimachinery.pkg.apis.meta.v1.Initializers)
io.kubernetes.client.proto.Meta.InitializersOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_Initializers_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_Initializers_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.Initializers.class, io.kubernetes.client.proto.Meta.Initializers.Builder.class);
}
// Construct using io.kubernetes.client.proto.Meta.Initializers.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPendingFieldBuilder();
getResultFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (pendingBuilder_ == null) {
pending_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
pendingBuilder_.clear();
}
if (resultBuilder_ == null) {
result_ = null;
} else {
resultBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_Initializers_descriptor;
}
public io.kubernetes.client.proto.Meta.Initializers getDefaultInstanceForType() {
return io.kubernetes.client.proto.Meta.Initializers.getDefaultInstance();
}
public io.kubernetes.client.proto.Meta.Initializers build() {
io.kubernetes.client.proto.Meta.Initializers result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.kubernetes.client.proto.Meta.Initializers buildPartial() {
io.kubernetes.client.proto.Meta.Initializers result = new io.kubernetes.client.proto.Meta.Initializers(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (pendingBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
pending_ = java.util.Collections.unmodifiableList(pending_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.pending_ = pending_;
} else {
result.pending_ = pendingBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000001;
}
if (resultBuilder_ == null) {
result.result_ = result_;
} else {
result.result_ = resultBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.Meta.Initializers) {
return mergeFrom((io.kubernetes.client.proto.Meta.Initializers)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.Meta.Initializers other) {
if (other == io.kubernetes.client.proto.Meta.Initializers.getDefaultInstance()) return this;
if (pendingBuilder_ == null) {
if (!other.pending_.isEmpty()) {
if (pending_.isEmpty()) {
pending_ = other.pending_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensurePendingIsMutable();
pending_.addAll(other.pending_);
}
onChanged();
}
} else {
if (!other.pending_.isEmpty()) {
if (pendingBuilder_.isEmpty()) {
pendingBuilder_.dispose();
pendingBuilder_ = null;
pending_ = other.pending_;
bitField0_ = (bitField0_ & ~0x00000001);
pendingBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPendingFieldBuilder() : null;
} else {
pendingBuilder_.addAllMessages(other.pending_);
}
}
}
if (other.hasResult()) {
mergeResult(other.getResult());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.Meta.Initializers parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.Meta.Initializers) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List pending_ =
java.util.Collections.emptyList();
private void ensurePendingIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
pending_ = new java.util.ArrayList(pending_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.Meta.Initializer, io.kubernetes.client.proto.Meta.Initializer.Builder, io.kubernetes.client.proto.Meta.InitializerOrBuilder> pendingBuilder_;
/**
*
* Pending is a list of initializers that must execute in order before this object is visible.
* When the last pending initializer is removed, and no failing result is set, the initializers
* struct will be set to nil and the object is considered as initialized and visible to all
* clients.
*
* Pending is a list of initializers that must execute in order before this object is visible.
* When the last pending initializer is removed, and no failing result is set, the initializers
* struct will be set to nil and the object is considered as initialized and visible to all
* clients.
*
*
* repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Initializer pending = 1;
*/
public int getPendingCount() {
if (pendingBuilder_ == null) {
return pending_.size();
} else {
return pendingBuilder_.getCount();
}
}
/**
*
* Pending is a list of initializers that must execute in order before this object is visible.
* When the last pending initializer is removed, and no failing result is set, the initializers
* struct will be set to nil and the object is considered as initialized and visible to all
* clients.
*
* Pending is a list of initializers that must execute in order before this object is visible.
* When the last pending initializer is removed, and no failing result is set, the initializers
* struct will be set to nil and the object is considered as initialized and visible to all
* clients.
*
*
* repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Initializer pending = 1;
*/
public Builder setPending(
int index, io.kubernetes.client.proto.Meta.Initializer value) {
if (pendingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePendingIsMutable();
pending_.set(index, value);
onChanged();
} else {
pendingBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Pending is a list of initializers that must execute in order before this object is visible.
* When the last pending initializer is removed, and no failing result is set, the initializers
* struct will be set to nil and the object is considered as initialized and visible to all
* clients.
*
* Pending is a list of initializers that must execute in order before this object is visible.
* When the last pending initializer is removed, and no failing result is set, the initializers
* struct will be set to nil and the object is considered as initialized and visible to all
* clients.
*
*
* repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Initializer pending = 1;
*/
public Builder addPending(io.kubernetes.client.proto.Meta.Initializer value) {
if (pendingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePendingIsMutable();
pending_.add(value);
onChanged();
} else {
pendingBuilder_.addMessage(value);
}
return this;
}
/**
*
* Pending is a list of initializers that must execute in order before this object is visible.
* When the last pending initializer is removed, and no failing result is set, the initializers
* struct will be set to nil and the object is considered as initialized and visible to all
* clients.
*
*
* repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Initializer pending = 1;
*/
public Builder addPending(
int index, io.kubernetes.client.proto.Meta.Initializer value) {
if (pendingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePendingIsMutable();
pending_.add(index, value);
onChanged();
} else {
pendingBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Pending is a list of initializers that must execute in order before this object is visible.
* When the last pending initializer is removed, and no failing result is set, the initializers
* struct will be set to nil and the object is considered as initialized and visible to all
* clients.
*
* Pending is a list of initializers that must execute in order before this object is visible.
* When the last pending initializer is removed, and no failing result is set, the initializers
* struct will be set to nil and the object is considered as initialized and visible to all
* clients.
*
* Pending is a list of initializers that must execute in order before this object is visible.
* When the last pending initializer is removed, and no failing result is set, the initializers
* struct will be set to nil and the object is considered as initialized and visible to all
* clients.
*
* Pending is a list of initializers that must execute in order before this object is visible.
* When the last pending initializer is removed, and no failing result is set, the initializers
* struct will be set to nil and the object is considered as initialized and visible to all
* clients.
*
* Pending is a list of initializers that must execute in order before this object is visible.
* When the last pending initializer is removed, and no failing result is set, the initializers
* struct will be set to nil and the object is considered as initialized and visible to all
* clients.
*
* Pending is a list of initializers that must execute in order before this object is visible.
* When the last pending initializer is removed, and no failing result is set, the initializers
* struct will be set to nil and the object is considered as initialized and visible to all
* clients.
*
*
* repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Initializer pending = 1;
*/
public io.kubernetes.client.proto.Meta.Initializer.Builder getPendingBuilder(
int index) {
return getPendingFieldBuilder().getBuilder(index);
}
/**
*
* Pending is a list of initializers that must execute in order before this object is visible.
* When the last pending initializer is removed, and no failing result is set, the initializers
* struct will be set to nil and the object is considered as initialized and visible to all
* clients.
*
*
* repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Initializer pending = 1;
*/
public io.kubernetes.client.proto.Meta.InitializerOrBuilder getPendingOrBuilder(
int index) {
if (pendingBuilder_ == null) {
return pending_.get(index); } else {
return pendingBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Pending is a list of initializers that must execute in order before this object is visible.
* When the last pending initializer is removed, and no failing result is set, the initializers
* struct will be set to nil and the object is considered as initialized and visible to all
* clients.
*
* Pending is a list of initializers that must execute in order before this object is visible.
* When the last pending initializer is removed, and no failing result is set, the initializers
* struct will be set to nil and the object is considered as initialized and visible to all
* clients.
*
* Pending is a list of initializers that must execute in order before this object is visible.
* When the last pending initializer is removed, and no failing result is set, the initializers
* struct will be set to nil and the object is considered as initialized and visible to all
* clients.
*
* Pending is a list of initializers that must execute in order before this object is visible.
* When the last pending initializer is removed, and no failing result is set, the initializers
* struct will be set to nil and the object is considered as initialized and visible to all
* clients.
*
* If result is set with the Failure field, the object will be persisted to storage and then deleted,
* ensuring that other clients can observe the deletion.
*
* If result is set with the Failure field, the object will be persisted to storage and then deleted,
* ensuring that other clients can observe the deletion.
*
* If result is set with the Failure field, the object will be persisted to storage and then deleted,
* ensuring that other clients can observe the deletion.
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Status result = 2;
*/
public Builder setResult(io.kubernetes.client.proto.Meta.Status value) {
if (resultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
result_ = value;
onChanged();
} else {
resultBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
* If result is set with the Failure field, the object will be persisted to storage and then deleted,
* ensuring that other clients can observe the deletion.
*
* If result is set with the Failure field, the object will be persisted to storage and then deleted,
* ensuring that other clients can observe the deletion.
*
* If result is set with the Failure field, the object will be persisted to storage and then deleted,
* ensuring that other clients can observe the deletion.
*
* If result is set with the Failure field, the object will be persisted to storage and then deleted,
* ensuring that other clients can observe the deletion.
*
* If result is set with the Failure field, the object will be persisted to storage and then deleted,
* ensuring that other clients can observe the deletion.
*
* If result is set with the Failure field, the object will be persisted to storage and then deleted,
* ensuring that other clients can observe the deletion.
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.Status result = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.Status, io.kubernetes.client.proto.Meta.Status.Builder, io.kubernetes.client.proto.Meta.StatusOrBuilder>
getResultFieldBuilder() {
if (resultBuilder_ == null) {
resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.Status, io.kubernetes.client.proto.Meta.Status.Builder, io.kubernetes.client.proto.Meta.StatusOrBuilder>(
getResult(),
getParentForChildren(),
isClean());
result_ = null;
}
return resultBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.Initializers)
}
// @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.Initializers)
private static final io.kubernetes.client.proto.Meta.Initializers DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.Meta.Initializers();
}
public static io.kubernetes.client.proto.Meta.Initializers getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Initializers parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Initializers(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.kubernetes.client.proto.Meta.Initializers 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
*