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.
* +optional
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
* +optional
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
* +optional
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
* +optional
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
* +optional
*
* preferredVersion is the version preferred by the API server, which
* probably is the storage version.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery preferredVersion = 3;
*/
public io.kubernetes.client.proto.Meta.GroupVersionForDiscoveryOrBuilder getPreferredVersionOrBuilder() {
return preferredVersion_ == null ? io.kubernetes.client.proto.Meta.GroupVersionForDiscovery.getDefaultInstance() : preferredVersion_;
}
public static final int SERVERADDRESSBYCLIENTCIDRS_FIELD_NUMBER = 4;
private java.util.List serverAddressByClientCIDRs_;
/**
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
* +optional
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
* +optional
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
* +optional
*
*
* 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.
* +optional
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
* +optional
*
*
* repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
*/
public io.kubernetes.client.proto.Meta.ServerAddressByClientCIDROrBuilder getServerAddressByClientCIDRsOrBuilder(
int index) {
return serverAddressByClientCIDRs_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
for (int i = 0; i < versions_.size(); i++) {
output.writeMessage(2, versions_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(3, getPreferredVersion());
}
for (int i = 0; i < serverAddressByClientCIDRs_.size(); i++) {
output.writeMessage(4, serverAddressByClientCIDRs_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
for (int i = 0; i < versions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, versions_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getPreferredVersion());
}
for (int i = 0; i < serverAddressByClientCIDRs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, serverAddressByClientCIDRs_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.Meta.APIGroup)) {
return super.equals(obj);
}
io.kubernetes.client.proto.Meta.APIGroup other = (io.kubernetes.client.proto.Meta.APIGroup) obj;
boolean result = true;
result = result && (hasName() == other.hasName());
if (hasName()) {
result = result && getName()
.equals(other.getName());
}
result = result && getVersionsList()
.equals(other.getVersionsList());
result = result && (hasPreferredVersion() == other.hasPreferredVersion());
if (hasPreferredVersion()) {
result = result && getPreferredVersion()
.equals(other.getPreferredVersion());
}
result = result && getServerAddressByClientCIDRsList()
.equals(other.getServerAddressByClientCIDRsList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (getVersionsCount() > 0) {
hash = (37 * hash) + VERSIONS_FIELD_NUMBER;
hash = (53 * hash) + getVersionsList().hashCode();
}
if (hasPreferredVersion()) {
hash = (37 * hash) + PREFERREDVERSION_FIELD_NUMBER;
hash = (53 * hash) + getPreferredVersion().hashCode();
}
if (getServerAddressByClientCIDRsCount() > 0) {
hash = (37 * hash) + SERVERADDRESSBYCLIENTCIDRS_FIELD_NUMBER;
hash = (53 * hash) + getServerAddressByClientCIDRsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.Meta.APIGroup parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.APIGroup parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.APIGroup parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.APIGroup parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.APIGroup parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.APIGroup parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.APIGroup parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.APIGroup parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.APIGroup parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.APIGroup parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.APIGroup parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.APIGroup parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.Meta.APIGroup prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* APIGroup contains the name, the supported versions, and the preferred version
* of a group.
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
* +optional
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
* +optional
*
*
* 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.
* +optional
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
* +optional
*
*
* repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
*/
public Builder setServerAddressByClientCIDRs(
int index, io.kubernetes.client.proto.Meta.ServerAddressByClientCIDR value) {
if (serverAddressByClientCIDRsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServerAddressByClientCIDRsIsMutable();
serverAddressByClientCIDRs_.set(index, value);
onChanged();
} else {
serverAddressByClientCIDRsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
* +optional
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
* +optional
*
*
* 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.
* +optional
*
*
* repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
*/
public Builder addServerAddressByClientCIDRs(
int index, io.kubernetes.client.proto.Meta.ServerAddressByClientCIDR value) {
if (serverAddressByClientCIDRsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServerAddressByClientCIDRsIsMutable();
serverAddressByClientCIDRs_.add(index, value);
onChanged();
} else {
serverAddressByClientCIDRsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
* +optional
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
* +optional
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
* +optional
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
* +optional
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
* +optional
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
* +optional
*
*
* 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.
* +optional
*
*
* 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.
* +optional
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
* +optional
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
* +optional
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
* +optional
*
*
* repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
*/
public java.util.List
getServerAddressByClientCIDRsBuilderList() {
return getServerAddressByClientCIDRsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.Meta.ServerAddressByClientCIDR, io.kubernetes.client.proto.Meta.ServerAddressByClientCIDR.Builder, io.kubernetes.client.proto.Meta.ServerAddressByClientCIDROrBuilder>
getServerAddressByClientCIDRsFieldBuilder() {
if (serverAddressByClientCIDRsBuilder_ == null) {
serverAddressByClientCIDRsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.Meta.ServerAddressByClientCIDR, io.kubernetes.client.proto.Meta.ServerAddressByClientCIDR.Builder, io.kubernetes.client.proto.Meta.ServerAddressByClientCIDROrBuilder>(
serverAddressByClientCIDRs_,
((bitField0_ & 0x00000008) == 0x00000008),
getParentForChildren(),
isClean());
serverAddressByClientCIDRs_ = null;
}
return serverAddressByClientCIDRsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup)
}
// @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup)
private static final io.kubernetes.client.proto.Meta.APIGroup DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.Meta.APIGroup();
}
public static io.kubernetes.client.proto.Meta.APIGroup getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public APIGroup parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new APIGroup(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.APIGroup getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface APIGroupListOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.apimachinery.pkg.apis.meta.v1.APIGroupList)
com.google.protobuf.MessageOrBuilder {
/**
*
* singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely.
* The singularName is more correct for reporting status on a single item and both singular and plural are allowed
* from the kubectl CLI interface.
*
* singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely.
* The singularName is more correct for reporting status on a single item and both singular and plural are allowed
* from the kubectl CLI interface.
*
* singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely.
* The singularName is more correct for reporting status on a single item and both singular and plural are allowed
* from the kubectl CLI interface.
*
* group is the preferred group of the resource. Empty implies the group of the containing resource list.
* For subresources, this may have a different value, for example: Scale".
*
* group is the preferred group of the resource. Empty implies the group of the containing resource list.
* For subresources, this may have a different value, for example: Scale".
*
* group is the preferred group of the resource. Empty implies the group of the containing resource list.
* For subresources, this may have a different value, for example: Scale".
*
* version is the preferred version of the resource. Empty implies the version of the containing resource list
* For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
*
* version is the preferred version of the resource. Empty implies the version of the containing resource list
* For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
*
* version is the preferred version of the resource. Empty implies the version of the containing resource list
* For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
*
* The hash value of the storage version, the version this resource is
* converted to when written to the data store. Value must be treated
* as opaque by clients. Only equality comparison on the value is valid.
* This is an alpha feature and may change or be removed in the future.
* The field is populated by the apiserver only if the
* StorageVersionHash feature gate is enabled.
* This field will remain optional even if it graduates.
* +optional
*
* The hash value of the storage version, the version this resource is
* converted to when written to the data store. Value must be treated
* as opaque by clients. Only equality comparison on the value is valid.
* This is an alpha feature and may change or be removed in the future.
* The field is populated by the apiserver only if the
* StorageVersionHash feature gate is enabled.
* This field will remain optional even if it graduates.
* +optional
*
* The hash value of the storage version, the version this resource is
* converted to when written to the data store. Value must be treated
* as opaque by clients. Only equality comparison on the value is valid.
* This is an alpha feature and may change or be removed in the future.
* The field is populated by the apiserver only if the
* StorageVersionHash feature gate is enabled.
* This field will remain optional even if it graduates.
* +optional
*
*
* optional string name = 1;
*/
public 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.
*
* namespaced indicates if a resource is namespaced or not.
*
*
* optional bool namespaced = 2;
*/
public boolean getNamespaced() {
return namespaced_;
}
public static final int GROUP_FIELD_NUMBER = 8;
private volatile java.lang.Object group_;
/**
*
* group is the preferred group of the resource. Empty implies the group of the containing resource list.
* For subresources, this may have a different value, for example: Scale".
*
* group is the preferred group of the resource. Empty implies the group of the containing resource list.
* For subresources, this may have a different value, for example: Scale".
*
*
* optional string group = 8;
*/
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;
}
}
/**
*
* group is the preferred group of the resource. Empty implies the group of the containing resource list.
* For subresources, this may have a different value, for example: Scale".
*
*
* optional string group = 8;
*/
public com.google.protobuf.ByteString
getGroupBytes() {
java.lang.Object ref = group_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
group_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VERSION_FIELD_NUMBER = 9;
private volatile java.lang.Object version_;
/**
*
* version is the preferred version of the resource. Empty implies the version of the containing resource list
* For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
*
* version is the preferred version of the resource. Empty implies the version of the containing resource list
* For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
*
*
* optional string version = 9;
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
version_ = s;
}
return s;
}
}
/**
*
* version is the preferred version of the resource. Empty implies the version of the containing resource list
* For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
*
*
* optional string version = 9;
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int KIND_FIELD_NUMBER = 3;
private volatile java.lang.Object kind_;
/**
*
* kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')
*
* categories is a list of the grouped resources this resource belongs to (e.g. 'all')
*
*
* repeated string categories = 7;
*/
public com.google.protobuf.ByteString
getCategoriesBytes(int index) {
return categories_.getByteString(index);
}
public static final int STORAGEVERSIONHASH_FIELD_NUMBER = 10;
private volatile java.lang.Object storageVersionHash_;
/**
*
* The hash value of the storage version, the version this resource is
* converted to when written to the data store. Value must be treated
* as opaque by clients. Only equality comparison on the value is valid.
* This is an alpha feature and may change or be removed in the future.
* The field is populated by the apiserver only if the
* StorageVersionHash feature gate is enabled.
* This field will remain optional even if it graduates.
* +optional
*
* The hash value of the storage version, the version this resource is
* converted to when written to the data store. Value must be treated
* as opaque by clients. Only equality comparison on the value is valid.
* This is an alpha feature and may change or be removed in the future.
* The field is populated by the apiserver only if the
* StorageVersionHash feature gate is enabled.
* This field will remain optional even if it graduates.
* +optional
*
* The hash value of the storage version, the version this resource is
* converted to when written to the data store. Value must be treated
* as opaque by clients. Only equality comparison on the value is valid.
* This is an alpha feature and may change or be removed in the future.
* The field is populated by the apiserver only if the
* StorageVersionHash feature gate is enabled.
* This field will remain optional even if it graduates.
* +optional
*
*
* optional string storageVersionHash = 10;
*/
public com.google.protobuf.ByteString
getStorageVersionHashBytes() {
java.lang.Object ref = storageVersionHash_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
storageVersionHash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBool(2, namespaced_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, kind_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeMessage(4, getVerbs());
}
for (int i = 0; i < shortNames_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, shortNames_.getRaw(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, singularName_);
}
for (int i = 0; i < categories_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, categories_.getRaw(i));
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, group_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, version_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, storageVersionHash_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, namespaced_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, kind_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getVerbs());
}
{
int dataSize = 0;
for (int i = 0; i < shortNames_.size(); i++) {
dataSize += computeStringSizeNoTag(shortNames_.getRaw(i));
}
size += dataSize;
size += 1 * getShortNamesList().size();
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, singularName_);
}
{
int dataSize = 0;
for (int i = 0; i < categories_.size(); i++) {
dataSize += computeStringSizeNoTag(categories_.getRaw(i));
}
size += dataSize;
size += 1 * getCategoriesList().size();
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, group_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, version_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, storageVersionHash_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.Meta.APIResource)) {
return super.equals(obj);
}
io.kubernetes.client.proto.Meta.APIResource other = (io.kubernetes.client.proto.Meta.APIResource) obj;
boolean result = true;
result = result && (hasName() == other.hasName());
if (hasName()) {
result = result && getName()
.equals(other.getName());
}
result = result && (hasSingularName() == other.hasSingularName());
if (hasSingularName()) {
result = result && getSingularName()
.equals(other.getSingularName());
}
result = result && (hasNamespaced() == other.hasNamespaced());
if (hasNamespaced()) {
result = result && (getNamespaced()
== other.getNamespaced());
}
result = result && (hasGroup() == other.hasGroup());
if (hasGroup()) {
result = result && getGroup()
.equals(other.getGroup());
}
result = result && (hasVersion() == other.hasVersion());
if (hasVersion()) {
result = result && getVersion()
.equals(other.getVersion());
}
result = result && (hasKind() == other.hasKind());
if (hasKind()) {
result = result && getKind()
.equals(other.getKind());
}
result = result && (hasVerbs() == other.hasVerbs());
if (hasVerbs()) {
result = result && getVerbs()
.equals(other.getVerbs());
}
result = result && getShortNamesList()
.equals(other.getShortNamesList());
result = result && getCategoriesList()
.equals(other.getCategoriesList());
result = result && (hasStorageVersionHash() == other.hasStorageVersionHash());
if (hasStorageVersionHash()) {
result = result && getStorageVersionHash()
.equals(other.getStorageVersionHash());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasSingularName()) {
hash = (37 * hash) + SINGULARNAME_FIELD_NUMBER;
hash = (53 * hash) + getSingularName().hashCode();
}
if (hasNamespaced()) {
hash = (37 * hash) + NAMESPACED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getNamespaced());
}
if (hasGroup()) {
hash = (37 * hash) + GROUP_FIELD_NUMBER;
hash = (53 * hash) + getGroup().hashCode();
}
if (hasVersion()) {
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion().hashCode();
}
if (hasKind()) {
hash = (37 * hash) + KIND_FIELD_NUMBER;
hash = (53 * hash) + getKind().hashCode();
}
if (hasVerbs()) {
hash = (37 * hash) + VERBS_FIELD_NUMBER;
hash = (53 * hash) + getVerbs().hashCode();
}
if (getShortNamesCount() > 0) {
hash = (37 * hash) + SHORTNAMES_FIELD_NUMBER;
hash = (53 * hash) + getShortNamesList().hashCode();
}
if (getCategoriesCount() > 0) {
hash = (37 * hash) + CATEGORIES_FIELD_NUMBER;
hash = (53 * hash) + getCategoriesList().hashCode();
}
if (hasStorageVersionHash()) {
hash = (37 * hash) + STORAGEVERSIONHASH_FIELD_NUMBER;
hash = (53 * hash) + getStorageVersionHash().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.Meta.APIResource parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.APIResource parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.APIResource parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.APIResource parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.APIResource parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.APIResource parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.APIResource parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.APIResource parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.APIResource parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.APIResource parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.APIResource parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.APIResource parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.Meta.APIResource prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* APIResource specifies the name of a resource and whether it is namespaced.
*
*
* 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.
*
* group is the preferred group of the resource. Empty implies the group of the containing resource list.
* For subresources, this may have a different value, for example: Scale".
*
* group is the preferred group of the resource. Empty implies the group of the containing resource list.
* For subresources, this may have a different value, for example: Scale".
*
*
* optional string group = 8;
*/
public 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;
}
}
/**
*
* group is the preferred group of the resource. Empty implies the group of the containing resource list.
* For subresources, this may have a different value, for example: Scale".
*
* group is the preferred group of the resource. Empty implies the group of the containing resource list.
* For subresources, this may have a different value, for example: Scale".
*
*
* optional string group = 8;
*/
public Builder setGroup(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
group_ = value;
onChanged();
return this;
}
/**
*
* group is the preferred group of the resource. Empty implies the group of the containing resource list.
* For subresources, this may have a different value, for example: Scale".
*
* group is the preferred group of the resource. Empty implies the group of the containing resource list.
* For subresources, this may have a different value, for example: Scale".
*
*
* optional string group = 8;
*/
public Builder setGroupBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
group_ = value;
onChanged();
return this;
}
private java.lang.Object version_ = "";
/**
*
* version is the preferred version of the resource. Empty implies the version of the containing resource list
* For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
*
* version is the preferred version of the resource. Empty implies the version of the containing resource list
* For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
*
*
* optional string version = 9;
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
version_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* version is the preferred version of the resource. Empty implies the version of the containing resource list
* For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
*
* version is the preferred version of the resource. Empty implies the version of the containing resource list
* For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
*
*
* optional string version = 9;
*/
public Builder setVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
version_ = value;
onChanged();
return this;
}
/**
*
* version is the preferred version of the resource. Empty implies the version of the containing resource list
* For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
*
* version is the preferred version of the resource. Empty implies the version of the containing resource list
* For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
*
*
* optional string version = 9;
*/
public Builder setVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
version_ = value;
onChanged();
return this;
}
private java.lang.Object kind_ = "";
/**
*
* kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')
*
* The hash value of the storage version, the version this resource is
* converted to when written to the data store. Value must be treated
* as opaque by clients. Only equality comparison on the value is valid.
* This is an alpha feature and may change or be removed in the future.
* The field is populated by the apiserver only if the
* StorageVersionHash feature gate is enabled.
* This field will remain optional even if it graduates.
* +optional
*
* The hash value of the storage version, the version this resource is
* converted to when written to the data store. Value must be treated
* as opaque by clients. Only equality comparison on the value is valid.
* This is an alpha feature and may change or be removed in the future.
* The field is populated by the apiserver only if the
* StorageVersionHash feature gate is enabled.
* This field will remain optional even if it graduates.
* +optional
*
* The hash value of the storage version, the version this resource is
* converted to when written to the data store. Value must be treated
* as opaque by clients. Only equality comparison on the value is valid.
* This is an alpha feature and may change or be removed in the future.
* The field is populated by the apiserver only if the
* StorageVersionHash feature gate is enabled.
* This field will remain optional even if it graduates.
* +optional
*
* The hash value of the storage version, the version this resource is
* converted to when written to the data store. Value must be treated
* as opaque by clients. Only equality comparison on the value is valid.
* This is an alpha feature and may change or be removed in the future.
* The field is populated by the apiserver only if the
* StorageVersionHash feature gate is enabled.
* This field will remain optional even if it graduates.
* +optional
*
* The hash value of the storage version, the version this resource is
* converted to when written to the data store. Value must be treated
* as opaque by clients. Only equality comparison on the value is valid.
* This is an alpha feature and may change or be removed in the future.
* The field is populated by the apiserver only if the
* StorageVersionHash feature gate is enabled.
* This field will remain optional even if it graduates.
* +optional
*
* The hash value of the storage version, the version this resource is
* converted to when written to the data store. Value must be treated
* as opaque by clients. Only equality comparison on the value is valid.
* This is an alpha feature and may change or be removed in the future.
* The field is populated by the apiserver only if the
* StorageVersionHash feature gate is enabled.
* This field will remain optional even if it graduates.
* +optional
*
*
* optional string storageVersionHash = 10;
*/
public Builder setStorageVersionHashBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
storageVersionHash_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.APIResource)
}
// @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.APIResource)
private static final io.kubernetes.client.proto.Meta.APIResource DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.Meta.APIResource();
}
public static io.kubernetes.client.proto.Meta.APIResource getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public APIResource parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new APIResource(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.APIResource getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface APIResourceListOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.apimachinery.pkg.apis.meta.v1.APIResourceList)
com.google.protobuf.MessageOrBuilder {
/**
*
* groupVersion is the group and version this APIResourceList is for.
*
* APIResourceList is a list of APIResource, it is used to expose the name of the
* resources supported in a specific group and version, and if the resource
* is namespaced.
*
*
* Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.APIResourceList}
*/
public static final class APIResourceList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.APIResourceList)
APIResourceListOrBuilder {
private static final long serialVersionUID = 0L;
// Use APIResourceList.newBuilder() to construct.
private APIResourceList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private APIResourceList() {
groupVersion_ = "";
resources_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private APIResourceList(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
groupVersion_ = bs;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
resources_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
resources_.add(
input.readMessage(io.kubernetes.client.proto.Meta.APIResource.PARSER, extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
resources_ = java.util.Collections.unmodifiableList(resources_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_APIResourceList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_APIResourceList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.APIResourceList.class, io.kubernetes.client.proto.Meta.APIResourceList.Builder.class);
}
private int bitField0_;
public static final int GROUPVERSION_FIELD_NUMBER = 1;
private volatile java.lang.Object groupVersion_;
/**
*
* groupVersion is the group and version this APIResourceList is for.
*
* resources contains the name of the resources and if they are namespaced.
*
*
* repeated .k8s.io.apimachinery.pkg.apis.meta.v1.APIResource resources = 2;
*/
public io.kubernetes.client.proto.Meta.APIResourceOrBuilder getResourcesOrBuilder(
int index) {
return resources_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, groupVersion_);
}
for (int i = 0; i < resources_.size(); i++) {
output.writeMessage(2, resources_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, groupVersion_);
}
for (int i = 0; i < resources_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, resources_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.Meta.APIResourceList)) {
return super.equals(obj);
}
io.kubernetes.client.proto.Meta.APIResourceList other = (io.kubernetes.client.proto.Meta.APIResourceList) obj;
boolean result = true;
result = result && (hasGroupVersion() == other.hasGroupVersion());
if (hasGroupVersion()) {
result = result && getGroupVersion()
.equals(other.getGroupVersion());
}
result = result && getResourcesList()
.equals(other.getResourcesList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasGroupVersion()) {
hash = (37 * hash) + GROUPVERSION_FIELD_NUMBER;
hash = (53 * hash) + getGroupVersion().hashCode();
}
if (getResourcesCount() > 0) {
hash = (37 * hash) + RESOURCES_FIELD_NUMBER;
hash = (53 * hash) + getResourcesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.Meta.APIResourceList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.APIResourceList parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.APIResourceList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.APIResourceList parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.APIResourceList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.APIResourceList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.APIResourceList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.APIResourceList parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.APIResourceList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.APIResourceList parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.APIResourceList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.APIResourceList parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.Meta.APIResourceList prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* APIResourceList is a list of APIResource, it is used to expose the name of the
* resources supported in a specific group and version, and if the resource
* is namespaced.
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
*
* APIVersions lists the versions that are available, to allow clients to
* discover the API at /api, which is the root path of the legacy v1 API.
* +protobuf.options.(gogoproto.goproto_stringer)=false
* +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
*
*
* Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.APIVersions}
*/
public static final class APIVersions extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.APIVersions)
APIVersionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use APIVersions.newBuilder() to construct.
private APIVersions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private APIVersions() {
versions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
serverAddressByClientCIDRs_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private APIVersions(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
versions_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
versions_.add(bs);
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
serverAddressByClientCIDRs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
serverAddressByClientCIDRs_.add(
input.readMessage(io.kubernetes.client.proto.Meta.ServerAddressByClientCIDR.PARSER, extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
versions_ = versions_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
serverAddressByClientCIDRs_ = java.util.Collections.unmodifiableList(serverAddressByClientCIDRs_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_APIVersions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_APIVersions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.APIVersions.class, io.kubernetes.client.proto.Meta.APIVersions.Builder.class);
}
public static final int VERSIONS_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList versions_;
/**
*
* versions are the api versions that are available.
*
* versions are the api versions that are available.
*
*
* repeated string versions = 1;
*/
public com.google.protobuf.ByteString
getVersionsBytes(int index) {
return versions_.getByteString(index);
}
public static final int SERVERADDRESSBYCLIENTCIDRS_FIELD_NUMBER = 2;
private java.util.List serverAddressByClientCIDRs_;
/**
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
*
*
* 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;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < versions_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, versions_.getRaw(i));
}
for (int i = 0; i < serverAddressByClientCIDRs_.size(); i++) {
output.writeMessage(2, serverAddressByClientCIDRs_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < versions_.size(); i++) {
dataSize += computeStringSizeNoTag(versions_.getRaw(i));
}
size += dataSize;
size += 1 * getVersionsList().size();
}
for (int i = 0; i < serverAddressByClientCIDRs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, serverAddressByClientCIDRs_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.Meta.APIVersions)) {
return super.equals(obj);
}
io.kubernetes.client.proto.Meta.APIVersions other = (io.kubernetes.client.proto.Meta.APIVersions) obj;
boolean result = true;
result = result && getVersionsList()
.equals(other.getVersionsList());
result = result && getServerAddressByClientCIDRsList()
.equals(other.getServerAddressByClientCIDRsList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getVersionsCount() > 0) {
hash = (37 * hash) + VERSIONS_FIELD_NUMBER;
hash = (53 * hash) + getVersionsList().hashCode();
}
if (getServerAddressByClientCIDRsCount() > 0) {
hash = (37 * hash) + SERVERADDRESSBYCLIENTCIDRS_FIELD_NUMBER;
hash = (53 * hash) + getServerAddressByClientCIDRsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.Meta.APIVersions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.APIVersions parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.APIVersions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.APIVersions parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.APIVersions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.APIVersions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.APIVersions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.APIVersions parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.APIVersions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.APIVersions parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.APIVersions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.APIVersions parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.Meta.APIVersions prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* APIVersions lists the versions that are available, to allow clients to
* discover the API at /api, which is the root path of the legacy v1 API.
* +protobuf.options.(gogoproto.goproto_stringer)=false
* +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
*
* a map of client CIDR to server address that is serving this group.
* This is to help clients reach servers in the most network-efficient way possible.
* Clients can use the appropriate server address as per the CIDR that they match.
* In case of multiple matches, clients should use the longest matching CIDR.
* The server returns only those CIDRs that it thinks that the client can match.
* For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
* Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
*
*
* 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_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.APIVersions)
}
// @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.APIVersions)
private static final io.kubernetes.client.proto.Meta.APIVersions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.Meta.APIVersions();
}
public static io.kubernetes.client.proto.Meta.APIVersions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public APIVersions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new APIVersions(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.APIVersions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateOptionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.apimachinery.pkg.apis.meta.v1.CreateOptions)
com.google.protobuf.MessageOrBuilder {
/**
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* CreateOptions may be provided when creating an API object.
*
*
* Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.CreateOptions}
*/
public static final class CreateOptions extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.CreateOptions)
CreateOptionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateOptions.newBuilder() to construct.
private CreateOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateOptions() {
dryRun_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateOptions(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
dryRun_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
dryRun_.add(bs);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
dryRun_ = dryRun_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_CreateOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_CreateOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.CreateOptions.class, io.kubernetes.client.proto.Meta.CreateOptions.Builder.class);
}
public static final int DRYRUN_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList dryRun_;
/**
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
*
* repeated string dryRun = 1;
*/
public int getDryRunCount() {
return dryRun_.size();
}
/**
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
*
* repeated string dryRun = 1;
*/
public com.google.protobuf.ByteString
getDryRunBytes(int index) {
return dryRun_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < dryRun_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dryRun_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < dryRun_.size(); i++) {
dataSize += computeStringSizeNoTag(dryRun_.getRaw(i));
}
size += dataSize;
size += 1 * getDryRunList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.Meta.CreateOptions)) {
return super.equals(obj);
}
io.kubernetes.client.proto.Meta.CreateOptions other = (io.kubernetes.client.proto.Meta.CreateOptions) obj;
boolean result = true;
result = result && getDryRunList()
.equals(other.getDryRunList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getDryRunCount() > 0) {
hash = (37 * hash) + DRYRUN_FIELD_NUMBER;
hash = (53 * hash) + getDryRunList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.Meta.CreateOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.CreateOptions parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.CreateOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.CreateOptions parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.CreateOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.CreateOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.CreateOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.CreateOptions parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.CreateOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.CreateOptions parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.CreateOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.CreateOptions parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.Meta.CreateOptions prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* CreateOptions may be provided when creating an API object.
*
*
* Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.CreateOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.apimachinery.pkg.apis.meta.v1.CreateOptions)
io.kubernetes.client.proto.Meta.CreateOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_CreateOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_CreateOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.CreateOptions.class, io.kubernetes.client.proto.Meta.CreateOptions.Builder.class);
}
// Construct using io.kubernetes.client.proto.Meta.CreateOptions.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
dryRun_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_CreateOptions_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.CreateOptions getDefaultInstanceForType() {
return io.kubernetes.client.proto.Meta.CreateOptions.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.CreateOptions build() {
io.kubernetes.client.proto.Meta.CreateOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.CreateOptions buildPartial() {
io.kubernetes.client.proto.Meta.CreateOptions result = new io.kubernetes.client.proto.Meta.CreateOptions(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
dryRun_ = dryRun_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.dryRun_ = dryRun_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.Meta.CreateOptions) {
return mergeFrom((io.kubernetes.client.proto.Meta.CreateOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.Meta.CreateOptions other) {
if (other == io.kubernetes.client.proto.Meta.CreateOptions.getDefaultInstance()) return this;
if (!other.dryRun_.isEmpty()) {
if (dryRun_.isEmpty()) {
dryRun_ = other.dryRun_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDryRunIsMutable();
dryRun_.addAll(other.dryRun_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.Meta.CreateOptions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.Meta.CreateOptions) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList dryRun_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureDryRunIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
dryRun_ = new com.google.protobuf.LazyStringArrayList(dryRun_);
bitField0_ |= 0x00000001;
}
}
/**
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
*
* repeated string dryRun = 1;
*/
public int getDryRunCount() {
return dryRun_.size();
}
/**
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
*
* repeated string dryRun = 1;
*/
public Builder setDryRun(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureDryRunIsMutable();
dryRun_.set(index, value);
onChanged();
return this;
}
/**
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
*
* repeated string dryRun = 1;
*/
public Builder addDryRunBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureDryRunIsMutable();
dryRun_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.CreateOptions)
}
// @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.CreateOptions)
private static final io.kubernetes.client.proto.Meta.CreateOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.Meta.CreateOptions();
}
public static io.kubernetes.client.proto.Meta.CreateOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateOptions(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.CreateOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteOptionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions)
com.google.protobuf.MessageOrBuilder {
/**
*
* The duration in seconds before the object should be deleted. Value must be non-negative integer.
* The value zero indicates delete immediately. If this value is nil, the default grace period for the
* specified type will be used.
* Defaults to a per object value if not specified. zero means delete immediately.
* +optional
*
* The duration in seconds before the object should be deleted. Value must be non-negative integer.
* The value zero indicates delete immediately. If this value is nil, the default grace period for the
* specified type will be used.
* Defaults to a per object value if not specified. zero means delete immediately.
* +optional
*
* Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7.
* Should the dependent objects be orphaned. If true/false, the "orphan"
* finalizer will be added to/removed from the object's finalizers list.
* Either this field or PropagationPolicy may be set, but not both.
* +optional
*
* Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7.
* Should the dependent objects be orphaned. If true/false, the "orphan"
* finalizer will be added to/removed from the object's finalizers list.
* Either this field or PropagationPolicy may be set, but not both.
* +optional
*
* Whether and how garbage collection will be performed.
* Either this field or OrphanDependents may be set, but not both.
* The default policy is decided by the existing finalizer set in the
* metadata.finalizers and the resource-specific default policy.
* Acceptable values are: 'Orphan' - orphan the dependents; 'Background' -
* allow the garbage collector to delete the dependents in the background;
* 'Foreground' - a cascading policy that deletes all dependents in the
* foreground.
* +optional
*
* Whether and how garbage collection will be performed.
* Either this field or OrphanDependents may be set, but not both.
* The default policy is decided by the existing finalizer set in the
* metadata.finalizers and the resource-specific default policy.
* Acceptable values are: 'Orphan' - orphan the dependents; 'Background' -
* allow the garbage collector to delete the dependents in the background;
* 'Foreground' - a cascading policy that deletes all dependents in the
* foreground.
* +optional
*
* Whether and how garbage collection will be performed.
* Either this field or OrphanDependents may be set, but not both.
* The default policy is decided by the existing finalizer set in the
* metadata.finalizers and the resource-specific default policy.
* Acceptable values are: 'Orphan' - orphan the dependents; 'Background' -
* allow the garbage collector to delete the dependents in the background;
* 'Foreground' - a cascading policy that deletes all dependents in the
* foreground.
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* DeleteOptions may be provided when deleting an API object.
*
*
* Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions}
*/
public static final class DeleteOptions extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions)
DeleteOptionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteOptions.newBuilder() to construct.
private DeleteOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteOptions() {
gracePeriodSeconds_ = 0L;
orphanDependents_ = false;
propagationPolicy_ = "";
dryRun_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeleteOptions(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
bitField0_ |= 0x00000001;
gracePeriodSeconds_ = input.readInt64();
break;
}
case 18: {
io.kubernetes.client.proto.Meta.Preconditions.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = preconditions_.toBuilder();
}
preconditions_ = input.readMessage(io.kubernetes.client.proto.Meta.Preconditions.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(preconditions_);
preconditions_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 24: {
bitField0_ |= 0x00000004;
orphanDependents_ = input.readBool();
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
propagationPolicy_ = bs;
break;
}
case 42: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
dryRun_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000010;
}
dryRun_.add(bs);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
dryRun_ = dryRun_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_DeleteOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_DeleteOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.DeleteOptions.class, io.kubernetes.client.proto.Meta.DeleteOptions.Builder.class);
}
private int bitField0_;
public static final int GRACEPERIODSECONDS_FIELD_NUMBER = 1;
private long gracePeriodSeconds_;
/**
*
* The duration in seconds before the object should be deleted. Value must be non-negative integer.
* The value zero indicates delete immediately. If this value is nil, the default grace period for the
* specified type will be used.
* Defaults to a per object value if not specified. zero means delete immediately.
* +optional
*
* The duration in seconds before the object should be deleted. Value must be non-negative integer.
* The value zero indicates delete immediately. If this value is nil, the default grace period for the
* specified type will be used.
* Defaults to a per object value if not specified. zero means delete immediately.
* +optional
*
*
* optional int64 gracePeriodSeconds = 1;
*/
public long getGracePeriodSeconds() {
return gracePeriodSeconds_;
}
public static final int PRECONDITIONS_FIELD_NUMBER = 2;
private io.kubernetes.client.proto.Meta.Preconditions preconditions_;
/**
*
* Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be
* returned.
* +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.
* Acceptable values are: 'Orphan' - orphan the dependents; 'Background' -
* allow the garbage collector to delete the dependents in the background;
* 'Foreground' - a cascading policy that deletes all dependents in the
* foreground.
* +optional
*
* Whether and how garbage collection will be performed.
* Either this field or OrphanDependents may be set, but not both.
* The default policy is decided by the existing finalizer set in the
* metadata.finalizers and the resource-specific default policy.
* Acceptable values are: 'Orphan' - orphan the dependents; 'Background' -
* allow the garbage collector to delete the dependents in the background;
* 'Foreground' - a cascading policy that deletes all dependents in the
* foreground.
* +optional
*
* Whether and how garbage collection will be performed.
* Either this field or OrphanDependents may be set, but not both.
* The default policy is decided by the existing finalizer set in the
* metadata.finalizers and the resource-specific default policy.
* Acceptable values are: 'Orphan' - orphan the dependents; 'Background' -
* allow the garbage collector to delete the dependents in the background;
* 'Foreground' - a cascading policy that deletes all dependents in the
* foreground.
* +optional
*
*
* optional string propagationPolicy = 4;
*/
public com.google.protobuf.ByteString
getPropagationPolicyBytes() {
java.lang.Object ref = propagationPolicy_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
propagationPolicy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DRYRUN_FIELD_NUMBER = 5;
private com.google.protobuf.LazyStringList dryRun_;
/**
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
*
* repeated string dryRun = 5;
*/
public int getDryRunCount() {
return dryRun_.size();
}
/**
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
*
* repeated string dryRun = 5;
*/
public com.google.protobuf.ByteString
getDryRunBytes(int index) {
return dryRun_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt64(1, gracePeriodSeconds_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getPreconditions());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBool(3, orphanDependents_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, propagationPolicy_);
}
for (int i = 0; i < dryRun_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, dryRun_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, gracePeriodSeconds_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPreconditions());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, orphanDependents_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, propagationPolicy_);
}
{
int dataSize = 0;
for (int i = 0; i < dryRun_.size(); i++) {
dataSize += computeStringSizeNoTag(dryRun_.getRaw(i));
}
size += dataSize;
size += 1 * getDryRunList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.Meta.DeleteOptions)) {
return super.equals(obj);
}
io.kubernetes.client.proto.Meta.DeleteOptions other = (io.kubernetes.client.proto.Meta.DeleteOptions) obj;
boolean result = true;
result = result && (hasGracePeriodSeconds() == other.hasGracePeriodSeconds());
if (hasGracePeriodSeconds()) {
result = result && (getGracePeriodSeconds()
== other.getGracePeriodSeconds());
}
result = result && (hasPreconditions() == other.hasPreconditions());
if (hasPreconditions()) {
result = result && getPreconditions()
.equals(other.getPreconditions());
}
result = result && (hasOrphanDependents() == other.hasOrphanDependents());
if (hasOrphanDependents()) {
result = result && (getOrphanDependents()
== other.getOrphanDependents());
}
result = result && (hasPropagationPolicy() == other.hasPropagationPolicy());
if (hasPropagationPolicy()) {
result = result && getPropagationPolicy()
.equals(other.getPropagationPolicy());
}
result = result && getDryRunList()
.equals(other.getDryRunList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasGracePeriodSeconds()) {
hash = (37 * hash) + GRACEPERIODSECONDS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getGracePeriodSeconds());
}
if (hasPreconditions()) {
hash = (37 * hash) + PRECONDITIONS_FIELD_NUMBER;
hash = (53 * hash) + getPreconditions().hashCode();
}
if (hasOrphanDependents()) {
hash = (37 * hash) + ORPHANDEPENDENTS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getOrphanDependents());
}
if (hasPropagationPolicy()) {
hash = (37 * hash) + PROPAGATIONPOLICY_FIELD_NUMBER;
hash = (53 * hash) + getPropagationPolicy().hashCode();
}
if (getDryRunCount() > 0) {
hash = (37 * hash) + DRYRUN_FIELD_NUMBER;
hash = (53 * hash) + getDryRunList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.Meta.DeleteOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.DeleteOptions parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.DeleteOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.DeleteOptions parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.DeleteOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.DeleteOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.DeleteOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.DeleteOptions parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.DeleteOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.DeleteOptions parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.DeleteOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.DeleteOptions parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.Meta.DeleteOptions prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* DeleteOptions may be provided when deleting an API object.
*
* The duration in seconds before the object should be deleted. Value must be non-negative integer.
* The value zero indicates delete immediately. If this value is nil, the default grace period for the
* specified type will be used.
* Defaults to a per object value if not specified. zero means delete immediately.
* +optional
*
* The duration in seconds before the object should be deleted. Value must be non-negative integer.
* The value zero indicates delete immediately. If this value is nil, the default grace period for the
* specified type will be used.
* Defaults to a per object value if not specified. zero means delete immediately.
* +optional
*
*
* optional int64 gracePeriodSeconds = 1;
*/
public long getGracePeriodSeconds() {
return gracePeriodSeconds_;
}
/**
*
* The duration in seconds before the object should be deleted. Value must be non-negative integer.
* The value zero indicates delete immediately. If this value is nil, the default grace period for the
* specified type will be used.
* Defaults to a per object value if not specified. zero means delete immediately.
* +optional
*
* The duration in seconds before the object should be deleted. Value must be non-negative integer.
* The value zero indicates delete immediately. If this value is nil, the default grace period for the
* specified type will be used.
* Defaults to a per object value if not specified. zero means delete immediately.
* +optional
*
* Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7.
* Should the dependent objects be orphaned. If true/false, the "orphan"
* finalizer will be added to/removed from the object's finalizers list.
* Either this field or PropagationPolicy may be set, but not both.
* +optional
*
* Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7.
* Should the dependent objects be orphaned. If true/false, the "orphan"
* finalizer will be added to/removed from the object's finalizers list.
* Either this field or PropagationPolicy may be set, but not both.
* +optional
*
* Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7.
* Should the dependent objects be orphaned. If true/false, the "orphan"
* finalizer will be added to/removed from the object's finalizers list.
* Either this field or PropagationPolicy may be set, but not both.
* +optional
*
* Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7.
* Should the dependent objects be orphaned. If true/false, the "orphan"
* finalizer will be added to/removed from the object's finalizers list.
* Either this field or PropagationPolicy may be set, but not both.
* +optional
*
* Whether and how garbage collection will be performed.
* Either this field or OrphanDependents may be set, but not both.
* The default policy is decided by the existing finalizer set in the
* metadata.finalizers and the resource-specific default policy.
* Acceptable values are: 'Orphan' - orphan the dependents; 'Background' -
* allow the garbage collector to delete the dependents in the background;
* 'Foreground' - a cascading policy that deletes all dependents in the
* foreground.
* +optional
*
* Whether and how garbage collection will be performed.
* Either this field or OrphanDependents may be set, but not both.
* The default policy is decided by the existing finalizer set in the
* metadata.finalizers and the resource-specific default policy.
* Acceptable values are: 'Orphan' - orphan the dependents; 'Background' -
* allow the garbage collector to delete the dependents in the background;
* 'Foreground' - a cascading policy that deletes all dependents in the
* foreground.
* +optional
*
* Whether and how garbage collection will be performed.
* Either this field or OrphanDependents may be set, but not both.
* The default policy is decided by the existing finalizer set in the
* metadata.finalizers and the resource-specific default policy.
* Acceptable values are: 'Orphan' - orphan the dependents; 'Background' -
* allow the garbage collector to delete the dependents in the background;
* 'Foreground' - a cascading policy that deletes all dependents in the
* foreground.
* +optional
*
* Whether and how garbage collection will be performed.
* Either this field or OrphanDependents may be set, but not both.
* The default policy is decided by the existing finalizer set in the
* metadata.finalizers and the resource-specific default policy.
* Acceptable values are: 'Orphan' - orphan the dependents; 'Background' -
* allow the garbage collector to delete the dependents in the background;
* 'Foreground' - a cascading policy that deletes all dependents in the
* foreground.
* +optional
*
* Whether and how garbage collection will be performed.
* Either this field or OrphanDependents may be set, but not both.
* The default policy is decided by the existing finalizer set in the
* metadata.finalizers and the resource-specific default policy.
* Acceptable values are: 'Orphan' - orphan the dependents; 'Background' -
* allow the garbage collector to delete the dependents in the background;
* 'Foreground' - a cascading policy that deletes all dependents in the
* foreground.
* +optional
*
* Whether and how garbage collection will be performed.
* Either this field or OrphanDependents may be set, but not both.
* The default policy is decided by the existing finalizer set in the
* metadata.finalizers and the resource-specific default policy.
* Acceptable values are: 'Orphan' - orphan the dependents; 'Background' -
* allow the garbage collector to delete the dependents in the background;
* 'Foreground' - a cascading policy that deletes all dependents in the
* foreground.
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
*
* repeated string dryRun = 5;
*/
public int getDryRunCount() {
return dryRun_.size();
}
/**
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
*
* repeated string dryRun = 5;
*/
public Builder setDryRun(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureDryRunIsMutable();
dryRun_.set(index, value);
onChanged();
return this;
}
/**
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
* When present, indicates that modifications should not be
* persisted. An invalid or unrecognized dryRun directive will
* result in an error response and no further processing of the
* request. Valid values are:
* - All: all dry run stages will be processed
* +optional
*
*
* repeated string dryRun = 5;
*/
public Builder addDryRunBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureDryRunIsMutable();
dryRun_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions)
}
// @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions)
private static final io.kubernetes.client.proto.Meta.DeleteOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.Meta.DeleteOptions();
}
public static io.kubernetes.client.proto.Meta.DeleteOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeleteOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeleteOptions(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.DeleteOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DurationOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.apimachinery.pkg.apis.meta.v1.Duration)
com.google.protobuf.MessageOrBuilder {
/**
* optional int64 duration = 1;
*/
boolean hasDuration();
/**
* optional int64 duration = 1;
*/
long getDuration();
}
/**
*
* Duration is a wrapper around time.Duration which supports correct
* marshaling to YAML and JSON. In particular, it marshals into strings, which
* can be used as map keys in json.
*
*
* Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.Duration}
*/
public static final class Duration extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.Duration)
DurationOrBuilder {
private static final long serialVersionUID = 0L;
// Use Duration.newBuilder() to construct.
private Duration(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Duration() {
duration_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Duration(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
bitField0_ |= 0x00000001;
duration_ = input.readInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_Duration_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_Duration_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.Duration.class, io.kubernetes.client.proto.Meta.Duration.Builder.class);
}
private int bitField0_;
public static final int DURATION_FIELD_NUMBER = 1;
private long duration_;
/**
* optional int64 duration = 1;
*/
public boolean hasDuration() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int64 duration = 1;
*/
public long getDuration() {
return duration_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt64(1, duration_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, duration_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.Meta.Duration)) {
return super.equals(obj);
}
io.kubernetes.client.proto.Meta.Duration other = (io.kubernetes.client.proto.Meta.Duration) obj;
boolean result = true;
result = result && (hasDuration() == other.hasDuration());
if (hasDuration()) {
result = result && (getDuration()
== other.getDuration());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasDuration()) {
hash = (37 * hash) + DURATION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDuration());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.Meta.Duration parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.Duration parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.Duration parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.Duration parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.Duration parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.Duration parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.Duration parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.Duration parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.Duration parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.Duration parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.Duration parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.Duration parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.Meta.Duration prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Duration is a wrapper around time.Duration which supports correct
* marshaling to YAML and JSON. In particular, it marshals into strings, which
* can be used as map keys in json.
*
*
* Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.Duration}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.apimachinery.pkg.apis.meta.v1.Duration)
io.kubernetes.client.proto.Meta.DurationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_Duration_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_Duration_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.Duration.class, io.kubernetes.client.proto.Meta.Duration.Builder.class);
}
// Construct using io.kubernetes.client.proto.Meta.Duration.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
duration_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_Duration_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.Duration getDefaultInstanceForType() {
return io.kubernetes.client.proto.Meta.Duration.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.Duration build() {
io.kubernetes.client.proto.Meta.Duration result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.Duration buildPartial() {
io.kubernetes.client.proto.Meta.Duration result = new io.kubernetes.client.proto.Meta.Duration(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.duration_ = duration_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.Meta.Duration) {
return mergeFrom((io.kubernetes.client.proto.Meta.Duration)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.Meta.Duration other) {
if (other == io.kubernetes.client.proto.Meta.Duration.getDefaultInstance()) return this;
if (other.hasDuration()) {
setDuration(other.getDuration());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.Meta.Duration parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.Meta.Duration) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long duration_ ;
/**
* optional int64 duration = 1;
*/
public boolean hasDuration() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int64 duration = 1;
*/
public long getDuration() {
return duration_;
}
/**
* optional int64 duration = 1;
*/
public Builder setDuration(long value) {
bitField0_ |= 0x00000001;
duration_ = value;
onChanged();
return this;
}
/**
* optional int64 duration = 1;
*/
public Builder clearDuration() {
bitField0_ = (bitField0_ & ~0x00000001);
duration_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.Duration)
}
// @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.Duration)
private static final io.kubernetes.client.proto.Meta.Duration DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.Meta.Duration();
}
public static io.kubernetes.client.proto.Meta.Duration getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Duration parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Duration(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.Duration getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface 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;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.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() {
@java.lang.Override
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;
}
@java.lang.Override
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_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetOptions(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
resourceVersion_ = bs;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GetOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GetOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.GetOptions.class, io.kubernetes.client.proto.Meta.GetOptions.Builder.class);
}
private int bitField0_;
public static final int RESOURCEVERSION_FIELD_NUMBER = 1;
private volatile java.lang.Object resourceVersion_;
/**
*
* 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;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceVersion_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceVersion_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.Meta.GetOptions)) {
return super.equals(obj);
}
io.kubernetes.client.proto.Meta.GetOptions other = (io.kubernetes.client.proto.Meta.GetOptions) obj;
boolean result = true;
result = result && (hasResourceVersion() == other.hasResourceVersion());
if (hasResourceVersion()) {
result = result && getResourceVersion()
.equals(other.getResourceVersion());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasResourceVersion()) {
hash = (37 * hash) + RESOURCEVERSION_FIELD_NUMBER;
hash = (53 * hash) + getResourceVersion().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.Meta.GetOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.GetOptions parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.GetOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.GetOptions parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.GetOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.GetOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.GetOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.GetOptions parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.GetOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.GetOptions parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.GetOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.GetOptions parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.Meta.GetOptions prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* GetOptions is the standard query options to the standard REST get call.
*
*
* Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.GetOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.apimachinery.pkg.apis.meta.v1.GetOptions)
io.kubernetes.client.proto.Meta.GetOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GetOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GetOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.GetOptions.class, io.kubernetes.client.proto.Meta.GetOptions.Builder.class);
}
// Construct using io.kubernetes.client.proto.Meta.GetOptions.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
resourceVersion_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GetOptions_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GetOptions getDefaultInstanceForType() {
return io.kubernetes.client.proto.Meta.GetOptions.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GetOptions build() {
io.kubernetes.client.proto.Meta.GetOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GetOptions buildPartial() {
io.kubernetes.client.proto.Meta.GetOptions result = new io.kubernetes.client.proto.Meta.GetOptions(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.resourceVersion_ = resourceVersion_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.Meta.GetOptions) {
return mergeFrom((io.kubernetes.client.proto.Meta.GetOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.Meta.GetOptions other) {
if (other == io.kubernetes.client.proto.Meta.GetOptions.getDefaultInstance()) return this;
if (other.hasResourceVersion()) {
bitField0_ |= 0x00000001;
resourceVersion_ = other.resourceVersion_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.Meta.GetOptions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.Meta.GetOptions) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object resourceVersion_ = "";
/**
*
* 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.
*
*
* optional string resourceVersion = 1;
*/
public Builder setResourceVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
resourceVersion_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GetOptions)
}
// @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GetOptions)
private static final io.kubernetes.client.proto.Meta.GetOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.Meta.GetOptions();
}
public static io.kubernetes.client.proto.Meta.GetOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetOptions(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GetOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GroupKindOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.apimachinery.pkg.apis.meta.v1.GroupKind)
com.google.protobuf.MessageOrBuilder {
/**
* optional string group = 1;
*/
boolean hasGroup();
/**
* optional string group = 1;
*/
java.lang.String getGroup();
/**
* optional string group = 1;
*/
com.google.protobuf.ByteString
getGroupBytes();
/**
* optional string kind = 2;
*/
boolean hasKind();
/**
* optional string kind = 2;
*/
java.lang.String getKind();
/**
* optional string kind = 2;
*/
com.google.protobuf.ByteString
getKindBytes();
}
/**
*
* GroupKind specifies a Group and a Kind, but does not force a version. This is useful for identifying
* concepts during lookup stages without having partially valid types
* +protobuf.options.(gogoproto.goproto_stringer)=false
*
*
* Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.GroupKind}
*/
public static final class GroupKind extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.GroupKind)
GroupKindOrBuilder {
private static final long serialVersionUID = 0L;
// Use GroupKind.newBuilder() to construct.
private GroupKind(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GroupKind() {
group_ = "";
kind_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GroupKind(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
group_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
kind_ = bs;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupKind_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupKind_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.GroupKind.class, io.kubernetes.client.proto.Meta.GroupKind.Builder.class);
}
private int bitField0_;
public static final int GROUP_FIELD_NUMBER = 1;
private volatile java.lang.Object group_;
/**
* optional string group = 1;
*/
public boolean hasGroup() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string group = 1;
*/
public java.lang.String getGroup() {
java.lang.Object ref = group_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
group_ = s;
}
return s;
}
}
/**
* optional string group = 1;
*/
public com.google.protobuf.ByteString
getGroupBytes() {
java.lang.Object ref = group_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
group_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int KIND_FIELD_NUMBER = 2;
private volatile java.lang.Object kind_;
/**
* optional string kind = 2;
*/
public boolean hasKind() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string kind = 2;
*/
public java.lang.String getKind() {
java.lang.Object ref = kind_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
kind_ = s;
}
return s;
}
}
/**
* optional string kind = 2;
*/
public com.google.protobuf.ByteString
getKindBytes() {
java.lang.Object ref = kind_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
kind_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, group_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kind_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, group_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kind_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.Meta.GroupKind)) {
return super.equals(obj);
}
io.kubernetes.client.proto.Meta.GroupKind other = (io.kubernetes.client.proto.Meta.GroupKind) obj;
boolean result = true;
result = result && (hasGroup() == other.hasGroup());
if (hasGroup()) {
result = result && getGroup()
.equals(other.getGroup());
}
result = result && (hasKind() == other.hasKind());
if (hasKind()) {
result = result && getKind()
.equals(other.getKind());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasGroup()) {
hash = (37 * hash) + GROUP_FIELD_NUMBER;
hash = (53 * hash) + getGroup().hashCode();
}
if (hasKind()) {
hash = (37 * hash) + KIND_FIELD_NUMBER;
hash = (53 * hash) + getKind().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.Meta.GroupKind parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.GroupKind parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.GroupKind parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.GroupKind parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.GroupKind parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.GroupKind parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.GroupKind parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.GroupKind parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.GroupKind parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.GroupKind parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.GroupKind parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.GroupKind parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.Meta.GroupKind prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* GroupKind specifies a Group and a Kind, but does not force a version. This is useful for identifying
* concepts during lookup stages without having partially valid types
* +protobuf.options.(gogoproto.goproto_stringer)=false
*
*
* Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.GroupKind}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.apimachinery.pkg.apis.meta.v1.GroupKind)
io.kubernetes.client.proto.Meta.GroupKindOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupKind_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupKind_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.GroupKind.class, io.kubernetes.client.proto.Meta.GroupKind.Builder.class);
}
// Construct using io.kubernetes.client.proto.Meta.GroupKind.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
group_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
kind_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupKind_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupKind getDefaultInstanceForType() {
return io.kubernetes.client.proto.Meta.GroupKind.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupKind build() {
io.kubernetes.client.proto.Meta.GroupKind result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupKind buildPartial() {
io.kubernetes.client.proto.Meta.GroupKind result = new io.kubernetes.client.proto.Meta.GroupKind(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.group_ = group_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.kind_ = kind_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.Meta.GroupKind) {
return mergeFrom((io.kubernetes.client.proto.Meta.GroupKind)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.Meta.GroupKind other) {
if (other == io.kubernetes.client.proto.Meta.GroupKind.getDefaultInstance()) return this;
if (other.hasGroup()) {
bitField0_ |= 0x00000001;
group_ = other.group_;
onChanged();
}
if (other.hasKind()) {
bitField0_ |= 0x00000002;
kind_ = other.kind_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.Meta.GroupKind parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.Meta.GroupKind) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object group_ = "";
/**
* optional string group = 1;
*/
public boolean hasGroup() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string group = 1;
*/
public java.lang.String getGroup() {
java.lang.Object ref = group_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
group_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string group = 1;
*/
public com.google.protobuf.ByteString
getGroupBytes() {
java.lang.Object ref = group_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
group_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string group = 1;
*/
public Builder setGroup(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
group_ = value;
onChanged();
return this;
}
/**
* optional string group = 1;
*/
public Builder clearGroup() {
bitField0_ = (bitField0_ & ~0x00000001);
group_ = getDefaultInstance().getGroup();
onChanged();
return this;
}
/**
* optional string group = 1;
*/
public Builder setGroupBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
group_ = value;
onChanged();
return this;
}
private java.lang.Object kind_ = "";
/**
* optional string kind = 2;
*/
public boolean hasKind() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string kind = 2;
*/
public java.lang.String getKind() {
java.lang.Object ref = kind_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
kind_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string kind = 2;
*/
public com.google.protobuf.ByteString
getKindBytes() {
java.lang.Object ref = kind_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
kind_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string kind = 2;
*/
public Builder setKind(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
kind_ = value;
onChanged();
return this;
}
/**
* optional string kind = 2;
*/
public Builder clearKind() {
bitField0_ = (bitField0_ & ~0x00000002);
kind_ = getDefaultInstance().getKind();
onChanged();
return this;
}
/**
* optional string kind = 2;
*/
public Builder setKindBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
kind_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GroupKind)
}
// @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GroupKind)
private static final io.kubernetes.client.proto.Meta.GroupKind DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.Meta.GroupKind();
}
public static io.kubernetes.client.proto.Meta.GroupKind getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GroupKind parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GroupKind(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupKind getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GroupResourceOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.apimachinery.pkg.apis.meta.v1.GroupResource)
com.google.protobuf.MessageOrBuilder {
/**
* optional string group = 1;
*/
boolean hasGroup();
/**
* optional string group = 1;
*/
java.lang.String getGroup();
/**
* optional string group = 1;
*/
com.google.protobuf.ByteString
getGroupBytes();
/**
* optional string resource = 2;
*/
boolean hasResource();
/**
* optional string resource = 2;
*/
java.lang.String getResource();
/**
* optional string resource = 2;
*/
com.google.protobuf.ByteString
getResourceBytes();
}
/**
*
* GroupResource specifies a Group and a Resource, but does not force a version. This is useful for identifying
* concepts during lookup stages without having partially valid types
* +protobuf.options.(gogoproto.goproto_stringer)=false
*
*
* Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.GroupResource}
*/
public static final class GroupResource extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.GroupResource)
GroupResourceOrBuilder {
private static final long serialVersionUID = 0L;
// Use GroupResource.newBuilder() to construct.
private GroupResource(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GroupResource() {
group_ = "";
resource_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GroupResource(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
group_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
resource_ = bs;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupResource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupResource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.GroupResource.class, io.kubernetes.client.proto.Meta.GroupResource.Builder.class);
}
private int bitField0_;
public static final int GROUP_FIELD_NUMBER = 1;
private volatile java.lang.Object group_;
/**
* optional string group = 1;
*/
public boolean hasGroup() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string group = 1;
*/
public java.lang.String getGroup() {
java.lang.Object ref = group_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
group_ = s;
}
return s;
}
}
/**
* optional string group = 1;
*/
public com.google.protobuf.ByteString
getGroupBytes() {
java.lang.Object ref = group_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
group_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RESOURCE_FIELD_NUMBER = 2;
private volatile java.lang.Object resource_;
/**
* optional string resource = 2;
*/
public boolean hasResource() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string resource = 2;
*/
public java.lang.String getResource() {
java.lang.Object ref = resource_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
resource_ = s;
}
return s;
}
}
/**
* optional string resource = 2;
*/
public com.google.protobuf.ByteString
getResourceBytes() {
java.lang.Object ref = resource_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resource_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, group_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resource_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, group_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resource_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.Meta.GroupResource)) {
return super.equals(obj);
}
io.kubernetes.client.proto.Meta.GroupResource other = (io.kubernetes.client.proto.Meta.GroupResource) obj;
boolean result = true;
result = result && (hasGroup() == other.hasGroup());
if (hasGroup()) {
result = result && getGroup()
.equals(other.getGroup());
}
result = result && (hasResource() == other.hasResource());
if (hasResource()) {
result = result && getResource()
.equals(other.getResource());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasGroup()) {
hash = (37 * hash) + GROUP_FIELD_NUMBER;
hash = (53 * hash) + getGroup().hashCode();
}
if (hasResource()) {
hash = (37 * hash) + RESOURCE_FIELD_NUMBER;
hash = (53 * hash) + getResource().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.Meta.GroupResource parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.GroupResource parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.GroupResource parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.GroupResource parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.GroupResource parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.GroupResource parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.GroupResource parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.GroupResource parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.GroupResource parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.GroupResource parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.GroupResource parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.GroupResource parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.Meta.GroupResource prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* GroupResource specifies a Group and a Resource, but does not force a version. This is useful for identifying
* concepts during lookup stages without having partially valid types
* +protobuf.options.(gogoproto.goproto_stringer)=false
*
*
* Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.GroupResource}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.apimachinery.pkg.apis.meta.v1.GroupResource)
io.kubernetes.client.proto.Meta.GroupResourceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupResource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupResource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.GroupResource.class, io.kubernetes.client.proto.Meta.GroupResource.Builder.class);
}
// Construct using io.kubernetes.client.proto.Meta.GroupResource.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
group_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
resource_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupResource_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupResource getDefaultInstanceForType() {
return io.kubernetes.client.proto.Meta.GroupResource.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupResource build() {
io.kubernetes.client.proto.Meta.GroupResource result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupResource buildPartial() {
io.kubernetes.client.proto.Meta.GroupResource result = new io.kubernetes.client.proto.Meta.GroupResource(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.group_ = group_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.resource_ = resource_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.Meta.GroupResource) {
return mergeFrom((io.kubernetes.client.proto.Meta.GroupResource)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.Meta.GroupResource other) {
if (other == io.kubernetes.client.proto.Meta.GroupResource.getDefaultInstance()) return this;
if (other.hasGroup()) {
bitField0_ |= 0x00000001;
group_ = other.group_;
onChanged();
}
if (other.hasResource()) {
bitField0_ |= 0x00000002;
resource_ = other.resource_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.Meta.GroupResource parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.Meta.GroupResource) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object group_ = "";
/**
* optional string group = 1;
*/
public boolean hasGroup() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string group = 1;
*/
public java.lang.String getGroup() {
java.lang.Object ref = group_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
group_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string group = 1;
*/
public com.google.protobuf.ByteString
getGroupBytes() {
java.lang.Object ref = group_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
group_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string group = 1;
*/
public Builder setGroup(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
group_ = value;
onChanged();
return this;
}
/**
* optional string group = 1;
*/
public Builder clearGroup() {
bitField0_ = (bitField0_ & ~0x00000001);
group_ = getDefaultInstance().getGroup();
onChanged();
return this;
}
/**
* optional string group = 1;
*/
public Builder setGroupBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
group_ = value;
onChanged();
return this;
}
private java.lang.Object resource_ = "";
/**
* optional string resource = 2;
*/
public boolean hasResource() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string resource = 2;
*/
public java.lang.String getResource() {
java.lang.Object ref = resource_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
resource_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string resource = 2;
*/
public com.google.protobuf.ByteString
getResourceBytes() {
java.lang.Object ref = resource_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resource_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string resource = 2;
*/
public Builder setResource(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
resource_ = value;
onChanged();
return this;
}
/**
* optional string resource = 2;
*/
public Builder clearResource() {
bitField0_ = (bitField0_ & ~0x00000002);
resource_ = getDefaultInstance().getResource();
onChanged();
return this;
}
/**
* optional string resource = 2;
*/
public Builder setResourceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
resource_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GroupResource)
}
// @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GroupResource)
private static final io.kubernetes.client.proto.Meta.GroupResource DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.Meta.GroupResource();
}
public static io.kubernetes.client.proto.Meta.GroupResource getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GroupResource parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GroupResource(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupResource getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GroupVersionOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersion)
com.google.protobuf.MessageOrBuilder {
/**
* optional string group = 1;
*/
boolean hasGroup();
/**
* optional string group = 1;
*/
java.lang.String getGroup();
/**
* optional string group = 1;
*/
com.google.protobuf.ByteString
getGroupBytes();
/**
* optional string version = 2;
*/
boolean hasVersion();
/**
* optional string version = 2;
*/
java.lang.String getVersion();
/**
* optional string version = 2;
*/
com.google.protobuf.ByteString
getVersionBytes();
}
/**
*
* GroupVersion contains the "group" and the "version", which uniquely identifies the API.
* +protobuf.options.(gogoproto.goproto_stringer)=false
*
*
* Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersion}
*/
public static final class GroupVersion extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersion)
GroupVersionOrBuilder {
private static final long serialVersionUID = 0L;
// Use GroupVersion.newBuilder() to construct.
private GroupVersion(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GroupVersion() {
group_ = "";
version_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GroupVersion(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
group_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
version_ = bs;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersion_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.GroupVersion.class, io.kubernetes.client.proto.Meta.GroupVersion.Builder.class);
}
private int bitField0_;
public static final int GROUP_FIELD_NUMBER = 1;
private volatile java.lang.Object group_;
/**
* optional string group = 1;
*/
public boolean hasGroup() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string group = 1;
*/
public java.lang.String getGroup() {
java.lang.Object ref = group_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
group_ = s;
}
return s;
}
}
/**
* optional string group = 1;
*/
public com.google.protobuf.ByteString
getGroupBytes() {
java.lang.Object ref = group_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
group_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VERSION_FIELD_NUMBER = 2;
private volatile java.lang.Object version_;
/**
* optional string version = 2;
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string version = 2;
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
version_ = s;
}
return s;
}
}
/**
* optional string version = 2;
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, group_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, group_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.Meta.GroupVersion)) {
return super.equals(obj);
}
io.kubernetes.client.proto.Meta.GroupVersion other = (io.kubernetes.client.proto.Meta.GroupVersion) obj;
boolean result = true;
result = result && (hasGroup() == other.hasGroup());
if (hasGroup()) {
result = result && getGroup()
.equals(other.getGroup());
}
result = result && (hasVersion() == other.hasVersion());
if (hasVersion()) {
result = result && getVersion()
.equals(other.getVersion());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasGroup()) {
hash = (37 * hash) + GROUP_FIELD_NUMBER;
hash = (53 * hash) + getGroup().hashCode();
}
if (hasVersion()) {
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.Meta.GroupVersion parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.GroupVersion parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.GroupVersion parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.GroupVersion parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.GroupVersion parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.GroupVersion parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.GroupVersion parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.GroupVersion parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.GroupVersion parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.GroupVersion parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.GroupVersion parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.GroupVersion parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.Meta.GroupVersion prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* GroupVersion contains the "group" and the "version", which uniquely identifies the API.
* +protobuf.options.(gogoproto.goproto_stringer)=false
*
*
* Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersion}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersion)
io.kubernetes.client.proto.Meta.GroupVersionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersion_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.GroupVersion.class, io.kubernetes.client.proto.Meta.GroupVersion.Builder.class);
}
// Construct using io.kubernetes.client.proto.Meta.GroupVersion.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
group_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
version_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersion_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupVersion getDefaultInstanceForType() {
return io.kubernetes.client.proto.Meta.GroupVersion.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupVersion build() {
io.kubernetes.client.proto.Meta.GroupVersion result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupVersion buildPartial() {
io.kubernetes.client.proto.Meta.GroupVersion result = new io.kubernetes.client.proto.Meta.GroupVersion(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.group_ = group_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.version_ = version_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.Meta.GroupVersion) {
return mergeFrom((io.kubernetes.client.proto.Meta.GroupVersion)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.Meta.GroupVersion other) {
if (other == io.kubernetes.client.proto.Meta.GroupVersion.getDefaultInstance()) return this;
if (other.hasGroup()) {
bitField0_ |= 0x00000001;
group_ = other.group_;
onChanged();
}
if (other.hasVersion()) {
bitField0_ |= 0x00000002;
version_ = other.version_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.Meta.GroupVersion parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.Meta.GroupVersion) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object group_ = "";
/**
* optional string group = 1;
*/
public boolean hasGroup() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string group = 1;
*/
public java.lang.String getGroup() {
java.lang.Object ref = group_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
group_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string group = 1;
*/
public com.google.protobuf.ByteString
getGroupBytes() {
java.lang.Object ref = group_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
group_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string group = 1;
*/
public Builder setGroup(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
group_ = value;
onChanged();
return this;
}
/**
* optional string group = 1;
*/
public Builder clearGroup() {
bitField0_ = (bitField0_ & ~0x00000001);
group_ = getDefaultInstance().getGroup();
onChanged();
return this;
}
/**
* optional string group = 1;
*/
public Builder setGroupBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
group_ = value;
onChanged();
return this;
}
private java.lang.Object version_ = "";
/**
* optional string version = 2;
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string version = 2;
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
version_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string version = 2;
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string version = 2;
*/
public Builder setVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
version_ = value;
onChanged();
return this;
}
/**
* optional string version = 2;
*/
public Builder clearVersion() {
bitField0_ = (bitField0_ & ~0x00000002);
version_ = getDefaultInstance().getVersion();
onChanged();
return this;
}
/**
* optional string version = 2;
*/
public Builder setVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
version_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersion)
}
// @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersion)
private static final io.kubernetes.client.proto.Meta.GroupVersion DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.Meta.GroupVersion();
}
public static io.kubernetes.client.proto.Meta.GroupVersion getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GroupVersion parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GroupVersion(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupVersion getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GroupVersionForDiscoveryOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery)
com.google.protobuf.MessageOrBuilder {
/**
*
* groupVersion specifies the API group and version in the form "group/version"
*
* version specifies the version in the form of "version". This is to save
* the clients the trouble of splitting the GroupVersion.
*
*
* optional string version = 2;
*/
public Builder setVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
version_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery)
}
// @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery)
private static final io.kubernetes.client.proto.Meta.GroupVersionForDiscovery DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.Meta.GroupVersionForDiscovery();
}
public static io.kubernetes.client.proto.Meta.GroupVersionForDiscovery getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GroupVersionForDiscovery parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GroupVersionForDiscovery(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupVersionForDiscovery getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GroupVersionKindOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind)
com.google.protobuf.MessageOrBuilder {
/**
* optional string group = 1;
*/
boolean hasGroup();
/**
* optional string group = 1;
*/
java.lang.String getGroup();
/**
* optional string group = 1;
*/
com.google.protobuf.ByteString
getGroupBytes();
/**
* optional string version = 2;
*/
boolean hasVersion();
/**
* optional string version = 2;
*/
java.lang.String getVersion();
/**
* optional string version = 2;
*/
com.google.protobuf.ByteString
getVersionBytes();
/**
* optional string kind = 3;
*/
boolean hasKind();
/**
* optional string kind = 3;
*/
java.lang.String getKind();
/**
* optional string kind = 3;
*/
com.google.protobuf.ByteString
getKindBytes();
}
/**
*
* GroupVersionKind unambiguously identifies a kind. It doesn't anonymously include GroupVersion
* to avoid automatic 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();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
group_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
version_ = bs;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
kind_ = bs;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersionKind_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersionKind_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.GroupVersionKind.class, io.kubernetes.client.proto.Meta.GroupVersionKind.Builder.class);
}
private int bitField0_;
public static final int GROUP_FIELD_NUMBER = 1;
private volatile java.lang.Object group_;
/**
* optional string group = 1;
*/
public boolean hasGroup() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string group = 1;
*/
public java.lang.String getGroup() {
java.lang.Object ref = group_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
group_ = s;
}
return s;
}
}
/**
* optional string group = 1;
*/
public com.google.protobuf.ByteString
getGroupBytes() {
java.lang.Object ref = group_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
group_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VERSION_FIELD_NUMBER = 2;
private volatile java.lang.Object version_;
/**
* optional string version = 2;
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string version = 2;
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
version_ = s;
}
return s;
}
}
/**
* optional string version = 2;
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int KIND_FIELD_NUMBER = 3;
private volatile java.lang.Object kind_;
/**
* optional string kind = 3;
*/
public boolean hasKind() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string kind = 3;
*/
public java.lang.String getKind() {
java.lang.Object ref = kind_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
kind_ = s;
}
return s;
}
}
/**
* optional string kind = 3;
*/
public com.google.protobuf.ByteString
getKindBytes() {
java.lang.Object ref = kind_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
kind_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, group_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, kind_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, group_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, kind_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.Meta.GroupVersionKind)) {
return super.equals(obj);
}
io.kubernetes.client.proto.Meta.GroupVersionKind other = (io.kubernetes.client.proto.Meta.GroupVersionKind) obj;
boolean result = true;
result = result && (hasGroup() == other.hasGroup());
if (hasGroup()) {
result = result && getGroup()
.equals(other.getGroup());
}
result = result && (hasVersion() == other.hasVersion());
if (hasVersion()) {
result = result && getVersion()
.equals(other.getVersion());
}
result = result && (hasKind() == other.hasKind());
if (hasKind()) {
result = result && getKind()
.equals(other.getKind());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasGroup()) {
hash = (37 * hash) + GROUP_FIELD_NUMBER;
hash = (53 * hash) + getGroup().hashCode();
}
if (hasVersion()) {
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion().hashCode();
}
if (hasKind()) {
hash = (37 * hash) + KIND_FIELD_NUMBER;
hash = (53 * hash) + getKind().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.Meta.GroupVersionKind parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.GroupVersionKind parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.GroupVersionKind parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.GroupVersionKind parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.GroupVersionKind parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.GroupVersionKind parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.GroupVersionKind parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.GroupVersionKind parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.GroupVersionKind parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.GroupVersionKind parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.GroupVersionKind parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.GroupVersionKind parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.Meta.GroupVersionKind prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* GroupVersionKind unambiguously identifies a kind. It doesn't anonymously include GroupVersion
* to avoid automatic 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;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersionKind_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.GroupVersionKind.class, io.kubernetes.client.proto.Meta.GroupVersionKind.Builder.class);
}
// Construct using io.kubernetes.client.proto.Meta.GroupVersionKind.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
group_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
version_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
kind_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersionKind_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupVersionKind getDefaultInstanceForType() {
return io.kubernetes.client.proto.Meta.GroupVersionKind.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupVersionKind build() {
io.kubernetes.client.proto.Meta.GroupVersionKind result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupVersionKind buildPartial() {
io.kubernetes.client.proto.Meta.GroupVersionKind result = new io.kubernetes.client.proto.Meta.GroupVersionKind(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.group_ = group_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.version_ = version_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.kind_ = kind_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.Meta.GroupVersionKind) {
return mergeFrom((io.kubernetes.client.proto.Meta.GroupVersionKind)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.Meta.GroupVersionKind other) {
if (other == io.kubernetes.client.proto.Meta.GroupVersionKind.getDefaultInstance()) return this;
if (other.hasGroup()) {
bitField0_ |= 0x00000001;
group_ = other.group_;
onChanged();
}
if (other.hasVersion()) {
bitField0_ |= 0x00000002;
version_ = other.version_;
onChanged();
}
if (other.hasKind()) {
bitField0_ |= 0x00000004;
kind_ = other.kind_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.Meta.GroupVersionKind parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.Meta.GroupVersionKind) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object group_ = "";
/**
* optional string group = 1;
*/
public boolean hasGroup() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string group = 1;
*/
public java.lang.String getGroup() {
java.lang.Object ref = group_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
group_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string group = 1;
*/
public com.google.protobuf.ByteString
getGroupBytes() {
java.lang.Object ref = group_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
group_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string group = 1;
*/
public Builder setGroup(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
group_ = value;
onChanged();
return this;
}
/**
* optional string group = 1;
*/
public Builder clearGroup() {
bitField0_ = (bitField0_ & ~0x00000001);
group_ = getDefaultInstance().getGroup();
onChanged();
return this;
}
/**
* optional string group = 1;
*/
public Builder setGroupBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
group_ = value;
onChanged();
return this;
}
private java.lang.Object version_ = "";
/**
* optional string version = 2;
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string version = 2;
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
version_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string version = 2;
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string version = 2;
*/
public Builder setVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
version_ = value;
onChanged();
return this;
}
/**
* optional string version = 2;
*/
public Builder clearVersion() {
bitField0_ = (bitField0_ & ~0x00000002);
version_ = getDefaultInstance().getVersion();
onChanged();
return this;
}
/**
* optional string version = 2;
*/
public Builder setVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
version_ = value;
onChanged();
return this;
}
private java.lang.Object kind_ = "";
/**
* optional string kind = 3;
*/
public boolean hasKind() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string kind = 3;
*/
public java.lang.String getKind() {
java.lang.Object ref = kind_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
kind_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string kind = 3;
*/
public com.google.protobuf.ByteString
getKindBytes() {
java.lang.Object ref = kind_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
kind_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string kind = 3;
*/
public Builder setKind(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
kind_ = value;
onChanged();
return this;
}
/**
* optional string kind = 3;
*/
public Builder clearKind() {
bitField0_ = (bitField0_ & ~0x00000004);
kind_ = getDefaultInstance().getKind();
onChanged();
return this;
}
/**
* optional string kind = 3;
*/
public Builder setKindBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
kind_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind)
}
// @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind)
private static final io.kubernetes.client.proto.Meta.GroupVersionKind DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.Meta.GroupVersionKind();
}
public static io.kubernetes.client.proto.Meta.GroupVersionKind getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GroupVersionKind parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GroupVersionKind(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupVersionKind getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GroupVersionResourceOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource)
com.google.protobuf.MessageOrBuilder {
/**
* optional string group = 1;
*/
boolean hasGroup();
/**
* optional string group = 1;
*/
java.lang.String getGroup();
/**
* optional string group = 1;
*/
com.google.protobuf.ByteString
getGroupBytes();
/**
* optional string version = 2;
*/
boolean hasVersion();
/**
* optional string version = 2;
*/
java.lang.String getVersion();
/**
* optional string version = 2;
*/
com.google.protobuf.ByteString
getVersionBytes();
/**
* optional string resource = 3;
*/
boolean hasResource();
/**
* optional string resource = 3;
*/
java.lang.String getResource();
/**
* optional string resource = 3;
*/
com.google.protobuf.ByteString
getResourceBytes();
}
/**
*
* GroupVersionResource unambiguously identifies a resource. It doesn't anonymously include GroupVersion
* to avoid automatic 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();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
group_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
version_ = bs;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
resource_ = bs;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersionResource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersionResource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.GroupVersionResource.class, io.kubernetes.client.proto.Meta.GroupVersionResource.Builder.class);
}
private int bitField0_;
public static final int GROUP_FIELD_NUMBER = 1;
private volatile java.lang.Object group_;
/**
* optional string group = 1;
*/
public boolean hasGroup() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string group = 1;
*/
public java.lang.String getGroup() {
java.lang.Object ref = group_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
group_ = s;
}
return s;
}
}
/**
* optional string group = 1;
*/
public com.google.protobuf.ByteString
getGroupBytes() {
java.lang.Object ref = group_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
group_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VERSION_FIELD_NUMBER = 2;
private volatile java.lang.Object version_;
/**
* optional string version = 2;
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string version = 2;
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
version_ = s;
}
return s;
}
}
/**
* optional string version = 2;
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RESOURCE_FIELD_NUMBER = 3;
private volatile java.lang.Object resource_;
/**
* optional string resource = 3;
*/
public boolean hasResource() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string resource = 3;
*/
public java.lang.String getResource() {
java.lang.Object ref = resource_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
resource_ = s;
}
return s;
}
}
/**
* optional string resource = 3;
*/
public com.google.protobuf.ByteString
getResourceBytes() {
java.lang.Object ref = resource_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resource_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, group_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, resource_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, group_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resource_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.Meta.GroupVersionResource)) {
return super.equals(obj);
}
io.kubernetes.client.proto.Meta.GroupVersionResource other = (io.kubernetes.client.proto.Meta.GroupVersionResource) obj;
boolean result = true;
result = result && (hasGroup() == other.hasGroup());
if (hasGroup()) {
result = result && getGroup()
.equals(other.getGroup());
}
result = result && (hasVersion() == other.hasVersion());
if (hasVersion()) {
result = result && getVersion()
.equals(other.getVersion());
}
result = result && (hasResource() == other.hasResource());
if (hasResource()) {
result = result && getResource()
.equals(other.getResource());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasGroup()) {
hash = (37 * hash) + GROUP_FIELD_NUMBER;
hash = (53 * hash) + getGroup().hashCode();
}
if (hasVersion()) {
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion().hashCode();
}
if (hasResource()) {
hash = (37 * hash) + RESOURCE_FIELD_NUMBER;
hash = (53 * hash) + getResource().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.Meta.GroupVersionResource parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.GroupVersionResource parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.GroupVersionResource parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.GroupVersionResource parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.GroupVersionResource parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.Meta.GroupVersionResource parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.GroupVersionResource parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.GroupVersionResource parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.GroupVersionResource parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.GroupVersionResource parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.Meta.GroupVersionResource parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.Meta.GroupVersionResource parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.Meta.GroupVersionResource prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* GroupVersionResource unambiguously identifies a resource. It doesn't anonymously include GroupVersion
* to avoid automatic 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;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersionResource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.Meta.GroupVersionResource.class, io.kubernetes.client.proto.Meta.GroupVersionResource.Builder.class);
}
// Construct using io.kubernetes.client.proto.Meta.GroupVersionResource.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
group_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
version_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
resource_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_GroupVersionResource_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupVersionResource getDefaultInstanceForType() {
return io.kubernetes.client.proto.Meta.GroupVersionResource.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupVersionResource build() {
io.kubernetes.client.proto.Meta.GroupVersionResource result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupVersionResource buildPartial() {
io.kubernetes.client.proto.Meta.GroupVersionResource result = new io.kubernetes.client.proto.Meta.GroupVersionResource(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.group_ = group_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.version_ = version_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.resource_ = resource_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.Meta.GroupVersionResource) {
return mergeFrom((io.kubernetes.client.proto.Meta.GroupVersionResource)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.Meta.GroupVersionResource other) {
if (other == io.kubernetes.client.proto.Meta.GroupVersionResource.getDefaultInstance()) return this;
if (other.hasGroup()) {
bitField0_ |= 0x00000001;
group_ = other.group_;
onChanged();
}
if (other.hasVersion()) {
bitField0_ |= 0x00000002;
version_ = other.version_;
onChanged();
}
if (other.hasResource()) {
bitField0_ |= 0x00000004;
resource_ = other.resource_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.Meta.GroupVersionResource parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.Meta.GroupVersionResource) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object group_ = "";
/**
* optional string group = 1;
*/
public boolean hasGroup() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string group = 1;
*/
public java.lang.String getGroup() {
java.lang.Object ref = group_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
group_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string group = 1;
*/
public com.google.protobuf.ByteString
getGroupBytes() {
java.lang.Object ref = group_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
group_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string group = 1;
*/
public Builder setGroup(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
group_ = value;
onChanged();
return this;
}
/**
* optional string group = 1;
*/
public Builder clearGroup() {
bitField0_ = (bitField0_ & ~0x00000001);
group_ = getDefaultInstance().getGroup();
onChanged();
return this;
}
/**
* optional string group = 1;
*/
public Builder setGroupBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
group_ = value;
onChanged();
return this;
}
private java.lang.Object version_ = "";
/**
* optional string version = 2;
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string version = 2;
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
version_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string version = 2;
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string version = 2;
*/
public Builder setVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
version_ = value;
onChanged();
return this;
}
/**
* optional string version = 2;
*/
public Builder clearVersion() {
bitField0_ = (bitField0_ & ~0x00000002);
version_ = getDefaultInstance().getVersion();
onChanged();
return this;
}
/**
* optional string version = 2;
*/
public Builder setVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
version_ = value;
onChanged();
return this;
}
private java.lang.Object resource_ = "";
/**
* optional string resource = 3;
*/
public boolean hasResource() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string resource = 3;
*/
public java.lang.String getResource() {
java.lang.Object ref = resource_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
resource_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string resource = 3;
*/
public com.google.protobuf.ByteString
getResourceBytes() {
java.lang.Object ref = resource_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resource_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string resource = 3;
*/
public Builder setResource(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
resource_ = value;
onChanged();
return this;
}
/**
* optional string resource = 3;
*/
public Builder clearResource() {
bitField0_ = (bitField0_ & ~0x00000004);
resource_ = getDefaultInstance().getResource();
onChanged();
return this;
}
/**
* optional string resource = 3;
*/
public Builder setResourceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
resource_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource)
}
// @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource)
private static final io.kubernetes.client.proto.Meta.GroupVersionResource DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.Meta.GroupVersionResource();
}
public static io.kubernetes.client.proto.Meta.GroupVersionResource getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GroupVersionResource parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GroupVersionResource(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.Meta.GroupVersionResource getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface 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;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.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() {
@java.lang.Override
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;
}
@java.lang.Override
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.
* +patchMergeKey=name
* +patchStrategy=merge
*
* 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.
* +patchMergeKey=name
* +patchStrategy=merge
*
* 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.
* +patchMergeKey=name
* +patchStrategy=merge
*
* 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.
* +patchMergeKey=name
* +patchStrategy=merge
*
* 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.
* +patchMergeKey=name
* +patchStrategy=merge
*
* 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();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
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;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
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;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_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.
* +patchMergeKey=name
* +patchStrategy=merge
*
* 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.
* +patchMergeKey=name
* +patchStrategy=merge
*
* 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.
* +patchMergeKey=name
* +patchStrategy=merge
*
*
* 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.
* +patchMergeKey=name
* +patchStrategy=merge
*
* 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.
* +patchMergeKey=name
* +patchStrategy=merge
*
*
* 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;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < pending_.size(); i++) {
output.writeMessage(1, pending_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(2, getResult());
}
unknownFields.writeTo(output);
}
@java.lang.Override
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);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.Meta.Initializers prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Initializers tracks the progress of initialization.
*
* 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.
* +patchMergeKey=name
* +patchStrategy=merge
*
* 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.
* +patchMergeKey=name
* +patchStrategy=merge
*
*
* 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.
* +patchMergeKey=name
* +patchStrategy=merge
*
* 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.
* +patchMergeKey=name
* +patchStrategy=merge
*
*
* 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.
* +patchMergeKey=name
* +patchStrategy=merge
*
* 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.
* +patchMergeKey=name
* +patchStrategy=merge
*
*
* 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.
* +patchMergeKey=name
* +patchStrategy=merge
*
*
* 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.
* +patchMergeKey=name
* +patchStrategy=merge
*
* 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.
* +patchMergeKey=name
* +patchStrategy=merge
*
* 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.
* +patchMergeKey=name
* +patchStrategy=merge
*
* 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.
* +patchMergeKey=name
* +patchStrategy=merge
*
* 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.
* +patchMergeKey=name
* +patchStrategy=merge
*
* 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.
* +patchMergeKey=name
* +patchStrategy=merge
*
*
* 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.
* +patchMergeKey=name
* +patchStrategy=merge
*
*
* 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.
* +patchMergeKey=name
* +patchStrategy=merge
*
* 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.
* +patchMergeKey=name
* +patchStrategy=merge
*
* 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.
* +patchMergeKey=name
* +patchStrategy=merge
*
* 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.
* +patchMergeKey=name
* +patchStrategy=merge
*
* 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_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.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() {
@java.lang.Override
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;
}
@java.lang.Override
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
*