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.
*
* optional string driver = 1;
*/
public Builder setDriverBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
driver_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.extensions.v1beta1.AllowedFlexVolume)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.extensions.v1beta1.AllowedFlexVolume)
private static final io.kubernetes.client.proto.V1beta1Extensions.AllowedFlexVolume DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Extensions.AllowedFlexVolume();
}
public static io.kubernetes.client.proto.V1beta1Extensions.AllowedFlexVolume getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AllowedFlexVolume parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AllowedFlexVolume(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.AllowedFlexVolume getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AllowedHostPathOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.extensions.v1beta1.AllowedHostPath)
com.google.protobuf.MessageOrBuilder {
/**
*
* pathPrefix is the path prefix that the host volume must match.
* It does not support `*`.
* Trailing slashes are trimmed when validating the path prefix with a host path.
* Examples:
* `/foo` would allow `/foo`, `/foo/` and `/foo/bar`
* `/foo` would not allow `/food` or `/etc/foo`
*
* pathPrefix is the path prefix that the host volume must match.
* It does not support `*`.
* Trailing slashes are trimmed when validating the path prefix with a host path.
* Examples:
* `/foo` would allow `/foo`, `/foo/` and `/foo/bar`
* `/foo` would not allow `/food` or `/etc/foo`
*
* pathPrefix is the path prefix that the host volume must match.
* It does not support `*`.
* Trailing slashes are trimmed when validating the path prefix with a host path.
* Examples:
* `/foo` would allow `/foo`, `/foo/` and `/foo/bar`
* `/foo` would not allow `/food` or `/etc/foo`
*
* AllowedHostPath defines the host volume conditions that will be enabled by a policy
* for pods to use. It requires the path prefix to be defined.
* Deprecated: use AllowedHostPath from policy API Group instead.
*
*
* Protobuf type {@code k8s.io.api.extensions.v1beta1.AllowedHostPath}
*/
public static final class AllowedHostPath extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.extensions.v1beta1.AllowedHostPath)
AllowedHostPathOrBuilder {
private static final long serialVersionUID = 0L;
// Use AllowedHostPath.newBuilder() to construct.
private AllowedHostPath(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AllowedHostPath() {
pathPrefix_ = "";
readOnly_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AllowedHostPath(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
pathPrefix_ = bs;
break;
}
case 16: {
bitField0_ |= 0x00000002;
readOnly_ = input.readBool();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_AllowedHostPath_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_AllowedHostPath_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Extensions.AllowedHostPath.class, io.kubernetes.client.proto.V1beta1Extensions.AllowedHostPath.Builder.class);
}
private int bitField0_;
public static final int PATHPREFIX_FIELD_NUMBER = 1;
private volatile java.lang.Object pathPrefix_;
/**
*
* pathPrefix is the path prefix that the host volume must match.
* It does not support `*`.
* Trailing slashes are trimmed when validating the path prefix with a host path.
* Examples:
* `/foo` would allow `/foo`, `/foo/` and `/foo/bar`
* `/foo` would not allow `/food` or `/etc/foo`
*
* pathPrefix is the path prefix that the host volume must match.
* It does not support `*`.
* Trailing slashes are trimmed when validating the path prefix with a host path.
* Examples:
* `/foo` would allow `/foo`, `/foo/` and `/foo/bar`
* `/foo` would not allow `/food` or `/etc/foo`
*
* pathPrefix is the path prefix that the host volume must match.
* It does not support `*`.
* Trailing slashes are trimmed when validating the path prefix with a host path.
* Examples:
* `/foo` would allow `/foo`, `/foo/` and `/foo/bar`
* `/foo` would not allow `/food` or `/etc/foo`
*
*
* optional string pathPrefix = 1;
*/
public com.google.protobuf.ByteString
getPathPrefixBytes() {
java.lang.Object ref = pathPrefix_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pathPrefix_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int READONLY_FIELD_NUMBER = 2;
private boolean readOnly_;
/**
*
* when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.
* +optional
*
* when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.
* +optional
*
*
* optional bool readOnly = 2;
*/
public boolean getReadOnly() {
return readOnly_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pathPrefix_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBool(2, readOnly_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pathPrefix_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, readOnly_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1beta1Extensions.AllowedHostPath)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta1Extensions.AllowedHostPath other = (io.kubernetes.client.proto.V1beta1Extensions.AllowedHostPath) obj;
boolean result = true;
result = result && (hasPathPrefix() == other.hasPathPrefix());
if (hasPathPrefix()) {
result = result && getPathPrefix()
.equals(other.getPathPrefix());
}
result = result && (hasReadOnly() == other.hasReadOnly());
if (hasReadOnly()) {
result = result && (getReadOnly()
== other.getReadOnly());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasPathPrefix()) {
hash = (37 * hash) + PATHPREFIX_FIELD_NUMBER;
hash = (53 * hash) + getPathPrefix().hashCode();
}
if (hasReadOnly()) {
hash = (37 * hash) + READONLY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getReadOnly());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta1Extensions.AllowedHostPath parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.AllowedHostPath parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta1Extensions.AllowedHostPath parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.AllowedHostPath parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta1Extensions.AllowedHostPath parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.AllowedHostPath parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta1Extensions.AllowedHostPath parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.AllowedHostPath parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta1Extensions.AllowedHostPath parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.AllowedHostPath parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta1Extensions.AllowedHostPath parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.AllowedHostPath parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.V1beta1Extensions.AllowedHostPath prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* AllowedHostPath defines the host volume conditions that will be enabled by a policy
* for pods to use. It requires the path prefix to be defined.
* Deprecated: use AllowedHostPath from policy API Group instead.
*
*
* Protobuf type {@code k8s.io.api.extensions.v1beta1.AllowedHostPath}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.extensions.v1beta1.AllowedHostPath)
io.kubernetes.client.proto.V1beta1Extensions.AllowedHostPathOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_AllowedHostPath_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_AllowedHostPath_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Extensions.AllowedHostPath.class, io.kubernetes.client.proto.V1beta1Extensions.AllowedHostPath.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1beta1Extensions.AllowedHostPath.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
pathPrefix_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
readOnly_ = false;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_AllowedHostPath_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.AllowedHostPath getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1beta1Extensions.AllowedHostPath.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.AllowedHostPath build() {
io.kubernetes.client.proto.V1beta1Extensions.AllowedHostPath result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.AllowedHostPath buildPartial() {
io.kubernetes.client.proto.V1beta1Extensions.AllowedHostPath result = new io.kubernetes.client.proto.V1beta1Extensions.AllowedHostPath(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.pathPrefix_ = pathPrefix_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.readOnly_ = readOnly_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1beta1Extensions.AllowedHostPath) {
return mergeFrom((io.kubernetes.client.proto.V1beta1Extensions.AllowedHostPath)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Extensions.AllowedHostPath other) {
if (other == io.kubernetes.client.proto.V1beta1Extensions.AllowedHostPath.getDefaultInstance()) return this;
if (other.hasPathPrefix()) {
bitField0_ |= 0x00000001;
pathPrefix_ = other.pathPrefix_;
onChanged();
}
if (other.hasReadOnly()) {
setReadOnly(other.getReadOnly());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1beta1Extensions.AllowedHostPath parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1beta1Extensions.AllowedHostPath) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object pathPrefix_ = "";
/**
*
* pathPrefix is the path prefix that the host volume must match.
* It does not support `*`.
* Trailing slashes are trimmed when validating the path prefix with a host path.
* Examples:
* `/foo` would allow `/foo`, `/foo/` and `/foo/bar`
* `/foo` would not allow `/food` or `/etc/foo`
*
* pathPrefix is the path prefix that the host volume must match.
* It does not support `*`.
* Trailing slashes are trimmed when validating the path prefix with a host path.
* Examples:
* `/foo` would allow `/foo`, `/foo/` and `/foo/bar`
* `/foo` would not allow `/food` or `/etc/foo`
*
* pathPrefix is the path prefix that the host volume must match.
* It does not support `*`.
* Trailing slashes are trimmed when validating the path prefix with a host path.
* Examples:
* `/foo` would allow `/foo`, `/foo/` and `/foo/bar`
* `/foo` would not allow `/food` or `/etc/foo`
*
* pathPrefix is the path prefix that the host volume must match.
* It does not support `*`.
* Trailing slashes are trimmed when validating the path prefix with a host path.
* Examples:
* `/foo` would allow `/foo`, `/foo/` and `/foo/bar`
* `/foo` would not allow `/food` or `/etc/foo`
*
* pathPrefix is the path prefix that the host volume must match.
* It does not support `*`.
* Trailing slashes are trimmed when validating the path prefix with a host path.
* Examples:
* `/foo` would allow `/foo`, `/foo/` and `/foo/bar`
* `/foo` would not allow `/food` or `/etc/foo`
*
* pathPrefix is the path prefix that the host volume must match.
* It does not support `*`.
* Trailing slashes are trimmed when validating the path prefix with a host path.
* Examples:
* `/foo` would allow `/foo`, `/foo/` and `/foo/bar`
* `/foo` would not allow `/food` or `/etc/foo`
*
* The desired behavior of this daemon set.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* The desired behavior of this daemon set.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* The desired behavior of this daemon set.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* The current status of this daemon set. This data may be
* out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* The current status of this daemon set. This data may be
* out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* The current status of this daemon set. This data may be
* out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* DEPRECATED - This group version of DaemonSet is deprecated by apps/v1beta2/DaemonSet. See the release notes for
* more information.
* DaemonSet represents the configuration of a daemon set.
*
*
* Protobuf type {@code k8s.io.api.extensions.v1beta1.DaemonSet}
*/
public static final class DaemonSet extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.extensions.v1beta1.DaemonSet)
DaemonSetOrBuilder {
private static final long serialVersionUID = 0L;
// Use DaemonSet.newBuilder() to construct.
private DaemonSet(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DaemonSet() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DaemonSet(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
io.kubernetes.client.proto.Meta.ObjectMeta.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ObjectMeta.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
io.kubernetes.client.proto.V1beta1Extensions.DaemonSetSpec.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = spec_.toBuilder();
}
spec_ = input.readMessage(io.kubernetes.client.proto.V1beta1Extensions.DaemonSetSpec.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(spec_);
spec_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
io.kubernetes.client.proto.V1beta1Extensions.DaemonSetStatus.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = status_.toBuilder();
}
status_ = input.readMessage(io.kubernetes.client.proto.V1beta1Extensions.DaemonSetStatus.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(status_);
status_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_DaemonSet_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_DaemonSet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Extensions.DaemonSet.class, io.kubernetes.client.proto.V1beta1Extensions.DaemonSet.Builder.class);
}
private int bitField0_;
public static final int METADATA_FIELD_NUMBER = 1;
private io.kubernetes.client.proto.Meta.ObjectMeta metadata_;
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() {
return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_;
}
public static final int SPEC_FIELD_NUMBER = 2;
private io.kubernetes.client.proto.V1beta1Extensions.DaemonSetSpec spec_;
/**
*
* The desired behavior of this daemon set.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* The desired behavior of this daemon set.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* The desired behavior of this daemon set.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.extensions.v1beta1.DaemonSetSpec spec = 2;
*/
public io.kubernetes.client.proto.V1beta1Extensions.DaemonSetSpecOrBuilder getSpecOrBuilder() {
return spec_ == null ? io.kubernetes.client.proto.V1beta1Extensions.DaemonSetSpec.getDefaultInstance() : spec_;
}
public static final int STATUS_FIELD_NUMBER = 3;
private io.kubernetes.client.proto.V1beta1Extensions.DaemonSetStatus status_;
/**
*
* The current status of this daemon set. This data may be
* out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* The current status of this daemon set. This data may be
* out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* The current status of this daemon set. This data may be
* out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.extensions.v1beta1.DaemonSetStatus status = 3;
*/
public io.kubernetes.client.proto.V1beta1Extensions.DaemonSetStatusOrBuilder getStatusOrBuilder() {
return status_ == null ? io.kubernetes.client.proto.V1beta1Extensions.DaemonSetStatus.getDefaultInstance() : status_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getMetadata());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getSpec());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, getStatus());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getMetadata());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSpec());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getStatus());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1beta1Extensions.DaemonSet)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta1Extensions.DaemonSet other = (io.kubernetes.client.proto.V1beta1Extensions.DaemonSet) obj;
boolean result = true;
result = result && (hasMetadata() == other.hasMetadata());
if (hasMetadata()) {
result = result && getMetadata()
.equals(other.getMetadata());
}
result = result && (hasSpec() == other.hasSpec());
if (hasSpec()) {
result = result && getSpec()
.equals(other.getSpec());
}
result = result && (hasStatus() == other.hasStatus());
if (hasStatus()) {
result = result && getStatus()
.equals(other.getStatus());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
if (hasSpec()) {
hash = (37 * hash) + SPEC_FIELD_NUMBER;
hash = (53 * hash) + getSpec().hashCode();
}
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta1Extensions.DaemonSet parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DaemonSet 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.V1beta1Extensions.DaemonSet parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DaemonSet 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.V1beta1Extensions.DaemonSet parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DaemonSet parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DaemonSet parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DaemonSet 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.V1beta1Extensions.DaemonSet parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DaemonSet 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.V1beta1Extensions.DaemonSet parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DaemonSet 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.V1beta1Extensions.DaemonSet 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;
}
/**
*
* DEPRECATED - This group version of DaemonSet is deprecated by apps/v1beta2/DaemonSet. See the release notes for
* more information.
* DaemonSet represents the configuration of a daemon set.
*
*
* Protobuf type {@code k8s.io.api.extensions.v1beta1.DaemonSet}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.extensions.v1beta1.DaemonSet)
io.kubernetes.client.proto.V1beta1Extensions.DaemonSetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_DaemonSet_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_DaemonSet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Extensions.DaemonSet.class, io.kubernetes.client.proto.V1beta1Extensions.DaemonSet.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1beta1Extensions.DaemonSet.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMetadataFieldBuilder();
getSpecFieldBuilder();
getStatusFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (specBuilder_ == null) {
spec_ = null;
} else {
specBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (statusBuilder_ == null) {
status_ = null;
} else {
statusBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_DaemonSet_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.DaemonSet getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1beta1Extensions.DaemonSet.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.DaemonSet build() {
io.kubernetes.client.proto.V1beta1Extensions.DaemonSet result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.DaemonSet buildPartial() {
io.kubernetes.client.proto.V1beta1Extensions.DaemonSet result = new io.kubernetes.client.proto.V1beta1Extensions.DaemonSet(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (specBuilder_ == null) {
result.spec_ = spec_;
} else {
result.spec_ = specBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (statusBuilder_ == null) {
result.status_ = status_;
} else {
result.status_ = statusBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1beta1Extensions.DaemonSet) {
return mergeFrom((io.kubernetes.client.proto.V1beta1Extensions.DaemonSet)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Extensions.DaemonSet other) {
if (other == io.kubernetes.client.proto.V1beta1Extensions.DaemonSet.getDefaultInstance()) return this;
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
if (other.hasSpec()) {
mergeSpec(other.getSpec());
}
if (other.hasStatus()) {
mergeStatus(other.getStatus());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1beta1Extensions.DaemonSet parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1beta1Extensions.DaemonSet) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_;
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
* The desired behavior of this daemon set.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* The desired behavior of this daemon set.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* The desired behavior of this daemon set.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* The desired behavior of this daemon set.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* The desired behavior of this daemon set.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* The desired behavior of this daemon set.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* The desired behavior of this daemon set.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* The desired behavior of this daemon set.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* The desired behavior of this daemon set.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* The current status of this daemon set. This data may be
* out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* The current status of this daemon set. This data may be
* out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* The current status of this daemon set. This data may be
* out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.extensions.v1beta1.DaemonSetStatus status = 3;
*/
public Builder setStatus(io.kubernetes.client.proto.V1beta1Extensions.DaemonSetStatus value) {
if (statusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
status_ = value;
onChanged();
} else {
statusBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
*
* The current status of this daemon set. This data may be
* out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* The current status of this daemon set. This data may be
* out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* The current status of this daemon set. This data may be
* out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* The current status of this daemon set. This data may be
* out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* The current status of this daemon set. This data may be
* out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* The current status of this daemon set. This data may be
* out of date by some window of time.
* Populated by the system.
* Read-only.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.extensions.v1beta1.DaemonSetStatus status = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1beta1Extensions.DaemonSetStatus, io.kubernetes.client.proto.V1beta1Extensions.DaemonSetStatus.Builder, io.kubernetes.client.proto.V1beta1Extensions.DaemonSetStatusOrBuilder>
getStatusFieldBuilder() {
if (statusBuilder_ == null) {
statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1beta1Extensions.DaemonSetStatus, io.kubernetes.client.proto.V1beta1Extensions.DaemonSetStatus.Builder, io.kubernetes.client.proto.V1beta1Extensions.DaemonSetStatusOrBuilder>(
getStatus(),
getParentForChildren(),
isClean());
status_ = null;
}
return statusBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.extensions.v1beta1.DaemonSet)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.extensions.v1beta1.DaemonSet)
private static final io.kubernetes.client.proto.V1beta1Extensions.DaemonSet DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Extensions.DaemonSet();
}
public static io.kubernetes.client.proto.V1beta1Extensions.DaemonSet getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DaemonSet parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DaemonSet(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.V1beta1Extensions.DaemonSet getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DaemonSetConditionOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.extensions.v1beta1.DaemonSetCondition)
com.google.protobuf.MessageOrBuilder {
/**
*
*
* repeated .k8s.io.api.extensions.v1beta1.DaemonSet items = 2;
*/
public java.util.List
getItemsBuilderList() {
return getItemsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1beta1Extensions.DaemonSet, io.kubernetes.client.proto.V1beta1Extensions.DaemonSet.Builder, io.kubernetes.client.proto.V1beta1Extensions.DaemonSetOrBuilder>
getItemsFieldBuilder() {
if (itemsBuilder_ == null) {
itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1beta1Extensions.DaemonSet, io.kubernetes.client.proto.V1beta1Extensions.DaemonSet.Builder, io.kubernetes.client.proto.V1beta1Extensions.DaemonSetOrBuilder>(
items_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
items_ = null;
}
return itemsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.extensions.v1beta1.DaemonSetList)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.extensions.v1beta1.DaemonSetList)
private static final io.kubernetes.client.proto.V1beta1Extensions.DaemonSetList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Extensions.DaemonSetList();
}
public static io.kubernetes.client.proto.V1beta1Extensions.DaemonSetList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DaemonSetList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DaemonSetList(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.V1beta1Extensions.DaemonSetList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DaemonSetSpecOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.extensions.v1beta1.DaemonSetSpec)
com.google.protobuf.MessageOrBuilder {
/**
*
* A label query over pods that are managed by the daemon set.
* Must match in order to be controlled.
* If empty, defaulted to labels on Pod template.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
* +optional
*
* A label query over pods that are managed by the daemon set.
* Must match in order to be controlled.
* If empty, defaulted to labels on Pod template.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
* +optional
*
* A label query over pods that are managed by the daemon set.
* Must match in order to be controlled.
* If empty, defaulted to labels on Pod template.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
* +optional
*
* An object that describes the pod that will be created.
* The DaemonSet will create exactly one copy of this pod on every node
* that matches the template's node selector (or on every node if no node
* selector is specified).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
*
* An object that describes the pod that will be created.
* The DaemonSet will create exactly one copy of this pod on every node
* that matches the template's node selector (or on every node if no node
* selector is specified).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
*
* An object that describes the pod that will be created.
* The DaemonSet will create exactly one copy of this pod on every node
* that matches the template's node selector (or on every node if no node
* selector is specified).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
*
* The minimum number of seconds for which a newly created DaemonSet pod should
* be ready without any of its container crashing, for it to be considered
* available. Defaults to 0 (pod will be considered available as soon as it
* is ready).
* +optional
*
* The minimum number of seconds for which a newly created DaemonSet pod should
* be ready without any of its container crashing, for it to be considered
* available. Defaults to 0 (pod will be considered available as soon as it
* is ready).
* +optional
*
* DEPRECATED.
* A sequence number representing a specific generation of the template.
* Populated by the system. It can be set only during the creation.
* +optional
*
* DEPRECATED.
* A sequence number representing a specific generation of the template.
* Populated by the system. It can be set only during the creation.
* +optional
*
* The number of old history to retain to allow rollback.
* This is a pointer to distinguish between explicit zero and not specified.
* Defaults to 10.
* +optional
*
* The number of old history to retain to allow rollback.
* This is a pointer to distinguish between explicit zero and not specified.
* Defaults to 10.
* +optional
*
* DaemonSetSpec is the specification of a daemon set.
*
*
* Protobuf type {@code k8s.io.api.extensions.v1beta1.DaemonSetSpec}
*/
public static final class DaemonSetSpec extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.extensions.v1beta1.DaemonSetSpec)
DaemonSetSpecOrBuilder {
private static final long serialVersionUID = 0L;
// Use DaemonSetSpec.newBuilder() to construct.
private DaemonSetSpec(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DaemonSetSpec() {
minReadySeconds_ = 0;
templateGeneration_ = 0L;
revisionHistoryLimit_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DaemonSetSpec(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
io.kubernetes.client.proto.Meta.LabelSelector.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = selector_.toBuilder();
}
selector_ = input.readMessage(io.kubernetes.client.proto.Meta.LabelSelector.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(selector_);
selector_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
io.kubernetes.client.proto.V1.PodTemplateSpec.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = template_.toBuilder();
}
template_ = input.readMessage(io.kubernetes.client.proto.V1.PodTemplateSpec.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(template_);
template_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategy.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = updateStrategy_.toBuilder();
}
updateStrategy_ = input.readMessage(io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategy.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(updateStrategy_);
updateStrategy_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 32: {
bitField0_ |= 0x00000008;
minReadySeconds_ = input.readInt32();
break;
}
case 40: {
bitField0_ |= 0x00000010;
templateGeneration_ = input.readInt64();
break;
}
case 48: {
bitField0_ |= 0x00000020;
revisionHistoryLimit_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_DaemonSetSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_DaemonSetSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Extensions.DaemonSetSpec.class, io.kubernetes.client.proto.V1beta1Extensions.DaemonSetSpec.Builder.class);
}
private int bitField0_;
public static final int SELECTOR_FIELD_NUMBER = 1;
private io.kubernetes.client.proto.Meta.LabelSelector selector_;
/**
*
* A label query over pods that are managed by the daemon set.
* Must match in order to be controlled.
* If empty, defaulted to labels on Pod template.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
* +optional
*
* A label query over pods that are managed by the daemon set.
* Must match in order to be controlled.
* If empty, defaulted to labels on Pod template.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
* +optional
*
* A label query over pods that are managed by the daemon set.
* Must match in order to be controlled.
* If empty, defaulted to labels on Pod template.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 1;
*/
public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getSelectorOrBuilder() {
return selector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : selector_;
}
public static final int TEMPLATE_FIELD_NUMBER = 2;
private io.kubernetes.client.proto.V1.PodTemplateSpec template_;
/**
*
* An object that describes the pod that will be created.
* The DaemonSet will create exactly one copy of this pod on every node
* that matches the template's node selector (or on every node if no node
* selector is specified).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
*
* An object that describes the pod that will be created.
* The DaemonSet will create exactly one copy of this pod on every node
* that matches the template's node selector (or on every node if no node
* selector is specified).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
*
* An object that describes the pod that will be created.
* The DaemonSet will create exactly one copy of this pod on every node
* that matches the template's node selector (or on every node if no node
* selector is specified).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
*
*
* optional .k8s.io.api.core.v1.PodTemplateSpec template = 2;
*/
public io.kubernetes.client.proto.V1.PodTemplateSpecOrBuilder getTemplateOrBuilder() {
return template_ == null ? io.kubernetes.client.proto.V1.PodTemplateSpec.getDefaultInstance() : template_;
}
public static final int UPDATESTRATEGY_FIELD_NUMBER = 3;
private io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategy updateStrategy_;
/**
*
* An update strategy to replace existing DaemonSet pods with new pods.
* +optional
*
* An update strategy to replace existing DaemonSet pods with new pods.
* +optional
*
*
* optional .k8s.io.api.extensions.v1beta1.DaemonSetUpdateStrategy updateStrategy = 3;
*/
public io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategyOrBuilder getUpdateStrategyOrBuilder() {
return updateStrategy_ == null ? io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategy.getDefaultInstance() : updateStrategy_;
}
public static final int MINREADYSECONDS_FIELD_NUMBER = 4;
private int minReadySeconds_;
/**
*
* The minimum number of seconds for which a newly created DaemonSet pod should
* be ready without any of its container crashing, for it to be considered
* available. Defaults to 0 (pod will be considered available as soon as it
* is ready).
* +optional
*
* The minimum number of seconds for which a newly created DaemonSet pod should
* be ready without any of its container crashing, for it to be considered
* available. Defaults to 0 (pod will be considered available as soon as it
* is ready).
* +optional
*
*
* optional int32 minReadySeconds = 4;
*/
public int getMinReadySeconds() {
return minReadySeconds_;
}
public static final int TEMPLATEGENERATION_FIELD_NUMBER = 5;
private long templateGeneration_;
/**
*
* DEPRECATED.
* A sequence number representing a specific generation of the template.
* Populated by the system. It can be set only during the creation.
* +optional
*
* DEPRECATED.
* A sequence number representing a specific generation of the template.
* Populated by the system. It can be set only during the creation.
* +optional
*
*
* optional int64 templateGeneration = 5;
*/
public long getTemplateGeneration() {
return templateGeneration_;
}
public static final int REVISIONHISTORYLIMIT_FIELD_NUMBER = 6;
private int revisionHistoryLimit_;
/**
*
* The number of old history to retain to allow rollback.
* This is a pointer to distinguish between explicit zero and not specified.
* Defaults to 10.
* +optional
*
* The number of old history to retain to allow rollback.
* This is a pointer to distinguish between explicit zero and not specified.
* Defaults to 10.
* +optional
*
*
* optional int32 revisionHistoryLimit = 6;
*/
public int getRevisionHistoryLimit() {
return revisionHistoryLimit_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getSelector());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getTemplate());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, getUpdateStrategy());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt32(4, minReadySeconds_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt64(5, templateGeneration_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeInt32(6, revisionHistoryLimit_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getSelector());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getTemplate());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getUpdateStrategy());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, minReadySeconds_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, templateGeneration_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, revisionHistoryLimit_);
}
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.V1beta1Extensions.DaemonSetSpec)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta1Extensions.DaemonSetSpec other = (io.kubernetes.client.proto.V1beta1Extensions.DaemonSetSpec) obj;
boolean result = true;
result = result && (hasSelector() == other.hasSelector());
if (hasSelector()) {
result = result && getSelector()
.equals(other.getSelector());
}
result = result && (hasTemplate() == other.hasTemplate());
if (hasTemplate()) {
result = result && getTemplate()
.equals(other.getTemplate());
}
result = result && (hasUpdateStrategy() == other.hasUpdateStrategy());
if (hasUpdateStrategy()) {
result = result && getUpdateStrategy()
.equals(other.getUpdateStrategy());
}
result = result && (hasMinReadySeconds() == other.hasMinReadySeconds());
if (hasMinReadySeconds()) {
result = result && (getMinReadySeconds()
== other.getMinReadySeconds());
}
result = result && (hasTemplateGeneration() == other.hasTemplateGeneration());
if (hasTemplateGeneration()) {
result = result && (getTemplateGeneration()
== other.getTemplateGeneration());
}
result = result && (hasRevisionHistoryLimit() == other.hasRevisionHistoryLimit());
if (hasRevisionHistoryLimit()) {
result = result && (getRevisionHistoryLimit()
== other.getRevisionHistoryLimit());
}
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 (hasSelector()) {
hash = (37 * hash) + SELECTOR_FIELD_NUMBER;
hash = (53 * hash) + getSelector().hashCode();
}
if (hasTemplate()) {
hash = (37 * hash) + TEMPLATE_FIELD_NUMBER;
hash = (53 * hash) + getTemplate().hashCode();
}
if (hasUpdateStrategy()) {
hash = (37 * hash) + UPDATESTRATEGY_FIELD_NUMBER;
hash = (53 * hash) + getUpdateStrategy().hashCode();
}
if (hasMinReadySeconds()) {
hash = (37 * hash) + MINREADYSECONDS_FIELD_NUMBER;
hash = (53 * hash) + getMinReadySeconds();
}
if (hasTemplateGeneration()) {
hash = (37 * hash) + TEMPLATEGENERATION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTemplateGeneration());
}
if (hasRevisionHistoryLimit()) {
hash = (37 * hash) + REVISIONHISTORYLIMIT_FIELD_NUMBER;
hash = (53 * hash) + getRevisionHistoryLimit();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta1Extensions.DaemonSetSpec parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DaemonSetSpec 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.V1beta1Extensions.DaemonSetSpec parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DaemonSetSpec 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.V1beta1Extensions.DaemonSetSpec parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DaemonSetSpec parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DaemonSetSpec parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DaemonSetSpec 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.V1beta1Extensions.DaemonSetSpec parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DaemonSetSpec 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.V1beta1Extensions.DaemonSetSpec parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DaemonSetSpec 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.V1beta1Extensions.DaemonSetSpec 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;
}
/**
*
* DaemonSetSpec is the specification of a daemon set.
*
* A label query over pods that are managed by the daemon set.
* Must match in order to be controlled.
* If empty, defaulted to labels on Pod template.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
* +optional
*
* A label query over pods that are managed by the daemon set.
* Must match in order to be controlled.
* If empty, defaulted to labels on Pod template.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
* +optional
*
* A label query over pods that are managed by the daemon set.
* Must match in order to be controlled.
* If empty, defaulted to labels on Pod template.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
* +optional
*
* A label query over pods that are managed by the daemon set.
* Must match in order to be controlled.
* If empty, defaulted to labels on Pod template.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
* +optional
*
* A label query over pods that are managed by the daemon set.
* Must match in order to be controlled.
* If empty, defaulted to labels on Pod template.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
* +optional
*
* A label query over pods that are managed by the daemon set.
* Must match in order to be controlled.
* If empty, defaulted to labels on Pod template.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
* +optional
*
* A label query over pods that are managed by the daemon set.
* Must match in order to be controlled.
* If empty, defaulted to labels on Pod template.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
* +optional
*
* A label query over pods that are managed by the daemon set.
* Must match in order to be controlled.
* If empty, defaulted to labels on Pod template.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
* +optional
*
* A label query over pods that are managed by the daemon set.
* Must match in order to be controlled.
* If empty, defaulted to labels on Pod template.
* More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
* +optional
*
* An object that describes the pod that will be created.
* The DaemonSet will create exactly one copy of this pod on every node
* that matches the template's node selector (or on every node if no node
* selector is specified).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
*
* An object that describes the pod that will be created.
* The DaemonSet will create exactly one copy of this pod on every node
* that matches the template's node selector (or on every node if no node
* selector is specified).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
*
* An object that describes the pod that will be created.
* The DaemonSet will create exactly one copy of this pod on every node
* that matches the template's node selector (or on every node if no node
* selector is specified).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
*
* An object that describes the pod that will be created.
* The DaemonSet will create exactly one copy of this pod on every node
* that matches the template's node selector (or on every node if no node
* selector is specified).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
*
* An object that describes the pod that will be created.
* The DaemonSet will create exactly one copy of this pod on every node
* that matches the template's node selector (or on every node if no node
* selector is specified).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
*
* An object that describes the pod that will be created.
* The DaemonSet will create exactly one copy of this pod on every node
* that matches the template's node selector (or on every node if no node
* selector is specified).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
*
* An object that describes the pod that will be created.
* The DaemonSet will create exactly one copy of this pod on every node
* that matches the template's node selector (or on every node if no node
* selector is specified).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
*
* An object that describes the pod that will be created.
* The DaemonSet will create exactly one copy of this pod on every node
* that matches the template's node selector (or on every node if no node
* selector is specified).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
*
* An object that describes the pod that will be created.
* The DaemonSet will create exactly one copy of this pod on every node
* that matches the template's node selector (or on every node if no node
* selector is specified).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
*
* The minimum number of seconds for which a newly created DaemonSet pod should
* be ready without any of its container crashing, for it to be considered
* available. Defaults to 0 (pod will be considered available as soon as it
* is ready).
* +optional
*
* The minimum number of seconds for which a newly created DaemonSet pod should
* be ready without any of its container crashing, for it to be considered
* available. Defaults to 0 (pod will be considered available as soon as it
* is ready).
* +optional
*
*
* optional int32 minReadySeconds = 4;
*/
public int getMinReadySeconds() {
return minReadySeconds_;
}
/**
*
* The minimum number of seconds for which a newly created DaemonSet pod should
* be ready without any of its container crashing, for it to be considered
* available. Defaults to 0 (pod will be considered available as soon as it
* is ready).
* +optional
*
* The minimum number of seconds for which a newly created DaemonSet pod should
* be ready without any of its container crashing, for it to be considered
* available. Defaults to 0 (pod will be considered available as soon as it
* is ready).
* +optional
*
* DEPRECATED.
* A sequence number representing a specific generation of the template.
* Populated by the system. It can be set only during the creation.
* +optional
*
* DEPRECATED.
* A sequence number representing a specific generation of the template.
* Populated by the system. It can be set only during the creation.
* +optional
*
*
* optional int64 templateGeneration = 5;
*/
public long getTemplateGeneration() {
return templateGeneration_;
}
/**
*
* DEPRECATED.
* A sequence number representing a specific generation of the template.
* Populated by the system. It can be set only during the creation.
* +optional
*
* DEPRECATED.
* A sequence number representing a specific generation of the template.
* Populated by the system. It can be set only during the creation.
* +optional
*
* The number of old history to retain to allow rollback.
* This is a pointer to distinguish between explicit zero and not specified.
* Defaults to 10.
* +optional
*
* The number of old history to retain to allow rollback.
* This is a pointer to distinguish between explicit zero and not specified.
* Defaults to 10.
* +optional
*
*
* optional int32 revisionHistoryLimit = 6;
*/
public int getRevisionHistoryLimit() {
return revisionHistoryLimit_;
}
/**
*
* The number of old history to retain to allow rollback.
* This is a pointer to distinguish between explicit zero and not specified.
* Defaults to 10.
* +optional
*
* The number of old history to retain to allow rollback.
* This is a pointer to distinguish between explicit zero and not specified.
* Defaults to 10.
* +optional
*
*
* optional int32 revisionHistoryLimit = 6;
*/
public Builder clearRevisionHistoryLimit() {
bitField0_ = (bitField0_ & ~0x00000020);
revisionHistoryLimit_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.extensions.v1beta1.DaemonSetSpec)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.extensions.v1beta1.DaemonSetSpec)
private static final io.kubernetes.client.proto.V1beta1Extensions.DaemonSetSpec DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Extensions.DaemonSetSpec();
}
public static io.kubernetes.client.proto.V1beta1Extensions.DaemonSetSpec getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DaemonSetSpec parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DaemonSetSpec(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.V1beta1Extensions.DaemonSetSpec getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DaemonSetStatusOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.extensions.v1beta1.DaemonSetStatus)
com.google.protobuf.MessageOrBuilder {
/**
*
* The number of nodes that are running at least 1
* daemon pod and are supposed to run the daemon pod.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
* The number of nodes that are running at least 1
* daemon pod and are supposed to run the daemon pod.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
* The number of nodes that are running the daemon pod, but are
* not supposed to run the daemon pod.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
* The number of nodes that are running the daemon pod, but are
* not supposed to run the daemon pod.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
* The total number of nodes that should be running the daemon
* pod (including nodes correctly running the daemon pod).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
* The total number of nodes that should be running the daemon
* pod (including nodes correctly running the daemon pod).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
* The number of nodes that should be running the
* daemon pod and have one or more of the daemon pod running and
* available (ready for at least spec.minReadySeconds)
* +optional
*
* The number of nodes that should be running the
* daemon pod and have one or more of the daemon pod running and
* available (ready for at least spec.minReadySeconds)
* +optional
*
* The number of nodes that should be running the
* daemon pod and have none of the daemon pod running and available
* (ready for at least spec.minReadySeconds)
* +optional
*
* The number of nodes that should be running the
* daemon pod and have none of the daemon pod running and available
* (ready for at least spec.minReadySeconds)
* +optional
*
* Count of hash collisions for the DaemonSet. The DaemonSet controller
* uses this field as a collision avoidance mechanism when it needs to
* create the name for the newest ControllerRevision.
* +optional
*
* Count of hash collisions for the DaemonSet. The DaemonSet controller
* uses this field as a collision avoidance mechanism when it needs to
* create the name for the newest ControllerRevision.
* +optional
*
* DaemonSetStatus represents the current status of a daemon set.
*
*
* Protobuf type {@code k8s.io.api.extensions.v1beta1.DaemonSetStatus}
*/
public static final class DaemonSetStatus extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.extensions.v1beta1.DaemonSetStatus)
DaemonSetStatusOrBuilder {
private static final long serialVersionUID = 0L;
// Use DaemonSetStatus.newBuilder() to construct.
private DaemonSetStatus(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DaemonSetStatus() {
currentNumberScheduled_ = 0;
numberMisscheduled_ = 0;
desiredNumberScheduled_ = 0;
numberReady_ = 0;
observedGeneration_ = 0L;
updatedNumberScheduled_ = 0;
numberAvailable_ = 0;
numberUnavailable_ = 0;
collisionCount_ = 0;
conditions_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DaemonSetStatus(
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;
currentNumberScheduled_ = input.readInt32();
break;
}
case 16: {
bitField0_ |= 0x00000002;
numberMisscheduled_ = input.readInt32();
break;
}
case 24: {
bitField0_ |= 0x00000004;
desiredNumberScheduled_ = input.readInt32();
break;
}
case 32: {
bitField0_ |= 0x00000008;
numberReady_ = input.readInt32();
break;
}
case 40: {
bitField0_ |= 0x00000010;
observedGeneration_ = input.readInt64();
break;
}
case 48: {
bitField0_ |= 0x00000020;
updatedNumberScheduled_ = input.readInt32();
break;
}
case 56: {
bitField0_ |= 0x00000040;
numberAvailable_ = input.readInt32();
break;
}
case 64: {
bitField0_ |= 0x00000080;
numberUnavailable_ = input.readInt32();
break;
}
case 72: {
bitField0_ |= 0x00000100;
collisionCount_ = input.readInt32();
break;
}
case 82: {
if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
conditions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000200;
}
conditions_.add(
input.readMessage(io.kubernetes.client.proto.V1beta1Extensions.DaemonSetCondition.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_ & 0x00000200) == 0x00000200)) {
conditions_ = java.util.Collections.unmodifiableList(conditions_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_DaemonSetStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_DaemonSetStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Extensions.DaemonSetStatus.class, io.kubernetes.client.proto.V1beta1Extensions.DaemonSetStatus.Builder.class);
}
private int bitField0_;
public static final int CURRENTNUMBERSCHEDULED_FIELD_NUMBER = 1;
private int currentNumberScheduled_;
/**
*
* The number of nodes that are running at least 1
* daemon pod and are supposed to run the daemon pod.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
* The number of nodes that are running at least 1
* daemon pod and are supposed to run the daemon pod.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
*
* optional int32 currentNumberScheduled = 1;
*/
public int getCurrentNumberScheduled() {
return currentNumberScheduled_;
}
public static final int NUMBERMISSCHEDULED_FIELD_NUMBER = 2;
private int numberMisscheduled_;
/**
*
* The number of nodes that are running the daemon pod, but are
* not supposed to run the daemon pod.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
* The number of nodes that are running the daemon pod, but are
* not supposed to run the daemon pod.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
*
* optional int32 numberMisscheduled = 2;
*/
public int getNumberMisscheduled() {
return numberMisscheduled_;
}
public static final int DESIREDNUMBERSCHEDULED_FIELD_NUMBER = 3;
private int desiredNumberScheduled_;
/**
*
* The total number of nodes that should be running the daemon
* pod (including nodes correctly running the daemon pod).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
* The total number of nodes that should be running the daemon
* pod (including nodes correctly running the daemon pod).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
*
* optional int32 desiredNumberScheduled = 3;
*/
public int getDesiredNumberScheduled() {
return desiredNumberScheduled_;
}
public static final int NUMBERREADY_FIELD_NUMBER = 4;
private int numberReady_;
/**
*
* The number of nodes that should be running the daemon pod and have one
* or more of the daemon pod running and ready.
*
* The number of nodes that should be running the daemon pod and have one
* or more of the daemon pod running and ready.
*
*
* optional int32 numberReady = 4;
*/
public int getNumberReady() {
return numberReady_;
}
public static final int OBSERVEDGENERATION_FIELD_NUMBER = 5;
private long observedGeneration_;
/**
*
* The most recent generation observed by the daemon set controller.
* +optional
*
* The most recent generation observed by the daemon set controller.
* +optional
*
*
* optional int64 observedGeneration = 5;
*/
public long getObservedGeneration() {
return observedGeneration_;
}
public static final int UPDATEDNUMBERSCHEDULED_FIELD_NUMBER = 6;
private int updatedNumberScheduled_;
/**
*
* The total number of nodes that are running updated daemon pod
* +optional
*
* The total number of nodes that are running updated daemon pod
* +optional
*
*
* optional int32 updatedNumberScheduled = 6;
*/
public int getUpdatedNumberScheduled() {
return updatedNumberScheduled_;
}
public static final int NUMBERAVAILABLE_FIELD_NUMBER = 7;
private int numberAvailable_;
/**
*
* The number of nodes that should be running the
* daemon pod and have one or more of the daemon pod running and
* available (ready for at least spec.minReadySeconds)
* +optional
*
* The number of nodes that should be running the
* daemon pod and have one or more of the daemon pod running and
* available (ready for at least spec.minReadySeconds)
* +optional
*
*
* optional int32 numberAvailable = 7;
*/
public int getNumberAvailable() {
return numberAvailable_;
}
public static final int NUMBERUNAVAILABLE_FIELD_NUMBER = 8;
private int numberUnavailable_;
/**
*
* The number of nodes that should be running the
* daemon pod and have none of the daemon pod running and available
* (ready for at least spec.minReadySeconds)
* +optional
*
* The number of nodes that should be running the
* daemon pod and have none of the daemon pod running and available
* (ready for at least spec.minReadySeconds)
* +optional
*
*
* optional int32 numberUnavailable = 8;
*/
public int getNumberUnavailable() {
return numberUnavailable_;
}
public static final int COLLISIONCOUNT_FIELD_NUMBER = 9;
private int collisionCount_;
/**
*
* Count of hash collisions for the DaemonSet. The DaemonSet controller
* uses this field as a collision avoidance mechanism when it needs to
* create the name for the newest ControllerRevision.
* +optional
*
* Count of hash collisions for the DaemonSet. The DaemonSet controller
* uses this field as a collision avoidance mechanism when it needs to
* create the name for the newest ControllerRevision.
* +optional
*
*
* optional int32 collisionCount = 9;
*/
public int getCollisionCount() {
return collisionCount_;
}
public static final int CONDITIONS_FIELD_NUMBER = 10;
private java.util.List conditions_;
/**
*
* Represents the latest available observations of a DaemonSet's current state.
* +optional
* +patchMergeKey=type
* +patchStrategy=merge
*
* The number of nodes that are running at least 1
* daemon pod and are supposed to run the daemon pod.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
* The number of nodes that are running at least 1
* daemon pod and are supposed to run the daemon pod.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
*
* optional int32 currentNumberScheduled = 1;
*/
public int getCurrentNumberScheduled() {
return currentNumberScheduled_;
}
/**
*
* The number of nodes that are running at least 1
* daemon pod and are supposed to run the daemon pod.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
* The number of nodes that are running at least 1
* daemon pod and are supposed to run the daemon pod.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
* The number of nodes that are running the daemon pod, but are
* not supposed to run the daemon pod.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
* The number of nodes that are running the daemon pod, but are
* not supposed to run the daemon pod.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
*
* optional int32 numberMisscheduled = 2;
*/
public int getNumberMisscheduled() {
return numberMisscheduled_;
}
/**
*
* The number of nodes that are running the daemon pod, but are
* not supposed to run the daemon pod.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
* The number of nodes that are running the daemon pod, but are
* not supposed to run the daemon pod.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
* The total number of nodes that should be running the daemon
* pod (including nodes correctly running the daemon pod).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
* The total number of nodes that should be running the daemon
* pod (including nodes correctly running the daemon pod).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
*
* optional int32 desiredNumberScheduled = 3;
*/
public int getDesiredNumberScheduled() {
return desiredNumberScheduled_;
}
/**
*
* The total number of nodes that should be running the daemon
* pod (including nodes correctly running the daemon pod).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
* The total number of nodes that should be running the daemon
* pod (including nodes correctly running the daemon pod).
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
*
* The number of nodes that should be running the
* daemon pod and have one or more of the daemon pod running and
* available (ready for at least spec.minReadySeconds)
* +optional
*
* The number of nodes that should be running the
* daemon pod and have one or more of the daemon pod running and
* available (ready for at least spec.minReadySeconds)
* +optional
*
*
* optional int32 numberAvailable = 7;
*/
public int getNumberAvailable() {
return numberAvailable_;
}
/**
*
* The number of nodes that should be running the
* daemon pod and have one or more of the daemon pod running and
* available (ready for at least spec.minReadySeconds)
* +optional
*
* The number of nodes that should be running the
* daemon pod and have one or more of the daemon pod running and
* available (ready for at least spec.minReadySeconds)
* +optional
*
* The number of nodes that should be running the
* daemon pod and have none of the daemon pod running and available
* (ready for at least spec.minReadySeconds)
* +optional
*
* The number of nodes that should be running the
* daemon pod and have none of the daemon pod running and available
* (ready for at least spec.minReadySeconds)
* +optional
*
*
* optional int32 numberUnavailable = 8;
*/
public int getNumberUnavailable() {
return numberUnavailable_;
}
/**
*
* The number of nodes that should be running the
* daemon pod and have none of the daemon pod running and available
* (ready for at least spec.minReadySeconds)
* +optional
*
* The number of nodes that should be running the
* daemon pod and have none of the daemon pod running and available
* (ready for at least spec.minReadySeconds)
* +optional
*
* Count of hash collisions for the DaemonSet. The DaemonSet controller
* uses this field as a collision avoidance mechanism when it needs to
* create the name for the newest ControllerRevision.
* +optional
*
* Count of hash collisions for the DaemonSet. The DaemonSet controller
* uses this field as a collision avoidance mechanism when it needs to
* create the name for the newest ControllerRevision.
* +optional
*
*
* optional int32 collisionCount = 9;
*/
public int getCollisionCount() {
return collisionCount_;
}
/**
*
* Count of hash collisions for the DaemonSet. The DaemonSet controller
* uses this field as a collision avoidance mechanism when it needs to
* create the name for the newest ControllerRevision.
* +optional
*
* Count of hash collisions for the DaemonSet. The DaemonSet controller
* uses this field as a collision avoidance mechanism when it needs to
* create the name for the newest ControllerRevision.
* +optional
*
* Rolling update config params. Present only if type = "RollingUpdate".
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be. Same as Deployment `strategy.rollingUpdate`.
* See https://github.com/kubernetes/kubernetes/issues/35345
* +optional
*
* Rolling update config params. Present only if type = "RollingUpdate".
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be. Same as Deployment `strategy.rollingUpdate`.
* See https://github.com/kubernetes/kubernetes/issues/35345
* +optional
*
* Rolling update config params. Present only if type = "RollingUpdate".
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be. Same as Deployment `strategy.rollingUpdate`.
* See https://github.com/kubernetes/kubernetes/issues/35345
* +optional
*
*
* optional .k8s.io.api.extensions.v1beta1.RollingUpdateDaemonSet rollingUpdate = 2;
*/
io.kubernetes.client.proto.V1beta1Extensions.RollingUpdateDaemonSetOrBuilder getRollingUpdateOrBuilder();
}
/**
* Protobuf type {@code k8s.io.api.extensions.v1beta1.DaemonSetUpdateStrategy}
*/
public static final class DaemonSetUpdateStrategy extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.extensions.v1beta1.DaemonSetUpdateStrategy)
DaemonSetUpdateStrategyOrBuilder {
private static final long serialVersionUID = 0L;
// Use DaemonSetUpdateStrategy.newBuilder() to construct.
private DaemonSetUpdateStrategy(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DaemonSetUpdateStrategy() {
type_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DaemonSetUpdateStrategy(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
type_ = bs;
break;
}
case 18: {
io.kubernetes.client.proto.V1beta1Extensions.RollingUpdateDaemonSet.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = rollingUpdate_.toBuilder();
}
rollingUpdate_ = input.readMessage(io.kubernetes.client.proto.V1beta1Extensions.RollingUpdateDaemonSet.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(rollingUpdate_);
rollingUpdate_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_DaemonSetUpdateStrategy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_DaemonSetUpdateStrategy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategy.class, io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategy.Builder.class);
}
private int bitField0_;
public static final int TYPE_FIELD_NUMBER = 1;
private volatile java.lang.Object type_;
/**
*
* Type of daemon set update. Can be "RollingUpdate" or "OnDelete".
* Default is OnDelete.
* +optional
*
* Type of daemon set update. Can be "RollingUpdate" or "OnDelete".
* Default is OnDelete.
* +optional
*
*
* optional string type = 1;
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
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()) {
type_ = s;
}
return s;
}
}
/**
*
* Type of daemon set update. Can be "RollingUpdate" or "OnDelete".
* Default is OnDelete.
* +optional
*
*
* optional string type = 1;
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ROLLINGUPDATE_FIELD_NUMBER = 2;
private io.kubernetes.client.proto.V1beta1Extensions.RollingUpdateDaemonSet rollingUpdate_;
/**
*
* Rolling update config params. Present only if type = "RollingUpdate".
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be. Same as Deployment `strategy.rollingUpdate`.
* See https://github.com/kubernetes/kubernetes/issues/35345
* +optional
*
* Rolling update config params. Present only if type = "RollingUpdate".
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be. Same as Deployment `strategy.rollingUpdate`.
* See https://github.com/kubernetes/kubernetes/issues/35345
* +optional
*
* Rolling update config params. Present only if type = "RollingUpdate".
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be. Same as Deployment `strategy.rollingUpdate`.
* See https://github.com/kubernetes/kubernetes/issues/35345
* +optional
*
*
* optional .k8s.io.api.extensions.v1beta1.RollingUpdateDaemonSet rollingUpdate = 2;
*/
public io.kubernetes.client.proto.V1beta1Extensions.RollingUpdateDaemonSetOrBuilder getRollingUpdateOrBuilder() {
return rollingUpdate_ == null ? io.kubernetes.client.proto.V1beta1Extensions.RollingUpdateDaemonSet.getDefaultInstance() : rollingUpdate_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getRollingUpdate());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getRollingUpdate());
}
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.V1beta1Extensions.DaemonSetUpdateStrategy)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategy other = (io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategy) obj;
boolean result = true;
result = result && (hasType() == other.hasType());
if (hasType()) {
result = result && getType()
.equals(other.getType());
}
result = result && (hasRollingUpdate() == other.hasRollingUpdate());
if (hasRollingUpdate()) {
result = result && getRollingUpdate()
.equals(other.getRollingUpdate());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
}
if (hasRollingUpdate()) {
hash = (37 * hash) + ROLLINGUPDATE_FIELD_NUMBER;
hash = (53 * hash) + getRollingUpdate().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategy parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategy 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.V1beta1Extensions.DaemonSetUpdateStrategy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategy 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.V1beta1Extensions.DaemonSetUpdateStrategy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategy parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategy parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategy 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.V1beta1Extensions.DaemonSetUpdateStrategy parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategy 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.V1beta1Extensions.DaemonSetUpdateStrategy parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategy 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.V1beta1Extensions.DaemonSetUpdateStrategy 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;
}
/**
* Protobuf type {@code k8s.io.api.extensions.v1beta1.DaemonSetUpdateStrategy}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.extensions.v1beta1.DaemonSetUpdateStrategy)
io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_DaemonSetUpdateStrategy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_DaemonSetUpdateStrategy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategy.class, io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategy.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategy.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRollingUpdateFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
type_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (rollingUpdateBuilder_ == null) {
rollingUpdate_ = null;
} else {
rollingUpdateBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_DaemonSetUpdateStrategy_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategy getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategy.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategy build() {
io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategy buildPartial() {
io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategy result = new io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategy(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (rollingUpdateBuilder_ == null) {
result.rollingUpdate_ = rollingUpdate_;
} else {
result.rollingUpdate_ = rollingUpdateBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategy) {
return mergeFrom((io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategy other) {
if (other == io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategy.getDefaultInstance()) return this;
if (other.hasType()) {
bitField0_ |= 0x00000001;
type_ = other.type_;
onChanged();
}
if (other.hasRollingUpdate()) {
mergeRollingUpdate(other.getRollingUpdate());
}
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.V1beta1Extensions.DaemonSetUpdateStrategy parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategy) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object type_ = "";
/**
*
* Type of daemon set update. Can be "RollingUpdate" or "OnDelete".
* Default is OnDelete.
* +optional
*
* Rolling update config params. Present only if type = "RollingUpdate".
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be. Same as Deployment `strategy.rollingUpdate`.
* See https://github.com/kubernetes/kubernetes/issues/35345
* +optional
*
* Rolling update config params. Present only if type = "RollingUpdate".
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be. Same as Deployment `strategy.rollingUpdate`.
* See https://github.com/kubernetes/kubernetes/issues/35345
* +optional
*
* Rolling update config params. Present only if type = "RollingUpdate".
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be. Same as Deployment `strategy.rollingUpdate`.
* See https://github.com/kubernetes/kubernetes/issues/35345
* +optional
*
* Rolling update config params. Present only if type = "RollingUpdate".
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be. Same as Deployment `strategy.rollingUpdate`.
* See https://github.com/kubernetes/kubernetes/issues/35345
* +optional
*
* Rolling update config params. Present only if type = "RollingUpdate".
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be. Same as Deployment `strategy.rollingUpdate`.
* See https://github.com/kubernetes/kubernetes/issues/35345
* +optional
*
* Rolling update config params. Present only if type = "RollingUpdate".
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be. Same as Deployment `strategy.rollingUpdate`.
* See https://github.com/kubernetes/kubernetes/issues/35345
* +optional
*
* Rolling update config params. Present only if type = "RollingUpdate".
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be. Same as Deployment `strategy.rollingUpdate`.
* See https://github.com/kubernetes/kubernetes/issues/35345
* +optional
*
* Rolling update config params. Present only if type = "RollingUpdate".
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be. Same as Deployment `strategy.rollingUpdate`.
* See https://github.com/kubernetes/kubernetes/issues/35345
* +optional
*
* Rolling update config params. Present only if type = "RollingUpdate".
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be. Same as Deployment `strategy.rollingUpdate`.
* See https://github.com/kubernetes/kubernetes/issues/35345
* +optional
*
*
* optional .k8s.io.api.extensions.v1beta1.RollingUpdateDaemonSet rollingUpdate = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1beta1Extensions.RollingUpdateDaemonSet, io.kubernetes.client.proto.V1beta1Extensions.RollingUpdateDaemonSet.Builder, io.kubernetes.client.proto.V1beta1Extensions.RollingUpdateDaemonSetOrBuilder>
getRollingUpdateFieldBuilder() {
if (rollingUpdateBuilder_ == null) {
rollingUpdateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1beta1Extensions.RollingUpdateDaemonSet, io.kubernetes.client.proto.V1beta1Extensions.RollingUpdateDaemonSet.Builder, io.kubernetes.client.proto.V1beta1Extensions.RollingUpdateDaemonSetOrBuilder>(
getRollingUpdate(),
getParentForChildren(),
isClean());
rollingUpdate_ = null;
}
return rollingUpdateBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.extensions.v1beta1.DaemonSetUpdateStrategy)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.extensions.v1beta1.DaemonSetUpdateStrategy)
private static final io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategy();
}
public static io.kubernetes.client.proto.V1beta1Extensions.DaemonSetUpdateStrategy getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DaemonSetUpdateStrategy parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DaemonSetUpdateStrategy(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.V1beta1Extensions.DaemonSetUpdateStrategy getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeploymentOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.extensions.v1beta1.Deployment)
com.google.protobuf.MessageOrBuilder {
/**
*
* DEPRECATED - This group version of Deployment is deprecated by apps/v1beta2/Deployment. See the release notes for
* more information.
* Deployment enables declarative updates for Pods and ReplicaSets.
*
*
* Protobuf type {@code k8s.io.api.extensions.v1beta1.Deployment}
*/
public static final class Deployment extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.extensions.v1beta1.Deployment)
DeploymentOrBuilder {
private static final long serialVersionUID = 0L;
// Use Deployment.newBuilder() to construct.
private Deployment(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Deployment() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Deployment(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
io.kubernetes.client.proto.Meta.ObjectMeta.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ObjectMeta.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
io.kubernetes.client.proto.V1beta1Extensions.DeploymentSpec.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = spec_.toBuilder();
}
spec_ = input.readMessage(io.kubernetes.client.proto.V1beta1Extensions.DeploymentSpec.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(spec_);
spec_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
io.kubernetes.client.proto.V1beta1Extensions.DeploymentStatus.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = status_.toBuilder();
}
status_ = input.readMessage(io.kubernetes.client.proto.V1beta1Extensions.DeploymentStatus.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(status_);
status_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_Deployment_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_Deployment_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Extensions.Deployment.class, io.kubernetes.client.proto.V1beta1Extensions.Deployment.Builder.class);
}
private int bitField0_;
public static final int METADATA_FIELD_NUMBER = 1;
private io.kubernetes.client.proto.Meta.ObjectMeta metadata_;
/**
*
* Most recently observed status of the Deployment.
* +optional
*
*
* optional .k8s.io.api.extensions.v1beta1.DeploymentStatus status = 3;
*/
public io.kubernetes.client.proto.V1beta1Extensions.DeploymentStatusOrBuilder getStatusOrBuilder() {
return status_ == null ? io.kubernetes.client.proto.V1beta1Extensions.DeploymentStatus.getDefaultInstance() : status_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getMetadata());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getSpec());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, getStatus());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getMetadata());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSpec());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getStatus());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1beta1Extensions.Deployment)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta1Extensions.Deployment other = (io.kubernetes.client.proto.V1beta1Extensions.Deployment) obj;
boolean result = true;
result = result && (hasMetadata() == other.hasMetadata());
if (hasMetadata()) {
result = result && getMetadata()
.equals(other.getMetadata());
}
result = result && (hasSpec() == other.hasSpec());
if (hasSpec()) {
result = result && getSpec()
.equals(other.getSpec());
}
result = result && (hasStatus() == other.hasStatus());
if (hasStatus()) {
result = result && getStatus()
.equals(other.getStatus());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
if (hasSpec()) {
hash = (37 * hash) + SPEC_FIELD_NUMBER;
hash = (53 * hash) + getSpec().hashCode();
}
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta1Extensions.Deployment parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.Deployment 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.V1beta1Extensions.Deployment parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.Deployment 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.V1beta1Extensions.Deployment parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.Deployment parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta1Extensions.Deployment parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.Deployment 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.V1beta1Extensions.Deployment parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.Deployment 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.V1beta1Extensions.Deployment parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.Deployment 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.V1beta1Extensions.Deployment 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;
}
/**
*
* DEPRECATED - This group version of Deployment is deprecated by apps/v1beta2/Deployment. See the release notes for
* more information.
* Deployment enables declarative updates for Pods and ReplicaSets.
*
*
* Protobuf type {@code k8s.io.api.extensions.v1beta1.Deployment}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.extensions.v1beta1.Deployment)
io.kubernetes.client.proto.V1beta1Extensions.DeploymentOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_Deployment_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_Deployment_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Extensions.Deployment.class, io.kubernetes.client.proto.V1beta1Extensions.Deployment.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1beta1Extensions.Deployment.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMetadataFieldBuilder();
getSpecFieldBuilder();
getStatusFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (specBuilder_ == null) {
spec_ = null;
} else {
specBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (statusBuilder_ == null) {
status_ = null;
} else {
statusBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_Deployment_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.Deployment getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1beta1Extensions.Deployment.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.Deployment build() {
io.kubernetes.client.proto.V1beta1Extensions.Deployment result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.Deployment buildPartial() {
io.kubernetes.client.proto.V1beta1Extensions.Deployment result = new io.kubernetes.client.proto.V1beta1Extensions.Deployment(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (specBuilder_ == null) {
result.spec_ = spec_;
} else {
result.spec_ = specBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (statusBuilder_ == null) {
result.status_ = status_;
} else {
result.status_ = statusBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1beta1Extensions.Deployment) {
return mergeFrom((io.kubernetes.client.proto.V1beta1Extensions.Deployment)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Extensions.Deployment other) {
if (other == io.kubernetes.client.proto.V1beta1Extensions.Deployment.getDefaultInstance()) return this;
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
if (other.hasSpec()) {
mergeSpec(other.getSpec());
}
if (other.hasStatus()) {
mergeStatus(other.getStatus());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1beta1Extensions.Deployment parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1beta1Extensions.Deployment) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_;
/**
*
* Minimum number of seconds for which a newly created pod should be ready
* without any of its container crashing, for it to be considered available.
* Defaults to 0 (pod will be considered available as soon as it is ready)
* +optional
*
* Minimum number of seconds for which a newly created pod should be ready
* without any of its container crashing, for it to be considered available.
* Defaults to 0 (pod will be considered available as soon as it is ready)
* +optional
*
* The number of old ReplicaSets to retain to allow rollback.
* This is a pointer to distinguish between explicit zero and not specified.
* This is set to the max value of int32 (i.e. 2147483647) by default, which
* means "retaining all old RelicaSets".
* +optional
*
* The number of old ReplicaSets to retain to allow rollback.
* This is a pointer to distinguish between explicit zero and not specified.
* This is set to the max value of int32 (i.e. 2147483647) by default, which
* means "retaining all old RelicaSets".
* +optional
*
* The maximum time in seconds for a deployment to make progress before it
* is considered to be failed. The deployment controller will continue to
* process failed deployments and a condition with a ProgressDeadlineExceeded
* reason will be surfaced in the deployment status. Note that progress will
* not be estimated during the time a deployment is paused. This is set to
* the max value of int32 (i.e. 2147483647) by default, which means "no deadline".
* +optional
*
* The maximum time in seconds for a deployment to make progress before it
* is considered to be failed. The deployment controller will continue to
* process failed deployments and a condition with a ProgressDeadlineExceeded
* reason will be surfaced in the deployment status. Note that progress will
* not be estimated during the time a deployment is paused. This is set to
* the max value of int32 (i.e. 2147483647) by default, which means "no deadline".
* +optional
*
* The deployment strategy to use to replace existing pods with new ones.
* +optional
* +patchStrategy=retainKeys
*
*
* optional .k8s.io.api.extensions.v1beta1.DeploymentStrategy strategy = 4;
*/
public io.kubernetes.client.proto.V1beta1Extensions.DeploymentStrategyOrBuilder getStrategyOrBuilder() {
return strategy_ == null ? io.kubernetes.client.proto.V1beta1Extensions.DeploymentStrategy.getDefaultInstance() : strategy_;
}
public static final int MINREADYSECONDS_FIELD_NUMBER = 5;
private int minReadySeconds_;
/**
*
* Minimum number of seconds for which a newly created pod should be ready
* without any of its container crashing, for it to be considered available.
* Defaults to 0 (pod will be considered available as soon as it is ready)
* +optional
*
* Minimum number of seconds for which a newly created pod should be ready
* without any of its container crashing, for it to be considered available.
* Defaults to 0 (pod will be considered available as soon as it is ready)
* +optional
*
*
* optional int32 minReadySeconds = 5;
*/
public int getMinReadySeconds() {
return minReadySeconds_;
}
public static final int REVISIONHISTORYLIMIT_FIELD_NUMBER = 6;
private int revisionHistoryLimit_;
/**
*
* The number of old ReplicaSets to retain to allow rollback.
* This is a pointer to distinguish between explicit zero and not specified.
* This is set to the max value of int32 (i.e. 2147483647) by default, which
* means "retaining all old RelicaSets".
* +optional
*
* The number of old ReplicaSets to retain to allow rollback.
* This is a pointer to distinguish between explicit zero and not specified.
* This is set to the max value of int32 (i.e. 2147483647) by default, which
* means "retaining all old RelicaSets".
* +optional
*
*
* optional int32 revisionHistoryLimit = 6;
*/
public int getRevisionHistoryLimit() {
return revisionHistoryLimit_;
}
public static final int PAUSED_FIELD_NUMBER = 7;
private boolean paused_;
/**
*
* Indicates that the deployment is paused and will not be processed by the
* deployment controller.
* +optional
*
* DEPRECATED.
* The config this deployment is rolling back to. Will be cleared after rollback is done.
* +optional
*
*
* optional .k8s.io.api.extensions.v1beta1.RollbackConfig rollbackTo = 8;
*/
public io.kubernetes.client.proto.V1beta1Extensions.RollbackConfigOrBuilder getRollbackToOrBuilder() {
return rollbackTo_ == null ? io.kubernetes.client.proto.V1beta1Extensions.RollbackConfig.getDefaultInstance() : rollbackTo_;
}
public static final int PROGRESSDEADLINESECONDS_FIELD_NUMBER = 9;
private int progressDeadlineSeconds_;
/**
*
* The maximum time in seconds for a deployment to make progress before it
* is considered to be failed. The deployment controller will continue to
* process failed deployments and a condition with a ProgressDeadlineExceeded
* reason will be surfaced in the deployment status. Note that progress will
* not be estimated during the time a deployment is paused. This is set to
* the max value of int32 (i.e. 2147483647) by default, which means "no deadline".
* +optional
*
* The maximum time in seconds for a deployment to make progress before it
* is considered to be failed. The deployment controller will continue to
* process failed deployments and a condition with a ProgressDeadlineExceeded
* reason will be surfaced in the deployment status. Note that progress will
* not be estimated during the time a deployment is paused. This is set to
* the max value of int32 (i.e. 2147483647) by default, which means "no deadline".
* +optional
*
*
* optional int32 progressDeadlineSeconds = 9;
*/
public int getProgressDeadlineSeconds() {
return progressDeadlineSeconds_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, replicas_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getSelector());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, getTemplate());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(4, getStrategy());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt32(5, minReadySeconds_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeInt32(6, revisionHistoryLimit_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeBool(7, paused_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeMessage(8, getRollbackTo());
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeInt32(9, progressDeadlineSeconds_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, replicas_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSelector());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getTemplate());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getStrategy());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, minReadySeconds_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, revisionHistoryLimit_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, paused_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getRollbackTo());
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(9, progressDeadlineSeconds_);
}
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.V1beta1Extensions.DeploymentSpec)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta1Extensions.DeploymentSpec other = (io.kubernetes.client.proto.V1beta1Extensions.DeploymentSpec) obj;
boolean result = true;
result = result && (hasReplicas() == other.hasReplicas());
if (hasReplicas()) {
result = result && (getReplicas()
== other.getReplicas());
}
result = result && (hasSelector() == other.hasSelector());
if (hasSelector()) {
result = result && getSelector()
.equals(other.getSelector());
}
result = result && (hasTemplate() == other.hasTemplate());
if (hasTemplate()) {
result = result && getTemplate()
.equals(other.getTemplate());
}
result = result && (hasStrategy() == other.hasStrategy());
if (hasStrategy()) {
result = result && getStrategy()
.equals(other.getStrategy());
}
result = result && (hasMinReadySeconds() == other.hasMinReadySeconds());
if (hasMinReadySeconds()) {
result = result && (getMinReadySeconds()
== other.getMinReadySeconds());
}
result = result && (hasRevisionHistoryLimit() == other.hasRevisionHistoryLimit());
if (hasRevisionHistoryLimit()) {
result = result && (getRevisionHistoryLimit()
== other.getRevisionHistoryLimit());
}
result = result && (hasPaused() == other.hasPaused());
if (hasPaused()) {
result = result && (getPaused()
== other.getPaused());
}
result = result && (hasRollbackTo() == other.hasRollbackTo());
if (hasRollbackTo()) {
result = result && getRollbackTo()
.equals(other.getRollbackTo());
}
result = result && (hasProgressDeadlineSeconds() == other.hasProgressDeadlineSeconds());
if (hasProgressDeadlineSeconds()) {
result = result && (getProgressDeadlineSeconds()
== other.getProgressDeadlineSeconds());
}
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 (hasReplicas()) {
hash = (37 * hash) + REPLICAS_FIELD_NUMBER;
hash = (53 * hash) + getReplicas();
}
if (hasSelector()) {
hash = (37 * hash) + SELECTOR_FIELD_NUMBER;
hash = (53 * hash) + getSelector().hashCode();
}
if (hasTemplate()) {
hash = (37 * hash) + TEMPLATE_FIELD_NUMBER;
hash = (53 * hash) + getTemplate().hashCode();
}
if (hasStrategy()) {
hash = (37 * hash) + STRATEGY_FIELD_NUMBER;
hash = (53 * hash) + getStrategy().hashCode();
}
if (hasMinReadySeconds()) {
hash = (37 * hash) + MINREADYSECONDS_FIELD_NUMBER;
hash = (53 * hash) + getMinReadySeconds();
}
if (hasRevisionHistoryLimit()) {
hash = (37 * hash) + REVISIONHISTORYLIMIT_FIELD_NUMBER;
hash = (53 * hash) + getRevisionHistoryLimit();
}
if (hasPaused()) {
hash = (37 * hash) + PAUSED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getPaused());
}
if (hasRollbackTo()) {
hash = (37 * hash) + ROLLBACKTO_FIELD_NUMBER;
hash = (53 * hash) + getRollbackTo().hashCode();
}
if (hasProgressDeadlineSeconds()) {
hash = (37 * hash) + PROGRESSDEADLINESECONDS_FIELD_NUMBER;
hash = (53 * hash) + getProgressDeadlineSeconds();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta1Extensions.DeploymentSpec parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DeploymentSpec 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.V1beta1Extensions.DeploymentSpec parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DeploymentSpec 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.V1beta1Extensions.DeploymentSpec parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DeploymentSpec parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DeploymentSpec parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DeploymentSpec 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.V1beta1Extensions.DeploymentSpec parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DeploymentSpec 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.V1beta1Extensions.DeploymentSpec parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DeploymentSpec 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.V1beta1Extensions.DeploymentSpec 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;
}
/**
*
* DeploymentSpec is the specification of the desired behavior of the Deployment.
*
* Minimum number of seconds for which a newly created pod should be ready
* without any of its container crashing, for it to be considered available.
* Defaults to 0 (pod will be considered available as soon as it is ready)
* +optional
*
* Minimum number of seconds for which a newly created pod should be ready
* without any of its container crashing, for it to be considered available.
* Defaults to 0 (pod will be considered available as soon as it is ready)
* +optional
*
*
* optional int32 minReadySeconds = 5;
*/
public int getMinReadySeconds() {
return minReadySeconds_;
}
/**
*
* Minimum number of seconds for which a newly created pod should be ready
* without any of its container crashing, for it to be considered available.
* Defaults to 0 (pod will be considered available as soon as it is ready)
* +optional
*
* Minimum number of seconds for which a newly created pod should be ready
* without any of its container crashing, for it to be considered available.
* Defaults to 0 (pod will be considered available as soon as it is ready)
* +optional
*
* The number of old ReplicaSets to retain to allow rollback.
* This is a pointer to distinguish between explicit zero and not specified.
* This is set to the max value of int32 (i.e. 2147483647) by default, which
* means "retaining all old RelicaSets".
* +optional
*
* The number of old ReplicaSets to retain to allow rollback.
* This is a pointer to distinguish between explicit zero and not specified.
* This is set to the max value of int32 (i.e. 2147483647) by default, which
* means "retaining all old RelicaSets".
* +optional
*
*
* optional int32 revisionHistoryLimit = 6;
*/
public int getRevisionHistoryLimit() {
return revisionHistoryLimit_;
}
/**
*
* The number of old ReplicaSets to retain to allow rollback.
* This is a pointer to distinguish between explicit zero and not specified.
* This is set to the max value of int32 (i.e. 2147483647) by default, which
* means "retaining all old RelicaSets".
* +optional
*
* The number of old ReplicaSets to retain to allow rollback.
* This is a pointer to distinguish between explicit zero and not specified.
* This is set to the max value of int32 (i.e. 2147483647) by default, which
* means "retaining all old RelicaSets".
* +optional
*
* The maximum time in seconds for a deployment to make progress before it
* is considered to be failed. The deployment controller will continue to
* process failed deployments and a condition with a ProgressDeadlineExceeded
* reason will be surfaced in the deployment status. Note that progress will
* not be estimated during the time a deployment is paused. This is set to
* the max value of int32 (i.e. 2147483647) by default, which means "no deadline".
* +optional
*
* The maximum time in seconds for a deployment to make progress before it
* is considered to be failed. The deployment controller will continue to
* process failed deployments and a condition with a ProgressDeadlineExceeded
* reason will be surfaced in the deployment status. Note that progress will
* not be estimated during the time a deployment is paused. This is set to
* the max value of int32 (i.e. 2147483647) by default, which means "no deadline".
* +optional
*
*
* optional int32 progressDeadlineSeconds = 9;
*/
public int getProgressDeadlineSeconds() {
return progressDeadlineSeconds_;
}
/**
*
* The maximum time in seconds for a deployment to make progress before it
* is considered to be failed. The deployment controller will continue to
* process failed deployments and a condition with a ProgressDeadlineExceeded
* reason will be surfaced in the deployment status. Note that progress will
* not be estimated during the time a deployment is paused. This is set to
* the max value of int32 (i.e. 2147483647) by default, which means "no deadline".
* +optional
*
* The maximum time in seconds for a deployment to make progress before it
* is considered to be failed. The deployment controller will continue to
* process failed deployments and a condition with a ProgressDeadlineExceeded
* reason will be surfaced in the deployment status. Note that progress will
* not be estimated during the time a deployment is paused. This is set to
* the max value of int32 (i.e. 2147483647) by default, which means "no deadline".
* +optional
*
*
* optional int32 progressDeadlineSeconds = 9;
*/
public Builder clearProgressDeadlineSeconds() {
bitField0_ = (bitField0_ & ~0x00000100);
progressDeadlineSeconds_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.extensions.v1beta1.DeploymentSpec)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.extensions.v1beta1.DeploymentSpec)
private static final io.kubernetes.client.proto.V1beta1Extensions.DeploymentSpec DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Extensions.DeploymentSpec();
}
public static io.kubernetes.client.proto.V1beta1Extensions.DeploymentSpec getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeploymentSpec parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeploymentSpec(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.V1beta1Extensions.DeploymentSpec getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeploymentStatusOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.extensions.v1beta1.DeploymentStatus)
com.google.protobuf.MessageOrBuilder {
/**
*
* The generation observed by the deployment controller.
* +optional
*
* Total number of unavailable pods targeted by this deployment. This is the total number of
* pods that are still required for the deployment to have 100% available capacity. They may
* either be pods that are running but not yet available or pods that still have not been created.
* +optional
*
* Total number of unavailable pods targeted by this deployment. This is the total number of
* pods that are still required for the deployment to have 100% available capacity. They may
* either be pods that are running but not yet available or pods that still have not been created.
* +optional
*
* Count of hash collisions for the Deployment. The Deployment controller uses this
* field as a collision avoidance mechanism when it needs to create the name for the
* newest ReplicaSet.
* +optional
*
* Count of hash collisions for the Deployment. The Deployment controller uses this
* field as a collision avoidance mechanism when it needs to create the name for the
* newest ReplicaSet.
* +optional
*
* The generation observed by the deployment controller.
* +optional
*
*
* optional int64 observedGeneration = 1;
*/
public long getObservedGeneration() {
return observedGeneration_;
}
public static final int REPLICAS_FIELD_NUMBER = 2;
private int replicas_;
/**
*
* Total number of non-terminated pods targeted by this deployment (their labels match the selector).
* +optional
*
* Total number of non-terminated pods targeted by this deployment (their labels match the selector).
* +optional
*
*
* optional int32 replicas = 2;
*/
public int getReplicas() {
return replicas_;
}
public static final int UPDATEDREPLICAS_FIELD_NUMBER = 3;
private int updatedReplicas_;
/**
*
* Total number of non-terminated pods targeted by this deployment that have the desired template spec.
* +optional
*
* Total number of non-terminated pods targeted by this deployment that have the desired template spec.
* +optional
*
*
* optional int32 updatedReplicas = 3;
*/
public int getUpdatedReplicas() {
return updatedReplicas_;
}
public static final int READYREPLICAS_FIELD_NUMBER = 7;
private int readyReplicas_;
/**
*
* Total number of ready pods targeted by this deployment.
* +optional
*
* Total number of ready pods targeted by this deployment.
* +optional
*
*
* optional int32 readyReplicas = 7;
*/
public int getReadyReplicas() {
return readyReplicas_;
}
public static final int AVAILABLEREPLICAS_FIELD_NUMBER = 4;
private int availableReplicas_;
/**
*
* Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.
* +optional
*
* Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.
* +optional
*
*
* optional int32 availableReplicas = 4;
*/
public int getAvailableReplicas() {
return availableReplicas_;
}
public static final int UNAVAILABLEREPLICAS_FIELD_NUMBER = 5;
private int unavailableReplicas_;
/**
*
* Total number of unavailable pods targeted by this deployment. This is the total number of
* pods that are still required for the deployment to have 100% available capacity. They may
* either be pods that are running but not yet available or pods that still have not been created.
* +optional
*
* Total number of unavailable pods targeted by this deployment. This is the total number of
* pods that are still required for the deployment to have 100% available capacity. They may
* either be pods that are running but not yet available or pods that still have not been created.
* +optional
*
*
* optional int32 unavailableReplicas = 5;
*/
public int getUnavailableReplicas() {
return unavailableReplicas_;
}
public static final int CONDITIONS_FIELD_NUMBER = 6;
private java.util.List conditions_;
/**
*
* Represents the latest available observations of a deployment's current state.
* +patchMergeKey=type
* +patchStrategy=merge
*
* Represents the latest available observations of a deployment's current state.
* +patchMergeKey=type
* +patchStrategy=merge
*
*
* repeated .k8s.io.api.extensions.v1beta1.DeploymentCondition conditions = 6;
*/
public io.kubernetes.client.proto.V1beta1Extensions.DeploymentConditionOrBuilder getConditionsOrBuilder(
int index) {
return conditions_.get(index);
}
public static final int COLLISIONCOUNT_FIELD_NUMBER = 8;
private int collisionCount_;
/**
*
* Count of hash collisions for the Deployment. The Deployment controller uses this
* field as a collision avoidance mechanism when it needs to create the name for the
* newest ReplicaSet.
* +optional
*
* Count of hash collisions for the Deployment. The Deployment controller uses this
* field as a collision avoidance mechanism when it needs to create the name for the
* newest ReplicaSet.
* +optional
*
*
* optional int32 collisionCount = 8;
*/
public int getCollisionCount() {
return collisionCount_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt64(1, observedGeneration_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, replicas_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(3, updatedReplicas_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt32(4, availableReplicas_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeInt32(5, unavailableReplicas_);
}
for (int i = 0; i < conditions_.size(); i++) {
output.writeMessage(6, conditions_.get(i));
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt32(7, readyReplicas_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeInt32(8, collisionCount_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, observedGeneration_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, replicas_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, updatedReplicas_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, availableReplicas_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, unavailableReplicas_);
}
for (int i = 0; i < conditions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, conditions_.get(i));
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(7, readyReplicas_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(8, collisionCount_);
}
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.V1beta1Extensions.DeploymentStatus)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta1Extensions.DeploymentStatus other = (io.kubernetes.client.proto.V1beta1Extensions.DeploymentStatus) obj;
boolean result = true;
result = result && (hasObservedGeneration() == other.hasObservedGeneration());
if (hasObservedGeneration()) {
result = result && (getObservedGeneration()
== other.getObservedGeneration());
}
result = result && (hasReplicas() == other.hasReplicas());
if (hasReplicas()) {
result = result && (getReplicas()
== other.getReplicas());
}
result = result && (hasUpdatedReplicas() == other.hasUpdatedReplicas());
if (hasUpdatedReplicas()) {
result = result && (getUpdatedReplicas()
== other.getUpdatedReplicas());
}
result = result && (hasReadyReplicas() == other.hasReadyReplicas());
if (hasReadyReplicas()) {
result = result && (getReadyReplicas()
== other.getReadyReplicas());
}
result = result && (hasAvailableReplicas() == other.hasAvailableReplicas());
if (hasAvailableReplicas()) {
result = result && (getAvailableReplicas()
== other.getAvailableReplicas());
}
result = result && (hasUnavailableReplicas() == other.hasUnavailableReplicas());
if (hasUnavailableReplicas()) {
result = result && (getUnavailableReplicas()
== other.getUnavailableReplicas());
}
result = result && getConditionsList()
.equals(other.getConditionsList());
result = result && (hasCollisionCount() == other.hasCollisionCount());
if (hasCollisionCount()) {
result = result && (getCollisionCount()
== other.getCollisionCount());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasObservedGeneration()) {
hash = (37 * hash) + OBSERVEDGENERATION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getObservedGeneration());
}
if (hasReplicas()) {
hash = (37 * hash) + REPLICAS_FIELD_NUMBER;
hash = (53 * hash) + getReplicas();
}
if (hasUpdatedReplicas()) {
hash = (37 * hash) + UPDATEDREPLICAS_FIELD_NUMBER;
hash = (53 * hash) + getUpdatedReplicas();
}
if (hasReadyReplicas()) {
hash = (37 * hash) + READYREPLICAS_FIELD_NUMBER;
hash = (53 * hash) + getReadyReplicas();
}
if (hasAvailableReplicas()) {
hash = (37 * hash) + AVAILABLEREPLICAS_FIELD_NUMBER;
hash = (53 * hash) + getAvailableReplicas();
}
if (hasUnavailableReplicas()) {
hash = (37 * hash) + UNAVAILABLEREPLICAS_FIELD_NUMBER;
hash = (53 * hash) + getUnavailableReplicas();
}
if (getConditionsCount() > 0) {
hash = (37 * hash) + CONDITIONS_FIELD_NUMBER;
hash = (53 * hash) + getConditionsList().hashCode();
}
if (hasCollisionCount()) {
hash = (37 * hash) + COLLISIONCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getCollisionCount();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta1Extensions.DeploymentStatus parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DeploymentStatus 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.V1beta1Extensions.DeploymentStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DeploymentStatus 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.V1beta1Extensions.DeploymentStatus parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DeploymentStatus parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DeploymentStatus parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DeploymentStatus 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.V1beta1Extensions.DeploymentStatus parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DeploymentStatus 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.V1beta1Extensions.DeploymentStatus parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DeploymentStatus 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.V1beta1Extensions.DeploymentStatus 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;
}
/**
*
* DeploymentStatus is the most recently observed status of the Deployment.
*
* Total number of unavailable pods targeted by this deployment. This is the total number of
* pods that are still required for the deployment to have 100% available capacity. They may
* either be pods that are running but not yet available or pods that still have not been created.
* +optional
*
* Total number of unavailable pods targeted by this deployment. This is the total number of
* pods that are still required for the deployment to have 100% available capacity. They may
* either be pods that are running but not yet available or pods that still have not been created.
* +optional
*
*
* optional int32 unavailableReplicas = 5;
*/
public int getUnavailableReplicas() {
return unavailableReplicas_;
}
/**
*
* Total number of unavailable pods targeted by this deployment. This is the total number of
* pods that are still required for the deployment to have 100% available capacity. They may
* either be pods that are running but not yet available or pods that still have not been created.
* +optional
*
* Total number of unavailable pods targeted by this deployment. This is the total number of
* pods that are still required for the deployment to have 100% available capacity. They may
* either be pods that are running but not yet available or pods that still have not been created.
* +optional
*
* Count of hash collisions for the Deployment. The Deployment controller uses this
* field as a collision avoidance mechanism when it needs to create the name for the
* newest ReplicaSet.
* +optional
*
* Count of hash collisions for the Deployment. The Deployment controller uses this
* field as a collision avoidance mechanism when it needs to create the name for the
* newest ReplicaSet.
* +optional
*
*
* optional int32 collisionCount = 8;
*/
public int getCollisionCount() {
return collisionCount_;
}
/**
*
* Count of hash collisions for the Deployment. The Deployment controller uses this
* field as a collision avoidance mechanism when it needs to create the name for the
* newest ReplicaSet.
* +optional
*
* Count of hash collisions for the Deployment. The Deployment controller uses this
* field as a collision avoidance mechanism when it needs to create the name for the
* newest ReplicaSet.
* +optional
*
*
* optional int32 collisionCount = 8;
*/
public Builder clearCollisionCount() {
bitField0_ = (bitField0_ & ~0x00000080);
collisionCount_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.extensions.v1beta1.DeploymentStatus)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.extensions.v1beta1.DeploymentStatus)
private static final io.kubernetes.client.proto.V1beta1Extensions.DeploymentStatus DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Extensions.DeploymentStatus();
}
public static io.kubernetes.client.proto.V1beta1Extensions.DeploymentStatus getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeploymentStatus parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeploymentStatus(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.V1beta1Extensions.DeploymentStatus getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeploymentStrategyOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.extensions.v1beta1.DeploymentStrategy)
com.google.protobuf.MessageOrBuilder {
/**
*
* Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate.
* +optional
*
* Rolling update config params. Present only if DeploymentStrategyType =
* RollingUpdate.
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be.
* +optional
*
* Rolling update config params. Present only if DeploymentStrategyType =
* RollingUpdate.
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be.
* +optional
*
* Rolling update config params. Present only if DeploymentStrategyType =
* RollingUpdate.
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be.
* +optional
*
* Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate.
* +optional
*
*
* optional string type = 1;
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
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()) {
type_ = s;
}
return s;
}
}
/**
*
* Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate.
* +optional
*
*
* optional string type = 1;
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ROLLINGUPDATE_FIELD_NUMBER = 2;
private io.kubernetes.client.proto.V1beta1Extensions.RollingUpdateDeployment rollingUpdate_;
/**
*
* Rolling update config params. Present only if DeploymentStrategyType =
* RollingUpdate.
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be.
* +optional
*
* Rolling update config params. Present only if DeploymentStrategyType =
* RollingUpdate.
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be.
* +optional
*
* Rolling update config params. Present only if DeploymentStrategyType =
* RollingUpdate.
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be.
* +optional
*
*
* optional .k8s.io.api.extensions.v1beta1.RollingUpdateDeployment rollingUpdate = 2;
*/
public io.kubernetes.client.proto.V1beta1Extensions.RollingUpdateDeploymentOrBuilder getRollingUpdateOrBuilder() {
return rollingUpdate_ == null ? io.kubernetes.client.proto.V1beta1Extensions.RollingUpdateDeployment.getDefaultInstance() : rollingUpdate_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getRollingUpdate());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getRollingUpdate());
}
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.V1beta1Extensions.DeploymentStrategy)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta1Extensions.DeploymentStrategy other = (io.kubernetes.client.proto.V1beta1Extensions.DeploymentStrategy) obj;
boolean result = true;
result = result && (hasType() == other.hasType());
if (hasType()) {
result = result && getType()
.equals(other.getType());
}
result = result && (hasRollingUpdate() == other.hasRollingUpdate());
if (hasRollingUpdate()) {
result = result && getRollingUpdate()
.equals(other.getRollingUpdate());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
}
if (hasRollingUpdate()) {
hash = (37 * hash) + ROLLINGUPDATE_FIELD_NUMBER;
hash = (53 * hash) + getRollingUpdate().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta1Extensions.DeploymentStrategy parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DeploymentStrategy 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.V1beta1Extensions.DeploymentStrategy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DeploymentStrategy 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.V1beta1Extensions.DeploymentStrategy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DeploymentStrategy parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DeploymentStrategy parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DeploymentStrategy 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.V1beta1Extensions.DeploymentStrategy parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DeploymentStrategy 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.V1beta1Extensions.DeploymentStrategy parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.DeploymentStrategy 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.V1beta1Extensions.DeploymentStrategy 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;
}
/**
*
* DeploymentStrategy describes how to replace existing pods with new ones.
*
*
* Protobuf type {@code k8s.io.api.extensions.v1beta1.DeploymentStrategy}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.extensions.v1beta1.DeploymentStrategy)
io.kubernetes.client.proto.V1beta1Extensions.DeploymentStrategyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_DeploymentStrategy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_DeploymentStrategy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Extensions.DeploymentStrategy.class, io.kubernetes.client.proto.V1beta1Extensions.DeploymentStrategy.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1beta1Extensions.DeploymentStrategy.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRollingUpdateFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
type_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (rollingUpdateBuilder_ == null) {
rollingUpdate_ = null;
} else {
rollingUpdateBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_DeploymentStrategy_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.DeploymentStrategy getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1beta1Extensions.DeploymentStrategy.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.DeploymentStrategy build() {
io.kubernetes.client.proto.V1beta1Extensions.DeploymentStrategy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.DeploymentStrategy buildPartial() {
io.kubernetes.client.proto.V1beta1Extensions.DeploymentStrategy result = new io.kubernetes.client.proto.V1beta1Extensions.DeploymentStrategy(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (rollingUpdateBuilder_ == null) {
result.rollingUpdate_ = rollingUpdate_;
} else {
result.rollingUpdate_ = rollingUpdateBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1beta1Extensions.DeploymentStrategy) {
return mergeFrom((io.kubernetes.client.proto.V1beta1Extensions.DeploymentStrategy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Extensions.DeploymentStrategy other) {
if (other == io.kubernetes.client.proto.V1beta1Extensions.DeploymentStrategy.getDefaultInstance()) return this;
if (other.hasType()) {
bitField0_ |= 0x00000001;
type_ = other.type_;
onChanged();
}
if (other.hasRollingUpdate()) {
mergeRollingUpdate(other.getRollingUpdate());
}
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.V1beta1Extensions.DeploymentStrategy parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1beta1Extensions.DeploymentStrategy) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object type_ = "";
/**
*
* Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate.
* +optional
*
* Rolling update config params. Present only if DeploymentStrategyType =
* RollingUpdate.
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be.
* +optional
*
* Rolling update config params. Present only if DeploymentStrategyType =
* RollingUpdate.
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be.
* +optional
*
* Rolling update config params. Present only if DeploymentStrategyType =
* RollingUpdate.
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be.
* +optional
*
* Rolling update config params. Present only if DeploymentStrategyType =
* RollingUpdate.
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be.
* +optional
*
* Rolling update config params. Present only if DeploymentStrategyType =
* RollingUpdate.
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be.
* +optional
*
* Rolling update config params. Present only if DeploymentStrategyType =
* RollingUpdate.
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be.
* +optional
*
* Rolling update config params. Present only if DeploymentStrategyType =
* RollingUpdate.
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be.
* +optional
*
* Rolling update config params. Present only if DeploymentStrategyType =
* RollingUpdate.
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be.
* +optional
*
* Rolling update config params. Present only if DeploymentStrategyType =
* RollingUpdate.
* ---
* TODO: Update this to follow our convention for oneOf, whatever we decide it
* to be.
* +optional
*
*
* optional .k8s.io.api.extensions.v1beta1.RollingUpdateDeployment rollingUpdate = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1beta1Extensions.RollingUpdateDeployment, io.kubernetes.client.proto.V1beta1Extensions.RollingUpdateDeployment.Builder, io.kubernetes.client.proto.V1beta1Extensions.RollingUpdateDeploymentOrBuilder>
getRollingUpdateFieldBuilder() {
if (rollingUpdateBuilder_ == null) {
rollingUpdateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1beta1Extensions.RollingUpdateDeployment, io.kubernetes.client.proto.V1beta1Extensions.RollingUpdateDeployment.Builder, io.kubernetes.client.proto.V1beta1Extensions.RollingUpdateDeploymentOrBuilder>(
getRollingUpdate(),
getParentForChildren(),
isClean());
rollingUpdate_ = null;
}
return rollingUpdateBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.extensions.v1beta1.DeploymentStrategy)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.extensions.v1beta1.DeploymentStrategy)
private static final io.kubernetes.client.proto.V1beta1Extensions.DeploymentStrategy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Extensions.DeploymentStrategy();
}
public static io.kubernetes.client.proto.V1beta1Extensions.DeploymentStrategy getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeploymentStrategy parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeploymentStrategy(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.V1beta1Extensions.DeploymentStrategy getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FSGroupStrategyOptionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.extensions.v1beta1.FSGroupStrategyOptions)
com.google.protobuf.MessageOrBuilder {
/**
*
* rule is the strategy that will dictate what FSGroup is used in the SecurityContext.
* +optional
*
* ranges are the allowed ranges of fs groups. If you would like to force a single
* fs group then supply a single range with the same start and end. Required for MustRunAs.
* +optional
*
* ranges are the allowed ranges of fs groups. If you would like to force a single
* fs group then supply a single range with the same start and end. Required for MustRunAs.
* +optional
*
* ranges are the allowed ranges of fs groups. If you would like to force a single
* fs group then supply a single range with the same start and end. Required for MustRunAs.
* +optional
*
* ranges are the allowed ranges of fs groups. If you would like to force a single
* fs group then supply a single range with the same start and end. Required for MustRunAs.
* +optional
*
* ranges are the allowed ranges of fs groups. If you would like to force a single
* fs group then supply a single range with the same start and end. Required for MustRunAs.
* +optional
*
* FSGroupStrategyOptions defines the strategy type and options used to create the strategy.
* Deprecated: use FSGroupStrategyOptions from policy API Group instead.
*
*
* Protobuf type {@code k8s.io.api.extensions.v1beta1.FSGroupStrategyOptions}
*/
public static final class FSGroupStrategyOptions extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.extensions.v1beta1.FSGroupStrategyOptions)
FSGroupStrategyOptionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use FSGroupStrategyOptions.newBuilder() to construct.
private FSGroupStrategyOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FSGroupStrategyOptions() {
rule_ = "";
ranges_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FSGroupStrategyOptions(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
rule_ = bs;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
ranges_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
ranges_.add(
input.readMessage(io.kubernetes.client.proto.V1beta1Extensions.IDRange.PARSER, extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
ranges_ = java.util.Collections.unmodifiableList(ranges_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_FSGroupStrategyOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_FSGroupStrategyOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Extensions.FSGroupStrategyOptions.class, io.kubernetes.client.proto.V1beta1Extensions.FSGroupStrategyOptions.Builder.class);
}
private int bitField0_;
public static final int RULE_FIELD_NUMBER = 1;
private volatile java.lang.Object rule_;
/**
*
* rule is the strategy that will dictate what FSGroup is used in the SecurityContext.
* +optional
*
* rule is the strategy that will dictate what FSGroup is used in the SecurityContext.
* +optional
*
*
* optional string rule = 1;
*/
public com.google.protobuf.ByteString
getRuleBytes() {
java.lang.Object ref = rule_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rule_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RANGES_FIELD_NUMBER = 2;
private java.util.List ranges_;
/**
*
* ranges are the allowed ranges of fs groups. If you would like to force a single
* fs group then supply a single range with the same start and end. Required for MustRunAs.
* +optional
*
* ranges are the allowed ranges of fs groups. If you would like to force a single
* fs group then supply a single range with the same start and end. Required for MustRunAs.
* +optional
*
* ranges are the allowed ranges of fs groups. If you would like to force a single
* fs group then supply a single range with the same start and end. Required for MustRunAs.
* +optional
*
*
* repeated .k8s.io.api.extensions.v1beta1.IDRange ranges = 2;
*/
public int getRangesCount() {
return ranges_.size();
}
/**
*
* ranges are the allowed ranges of fs groups. If you would like to force a single
* fs group then supply a single range with the same start and end. Required for MustRunAs.
* +optional
*
* ranges are the allowed ranges of fs groups. If you would like to force a single
* fs group then supply a single range with the same start and end. Required for MustRunAs.
* +optional
*
*
* repeated .k8s.io.api.extensions.v1beta1.IDRange ranges = 2;
*/
public io.kubernetes.client.proto.V1beta1Extensions.IDRangeOrBuilder getRangesOrBuilder(
int index) {
return ranges_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, rule_);
}
for (int i = 0; i < ranges_.size(); i++) {
output.writeMessage(2, ranges_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, rule_);
}
for (int i = 0; i < ranges_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, ranges_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1beta1Extensions.FSGroupStrategyOptions)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta1Extensions.FSGroupStrategyOptions other = (io.kubernetes.client.proto.V1beta1Extensions.FSGroupStrategyOptions) obj;
boolean result = true;
result = result && (hasRule() == other.hasRule());
if (hasRule()) {
result = result && getRule()
.equals(other.getRule());
}
result = result && getRangesList()
.equals(other.getRangesList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasRule()) {
hash = (37 * hash) + RULE_FIELD_NUMBER;
hash = (53 * hash) + getRule().hashCode();
}
if (getRangesCount() > 0) {
hash = (37 * hash) + RANGES_FIELD_NUMBER;
hash = (53 * hash) + getRangesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta1Extensions.FSGroupStrategyOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.FSGroupStrategyOptions parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta1Extensions.FSGroupStrategyOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.FSGroupStrategyOptions parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta1Extensions.FSGroupStrategyOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.FSGroupStrategyOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta1Extensions.FSGroupStrategyOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.FSGroupStrategyOptions parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta1Extensions.FSGroupStrategyOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.FSGroupStrategyOptions parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta1Extensions.FSGroupStrategyOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.FSGroupStrategyOptions parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.V1beta1Extensions.FSGroupStrategyOptions prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* FSGroupStrategyOptions defines the strategy type and options used to create the strategy.
* Deprecated: use FSGroupStrategyOptions from policy API Group instead.
*
* ranges are the allowed ranges of fs groups. If you would like to force a single
* fs group then supply a single range with the same start and end. Required for MustRunAs.
* +optional
*
* ranges are the allowed ranges of fs groups. If you would like to force a single
* fs group then supply a single range with the same start and end. Required for MustRunAs.
* +optional
*
*
* repeated .k8s.io.api.extensions.v1beta1.IDRange ranges = 2;
*/
public int getRangesCount() {
if (rangesBuilder_ == null) {
return ranges_.size();
} else {
return rangesBuilder_.getCount();
}
}
/**
*
* ranges are the allowed ranges of fs groups. If you would like to force a single
* fs group then supply a single range with the same start and end. Required for MustRunAs.
* +optional
*
* ranges are the allowed ranges of fs groups. If you would like to force a single
* fs group then supply a single range with the same start and end. Required for MustRunAs.
* +optional
*
*
* repeated .k8s.io.api.extensions.v1beta1.IDRange ranges = 2;
*/
public Builder setRanges(
int index, io.kubernetes.client.proto.V1beta1Extensions.IDRange value) {
if (rangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRangesIsMutable();
ranges_.set(index, value);
onChanged();
} else {
rangesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* ranges are the allowed ranges of fs groups. If you would like to force a single
* fs group then supply a single range with the same start and end. Required for MustRunAs.
* +optional
*
* ranges are the allowed ranges of fs groups. If you would like to force a single
* fs group then supply a single range with the same start and end. Required for MustRunAs.
* +optional
*
*
* repeated .k8s.io.api.extensions.v1beta1.IDRange ranges = 2;
*/
public Builder addRanges(io.kubernetes.client.proto.V1beta1Extensions.IDRange value) {
if (rangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRangesIsMutable();
ranges_.add(value);
onChanged();
} else {
rangesBuilder_.addMessage(value);
}
return this;
}
/**
*
* ranges are the allowed ranges of fs groups. If you would like to force a single
* fs group then supply a single range with the same start and end. Required for MustRunAs.
* +optional
*
*
* repeated .k8s.io.api.extensions.v1beta1.IDRange ranges = 2;
*/
public Builder addRanges(
int index, io.kubernetes.client.proto.V1beta1Extensions.IDRange value) {
if (rangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRangesIsMutable();
ranges_.add(index, value);
onChanged();
} else {
rangesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* ranges are the allowed ranges of fs groups. If you would like to force a single
* fs group then supply a single range with the same start and end. Required for MustRunAs.
* +optional
*
* ranges are the allowed ranges of fs groups. If you would like to force a single
* fs group then supply a single range with the same start and end. Required for MustRunAs.
* +optional
*
* ranges are the allowed ranges of fs groups. If you would like to force a single
* fs group then supply a single range with the same start and end. Required for MustRunAs.
* +optional
*
* ranges are the allowed ranges of fs groups. If you would like to force a single
* fs group then supply a single range with the same start and end. Required for MustRunAs.
* +optional
*
* ranges are the allowed ranges of fs groups. If you would like to force a single
* fs group then supply a single range with the same start and end. Required for MustRunAs.
* +optional
*
* ranges are the allowed ranges of fs groups. If you would like to force a single
* fs group then supply a single range with the same start and end. Required for MustRunAs.
* +optional
*
*
* repeated .k8s.io.api.extensions.v1beta1.IDRange ranges = 2;
*/
public io.kubernetes.client.proto.V1beta1Extensions.IDRange.Builder getRangesBuilder(
int index) {
return getRangesFieldBuilder().getBuilder(index);
}
/**
*
* ranges are the allowed ranges of fs groups. If you would like to force a single
* fs group then supply a single range with the same start and end. Required for MustRunAs.
* +optional
*
*
* repeated .k8s.io.api.extensions.v1beta1.IDRange ranges = 2;
*/
public io.kubernetes.client.proto.V1beta1Extensions.IDRangeOrBuilder getRangesOrBuilder(
int index) {
if (rangesBuilder_ == null) {
return ranges_.get(index); } else {
return rangesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* ranges are the allowed ranges of fs groups. If you would like to force a single
* fs group then supply a single range with the same start and end. Required for MustRunAs.
* +optional
*
* ranges are the allowed ranges of fs groups. If you would like to force a single
* fs group then supply a single range with the same start and end. Required for MustRunAs.
* +optional
*
* ranges are the allowed ranges of fs groups. If you would like to force a single
* fs group then supply a single range with the same start and end. Required for MustRunAs.
* +optional
*
* ranges are the allowed ranges of fs groups. If you would like to force a single
* fs group then supply a single range with the same start and end. Required for MustRunAs.
* +optional
*
*
* repeated .k8s.io.api.extensions.v1beta1.IDRange ranges = 2;
*/
public java.util.List
getRangesBuilderList() {
return getRangesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1beta1Extensions.IDRange, io.kubernetes.client.proto.V1beta1Extensions.IDRange.Builder, io.kubernetes.client.proto.V1beta1Extensions.IDRangeOrBuilder>
getRangesFieldBuilder() {
if (rangesBuilder_ == null) {
rangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1beta1Extensions.IDRange, io.kubernetes.client.proto.V1beta1Extensions.IDRange.Builder, io.kubernetes.client.proto.V1beta1Extensions.IDRangeOrBuilder>(
ranges_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
ranges_ = null;
}
return rangesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.extensions.v1beta1.FSGroupStrategyOptions)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.extensions.v1beta1.FSGroupStrategyOptions)
private static final io.kubernetes.client.proto.V1beta1Extensions.FSGroupStrategyOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Extensions.FSGroupStrategyOptions();
}
public static io.kubernetes.client.proto.V1beta1Extensions.FSGroupStrategyOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FSGroupStrategyOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FSGroupStrategyOptions(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.FSGroupStrategyOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface HTTPIngressPathOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.extensions.v1beta1.HTTPIngressPath)
com.google.protobuf.MessageOrBuilder {
/**
*
* Path is an extended POSIX regex as defined by IEEE Std 1003.1,
* (i.e this follows the egrep/unix syntax, not the perl syntax)
* matched against the path of an incoming request. Currently it can
* contain characters disallowed from the conventional "path"
* part of a URL as defined by RFC 3986. Paths must begin with
* a '/'. If unspecified, the path defaults to a catch all sending
* traffic to the backend.
* +optional
*
* Path is an extended POSIX regex as defined by IEEE Std 1003.1,
* (i.e this follows the egrep/unix syntax, not the perl syntax)
* matched against the path of an incoming request. Currently it can
* contain characters disallowed from the conventional "path"
* part of a URL as defined by RFC 3986. Paths must begin with
* a '/'. If unspecified, the path defaults to a catch all sending
* traffic to the backend.
* +optional
*
* Path is an extended POSIX regex as defined by IEEE Std 1003.1,
* (i.e this follows the egrep/unix syntax, not the perl syntax)
* matched against the path of an incoming request. Currently it can
* contain characters disallowed from the conventional "path"
* part of a URL as defined by RFC 3986. Paths must begin with
* a '/'. If unspecified, the path defaults to a catch all sending
* traffic to the backend.
* +optional
*
* HTTPIngressPath associates a path regex with a backend. Incoming urls matching
* the path are forwarded to the backend.
*
*
* Protobuf type {@code k8s.io.api.extensions.v1beta1.HTTPIngressPath}
*/
public static final class HTTPIngressPath extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.extensions.v1beta1.HTTPIngressPath)
HTTPIngressPathOrBuilder {
private static final long serialVersionUID = 0L;
// Use HTTPIngressPath.newBuilder() to construct.
private HTTPIngressPath(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private HTTPIngressPath() {
path_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private HTTPIngressPath(
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;
path_ = bs;
break;
}
case 18: {
io.kubernetes.client.proto.V1beta1Extensions.IngressBackend.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = backend_.toBuilder();
}
backend_ = input.readMessage(io.kubernetes.client.proto.V1beta1Extensions.IngressBackend.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(backend_);
backend_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_HTTPIngressPath_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_HTTPIngressPath_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressPath.class, io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressPath.Builder.class);
}
private int bitField0_;
public static final int PATH_FIELD_NUMBER = 1;
private volatile java.lang.Object path_;
/**
*
* Path is an extended POSIX regex as defined by IEEE Std 1003.1,
* (i.e this follows the egrep/unix syntax, not the perl syntax)
* matched against the path of an incoming request. Currently it can
* contain characters disallowed from the conventional "path"
* part of a URL as defined by RFC 3986. Paths must begin with
* a '/'. If unspecified, the path defaults to a catch all sending
* traffic to the backend.
* +optional
*
* Path is an extended POSIX regex as defined by IEEE Std 1003.1,
* (i.e this follows the egrep/unix syntax, not the perl syntax)
* matched against the path of an incoming request. Currently it can
* contain characters disallowed from the conventional "path"
* part of a URL as defined by RFC 3986. Paths must begin with
* a '/'. If unspecified, the path defaults to a catch all sending
* traffic to the backend.
* +optional
*
* Path is an extended POSIX regex as defined by IEEE Std 1003.1,
* (i.e this follows the egrep/unix syntax, not the perl syntax)
* matched against the path of an incoming request. Currently it can
* contain characters disallowed from the conventional "path"
* part of a URL as defined by RFC 3986. Paths must begin with
* a '/'. If unspecified, the path defaults to a catch all sending
* traffic to the backend.
* +optional
*
*
* optional string path = 1;
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BACKEND_FIELD_NUMBER = 2;
private io.kubernetes.client.proto.V1beta1Extensions.IngressBackend backend_;
/**
*
* Backend defines the referenced service endpoint to which the traffic
* will be forwarded to.
*
* Backend defines the referenced service endpoint to which the traffic
* will be forwarded to.
*
*
* optional .k8s.io.api.extensions.v1beta1.IngressBackend backend = 2;
*/
public io.kubernetes.client.proto.V1beta1Extensions.IngressBackendOrBuilder getBackendOrBuilder() {
return backend_ == null ? io.kubernetes.client.proto.V1beta1Extensions.IngressBackend.getDefaultInstance() : backend_;
}
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, path_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getBackend());
}
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, path_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getBackend());
}
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.V1beta1Extensions.HTTPIngressPath)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressPath other = (io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressPath) obj;
boolean result = true;
result = result && (hasPath() == other.hasPath());
if (hasPath()) {
result = result && getPath()
.equals(other.getPath());
}
result = result && (hasBackend() == other.hasBackend());
if (hasBackend()) {
result = result && getBackend()
.equals(other.getBackend());
}
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 (hasPath()) {
hash = (37 * hash) + PATH_FIELD_NUMBER;
hash = (53 * hash) + getPath().hashCode();
}
if (hasBackend()) {
hash = (37 * hash) + BACKEND_FIELD_NUMBER;
hash = (53 * hash) + getBackend().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressPath parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressPath 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.V1beta1Extensions.HTTPIngressPath parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressPath 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.V1beta1Extensions.HTTPIngressPath parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressPath parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressPath parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressPath 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.V1beta1Extensions.HTTPIngressPath parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressPath 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.V1beta1Extensions.HTTPIngressPath parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressPath 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.V1beta1Extensions.HTTPIngressPath 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;
}
/**
*
* HTTPIngressPath associates a path regex with a backend. Incoming urls matching
* the path are forwarded to the backend.
*
*
* Protobuf type {@code k8s.io.api.extensions.v1beta1.HTTPIngressPath}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.extensions.v1beta1.HTTPIngressPath)
io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressPathOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_HTTPIngressPath_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_HTTPIngressPath_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressPath.class, io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressPath.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressPath.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getBackendFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
path_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (backendBuilder_ == null) {
backend_ = null;
} else {
backendBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_HTTPIngressPath_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressPath getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressPath.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressPath build() {
io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressPath result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressPath buildPartial() {
io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressPath result = new io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressPath(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.path_ = path_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (backendBuilder_ == null) {
result.backend_ = backend_;
} else {
result.backend_ = backendBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressPath) {
return mergeFrom((io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressPath)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressPath other) {
if (other == io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressPath.getDefaultInstance()) return this;
if (other.hasPath()) {
bitField0_ |= 0x00000001;
path_ = other.path_;
onChanged();
}
if (other.hasBackend()) {
mergeBackend(other.getBackend());
}
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.V1beta1Extensions.HTTPIngressPath parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressPath) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object path_ = "";
/**
*
* Path is an extended POSIX regex as defined by IEEE Std 1003.1,
* (i.e this follows the egrep/unix syntax, not the perl syntax)
* matched against the path of an incoming request. Currently it can
* contain characters disallowed from the conventional "path"
* part of a URL as defined by RFC 3986. Paths must begin with
* a '/'. If unspecified, the path defaults to a catch all sending
* traffic to the backend.
* +optional
*
* Path is an extended POSIX regex as defined by IEEE Std 1003.1,
* (i.e this follows the egrep/unix syntax, not the perl syntax)
* matched against the path of an incoming request. Currently it can
* contain characters disallowed from the conventional "path"
* part of a URL as defined by RFC 3986. Paths must begin with
* a '/'. If unspecified, the path defaults to a catch all sending
* traffic to the backend.
* +optional
*
* Path is an extended POSIX regex as defined by IEEE Std 1003.1,
* (i.e this follows the egrep/unix syntax, not the perl syntax)
* matched against the path of an incoming request. Currently it can
* contain characters disallowed from the conventional "path"
* part of a URL as defined by RFC 3986. Paths must begin with
* a '/'. If unspecified, the path defaults to a catch all sending
* traffic to the backend.
* +optional
*
* Path is an extended POSIX regex as defined by IEEE Std 1003.1,
* (i.e this follows the egrep/unix syntax, not the perl syntax)
* matched against the path of an incoming request. Currently it can
* contain characters disallowed from the conventional "path"
* part of a URL as defined by RFC 3986. Paths must begin with
* a '/'. If unspecified, the path defaults to a catch all sending
* traffic to the backend.
* +optional
*
* Path is an extended POSIX regex as defined by IEEE Std 1003.1,
* (i.e this follows the egrep/unix syntax, not the perl syntax)
* matched against the path of an incoming request. Currently it can
* contain characters disallowed from the conventional "path"
* part of a URL as defined by RFC 3986. Paths must begin with
* a '/'. If unspecified, the path defaults to a catch all sending
* traffic to the backend.
* +optional
*
* Path is an extended POSIX regex as defined by IEEE Std 1003.1,
* (i.e this follows the egrep/unix syntax, not the perl syntax)
* matched against the path of an incoming request. Currently it can
* contain characters disallowed from the conventional "path"
* part of a URL as defined by RFC 3986. Paths must begin with
* a '/'. If unspecified, the path defaults to a catch all sending
* traffic to the backend.
* +optional
*
* HTTPIngressRuleValue is a list of http selectors pointing to backends.
* In the example: http://<host>/<path>?<searchpart> -> backend where
* where parts of the url correspond to RFC 3986, this resource will be used
* to match against everything after the last '/' and before the first '?'
* or '#'.
*
*
* Protobuf type {@code k8s.io.api.extensions.v1beta1.HTTPIngressRuleValue}
*/
public static final class HTTPIngressRuleValue extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.extensions.v1beta1.HTTPIngressRuleValue)
HTTPIngressRuleValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use HTTPIngressRuleValue.newBuilder() to construct.
private HTTPIngressRuleValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private HTTPIngressRuleValue() {
paths_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private HTTPIngressRuleValue(
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)) {
paths_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
paths_.add(
input.readMessage(io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressPath.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)) {
paths_ = java.util.Collections.unmodifiableList(paths_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_HTTPIngressRuleValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_HTTPIngressRuleValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressRuleValue.class, io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressRuleValue.Builder.class);
}
public static final int PATHS_FIELD_NUMBER = 1;
private java.util.List paths_;
/**
*
* A collection of paths that map requests to backends.
*
* A collection of paths that map requests to backends.
*
*
* repeated .k8s.io.api.extensions.v1beta1.HTTPIngressPath paths = 1;
*/
public io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressPathOrBuilder getPathsOrBuilder(
int index) {
return paths_.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 < paths_.size(); i++) {
output.writeMessage(1, paths_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < paths_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, paths_.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.V1beta1Extensions.HTTPIngressRuleValue)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressRuleValue other = (io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressRuleValue) obj;
boolean result = true;
result = result && getPathsList()
.equals(other.getPathsList());
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 (getPathsCount() > 0) {
hash = (37 * hash) + PATHS_FIELD_NUMBER;
hash = (53 * hash) + getPathsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressRuleValue parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressRuleValue 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.V1beta1Extensions.HTTPIngressRuleValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressRuleValue 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.V1beta1Extensions.HTTPIngressRuleValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressRuleValue parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressRuleValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressRuleValue 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.V1beta1Extensions.HTTPIngressRuleValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressRuleValue 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.V1beta1Extensions.HTTPIngressRuleValue parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressRuleValue 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.V1beta1Extensions.HTTPIngressRuleValue 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;
}
/**
*
* HTTPIngressRuleValue is a list of http selectors pointing to backends.
* In the example: http://<host>/<path>?<searchpart> -> backend where
* where parts of the url correspond to RFC 3986, this resource will be used
* to match against everything after the last '/' and before the first '?'
* or '#'.
*
*
* optional int32 max = 2;
*/
int getMax();
}
/**
*
* HostPortRange defines a range of host ports that will be enabled by a policy
* for pods to use. It requires both the start and end to be defined.
* Deprecated: use HostPortRange from policy API Group instead.
*
*
* Protobuf type {@code k8s.io.api.extensions.v1beta1.HostPortRange}
*/
public static final class HostPortRange extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.extensions.v1beta1.HostPortRange)
HostPortRangeOrBuilder {
private static final long serialVersionUID = 0L;
// Use HostPortRange.newBuilder() to construct.
private HostPortRange(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private HostPortRange() {
min_ = 0;
max_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private HostPortRange(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
bitField0_ |= 0x00000001;
min_ = input.readInt32();
break;
}
case 16: {
bitField0_ |= 0x00000002;
max_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_HostPortRange_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_HostPortRange_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Extensions.HostPortRange.class, io.kubernetes.client.proto.V1beta1Extensions.HostPortRange.Builder.class);
}
private int bitField0_;
public static final int MIN_FIELD_NUMBER = 1;
private int min_;
/**
*
*
* optional int32 max = 2;
*/
public int getMax() {
return max_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, min_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, max_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, min_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, max_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1beta1Extensions.HostPortRange)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta1Extensions.HostPortRange other = (io.kubernetes.client.proto.V1beta1Extensions.HostPortRange) obj;
boolean result = true;
result = result && (hasMin() == other.hasMin());
if (hasMin()) {
result = result && (getMin()
== other.getMin());
}
result = result && (hasMax() == other.hasMax());
if (hasMax()) {
result = result && (getMax()
== other.getMax());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasMin()) {
hash = (37 * hash) + MIN_FIELD_NUMBER;
hash = (53 * hash) + getMin();
}
if (hasMax()) {
hash = (37 * hash) + MAX_FIELD_NUMBER;
hash = (53 * hash) + getMax();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta1Extensions.HostPortRange parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.HostPortRange parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta1Extensions.HostPortRange parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.HostPortRange parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta1Extensions.HostPortRange parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.HostPortRange parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta1Extensions.HostPortRange parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.HostPortRange parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta1Extensions.HostPortRange parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.HostPortRange parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta1Extensions.HostPortRange parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.HostPortRange parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.kubernetes.client.proto.V1beta1Extensions.HostPortRange prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* HostPortRange defines a range of host ports that will be enabled by a policy
* for pods to use. It requires both the start and end to be defined.
* Deprecated: use HostPortRange from policy API Group instead.
*
*
* Protobuf type {@code k8s.io.api.extensions.v1beta1.HostPortRange}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.extensions.v1beta1.HostPortRange)
io.kubernetes.client.proto.V1beta1Extensions.HostPortRangeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_HostPortRange_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_HostPortRange_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Extensions.HostPortRange.class, io.kubernetes.client.proto.V1beta1Extensions.HostPortRange.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1beta1Extensions.HostPortRange.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
min_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
max_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_HostPortRange_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.HostPortRange getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1beta1Extensions.HostPortRange.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.HostPortRange build() {
io.kubernetes.client.proto.V1beta1Extensions.HostPortRange result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.HostPortRange buildPartial() {
io.kubernetes.client.proto.V1beta1Extensions.HostPortRange result = new io.kubernetes.client.proto.V1beta1Extensions.HostPortRange(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.min_ = min_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.max_ = max_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1beta1Extensions.HostPortRange) {
return mergeFrom((io.kubernetes.client.proto.V1beta1Extensions.HostPortRange)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Extensions.HostPortRange other) {
if (other == io.kubernetes.client.proto.V1beta1Extensions.HostPortRange.getDefaultInstance()) return this;
if (other.hasMin()) {
setMin(other.getMin());
}
if (other.hasMax()) {
setMax(other.getMax());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1beta1Extensions.HostPortRange parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1beta1Extensions.HostPortRange) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int min_ ;
/**
*
* Except is a slice of CIDRs that should not be included within an IP Block
* Valid examples are "192.168.1.1/24"
* Except values will be rejected if they are outside the CIDR range
* +optional
*
* Except is a slice of CIDRs that should not be included within an IP Block
* Valid examples are "192.168.1.1/24"
* Except values will be rejected if they are outside the CIDR range
* +optional
*
* Except is a slice of CIDRs that should not be included within an IP Block
* Valid examples are "192.168.1.1/24"
* Except values will be rejected if they are outside the CIDR range
* +optional
*
* Except is a slice of CIDRs that should not be included within an IP Block
* Valid examples are "192.168.1.1/24"
* Except values will be rejected if they are outside the CIDR range
* +optional
*
* DEPRECATED 1.9 - This group version of IPBlock is deprecated by networking/v1/IPBlock.
* IPBlock describes a particular CIDR (Ex. "192.168.1.1/24") that is allowed to the pods
* matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should
* not be included within this rule.
*
*
* Protobuf type {@code k8s.io.api.extensions.v1beta1.IPBlock}
*/
public static final class IPBlock extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.extensions.v1beta1.IPBlock)
IPBlockOrBuilder {
private static final long serialVersionUID = 0L;
// Use IPBlock.newBuilder() to construct.
private IPBlock(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IPBlock() {
cidr_ = "";
except_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IPBlock(
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;
cidr_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
except_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
except_.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_ & 0x00000002) == 0x00000002)) {
except_ = except_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_IPBlock_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_IPBlock_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Extensions.IPBlock.class, io.kubernetes.client.proto.V1beta1Extensions.IPBlock.Builder.class);
}
private int bitField0_;
public static final int CIDR_FIELD_NUMBER = 1;
private volatile java.lang.Object cidr_;
/**
*
* CIDR is a string representing the IP Block
* Valid examples are "192.168.1.1/24"
*
* CIDR is a string representing the IP Block
* Valid examples are "192.168.1.1/24"
*
*
* optional string cidr = 1;
*/
public com.google.protobuf.ByteString
getCidrBytes() {
java.lang.Object ref = cidr_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cidr_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EXCEPT_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList except_;
/**
*
* Except is a slice of CIDRs that should not be included within an IP Block
* Valid examples are "192.168.1.1/24"
* Except values will be rejected if they are outside the CIDR range
* +optional
*
* Except is a slice of CIDRs that should not be included within an IP Block
* Valid examples are "192.168.1.1/24"
* Except values will be rejected if they are outside the CIDR range
* +optional
*
*
* repeated string except = 2;
*/
public int getExceptCount() {
return except_.size();
}
/**
*
* Except is a slice of CIDRs that should not be included within an IP Block
* Valid examples are "192.168.1.1/24"
* Except values will be rejected if they are outside the CIDR range
* +optional
*
* Except is a slice of CIDRs that should not be included within an IP Block
* Valid examples are "192.168.1.1/24"
* Except values will be rejected if they are outside the CIDR range
* +optional
*
*
* repeated string except = 2;
*/
public com.google.protobuf.ByteString
getExceptBytes(int index) {
return except_.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)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cidr_);
}
for (int i = 0; i < except_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, except_.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.GeneratedMessageV3.computeStringSize(1, cidr_);
}
{
int dataSize = 0;
for (int i = 0; i < except_.size(); i++) {
dataSize += computeStringSizeNoTag(except_.getRaw(i));
}
size += dataSize;
size += 1 * getExceptList().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.V1beta1Extensions.IPBlock)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta1Extensions.IPBlock other = (io.kubernetes.client.proto.V1beta1Extensions.IPBlock) obj;
boolean result = true;
result = result && (hasCidr() == other.hasCidr());
if (hasCidr()) {
result = result && getCidr()
.equals(other.getCidr());
}
result = result && getExceptList()
.equals(other.getExceptList());
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 (hasCidr()) {
hash = (37 * hash) + CIDR_FIELD_NUMBER;
hash = (53 * hash) + getCidr().hashCode();
}
if (getExceptCount() > 0) {
hash = (37 * hash) + EXCEPT_FIELD_NUMBER;
hash = (53 * hash) + getExceptList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta1Extensions.IPBlock parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.IPBlock 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.V1beta1Extensions.IPBlock parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.IPBlock 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.V1beta1Extensions.IPBlock parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.IPBlock parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta1Extensions.IPBlock parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.IPBlock 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.V1beta1Extensions.IPBlock parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.IPBlock 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.V1beta1Extensions.IPBlock parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.IPBlock 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.V1beta1Extensions.IPBlock 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;
}
/**
*
* DEPRECATED 1.9 - This group version of IPBlock is deprecated by networking/v1/IPBlock.
* IPBlock describes a particular CIDR (Ex. "192.168.1.1/24") that is allowed to the pods
* matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should
* not be included within this rule.
*
*
* Protobuf type {@code k8s.io.api.extensions.v1beta1.IPBlock}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.extensions.v1beta1.IPBlock)
io.kubernetes.client.proto.V1beta1Extensions.IPBlockOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_IPBlock_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_IPBlock_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Extensions.IPBlock.class, io.kubernetes.client.proto.V1beta1Extensions.IPBlock.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1beta1Extensions.IPBlock.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();
cidr_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
except_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_IPBlock_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.IPBlock getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1beta1Extensions.IPBlock.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.IPBlock build() {
io.kubernetes.client.proto.V1beta1Extensions.IPBlock result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.IPBlock buildPartial() {
io.kubernetes.client.proto.V1beta1Extensions.IPBlock result = new io.kubernetes.client.proto.V1beta1Extensions.IPBlock(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.cidr_ = cidr_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
except_ = except_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.except_ = except_;
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.V1beta1Extensions.IPBlock) {
return mergeFrom((io.kubernetes.client.proto.V1beta1Extensions.IPBlock)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Extensions.IPBlock other) {
if (other == io.kubernetes.client.proto.V1beta1Extensions.IPBlock.getDefaultInstance()) return this;
if (other.hasCidr()) {
bitField0_ |= 0x00000001;
cidr_ = other.cidr_;
onChanged();
}
if (!other.except_.isEmpty()) {
if (except_.isEmpty()) {
except_ = other.except_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureExceptIsMutable();
except_.addAll(other.except_);
}
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.V1beta1Extensions.IPBlock parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1beta1Extensions.IPBlock) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object cidr_ = "";
/**
*
* CIDR is a string representing the IP Block
* Valid examples are "192.168.1.1/24"
*
* Except is a slice of CIDRs that should not be included within an IP Block
* Valid examples are "192.168.1.1/24"
* Except values will be rejected if they are outside the CIDR range
* +optional
*
* Except is a slice of CIDRs that should not be included within an IP Block
* Valid examples are "192.168.1.1/24"
* Except values will be rejected if they are outside the CIDR range
* +optional
*
*
* repeated string except = 2;
*/
public int getExceptCount() {
return except_.size();
}
/**
*
* Except is a slice of CIDRs that should not be included within an IP Block
* Valid examples are "192.168.1.1/24"
* Except values will be rejected if they are outside the CIDR range
* +optional
*
* Except is a slice of CIDRs that should not be included within an IP Block
* Valid examples are "192.168.1.1/24"
* Except values will be rejected if they are outside the CIDR range
* +optional
*
* Except is a slice of CIDRs that should not be included within an IP Block
* Valid examples are "192.168.1.1/24"
* Except values will be rejected if they are outside the CIDR range
* +optional
*
*
* repeated string except = 2;
*/
public Builder setExcept(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureExceptIsMutable();
except_.set(index, value);
onChanged();
return this;
}
/**
*
* Except is a slice of CIDRs that should not be included within an IP Block
* Valid examples are "192.168.1.1/24"
* Except values will be rejected if they are outside the CIDR range
* +optional
*
* Except is a slice of CIDRs that should not be included within an IP Block
* Valid examples are "192.168.1.1/24"
* Except values will be rejected if they are outside the CIDR range
* +optional
*
* Except is a slice of CIDRs that should not be included within an IP Block
* Valid examples are "192.168.1.1/24"
* Except values will be rejected if they are outside the CIDR range
* +optional
*
* Except is a slice of CIDRs that should not be included within an IP Block
* Valid examples are "192.168.1.1/24"
* Except values will be rejected if they are outside the CIDR range
* +optional
*
*
* repeated string except = 2;
*/
public Builder addExceptBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureExceptIsMutable();
except_.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.api.extensions.v1beta1.IPBlock)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.extensions.v1beta1.IPBlock)
private static final io.kubernetes.client.proto.V1beta1Extensions.IPBlock DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Extensions.IPBlock();
}
public static io.kubernetes.client.proto.V1beta1Extensions.IPBlock getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IPBlock parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IPBlock(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.V1beta1Extensions.IPBlock getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IngressOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.extensions.v1beta1.Ingress)
com.google.protobuf.MessageOrBuilder {
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
* Spec is the desired state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* Spec is the desired state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* Spec is the desired state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* Status is the current state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* Status is the current state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* Status is the current state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* Ingress is a collection of rules that allow inbound connections to reach the
* endpoints defined by a backend. An Ingress can be configured to give services
* externally-reachable urls, load balance traffic, terminate SSL, offer name
* based virtual hosting etc.
*
*
* Protobuf type {@code k8s.io.api.extensions.v1beta1.Ingress}
*/
public static final class Ingress extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.extensions.v1beta1.Ingress)
IngressOrBuilder {
private static final long serialVersionUID = 0L;
// Use Ingress.newBuilder() to construct.
private Ingress(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Ingress() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Ingress(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
io.kubernetes.client.proto.Meta.ObjectMeta.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ObjectMeta.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
io.kubernetes.client.proto.V1beta1Extensions.IngressSpec.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = spec_.toBuilder();
}
spec_ = input.readMessage(io.kubernetes.client.proto.V1beta1Extensions.IngressSpec.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(spec_);
spec_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
io.kubernetes.client.proto.V1beta1Extensions.IngressStatus.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = status_.toBuilder();
}
status_ = input.readMessage(io.kubernetes.client.proto.V1beta1Extensions.IngressStatus.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(status_);
status_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_Ingress_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_Ingress_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Extensions.Ingress.class, io.kubernetes.client.proto.V1beta1Extensions.Ingress.Builder.class);
}
private int bitField0_;
public static final int METADATA_FIELD_NUMBER = 1;
private io.kubernetes.client.proto.Meta.ObjectMeta metadata_;
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() {
return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_;
}
public static final int SPEC_FIELD_NUMBER = 2;
private io.kubernetes.client.proto.V1beta1Extensions.IngressSpec spec_;
/**
*
* Spec is the desired state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* Spec is the desired state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* Spec is the desired state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.extensions.v1beta1.IngressSpec spec = 2;
*/
public io.kubernetes.client.proto.V1beta1Extensions.IngressSpecOrBuilder getSpecOrBuilder() {
return spec_ == null ? io.kubernetes.client.proto.V1beta1Extensions.IngressSpec.getDefaultInstance() : spec_;
}
public static final int STATUS_FIELD_NUMBER = 3;
private io.kubernetes.client.proto.V1beta1Extensions.IngressStatus status_;
/**
*
* Status is the current state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* Status is the current state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* Status is the current state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.extensions.v1beta1.IngressStatus status = 3;
*/
public io.kubernetes.client.proto.V1beta1Extensions.IngressStatusOrBuilder getStatusOrBuilder() {
return status_ == null ? io.kubernetes.client.proto.V1beta1Extensions.IngressStatus.getDefaultInstance() : status_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getMetadata());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getSpec());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, getStatus());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getMetadata());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSpec());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getStatus());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1beta1Extensions.Ingress)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta1Extensions.Ingress other = (io.kubernetes.client.proto.V1beta1Extensions.Ingress) obj;
boolean result = true;
result = result && (hasMetadata() == other.hasMetadata());
if (hasMetadata()) {
result = result && getMetadata()
.equals(other.getMetadata());
}
result = result && (hasSpec() == other.hasSpec());
if (hasSpec()) {
result = result && getSpec()
.equals(other.getSpec());
}
result = result && (hasStatus() == other.hasStatus());
if (hasStatus()) {
result = result && getStatus()
.equals(other.getStatus());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
if (hasSpec()) {
hash = (37 * hash) + SPEC_FIELD_NUMBER;
hash = (53 * hash) + getSpec().hashCode();
}
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta1Extensions.Ingress parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.Ingress 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.V1beta1Extensions.Ingress parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.Ingress 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.V1beta1Extensions.Ingress parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.Ingress parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta1Extensions.Ingress parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.Ingress 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.V1beta1Extensions.Ingress parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.Ingress 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.V1beta1Extensions.Ingress parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.Ingress 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.V1beta1Extensions.Ingress 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;
}
/**
*
* Ingress is a collection of rules that allow inbound connections to reach the
* endpoints defined by a backend. An Ingress can be configured to give services
* externally-reachable urls, load balance traffic, terminate SSL, offer name
* based virtual hosting etc.
*
*
* Protobuf type {@code k8s.io.api.extensions.v1beta1.Ingress}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.extensions.v1beta1.Ingress)
io.kubernetes.client.proto.V1beta1Extensions.IngressOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_Ingress_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_Ingress_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Extensions.Ingress.class, io.kubernetes.client.proto.V1beta1Extensions.Ingress.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1beta1Extensions.Ingress.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMetadataFieldBuilder();
getSpecFieldBuilder();
getStatusFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (specBuilder_ == null) {
spec_ = null;
} else {
specBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (statusBuilder_ == null) {
status_ = null;
} else {
statusBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_Ingress_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.Ingress getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1beta1Extensions.Ingress.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.Ingress build() {
io.kubernetes.client.proto.V1beta1Extensions.Ingress result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.Ingress buildPartial() {
io.kubernetes.client.proto.V1beta1Extensions.Ingress result = new io.kubernetes.client.proto.V1beta1Extensions.Ingress(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (specBuilder_ == null) {
result.spec_ = spec_;
} else {
result.spec_ = specBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (statusBuilder_ == null) {
result.status_ = status_;
} else {
result.status_ = statusBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1beta1Extensions.Ingress) {
return mergeFrom((io.kubernetes.client.proto.V1beta1Extensions.Ingress)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Extensions.Ingress other) {
if (other == io.kubernetes.client.proto.V1beta1Extensions.Ingress.getDefaultInstance()) return this;
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
if (other.hasSpec()) {
mergeSpec(other.getSpec());
}
if (other.hasStatus()) {
mergeStatus(other.getStatus());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1beta1Extensions.Ingress parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1beta1Extensions.Ingress) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_;
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
* Spec is the desired state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* Spec is the desired state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* Spec is the desired state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* Spec is the desired state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* Spec is the desired state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* Spec is the desired state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* Spec is the desired state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* Spec is the desired state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* Spec is the desired state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* Status is the current state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* Status is the current state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* Status is the current state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.extensions.v1beta1.IngressStatus status = 3;
*/
public Builder setStatus(io.kubernetes.client.proto.V1beta1Extensions.IngressStatus value) {
if (statusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
status_ = value;
onChanged();
} else {
statusBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
*
* Status is the current state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* Status is the current state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* Status is the current state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* Status is the current state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* Status is the current state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
* Status is the current state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.extensions.v1beta1.IngressStatus status = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1beta1Extensions.IngressStatus, io.kubernetes.client.proto.V1beta1Extensions.IngressStatus.Builder, io.kubernetes.client.proto.V1beta1Extensions.IngressStatusOrBuilder>
getStatusFieldBuilder() {
if (statusBuilder_ == null) {
statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1beta1Extensions.IngressStatus, io.kubernetes.client.proto.V1beta1Extensions.IngressStatus.Builder, io.kubernetes.client.proto.V1beta1Extensions.IngressStatusOrBuilder>(
getStatus(),
getParentForChildren(),
isClean());
status_ = null;
}
return statusBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.extensions.v1beta1.Ingress)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.extensions.v1beta1.Ingress)
private static final io.kubernetes.client.proto.V1beta1Extensions.Ingress DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Extensions.Ingress();
}
public static io.kubernetes.client.proto.V1beta1Extensions.Ingress getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Ingress parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Ingress(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.V1beta1Extensions.Ingress getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IngressBackendOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.extensions.v1beta1.IngressBackend)
com.google.protobuf.MessageOrBuilder {
/**
*
*
* repeated .k8s.io.api.extensions.v1beta1.Ingress items = 2;
*/
public java.util.List
getItemsBuilderList() {
return getItemsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1beta1Extensions.Ingress, io.kubernetes.client.proto.V1beta1Extensions.Ingress.Builder, io.kubernetes.client.proto.V1beta1Extensions.IngressOrBuilder>
getItemsFieldBuilder() {
if (itemsBuilder_ == null) {
itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1beta1Extensions.Ingress, io.kubernetes.client.proto.V1beta1Extensions.Ingress.Builder, io.kubernetes.client.proto.V1beta1Extensions.IngressOrBuilder>(
items_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
items_ = null;
}
return itemsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.extensions.v1beta1.IngressList)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.extensions.v1beta1.IngressList)
private static final io.kubernetes.client.proto.V1beta1Extensions.IngressList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Extensions.IngressList();
}
public static io.kubernetes.client.proto.V1beta1Extensions.IngressList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IngressList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IngressList(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.V1beta1Extensions.IngressList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IngressRuleOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.extensions.v1beta1.IngressRule)
com.google.protobuf.MessageOrBuilder {
/**
*
* Host is the fully qualified domain name of a network host, as defined
* by RFC 3986. Note the following deviations from the "host" part of the
* URI as defined in the RFC:
* 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the
* IP in the Spec of the parent Ingress.
* 2. The `:` delimiter is not respected because ports are not allowed.
* Currently the port of an Ingress is implicitly :80 for http and
* :443 for https.
* Both these may change in the future.
* Incoming requests are matched against the host before the IngressRuleValue.
* If the host is unspecified, the Ingress routes all traffic based on the
* specified IngressRuleValue.
* +optional
*
* Host is the fully qualified domain name of a network host, as defined
* by RFC 3986. Note the following deviations from the "host" part of the
* URI as defined in the RFC:
* 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the
* IP in the Spec of the parent Ingress.
* 2. The `:` delimiter is not respected because ports are not allowed.
* Currently the port of an Ingress is implicitly :80 for http and
* :443 for https.
* Both these may change in the future.
* Incoming requests are matched against the host before the IngressRuleValue.
* If the host is unspecified, the Ingress routes all traffic based on the
* specified IngressRuleValue.
* +optional
*
* Host is the fully qualified domain name of a network host, as defined
* by RFC 3986. Note the following deviations from the "host" part of the
* URI as defined in the RFC:
* 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the
* IP in the Spec of the parent Ingress.
* 2. The `:` delimiter is not respected because ports are not allowed.
* Currently the port of an Ingress is implicitly :80 for http and
* :443 for https.
* Both these may change in the future.
* Incoming requests are matched against the host before the IngressRuleValue.
* If the host is unspecified, the Ingress routes all traffic based on the
* specified IngressRuleValue.
* +optional
*
* IngressRuleValue represents a rule to route requests for this IngressRule.
* If unspecified, the rule defaults to a http catch-all. Whether that sends
* just traffic matching the host to the default backend or all traffic to the
* default backend, is left to the controller fulfilling the Ingress. Http is
* currently the only supported IngressRuleValue.
* +optional
*
* IngressRuleValue represents a rule to route requests for this IngressRule.
* If unspecified, the rule defaults to a http catch-all. Whether that sends
* just traffic matching the host to the default backend or all traffic to the
* default backend, is left to the controller fulfilling the Ingress. Http is
* currently the only supported IngressRuleValue.
* +optional
*
* IngressRuleValue represents a rule to route requests for this IngressRule.
* If unspecified, the rule defaults to a http catch-all. Whether that sends
* just traffic matching the host to the default backend or all traffic to the
* default backend, is left to the controller fulfilling the Ingress. Http is
* currently the only supported IngressRuleValue.
* +optional
*
* IngressRule represents the rules mapping the paths under a specified host to
* the related backend services. Incoming requests are first evaluated for a host
* match, then routed to the backend associated with the matching IngressRuleValue.
*
*
* Protobuf type {@code k8s.io.api.extensions.v1beta1.IngressRule}
*/
public static final class IngressRule extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.extensions.v1beta1.IngressRule)
IngressRuleOrBuilder {
private static final long serialVersionUID = 0L;
// Use IngressRule.newBuilder() to construct.
private IngressRule(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IngressRule() {
host_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IngressRule(
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;
host_ = bs;
break;
}
case 18: {
io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValue.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = ingressRuleValue_.toBuilder();
}
ingressRuleValue_ = input.readMessage(io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValue.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(ingressRuleValue_);
ingressRuleValue_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_IngressRule_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_IngressRule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Extensions.IngressRule.class, io.kubernetes.client.proto.V1beta1Extensions.IngressRule.Builder.class);
}
private int bitField0_;
public static final int HOST_FIELD_NUMBER = 1;
private volatile java.lang.Object host_;
/**
*
* Host is the fully qualified domain name of a network host, as defined
* by RFC 3986. Note the following deviations from the "host" part of the
* URI as defined in the RFC:
* 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the
* IP in the Spec of the parent Ingress.
* 2. The `:` delimiter is not respected because ports are not allowed.
* Currently the port of an Ingress is implicitly :80 for http and
* :443 for https.
* Both these may change in the future.
* Incoming requests are matched against the host before the IngressRuleValue.
* If the host is unspecified, the Ingress routes all traffic based on the
* specified IngressRuleValue.
* +optional
*
* Host is the fully qualified domain name of a network host, as defined
* by RFC 3986. Note the following deviations from the "host" part of the
* URI as defined in the RFC:
* 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the
* IP in the Spec of the parent Ingress.
* 2. The `:` delimiter is not respected because ports are not allowed.
* Currently the port of an Ingress is implicitly :80 for http and
* :443 for https.
* Both these may change in the future.
* Incoming requests are matched against the host before the IngressRuleValue.
* If the host is unspecified, the Ingress routes all traffic based on the
* specified IngressRuleValue.
* +optional
*
* Host is the fully qualified domain name of a network host, as defined
* by RFC 3986. Note the following deviations from the "host" part of the
* URI as defined in the RFC:
* 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the
* IP in the Spec of the parent Ingress.
* 2. The `:` delimiter is not respected because ports are not allowed.
* Currently the port of an Ingress is implicitly :80 for http and
* :443 for https.
* Both these may change in the future.
* Incoming requests are matched against the host before the IngressRuleValue.
* If the host is unspecified, the Ingress routes all traffic based on the
* specified IngressRuleValue.
* +optional
*
*
* optional string host = 1;
*/
public com.google.protobuf.ByteString
getHostBytes() {
java.lang.Object ref = host_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
host_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INGRESSRULEVALUE_FIELD_NUMBER = 2;
private io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValue ingressRuleValue_;
/**
*
* IngressRuleValue represents a rule to route requests for this IngressRule.
* If unspecified, the rule defaults to a http catch-all. Whether that sends
* just traffic matching the host to the default backend or all traffic to the
* default backend, is left to the controller fulfilling the Ingress. Http is
* currently the only supported IngressRuleValue.
* +optional
*
* IngressRuleValue represents a rule to route requests for this IngressRule.
* If unspecified, the rule defaults to a http catch-all. Whether that sends
* just traffic matching the host to the default backend or all traffic to the
* default backend, is left to the controller fulfilling the Ingress. Http is
* currently the only supported IngressRuleValue.
* +optional
*
* IngressRuleValue represents a rule to route requests for this IngressRule.
* If unspecified, the rule defaults to a http catch-all. Whether that sends
* just traffic matching the host to the default backend or all traffic to the
* default backend, is left to the controller fulfilling the Ingress. Http is
* currently the only supported IngressRuleValue.
* +optional
*
*
* optional .k8s.io.api.extensions.v1beta1.IngressRuleValue ingressRuleValue = 2;
*/
public io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValueOrBuilder getIngressRuleValueOrBuilder() {
return ingressRuleValue_ == null ? io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValue.getDefaultInstance() : ingressRuleValue_;
}
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, host_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getIngressRuleValue());
}
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, host_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getIngressRuleValue());
}
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.V1beta1Extensions.IngressRule)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta1Extensions.IngressRule other = (io.kubernetes.client.proto.V1beta1Extensions.IngressRule) obj;
boolean result = true;
result = result && (hasHost() == other.hasHost());
if (hasHost()) {
result = result && getHost()
.equals(other.getHost());
}
result = result && (hasIngressRuleValue() == other.hasIngressRuleValue());
if (hasIngressRuleValue()) {
result = result && getIngressRuleValue()
.equals(other.getIngressRuleValue());
}
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 (hasHost()) {
hash = (37 * hash) + HOST_FIELD_NUMBER;
hash = (53 * hash) + getHost().hashCode();
}
if (hasIngressRuleValue()) {
hash = (37 * hash) + INGRESSRULEVALUE_FIELD_NUMBER;
hash = (53 * hash) + getIngressRuleValue().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta1Extensions.IngressRule parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.IngressRule 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.V1beta1Extensions.IngressRule parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.IngressRule 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.V1beta1Extensions.IngressRule parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.IngressRule parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta1Extensions.IngressRule parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.IngressRule 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.V1beta1Extensions.IngressRule parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.IngressRule 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.V1beta1Extensions.IngressRule parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.IngressRule 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.V1beta1Extensions.IngressRule 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;
}
/**
*
* IngressRule represents the rules mapping the paths under a specified host to
* the related backend services. Incoming requests are first evaluated for a host
* match, then routed to the backend associated with the matching IngressRuleValue.
*
*
* Protobuf type {@code k8s.io.api.extensions.v1beta1.IngressRule}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.extensions.v1beta1.IngressRule)
io.kubernetes.client.proto.V1beta1Extensions.IngressRuleOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_IngressRule_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_IngressRule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Extensions.IngressRule.class, io.kubernetes.client.proto.V1beta1Extensions.IngressRule.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1beta1Extensions.IngressRule.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getIngressRuleValueFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
host_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (ingressRuleValueBuilder_ == null) {
ingressRuleValue_ = null;
} else {
ingressRuleValueBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_IngressRule_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.IngressRule getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1beta1Extensions.IngressRule.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.IngressRule build() {
io.kubernetes.client.proto.V1beta1Extensions.IngressRule result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.IngressRule buildPartial() {
io.kubernetes.client.proto.V1beta1Extensions.IngressRule result = new io.kubernetes.client.proto.V1beta1Extensions.IngressRule(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.host_ = host_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (ingressRuleValueBuilder_ == null) {
result.ingressRuleValue_ = ingressRuleValue_;
} else {
result.ingressRuleValue_ = ingressRuleValueBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1beta1Extensions.IngressRule) {
return mergeFrom((io.kubernetes.client.proto.V1beta1Extensions.IngressRule)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Extensions.IngressRule other) {
if (other == io.kubernetes.client.proto.V1beta1Extensions.IngressRule.getDefaultInstance()) return this;
if (other.hasHost()) {
bitField0_ |= 0x00000001;
host_ = other.host_;
onChanged();
}
if (other.hasIngressRuleValue()) {
mergeIngressRuleValue(other.getIngressRuleValue());
}
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.V1beta1Extensions.IngressRule parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1beta1Extensions.IngressRule) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object host_ = "";
/**
*
* Host is the fully qualified domain name of a network host, as defined
* by RFC 3986. Note the following deviations from the "host" part of the
* URI as defined in the RFC:
* 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the
* IP in the Spec of the parent Ingress.
* 2. The `:` delimiter is not respected because ports are not allowed.
* Currently the port of an Ingress is implicitly :80 for http and
* :443 for https.
* Both these may change in the future.
* Incoming requests are matched against the host before the IngressRuleValue.
* If the host is unspecified, the Ingress routes all traffic based on the
* specified IngressRuleValue.
* +optional
*
* Host is the fully qualified domain name of a network host, as defined
* by RFC 3986. Note the following deviations from the "host" part of the
* URI as defined in the RFC:
* 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the
* IP in the Spec of the parent Ingress.
* 2. The `:` delimiter is not respected because ports are not allowed.
* Currently the port of an Ingress is implicitly :80 for http and
* :443 for https.
* Both these may change in the future.
* Incoming requests are matched against the host before the IngressRuleValue.
* If the host is unspecified, the Ingress routes all traffic based on the
* specified IngressRuleValue.
* +optional
*
* Host is the fully qualified domain name of a network host, as defined
* by RFC 3986. Note the following deviations from the "host" part of the
* URI as defined in the RFC:
* 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the
* IP in the Spec of the parent Ingress.
* 2. The `:` delimiter is not respected because ports are not allowed.
* Currently the port of an Ingress is implicitly :80 for http and
* :443 for https.
* Both these may change in the future.
* Incoming requests are matched against the host before the IngressRuleValue.
* If the host is unspecified, the Ingress routes all traffic based on the
* specified IngressRuleValue.
* +optional
*
* Host is the fully qualified domain name of a network host, as defined
* by RFC 3986. Note the following deviations from the "host" part of the
* URI as defined in the RFC:
* 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the
* IP in the Spec of the parent Ingress.
* 2. The `:` delimiter is not respected because ports are not allowed.
* Currently the port of an Ingress is implicitly :80 for http and
* :443 for https.
* Both these may change in the future.
* Incoming requests are matched against the host before the IngressRuleValue.
* If the host is unspecified, the Ingress routes all traffic based on the
* specified IngressRuleValue.
* +optional
*
* Host is the fully qualified domain name of a network host, as defined
* by RFC 3986. Note the following deviations from the "host" part of the
* URI as defined in the RFC:
* 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the
* IP in the Spec of the parent Ingress.
* 2. The `:` delimiter is not respected because ports are not allowed.
* Currently the port of an Ingress is implicitly :80 for http and
* :443 for https.
* Both these may change in the future.
* Incoming requests are matched against the host before the IngressRuleValue.
* If the host is unspecified, the Ingress routes all traffic based on the
* specified IngressRuleValue.
* +optional
*
* Host is the fully qualified domain name of a network host, as defined
* by RFC 3986. Note the following deviations from the "host" part of the
* URI as defined in the RFC:
* 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the
* IP in the Spec of the parent Ingress.
* 2. The `:` delimiter is not respected because ports are not allowed.
* Currently the port of an Ingress is implicitly :80 for http and
* :443 for https.
* Both these may change in the future.
* Incoming requests are matched against the host before the IngressRuleValue.
* If the host is unspecified, the Ingress routes all traffic based on the
* specified IngressRuleValue.
* +optional
*
* IngressRuleValue represents a rule to route requests for this IngressRule.
* If unspecified, the rule defaults to a http catch-all. Whether that sends
* just traffic matching the host to the default backend or all traffic to the
* default backend, is left to the controller fulfilling the Ingress. Http is
* currently the only supported IngressRuleValue.
* +optional
*
* IngressRuleValue represents a rule to route requests for this IngressRule.
* If unspecified, the rule defaults to a http catch-all. Whether that sends
* just traffic matching the host to the default backend or all traffic to the
* default backend, is left to the controller fulfilling the Ingress. Http is
* currently the only supported IngressRuleValue.
* +optional
*
* IngressRuleValue represents a rule to route requests for this IngressRule.
* If unspecified, the rule defaults to a http catch-all. Whether that sends
* just traffic matching the host to the default backend or all traffic to the
* default backend, is left to the controller fulfilling the Ingress. Http is
* currently the only supported IngressRuleValue.
* +optional
*
* IngressRuleValue represents a rule to route requests for this IngressRule.
* If unspecified, the rule defaults to a http catch-all. Whether that sends
* just traffic matching the host to the default backend or all traffic to the
* default backend, is left to the controller fulfilling the Ingress. Http is
* currently the only supported IngressRuleValue.
* +optional
*
* IngressRuleValue represents a rule to route requests for this IngressRule.
* If unspecified, the rule defaults to a http catch-all. Whether that sends
* just traffic matching the host to the default backend or all traffic to the
* default backend, is left to the controller fulfilling the Ingress. Http is
* currently the only supported IngressRuleValue.
* +optional
*
* IngressRuleValue represents a rule to route requests for this IngressRule.
* If unspecified, the rule defaults to a http catch-all. Whether that sends
* just traffic matching the host to the default backend or all traffic to the
* default backend, is left to the controller fulfilling the Ingress. Http is
* currently the only supported IngressRuleValue.
* +optional
*
* IngressRuleValue represents a rule to route requests for this IngressRule.
* If unspecified, the rule defaults to a http catch-all. Whether that sends
* just traffic matching the host to the default backend or all traffic to the
* default backend, is left to the controller fulfilling the Ingress. Http is
* currently the only supported IngressRuleValue.
* +optional
*
* IngressRuleValue represents a rule to route requests for this IngressRule.
* If unspecified, the rule defaults to a http catch-all. Whether that sends
* just traffic matching the host to the default backend or all traffic to the
* default backend, is left to the controller fulfilling the Ingress. Http is
* currently the only supported IngressRuleValue.
* +optional
*
* IngressRuleValue represents a rule to route requests for this IngressRule.
* If unspecified, the rule defaults to a http catch-all. Whether that sends
* just traffic matching the host to the default backend or all traffic to the
* default backend, is left to the controller fulfilling the Ingress. Http is
* currently the only supported IngressRuleValue.
* +optional
*
*
* optional .k8s.io.api.extensions.v1beta1.IngressRuleValue ingressRuleValue = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValue, io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValue.Builder, io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValueOrBuilder>
getIngressRuleValueFieldBuilder() {
if (ingressRuleValueBuilder_ == null) {
ingressRuleValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValue, io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValue.Builder, io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValueOrBuilder>(
getIngressRuleValue(),
getParentForChildren(),
isClean());
ingressRuleValue_ = null;
}
return ingressRuleValueBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.extensions.v1beta1.IngressRule)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.extensions.v1beta1.IngressRule)
private static final io.kubernetes.client.proto.V1beta1Extensions.IngressRule DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Extensions.IngressRule();
}
public static io.kubernetes.client.proto.V1beta1Extensions.IngressRule getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IngressRule parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IngressRule(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.V1beta1Extensions.IngressRule getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IngressRuleValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.extensions.v1beta1.IngressRuleValue)
com.google.protobuf.MessageOrBuilder {
/**
*
* IngressRuleValue represents a rule to apply against incoming requests. If the
* rule is satisfied, the request is routed to the specified backend. Currently
* mixing different types of rules in a single Ingress is disallowed, so exactly
* one of the following must be set.
*
*
* Protobuf type {@code k8s.io.api.extensions.v1beta1.IngressRuleValue}
*/
public static final class IngressRuleValue extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.extensions.v1beta1.IngressRuleValue)
IngressRuleValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use IngressRuleValue.newBuilder() to construct.
private IngressRuleValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IngressRuleValue() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IngressRuleValue(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressRuleValue.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = http_.toBuilder();
}
http_ = input.readMessage(io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressRuleValue.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(http_);
http_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_IngressRuleValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_IngressRuleValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValue.class, io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValue.Builder.class);
}
private int bitField0_;
public static final int HTTP_FIELD_NUMBER = 1;
private io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressRuleValue http_;
/**
*
*
* optional .k8s.io.api.extensions.v1beta1.HTTPIngressRuleValue http = 1;
*/
public io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressRuleValueOrBuilder getHttpOrBuilder() {
return http_ == null ? io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressRuleValue.getDefaultInstance() : http_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getHttp());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getHttp());
}
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.V1beta1Extensions.IngressRuleValue)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValue other = (io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValue) obj;
boolean result = true;
result = result && (hasHttp() == other.hasHttp());
if (hasHttp()) {
result = result && getHttp()
.equals(other.getHttp());
}
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 (hasHttp()) {
hash = (37 * hash) + HTTP_FIELD_NUMBER;
hash = (53 * hash) + getHttp().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValue parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValue 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.V1beta1Extensions.IngressRuleValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValue 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.V1beta1Extensions.IngressRuleValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValue parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValue 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.V1beta1Extensions.IngressRuleValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValue 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.V1beta1Extensions.IngressRuleValue parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValue 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.V1beta1Extensions.IngressRuleValue 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;
}
/**
*
* IngressRuleValue represents a rule to apply against incoming requests. If the
* rule is satisfied, the request is routed to the specified backend. Currently
* mixing different types of rules in a single Ingress is disallowed, so exactly
* one of the following must be set.
*
*
* Protobuf type {@code k8s.io.api.extensions.v1beta1.IngressRuleValue}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.extensions.v1beta1.IngressRuleValue)
io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_IngressRuleValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_IngressRuleValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValue.class, io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValue.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValue.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getHttpFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (httpBuilder_ == null) {
http_ = null;
} else {
httpBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_IngressRuleValue_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValue getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValue.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValue build() {
io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValue buildPartial() {
io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValue result = new io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValue(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (httpBuilder_ == null) {
result.http_ = http_;
} else {
result.http_ = httpBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValue) {
return mergeFrom((io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValue other) {
if (other == io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValue.getDefaultInstance()) return this;
if (other.hasHttp()) {
mergeHttp(other.getHttp());
}
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.V1beta1Extensions.IngressRuleValue parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValue) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressRuleValue http_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressRuleValue, io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressRuleValue.Builder, io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressRuleValueOrBuilder> httpBuilder_;
/**
*
*
* optional .k8s.io.api.extensions.v1beta1.HTTPIngressRuleValue http = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressRuleValue, io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressRuleValue.Builder, io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressRuleValueOrBuilder>
getHttpFieldBuilder() {
if (httpBuilder_ == null) {
httpBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressRuleValue, io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressRuleValue.Builder, io.kubernetes.client.proto.V1beta1Extensions.HTTPIngressRuleValueOrBuilder>(
getHttp(),
getParentForChildren(),
isClean());
http_ = null;
}
return httpBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.extensions.v1beta1.IngressRuleValue)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.extensions.v1beta1.IngressRuleValue)
private static final io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValue();
}
public static io.kubernetes.client.proto.V1beta1Extensions.IngressRuleValue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IngressRuleValue parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IngressRuleValue(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.V1beta1Extensions.IngressRuleValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IngressSpecOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.extensions.v1beta1.IngressSpec)
com.google.protobuf.MessageOrBuilder {
/**
*
* A default backend capable of servicing requests that don't match any
* rule. At least one of 'backend' or 'rules' must be specified. This field
* is optional to allow the loadbalancer controller or defaulting logic to
* specify a global default.
* +optional
*
* A default backend capable of servicing requests that don't match any
* rule. At least one of 'backend' or 'rules' must be specified. This field
* is optional to allow the loadbalancer controller or defaulting logic to
* specify a global default.
* +optional
*
* A default backend capable of servicing requests that don't match any
* rule. At least one of 'backend' or 'rules' must be specified. This field
* is optional to allow the loadbalancer controller or defaulting logic to
* specify a global default.
* +optional
*
* TLS configuration. Currently the Ingress only supports a single TLS
* port, 443. If multiple members of this list specify different hosts, they
* will be multiplexed on the same port according to the hostname specified
* through the SNI TLS extension, if the ingress controller fulfilling the
* ingress supports SNI.
* +optional
*
* TLS configuration. Currently the Ingress only supports a single TLS
* port, 443. If multiple members of this list specify different hosts, they
* will be multiplexed on the same port according to the hostname specified
* through the SNI TLS extension, if the ingress controller fulfilling the
* ingress supports SNI.
* +optional
*
* TLS configuration. Currently the Ingress only supports a single TLS
* port, 443. If multiple members of this list specify different hosts, they
* will be multiplexed on the same port according to the hostname specified
* through the SNI TLS extension, if the ingress controller fulfilling the
* ingress supports SNI.
* +optional
*
* TLS configuration. Currently the Ingress only supports a single TLS
* port, 443. If multiple members of this list specify different hosts, they
* will be multiplexed on the same port according to the hostname specified
* through the SNI TLS extension, if the ingress controller fulfilling the
* ingress supports SNI.
* +optional
*
* TLS configuration. Currently the Ingress only supports a single TLS
* port, 443. If multiple members of this list specify different hosts, they
* will be multiplexed on the same port according to the hostname specified
* through the SNI TLS extension, if the ingress controller fulfilling the
* ingress supports SNI.
* +optional
*
* IngressSpec describes the Ingress the user wishes to exist.
*
*
* Protobuf type {@code k8s.io.api.extensions.v1beta1.IngressSpec}
*/
public static final class IngressSpec extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.extensions.v1beta1.IngressSpec)
IngressSpecOrBuilder {
private static final long serialVersionUID = 0L;
// Use IngressSpec.newBuilder() to construct.
private IngressSpec(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IngressSpec() {
tls_ = java.util.Collections.emptyList();
rules_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IngressSpec(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
io.kubernetes.client.proto.V1beta1Extensions.IngressBackend.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = backend_.toBuilder();
}
backend_ = input.readMessage(io.kubernetes.client.proto.V1beta1Extensions.IngressBackend.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(backend_);
backend_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
tls_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
tls_.add(
input.readMessage(io.kubernetes.client.proto.V1beta1Extensions.IngressTLS.PARSER, extensionRegistry));
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
rules_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
rules_.add(
input.readMessage(io.kubernetes.client.proto.V1beta1Extensions.IngressRule.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)) {
tls_ = java.util.Collections.unmodifiableList(tls_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
rules_ = java.util.Collections.unmodifiableList(rules_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_IngressSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_IngressSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Extensions.IngressSpec.class, io.kubernetes.client.proto.V1beta1Extensions.IngressSpec.Builder.class);
}
private int bitField0_;
public static final int BACKEND_FIELD_NUMBER = 1;
private io.kubernetes.client.proto.V1beta1Extensions.IngressBackend backend_;
/**
*
* A default backend capable of servicing requests that don't match any
* rule. At least one of 'backend' or 'rules' must be specified. This field
* is optional to allow the loadbalancer controller or defaulting logic to
* specify a global default.
* +optional
*
* A default backend capable of servicing requests that don't match any
* rule. At least one of 'backend' or 'rules' must be specified. This field
* is optional to allow the loadbalancer controller or defaulting logic to
* specify a global default.
* +optional
*
* A default backend capable of servicing requests that don't match any
* rule. At least one of 'backend' or 'rules' must be specified. This field
* is optional to allow the loadbalancer controller or defaulting logic to
* specify a global default.
* +optional
*
*
* optional .k8s.io.api.extensions.v1beta1.IngressBackend backend = 1;
*/
public io.kubernetes.client.proto.V1beta1Extensions.IngressBackendOrBuilder getBackendOrBuilder() {
return backend_ == null ? io.kubernetes.client.proto.V1beta1Extensions.IngressBackend.getDefaultInstance() : backend_;
}
public static final int TLS_FIELD_NUMBER = 2;
private java.util.List tls_;
/**
*
* TLS configuration. Currently the Ingress only supports a single TLS
* port, 443. If multiple members of this list specify different hosts, they
* will be multiplexed on the same port according to the hostname specified
* through the SNI TLS extension, if the ingress controller fulfilling the
* ingress supports SNI.
* +optional
*
* TLS configuration. Currently the Ingress only supports a single TLS
* port, 443. If multiple members of this list specify different hosts, they
* will be multiplexed on the same port according to the hostname specified
* through the SNI TLS extension, if the ingress controller fulfilling the
* ingress supports SNI.
* +optional
*
* TLS configuration. Currently the Ingress only supports a single TLS
* port, 443. If multiple members of this list specify different hosts, they
* will be multiplexed on the same port according to the hostname specified
* through the SNI TLS extension, if the ingress controller fulfilling the
* ingress supports SNI.
* +optional
*
*
* repeated .k8s.io.api.extensions.v1beta1.IngressTLS tls = 2;
*/
public int getTlsCount() {
return tls_.size();
}
/**
*
* TLS configuration. Currently the Ingress only supports a single TLS
* port, 443. If multiple members of this list specify different hosts, they
* will be multiplexed on the same port according to the hostname specified
* through the SNI TLS extension, if the ingress controller fulfilling the
* ingress supports SNI.
* +optional
*
* TLS configuration. Currently the Ingress only supports a single TLS
* port, 443. If multiple members of this list specify different hosts, they
* will be multiplexed on the same port according to the hostname specified
* through the SNI TLS extension, if the ingress controller fulfilling the
* ingress supports SNI.
* +optional
*
*
* repeated .k8s.io.api.extensions.v1beta1.IngressTLS tls = 2;
*/
public io.kubernetes.client.proto.V1beta1Extensions.IngressTLSOrBuilder getTlsOrBuilder(
int index) {
return tls_.get(index);
}
public static final int RULES_FIELD_NUMBER = 3;
private java.util.List rules_;
/**
*
* A list of host rules used to configure the Ingress. If unspecified, or
* no rule matches, all traffic is sent to the default backend.
* +optional
*
* A default backend capable of servicing requests that don't match any
* rule. At least one of 'backend' or 'rules' must be specified. This field
* is optional to allow the loadbalancer controller or defaulting logic to
* specify a global default.
* +optional
*
* A default backend capable of servicing requests that don't match any
* rule. At least one of 'backend' or 'rules' must be specified. This field
* is optional to allow the loadbalancer controller or defaulting logic to
* specify a global default.
* +optional
*
* A default backend capable of servicing requests that don't match any
* rule. At least one of 'backend' or 'rules' must be specified. This field
* is optional to allow the loadbalancer controller or defaulting logic to
* specify a global default.
* +optional
*
* A default backend capable of servicing requests that don't match any
* rule. At least one of 'backend' or 'rules' must be specified. This field
* is optional to allow the loadbalancer controller or defaulting logic to
* specify a global default.
* +optional
*
* A default backend capable of servicing requests that don't match any
* rule. At least one of 'backend' or 'rules' must be specified. This field
* is optional to allow the loadbalancer controller or defaulting logic to
* specify a global default.
* +optional
*
* A default backend capable of servicing requests that don't match any
* rule. At least one of 'backend' or 'rules' must be specified. This field
* is optional to allow the loadbalancer controller or defaulting logic to
* specify a global default.
* +optional
*
* A default backend capable of servicing requests that don't match any
* rule. At least one of 'backend' or 'rules' must be specified. This field
* is optional to allow the loadbalancer controller or defaulting logic to
* specify a global default.
* +optional
*
* A default backend capable of servicing requests that don't match any
* rule. At least one of 'backend' or 'rules' must be specified. This field
* is optional to allow the loadbalancer controller or defaulting logic to
* specify a global default.
* +optional
*
* A default backend capable of servicing requests that don't match any
* rule. At least one of 'backend' or 'rules' must be specified. This field
* is optional to allow the loadbalancer controller or defaulting logic to
* specify a global default.
* +optional
*
* TLS configuration. Currently the Ingress only supports a single TLS
* port, 443. If multiple members of this list specify different hosts, they
* will be multiplexed on the same port according to the hostname specified
* through the SNI TLS extension, if the ingress controller fulfilling the
* ingress supports SNI.
* +optional
*
* TLS configuration. Currently the Ingress only supports a single TLS
* port, 443. If multiple members of this list specify different hosts, they
* will be multiplexed on the same port according to the hostname specified
* through the SNI TLS extension, if the ingress controller fulfilling the
* ingress supports SNI.
* +optional
*
*
* repeated .k8s.io.api.extensions.v1beta1.IngressTLS tls = 2;
*/
public int getTlsCount() {
if (tlsBuilder_ == null) {
return tls_.size();
} else {
return tlsBuilder_.getCount();
}
}
/**
*
* TLS configuration. Currently the Ingress only supports a single TLS
* port, 443. If multiple members of this list specify different hosts, they
* will be multiplexed on the same port according to the hostname specified
* through the SNI TLS extension, if the ingress controller fulfilling the
* ingress supports SNI.
* +optional
*
* TLS configuration. Currently the Ingress only supports a single TLS
* port, 443. If multiple members of this list specify different hosts, they
* will be multiplexed on the same port according to the hostname specified
* through the SNI TLS extension, if the ingress controller fulfilling the
* ingress supports SNI.
* +optional
*
*
* repeated .k8s.io.api.extensions.v1beta1.IngressTLS tls = 2;
*/
public Builder setTls(
int index, io.kubernetes.client.proto.V1beta1Extensions.IngressTLS value) {
if (tlsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTlsIsMutable();
tls_.set(index, value);
onChanged();
} else {
tlsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* TLS configuration. Currently the Ingress only supports a single TLS
* port, 443. If multiple members of this list specify different hosts, they
* will be multiplexed on the same port according to the hostname specified
* through the SNI TLS extension, if the ingress controller fulfilling the
* ingress supports SNI.
* +optional
*
* TLS configuration. Currently the Ingress only supports a single TLS
* port, 443. If multiple members of this list specify different hosts, they
* will be multiplexed on the same port according to the hostname specified
* through the SNI TLS extension, if the ingress controller fulfilling the
* ingress supports SNI.
* +optional
*
*
* repeated .k8s.io.api.extensions.v1beta1.IngressTLS tls = 2;
*/
public Builder addTls(io.kubernetes.client.proto.V1beta1Extensions.IngressTLS value) {
if (tlsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTlsIsMutable();
tls_.add(value);
onChanged();
} else {
tlsBuilder_.addMessage(value);
}
return this;
}
/**
*
* TLS configuration. Currently the Ingress only supports a single TLS
* port, 443. If multiple members of this list specify different hosts, they
* will be multiplexed on the same port according to the hostname specified
* through the SNI TLS extension, if the ingress controller fulfilling the
* ingress supports SNI.
* +optional
*
*
* repeated .k8s.io.api.extensions.v1beta1.IngressTLS tls = 2;
*/
public Builder addTls(
int index, io.kubernetes.client.proto.V1beta1Extensions.IngressTLS value) {
if (tlsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTlsIsMutable();
tls_.add(index, value);
onChanged();
} else {
tlsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* TLS configuration. Currently the Ingress only supports a single TLS
* port, 443. If multiple members of this list specify different hosts, they
* will be multiplexed on the same port according to the hostname specified
* through the SNI TLS extension, if the ingress controller fulfilling the
* ingress supports SNI.
* +optional
*
* TLS configuration. Currently the Ingress only supports a single TLS
* port, 443. If multiple members of this list specify different hosts, they
* will be multiplexed on the same port according to the hostname specified
* through the SNI TLS extension, if the ingress controller fulfilling the
* ingress supports SNI.
* +optional
*
* TLS configuration. Currently the Ingress only supports a single TLS
* port, 443. If multiple members of this list specify different hosts, they
* will be multiplexed on the same port according to the hostname specified
* through the SNI TLS extension, if the ingress controller fulfilling the
* ingress supports SNI.
* +optional
*
* TLS configuration. Currently the Ingress only supports a single TLS
* port, 443. If multiple members of this list specify different hosts, they
* will be multiplexed on the same port according to the hostname specified
* through the SNI TLS extension, if the ingress controller fulfilling the
* ingress supports SNI.
* +optional
*
* TLS configuration. Currently the Ingress only supports a single TLS
* port, 443. If multiple members of this list specify different hosts, they
* will be multiplexed on the same port according to the hostname specified
* through the SNI TLS extension, if the ingress controller fulfilling the
* ingress supports SNI.
* +optional
*
* TLS configuration. Currently the Ingress only supports a single TLS
* port, 443. If multiple members of this list specify different hosts, they
* will be multiplexed on the same port according to the hostname specified
* through the SNI TLS extension, if the ingress controller fulfilling the
* ingress supports SNI.
* +optional
*
*
* repeated .k8s.io.api.extensions.v1beta1.IngressTLS tls = 2;
*/
public io.kubernetes.client.proto.V1beta1Extensions.IngressTLS.Builder getTlsBuilder(
int index) {
return getTlsFieldBuilder().getBuilder(index);
}
/**
*
* TLS configuration. Currently the Ingress only supports a single TLS
* port, 443. If multiple members of this list specify different hosts, they
* will be multiplexed on the same port according to the hostname specified
* through the SNI TLS extension, if the ingress controller fulfilling the
* ingress supports SNI.
* +optional
*
*
* repeated .k8s.io.api.extensions.v1beta1.IngressTLS tls = 2;
*/
public io.kubernetes.client.proto.V1beta1Extensions.IngressTLSOrBuilder getTlsOrBuilder(
int index) {
if (tlsBuilder_ == null) {
return tls_.get(index); } else {
return tlsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* TLS configuration. Currently the Ingress only supports a single TLS
* port, 443. If multiple members of this list specify different hosts, they
* will be multiplexed on the same port according to the hostname specified
* through the SNI TLS extension, if the ingress controller fulfilling the
* ingress supports SNI.
* +optional
*
* TLS configuration. Currently the Ingress only supports a single TLS
* port, 443. If multiple members of this list specify different hosts, they
* will be multiplexed on the same port according to the hostname specified
* through the SNI TLS extension, if the ingress controller fulfilling the
* ingress supports SNI.
* +optional
*
* TLS configuration. Currently the Ingress only supports a single TLS
* port, 443. If multiple members of this list specify different hosts, they
* will be multiplexed on the same port according to the hostname specified
* through the SNI TLS extension, if the ingress controller fulfilling the
* ingress supports SNI.
* +optional
*
* TLS configuration. Currently the Ingress only supports a single TLS
* port, 443. If multiple members of this list specify different hosts, they
* will be multiplexed on the same port according to the hostname specified
* through the SNI TLS extension, if the ingress controller fulfilling the
* ingress supports SNI.
* +optional
*
* LoadBalancer contains the current status of the load-balancer.
* +optional
*
*
* optional .k8s.io.api.core.v1.LoadBalancerStatus loadBalancer = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.LoadBalancerStatus, io.kubernetes.client.proto.V1.LoadBalancerStatus.Builder, io.kubernetes.client.proto.V1.LoadBalancerStatusOrBuilder>
getLoadBalancerFieldBuilder() {
if (loadBalancerBuilder_ == null) {
loadBalancerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.LoadBalancerStatus, io.kubernetes.client.proto.V1.LoadBalancerStatus.Builder, io.kubernetes.client.proto.V1.LoadBalancerStatusOrBuilder>(
getLoadBalancer(),
getParentForChildren(),
isClean());
loadBalancer_ = null;
}
return loadBalancerBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.extensions.v1beta1.IngressStatus)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.extensions.v1beta1.IngressStatus)
private static final io.kubernetes.client.proto.V1beta1Extensions.IngressStatus DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Extensions.IngressStatus();
}
public static io.kubernetes.client.proto.V1beta1Extensions.IngressStatus getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IngressStatus parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IngressStatus(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.V1beta1Extensions.IngressStatus getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IngressTLSOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.extensions.v1beta1.IngressTLS)
com.google.protobuf.MessageOrBuilder {
/**
*
* Hosts are a list of hosts included in the TLS certificate. The values in
* this list must match the name/s used in the tlsSecret. Defaults to the
* wildcard host setting for the loadbalancer controller fulfilling this
* Ingress, if left unspecified.
* +optional
*
* Hosts are a list of hosts included in the TLS certificate. The values in
* this list must match the name/s used in the tlsSecret. Defaults to the
* wildcard host setting for the loadbalancer controller fulfilling this
* Ingress, if left unspecified.
* +optional
*
* Hosts are a list of hosts included in the TLS certificate. The values in
* this list must match the name/s used in the tlsSecret. Defaults to the
* wildcard host setting for the loadbalancer controller fulfilling this
* Ingress, if left unspecified.
* +optional
*
* Hosts are a list of hosts included in the TLS certificate. The values in
* this list must match the name/s used in the tlsSecret. Defaults to the
* wildcard host setting for the loadbalancer controller fulfilling this
* Ingress, if left unspecified.
* +optional
*
* SecretName is the name of the secret used to terminate SSL traffic on 443.
* Field is left optional to allow SSL routing based on SNI hostname alone.
* If the SNI host in a listener conflicts with the "Host" header field used
* by an IngressRule, the SNI host is used for termination and value of the
* Host header is used for routing.
* +optional
*
* SecretName is the name of the secret used to terminate SSL traffic on 443.
* Field is left optional to allow SSL routing based on SNI hostname alone.
* If the SNI host in a listener conflicts with the "Host" header field used
* by an IngressRule, the SNI host is used for termination and value of the
* Host header is used for routing.
* +optional
*
* SecretName is the name of the secret used to terminate SSL traffic on 443.
* Field is left optional to allow SSL routing based on SNI hostname alone.
* If the SNI host in a listener conflicts with the "Host" header field used
* by an IngressRule, the SNI host is used for termination and value of the
* Host header is used for routing.
* +optional
*
* IngressTLS describes the transport layer security associated with an Ingress.
*
*
* Protobuf type {@code k8s.io.api.extensions.v1beta1.IngressTLS}
*/
public static final class IngressTLS extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.extensions.v1beta1.IngressTLS)
IngressTLSOrBuilder {
private static final long serialVersionUID = 0L;
// Use IngressTLS.newBuilder() to construct.
private IngressTLS(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IngressTLS() {
hosts_ = com.google.protobuf.LazyStringArrayList.EMPTY;
secretName_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IngressTLS(
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)) {
hosts_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
hosts_.add(bs);
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
secretName_ = 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)) {
hosts_ = hosts_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_IngressTLS_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_IngressTLS_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Extensions.IngressTLS.class, io.kubernetes.client.proto.V1beta1Extensions.IngressTLS.Builder.class);
}
private int bitField0_;
public static final int HOSTS_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList hosts_;
/**
*
* Hosts are a list of hosts included in the TLS certificate. The values in
* this list must match the name/s used in the tlsSecret. Defaults to the
* wildcard host setting for the loadbalancer controller fulfilling this
* Ingress, if left unspecified.
* +optional
*
* Hosts are a list of hosts included in the TLS certificate. The values in
* this list must match the name/s used in the tlsSecret. Defaults to the
* wildcard host setting for the loadbalancer controller fulfilling this
* Ingress, if left unspecified.
* +optional
*
*
* repeated string hosts = 1;
*/
public int getHostsCount() {
return hosts_.size();
}
/**
*
* Hosts are a list of hosts included in the TLS certificate. The values in
* this list must match the name/s used in the tlsSecret. Defaults to the
* wildcard host setting for the loadbalancer controller fulfilling this
* Ingress, if left unspecified.
* +optional
*
* Hosts are a list of hosts included in the TLS certificate. The values in
* this list must match the name/s used in the tlsSecret. Defaults to the
* wildcard host setting for the loadbalancer controller fulfilling this
* Ingress, if left unspecified.
* +optional
*
*
* repeated string hosts = 1;
*/
public com.google.protobuf.ByteString
getHostsBytes(int index) {
return hosts_.getByteString(index);
}
public static final int SECRETNAME_FIELD_NUMBER = 2;
private volatile java.lang.Object secretName_;
/**
*
* SecretName is the name of the secret used to terminate SSL traffic on 443.
* Field is left optional to allow SSL routing based on SNI hostname alone.
* If the SNI host in a listener conflicts with the "Host" header field used
* by an IngressRule, the SNI host is used for termination and value of the
* Host header is used for routing.
* +optional
*
* SecretName is the name of the secret used to terminate SSL traffic on 443.
* Field is left optional to allow SSL routing based on SNI hostname alone.
* If the SNI host in a listener conflicts with the "Host" header field used
* by an IngressRule, the SNI host is used for termination and value of the
* Host header is used for routing.
* +optional
*
* SecretName is the name of the secret used to terminate SSL traffic on 443.
* Field is left optional to allow SSL routing based on SNI hostname alone.
* If the SNI host in a listener conflicts with the "Host" header field used
* by an IngressRule, the SNI host is used for termination and value of the
* Host header is used for routing.
* +optional
*
*
* optional string secretName = 2;
*/
public com.google.protobuf.ByteString
getSecretNameBytes() {
java.lang.Object ref = secretName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
secretName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < hosts_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hosts_.getRaw(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, secretName_);
}
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 < hosts_.size(); i++) {
dataSize += computeStringSizeNoTag(hosts_.getRaw(i));
}
size += dataSize;
size += 1 * getHostsList().size();
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, secretName_);
}
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.V1beta1Extensions.IngressTLS)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta1Extensions.IngressTLS other = (io.kubernetes.client.proto.V1beta1Extensions.IngressTLS) obj;
boolean result = true;
result = result && getHostsList()
.equals(other.getHostsList());
result = result && (hasSecretName() == other.hasSecretName());
if (hasSecretName()) {
result = result && getSecretName()
.equals(other.getSecretName());
}
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 (getHostsCount() > 0) {
hash = (37 * hash) + HOSTS_FIELD_NUMBER;
hash = (53 * hash) + getHostsList().hashCode();
}
if (hasSecretName()) {
hash = (37 * hash) + SECRETNAME_FIELD_NUMBER;
hash = (53 * hash) + getSecretName().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta1Extensions.IngressTLS parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.IngressTLS 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.V1beta1Extensions.IngressTLS parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.IngressTLS 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.V1beta1Extensions.IngressTLS parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.IngressTLS parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta1Extensions.IngressTLS parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.IngressTLS 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.V1beta1Extensions.IngressTLS parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.IngressTLS 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.V1beta1Extensions.IngressTLS parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.IngressTLS 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.V1beta1Extensions.IngressTLS 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;
}
/**
*
* IngressTLS describes the transport layer security associated with an Ingress.
*
*
* Protobuf type {@code k8s.io.api.extensions.v1beta1.IngressTLS}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.extensions.v1beta1.IngressTLS)
io.kubernetes.client.proto.V1beta1Extensions.IngressTLSOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_IngressTLS_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_IngressTLS_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Extensions.IngressTLS.class, io.kubernetes.client.proto.V1beta1Extensions.IngressTLS.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1beta1Extensions.IngressTLS.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();
hosts_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
secretName_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_IngressTLS_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.IngressTLS getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1beta1Extensions.IngressTLS.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.IngressTLS build() {
io.kubernetes.client.proto.V1beta1Extensions.IngressTLS result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.IngressTLS buildPartial() {
io.kubernetes.client.proto.V1beta1Extensions.IngressTLS result = new io.kubernetes.client.proto.V1beta1Extensions.IngressTLS(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
hosts_ = hosts_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.hosts_ = hosts_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000001;
}
result.secretName_ = secretName_;
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.V1beta1Extensions.IngressTLS) {
return mergeFrom((io.kubernetes.client.proto.V1beta1Extensions.IngressTLS)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Extensions.IngressTLS other) {
if (other == io.kubernetes.client.proto.V1beta1Extensions.IngressTLS.getDefaultInstance()) return this;
if (!other.hosts_.isEmpty()) {
if (hosts_.isEmpty()) {
hosts_ = other.hosts_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureHostsIsMutable();
hosts_.addAll(other.hosts_);
}
onChanged();
}
if (other.hasSecretName()) {
bitField0_ |= 0x00000002;
secretName_ = other.secretName_;
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.V1beta1Extensions.IngressTLS parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1beta1Extensions.IngressTLS) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList hosts_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureHostsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
hosts_ = new com.google.protobuf.LazyStringArrayList(hosts_);
bitField0_ |= 0x00000001;
}
}
/**
*
* Hosts are a list of hosts included in the TLS certificate. The values in
* this list must match the name/s used in the tlsSecret. Defaults to the
* wildcard host setting for the loadbalancer controller fulfilling this
* Ingress, if left unspecified.
* +optional
*
* Hosts are a list of hosts included in the TLS certificate. The values in
* this list must match the name/s used in the tlsSecret. Defaults to the
* wildcard host setting for the loadbalancer controller fulfilling this
* Ingress, if left unspecified.
* +optional
*
*
* repeated string hosts = 1;
*/
public int getHostsCount() {
return hosts_.size();
}
/**
*
* Hosts are a list of hosts included in the TLS certificate. The values in
* this list must match the name/s used in the tlsSecret. Defaults to the
* wildcard host setting for the loadbalancer controller fulfilling this
* Ingress, if left unspecified.
* +optional
*
* Hosts are a list of hosts included in the TLS certificate. The values in
* this list must match the name/s used in the tlsSecret. Defaults to the
* wildcard host setting for the loadbalancer controller fulfilling this
* Ingress, if left unspecified.
* +optional
*
* Hosts are a list of hosts included in the TLS certificate. The values in
* this list must match the name/s used in the tlsSecret. Defaults to the
* wildcard host setting for the loadbalancer controller fulfilling this
* Ingress, if left unspecified.
* +optional
*
*
* repeated string hosts = 1;
*/
public Builder setHosts(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureHostsIsMutable();
hosts_.set(index, value);
onChanged();
return this;
}
/**
*
* Hosts are a list of hosts included in the TLS certificate. The values in
* this list must match the name/s used in the tlsSecret. Defaults to the
* wildcard host setting for the loadbalancer controller fulfilling this
* Ingress, if left unspecified.
* +optional
*
* Hosts are a list of hosts included in the TLS certificate. The values in
* this list must match the name/s used in the tlsSecret. Defaults to the
* wildcard host setting for the loadbalancer controller fulfilling this
* Ingress, if left unspecified.
* +optional
*
* Hosts are a list of hosts included in the TLS certificate. The values in
* this list must match the name/s used in the tlsSecret. Defaults to the
* wildcard host setting for the loadbalancer controller fulfilling this
* Ingress, if left unspecified.
* +optional
*
* Hosts are a list of hosts included in the TLS certificate. The values in
* this list must match the name/s used in the tlsSecret. Defaults to the
* wildcard host setting for the loadbalancer controller fulfilling this
* Ingress, if left unspecified.
* +optional
*
* SecretName is the name of the secret used to terminate SSL traffic on 443.
* Field is left optional to allow SSL routing based on SNI hostname alone.
* If the SNI host in a listener conflicts with the "Host" header field used
* by an IngressRule, the SNI host is used for termination and value of the
* Host header is used for routing.
* +optional
*
* SecretName is the name of the secret used to terminate SSL traffic on 443.
* Field is left optional to allow SSL routing based on SNI hostname alone.
* If the SNI host in a listener conflicts with the "Host" header field used
* by an IngressRule, the SNI host is used for termination and value of the
* Host header is used for routing.
* +optional
*
* SecretName is the name of the secret used to terminate SSL traffic on 443.
* Field is left optional to allow SSL routing based on SNI hostname alone.
* If the SNI host in a listener conflicts with the "Host" header field used
* by an IngressRule, the SNI host is used for termination and value of the
* Host header is used for routing.
* +optional
*
* SecretName is the name of the secret used to terminate SSL traffic on 443.
* Field is left optional to allow SSL routing based on SNI hostname alone.
* If the SNI host in a listener conflicts with the "Host" header field used
* by an IngressRule, the SNI host is used for termination and value of the
* Host header is used for routing.
* +optional
*
* SecretName is the name of the secret used to terminate SSL traffic on 443.
* Field is left optional to allow SSL routing based on SNI hostname alone.
* If the SNI host in a listener conflicts with the "Host" header field used
* by an IngressRule, the SNI host is used for termination and value of the
* Host header is used for routing.
* +optional
*
* SecretName is the name of the secret used to terminate SSL traffic on 443.
* Field is left optional to allow SSL routing based on SNI hostname alone.
* If the SNI host in a listener conflicts with the "Host" header field used
* by an IngressRule, the SNI host is used for termination and value of the
* Host header is used for routing.
* +optional
*
*
* optional string secretName = 2;
*/
public Builder setSecretNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
secretName_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.extensions.v1beta1.IngressTLS)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.extensions.v1beta1.IngressTLS)
private static final io.kubernetes.client.proto.V1beta1Extensions.IngressTLS DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Extensions.IngressTLS();
}
public static io.kubernetes.client.proto.V1beta1Extensions.IngressTLS getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IngressTLS parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IngressTLS(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.V1beta1Extensions.IngressTLS getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NetworkPolicyOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.extensions.v1beta1.NetworkPolicy)
com.google.protobuf.MessageOrBuilder {
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
* DEPRECATED 1.9 - This group version of NetworkPolicy is deprecated by networking/v1/NetworkPolicy.
* NetworkPolicy describes what network traffic is allowed for a set of Pods
*
*
* Protobuf type {@code k8s.io.api.extensions.v1beta1.NetworkPolicy}
*/
public static final class NetworkPolicy extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.extensions.v1beta1.NetworkPolicy)
NetworkPolicyOrBuilder {
private static final long serialVersionUID = 0L;
// Use NetworkPolicy.newBuilder() to construct.
private NetworkPolicy(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NetworkPolicy() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NetworkPolicy(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
io.kubernetes.client.proto.Meta.ObjectMeta.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ObjectMeta.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicySpec.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = spec_.toBuilder();
}
spec_ = input.readMessage(io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicySpec.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(spec_);
spec_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_NetworkPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_NetworkPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicy.class, io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicy.Builder.class);
}
private int bitField0_;
public static final int METADATA_FIELD_NUMBER = 1;
private io.kubernetes.client.proto.Meta.ObjectMeta metadata_;
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
* Specification of the desired behavior for this NetworkPolicy.
* +optional
*
*
* optional .k8s.io.api.extensions.v1beta1.NetworkPolicySpec spec = 2;
*/
public io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicySpecOrBuilder getSpecOrBuilder() {
return spec_ == null ? io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicySpec.getDefaultInstance() : spec_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getMetadata());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getSpec());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getMetadata());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSpec());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicy)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicy other = (io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicy) obj;
boolean result = true;
result = result && (hasMetadata() == other.hasMetadata());
if (hasMetadata()) {
result = result && getMetadata()
.equals(other.getMetadata());
}
result = result && (hasSpec() == other.hasSpec());
if (hasSpec()) {
result = result && getSpec()
.equals(other.getSpec());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
if (hasSpec()) {
hash = (37 * hash) + SPEC_FIELD_NUMBER;
hash = (53 * hash) + getSpec().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicy parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicy 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.V1beta1Extensions.NetworkPolicy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicy 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.V1beta1Extensions.NetworkPolicy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicy parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicy parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicy 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.V1beta1Extensions.NetworkPolicy parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicy 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.V1beta1Extensions.NetworkPolicy parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicy 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.V1beta1Extensions.NetworkPolicy 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;
}
/**
*
* DEPRECATED 1.9 - This group version of NetworkPolicy is deprecated by networking/v1/NetworkPolicy.
* NetworkPolicy describes what network traffic is allowed for a set of Pods
*
*
* Protobuf type {@code k8s.io.api.extensions.v1beta1.NetworkPolicy}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.extensions.v1beta1.NetworkPolicy)
io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_NetworkPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_NetworkPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicy.class, io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicy.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicy.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMetadataFieldBuilder();
getSpecFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (specBuilder_ == null) {
spec_ = null;
} else {
specBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_NetworkPolicy_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicy getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicy.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicy build() {
io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicy buildPartial() {
io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicy result = new io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicy(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (specBuilder_ == null) {
result.spec_ = spec_;
} else {
result.spec_ = specBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicy) {
return mergeFrom((io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicy other) {
if (other == io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicy.getDefaultInstance()) return this;
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
if (other.hasSpec()) {
mergeSpec(other.getSpec());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicy parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicy) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_;
/**
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
* +optional
*
* Specification of the desired behavior for this NetworkPolicy.
* +optional
*
*
* optional .k8s.io.api.extensions.v1beta1.NetworkPolicySpec spec = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicySpec, io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicySpec.Builder, io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicySpecOrBuilder>
getSpecFieldBuilder() {
if (specBuilder_ == null) {
specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicySpec, io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicySpec.Builder, io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicySpecOrBuilder>(
getSpec(),
getParentForChildren(),
isClean());
spec_ = null;
}
return specBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:k8s.io.api.extensions.v1beta1.NetworkPolicy)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.extensions.v1beta1.NetworkPolicy)
private static final io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicy();
}
public static io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicy getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NetworkPolicy parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NetworkPolicy(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.V1beta1Extensions.NetworkPolicy getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NetworkPolicyEgressRuleOrBuilder extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule)
com.google.protobuf.MessageOrBuilder {
/**
*
* List of destination ports for outgoing traffic.
* Each item in this list is combined using a logical OR. If this field is
* empty or missing, this rule matches all ports (traffic not restricted by port).
* If this field is present and contains at least one item, then this rule allows
* traffic only if the traffic matches at least one port in the list.
* +optional
*
* List of destination ports for outgoing traffic.
* Each item in this list is combined using a logical OR. If this field is
* empty or missing, this rule matches all ports (traffic not restricted by port).
* If this field is present and contains at least one item, then this rule allows
* traffic only if the traffic matches at least one port in the list.
* +optional
*
* List of destination ports for outgoing traffic.
* Each item in this list is combined using a logical OR. If this field is
* empty or missing, this rule matches all ports (traffic not restricted by port).
* If this field is present and contains at least one item, then this rule allows
* traffic only if the traffic matches at least one port in the list.
* +optional
*
* List of destination ports for outgoing traffic.
* Each item in this list is combined using a logical OR. If this field is
* empty or missing, this rule matches all ports (traffic not restricted by port).
* If this field is present and contains at least one item, then this rule allows
* traffic only if the traffic matches at least one port in the list.
* +optional
*
* List of destination ports for outgoing traffic.
* Each item in this list is combined using a logical OR. If this field is
* empty or missing, this rule matches all ports (traffic not restricted by port).
* If this field is present and contains at least one item, then this rule allows
* traffic only if the traffic matches at least one port in the list.
* +optional
*
* List of destinations for outgoing traffic of pods selected for this rule.
* Items in this list are combined using a logical OR operation. If this field is
* empty or missing, this rule matches all destinations (traffic not restricted by
* destination). If this field is present and contains at least one item, this rule
* allows traffic only if the traffic matches at least one item in the to list.
* +optional
*
* List of destinations for outgoing traffic of pods selected for this rule.
* Items in this list are combined using a logical OR operation. If this field is
* empty or missing, this rule matches all destinations (traffic not restricted by
* destination). If this field is present and contains at least one item, this rule
* allows traffic only if the traffic matches at least one item in the to list.
* +optional
*
* List of destinations for outgoing traffic of pods selected for this rule.
* Items in this list are combined using a logical OR operation. If this field is
* empty or missing, this rule matches all destinations (traffic not restricted by
* destination). If this field is present and contains at least one item, this rule
* allows traffic only if the traffic matches at least one item in the to list.
* +optional
*
*
* repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2;
*/
int getToCount();
/**
*
* List of destinations for outgoing traffic of pods selected for this rule.
* Items in this list are combined using a logical OR operation. If this field is
* empty or missing, this rule matches all destinations (traffic not restricted by
* destination). If this field is present and contains at least one item, this rule
* allows traffic only if the traffic matches at least one item in the to list.
* +optional
*
* List of destinations for outgoing traffic of pods selected for this rule.
* Items in this list are combined using a logical OR operation. If this field is
* empty or missing, this rule matches all destinations (traffic not restricted by
* destination). If this field is present and contains at least one item, this rule
* allows traffic only if the traffic matches at least one item in the to list.
* +optional
*
*
* repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2;
*/
io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyPeerOrBuilder getToOrBuilder(
int index);
}
/**
*
* DEPRECATED 1.9 - This group version of NetworkPolicyEgressRule is deprecated by networking/v1/NetworkPolicyEgressRule.
* NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods
* matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to.
* This type is beta-level in 1.8
*
*
* Protobuf type {@code k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule}
*/
public static final class NetworkPolicyEgressRule extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule)
NetworkPolicyEgressRuleOrBuilder {
private static final long serialVersionUID = 0L;
// Use NetworkPolicyEgressRule.newBuilder() to construct.
private NetworkPolicyEgressRule(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NetworkPolicyEgressRule() {
ports_ = java.util.Collections.emptyList();
to_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NetworkPolicyEgressRule(
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)) {
ports_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
ports_.add(
input.readMessage(io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyPort.PARSER, extensionRegistry));
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
to_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
to_.add(
input.readMessage(io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyPeer.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)) {
ports_ = java.util.Collections.unmodifiableList(ports_);
}
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
to_ = java.util.Collections.unmodifiableList(to_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_NetworkPolicyEgressRule_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1beta1Extensions.internal_static_k8s_io_api_extensions_v1beta1_NetworkPolicyEgressRule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyEgressRule.class, io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyEgressRule.Builder.class);
}
public static final int PORTS_FIELD_NUMBER = 1;
private java.util.List ports_;
/**
*