
io.kubernetes.client.proto.V1Networking Maven / Gradle / Ivy
/*
Copyright 2021 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package io.kubernetes.client.proto;
public final class V1Networking {
private V1Networking() {}
public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface HTTPIngressPathOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.networking.v1.HTTPIngressPath)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Path is 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 '/' and must be present
* when using PathType with value "Exact" or "Prefix".
* +optional
*
*
* optional string path = 1;
*/
boolean hasPath();
/**
*
*
*
* Path is 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 '/' and must be present
* when using PathType with value "Exact" or "Prefix".
* +optional
*
*
* optional string path = 1;
*/
java.lang.String getPath();
/**
*
*
*
* Path is 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 '/' and must be present
* when using PathType with value "Exact" or "Prefix".
* +optional
*
*
* optional string path = 1;
*/
com.google.protobuf.ByteString getPathBytes();
/**
*
*
*
* PathType determines the interpretation of the Path matching. PathType can
* be one of the following values:
* * Exact: Matches the URL path exactly.
* * Prefix: Matches based on a URL path prefix split by '/'. Matching is
* done on a path element by element basis. A path element refers is the
* list of labels in the path split by the '/' separator. A request is a
* match for path p if every p is an element-wise prefix of p of the
* request path. Note that if the last element of the path is a substring
* of the last element in request path, it is not a match (e.g. /foo/bar
* matches /foo/bar/baz, but does not match /foo/barbaz).
* * ImplementationSpecific: Interpretation of the Path matching is up to
* the IngressClass. Implementations can treat this as a separate PathType
* or treat it identically to Prefix or Exact path types.
* Implementations are required to support all path types.
*
*
* optional string pathType = 3;
*/
boolean hasPathType();
/**
*
*
*
* PathType determines the interpretation of the Path matching. PathType can
* be one of the following values:
* * Exact: Matches the URL path exactly.
* * Prefix: Matches based on a URL path prefix split by '/'. Matching is
* done on a path element by element basis. A path element refers is the
* list of labels in the path split by the '/' separator. A request is a
* match for path p if every p is an element-wise prefix of p of the
* request path. Note that if the last element of the path is a substring
* of the last element in request path, it is not a match (e.g. /foo/bar
* matches /foo/bar/baz, but does not match /foo/barbaz).
* * ImplementationSpecific: Interpretation of the Path matching is up to
* the IngressClass. Implementations can treat this as a separate PathType
* or treat it identically to Prefix or Exact path types.
* Implementations are required to support all path types.
*
*
* optional string pathType = 3;
*/
java.lang.String getPathType();
/**
*
*
*
* PathType determines the interpretation of the Path matching. PathType can
* be one of the following values:
* * Exact: Matches the URL path exactly.
* * Prefix: Matches based on a URL path prefix split by '/'. Matching is
* done on a path element by element basis. A path element refers is the
* list of labels in the path split by the '/' separator. A request is a
* match for path p if every p is an element-wise prefix of p of the
* request path. Note that if the last element of the path is a substring
* of the last element in request path, it is not a match (e.g. /foo/bar
* matches /foo/bar/baz, but does not match /foo/barbaz).
* * ImplementationSpecific: Interpretation of the Path matching is up to
* the IngressClass. Implementations can treat this as a separate PathType
* or treat it identically to Prefix or Exact path types.
* Implementations are required to support all path types.
*
*
* optional string pathType = 3;
*/
com.google.protobuf.ByteString getPathTypeBytes();
/**
*
*
*
* Backend defines the referenced service endpoint to which the traffic
* will be forwarded to.
*
*
* optional .k8s.io.api.networking.v1.IngressBackend backend = 2;
*/
boolean hasBackend();
/**
*
*
*
* Backend defines the referenced service endpoint to which the traffic
* will be forwarded to.
*
*
* optional .k8s.io.api.networking.v1.IngressBackend backend = 2;
*/
io.kubernetes.client.proto.V1Networking.IngressBackend getBackend();
/**
*
*
*
* Backend defines the referenced service endpoint to which the traffic
* will be forwarded to.
*
*
* optional .k8s.io.api.networking.v1.IngressBackend backend = 2;
*/
io.kubernetes.client.proto.V1Networking.IngressBackendOrBuilder getBackendOrBuilder();
}
/**
*
*
*
* HTTPIngressPath associates a path with a backend. Incoming urls matching the
* path are forwarded to the backend.
*
*
* Protobuf type {@code k8s.io.api.networking.v1.HTTPIngressPath}
*/
public static final class HTTPIngressPath extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.networking.v1.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_ = "";
pathType_ = "";
}
@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.V1Networking.IngressBackend.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = backend_.toBuilder();
}
backend_ =
input.readMessage(
io.kubernetes.client.proto.V1Networking.IngressBackend.PARSER,
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(backend_);
backend_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 26:
{
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
pathType_ = bs;
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_HTTPIngressPath_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_HTTPIngressPath_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.HTTPIngressPath.class,
io.kubernetes.client.proto.V1Networking.HTTPIngressPath.Builder.class);
}
private int bitField0_;
public static final int PATH_FIELD_NUMBER = 1;
private volatile java.lang.Object path_;
/**
*
*
*
* Path is 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 '/' and must be present
* when using PathType with value "Exact" or "Prefix".
* +optional
*
*
* optional string path = 1;
*/
public boolean hasPath() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* Path is 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 '/' and must be present
* when using PathType with value "Exact" or "Prefix".
* +optional
*
*
* optional string path = 1;
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
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()) {
path_ = s;
}
return s;
}
}
/**
*
*
*
* Path is 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 '/' and must be present
* when using PathType with value "Exact" or "Prefix".
* +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 PATHTYPE_FIELD_NUMBER = 3;
private volatile java.lang.Object pathType_;
/**
*
*
*
* PathType determines the interpretation of the Path matching. PathType can
* be one of the following values:
* * Exact: Matches the URL path exactly.
* * Prefix: Matches based on a URL path prefix split by '/'. Matching is
* done on a path element by element basis. A path element refers is the
* list of labels in the path split by the '/' separator. A request is a
* match for path p if every p is an element-wise prefix of p of the
* request path. Note that if the last element of the path is a substring
* of the last element in request path, it is not a match (e.g. /foo/bar
* matches /foo/bar/baz, but does not match /foo/barbaz).
* * ImplementationSpecific: Interpretation of the Path matching is up to
* the IngressClass. Implementations can treat this as a separate PathType
* or treat it identically to Prefix or Exact path types.
* Implementations are required to support all path types.
*
*
* optional string pathType = 3;
*/
public boolean hasPathType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* PathType determines the interpretation of the Path matching. PathType can
* be one of the following values:
* * Exact: Matches the URL path exactly.
* * Prefix: Matches based on a URL path prefix split by '/'. Matching is
* done on a path element by element basis. A path element refers is the
* list of labels in the path split by the '/' separator. A request is a
* match for path p if every p is an element-wise prefix of p of the
* request path. Note that if the last element of the path is a substring
* of the last element in request path, it is not a match (e.g. /foo/bar
* matches /foo/bar/baz, but does not match /foo/barbaz).
* * ImplementationSpecific: Interpretation of the Path matching is up to
* the IngressClass. Implementations can treat this as a separate PathType
* or treat it identically to Prefix or Exact path types.
* Implementations are required to support all path types.
*
*
* optional string pathType = 3;
*/
public java.lang.String getPathType() {
java.lang.Object ref = pathType_;
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()) {
pathType_ = s;
}
return s;
}
}
/**
*
*
*
* PathType determines the interpretation of the Path matching. PathType can
* be one of the following values:
* * Exact: Matches the URL path exactly.
* * Prefix: Matches based on a URL path prefix split by '/'. Matching is
* done on a path element by element basis. A path element refers is the
* list of labels in the path split by the '/' separator. A request is a
* match for path p if every p is an element-wise prefix of p of the
* request path. Note that if the last element of the path is a substring
* of the last element in request path, it is not a match (e.g. /foo/bar
* matches /foo/bar/baz, but does not match /foo/barbaz).
* * ImplementationSpecific: Interpretation of the Path matching is up to
* the IngressClass. Implementations can treat this as a separate PathType
* or treat it identically to Prefix or Exact path types.
* Implementations are required to support all path types.
*
*
* optional string pathType = 3;
*/
public com.google.protobuf.ByteString getPathTypeBytes() {
java.lang.Object ref = pathType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
pathType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BACKEND_FIELD_NUMBER = 2;
private io.kubernetes.client.proto.V1Networking.IngressBackend backend_;
/**
*
*
*
* Backend defines the referenced service endpoint to which the traffic
* will be forwarded to.
*
*
* optional .k8s.io.api.networking.v1.IngressBackend backend = 2;
*/
public boolean hasBackend() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
*
*
* Backend defines the referenced service endpoint to which the traffic
* will be forwarded to.
*
*
* optional .k8s.io.api.networking.v1.IngressBackend backend = 2;
*/
public io.kubernetes.client.proto.V1Networking.IngressBackend getBackend() {
return backend_ == null
? io.kubernetes.client.proto.V1Networking.IngressBackend.getDefaultInstance()
: backend_;
}
/**
*
*
*
* Backend defines the referenced service endpoint to which the traffic
* will be forwarded to.
*
*
* optional .k8s.io.api.networking.v1.IngressBackend backend = 2;
*/
public io.kubernetes.client.proto.V1Networking.IngressBackendOrBuilder getBackendOrBuilder() {
return backend_ == null
? io.kubernetes.client.proto.V1Networking.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_ & 0x00000004) == 0x00000004)) {
output.writeMessage(2, getBackend());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pathType_);
}
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_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBackend());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pathType_);
}
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.V1Networking.HTTPIngressPath)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1Networking.HTTPIngressPath other =
(io.kubernetes.client.proto.V1Networking.HTTPIngressPath) obj;
boolean result = true;
result = result && (hasPath() == other.hasPath());
if (hasPath()) {
result = result && getPath().equals(other.getPath());
}
result = result && (hasPathType() == other.hasPathType());
if (hasPathType()) {
result = result && getPathType().equals(other.getPathType());
}
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 (hasPathType()) {
hash = (37 * hash) + PATHTYPE_FIELD_NUMBER;
hash = (53 * hash) + getPathType().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.V1Networking.HTTPIngressPath parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.HTTPIngressPath parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.HTTPIngressPath parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.HTTPIngressPath parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.HTTPIngressPath parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.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.V1Networking.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.V1Networking.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 with a backend. Incoming urls matching the
* path are forwarded to the backend.
*
*
* Protobuf type {@code k8s.io.api.networking.v1.HTTPIngressPath}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.networking.v1.HTTPIngressPath)
io.kubernetes.client.proto.V1Networking.HTTPIngressPathOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_HTTPIngressPath_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_HTTPIngressPath_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.HTTPIngressPath.class,
io.kubernetes.client.proto.V1Networking.HTTPIngressPath.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1Networking.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);
pathType_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
if (backendBuilder_ == null) {
backend_ = null;
} else {
backendBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_HTTPIngressPath_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.HTTPIngressPath getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1Networking.HTTPIngressPath.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.HTTPIngressPath build() {
io.kubernetes.client.proto.V1Networking.HTTPIngressPath result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.HTTPIngressPath buildPartial() {
io.kubernetes.client.proto.V1Networking.HTTPIngressPath result =
new io.kubernetes.client.proto.V1Networking.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;
}
result.pathType_ = pathType_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
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.V1Networking.HTTPIngressPath) {
return mergeFrom((io.kubernetes.client.proto.V1Networking.HTTPIngressPath) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1Networking.HTTPIngressPath other) {
if (other == io.kubernetes.client.proto.V1Networking.HTTPIngressPath.getDefaultInstance())
return this;
if (other.hasPath()) {
bitField0_ |= 0x00000001;
path_ = other.path_;
onChanged();
}
if (other.hasPathType()) {
bitField0_ |= 0x00000002;
pathType_ = other.pathType_;
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.V1Networking.HTTPIngressPath parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1Networking.HTTPIngressPath) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object path_ = "";
/**
*
*
*
* Path is 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 '/' and must be present
* when using PathType with value "Exact" or "Prefix".
* +optional
*
*
* optional string path = 1;
*/
public boolean hasPath() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* Path is 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 '/' and must be present
* when using PathType with value "Exact" or "Prefix".
* +optional
*
*
* optional string path = 1;
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
path_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Path is 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 '/' and must be present
* when using PathType with value "Exact" or "Prefix".
* +optional
*
*
* optional string path = 1;
*/
public com.google.protobuf.ByteString getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof 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;
}
}
/**
*
*
*
* Path is 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 '/' and must be present
* when using PathType with value "Exact" or "Prefix".
* +optional
*
*
* optional string path = 1;
*/
public Builder setPath(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
path_ = value;
onChanged();
return this;
}
/**
*
*
*
* Path is 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 '/' and must be present
* when using PathType with value "Exact" or "Prefix".
* +optional
*
*
* optional string path = 1;
*/
public Builder clearPath() {
bitField0_ = (bitField0_ & ~0x00000001);
path_ = getDefaultInstance().getPath();
onChanged();
return this;
}
/**
*
*
*
* Path is 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 '/' and must be present
* when using PathType with value "Exact" or "Prefix".
* +optional
*
*
* optional string path = 1;
*/
public Builder setPathBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
path_ = value;
onChanged();
return this;
}
private java.lang.Object pathType_ = "";
/**
*
*
*
* PathType determines the interpretation of the Path matching. PathType can
* be one of the following values:
* * Exact: Matches the URL path exactly.
* * Prefix: Matches based on a URL path prefix split by '/'. Matching is
* done on a path element by element basis. A path element refers is the
* list of labels in the path split by the '/' separator. A request is a
* match for path p if every p is an element-wise prefix of p of the
* request path. Note that if the last element of the path is a substring
* of the last element in request path, it is not a match (e.g. /foo/bar
* matches /foo/bar/baz, but does not match /foo/barbaz).
* * ImplementationSpecific: Interpretation of the Path matching is up to
* the IngressClass. Implementations can treat this as a separate PathType
* or treat it identically to Prefix or Exact path types.
* Implementations are required to support all path types.
*
*
* optional string pathType = 3;
*/
public boolean hasPathType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* PathType determines the interpretation of the Path matching. PathType can
* be one of the following values:
* * Exact: Matches the URL path exactly.
* * Prefix: Matches based on a URL path prefix split by '/'. Matching is
* done on a path element by element basis. A path element refers is the
* list of labels in the path split by the '/' separator. A request is a
* match for path p if every p is an element-wise prefix of p of the
* request path. Note that if the last element of the path is a substring
* of the last element in request path, it is not a match (e.g. /foo/bar
* matches /foo/bar/baz, but does not match /foo/barbaz).
* * ImplementationSpecific: Interpretation of the Path matching is up to
* the IngressClass. Implementations can treat this as a separate PathType
* or treat it identically to Prefix or Exact path types.
* Implementations are required to support all path types.
*
*
* optional string pathType = 3;
*/
public java.lang.String getPathType() {
java.lang.Object ref = pathType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
pathType_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* PathType determines the interpretation of the Path matching. PathType can
* be one of the following values:
* * Exact: Matches the URL path exactly.
* * Prefix: Matches based on a URL path prefix split by '/'. Matching is
* done on a path element by element basis. A path element refers is the
* list of labels in the path split by the '/' separator. A request is a
* match for path p if every p is an element-wise prefix of p of the
* request path. Note that if the last element of the path is a substring
* of the last element in request path, it is not a match (e.g. /foo/bar
* matches /foo/bar/baz, but does not match /foo/barbaz).
* * ImplementationSpecific: Interpretation of the Path matching is up to
* the IngressClass. Implementations can treat this as a separate PathType
* or treat it identically to Prefix or Exact path types.
* Implementations are required to support all path types.
*
*
* optional string pathType = 3;
*/
public com.google.protobuf.ByteString getPathTypeBytes() {
java.lang.Object ref = pathType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
pathType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* PathType determines the interpretation of the Path matching. PathType can
* be one of the following values:
* * Exact: Matches the URL path exactly.
* * Prefix: Matches based on a URL path prefix split by '/'. Matching is
* done on a path element by element basis. A path element refers is the
* list of labels in the path split by the '/' separator. A request is a
* match for path p if every p is an element-wise prefix of p of the
* request path. Note that if the last element of the path is a substring
* of the last element in request path, it is not a match (e.g. /foo/bar
* matches /foo/bar/baz, but does not match /foo/barbaz).
* * ImplementationSpecific: Interpretation of the Path matching is up to
* the IngressClass. Implementations can treat this as a separate PathType
* or treat it identically to Prefix or Exact path types.
* Implementations are required to support all path types.
*
*
* optional string pathType = 3;
*/
public Builder setPathType(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
pathType_ = value;
onChanged();
return this;
}
/**
*
*
*
* PathType determines the interpretation of the Path matching. PathType can
* be one of the following values:
* * Exact: Matches the URL path exactly.
* * Prefix: Matches based on a URL path prefix split by '/'. Matching is
* done on a path element by element basis. A path element refers is the
* list of labels in the path split by the '/' separator. A request is a
* match for path p if every p is an element-wise prefix of p of the
* request path. Note that if the last element of the path is a substring
* of the last element in request path, it is not a match (e.g. /foo/bar
* matches /foo/bar/baz, but does not match /foo/barbaz).
* * ImplementationSpecific: Interpretation of the Path matching is up to
* the IngressClass. Implementations can treat this as a separate PathType
* or treat it identically to Prefix or Exact path types.
* Implementations are required to support all path types.
*
*
* optional string pathType = 3;
*/
public Builder clearPathType() {
bitField0_ = (bitField0_ & ~0x00000002);
pathType_ = getDefaultInstance().getPathType();
onChanged();
return this;
}
/**
*
*
*
* PathType determines the interpretation of the Path matching. PathType can
* be one of the following values:
* * Exact: Matches the URL path exactly.
* * Prefix: Matches based on a URL path prefix split by '/'. Matching is
* done on a path element by element basis. A path element refers is the
* list of labels in the path split by the '/' separator. A request is a
* match for path p if every p is an element-wise prefix of p of the
* request path. Note that if the last element of the path is a substring
* of the last element in request path, it is not a match (e.g. /foo/bar
* matches /foo/bar/baz, but does not match /foo/barbaz).
* * ImplementationSpecific: Interpretation of the Path matching is up to
* the IngressClass. Implementations can treat this as a separate PathType
* or treat it identically to Prefix or Exact path types.
* Implementations are required to support all path types.
*
*
* optional string pathType = 3;
*/
public Builder setPathTypeBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
pathType_ = value;
onChanged();
return this;
}
private io.kubernetes.client.proto.V1Networking.IngressBackend backend_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.IngressBackend,
io.kubernetes.client.proto.V1Networking.IngressBackend.Builder,
io.kubernetes.client.proto.V1Networking.IngressBackendOrBuilder>
backendBuilder_;
/**
*
*
*
* Backend defines the referenced service endpoint to which the traffic
* will be forwarded to.
*
*
* optional .k8s.io.api.networking.v1.IngressBackend backend = 2;
*/
public boolean hasBackend() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
*
*
* Backend defines the referenced service endpoint to which the traffic
* will be forwarded to.
*
*
* optional .k8s.io.api.networking.v1.IngressBackend backend = 2;
*/
public io.kubernetes.client.proto.V1Networking.IngressBackend getBackend() {
if (backendBuilder_ == null) {
return backend_ == null
? io.kubernetes.client.proto.V1Networking.IngressBackend.getDefaultInstance()
: backend_;
} else {
return backendBuilder_.getMessage();
}
}
/**
*
*
*
* Backend defines the referenced service endpoint to which the traffic
* will be forwarded to.
*
*
* optional .k8s.io.api.networking.v1.IngressBackend backend = 2;
*/
public Builder setBackend(io.kubernetes.client.proto.V1Networking.IngressBackend value) {
if (backendBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
backend_ = value;
onChanged();
} else {
backendBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
*
*
*
* Backend defines the referenced service endpoint to which the traffic
* will be forwarded to.
*
*
* optional .k8s.io.api.networking.v1.IngressBackend backend = 2;
*/
public Builder setBackend(
io.kubernetes.client.proto.V1Networking.IngressBackend.Builder builderForValue) {
if (backendBuilder_ == null) {
backend_ = builderForValue.build();
onChanged();
} else {
backendBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
*
*
*
* Backend defines the referenced service endpoint to which the traffic
* will be forwarded to.
*
*
* optional .k8s.io.api.networking.v1.IngressBackend backend = 2;
*/
public Builder mergeBackend(io.kubernetes.client.proto.V1Networking.IngressBackend value) {
if (backendBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)
&& backend_ != null
&& backend_
!= io.kubernetes.client.proto.V1Networking.IngressBackend.getDefaultInstance()) {
backend_ =
io.kubernetes.client.proto.V1Networking.IngressBackend.newBuilder(backend_)
.mergeFrom(value)
.buildPartial();
} else {
backend_ = value;
}
onChanged();
} else {
backendBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
*
*
*
* Backend defines the referenced service endpoint to which the traffic
* will be forwarded to.
*
*
* optional .k8s.io.api.networking.v1.IngressBackend backend = 2;
*/
public Builder clearBackend() {
if (backendBuilder_ == null) {
backend_ = null;
onChanged();
} else {
backendBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
*
*
*
* Backend defines the referenced service endpoint to which the traffic
* will be forwarded to.
*
*
* optional .k8s.io.api.networking.v1.IngressBackend backend = 2;
*/
public io.kubernetes.client.proto.V1Networking.IngressBackend.Builder getBackendBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getBackendFieldBuilder().getBuilder();
}
/**
*
*
*
* Backend defines the referenced service endpoint to which the traffic
* will be forwarded to.
*
*
* optional .k8s.io.api.networking.v1.IngressBackend backend = 2;
*/
public io.kubernetes.client.proto.V1Networking.IngressBackendOrBuilder getBackendOrBuilder() {
if (backendBuilder_ != null) {
return backendBuilder_.getMessageOrBuilder();
} else {
return backend_ == null
? io.kubernetes.client.proto.V1Networking.IngressBackend.getDefaultInstance()
: backend_;
}
}
/**
*
*
*
* Backend defines the referenced service endpoint to which the traffic
* will be forwarded to.
*
*
* optional .k8s.io.api.networking.v1.IngressBackend backend = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.IngressBackend,
io.kubernetes.client.proto.V1Networking.IngressBackend.Builder,
io.kubernetes.client.proto.V1Networking.IngressBackendOrBuilder>
getBackendFieldBuilder() {
if (backendBuilder_ == null) {
backendBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.IngressBackend,
io.kubernetes.client.proto.V1Networking.IngressBackend.Builder,
io.kubernetes.client.proto.V1Networking.IngressBackendOrBuilder>(
getBackend(), getParentForChildren(), isClean());
backend_ = null;
}
return backendBuilder_;
}
@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.networking.v1.HTTPIngressPath)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.networking.v1.HTTPIngressPath)
private static final io.kubernetes.client.proto.V1Networking.HTTPIngressPath DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Networking.HTTPIngressPath();
}
public static io.kubernetes.client.proto.V1Networking.HTTPIngressPath getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public HTTPIngressPath parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new HTTPIngressPath(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.V1Networking.HTTPIngressPath getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface HTTPIngressRuleValueOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.networking.v1.HTTPIngressRuleValue)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* A collection of paths that map requests to backends.
* +listType=atomic
*
*
* repeated .k8s.io.api.networking.v1.HTTPIngressPath paths = 1;
*/
java.util.List getPathsList();
/**
*
*
*
* A collection of paths that map requests to backends.
* +listType=atomic
*
*
* repeated .k8s.io.api.networking.v1.HTTPIngressPath paths = 1;
*/
io.kubernetes.client.proto.V1Networking.HTTPIngressPath getPaths(int index);
/**
*
*
*
* A collection of paths that map requests to backends.
* +listType=atomic
*
*
* repeated .k8s.io.api.networking.v1.HTTPIngressPath paths = 1;
*/
int getPathsCount();
/**
*
*
*
* A collection of paths that map requests to backends.
* +listType=atomic
*
*
* repeated .k8s.io.api.networking.v1.HTTPIngressPath paths = 1;
*/
java.util.List extends io.kubernetes.client.proto.V1Networking.HTTPIngressPathOrBuilder>
getPathsOrBuilderList();
/**
*
*
*
* A collection of paths that map requests to backends.
* +listType=atomic
*
*
* repeated .k8s.io.api.networking.v1.HTTPIngressPath paths = 1;
*/
io.kubernetes.client.proto.V1Networking.HTTPIngressPathOrBuilder getPathsOrBuilder(int index);
}
/**
*
*
*
* 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.networking.v1.HTTPIngressRuleValue}
*/
public static final class HTTPIngressRuleValue extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.networking.v1.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<
io.kubernetes.client.proto.V1Networking.HTTPIngressPath>();
mutable_bitField0_ |= 0x00000001;
}
paths_.add(
input.readMessage(
io.kubernetes.client.proto.V1Networking.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.V1Networking
.internal_static_k8s_io_api_networking_v1_HTTPIngressRuleValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_HTTPIngressRuleValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue.class,
io.kubernetes.client.proto.V1Networking.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.
* +listType=atomic
*
*
* repeated .k8s.io.api.networking.v1.HTTPIngressPath paths = 1;
*/
public java.util.List getPathsList() {
return paths_;
}
/**
*
*
*
* A collection of paths that map requests to backends.
* +listType=atomic
*
*
* repeated .k8s.io.api.networking.v1.HTTPIngressPath paths = 1;
*/
public java.util.List<
? extends io.kubernetes.client.proto.V1Networking.HTTPIngressPathOrBuilder>
getPathsOrBuilderList() {
return paths_;
}
/**
*
*
*
* A collection of paths that map requests to backends.
* +listType=atomic
*
*
* repeated .k8s.io.api.networking.v1.HTTPIngressPath paths = 1;
*/
public int getPathsCount() {
return paths_.size();
}
/**
*
*
*
* A collection of paths that map requests to backends.
* +listType=atomic
*
*
* repeated .k8s.io.api.networking.v1.HTTPIngressPath paths = 1;
*/
public io.kubernetes.client.proto.V1Networking.HTTPIngressPath getPaths(int index) {
return paths_.get(index);
}
/**
*
*
*
* A collection of paths that map requests to backends.
* +listType=atomic
*
*
* repeated .k8s.io.api.networking.v1.HTTPIngressPath paths = 1;
*/
public io.kubernetes.client.proto.V1Networking.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.V1Networking.HTTPIngressRuleValue)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue other =
(io.kubernetes.client.proto.V1Networking.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.V1Networking.HTTPIngressRuleValue parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.HTTPIngressRuleValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.HTTPIngressRuleValue parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.HTTPIngressRuleValue parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.HTTPIngressRuleValue parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.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.V1Networking.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.V1Networking.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 '#'.
*
*
* Protobuf type {@code k8s.io.api.networking.v1.HTTPIngressRuleValue}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.networking.v1.HTTPIngressRuleValue)
io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_HTTPIngressRuleValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_HTTPIngressRuleValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue.class,
io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getPathsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (pathsBuilder_ == null) {
paths_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
pathsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_HTTPIngressRuleValue_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue
getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue build() {
io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue buildPartial() {
io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue result =
new io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue(this);
int from_bitField0_ = bitField0_;
if (pathsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
paths_ = java.util.Collections.unmodifiableList(paths_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.paths_ = paths_;
} else {
result.paths_ = pathsBuilder_.build();
}
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.V1Networking.HTTPIngressRuleValue) {
return mergeFrom((io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue other) {
if (other
== io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue.getDefaultInstance())
return this;
if (pathsBuilder_ == null) {
if (!other.paths_.isEmpty()) {
if (paths_.isEmpty()) {
paths_ = other.paths_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensurePathsIsMutable();
paths_.addAll(other.paths_);
}
onChanged();
}
} else {
if (!other.paths_.isEmpty()) {
if (pathsBuilder_.isEmpty()) {
pathsBuilder_.dispose();
pathsBuilder_ = null;
paths_ = other.paths_;
bitField0_ = (bitField0_ & ~0x00000001);
pathsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getPathsFieldBuilder()
: null;
} else {
pathsBuilder_.addAllMessages(other.paths_);
}
}
}
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.V1Networking.HTTPIngressRuleValue parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue)
e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List paths_ =
java.util.Collections.emptyList();
private void ensurePathsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
paths_ =
new java.util.ArrayList(
paths_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.HTTPIngressPath,
io.kubernetes.client.proto.V1Networking.HTTPIngressPath.Builder,
io.kubernetes.client.proto.V1Networking.HTTPIngressPathOrBuilder>
pathsBuilder_;
/**
*
*
*
* A collection of paths that map requests to backends.
* +listType=atomic
*
*
* repeated .k8s.io.api.networking.v1.HTTPIngressPath paths = 1;
*/
public java.util.List
getPathsList() {
if (pathsBuilder_ == null) {
return java.util.Collections.unmodifiableList(paths_);
} else {
return pathsBuilder_.getMessageList();
}
}
/**
*
*
*
* A collection of paths that map requests to backends.
* +listType=atomic
*
*
* repeated .k8s.io.api.networking.v1.HTTPIngressPath paths = 1;
*/
public int getPathsCount() {
if (pathsBuilder_ == null) {
return paths_.size();
} else {
return pathsBuilder_.getCount();
}
}
/**
*
*
*
* A collection of paths that map requests to backends.
* +listType=atomic
*
*
* repeated .k8s.io.api.networking.v1.HTTPIngressPath paths = 1;
*/
public io.kubernetes.client.proto.V1Networking.HTTPIngressPath getPaths(int index) {
if (pathsBuilder_ == null) {
return paths_.get(index);
} else {
return pathsBuilder_.getMessage(index);
}
}
/**
*
*
*
* A collection of paths that map requests to backends.
* +listType=atomic
*
*
* repeated .k8s.io.api.networking.v1.HTTPIngressPath paths = 1;
*/
public Builder setPaths(
int index, io.kubernetes.client.proto.V1Networking.HTTPIngressPath value) {
if (pathsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePathsIsMutable();
paths_.set(index, value);
onChanged();
} else {
pathsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* A collection of paths that map requests to backends.
* +listType=atomic
*
*
* repeated .k8s.io.api.networking.v1.HTTPIngressPath paths = 1;
*/
public Builder setPaths(
int index,
io.kubernetes.client.proto.V1Networking.HTTPIngressPath.Builder builderForValue) {
if (pathsBuilder_ == null) {
ensurePathsIsMutable();
paths_.set(index, builderForValue.build());
onChanged();
} else {
pathsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* A collection of paths that map requests to backends.
* +listType=atomic
*
*
* repeated .k8s.io.api.networking.v1.HTTPIngressPath paths = 1;
*/
public Builder addPaths(io.kubernetes.client.proto.V1Networking.HTTPIngressPath value) {
if (pathsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePathsIsMutable();
paths_.add(value);
onChanged();
} else {
pathsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* A collection of paths that map requests to backends.
* +listType=atomic
*
*
* repeated .k8s.io.api.networking.v1.HTTPIngressPath paths = 1;
*/
public Builder addPaths(
int index, io.kubernetes.client.proto.V1Networking.HTTPIngressPath value) {
if (pathsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePathsIsMutable();
paths_.add(index, value);
onChanged();
} else {
pathsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* A collection of paths that map requests to backends.
* +listType=atomic
*
*
* repeated .k8s.io.api.networking.v1.HTTPIngressPath paths = 1;
*/
public Builder addPaths(
io.kubernetes.client.proto.V1Networking.HTTPIngressPath.Builder builderForValue) {
if (pathsBuilder_ == null) {
ensurePathsIsMutable();
paths_.add(builderForValue.build());
onChanged();
} else {
pathsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* A collection of paths that map requests to backends.
* +listType=atomic
*
*
* repeated .k8s.io.api.networking.v1.HTTPIngressPath paths = 1;
*/
public Builder addPaths(
int index,
io.kubernetes.client.proto.V1Networking.HTTPIngressPath.Builder builderForValue) {
if (pathsBuilder_ == null) {
ensurePathsIsMutable();
paths_.add(index, builderForValue.build());
onChanged();
} else {
pathsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* A collection of paths that map requests to backends.
* +listType=atomic
*
*
* repeated .k8s.io.api.networking.v1.HTTPIngressPath paths = 1;
*/
public Builder addAllPaths(
java.lang.Iterable extends io.kubernetes.client.proto.V1Networking.HTTPIngressPath>
values) {
if (pathsBuilder_ == null) {
ensurePathsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, paths_);
onChanged();
} else {
pathsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* A collection of paths that map requests to backends.
* +listType=atomic
*
*
* repeated .k8s.io.api.networking.v1.HTTPIngressPath paths = 1;
*/
public Builder clearPaths() {
if (pathsBuilder_ == null) {
paths_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
pathsBuilder_.clear();
}
return this;
}
/**
*
*
*
* A collection of paths that map requests to backends.
* +listType=atomic
*
*
* repeated .k8s.io.api.networking.v1.HTTPIngressPath paths = 1;
*/
public Builder removePaths(int index) {
if (pathsBuilder_ == null) {
ensurePathsIsMutable();
paths_.remove(index);
onChanged();
} else {
pathsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* A collection of paths that map requests to backends.
* +listType=atomic
*
*
* repeated .k8s.io.api.networking.v1.HTTPIngressPath paths = 1;
*/
public io.kubernetes.client.proto.V1Networking.HTTPIngressPath.Builder getPathsBuilder(
int index) {
return getPathsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* A collection of paths that map requests to backends.
* +listType=atomic
*
*
* repeated .k8s.io.api.networking.v1.HTTPIngressPath paths = 1;
*/
public io.kubernetes.client.proto.V1Networking.HTTPIngressPathOrBuilder getPathsOrBuilder(
int index) {
if (pathsBuilder_ == null) {
return paths_.get(index);
} else {
return pathsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* A collection of paths that map requests to backends.
* +listType=atomic
*
*
* repeated .k8s.io.api.networking.v1.HTTPIngressPath paths = 1;
*/
public java.util.List<
? extends io.kubernetes.client.proto.V1Networking.HTTPIngressPathOrBuilder>
getPathsOrBuilderList() {
if (pathsBuilder_ != null) {
return pathsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(paths_);
}
}
/**
*
*
*
* A collection of paths that map requests to backends.
* +listType=atomic
*
*
* repeated .k8s.io.api.networking.v1.HTTPIngressPath paths = 1;
*/
public io.kubernetes.client.proto.V1Networking.HTTPIngressPath.Builder addPathsBuilder() {
return getPathsFieldBuilder()
.addBuilder(
io.kubernetes.client.proto.V1Networking.HTTPIngressPath.getDefaultInstance());
}
/**
*
*
*
* A collection of paths that map requests to backends.
* +listType=atomic
*
*
* repeated .k8s.io.api.networking.v1.HTTPIngressPath paths = 1;
*/
public io.kubernetes.client.proto.V1Networking.HTTPIngressPath.Builder addPathsBuilder(
int index) {
return getPathsFieldBuilder()
.addBuilder(
index,
io.kubernetes.client.proto.V1Networking.HTTPIngressPath.getDefaultInstance());
}
/**
*
*
*
* A collection of paths that map requests to backends.
* +listType=atomic
*
*
* repeated .k8s.io.api.networking.v1.HTTPIngressPath paths = 1;
*/
public java.util.List
getPathsBuilderList() {
return getPathsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.HTTPIngressPath,
io.kubernetes.client.proto.V1Networking.HTTPIngressPath.Builder,
io.kubernetes.client.proto.V1Networking.HTTPIngressPathOrBuilder>
getPathsFieldBuilder() {
if (pathsBuilder_ == null) {
pathsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.HTTPIngressPath,
io.kubernetes.client.proto.V1Networking.HTTPIngressPath.Builder,
io.kubernetes.client.proto.V1Networking.HTTPIngressPathOrBuilder>(
paths_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
paths_ = null;
}
return pathsBuilder_;
}
@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.networking.v1.HTTPIngressRuleValue)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.networking.v1.HTTPIngressRuleValue)
private static final io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue();
}
public static io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public HTTPIngressRuleValue parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new HTTPIngressRuleValue(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.V1Networking.HTTPIngressRuleValue
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IPBlockOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.networking.v1.IPBlock)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* CIDR is a string representing the IP Block
* Valid examples are "192.168.1.1/24" or "2001:db9::/64"
*
*
* optional string cidr = 1;
*/
boolean hasCidr();
/**
*
*
*
* CIDR is a string representing the IP Block
* Valid examples are "192.168.1.1/24" or "2001:db9::/64"
*
*
* optional string cidr = 1;
*/
java.lang.String getCidr();
/**
*
*
*
* CIDR is a string representing the IP Block
* Valid examples are "192.168.1.1/24" or "2001:db9::/64"
*
*
* optional string cidr = 1;
*/
com.google.protobuf.ByteString getCidrBytes();
/**
*
*
*
* Except is a slice of CIDRs that should not be included within an IP Block
* Valid examples are "192.168.1.1/24" or "2001:db9::/64"
* Except values will be rejected if they are outside the CIDR range
* +optional
*
*
* repeated string except = 2;
*/
java.util.List getExceptList();
/**
*
*
*
* Except is a slice of CIDRs that should not be included within an IP Block
* Valid examples are "192.168.1.1/24" or "2001:db9::/64"
* Except values will be rejected if they are outside the CIDR range
* +optional
*
*
* repeated string except = 2;
*/
int getExceptCount();
/**
*
*
*
* Except is a slice of CIDRs that should not be included within an IP Block
* Valid examples are "192.168.1.1/24" or "2001:db9::/64"
* Except values will be rejected if they are outside the CIDR range
* +optional
*
*
* repeated string except = 2;
*/
java.lang.String getExcept(int index);
/**
*
*
*
* Except is a slice of CIDRs that should not be included within an IP Block
* Valid examples are "192.168.1.1/24" or "2001:db9::/64"
* Except values will be rejected if they are outside the CIDR range
* +optional
*
*
* repeated string except = 2;
*/
com.google.protobuf.ByteString getExceptBytes(int index);
}
/**
*
*
*
* IPBlock describes a particular CIDR (Ex. "192.168.1.1/24","2001:db9::/64") 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.networking.v1.IPBlock}
*/
public static final class IPBlock extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.networking.v1.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.V1Networking
.internal_static_k8s_io_api_networking_v1_IPBlock_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IPBlock_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.IPBlock.class,
io.kubernetes.client.proto.V1Networking.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" or "2001:db9::/64"
*
*
* optional string cidr = 1;
*/
public boolean hasCidr() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* CIDR is a string representing the IP Block
* Valid examples are "192.168.1.1/24" or "2001:db9::/64"
*
*
* optional string cidr = 1;
*/
public java.lang.String getCidr() {
java.lang.Object ref = cidr_;
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()) {
cidr_ = s;
}
return s;
}
}
/**
*
*
*
* CIDR is a string representing the IP Block
* Valid examples are "192.168.1.1/24" or "2001:db9::/64"
*
*
* 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" or "2001:db9::/64"
* Except values will be rejected if they are outside the CIDR range
* +optional
*
*
* repeated string except = 2;
*/
public com.google.protobuf.ProtocolStringList getExceptList() {
return except_;
}
/**
*
*
*
* Except is a slice of CIDRs that should not be included within an IP Block
* Valid examples are "192.168.1.1/24" or "2001:db9::/64"
* 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" or "2001:db9::/64"
* Except values will be rejected if they are outside the CIDR range
* +optional
*
*
* repeated string except = 2;
*/
public java.lang.String getExcept(int index) {
return except_.get(index);
}
/**
*
*
*
* Except is a slice of CIDRs that should not be included within an IP Block
* Valid examples are "192.168.1.1/24" or "2001:db9::/64"
* 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.V1Networking.IPBlock)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1Networking.IPBlock other =
(io.kubernetes.client.proto.V1Networking.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.V1Networking.IPBlock parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.IPBlock parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.IPBlock parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.IPBlock parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.IPBlock parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.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.V1Networking.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.V1Networking.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;
}
/**
*
*
*
* IPBlock describes a particular CIDR (Ex. "192.168.1.1/24","2001:db9::/64") 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.networking.v1.IPBlock}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.networking.v1.IPBlock)
io.kubernetes.client.proto.V1Networking.IPBlockOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IPBlock_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IPBlock_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.IPBlock.class,
io.kubernetes.client.proto.V1Networking.IPBlock.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1Networking.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.V1Networking
.internal_static_k8s_io_api_networking_v1_IPBlock_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IPBlock getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1Networking.IPBlock.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IPBlock build() {
io.kubernetes.client.proto.V1Networking.IPBlock result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IPBlock buildPartial() {
io.kubernetes.client.proto.V1Networking.IPBlock result =
new io.kubernetes.client.proto.V1Networking.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.V1Networking.IPBlock) {
return mergeFrom((io.kubernetes.client.proto.V1Networking.IPBlock) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1Networking.IPBlock other) {
if (other == io.kubernetes.client.proto.V1Networking.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.V1Networking.IPBlock parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1Networking.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" or "2001:db9::/64"
*
*
* optional string cidr = 1;
*/
public boolean hasCidr() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* CIDR is a string representing the IP Block
* Valid examples are "192.168.1.1/24" or "2001:db9::/64"
*
*
* optional string cidr = 1;
*/
public java.lang.String getCidr() {
java.lang.Object ref = cidr_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
cidr_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* CIDR is a string representing the IP Block
* Valid examples are "192.168.1.1/24" or "2001:db9::/64"
*
*
* optional string cidr = 1;
*/
public com.google.protobuf.ByteString getCidrBytes() {
java.lang.Object ref = cidr_;
if (ref instanceof 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;
}
}
/**
*
*
*
* CIDR is a string representing the IP Block
* Valid examples are "192.168.1.1/24" or "2001:db9::/64"
*
*
* optional string cidr = 1;
*/
public Builder setCidr(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
cidr_ = value;
onChanged();
return this;
}
/**
*
*
*
* CIDR is a string representing the IP Block
* Valid examples are "192.168.1.1/24" or "2001:db9::/64"
*
*
* optional string cidr = 1;
*/
public Builder clearCidr() {
bitField0_ = (bitField0_ & ~0x00000001);
cidr_ = getDefaultInstance().getCidr();
onChanged();
return this;
}
/**
*
*
*
* CIDR is a string representing the IP Block
* Valid examples are "192.168.1.1/24" or "2001:db9::/64"
*
*
* optional string cidr = 1;
*/
public Builder setCidrBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
cidr_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList except_ =
com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureExceptIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
except_ = new com.google.protobuf.LazyStringArrayList(except_);
bitField0_ |= 0x00000002;
}
}
/**
*
*
*
* Except is a slice of CIDRs that should not be included within an IP Block
* Valid examples are "192.168.1.1/24" or "2001:db9::/64"
* Except values will be rejected if they are outside the CIDR range
* +optional
*
*
* repeated string except = 2;
*/
public com.google.protobuf.ProtocolStringList getExceptList() {
return except_.getUnmodifiableView();
}
/**
*
*
*
* Except is a slice of CIDRs that should not be included within an IP Block
* Valid examples are "192.168.1.1/24" or "2001:db9::/64"
* 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" or "2001:db9::/64"
* Except values will be rejected if they are outside the CIDR range
* +optional
*
*
* repeated string except = 2;
*/
public java.lang.String getExcept(int index) {
return except_.get(index);
}
/**
*
*
*
* Except is a slice of CIDRs that should not be included within an IP Block
* Valid examples are "192.168.1.1/24" or "2001:db9::/64"
* 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);
}
/**
*
*
*
* Except is a slice of CIDRs that should not be included within an IP Block
* Valid examples are "192.168.1.1/24" or "2001:db9::/64"
* 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" or "2001:db9::/64"
* Except values will be rejected if they are outside the CIDR range
* +optional
*
*
* repeated string except = 2;
*/
public Builder addExcept(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureExceptIsMutable();
except_.add(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" or "2001:db9::/64"
* Except values will be rejected if they are outside the CIDR range
* +optional
*
*
* repeated string except = 2;
*/
public Builder addAllExcept(java.lang.Iterable values) {
ensureExceptIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, except_);
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" or "2001:db9::/64"
* Except values will be rejected if they are outside the CIDR range
* +optional
*
*
* repeated string except = 2;
*/
public Builder clearExcept() {
except_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
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" or "2001:db9::/64"
* 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.networking.v1.IPBlock)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.networking.v1.IPBlock)
private static final io.kubernetes.client.proto.V1Networking.IPBlock DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Networking.IPBlock();
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.IPBlock getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IngressOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.networking.v1.Ingress)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
boolean hasMetadata();
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
io.kubernetes.client.proto.Meta.ObjectMeta getMetadata();
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder();
/**
*
*
*
* Spec is the desired state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressSpec spec = 2;
*/
boolean hasSpec();
/**
*
*
*
* Spec is the desired state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressSpec spec = 2;
*/
io.kubernetes.client.proto.V1Networking.IngressSpec getSpec();
/**
*
*
*
* Spec is the desired state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressSpec spec = 2;
*/
io.kubernetes.client.proto.V1Networking.IngressSpecOrBuilder getSpecOrBuilder();
/**
*
*
*
* Status is the current state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressStatus status = 3;
*/
boolean hasStatus();
/**
*
*
*
* Status is the current state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressStatus status = 3;
*/
io.kubernetes.client.proto.V1Networking.IngressStatus getStatus();
/**
*
*
*
* Status is the current state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressStatus status = 3;
*/
io.kubernetes.client.proto.V1Networking.IngressStatusOrBuilder getStatusOrBuilder();
}
/**
*
*
*
* 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.networking.v1.Ingress}
*/
public static final class Ingress extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.networking.v1.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.V1Networking.IngressSpec.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = spec_.toBuilder();
}
spec_ =
input.readMessage(
io.kubernetes.client.proto.V1Networking.IngressSpec.PARSER,
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(spec_);
spec_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26:
{
io.kubernetes.client.proto.V1Networking.IngressStatus.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = status_.toBuilder();
}
status_ =
input.readMessage(
io.kubernetes.client.proto.V1Networking.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.V1Networking
.internal_static_k8s_io_api_networking_v1_Ingress_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_Ingress_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.Ingress.class,
io.kubernetes.client.proto.V1Networking.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/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public boolean hasMetadata() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() {
return metadata_ == null
? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()
: metadata_;
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/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.V1Networking.IngressSpec spec_;
/**
*
*
*
* Spec is the desired state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressSpec spec = 2;
*/
public boolean hasSpec() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* Spec is the desired state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressSpec spec = 2;
*/
public io.kubernetes.client.proto.V1Networking.IngressSpec getSpec() {
return spec_ == null
? io.kubernetes.client.proto.V1Networking.IngressSpec.getDefaultInstance()
: spec_;
}
/**
*
*
*
* Spec is the desired state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressSpec spec = 2;
*/
public io.kubernetes.client.proto.V1Networking.IngressSpecOrBuilder getSpecOrBuilder() {
return spec_ == null
? io.kubernetes.client.proto.V1Networking.IngressSpec.getDefaultInstance()
: spec_;
}
public static final int STATUS_FIELD_NUMBER = 3;
private io.kubernetes.client.proto.V1Networking.IngressStatus status_;
/**
*
*
*
* Status is the current state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressStatus status = 3;
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
*
*
* Status is the current state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressStatus status = 3;
*/
public io.kubernetes.client.proto.V1Networking.IngressStatus getStatus() {
return status_ == null
? io.kubernetes.client.proto.V1Networking.IngressStatus.getDefaultInstance()
: status_;
}
/**
*
*
*
* Status is the current state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressStatus status = 3;
*/
public io.kubernetes.client.proto.V1Networking.IngressStatusOrBuilder getStatusOrBuilder() {
return status_ == null
? io.kubernetes.client.proto.V1Networking.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.V1Networking.Ingress)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1Networking.Ingress other =
(io.kubernetes.client.proto.V1Networking.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.V1Networking.Ingress parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.Ingress parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.Ingress parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.Ingress parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.Ingress parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.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.V1Networking.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.V1Networking.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.networking.v1.Ingress}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.networking.v1.Ingress)
io.kubernetes.client.proto.V1Networking.IngressOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_Ingress_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_Ingress_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.Ingress.class,
io.kubernetes.client.proto.V1Networking.Ingress.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1Networking.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.V1Networking
.internal_static_k8s_io_api_networking_v1_Ingress_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.Ingress getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1Networking.Ingress.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.Ingress build() {
io.kubernetes.client.proto.V1Networking.Ingress result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.Ingress buildPartial() {
io.kubernetes.client.proto.V1Networking.Ingress result =
new io.kubernetes.client.proto.V1Networking.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.V1Networking.Ingress) {
return mergeFrom((io.kubernetes.client.proto.V1Networking.Ingress) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1Networking.Ingress other) {
if (other == io.kubernetes.client.proto.V1Networking.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.V1Networking.Ingress parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1Networking.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/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public boolean hasMetadata() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null
? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()
: metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public Builder setMetadata(
io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) {
if (metadataBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)
&& metadata_ != null
&& metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) {
metadata_ =
io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_)
.mergeFrom(value)
.buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null
? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()
: metadata_;
}
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ObjectMeta,
io.kubernetes.client.proto.Meta.ObjectMeta.Builder,
io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ObjectMeta,
io.kubernetes.client.proto.Meta.ObjectMeta.Builder,
io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>(
getMetadata(), getParentForChildren(), isClean());
metadata_ = null;
}
return metadataBuilder_;
}
private io.kubernetes.client.proto.V1Networking.IngressSpec spec_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.IngressSpec,
io.kubernetes.client.proto.V1Networking.IngressSpec.Builder,
io.kubernetes.client.proto.V1Networking.IngressSpecOrBuilder>
specBuilder_;
/**
*
*
*
* Spec is the desired state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressSpec spec = 2;
*/
public boolean hasSpec() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* Spec is the desired state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressSpec spec = 2;
*/
public io.kubernetes.client.proto.V1Networking.IngressSpec getSpec() {
if (specBuilder_ == null) {
return spec_ == null
? io.kubernetes.client.proto.V1Networking.IngressSpec.getDefaultInstance()
: spec_;
} else {
return specBuilder_.getMessage();
}
}
/**
*
*
*
* Spec is the desired state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressSpec spec = 2;
*/
public Builder setSpec(io.kubernetes.client.proto.V1Networking.IngressSpec value) {
if (specBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
spec_ = value;
onChanged();
} else {
specBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* Spec is the desired state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressSpec spec = 2;
*/
public Builder setSpec(
io.kubernetes.client.proto.V1Networking.IngressSpec.Builder builderForValue) {
if (specBuilder_ == null) {
spec_ = builderForValue.build();
onChanged();
} else {
specBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* Spec is the desired state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressSpec spec = 2;
*/
public Builder mergeSpec(io.kubernetes.client.proto.V1Networking.IngressSpec value) {
if (specBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)
&& spec_ != null
&& spec_
!= io.kubernetes.client.proto.V1Networking.IngressSpec.getDefaultInstance()) {
spec_ =
io.kubernetes.client.proto.V1Networking.IngressSpec.newBuilder(spec_)
.mergeFrom(value)
.buildPartial();
} else {
spec_ = value;
}
onChanged();
} else {
specBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* Spec is the desired state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressSpec spec = 2;
*/
public Builder clearSpec() {
if (specBuilder_ == null) {
spec_ = null;
onChanged();
} else {
specBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
*
*
*
* Spec is the desired state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressSpec spec = 2;
*/
public io.kubernetes.client.proto.V1Networking.IngressSpec.Builder getSpecBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getSpecFieldBuilder().getBuilder();
}
/**
*
*
*
* Spec is the desired state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressSpec spec = 2;
*/
public io.kubernetes.client.proto.V1Networking.IngressSpecOrBuilder getSpecOrBuilder() {
if (specBuilder_ != null) {
return specBuilder_.getMessageOrBuilder();
} else {
return spec_ == null
? io.kubernetes.client.proto.V1Networking.IngressSpec.getDefaultInstance()
: spec_;
}
}
/**
*
*
*
* Spec is the desired state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressSpec spec = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.IngressSpec,
io.kubernetes.client.proto.V1Networking.IngressSpec.Builder,
io.kubernetes.client.proto.V1Networking.IngressSpecOrBuilder>
getSpecFieldBuilder() {
if (specBuilder_ == null) {
specBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.IngressSpec,
io.kubernetes.client.proto.V1Networking.IngressSpec.Builder,
io.kubernetes.client.proto.V1Networking.IngressSpecOrBuilder>(
getSpec(), getParentForChildren(), isClean());
spec_ = null;
}
return specBuilder_;
}
private io.kubernetes.client.proto.V1Networking.IngressStatus status_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.IngressStatus,
io.kubernetes.client.proto.V1Networking.IngressStatus.Builder,
io.kubernetes.client.proto.V1Networking.IngressStatusOrBuilder>
statusBuilder_;
/**
*
*
*
* Status is the current state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressStatus status = 3;
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
*
*
* Status is the current state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressStatus status = 3;
*/
public io.kubernetes.client.proto.V1Networking.IngressStatus getStatus() {
if (statusBuilder_ == null) {
return status_ == null
? io.kubernetes.client.proto.V1Networking.IngressStatus.getDefaultInstance()
: status_;
} else {
return statusBuilder_.getMessage();
}
}
/**
*
*
*
* Status is the current state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressStatus status = 3;
*/
public Builder setStatus(io.kubernetes.client.proto.V1Networking.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/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressStatus status = 3;
*/
public Builder setStatus(
io.kubernetes.client.proto.V1Networking.IngressStatus.Builder builderForValue) {
if (statusBuilder_ == null) {
status_ = builderForValue.build();
onChanged();
} else {
statusBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
*
*
*
* Status is the current state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressStatus status = 3;
*/
public Builder mergeStatus(io.kubernetes.client.proto.V1Networking.IngressStatus value) {
if (statusBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)
&& status_ != null
&& status_
!= io.kubernetes.client.proto.V1Networking.IngressStatus.getDefaultInstance()) {
status_ =
io.kubernetes.client.proto.V1Networking.IngressStatus.newBuilder(status_)
.mergeFrom(value)
.buildPartial();
} else {
status_ = value;
}
onChanged();
} else {
statusBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
*
*
*
* Status is the current state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressStatus status = 3;
*/
public Builder clearStatus() {
if (statusBuilder_ == null) {
status_ = null;
onChanged();
} else {
statusBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
*
*
*
* Status is the current state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressStatus status = 3;
*/
public io.kubernetes.client.proto.V1Networking.IngressStatus.Builder getStatusBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getStatusFieldBuilder().getBuilder();
}
/**
*
*
*
* Status is the current state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressStatus status = 3;
*/
public io.kubernetes.client.proto.V1Networking.IngressStatusOrBuilder getStatusOrBuilder() {
if (statusBuilder_ != null) {
return statusBuilder_.getMessageOrBuilder();
} else {
return status_ == null
? io.kubernetes.client.proto.V1Networking.IngressStatus.getDefaultInstance()
: status_;
}
}
/**
*
*
*
* Status is the current state of the Ingress.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressStatus status = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.IngressStatus,
io.kubernetes.client.proto.V1Networking.IngressStatus.Builder,
io.kubernetes.client.proto.V1Networking.IngressStatusOrBuilder>
getStatusFieldBuilder() {
if (statusBuilder_ == null) {
statusBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.IngressStatus,
io.kubernetes.client.proto.V1Networking.IngressStatus.Builder,
io.kubernetes.client.proto.V1Networking.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.networking.v1.Ingress)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.networking.v1.Ingress)
private static final io.kubernetes.client.proto.V1Networking.Ingress DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Networking.Ingress();
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.Ingress getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IngressBackendOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.networking.v1.IngressBackend)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Service references a Service as a Backend.
* This is a mutually exclusive setting with "Resource".
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressServiceBackend service = 4;
*/
boolean hasService();
/**
*
*
*
* Service references a Service as a Backend.
* This is a mutually exclusive setting with "Resource".
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressServiceBackend service = 4;
*/
io.kubernetes.client.proto.V1Networking.IngressServiceBackend getService();
/**
*
*
*
* Service references a Service as a Backend.
* This is a mutually exclusive setting with "Resource".
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressServiceBackend service = 4;
*/
io.kubernetes.client.proto.V1Networking.IngressServiceBackendOrBuilder getServiceOrBuilder();
/**
*
*
*
* Resource is an ObjectRef to another Kubernetes resource in the namespace
* of the Ingress object. If resource is specified, a service.Name and
* service.Port must not be specified.
* This is a mutually exclusive setting with "Service".
* +optional
*
*
* optional .k8s.io.api.core.v1.TypedLocalObjectReference resource = 3;
*/
boolean hasResource();
/**
*
*
*
* Resource is an ObjectRef to another Kubernetes resource in the namespace
* of the Ingress object. If resource is specified, a service.Name and
* service.Port must not be specified.
* This is a mutually exclusive setting with "Service".
* +optional
*
*
* optional .k8s.io.api.core.v1.TypedLocalObjectReference resource = 3;
*/
io.kubernetes.client.proto.V1.TypedLocalObjectReference getResource();
/**
*
*
*
* Resource is an ObjectRef to another Kubernetes resource in the namespace
* of the Ingress object. If resource is specified, a service.Name and
* service.Port must not be specified.
* This is a mutually exclusive setting with "Service".
* +optional
*
*
* optional .k8s.io.api.core.v1.TypedLocalObjectReference resource = 3;
*/
io.kubernetes.client.proto.V1.TypedLocalObjectReferenceOrBuilder getResourceOrBuilder();
}
/**
*
*
*
* IngressBackend describes all endpoints for a given service and port.
*
*
* Protobuf type {@code k8s.io.api.networking.v1.IngressBackend}
*/
public static final class IngressBackend extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.networking.v1.IngressBackend)
IngressBackendOrBuilder {
private static final long serialVersionUID = 0L;
// Use IngressBackend.newBuilder() to construct.
private IngressBackend(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IngressBackend() {}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private IngressBackend(
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 26:
{
io.kubernetes.client.proto.V1.TypedLocalObjectReference.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = resource_.toBuilder();
}
resource_ =
input.readMessage(
io.kubernetes.client.proto.V1.TypedLocalObjectReference.PARSER,
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(resource_);
resource_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 34:
{
io.kubernetes.client.proto.V1Networking.IngressServiceBackend.Builder subBuilder =
null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = service_.toBuilder();
}
service_ =
input.readMessage(
io.kubernetes.client.proto.V1Networking.IngressServiceBackend.PARSER,
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(service_);
service_ = 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.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressBackend_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressBackend_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.IngressBackend.class,
io.kubernetes.client.proto.V1Networking.IngressBackend.Builder.class);
}
private int bitField0_;
public static final int SERVICE_FIELD_NUMBER = 4;
private io.kubernetes.client.proto.V1Networking.IngressServiceBackend service_;
/**
*
*
*
* Service references a Service as a Backend.
* This is a mutually exclusive setting with "Resource".
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressServiceBackend service = 4;
*/
public boolean hasService() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* Service references a Service as a Backend.
* This is a mutually exclusive setting with "Resource".
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressServiceBackend service = 4;
*/
public io.kubernetes.client.proto.V1Networking.IngressServiceBackend getService() {
return service_ == null
? io.kubernetes.client.proto.V1Networking.IngressServiceBackend.getDefaultInstance()
: service_;
}
/**
*
*
*
* Service references a Service as a Backend.
* This is a mutually exclusive setting with "Resource".
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressServiceBackend service = 4;
*/
public io.kubernetes.client.proto.V1Networking.IngressServiceBackendOrBuilder
getServiceOrBuilder() {
return service_ == null
? io.kubernetes.client.proto.V1Networking.IngressServiceBackend.getDefaultInstance()
: service_;
}
public static final int RESOURCE_FIELD_NUMBER = 3;
private io.kubernetes.client.proto.V1.TypedLocalObjectReference resource_;
/**
*
*
*
* Resource is an ObjectRef to another Kubernetes resource in the namespace
* of the Ingress object. If resource is specified, a service.Name and
* service.Port must not be specified.
* This is a mutually exclusive setting with "Service".
* +optional
*
*
* optional .k8s.io.api.core.v1.TypedLocalObjectReference resource = 3;
*/
public boolean hasResource() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* Resource is an ObjectRef to another Kubernetes resource in the namespace
* of the Ingress object. If resource is specified, a service.Name and
* service.Port must not be specified.
* This is a mutually exclusive setting with "Service".
* +optional
*
*
* optional .k8s.io.api.core.v1.TypedLocalObjectReference resource = 3;
*/
public io.kubernetes.client.proto.V1.TypedLocalObjectReference getResource() {
return resource_ == null
? io.kubernetes.client.proto.V1.TypedLocalObjectReference.getDefaultInstance()
: resource_;
}
/**
*
*
*
* Resource is an ObjectRef to another Kubernetes resource in the namespace
* of the Ingress object. If resource is specified, a service.Name and
* service.Port must not be specified.
* This is a mutually exclusive setting with "Service".
* +optional
*
*
* optional .k8s.io.api.core.v1.TypedLocalObjectReference resource = 3;
*/
public io.kubernetes.client.proto.V1.TypedLocalObjectReferenceOrBuilder getResourceOrBuilder() {
return resource_ == null
? io.kubernetes.client.proto.V1.TypedLocalObjectReference.getDefaultInstance()
: resource_;
}
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_ & 0x00000002) == 0x00000002)) {
output.writeMessage(3, getResource());
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(4, getService());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource());
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getService());
}
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.V1Networking.IngressBackend)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1Networking.IngressBackend other =
(io.kubernetes.client.proto.V1Networking.IngressBackend) obj;
boolean result = true;
result = result && (hasService() == other.hasService());
if (hasService()) {
result = result && getService().equals(other.getService());
}
result = result && (hasResource() == other.hasResource());
if (hasResource()) {
result = result && getResource().equals(other.getResource());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasService()) {
hash = (37 * hash) + SERVICE_FIELD_NUMBER;
hash = (53 * hash) + getService().hashCode();
}
if (hasResource()) {
hash = (37 * hash) + RESOURCE_FIELD_NUMBER;
hash = (53 * hash) + getResource().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1Networking.IngressBackend parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.IngressBackend 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.V1Networking.IngressBackend parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.IngressBackend 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.V1Networking.IngressBackend parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.IngressBackend parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Networking.IngressBackend parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.IngressBackend 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.V1Networking.IngressBackend parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.IngressBackend 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.V1Networking.IngressBackend parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.IngressBackend 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.V1Networking.IngressBackend 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;
}
/**
*
*
*
* IngressBackend describes all endpoints for a given service and port.
*
*
* Protobuf type {@code k8s.io.api.networking.v1.IngressBackend}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.networking.v1.IngressBackend)
io.kubernetes.client.proto.V1Networking.IngressBackendOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressBackend_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressBackend_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.IngressBackend.class,
io.kubernetes.client.proto.V1Networking.IngressBackend.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1Networking.IngressBackend.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getServiceFieldBuilder();
getResourceFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (serviceBuilder_ == null) {
service_ = null;
} else {
serviceBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (resourceBuilder_ == null) {
resource_ = null;
} else {
resourceBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressBackend_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IngressBackend getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1Networking.IngressBackend.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IngressBackend build() {
io.kubernetes.client.proto.V1Networking.IngressBackend result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IngressBackend buildPartial() {
io.kubernetes.client.proto.V1Networking.IngressBackend result =
new io.kubernetes.client.proto.V1Networking.IngressBackend(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (serviceBuilder_ == null) {
result.service_ = service_;
} else {
result.service_ = serviceBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (resourceBuilder_ == null) {
result.resource_ = resource_;
} else {
result.resource_ = resourceBuilder_.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.V1Networking.IngressBackend) {
return mergeFrom((io.kubernetes.client.proto.V1Networking.IngressBackend) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1Networking.IngressBackend other) {
if (other == io.kubernetes.client.proto.V1Networking.IngressBackend.getDefaultInstance())
return this;
if (other.hasService()) {
mergeService(other.getService());
}
if (other.hasResource()) {
mergeResource(other.getResource());
}
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.V1Networking.IngressBackend parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1Networking.IngressBackend) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.kubernetes.client.proto.V1Networking.IngressServiceBackend service_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.IngressServiceBackend,
io.kubernetes.client.proto.V1Networking.IngressServiceBackend.Builder,
io.kubernetes.client.proto.V1Networking.IngressServiceBackendOrBuilder>
serviceBuilder_;
/**
*
*
*
* Service references a Service as a Backend.
* This is a mutually exclusive setting with "Resource".
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressServiceBackend service = 4;
*/
public boolean hasService() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* Service references a Service as a Backend.
* This is a mutually exclusive setting with "Resource".
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressServiceBackend service = 4;
*/
public io.kubernetes.client.proto.V1Networking.IngressServiceBackend getService() {
if (serviceBuilder_ == null) {
return service_ == null
? io.kubernetes.client.proto.V1Networking.IngressServiceBackend.getDefaultInstance()
: service_;
} else {
return serviceBuilder_.getMessage();
}
}
/**
*
*
*
* Service references a Service as a Backend.
* This is a mutually exclusive setting with "Resource".
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressServiceBackend service = 4;
*/
public Builder setService(
io.kubernetes.client.proto.V1Networking.IngressServiceBackend value) {
if (serviceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
service_ = value;
onChanged();
} else {
serviceBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* Service references a Service as a Backend.
* This is a mutually exclusive setting with "Resource".
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressServiceBackend service = 4;
*/
public Builder setService(
io.kubernetes.client.proto.V1Networking.IngressServiceBackend.Builder builderForValue) {
if (serviceBuilder_ == null) {
service_ = builderForValue.build();
onChanged();
} else {
serviceBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* Service references a Service as a Backend.
* This is a mutually exclusive setting with "Resource".
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressServiceBackend service = 4;
*/
public Builder mergeService(
io.kubernetes.client.proto.V1Networking.IngressServiceBackend value) {
if (serviceBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)
&& service_ != null
&& service_
!= io.kubernetes.client.proto.V1Networking.IngressServiceBackend
.getDefaultInstance()) {
service_ =
io.kubernetes.client.proto.V1Networking.IngressServiceBackend.newBuilder(service_)
.mergeFrom(value)
.buildPartial();
} else {
service_ = value;
}
onChanged();
} else {
serviceBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* Service references a Service as a Backend.
* This is a mutually exclusive setting with "Resource".
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressServiceBackend service = 4;
*/
public Builder clearService() {
if (serviceBuilder_ == null) {
service_ = null;
onChanged();
} else {
serviceBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
*
*
*
* Service references a Service as a Backend.
* This is a mutually exclusive setting with "Resource".
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressServiceBackend service = 4;
*/
public io.kubernetes.client.proto.V1Networking.IngressServiceBackend.Builder
getServiceBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getServiceFieldBuilder().getBuilder();
}
/**
*
*
*
* Service references a Service as a Backend.
* This is a mutually exclusive setting with "Resource".
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressServiceBackend service = 4;
*/
public io.kubernetes.client.proto.V1Networking.IngressServiceBackendOrBuilder
getServiceOrBuilder() {
if (serviceBuilder_ != null) {
return serviceBuilder_.getMessageOrBuilder();
} else {
return service_ == null
? io.kubernetes.client.proto.V1Networking.IngressServiceBackend.getDefaultInstance()
: service_;
}
}
/**
*
*
*
* Service references a Service as a Backend.
* This is a mutually exclusive setting with "Resource".
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressServiceBackend service = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.IngressServiceBackend,
io.kubernetes.client.proto.V1Networking.IngressServiceBackend.Builder,
io.kubernetes.client.proto.V1Networking.IngressServiceBackendOrBuilder>
getServiceFieldBuilder() {
if (serviceBuilder_ == null) {
serviceBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.IngressServiceBackend,
io.kubernetes.client.proto.V1Networking.IngressServiceBackend.Builder,
io.kubernetes.client.proto.V1Networking.IngressServiceBackendOrBuilder>(
getService(), getParentForChildren(), isClean());
service_ = null;
}
return serviceBuilder_;
}
private io.kubernetes.client.proto.V1.TypedLocalObjectReference resource_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.TypedLocalObjectReference,
io.kubernetes.client.proto.V1.TypedLocalObjectReference.Builder,
io.kubernetes.client.proto.V1.TypedLocalObjectReferenceOrBuilder>
resourceBuilder_;
/**
*
*
*
* Resource is an ObjectRef to another Kubernetes resource in the namespace
* of the Ingress object. If resource is specified, a service.Name and
* service.Port must not be specified.
* This is a mutually exclusive setting with "Service".
* +optional
*
*
* optional .k8s.io.api.core.v1.TypedLocalObjectReference resource = 3;
*/
public boolean hasResource() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* Resource is an ObjectRef to another Kubernetes resource in the namespace
* of the Ingress object. If resource is specified, a service.Name and
* service.Port must not be specified.
* This is a mutually exclusive setting with "Service".
* +optional
*
*
* optional .k8s.io.api.core.v1.TypedLocalObjectReference resource = 3;
*/
public io.kubernetes.client.proto.V1.TypedLocalObjectReference getResource() {
if (resourceBuilder_ == null) {
return resource_ == null
? io.kubernetes.client.proto.V1.TypedLocalObjectReference.getDefaultInstance()
: resource_;
} else {
return resourceBuilder_.getMessage();
}
}
/**
*
*
*
* Resource is an ObjectRef to another Kubernetes resource in the namespace
* of the Ingress object. If resource is specified, a service.Name and
* service.Port must not be specified.
* This is a mutually exclusive setting with "Service".
* +optional
*
*
* optional .k8s.io.api.core.v1.TypedLocalObjectReference resource = 3;
*/
public Builder setResource(io.kubernetes.client.proto.V1.TypedLocalObjectReference value) {
if (resourceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resource_ = value;
onChanged();
} else {
resourceBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* Resource is an ObjectRef to another Kubernetes resource in the namespace
* of the Ingress object. If resource is specified, a service.Name and
* service.Port must not be specified.
* This is a mutually exclusive setting with "Service".
* +optional
*
*
* optional .k8s.io.api.core.v1.TypedLocalObjectReference resource = 3;
*/
public Builder setResource(
io.kubernetes.client.proto.V1.TypedLocalObjectReference.Builder builderForValue) {
if (resourceBuilder_ == null) {
resource_ = builderForValue.build();
onChanged();
} else {
resourceBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* Resource is an ObjectRef to another Kubernetes resource in the namespace
* of the Ingress object. If resource is specified, a service.Name and
* service.Port must not be specified.
* This is a mutually exclusive setting with "Service".
* +optional
*
*
* optional .k8s.io.api.core.v1.TypedLocalObjectReference resource = 3;
*/
public Builder mergeResource(io.kubernetes.client.proto.V1.TypedLocalObjectReference value) {
if (resourceBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)
&& resource_ != null
&& resource_
!= io.kubernetes.client.proto.V1.TypedLocalObjectReference.getDefaultInstance()) {
resource_ =
io.kubernetes.client.proto.V1.TypedLocalObjectReference.newBuilder(resource_)
.mergeFrom(value)
.buildPartial();
} else {
resource_ = value;
}
onChanged();
} else {
resourceBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* Resource is an ObjectRef to another Kubernetes resource in the namespace
* of the Ingress object. If resource is specified, a service.Name and
* service.Port must not be specified.
* This is a mutually exclusive setting with "Service".
* +optional
*
*
* optional .k8s.io.api.core.v1.TypedLocalObjectReference resource = 3;
*/
public Builder clearResource() {
if (resourceBuilder_ == null) {
resource_ = null;
onChanged();
} else {
resourceBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
*
*
*
* Resource is an ObjectRef to another Kubernetes resource in the namespace
* of the Ingress object. If resource is specified, a service.Name and
* service.Port must not be specified.
* This is a mutually exclusive setting with "Service".
* +optional
*
*
* optional .k8s.io.api.core.v1.TypedLocalObjectReference resource = 3;
*/
public io.kubernetes.client.proto.V1.TypedLocalObjectReference.Builder getResourceBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getResourceFieldBuilder().getBuilder();
}
/**
*
*
*
* Resource is an ObjectRef to another Kubernetes resource in the namespace
* of the Ingress object. If resource is specified, a service.Name and
* service.Port must not be specified.
* This is a mutually exclusive setting with "Service".
* +optional
*
*
* optional .k8s.io.api.core.v1.TypedLocalObjectReference resource = 3;
*/
public io.kubernetes.client.proto.V1.TypedLocalObjectReferenceOrBuilder
getResourceOrBuilder() {
if (resourceBuilder_ != null) {
return resourceBuilder_.getMessageOrBuilder();
} else {
return resource_ == null
? io.kubernetes.client.proto.V1.TypedLocalObjectReference.getDefaultInstance()
: resource_;
}
}
/**
*
*
*
* Resource is an ObjectRef to another Kubernetes resource in the namespace
* of the Ingress object. If resource is specified, a service.Name and
* service.Port must not be specified.
* This is a mutually exclusive setting with "Service".
* +optional
*
*
* optional .k8s.io.api.core.v1.TypedLocalObjectReference resource = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.TypedLocalObjectReference,
io.kubernetes.client.proto.V1.TypedLocalObjectReference.Builder,
io.kubernetes.client.proto.V1.TypedLocalObjectReferenceOrBuilder>
getResourceFieldBuilder() {
if (resourceBuilder_ == null) {
resourceBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.TypedLocalObjectReference,
io.kubernetes.client.proto.V1.TypedLocalObjectReference.Builder,
io.kubernetes.client.proto.V1.TypedLocalObjectReferenceOrBuilder>(
getResource(), getParentForChildren(), isClean());
resource_ = null;
}
return resourceBuilder_;
}
@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.networking.v1.IngressBackend)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.networking.v1.IngressBackend)
private static final io.kubernetes.client.proto.V1Networking.IngressBackend DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Networking.IngressBackend();
}
public static io.kubernetes.client.proto.V1Networking.IngressBackend getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IngressBackend parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IngressBackend(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.V1Networking.IngressBackend getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IngressClassOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.networking.v1.IngressClass)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
boolean hasMetadata();
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
io.kubernetes.client.proto.Meta.ObjectMeta getMetadata();
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder();
/**
*
*
*
* Spec is the desired state of the IngressClass.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressClassSpec spec = 2;
*/
boolean hasSpec();
/**
*
*
*
* Spec is the desired state of the IngressClass.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressClassSpec spec = 2;
*/
io.kubernetes.client.proto.V1Networking.IngressClassSpec getSpec();
/**
*
*
*
* Spec is the desired state of the IngressClass.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressClassSpec spec = 2;
*/
io.kubernetes.client.proto.V1Networking.IngressClassSpecOrBuilder getSpecOrBuilder();
}
/**
*
*
*
* IngressClass represents the class of the Ingress, referenced by the Ingress
* Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be
* used to indicate that an IngressClass should be considered default. When a
* single IngressClass resource has this annotation set to true, new Ingress
* resources without a class specified will be assigned this default class.
*
*
* Protobuf type {@code k8s.io.api.networking.v1.IngressClass}
*/
public static final class IngressClass extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.networking.v1.IngressClass)
IngressClassOrBuilder {
private static final long serialVersionUID = 0L;
// Use IngressClass.newBuilder() to construct.
private IngressClass(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IngressClass() {}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private IngressClass(
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.V1Networking.IngressClassSpec.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = spec_.toBuilder();
}
spec_ =
input.readMessage(
io.kubernetes.client.proto.V1Networking.IngressClassSpec.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.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressClass_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressClass_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.IngressClass.class,
io.kubernetes.client.proto.V1Networking.IngressClass.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/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public boolean hasMetadata() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() {
return metadata_ == null
? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()
: metadata_;
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/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.V1Networking.IngressClassSpec spec_;
/**
*
*
*
* Spec is the desired state of the IngressClass.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressClassSpec spec = 2;
*/
public boolean hasSpec() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* Spec is the desired state of the IngressClass.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressClassSpec spec = 2;
*/
public io.kubernetes.client.proto.V1Networking.IngressClassSpec getSpec() {
return spec_ == null
? io.kubernetes.client.proto.V1Networking.IngressClassSpec.getDefaultInstance()
: spec_;
}
/**
*
*
*
* Spec is the desired state of the IngressClass.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressClassSpec spec = 2;
*/
public io.kubernetes.client.proto.V1Networking.IngressClassSpecOrBuilder getSpecOrBuilder() {
return spec_ == null
? io.kubernetes.client.proto.V1Networking.IngressClassSpec.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.V1Networking.IngressClass)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1Networking.IngressClass other =
(io.kubernetes.client.proto.V1Networking.IngressClass) 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.V1Networking.IngressClass parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.IngressClass 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.V1Networking.IngressClass parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.IngressClass 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.V1Networking.IngressClass parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.IngressClass parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Networking.IngressClass parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.IngressClass 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.V1Networking.IngressClass parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.IngressClass 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.V1Networking.IngressClass parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.IngressClass 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.V1Networking.IngressClass 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;
}
/**
*
*
*
* IngressClass represents the class of the Ingress, referenced by the Ingress
* Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be
* used to indicate that an IngressClass should be considered default. When a
* single IngressClass resource has this annotation set to true, new Ingress
* resources without a class specified will be assigned this default class.
*
*
* Protobuf type {@code k8s.io.api.networking.v1.IngressClass}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.networking.v1.IngressClass)
io.kubernetes.client.proto.V1Networking.IngressClassOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressClass_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressClass_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.IngressClass.class,
io.kubernetes.client.proto.V1Networking.IngressClass.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1Networking.IngressClass.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.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressClass_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IngressClass getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1Networking.IngressClass.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IngressClass build() {
io.kubernetes.client.proto.V1Networking.IngressClass result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IngressClass buildPartial() {
io.kubernetes.client.proto.V1Networking.IngressClass result =
new io.kubernetes.client.proto.V1Networking.IngressClass(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.V1Networking.IngressClass) {
return mergeFrom((io.kubernetes.client.proto.V1Networking.IngressClass) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1Networking.IngressClass other) {
if (other == io.kubernetes.client.proto.V1Networking.IngressClass.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.V1Networking.IngressClass parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1Networking.IngressClass) 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/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public boolean hasMetadata() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null
? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()
: metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public Builder setMetadata(
io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) {
if (metadataBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)
&& metadata_ != null
&& metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) {
metadata_ =
io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_)
.mergeFrom(value)
.buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null
? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()
: metadata_;
}
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ObjectMeta,
io.kubernetes.client.proto.Meta.ObjectMeta.Builder,
io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ObjectMeta,
io.kubernetes.client.proto.Meta.ObjectMeta.Builder,
io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>(
getMetadata(), getParentForChildren(), isClean());
metadata_ = null;
}
return metadataBuilder_;
}
private io.kubernetes.client.proto.V1Networking.IngressClassSpec spec_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.IngressClassSpec,
io.kubernetes.client.proto.V1Networking.IngressClassSpec.Builder,
io.kubernetes.client.proto.V1Networking.IngressClassSpecOrBuilder>
specBuilder_;
/**
*
*
*
* Spec is the desired state of the IngressClass.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressClassSpec spec = 2;
*/
public boolean hasSpec() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* Spec is the desired state of the IngressClass.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressClassSpec spec = 2;
*/
public io.kubernetes.client.proto.V1Networking.IngressClassSpec getSpec() {
if (specBuilder_ == null) {
return spec_ == null
? io.kubernetes.client.proto.V1Networking.IngressClassSpec.getDefaultInstance()
: spec_;
} else {
return specBuilder_.getMessage();
}
}
/**
*
*
*
* Spec is the desired state of the IngressClass.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressClassSpec spec = 2;
*/
public Builder setSpec(io.kubernetes.client.proto.V1Networking.IngressClassSpec value) {
if (specBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
spec_ = value;
onChanged();
} else {
specBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* Spec is the desired state of the IngressClass.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressClassSpec spec = 2;
*/
public Builder setSpec(
io.kubernetes.client.proto.V1Networking.IngressClassSpec.Builder builderForValue) {
if (specBuilder_ == null) {
spec_ = builderForValue.build();
onChanged();
} else {
specBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* Spec is the desired state of the IngressClass.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressClassSpec spec = 2;
*/
public Builder mergeSpec(io.kubernetes.client.proto.V1Networking.IngressClassSpec value) {
if (specBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)
&& spec_ != null
&& spec_
!= io.kubernetes.client.proto.V1Networking.IngressClassSpec
.getDefaultInstance()) {
spec_ =
io.kubernetes.client.proto.V1Networking.IngressClassSpec.newBuilder(spec_)
.mergeFrom(value)
.buildPartial();
} else {
spec_ = value;
}
onChanged();
} else {
specBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* Spec is the desired state of the IngressClass.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressClassSpec spec = 2;
*/
public Builder clearSpec() {
if (specBuilder_ == null) {
spec_ = null;
onChanged();
} else {
specBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
*
*
*
* Spec is the desired state of the IngressClass.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressClassSpec spec = 2;
*/
public io.kubernetes.client.proto.V1Networking.IngressClassSpec.Builder getSpecBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getSpecFieldBuilder().getBuilder();
}
/**
*
*
*
* Spec is the desired state of the IngressClass.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressClassSpec spec = 2;
*/
public io.kubernetes.client.proto.V1Networking.IngressClassSpecOrBuilder getSpecOrBuilder() {
if (specBuilder_ != null) {
return specBuilder_.getMessageOrBuilder();
} else {
return spec_ == null
? io.kubernetes.client.proto.V1Networking.IngressClassSpec.getDefaultInstance()
: spec_;
}
}
/**
*
*
*
* Spec is the desired state of the IngressClass.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressClassSpec spec = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.IngressClassSpec,
io.kubernetes.client.proto.V1Networking.IngressClassSpec.Builder,
io.kubernetes.client.proto.V1Networking.IngressClassSpecOrBuilder>
getSpecFieldBuilder() {
if (specBuilder_ == null) {
specBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.IngressClassSpec,
io.kubernetes.client.proto.V1Networking.IngressClassSpec.Builder,
io.kubernetes.client.proto.V1Networking.IngressClassSpecOrBuilder>(
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.networking.v1.IngressClass)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.networking.v1.IngressClass)
private static final io.kubernetes.client.proto.V1Networking.IngressClass DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Networking.IngressClass();
}
public static io.kubernetes.client.proto.V1Networking.IngressClass getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IngressClass parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IngressClass(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.V1Networking.IngressClass getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IngressClassListOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.networking.v1.IngressClassList)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Standard list metadata.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
boolean hasMetadata();
/**
*
*
*
* Standard list metadata.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
io.kubernetes.client.proto.Meta.ListMeta getMetadata();
/**
*
*
*
* Standard list metadata.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder();
/**
*
*
*
* Items is the list of IngressClasses.
*
*
* repeated .k8s.io.api.networking.v1.IngressClass items = 2;
*/
java.util.List getItemsList();
/**
*
*
*
* Items is the list of IngressClasses.
*
*
* repeated .k8s.io.api.networking.v1.IngressClass items = 2;
*/
io.kubernetes.client.proto.V1Networking.IngressClass getItems(int index);
/**
*
*
*
* Items is the list of IngressClasses.
*
*
* repeated .k8s.io.api.networking.v1.IngressClass items = 2;
*/
int getItemsCount();
/**
*
*
*
* Items is the list of IngressClasses.
*
*
* repeated .k8s.io.api.networking.v1.IngressClass items = 2;
*/
java.util.List extends io.kubernetes.client.proto.V1Networking.IngressClassOrBuilder>
getItemsOrBuilderList();
/**
*
*
*
* Items is the list of IngressClasses.
*
*
* repeated .k8s.io.api.networking.v1.IngressClass items = 2;
*/
io.kubernetes.client.proto.V1Networking.IngressClassOrBuilder getItemsOrBuilder(int index);
}
/**
*
*
*
* IngressClassList is a collection of IngressClasses.
*
*
* Protobuf type {@code k8s.io.api.networking.v1.IngressClassList}
*/
public static final class IngressClassList extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.networking.v1.IngressClassList)
IngressClassListOrBuilder {
private static final long serialVersionUID = 0L;
// Use IngressClassList.newBuilder() to construct.
private IngressClassList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IngressClassList() {
items_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private IngressClassList(
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.ListMeta.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = metadata_.toBuilder();
}
metadata_ =
input.readMessage(
io.kubernetes.client.proto.Meta.ListMeta.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18:
{
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
items_ =
new java.util.ArrayList<
io.kubernetes.client.proto.V1Networking.IngressClass>();
mutable_bitField0_ |= 0x00000002;
}
items_.add(
input.readMessage(
io.kubernetes.client.proto.V1Networking.IngressClass.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)) {
items_ = java.util.Collections.unmodifiableList(items_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressClassList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressClassList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.IngressClassList.class,
io.kubernetes.client.proto.V1Networking.IngressClassList.Builder.class);
}
private int bitField0_;
public static final int METADATA_FIELD_NUMBER = 1;
private io.kubernetes.client.proto.Meta.ListMeta metadata_;
/**
*
*
*
* Standard list metadata.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public boolean hasMetadata() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* Standard list metadata.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ListMeta getMetadata() {
return metadata_ == null
? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()
: metadata_;
}
/**
*
*
*
* Standard list metadata.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() {
return metadata_ == null
? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()
: metadata_;
}
public static final int ITEMS_FIELD_NUMBER = 2;
private java.util.List items_;
/**
*
*
*
* Items is the list of IngressClasses.
*
*
* repeated .k8s.io.api.networking.v1.IngressClass items = 2;
*/
public java.util.List getItemsList() {
return items_;
}
/**
*
*
*
* Items is the list of IngressClasses.
*
*
* repeated .k8s.io.api.networking.v1.IngressClass items = 2;
*/
public java.util.List extends io.kubernetes.client.proto.V1Networking.IngressClassOrBuilder>
getItemsOrBuilderList() {
return items_;
}
/**
*
*
*
* Items is the list of IngressClasses.
*
*
* repeated .k8s.io.api.networking.v1.IngressClass items = 2;
*/
public int getItemsCount() {
return items_.size();
}
/**
*
*
*
* Items is the list of IngressClasses.
*
*
* repeated .k8s.io.api.networking.v1.IngressClass items = 2;
*/
public io.kubernetes.client.proto.V1Networking.IngressClass getItems(int index) {
return items_.get(index);
}
/**
*
*
*
* Items is the list of IngressClasses.
*
*
* repeated .k8s.io.api.networking.v1.IngressClass items = 2;
*/
public io.kubernetes.client.proto.V1Networking.IngressClassOrBuilder getItemsOrBuilder(
int index) {
return items_.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)) {
output.writeMessage(1, getMetadata());
}
for (int i = 0; i < items_.size(); i++) {
output.writeMessage(2, items_.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.CodedOutputStream.computeMessageSize(1, getMetadata());
}
for (int i = 0; i < items_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, items_.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.V1Networking.IngressClassList)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1Networking.IngressClassList other =
(io.kubernetes.client.proto.V1Networking.IngressClassList) obj;
boolean result = true;
result = result && (hasMetadata() == other.hasMetadata());
if (hasMetadata()) {
result = result && getMetadata().equals(other.getMetadata());
}
result = result && getItemsList().equals(other.getItemsList());
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 (getItemsCount() > 0) {
hash = (37 * hash) + ITEMS_FIELD_NUMBER;
hash = (53 * hash) + getItemsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1Networking.IngressClassList parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.IngressClassList 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.V1Networking.IngressClassList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.IngressClassList 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.V1Networking.IngressClassList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.IngressClassList parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Networking.IngressClassList parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.IngressClassList 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.V1Networking.IngressClassList parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.IngressClassList 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.V1Networking.IngressClassList parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.IngressClassList 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.V1Networking.IngressClassList 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;
}
/**
*
*
*
* IngressClassList is a collection of IngressClasses.
*
*
* Protobuf type {@code k8s.io.api.networking.v1.IngressClassList}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.networking.v1.IngressClassList)
io.kubernetes.client.proto.V1Networking.IngressClassListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressClassList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressClassList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.IngressClassList.class,
io.kubernetes.client.proto.V1Networking.IngressClassList.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1Networking.IngressClassList.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();
getItemsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (itemsBuilder_ == null) {
items_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
itemsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressClassList_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IngressClassList getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1Networking.IngressClassList.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IngressClassList build() {
io.kubernetes.client.proto.V1Networking.IngressClassList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IngressClassList buildPartial() {
io.kubernetes.client.proto.V1Networking.IngressClassList result =
new io.kubernetes.client.proto.V1Networking.IngressClassList(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 (itemsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
items_ = java.util.Collections.unmodifiableList(items_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.items_ = items_;
} else {
result.items_ = itemsBuilder_.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.V1Networking.IngressClassList) {
return mergeFrom((io.kubernetes.client.proto.V1Networking.IngressClassList) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1Networking.IngressClassList other) {
if (other == io.kubernetes.client.proto.V1Networking.IngressClassList.getDefaultInstance())
return this;
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
if (itemsBuilder_ == null) {
if (!other.items_.isEmpty()) {
if (items_.isEmpty()) {
items_ = other.items_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureItemsIsMutable();
items_.addAll(other.items_);
}
onChanged();
}
} else {
if (!other.items_.isEmpty()) {
if (itemsBuilder_.isEmpty()) {
itemsBuilder_.dispose();
itemsBuilder_ = null;
items_ = other.items_;
bitField0_ = (bitField0_ & ~0x00000002);
itemsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getItemsFieldBuilder()
: null;
} else {
itemsBuilder_.addAllMessages(other.items_);
}
}
}
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.V1Networking.IngressClassList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1Networking.IngressClassList) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.kubernetes.client.proto.Meta.ListMeta metadata_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ListMeta,
io.kubernetes.client.proto.Meta.ListMeta.Builder,
io.kubernetes.client.proto.Meta.ListMetaOrBuilder>
metadataBuilder_;
/**
*
*
*
* Standard list metadata.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public boolean hasMetadata() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* Standard list metadata.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ListMeta getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null
? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()
: metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
*
*
*
* Standard list metadata.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* Standard list metadata.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* Standard list metadata.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ListMeta value) {
if (metadataBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)
&& metadata_ != null
&& metadata_ != io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()) {
metadata_ =
io.kubernetes.client.proto.Meta.ListMeta.newBuilder(metadata_)
.mergeFrom(value)
.buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* Standard list metadata.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
*
*
*
* Standard list metadata.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ListMeta.Builder getMetadataBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
*
*
*
* Standard list metadata.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null
? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()
: metadata_;
}
}
/**
*
*
*
* Standard list metadata.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ListMeta,
io.kubernetes.client.proto.Meta.ListMeta.Builder,
io.kubernetes.client.proto.Meta.ListMetaOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ListMeta,
io.kubernetes.client.proto.Meta.ListMeta.Builder,
io.kubernetes.client.proto.Meta.ListMetaOrBuilder>(
getMetadata(), getParentForChildren(), isClean());
metadata_ = null;
}
return metadataBuilder_;
}
private java.util.List items_ =
java.util.Collections.emptyList();
private void ensureItemsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
items_ =
new java.util.ArrayList(items_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.IngressClass,
io.kubernetes.client.proto.V1Networking.IngressClass.Builder,
io.kubernetes.client.proto.V1Networking.IngressClassOrBuilder>
itemsBuilder_;
/**
*
*
*
* Items is the list of IngressClasses.
*
*
* repeated .k8s.io.api.networking.v1.IngressClass items = 2;
*/
public java.util.List getItemsList() {
if (itemsBuilder_ == null) {
return java.util.Collections.unmodifiableList(items_);
} else {
return itemsBuilder_.getMessageList();
}
}
/**
*
*
*
* Items is the list of IngressClasses.
*
*
* repeated .k8s.io.api.networking.v1.IngressClass items = 2;
*/
public int getItemsCount() {
if (itemsBuilder_ == null) {
return items_.size();
} else {
return itemsBuilder_.getCount();
}
}
/**
*
*
*
* Items is the list of IngressClasses.
*
*
* repeated .k8s.io.api.networking.v1.IngressClass items = 2;
*/
public io.kubernetes.client.proto.V1Networking.IngressClass getItems(int index) {
if (itemsBuilder_ == null) {
return items_.get(index);
} else {
return itemsBuilder_.getMessage(index);
}
}
/**
*
*
*
* Items is the list of IngressClasses.
*
*
* repeated .k8s.io.api.networking.v1.IngressClass items = 2;
*/
public Builder setItems(
int index, io.kubernetes.client.proto.V1Networking.IngressClass value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.set(index, value);
onChanged();
} else {
itemsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* Items is the list of IngressClasses.
*
*
* repeated .k8s.io.api.networking.v1.IngressClass items = 2;
*/
public Builder setItems(
int index, io.kubernetes.client.proto.V1Networking.IngressClass.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.set(index, builderForValue.build());
onChanged();
} else {
itemsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Items is the list of IngressClasses.
*
*
* repeated .k8s.io.api.networking.v1.IngressClass items = 2;
*/
public Builder addItems(io.kubernetes.client.proto.V1Networking.IngressClass value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.add(value);
onChanged();
} else {
itemsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* Items is the list of IngressClasses.
*
*
* repeated .k8s.io.api.networking.v1.IngressClass items = 2;
*/
public Builder addItems(
int index, io.kubernetes.client.proto.V1Networking.IngressClass value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.add(index, value);
onChanged();
} else {
itemsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* Items is the list of IngressClasses.
*
*
* repeated .k8s.io.api.networking.v1.IngressClass items = 2;
*/
public Builder addItems(
io.kubernetes.client.proto.V1Networking.IngressClass.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(builderForValue.build());
onChanged();
} else {
itemsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* Items is the list of IngressClasses.
*
*
* repeated .k8s.io.api.networking.v1.IngressClass items = 2;
*/
public Builder addItems(
int index, io.kubernetes.client.proto.V1Networking.IngressClass.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(index, builderForValue.build());
onChanged();
} else {
itemsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Items is the list of IngressClasses.
*
*
* repeated .k8s.io.api.networking.v1.IngressClass items = 2;
*/
public Builder addAllItems(
java.lang.Iterable extends io.kubernetes.client.proto.V1Networking.IngressClass>
values) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_);
onChanged();
} else {
itemsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* Items is the list of IngressClasses.
*
*
* repeated .k8s.io.api.networking.v1.IngressClass items = 2;
*/
public Builder clearItems() {
if (itemsBuilder_ == null) {
items_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
itemsBuilder_.clear();
}
return this;
}
/**
*
*
*
* Items is the list of IngressClasses.
*
*
* repeated .k8s.io.api.networking.v1.IngressClass items = 2;
*/
public Builder removeItems(int index) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.remove(index);
onChanged();
} else {
itemsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* Items is the list of IngressClasses.
*
*
* repeated .k8s.io.api.networking.v1.IngressClass items = 2;
*/
public io.kubernetes.client.proto.V1Networking.IngressClass.Builder getItemsBuilder(
int index) {
return getItemsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* Items is the list of IngressClasses.
*
*
* repeated .k8s.io.api.networking.v1.IngressClass items = 2;
*/
public io.kubernetes.client.proto.V1Networking.IngressClassOrBuilder getItemsOrBuilder(
int index) {
if (itemsBuilder_ == null) {
return items_.get(index);
} else {
return itemsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* Items is the list of IngressClasses.
*
*
* repeated .k8s.io.api.networking.v1.IngressClass items = 2;
*/
public java.util.List extends io.kubernetes.client.proto.V1Networking.IngressClassOrBuilder>
getItemsOrBuilderList() {
if (itemsBuilder_ != null) {
return itemsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(items_);
}
}
/**
*
*
*
* Items is the list of IngressClasses.
*
*
* repeated .k8s.io.api.networking.v1.IngressClass items = 2;
*/
public io.kubernetes.client.proto.V1Networking.IngressClass.Builder addItemsBuilder() {
return getItemsFieldBuilder()
.addBuilder(io.kubernetes.client.proto.V1Networking.IngressClass.getDefaultInstance());
}
/**
*
*
*
* Items is the list of IngressClasses.
*
*
* repeated .k8s.io.api.networking.v1.IngressClass items = 2;
*/
public io.kubernetes.client.proto.V1Networking.IngressClass.Builder addItemsBuilder(
int index) {
return getItemsFieldBuilder()
.addBuilder(
index, io.kubernetes.client.proto.V1Networking.IngressClass.getDefaultInstance());
}
/**
*
*
*
* Items is the list of IngressClasses.
*
*
* repeated .k8s.io.api.networking.v1.IngressClass items = 2;
*/
public java.util.List
getItemsBuilderList() {
return getItemsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.IngressClass,
io.kubernetes.client.proto.V1Networking.IngressClass.Builder,
io.kubernetes.client.proto.V1Networking.IngressClassOrBuilder>
getItemsFieldBuilder() {
if (itemsBuilder_ == null) {
itemsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.IngressClass,
io.kubernetes.client.proto.V1Networking.IngressClass.Builder,
io.kubernetes.client.proto.V1Networking.IngressClassOrBuilder>(
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.networking.v1.IngressClassList)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.networking.v1.IngressClassList)
private static final io.kubernetes.client.proto.V1Networking.IngressClassList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Networking.IngressClassList();
}
public static io.kubernetes.client.proto.V1Networking.IngressClassList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IngressClassList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IngressClassList(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.V1Networking.IngressClassList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IngressClassParametersReferenceOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.networking.v1.IngressClassParametersReference)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* APIGroup is the group for the resource being referenced. If APIGroup is
* not specified, the specified Kind must be in the core API group. For any
* other third-party types, APIGroup is required.
* +optional
*
*
* optional string aPIGroup = 1;
*/
boolean hasAPIGroup();
/**
*
*
*
* APIGroup is the group for the resource being referenced. If APIGroup is
* not specified, the specified Kind must be in the core API group. For any
* other third-party types, APIGroup is required.
* +optional
*
*
* optional string aPIGroup = 1;
*/
java.lang.String getAPIGroup();
/**
*
*
*
* APIGroup is the group for the resource being referenced. If APIGroup is
* not specified, the specified Kind must be in the core API group. For any
* other third-party types, APIGroup is required.
* +optional
*
*
* optional string aPIGroup = 1;
*/
com.google.protobuf.ByteString getAPIGroupBytes();
/**
*
*
*
* Kind is the type of resource being referenced.
*
*
* optional string kind = 2;
*/
boolean hasKind();
/**
*
*
*
* Kind is the type of resource being referenced.
*
*
* optional string kind = 2;
*/
java.lang.String getKind();
/**
*
*
*
* Kind is the type of resource being referenced.
*
*
* optional string kind = 2;
*/
com.google.protobuf.ByteString getKindBytes();
/**
*
*
*
* Name is the name of resource being referenced.
*
*
* optional string name = 3;
*/
boolean hasName();
/**
*
*
*
* Name is the name of resource being referenced.
*
*
* optional string name = 3;
*/
java.lang.String getName();
/**
*
*
*
* Name is the name of resource being referenced.
*
*
* optional string name = 3;
*/
com.google.protobuf.ByteString getNameBytes();
/**
*
*
*
* Scope represents if this refers to a cluster or namespace scoped resource.
* This may be set to "Cluster" (default) or "Namespace".
* Field can be enabled with IngressClassNamespacedParams feature gate.
* +optional
* +featureGate=IngressClassNamespacedParams
*
*
* optional string scope = 4;
*/
boolean hasScope();
/**
*
*
*
* Scope represents if this refers to a cluster or namespace scoped resource.
* This may be set to "Cluster" (default) or "Namespace".
* Field can be enabled with IngressClassNamespacedParams feature gate.
* +optional
* +featureGate=IngressClassNamespacedParams
*
*
* optional string scope = 4;
*/
java.lang.String getScope();
/**
*
*
*
* Scope represents if this refers to a cluster or namespace scoped resource.
* This may be set to "Cluster" (default) or "Namespace".
* Field can be enabled with IngressClassNamespacedParams feature gate.
* +optional
* +featureGate=IngressClassNamespacedParams
*
*
* optional string scope = 4;
*/
com.google.protobuf.ByteString getScopeBytes();
/**
*
*
*
* Namespace is the namespace of the resource being referenced. This field is
* required when scope is set to "Namespace" and must be unset when scope is set to
* "Cluster".
* +optional
* +featureGate=IngressClassNamespacedParams
*
*
* optional string namespace = 5;
*/
boolean hasNamespace();
/**
*
*
*
* Namespace is the namespace of the resource being referenced. This field is
* required when scope is set to "Namespace" and must be unset when scope is set to
* "Cluster".
* +optional
* +featureGate=IngressClassNamespacedParams
*
*
* optional string namespace = 5;
*/
java.lang.String getNamespace();
/**
*
*
*
* Namespace is the namespace of the resource being referenced. This field is
* required when scope is set to "Namespace" and must be unset when scope is set to
* "Cluster".
* +optional
* +featureGate=IngressClassNamespacedParams
*
*
* optional string namespace = 5;
*/
com.google.protobuf.ByteString getNamespaceBytes();
}
/**
*
*
*
* IngressClassParametersReference identifies an API object. This can be used
* to specify a cluster or namespace-scoped resource.
*
*
* Protobuf type {@code k8s.io.api.networking.v1.IngressClassParametersReference}
*/
public static final class IngressClassParametersReference
extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.networking.v1.IngressClassParametersReference)
IngressClassParametersReferenceOrBuilder {
private static final long serialVersionUID = 0L;
// Use IngressClassParametersReference.newBuilder() to construct.
private IngressClassParametersReference(
com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IngressClassParametersReference() {
aPIGroup_ = "";
kind_ = "";
name_ = "";
scope_ = "";
namespace_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private IngressClassParametersReference(
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;
aPIGroup_ = bs;
break;
}
case 18:
{
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
kind_ = bs;
break;
}
case 26:
{
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
name_ = bs;
break;
}
case 34:
{
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
scope_ = bs;
break;
}
case 42:
{
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000010;
namespace_ = bs;
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressClassParametersReference_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressClassParametersReference_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.IngressClassParametersReference.class,
io.kubernetes.client.proto.V1Networking.IngressClassParametersReference.Builder
.class);
}
private int bitField0_;
public static final int APIGROUP_FIELD_NUMBER = 1;
private volatile java.lang.Object aPIGroup_;
/**
*
*
*
* APIGroup is the group for the resource being referenced. If APIGroup is
* not specified, the specified Kind must be in the core API group. For any
* other third-party types, APIGroup is required.
* +optional
*
*
* optional string aPIGroup = 1;
*/
public boolean hasAPIGroup() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* APIGroup is the group for the resource being referenced. If APIGroup is
* not specified, the specified Kind must be in the core API group. For any
* other third-party types, APIGroup is required.
* +optional
*
*
* optional string aPIGroup = 1;
*/
public java.lang.String getAPIGroup() {
java.lang.Object ref = aPIGroup_;
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()) {
aPIGroup_ = s;
}
return s;
}
}
/**
*
*
*
* APIGroup is the group for the resource being referenced. If APIGroup is
* not specified, the specified Kind must be in the core API group. For any
* other third-party types, APIGroup is required.
* +optional
*
*
* optional string aPIGroup = 1;
*/
public com.google.protobuf.ByteString getAPIGroupBytes() {
java.lang.Object ref = aPIGroup_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
aPIGroup_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int KIND_FIELD_NUMBER = 2;
private volatile java.lang.Object kind_;
/**
*
*
*
* Kind is the type of resource being referenced.
*
*
* optional string kind = 2;
*/
public boolean hasKind() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* Kind is the type of resource being referenced.
*
*
* optional string kind = 2;
*/
public java.lang.String getKind() {
java.lang.Object ref = kind_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
kind_ = s;
}
return s;
}
}
/**
*
*
*
* Kind is the type of resource being referenced.
*
*
* optional string kind = 2;
*/
public com.google.protobuf.ByteString getKindBytes() {
java.lang.Object ref = kind_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
kind_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object name_;
/**
*
*
*
* Name is the name of resource being referenced.
*
*
* optional string name = 3;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
*
*
* Name is the name of resource being referenced.
*
*
* optional string name = 3;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
*
*
*
* Name is the name of resource being referenced.
*
*
* optional string name = 3;
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SCOPE_FIELD_NUMBER = 4;
private volatile java.lang.Object scope_;
/**
*
*
*
* Scope represents if this refers to a cluster or namespace scoped resource.
* This may be set to "Cluster" (default) or "Namespace".
* Field can be enabled with IngressClassNamespacedParams feature gate.
* +optional
* +featureGate=IngressClassNamespacedParams
*
*
* optional string scope = 4;
*/
public boolean hasScope() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
*
*
* Scope represents if this refers to a cluster or namespace scoped resource.
* This may be set to "Cluster" (default) or "Namespace".
* Field can be enabled with IngressClassNamespacedParams feature gate.
* +optional
* +featureGate=IngressClassNamespacedParams
*
*
* optional string scope = 4;
*/
public java.lang.String getScope() {
java.lang.Object ref = scope_;
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()) {
scope_ = s;
}
return s;
}
}
/**
*
*
*
* Scope represents if this refers to a cluster or namespace scoped resource.
* This may be set to "Cluster" (default) or "Namespace".
* Field can be enabled with IngressClassNamespacedParams feature gate.
* +optional
* +featureGate=IngressClassNamespacedParams
*
*
* optional string scope = 4;
*/
public com.google.protobuf.ByteString getScopeBytes() {
java.lang.Object ref = scope_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
scope_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAMESPACE_FIELD_NUMBER = 5;
private volatile java.lang.Object namespace_;
/**
*
*
*
* Namespace is the namespace of the resource being referenced. This field is
* required when scope is set to "Namespace" and must be unset when scope is set to
* "Cluster".
* +optional
* +featureGate=IngressClassNamespacedParams
*
*
* optional string namespace = 5;
*/
public boolean hasNamespace() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
*
*
* Namespace is the namespace of the resource being referenced. This field is
* required when scope is set to "Namespace" and must be unset when scope is set to
* "Cluster".
* +optional
* +featureGate=IngressClassNamespacedParams
*
*
* optional string namespace = 5;
*/
public java.lang.String getNamespace() {
java.lang.Object ref = namespace_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
namespace_ = s;
}
return s;
}
}
/**
*
*
*
* Namespace is the namespace of the resource being referenced. This field is
* required when scope is set to "Namespace" and must be unset when scope is set to
* "Cluster".
* +optional
* +featureGate=IngressClassNamespacedParams
*
*
* optional string namespace = 5;
*/
public com.google.protobuf.ByteString getNamespaceBytes() {
java.lang.Object ref = namespace_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
namespace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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, aPIGroup_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kind_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, scope_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, namespace_);
}
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, aPIGroup_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kind_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, scope_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, namespace_);
}
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.V1Networking.IngressClassParametersReference)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1Networking.IngressClassParametersReference other =
(io.kubernetes.client.proto.V1Networking.IngressClassParametersReference) obj;
boolean result = true;
result = result && (hasAPIGroup() == other.hasAPIGroup());
if (hasAPIGroup()) {
result = result && getAPIGroup().equals(other.getAPIGroup());
}
result = result && (hasKind() == other.hasKind());
if (hasKind()) {
result = result && getKind().equals(other.getKind());
}
result = result && (hasName() == other.hasName());
if (hasName()) {
result = result && getName().equals(other.getName());
}
result = result && (hasScope() == other.hasScope());
if (hasScope()) {
result = result && getScope().equals(other.getScope());
}
result = result && (hasNamespace() == other.hasNamespace());
if (hasNamespace()) {
result = result && getNamespace().equals(other.getNamespace());
}
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 (hasAPIGroup()) {
hash = (37 * hash) + APIGROUP_FIELD_NUMBER;
hash = (53 * hash) + getAPIGroup().hashCode();
}
if (hasKind()) {
hash = (37 * hash) + KIND_FIELD_NUMBER;
hash = (53 * hash) + getKind().hashCode();
}
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasScope()) {
hash = (37 * hash) + SCOPE_FIELD_NUMBER;
hash = (53 * hash) + getScope().hashCode();
}
if (hasNamespace()) {
hash = (37 * hash) + NAMESPACE_FIELD_NUMBER;
hash = (53 * hash) + getNamespace().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1Networking.IngressClassParametersReference parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.IngressClassParametersReference 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.V1Networking.IngressClassParametersReference parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.IngressClassParametersReference 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.V1Networking.IngressClassParametersReference parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.IngressClassParametersReference parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Networking.IngressClassParametersReference parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.IngressClassParametersReference 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.V1Networking.IngressClassParametersReference
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.IngressClassParametersReference
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.V1Networking.IngressClassParametersReference parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.IngressClassParametersReference 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.V1Networking.IngressClassParametersReference 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;
}
/**
*
*
*
* IngressClassParametersReference identifies an API object. This can be used
* to specify a cluster or namespace-scoped resource.
*
*
* Protobuf type {@code k8s.io.api.networking.v1.IngressClassParametersReference}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.networking.v1.IngressClassParametersReference)
io.kubernetes.client.proto.V1Networking.IngressClassParametersReferenceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressClassParametersReference_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressClassParametersReference_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.IngressClassParametersReference.class,
io.kubernetes.client.proto.V1Networking.IngressClassParametersReference.Builder
.class);
}
// Construct using
// io.kubernetes.client.proto.V1Networking.IngressClassParametersReference.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();
aPIGroup_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
kind_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
name_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
scope_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
namespace_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressClassParametersReference_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IngressClassParametersReference
getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1Networking.IngressClassParametersReference
.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IngressClassParametersReference build() {
io.kubernetes.client.proto.V1Networking.IngressClassParametersReference result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IngressClassParametersReference
buildPartial() {
io.kubernetes.client.proto.V1Networking.IngressClassParametersReference result =
new io.kubernetes.client.proto.V1Networking.IngressClassParametersReference(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.aPIGroup_ = aPIGroup_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.kind_ = kind_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.scope_ = scope_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.namespace_ = namespace_;
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.V1Networking.IngressClassParametersReference) {
return mergeFrom(
(io.kubernetes.client.proto.V1Networking.IngressClassParametersReference) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
io.kubernetes.client.proto.V1Networking.IngressClassParametersReference other) {
if (other
== io.kubernetes.client.proto.V1Networking.IngressClassParametersReference
.getDefaultInstance()) return this;
if (other.hasAPIGroup()) {
bitField0_ |= 0x00000001;
aPIGroup_ = other.aPIGroup_;
onChanged();
}
if (other.hasKind()) {
bitField0_ |= 0x00000002;
kind_ = other.kind_;
onChanged();
}
if (other.hasName()) {
bitField0_ |= 0x00000004;
name_ = other.name_;
onChanged();
}
if (other.hasScope()) {
bitField0_ |= 0x00000008;
scope_ = other.scope_;
onChanged();
}
if (other.hasNamespace()) {
bitField0_ |= 0x00000010;
namespace_ = other.namespace_;
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.V1Networking.IngressClassParametersReference parsedMessage =
null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1Networking.IngressClassParametersReference)
e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object aPIGroup_ = "";
/**
*
*
*
* APIGroup is the group for the resource being referenced. If APIGroup is
* not specified, the specified Kind must be in the core API group. For any
* other third-party types, APIGroup is required.
* +optional
*
*
* optional string aPIGroup = 1;
*/
public boolean hasAPIGroup() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* APIGroup is the group for the resource being referenced. If APIGroup is
* not specified, the specified Kind must be in the core API group. For any
* other third-party types, APIGroup is required.
* +optional
*
*
* optional string aPIGroup = 1;
*/
public java.lang.String getAPIGroup() {
java.lang.Object ref = aPIGroup_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
aPIGroup_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* APIGroup is the group for the resource being referenced. If APIGroup is
* not specified, the specified Kind must be in the core API group. For any
* other third-party types, APIGroup is required.
* +optional
*
*
* optional string aPIGroup = 1;
*/
public com.google.protobuf.ByteString getAPIGroupBytes() {
java.lang.Object ref = aPIGroup_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
aPIGroup_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* APIGroup is the group for the resource being referenced. If APIGroup is
* not specified, the specified Kind must be in the core API group. For any
* other third-party types, APIGroup is required.
* +optional
*
*
* optional string aPIGroup = 1;
*/
public Builder setAPIGroup(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
aPIGroup_ = value;
onChanged();
return this;
}
/**
*
*
*
* APIGroup is the group for the resource being referenced. If APIGroup is
* not specified, the specified Kind must be in the core API group. For any
* other third-party types, APIGroup is required.
* +optional
*
*
* optional string aPIGroup = 1;
*/
public Builder clearAPIGroup() {
bitField0_ = (bitField0_ & ~0x00000001);
aPIGroup_ = getDefaultInstance().getAPIGroup();
onChanged();
return this;
}
/**
*
*
*
* APIGroup is the group for the resource being referenced. If APIGroup is
* not specified, the specified Kind must be in the core API group. For any
* other third-party types, APIGroup is required.
* +optional
*
*
* optional string aPIGroup = 1;
*/
public Builder setAPIGroupBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
aPIGroup_ = value;
onChanged();
return this;
}
private java.lang.Object kind_ = "";
/**
*
*
*
* Kind is the type of resource being referenced.
*
*
* optional string kind = 2;
*/
public boolean hasKind() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* Kind is the type of resource being referenced.
*
*
* optional string kind = 2;
*/
public java.lang.String getKind() {
java.lang.Object ref = kind_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
kind_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Kind is the type of resource being referenced.
*
*
* optional string kind = 2;
*/
public com.google.protobuf.ByteString getKindBytes() {
java.lang.Object ref = kind_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
kind_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Kind is the type of resource being referenced.
*
*
* optional string kind = 2;
*/
public Builder setKind(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
kind_ = value;
onChanged();
return this;
}
/**
*
*
*
* Kind is the type of resource being referenced.
*
*
* optional string kind = 2;
*/
public Builder clearKind() {
bitField0_ = (bitField0_ & ~0x00000002);
kind_ = getDefaultInstance().getKind();
onChanged();
return this;
}
/**
*
*
*
* Kind is the type of resource being referenced.
*
*
* optional string kind = 2;
*/
public Builder setKindBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
kind_ = value;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
*
*
* Name is the name of resource being referenced.
*
*
* optional string name = 3;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
*
*
* Name is the name of resource being referenced.
*
*
* optional string name = 3;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Name is the name of resource being referenced.
*
*
* optional string name = 3;
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Name is the name of resource being referenced.
*
*
* optional string name = 3;
*/
public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
name_ = value;
onChanged();
return this;
}
/**
*
*
*
* Name is the name of resource being referenced.
*
*
* optional string name = 3;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000004);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
*
*
* Name is the name of resource being referenced.
*
*
* optional string name = 3;
*/
public Builder setNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
name_ = value;
onChanged();
return this;
}
private java.lang.Object scope_ = "";
/**
*
*
*
* Scope represents if this refers to a cluster or namespace scoped resource.
* This may be set to "Cluster" (default) or "Namespace".
* Field can be enabled with IngressClassNamespacedParams feature gate.
* +optional
* +featureGate=IngressClassNamespacedParams
*
*
* optional string scope = 4;
*/
public boolean hasScope() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
*
*
* Scope represents if this refers to a cluster or namespace scoped resource.
* This may be set to "Cluster" (default) or "Namespace".
* Field can be enabled with IngressClassNamespacedParams feature gate.
* +optional
* +featureGate=IngressClassNamespacedParams
*
*
* optional string scope = 4;
*/
public java.lang.String getScope() {
java.lang.Object ref = scope_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
scope_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Scope represents if this refers to a cluster or namespace scoped resource.
* This may be set to "Cluster" (default) or "Namespace".
* Field can be enabled with IngressClassNamespacedParams feature gate.
* +optional
* +featureGate=IngressClassNamespacedParams
*
*
* optional string scope = 4;
*/
public com.google.protobuf.ByteString getScopeBytes() {
java.lang.Object ref = scope_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
scope_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Scope represents if this refers to a cluster or namespace scoped resource.
* This may be set to "Cluster" (default) or "Namespace".
* Field can be enabled with IngressClassNamespacedParams feature gate.
* +optional
* +featureGate=IngressClassNamespacedParams
*
*
* optional string scope = 4;
*/
public Builder setScope(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
scope_ = value;
onChanged();
return this;
}
/**
*
*
*
* Scope represents if this refers to a cluster or namespace scoped resource.
* This may be set to "Cluster" (default) or "Namespace".
* Field can be enabled with IngressClassNamespacedParams feature gate.
* +optional
* +featureGate=IngressClassNamespacedParams
*
*
* optional string scope = 4;
*/
public Builder clearScope() {
bitField0_ = (bitField0_ & ~0x00000008);
scope_ = getDefaultInstance().getScope();
onChanged();
return this;
}
/**
*
*
*
* Scope represents if this refers to a cluster or namespace scoped resource.
* This may be set to "Cluster" (default) or "Namespace".
* Field can be enabled with IngressClassNamespacedParams feature gate.
* +optional
* +featureGate=IngressClassNamespacedParams
*
*
* optional string scope = 4;
*/
public Builder setScopeBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
scope_ = value;
onChanged();
return this;
}
private java.lang.Object namespace_ = "";
/**
*
*
*
* Namespace is the namespace of the resource being referenced. This field is
* required when scope is set to "Namespace" and must be unset when scope is set to
* "Cluster".
* +optional
* +featureGate=IngressClassNamespacedParams
*
*
* optional string namespace = 5;
*/
public boolean hasNamespace() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
*
*
* Namespace is the namespace of the resource being referenced. This field is
* required when scope is set to "Namespace" and must be unset when scope is set to
* "Cluster".
* +optional
* +featureGate=IngressClassNamespacedParams
*
*
* optional string namespace = 5;
*/
public java.lang.String getNamespace() {
java.lang.Object ref = namespace_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
namespace_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Namespace is the namespace of the resource being referenced. This field is
* required when scope is set to "Namespace" and must be unset when scope is set to
* "Cluster".
* +optional
* +featureGate=IngressClassNamespacedParams
*
*
* optional string namespace = 5;
*/
public com.google.protobuf.ByteString getNamespaceBytes() {
java.lang.Object ref = namespace_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
namespace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Namespace is the namespace of the resource being referenced. This field is
* required when scope is set to "Namespace" and must be unset when scope is set to
* "Cluster".
* +optional
* +featureGate=IngressClassNamespacedParams
*
*
* optional string namespace = 5;
*/
public Builder setNamespace(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
namespace_ = value;
onChanged();
return this;
}
/**
*
*
*
* Namespace is the namespace of the resource being referenced. This field is
* required when scope is set to "Namespace" and must be unset when scope is set to
* "Cluster".
* +optional
* +featureGate=IngressClassNamespacedParams
*
*
* optional string namespace = 5;
*/
public Builder clearNamespace() {
bitField0_ = (bitField0_ & ~0x00000010);
namespace_ = getDefaultInstance().getNamespace();
onChanged();
return this;
}
/**
*
*
*
* Namespace is the namespace of the resource being referenced. This field is
* required when scope is set to "Namespace" and must be unset when scope is set to
* "Cluster".
* +optional
* +featureGate=IngressClassNamespacedParams
*
*
* optional string namespace = 5;
*/
public Builder setNamespaceBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
namespace_ = 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.networking.v1.IngressClassParametersReference)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.networking.v1.IngressClassParametersReference)
private static final io.kubernetes.client.proto.V1Networking.IngressClassParametersReference
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new io.kubernetes.client.proto.V1Networking.IngressClassParametersReference();
}
public static io.kubernetes.client.proto.V1Networking.IngressClassParametersReference
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IngressClassParametersReference parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IngressClassParametersReference(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.V1Networking.IngressClassParametersReference
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IngressClassSpecOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.networking.v1.IngressClassSpec)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Controller refers to the name of the controller that should handle this
* class. This allows for different "flavors" that are controlled by the
* same controller. For example, you may have different Parameters for the
* same implementing controller. This should be specified as a
* domain-prefixed path no more than 250 characters in length, e.g.
* "acme.io/ingress-controller". This field is immutable.
*
*
* optional string controller = 1;
*/
boolean hasController();
/**
*
*
*
* Controller refers to the name of the controller that should handle this
* class. This allows for different "flavors" that are controlled by the
* same controller. For example, you may have different Parameters for the
* same implementing controller. This should be specified as a
* domain-prefixed path no more than 250 characters in length, e.g.
* "acme.io/ingress-controller". This field is immutable.
*
*
* optional string controller = 1;
*/
java.lang.String getController();
/**
*
*
*
* Controller refers to the name of the controller that should handle this
* class. This allows for different "flavors" that are controlled by the
* same controller. For example, you may have different Parameters for the
* same implementing controller. This should be specified as a
* domain-prefixed path no more than 250 characters in length, e.g.
* "acme.io/ingress-controller". This field is immutable.
*
*
* optional string controller = 1;
*/
com.google.protobuf.ByteString getControllerBytes();
/**
*
*
*
* Parameters is a link to a custom resource containing additional
* configuration for the controller. This is optional if the controller does
* not require extra parameters.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressClassParametersReference parameters = 2;
*
*/
boolean hasParameters();
/**
*
*
*
* Parameters is a link to a custom resource containing additional
* configuration for the controller. This is optional if the controller does
* not require extra parameters.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressClassParametersReference parameters = 2;
*
*/
io.kubernetes.client.proto.V1Networking.IngressClassParametersReference getParameters();
/**
*
*
*
* Parameters is a link to a custom resource containing additional
* configuration for the controller. This is optional if the controller does
* not require extra parameters.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressClassParametersReference parameters = 2;
*
*/
io.kubernetes.client.proto.V1Networking.IngressClassParametersReferenceOrBuilder
getParametersOrBuilder();
}
/**
*
*
*
* IngressClassSpec provides information about the class of an Ingress.
*
*
* Protobuf type {@code k8s.io.api.networking.v1.IngressClassSpec}
*/
public static final class IngressClassSpec extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.networking.v1.IngressClassSpec)
IngressClassSpecOrBuilder {
private static final long serialVersionUID = 0L;
// Use IngressClassSpec.newBuilder() to construct.
private IngressClassSpec(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IngressClassSpec() {
controller_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private IngressClassSpec(
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;
controller_ = bs;
break;
}
case 18:
{
io.kubernetes.client.proto.V1Networking.IngressClassParametersReference.Builder
subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = parameters_.toBuilder();
}
parameters_ =
input.readMessage(
io.kubernetes.client.proto.V1Networking.IngressClassParametersReference
.PARSER,
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(parameters_);
parameters_ = 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.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressClassSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressClassSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.IngressClassSpec.class,
io.kubernetes.client.proto.V1Networking.IngressClassSpec.Builder.class);
}
private int bitField0_;
public static final int CONTROLLER_FIELD_NUMBER = 1;
private volatile java.lang.Object controller_;
/**
*
*
*
* Controller refers to the name of the controller that should handle this
* class. This allows for different "flavors" that are controlled by the
* same controller. For example, you may have different Parameters for the
* same implementing controller. This should be specified as a
* domain-prefixed path no more than 250 characters in length, e.g.
* "acme.io/ingress-controller". This field is immutable.
*
*
* optional string controller = 1;
*/
public boolean hasController() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* Controller refers to the name of the controller that should handle this
* class. This allows for different "flavors" that are controlled by the
* same controller. For example, you may have different Parameters for the
* same implementing controller. This should be specified as a
* domain-prefixed path no more than 250 characters in length, e.g.
* "acme.io/ingress-controller". This field is immutable.
*
*
* optional string controller = 1;
*/
public java.lang.String getController() {
java.lang.Object ref = controller_;
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()) {
controller_ = s;
}
return s;
}
}
/**
*
*
*
* Controller refers to the name of the controller that should handle this
* class. This allows for different "flavors" that are controlled by the
* same controller. For example, you may have different Parameters for the
* same implementing controller. This should be specified as a
* domain-prefixed path no more than 250 characters in length, e.g.
* "acme.io/ingress-controller". This field is immutable.
*
*
* optional string controller = 1;
*/
public com.google.protobuf.ByteString getControllerBytes() {
java.lang.Object ref = controller_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
controller_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PARAMETERS_FIELD_NUMBER = 2;
private io.kubernetes.client.proto.V1Networking.IngressClassParametersReference parameters_;
/**
*
*
*
* Parameters is a link to a custom resource containing additional
* configuration for the controller. This is optional if the controller does
* not require extra parameters.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressClassParametersReference parameters = 2;
*
*/
public boolean hasParameters() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* Parameters is a link to a custom resource containing additional
* configuration for the controller. This is optional if the controller does
* not require extra parameters.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressClassParametersReference parameters = 2;
*
*/
public io.kubernetes.client.proto.V1Networking.IngressClassParametersReference getParameters() {
return parameters_ == null
? io.kubernetes.client.proto.V1Networking.IngressClassParametersReference
.getDefaultInstance()
: parameters_;
}
/**
*
*
*
* Parameters is a link to a custom resource containing additional
* configuration for the controller. This is optional if the controller does
* not require extra parameters.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressClassParametersReference parameters = 2;
*
*/
public io.kubernetes.client.proto.V1Networking.IngressClassParametersReferenceOrBuilder
getParametersOrBuilder() {
return parameters_ == null
? io.kubernetes.client.proto.V1Networking.IngressClassParametersReference
.getDefaultInstance()
: parameters_;
}
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, controller_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getParameters());
}
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, controller_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getParameters());
}
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.V1Networking.IngressClassSpec)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1Networking.IngressClassSpec other =
(io.kubernetes.client.proto.V1Networking.IngressClassSpec) obj;
boolean result = true;
result = result && (hasController() == other.hasController());
if (hasController()) {
result = result && getController().equals(other.getController());
}
result = result && (hasParameters() == other.hasParameters());
if (hasParameters()) {
result = result && getParameters().equals(other.getParameters());
}
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 (hasController()) {
hash = (37 * hash) + CONTROLLER_FIELD_NUMBER;
hash = (53 * hash) + getController().hashCode();
}
if (hasParameters()) {
hash = (37 * hash) + PARAMETERS_FIELD_NUMBER;
hash = (53 * hash) + getParameters().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1Networking.IngressClassSpec parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.IngressClassSpec 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.V1Networking.IngressClassSpec parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.IngressClassSpec 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.V1Networking.IngressClassSpec parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.IngressClassSpec parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Networking.IngressClassSpec parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.IngressClassSpec 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.V1Networking.IngressClassSpec parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.IngressClassSpec 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.V1Networking.IngressClassSpec parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.IngressClassSpec 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.V1Networking.IngressClassSpec 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;
}
/**
*
*
*
* IngressClassSpec provides information about the class of an Ingress.
*
*
* Protobuf type {@code k8s.io.api.networking.v1.IngressClassSpec}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.networking.v1.IngressClassSpec)
io.kubernetes.client.proto.V1Networking.IngressClassSpecOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressClassSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressClassSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.IngressClassSpec.class,
io.kubernetes.client.proto.V1Networking.IngressClassSpec.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1Networking.IngressClassSpec.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getParametersFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
controller_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (parametersBuilder_ == null) {
parameters_ = null;
} else {
parametersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressClassSpec_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IngressClassSpec getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1Networking.IngressClassSpec.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IngressClassSpec build() {
io.kubernetes.client.proto.V1Networking.IngressClassSpec result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IngressClassSpec buildPartial() {
io.kubernetes.client.proto.V1Networking.IngressClassSpec result =
new io.kubernetes.client.proto.V1Networking.IngressClassSpec(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.controller_ = controller_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (parametersBuilder_ == null) {
result.parameters_ = parameters_;
} else {
result.parameters_ = parametersBuilder_.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.V1Networking.IngressClassSpec) {
return mergeFrom((io.kubernetes.client.proto.V1Networking.IngressClassSpec) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1Networking.IngressClassSpec other) {
if (other == io.kubernetes.client.proto.V1Networking.IngressClassSpec.getDefaultInstance())
return this;
if (other.hasController()) {
bitField0_ |= 0x00000001;
controller_ = other.controller_;
onChanged();
}
if (other.hasParameters()) {
mergeParameters(other.getParameters());
}
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.V1Networking.IngressClassSpec parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1Networking.IngressClassSpec) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object controller_ = "";
/**
*
*
*
* Controller refers to the name of the controller that should handle this
* class. This allows for different "flavors" that are controlled by the
* same controller. For example, you may have different Parameters for the
* same implementing controller. This should be specified as a
* domain-prefixed path no more than 250 characters in length, e.g.
* "acme.io/ingress-controller". This field is immutable.
*
*
* optional string controller = 1;
*/
public boolean hasController() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* Controller refers to the name of the controller that should handle this
* class. This allows for different "flavors" that are controlled by the
* same controller. For example, you may have different Parameters for the
* same implementing controller. This should be specified as a
* domain-prefixed path no more than 250 characters in length, e.g.
* "acme.io/ingress-controller". This field is immutable.
*
*
* optional string controller = 1;
*/
public java.lang.String getController() {
java.lang.Object ref = controller_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
controller_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Controller refers to the name of the controller that should handle this
* class. This allows for different "flavors" that are controlled by the
* same controller. For example, you may have different Parameters for the
* same implementing controller. This should be specified as a
* domain-prefixed path no more than 250 characters in length, e.g.
* "acme.io/ingress-controller". This field is immutable.
*
*
* optional string controller = 1;
*/
public com.google.protobuf.ByteString getControllerBytes() {
java.lang.Object ref = controller_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
controller_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Controller refers to the name of the controller that should handle this
* class. This allows for different "flavors" that are controlled by the
* same controller. For example, you may have different Parameters for the
* same implementing controller. This should be specified as a
* domain-prefixed path no more than 250 characters in length, e.g.
* "acme.io/ingress-controller". This field is immutable.
*
*
* optional string controller = 1;
*/
public Builder setController(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
controller_ = value;
onChanged();
return this;
}
/**
*
*
*
* Controller refers to the name of the controller that should handle this
* class. This allows for different "flavors" that are controlled by the
* same controller. For example, you may have different Parameters for the
* same implementing controller. This should be specified as a
* domain-prefixed path no more than 250 characters in length, e.g.
* "acme.io/ingress-controller". This field is immutable.
*
*
* optional string controller = 1;
*/
public Builder clearController() {
bitField0_ = (bitField0_ & ~0x00000001);
controller_ = getDefaultInstance().getController();
onChanged();
return this;
}
/**
*
*
*
* Controller refers to the name of the controller that should handle this
* class. This allows for different "flavors" that are controlled by the
* same controller. For example, you may have different Parameters for the
* same implementing controller. This should be specified as a
* domain-prefixed path no more than 250 characters in length, e.g.
* "acme.io/ingress-controller". This field is immutable.
*
*
* optional string controller = 1;
*/
public Builder setControllerBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
controller_ = value;
onChanged();
return this;
}
private io.kubernetes.client.proto.V1Networking.IngressClassParametersReference parameters_ =
null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.IngressClassParametersReference,
io.kubernetes.client.proto.V1Networking.IngressClassParametersReference.Builder,
io.kubernetes.client.proto.V1Networking.IngressClassParametersReferenceOrBuilder>
parametersBuilder_;
/**
*
*
*
* Parameters is a link to a custom resource containing additional
* configuration for the controller. This is optional if the controller does
* not require extra parameters.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressClassParametersReference parameters = 2;
*
*/
public boolean hasParameters() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* Parameters is a link to a custom resource containing additional
* configuration for the controller. This is optional if the controller does
* not require extra parameters.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressClassParametersReference parameters = 2;
*
*/
public io.kubernetes.client.proto.V1Networking.IngressClassParametersReference
getParameters() {
if (parametersBuilder_ == null) {
return parameters_ == null
? io.kubernetes.client.proto.V1Networking.IngressClassParametersReference
.getDefaultInstance()
: parameters_;
} else {
return parametersBuilder_.getMessage();
}
}
/**
*
*
*
* Parameters is a link to a custom resource containing additional
* configuration for the controller. This is optional if the controller does
* not require extra parameters.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressClassParametersReference parameters = 2;
*
*/
public Builder setParameters(
io.kubernetes.client.proto.V1Networking.IngressClassParametersReference value) {
if (parametersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
parameters_ = value;
onChanged();
} else {
parametersBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* Parameters is a link to a custom resource containing additional
* configuration for the controller. This is optional if the controller does
* not require extra parameters.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressClassParametersReference parameters = 2;
*
*/
public Builder setParameters(
io.kubernetes.client.proto.V1Networking.IngressClassParametersReference.Builder
builderForValue) {
if (parametersBuilder_ == null) {
parameters_ = builderForValue.build();
onChanged();
} else {
parametersBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* Parameters is a link to a custom resource containing additional
* configuration for the controller. This is optional if the controller does
* not require extra parameters.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressClassParametersReference parameters = 2;
*
*/
public Builder mergeParameters(
io.kubernetes.client.proto.V1Networking.IngressClassParametersReference value) {
if (parametersBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)
&& parameters_ != null
&& parameters_
!= io.kubernetes.client.proto.V1Networking.IngressClassParametersReference
.getDefaultInstance()) {
parameters_ =
io.kubernetes.client.proto.V1Networking.IngressClassParametersReference.newBuilder(
parameters_)
.mergeFrom(value)
.buildPartial();
} else {
parameters_ = value;
}
onChanged();
} else {
parametersBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* Parameters is a link to a custom resource containing additional
* configuration for the controller. This is optional if the controller does
* not require extra parameters.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressClassParametersReference parameters = 2;
*
*/
public Builder clearParameters() {
if (parametersBuilder_ == null) {
parameters_ = null;
onChanged();
} else {
parametersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
*
*
*
* Parameters is a link to a custom resource containing additional
* configuration for the controller. This is optional if the controller does
* not require extra parameters.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressClassParametersReference parameters = 2;
*
*/
public io.kubernetes.client.proto.V1Networking.IngressClassParametersReference.Builder
getParametersBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getParametersFieldBuilder().getBuilder();
}
/**
*
*
*
* Parameters is a link to a custom resource containing additional
* configuration for the controller. This is optional if the controller does
* not require extra parameters.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressClassParametersReference parameters = 2;
*
*/
public io.kubernetes.client.proto.V1Networking.IngressClassParametersReferenceOrBuilder
getParametersOrBuilder() {
if (parametersBuilder_ != null) {
return parametersBuilder_.getMessageOrBuilder();
} else {
return parameters_ == null
? io.kubernetes.client.proto.V1Networking.IngressClassParametersReference
.getDefaultInstance()
: parameters_;
}
}
/**
*
*
*
* Parameters is a link to a custom resource containing additional
* configuration for the controller. This is optional if the controller does
* not require extra parameters.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressClassParametersReference parameters = 2;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.IngressClassParametersReference,
io.kubernetes.client.proto.V1Networking.IngressClassParametersReference.Builder,
io.kubernetes.client.proto.V1Networking.IngressClassParametersReferenceOrBuilder>
getParametersFieldBuilder() {
if (parametersBuilder_ == null) {
parametersBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.IngressClassParametersReference,
io.kubernetes.client.proto.V1Networking.IngressClassParametersReference.Builder,
io.kubernetes.client.proto.V1Networking.IngressClassParametersReferenceOrBuilder>(
getParameters(), getParentForChildren(), isClean());
parameters_ = null;
}
return parametersBuilder_;
}
@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.networking.v1.IngressClassSpec)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.networking.v1.IngressClassSpec)
private static final io.kubernetes.client.proto.V1Networking.IngressClassSpec DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Networking.IngressClassSpec();
}
public static io.kubernetes.client.proto.V1Networking.IngressClassSpec getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IngressClassSpec parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IngressClassSpec(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.V1Networking.IngressClassSpec getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IngressListOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.networking.v1.IngressList)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
boolean hasMetadata();
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
io.kubernetes.client.proto.Meta.ListMeta getMetadata();
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder();
/**
*
*
*
* Items is the list of Ingress.
*
*
* repeated .k8s.io.api.networking.v1.Ingress items = 2;
*/
java.util.List getItemsList();
/**
*
*
*
* Items is the list of Ingress.
*
*
* repeated .k8s.io.api.networking.v1.Ingress items = 2;
*/
io.kubernetes.client.proto.V1Networking.Ingress getItems(int index);
/**
*
*
*
* Items is the list of Ingress.
*
*
* repeated .k8s.io.api.networking.v1.Ingress items = 2;
*/
int getItemsCount();
/**
*
*
*
* Items is the list of Ingress.
*
*
* repeated .k8s.io.api.networking.v1.Ingress items = 2;
*/
java.util.List extends io.kubernetes.client.proto.V1Networking.IngressOrBuilder>
getItemsOrBuilderList();
/**
*
*
*
* Items is the list of Ingress.
*
*
* repeated .k8s.io.api.networking.v1.Ingress items = 2;
*/
io.kubernetes.client.proto.V1Networking.IngressOrBuilder getItemsOrBuilder(int index);
}
/**
*
*
*
* IngressList is a collection of Ingress.
*
*
* Protobuf type {@code k8s.io.api.networking.v1.IngressList}
*/
public static final class IngressList extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.networking.v1.IngressList)
IngressListOrBuilder {
private static final long serialVersionUID = 0L;
// Use IngressList.newBuilder() to construct.
private IngressList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IngressList() {
items_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private IngressList(
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.ListMeta.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = metadata_.toBuilder();
}
metadata_ =
input.readMessage(
io.kubernetes.client.proto.Meta.ListMeta.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18:
{
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
items_ =
new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
items_.add(
input.readMessage(
io.kubernetes.client.proto.V1Networking.Ingress.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)) {
items_ = java.util.Collections.unmodifiableList(items_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.IngressList.class,
io.kubernetes.client.proto.V1Networking.IngressList.Builder.class);
}
private int bitField0_;
public static final int METADATA_FIELD_NUMBER = 1;
private io.kubernetes.client.proto.Meta.ListMeta metadata_;
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public boolean hasMetadata() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ListMeta getMetadata() {
return metadata_ == null
? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()
: metadata_;
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() {
return metadata_ == null
? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()
: metadata_;
}
public static final int ITEMS_FIELD_NUMBER = 2;
private java.util.List items_;
/**
*
*
*
* Items is the list of Ingress.
*
*
* repeated .k8s.io.api.networking.v1.Ingress items = 2;
*/
public java.util.List getItemsList() {
return items_;
}
/**
*
*
*
* Items is the list of Ingress.
*
*
* repeated .k8s.io.api.networking.v1.Ingress items = 2;
*/
public java.util.List extends io.kubernetes.client.proto.V1Networking.IngressOrBuilder>
getItemsOrBuilderList() {
return items_;
}
/**
*
*
*
* Items is the list of Ingress.
*
*
* repeated .k8s.io.api.networking.v1.Ingress items = 2;
*/
public int getItemsCount() {
return items_.size();
}
/**
*
*
*
* Items is the list of Ingress.
*
*
* repeated .k8s.io.api.networking.v1.Ingress items = 2;
*/
public io.kubernetes.client.proto.V1Networking.Ingress getItems(int index) {
return items_.get(index);
}
/**
*
*
*
* Items is the list of Ingress.
*
*
* repeated .k8s.io.api.networking.v1.Ingress items = 2;
*/
public io.kubernetes.client.proto.V1Networking.IngressOrBuilder getItemsOrBuilder(int index) {
return items_.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)) {
output.writeMessage(1, getMetadata());
}
for (int i = 0; i < items_.size(); i++) {
output.writeMessage(2, items_.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.CodedOutputStream.computeMessageSize(1, getMetadata());
}
for (int i = 0; i < items_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, items_.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.V1Networking.IngressList)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1Networking.IngressList other =
(io.kubernetes.client.proto.V1Networking.IngressList) obj;
boolean result = true;
result = result && (hasMetadata() == other.hasMetadata());
if (hasMetadata()) {
result = result && getMetadata().equals(other.getMetadata());
}
result = result && getItemsList().equals(other.getItemsList());
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 (getItemsCount() > 0) {
hash = (37 * hash) + ITEMS_FIELD_NUMBER;
hash = (53 * hash) + getItemsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1Networking.IngressList parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.IngressList 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.V1Networking.IngressList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.IngressList 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.V1Networking.IngressList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.IngressList parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Networking.IngressList parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.IngressList 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.V1Networking.IngressList parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.IngressList 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.V1Networking.IngressList parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.IngressList 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.V1Networking.IngressList 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;
}
/**
*
*
*
* IngressList is a collection of Ingress.
*
*
* Protobuf type {@code k8s.io.api.networking.v1.IngressList}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.networking.v1.IngressList)
io.kubernetes.client.proto.V1Networking.IngressListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.IngressList.class,
io.kubernetes.client.proto.V1Networking.IngressList.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1Networking.IngressList.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();
getItemsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (itemsBuilder_ == null) {
items_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
itemsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressList_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IngressList getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1Networking.IngressList.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IngressList build() {
io.kubernetes.client.proto.V1Networking.IngressList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IngressList buildPartial() {
io.kubernetes.client.proto.V1Networking.IngressList result =
new io.kubernetes.client.proto.V1Networking.IngressList(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 (itemsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
items_ = java.util.Collections.unmodifiableList(items_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.items_ = items_;
} else {
result.items_ = itemsBuilder_.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.V1Networking.IngressList) {
return mergeFrom((io.kubernetes.client.proto.V1Networking.IngressList) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1Networking.IngressList other) {
if (other == io.kubernetes.client.proto.V1Networking.IngressList.getDefaultInstance())
return this;
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
if (itemsBuilder_ == null) {
if (!other.items_.isEmpty()) {
if (items_.isEmpty()) {
items_ = other.items_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureItemsIsMutable();
items_.addAll(other.items_);
}
onChanged();
}
} else {
if (!other.items_.isEmpty()) {
if (itemsBuilder_.isEmpty()) {
itemsBuilder_.dispose();
itemsBuilder_ = null;
items_ = other.items_;
bitField0_ = (bitField0_ & ~0x00000002);
itemsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getItemsFieldBuilder()
: null;
} else {
itemsBuilder_.addAllMessages(other.items_);
}
}
}
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.V1Networking.IngressList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1Networking.IngressList) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.kubernetes.client.proto.Meta.ListMeta metadata_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ListMeta,
io.kubernetes.client.proto.Meta.ListMeta.Builder,
io.kubernetes.client.proto.Meta.ListMetaOrBuilder>
metadataBuilder_;
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public boolean hasMetadata() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ListMeta getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null
? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()
: metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ListMeta value) {
if (metadataBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)
&& metadata_ != null
&& metadata_ != io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()) {
metadata_ =
io.kubernetes.client.proto.Meta.ListMeta.newBuilder(metadata_)
.mergeFrom(value)
.buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ListMeta.Builder getMetadataBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null
? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()
: metadata_;
}
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ListMeta,
io.kubernetes.client.proto.Meta.ListMeta.Builder,
io.kubernetes.client.proto.Meta.ListMetaOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ListMeta,
io.kubernetes.client.proto.Meta.ListMeta.Builder,
io.kubernetes.client.proto.Meta.ListMetaOrBuilder>(
getMetadata(), getParentForChildren(), isClean());
metadata_ = null;
}
return metadataBuilder_;
}
private java.util.List items_ =
java.util.Collections.emptyList();
private void ensureItemsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
items_ = new java.util.ArrayList(items_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.Ingress,
io.kubernetes.client.proto.V1Networking.Ingress.Builder,
io.kubernetes.client.proto.V1Networking.IngressOrBuilder>
itemsBuilder_;
/**
*
*
*
* Items is the list of Ingress.
*
*
* repeated .k8s.io.api.networking.v1.Ingress items = 2;
*/
public java.util.List getItemsList() {
if (itemsBuilder_ == null) {
return java.util.Collections.unmodifiableList(items_);
} else {
return itemsBuilder_.getMessageList();
}
}
/**
*
*
*
* Items is the list of Ingress.
*
*
* repeated .k8s.io.api.networking.v1.Ingress items = 2;
*/
public int getItemsCount() {
if (itemsBuilder_ == null) {
return items_.size();
} else {
return itemsBuilder_.getCount();
}
}
/**
*
*
*
* Items is the list of Ingress.
*
*
* repeated .k8s.io.api.networking.v1.Ingress items = 2;
*/
public io.kubernetes.client.proto.V1Networking.Ingress getItems(int index) {
if (itemsBuilder_ == null) {
return items_.get(index);
} else {
return itemsBuilder_.getMessage(index);
}
}
/**
*
*
*
* Items is the list of Ingress.
*
*
* repeated .k8s.io.api.networking.v1.Ingress items = 2;
*/
public Builder setItems(int index, io.kubernetes.client.proto.V1Networking.Ingress value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.set(index, value);
onChanged();
} else {
itemsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* Items is the list of Ingress.
*
*
* repeated .k8s.io.api.networking.v1.Ingress items = 2;
*/
public Builder setItems(
int index, io.kubernetes.client.proto.V1Networking.Ingress.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.set(index, builderForValue.build());
onChanged();
} else {
itemsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Items is the list of Ingress.
*
*
* repeated .k8s.io.api.networking.v1.Ingress items = 2;
*/
public Builder addItems(io.kubernetes.client.proto.V1Networking.Ingress value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.add(value);
onChanged();
} else {
itemsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* Items is the list of Ingress.
*
*
* repeated .k8s.io.api.networking.v1.Ingress items = 2;
*/
public Builder addItems(int index, io.kubernetes.client.proto.V1Networking.Ingress value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.add(index, value);
onChanged();
} else {
itemsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* Items is the list of Ingress.
*
*
* repeated .k8s.io.api.networking.v1.Ingress items = 2;
*/
public Builder addItems(
io.kubernetes.client.proto.V1Networking.Ingress.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(builderForValue.build());
onChanged();
} else {
itemsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* Items is the list of Ingress.
*
*
* repeated .k8s.io.api.networking.v1.Ingress items = 2;
*/
public Builder addItems(
int index, io.kubernetes.client.proto.V1Networking.Ingress.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(index, builderForValue.build());
onChanged();
} else {
itemsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Items is the list of Ingress.
*
*
* repeated .k8s.io.api.networking.v1.Ingress items = 2;
*/
public Builder addAllItems(
java.lang.Iterable extends io.kubernetes.client.proto.V1Networking.Ingress> values) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_);
onChanged();
} else {
itemsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* Items is the list of Ingress.
*
*
* repeated .k8s.io.api.networking.v1.Ingress items = 2;
*/
public Builder clearItems() {
if (itemsBuilder_ == null) {
items_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
itemsBuilder_.clear();
}
return this;
}
/**
*
*
*
* Items is the list of Ingress.
*
*
* repeated .k8s.io.api.networking.v1.Ingress items = 2;
*/
public Builder removeItems(int index) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.remove(index);
onChanged();
} else {
itemsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* Items is the list of Ingress.
*
*
* repeated .k8s.io.api.networking.v1.Ingress items = 2;
*/
public io.kubernetes.client.proto.V1Networking.Ingress.Builder getItemsBuilder(int index) {
return getItemsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* Items is the list of Ingress.
*
*
* repeated .k8s.io.api.networking.v1.Ingress items = 2;
*/
public io.kubernetes.client.proto.V1Networking.IngressOrBuilder getItemsOrBuilder(int index) {
if (itemsBuilder_ == null) {
return items_.get(index);
} else {
return itemsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* Items is the list of Ingress.
*
*
* repeated .k8s.io.api.networking.v1.Ingress items = 2;
*/
public java.util.List extends io.kubernetes.client.proto.V1Networking.IngressOrBuilder>
getItemsOrBuilderList() {
if (itemsBuilder_ != null) {
return itemsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(items_);
}
}
/**
*
*
*
* Items is the list of Ingress.
*
*
* repeated .k8s.io.api.networking.v1.Ingress items = 2;
*/
public io.kubernetes.client.proto.V1Networking.Ingress.Builder addItemsBuilder() {
return getItemsFieldBuilder()
.addBuilder(io.kubernetes.client.proto.V1Networking.Ingress.getDefaultInstance());
}
/**
*
*
*
* Items is the list of Ingress.
*
*
* repeated .k8s.io.api.networking.v1.Ingress items = 2;
*/
public io.kubernetes.client.proto.V1Networking.Ingress.Builder addItemsBuilder(int index) {
return getItemsFieldBuilder()
.addBuilder(
index, io.kubernetes.client.proto.V1Networking.Ingress.getDefaultInstance());
}
/**
*
*
*
* Items is the list of Ingress.
*
*
* repeated .k8s.io.api.networking.v1.Ingress items = 2;
*/
public java.util.List
getItemsBuilderList() {
return getItemsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.Ingress,
io.kubernetes.client.proto.V1Networking.Ingress.Builder,
io.kubernetes.client.proto.V1Networking.IngressOrBuilder>
getItemsFieldBuilder() {
if (itemsBuilder_ == null) {
itemsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.Ingress,
io.kubernetes.client.proto.V1Networking.Ingress.Builder,
io.kubernetes.client.proto.V1Networking.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.networking.v1.IngressList)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.networking.v1.IngressList)
private static final io.kubernetes.client.proto.V1Networking.IngressList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Networking.IngressList();
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.IngressList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IngressRuleOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.networking.v1.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 RFC 3986:
* 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.
* Host can be "precise" which is a domain name without the terminating dot of
* a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name
* prefixed with a single wildcard label (e.g. "*.foo.com").
* The wildcard character '*' must appear by itself as the first DNS label and
* matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*").
* Requests will be matched against the Host field in the following way:
* 1. If Host is precise, the request matches this rule if the http host header is equal to Host.
* 2. If Host is a wildcard, then the request matches this rule if the http host header
* is to equal to the suffix (removing the first label) of the wildcard rule.
* +optional
*
*
* optional string host = 1;
*/
boolean hasHost();
/**
*
*
*
* 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 RFC 3986:
* 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.
* Host can be "precise" which is a domain name without the terminating dot of
* a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name
* prefixed with a single wildcard label (e.g. "*.foo.com").
* The wildcard character '*' must appear by itself as the first DNS label and
* matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*").
* Requests will be matched against the Host field in the following way:
* 1. If Host is precise, the request matches this rule if the http host header is equal to Host.
* 2. If Host is a wildcard, then the request matches this rule if the http host header
* is to equal to the suffix (removing the first label) of the wildcard rule.
* +optional
*
*
* optional string host = 1;
*/
java.lang.String getHost();
/**
*
*
*
* 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 RFC 3986:
* 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.
* Host can be "precise" which is a domain name without the terminating dot of
* a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name
* prefixed with a single wildcard label (e.g. "*.foo.com").
* The wildcard character '*' must appear by itself as the first DNS label and
* matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*").
* Requests will be matched against the Host field in the following way:
* 1. If Host is precise, the request matches this rule if the http host header is equal to Host.
* 2. If Host is a wildcard, then the request matches this rule if the http host header
* is to equal to the suffix (removing the first label) of the wildcard rule.
* +optional
*
*
* optional string host = 1;
*/
com.google.protobuf.ByteString getHostBytes();
/**
*
*
*
* 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.networking.v1.IngressRuleValue ingressRuleValue = 2;
*/
boolean hasIngressRuleValue();
/**
*
*
*
* 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.networking.v1.IngressRuleValue ingressRuleValue = 2;
*/
io.kubernetes.client.proto.V1Networking.IngressRuleValue getIngressRuleValue();
/**
*
*
*
* 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.networking.v1.IngressRuleValue ingressRuleValue = 2;
*/
io.kubernetes.client.proto.V1Networking.IngressRuleValueOrBuilder
getIngressRuleValueOrBuilder();
}
/**
*
*
*
* 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.networking.v1.IngressRule}
*/
public static final class IngressRule extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.networking.v1.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.V1Networking.IngressRuleValue.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = ingressRuleValue_.toBuilder();
}
ingressRuleValue_ =
input.readMessage(
io.kubernetes.client.proto.V1Networking.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.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressRule_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressRule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.IngressRule.class,
io.kubernetes.client.proto.V1Networking.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 RFC 3986:
* 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.
* Host can be "precise" which is a domain name without the terminating dot of
* a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name
* prefixed with a single wildcard label (e.g. "*.foo.com").
* The wildcard character '*' must appear by itself as the first DNS label and
* matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*").
* Requests will be matched against the Host field in the following way:
* 1. If Host is precise, the request matches this rule if the http host header is equal to Host.
* 2. If Host is a wildcard, then the request matches this rule if the http host header
* is to equal to the suffix (removing the first label) of the wildcard rule.
* +optional
*
*
* optional string host = 1;
*/
public boolean hasHost() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* 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 RFC 3986:
* 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.
* Host can be "precise" which is a domain name without the terminating dot of
* a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name
* prefixed with a single wildcard label (e.g. "*.foo.com").
* The wildcard character '*' must appear by itself as the first DNS label and
* matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*").
* Requests will be matched against the Host field in the following way:
* 1. If Host is precise, the request matches this rule if the http host header is equal to Host.
* 2. If Host is a wildcard, then the request matches this rule if the http host header
* is to equal to the suffix (removing the first label) of the wildcard rule.
* +optional
*
*
* optional string host = 1;
*/
public java.lang.String getHost() {
java.lang.Object ref = host_;
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()) {
host_ = s;
}
return s;
}
}
/**
*
*
*
* 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 RFC 3986:
* 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.
* Host can be "precise" which is a domain name without the terminating dot of
* a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name
* prefixed with a single wildcard label (e.g. "*.foo.com").
* The wildcard character '*' must appear by itself as the first DNS label and
* matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*").
* Requests will be matched against the Host field in the following way:
* 1. If Host is precise, the request matches this rule if the http host header is equal to Host.
* 2. If Host is a wildcard, then the request matches this rule if the http host header
* is to equal to the suffix (removing the first label) of the wildcard rule.
* +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.V1Networking.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
*
*
* optional .k8s.io.api.networking.v1.IngressRuleValue ingressRuleValue = 2;
*/
public boolean hasIngressRuleValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* 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.networking.v1.IngressRuleValue ingressRuleValue = 2;
*/
public io.kubernetes.client.proto.V1Networking.IngressRuleValue getIngressRuleValue() {
return ingressRuleValue_ == null
? io.kubernetes.client.proto.V1Networking.IngressRuleValue.getDefaultInstance()
: 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
*
*
* optional .k8s.io.api.networking.v1.IngressRuleValue ingressRuleValue = 2;
*/
public io.kubernetes.client.proto.V1Networking.IngressRuleValueOrBuilder
getIngressRuleValueOrBuilder() {
return ingressRuleValue_ == null
? io.kubernetes.client.proto.V1Networking.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.V1Networking.IngressRule)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1Networking.IngressRule other =
(io.kubernetes.client.proto.V1Networking.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.V1Networking.IngressRule parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.IngressRule parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.IngressRule parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.IngressRule parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.IngressRule parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.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.V1Networking.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.V1Networking.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.networking.v1.IngressRule}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.networking.v1.IngressRule)
io.kubernetes.client.proto.V1Networking.IngressRuleOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressRule_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressRule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.IngressRule.class,
io.kubernetes.client.proto.V1Networking.IngressRule.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1Networking.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.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressRule_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IngressRule getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1Networking.IngressRule.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IngressRule build() {
io.kubernetes.client.proto.V1Networking.IngressRule result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IngressRule buildPartial() {
io.kubernetes.client.proto.V1Networking.IngressRule result =
new io.kubernetes.client.proto.V1Networking.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.V1Networking.IngressRule) {
return mergeFrom((io.kubernetes.client.proto.V1Networking.IngressRule) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1Networking.IngressRule other) {
if (other == io.kubernetes.client.proto.V1Networking.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.V1Networking.IngressRule parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1Networking.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 RFC 3986:
* 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.
* Host can be "precise" which is a domain name without the terminating dot of
* a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name
* prefixed with a single wildcard label (e.g. "*.foo.com").
* The wildcard character '*' must appear by itself as the first DNS label and
* matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*").
* Requests will be matched against the Host field in the following way:
* 1. If Host is precise, the request matches this rule if the http host header is equal to Host.
* 2. If Host is a wildcard, then the request matches this rule if the http host header
* is to equal to the suffix (removing the first label) of the wildcard rule.
* +optional
*
*
* optional string host = 1;
*/
public boolean hasHost() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* 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 RFC 3986:
* 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.
* Host can be "precise" which is a domain name without the terminating dot of
* a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name
* prefixed with a single wildcard label (e.g. "*.foo.com").
* The wildcard character '*' must appear by itself as the first DNS label and
* matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*").
* Requests will be matched against the Host field in the following way:
* 1. If Host is precise, the request matches this rule if the http host header is equal to Host.
* 2. If Host is a wildcard, then the request matches this rule if the http host header
* is to equal to the suffix (removing the first label) of the wildcard rule.
* +optional
*
*
* optional string host = 1;
*/
public java.lang.String getHost() {
java.lang.Object ref = host_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
host_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* 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 RFC 3986:
* 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.
* Host can be "precise" which is a domain name without the terminating dot of
* a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name
* prefixed with a single wildcard label (e.g. "*.foo.com").
* The wildcard character '*' must appear by itself as the first DNS label and
* matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*").
* Requests will be matched against the Host field in the following way:
* 1. If Host is precise, the request matches this rule if the http host header is equal to Host.
* 2. If Host is a wildcard, then the request matches this rule if the http host header
* is to equal to the suffix (removing the first label) of the wildcard rule.
* +optional
*
*
* optional string host = 1;
*/
public com.google.protobuf.ByteString getHostBytes() {
java.lang.Object ref = host_;
if (ref instanceof 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;
}
}
/**
*
*
*
* 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 RFC 3986:
* 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.
* Host can be "precise" which is a domain name without the terminating dot of
* a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name
* prefixed with a single wildcard label (e.g. "*.foo.com").
* The wildcard character '*' must appear by itself as the first DNS label and
* matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*").
* Requests will be matched against the Host field in the following way:
* 1. If Host is precise, the request matches this rule if the http host header is equal to Host.
* 2. If Host is a wildcard, then the request matches this rule if the http host header
* is to equal to the suffix (removing the first label) of the wildcard rule.
* +optional
*
*
* optional string host = 1;
*/
public Builder setHost(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
host_ = value;
onChanged();
return this;
}
/**
*
*
*
* 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 RFC 3986:
* 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.
* Host can be "precise" which is a domain name without the terminating dot of
* a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name
* prefixed with a single wildcard label (e.g. "*.foo.com").
* The wildcard character '*' must appear by itself as the first DNS label and
* matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*").
* Requests will be matched against the Host field in the following way:
* 1. If Host is precise, the request matches this rule if the http host header is equal to Host.
* 2. If Host is a wildcard, then the request matches this rule if the http host header
* is to equal to the suffix (removing the first label) of the wildcard rule.
* +optional
*
*
* optional string host = 1;
*/
public Builder clearHost() {
bitField0_ = (bitField0_ & ~0x00000001);
host_ = getDefaultInstance().getHost();
onChanged();
return this;
}
/**
*
*
*
* 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 RFC 3986:
* 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.
* Host can be "precise" which is a domain name without the terminating dot of
* a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name
* prefixed with a single wildcard label (e.g. "*.foo.com").
* The wildcard character '*' must appear by itself as the first DNS label and
* matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*").
* Requests will be matched against the Host field in the following way:
* 1. If Host is precise, the request matches this rule if the http host header is equal to Host.
* 2. If Host is a wildcard, then the request matches this rule if the http host header
* is to equal to the suffix (removing the first label) of the wildcard rule.
* +optional
*
*
* optional string host = 1;
*/
public Builder setHostBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
host_ = value;
onChanged();
return this;
}
private io.kubernetes.client.proto.V1Networking.IngressRuleValue ingressRuleValue_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.IngressRuleValue,
io.kubernetes.client.proto.V1Networking.IngressRuleValue.Builder,
io.kubernetes.client.proto.V1Networking.IngressRuleValueOrBuilder>
ingressRuleValueBuilder_;
/**
*
*
*
* 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.networking.v1.IngressRuleValue ingressRuleValue = 2;
*/
public boolean hasIngressRuleValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* 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.networking.v1.IngressRuleValue ingressRuleValue = 2;
*/
public io.kubernetes.client.proto.V1Networking.IngressRuleValue getIngressRuleValue() {
if (ingressRuleValueBuilder_ == null) {
return ingressRuleValue_ == null
? io.kubernetes.client.proto.V1Networking.IngressRuleValue.getDefaultInstance()
: ingressRuleValue_;
} else {
return ingressRuleValueBuilder_.getMessage();
}
}
/**
*
*
*
* 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.networking.v1.IngressRuleValue ingressRuleValue = 2;
*/
public Builder setIngressRuleValue(
io.kubernetes.client.proto.V1Networking.IngressRuleValue value) {
if (ingressRuleValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ingressRuleValue_ = value;
onChanged();
} else {
ingressRuleValueBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* 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.networking.v1.IngressRuleValue ingressRuleValue = 2;
*/
public Builder setIngressRuleValue(
io.kubernetes.client.proto.V1Networking.IngressRuleValue.Builder builderForValue) {
if (ingressRuleValueBuilder_ == null) {
ingressRuleValue_ = builderForValue.build();
onChanged();
} else {
ingressRuleValueBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* 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.networking.v1.IngressRuleValue ingressRuleValue = 2;
*/
public Builder mergeIngressRuleValue(
io.kubernetes.client.proto.V1Networking.IngressRuleValue value) {
if (ingressRuleValueBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)
&& ingressRuleValue_ != null
&& ingressRuleValue_
!= io.kubernetes.client.proto.V1Networking.IngressRuleValue
.getDefaultInstance()) {
ingressRuleValue_ =
io.kubernetes.client.proto.V1Networking.IngressRuleValue.newBuilder(
ingressRuleValue_)
.mergeFrom(value)
.buildPartial();
} else {
ingressRuleValue_ = value;
}
onChanged();
} else {
ingressRuleValueBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* 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.networking.v1.IngressRuleValue ingressRuleValue = 2;
*/
public Builder clearIngressRuleValue() {
if (ingressRuleValueBuilder_ == null) {
ingressRuleValue_ = null;
onChanged();
} else {
ingressRuleValueBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
*
*
*
* 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.networking.v1.IngressRuleValue ingressRuleValue = 2;
*/
public io.kubernetes.client.proto.V1Networking.IngressRuleValue.Builder
getIngressRuleValueBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getIngressRuleValueFieldBuilder().getBuilder();
}
/**
*
*
*
* 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.networking.v1.IngressRuleValue ingressRuleValue = 2;
*/
public io.kubernetes.client.proto.V1Networking.IngressRuleValueOrBuilder
getIngressRuleValueOrBuilder() {
if (ingressRuleValueBuilder_ != null) {
return ingressRuleValueBuilder_.getMessageOrBuilder();
} else {
return ingressRuleValue_ == null
? io.kubernetes.client.proto.V1Networking.IngressRuleValue.getDefaultInstance()
: 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
*
*
* optional .k8s.io.api.networking.v1.IngressRuleValue ingressRuleValue = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.IngressRuleValue,
io.kubernetes.client.proto.V1Networking.IngressRuleValue.Builder,
io.kubernetes.client.proto.V1Networking.IngressRuleValueOrBuilder>
getIngressRuleValueFieldBuilder() {
if (ingressRuleValueBuilder_ == null) {
ingressRuleValueBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.IngressRuleValue,
io.kubernetes.client.proto.V1Networking.IngressRuleValue.Builder,
io.kubernetes.client.proto.V1Networking.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.networking.v1.IngressRule)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.networking.v1.IngressRule)
private static final io.kubernetes.client.proto.V1Networking.IngressRule DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Networking.IngressRule();
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.IngressRule getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IngressRuleValueOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.networking.v1.IngressRuleValue)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* +optional
*
*
* optional .k8s.io.api.networking.v1.HTTPIngressRuleValue http = 1;
*/
boolean hasHttp();
/**
*
*
*
* +optional
*
*
* optional .k8s.io.api.networking.v1.HTTPIngressRuleValue http = 1;
*/
io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue getHttp();
/**
*
*
*
* +optional
*
*
* optional .k8s.io.api.networking.v1.HTTPIngressRuleValue http = 1;
*/
io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValueOrBuilder getHttpOrBuilder();
}
/**
*
*
*
* 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.networking.v1.IngressRuleValue}
*/
public static final class IngressRuleValue extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.networking.v1.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.V1Networking.HTTPIngressRuleValue.Builder subBuilder =
null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = http_.toBuilder();
}
http_ =
input.readMessage(
io.kubernetes.client.proto.V1Networking.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.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressRuleValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressRuleValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.IngressRuleValue.class,
io.kubernetes.client.proto.V1Networking.IngressRuleValue.Builder.class);
}
private int bitField0_;
public static final int HTTP_FIELD_NUMBER = 1;
private io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue http_;
/**
*
*
*
* +optional
*
*
* optional .k8s.io.api.networking.v1.HTTPIngressRuleValue http = 1;
*/
public boolean hasHttp() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* +optional
*
*
* optional .k8s.io.api.networking.v1.HTTPIngressRuleValue http = 1;
*/
public io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue getHttp() {
return http_ == null
? io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue.getDefaultInstance()
: http_;
}
/**
*
*
*
* +optional
*
*
* optional .k8s.io.api.networking.v1.HTTPIngressRuleValue http = 1;
*/
public io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValueOrBuilder
getHttpOrBuilder() {
return http_ == null
? io.kubernetes.client.proto.V1Networking.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.V1Networking.IngressRuleValue)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1Networking.IngressRuleValue other =
(io.kubernetes.client.proto.V1Networking.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.V1Networking.IngressRuleValue parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.IngressRuleValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.IngressRuleValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.IngressRuleValue parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.IngressRuleValue parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.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.V1Networking.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.V1Networking.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.networking.v1.IngressRuleValue}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.networking.v1.IngressRuleValue)
io.kubernetes.client.proto.V1Networking.IngressRuleValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressRuleValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressRuleValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.IngressRuleValue.class,
io.kubernetes.client.proto.V1Networking.IngressRuleValue.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1Networking.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.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressRuleValue_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IngressRuleValue getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1Networking.IngressRuleValue.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IngressRuleValue build() {
io.kubernetes.client.proto.V1Networking.IngressRuleValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IngressRuleValue buildPartial() {
io.kubernetes.client.proto.V1Networking.IngressRuleValue result =
new io.kubernetes.client.proto.V1Networking.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.V1Networking.IngressRuleValue) {
return mergeFrom((io.kubernetes.client.proto.V1Networking.IngressRuleValue) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1Networking.IngressRuleValue other) {
if (other == io.kubernetes.client.proto.V1Networking.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.V1Networking.IngressRuleValue parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1Networking.IngressRuleValue) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue http_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue,
io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue.Builder,
io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValueOrBuilder>
httpBuilder_;
/**
*
*
*
* +optional
*
*
* optional .k8s.io.api.networking.v1.HTTPIngressRuleValue http = 1;
*/
public boolean hasHttp() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* +optional
*
*
* optional .k8s.io.api.networking.v1.HTTPIngressRuleValue http = 1;
*/
public io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue getHttp() {
if (httpBuilder_ == null) {
return http_ == null
? io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue.getDefaultInstance()
: http_;
} else {
return httpBuilder_.getMessage();
}
}
/**
*
*
*
* +optional
*
*
* optional .k8s.io.api.networking.v1.HTTPIngressRuleValue http = 1;
*/
public Builder setHttp(io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue value) {
if (httpBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
http_ = value;
onChanged();
} else {
httpBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* +optional
*
*
* optional .k8s.io.api.networking.v1.HTTPIngressRuleValue http = 1;
*/
public Builder setHttp(
io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue.Builder builderForValue) {
if (httpBuilder_ == null) {
http_ = builderForValue.build();
onChanged();
} else {
httpBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* +optional
*
*
* optional .k8s.io.api.networking.v1.HTTPIngressRuleValue http = 1;
*/
public Builder mergeHttp(io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue value) {
if (httpBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)
&& http_ != null
&& http_
!= io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue
.getDefaultInstance()) {
http_ =
io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue.newBuilder(http_)
.mergeFrom(value)
.buildPartial();
} else {
http_ = value;
}
onChanged();
} else {
httpBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* +optional
*
*
* optional .k8s.io.api.networking.v1.HTTPIngressRuleValue http = 1;
*/
public Builder clearHttp() {
if (httpBuilder_ == null) {
http_ = null;
onChanged();
} else {
httpBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
*
*
*
* +optional
*
*
* optional .k8s.io.api.networking.v1.HTTPIngressRuleValue http = 1;
*/
public io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue.Builder getHttpBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getHttpFieldBuilder().getBuilder();
}
/**
*
*
*
* +optional
*
*
* optional .k8s.io.api.networking.v1.HTTPIngressRuleValue http = 1;
*/
public io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValueOrBuilder
getHttpOrBuilder() {
if (httpBuilder_ != null) {
return httpBuilder_.getMessageOrBuilder();
} else {
return http_ == null
? io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue.getDefaultInstance()
: http_;
}
}
/**
*
*
*
* +optional
*
*
* optional .k8s.io.api.networking.v1.HTTPIngressRuleValue http = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue,
io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue.Builder,
io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValueOrBuilder>
getHttpFieldBuilder() {
if (httpBuilder_ == null) {
httpBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue,
io.kubernetes.client.proto.V1Networking.HTTPIngressRuleValue.Builder,
io.kubernetes.client.proto.V1Networking.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.networking.v1.IngressRuleValue)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.networking.v1.IngressRuleValue)
private static final io.kubernetes.client.proto.V1Networking.IngressRuleValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Networking.IngressRuleValue();
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.IngressRuleValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IngressServiceBackendOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.networking.v1.IngressServiceBackend)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Name is the referenced service. The service must exist in
* the same namespace as the Ingress object.
*
*
* optional string name = 1;
*/
boolean hasName();
/**
*
*
*
* Name is the referenced service. The service must exist in
* the same namespace as the Ingress object.
*
*
* optional string name = 1;
*/
java.lang.String getName();
/**
*
*
*
* Name is the referenced service. The service must exist in
* the same namespace as the Ingress object.
*
*
* optional string name = 1;
*/
com.google.protobuf.ByteString getNameBytes();
/**
*
*
*
* Port of the referenced service. A port name or port number
* is required for a IngressServiceBackend.
*
*
* optional .k8s.io.api.networking.v1.ServiceBackendPort port = 2;
*/
boolean hasPort();
/**
*
*
*
* Port of the referenced service. A port name or port number
* is required for a IngressServiceBackend.
*
*
* optional .k8s.io.api.networking.v1.ServiceBackendPort port = 2;
*/
io.kubernetes.client.proto.V1Networking.ServiceBackendPort getPort();
/**
*
*
*
* Port of the referenced service. A port name or port number
* is required for a IngressServiceBackend.
*
*
* optional .k8s.io.api.networking.v1.ServiceBackendPort port = 2;
*/
io.kubernetes.client.proto.V1Networking.ServiceBackendPortOrBuilder getPortOrBuilder();
}
/**
*
*
*
* IngressServiceBackend references a Kubernetes Service as a Backend.
*
*
* Protobuf type {@code k8s.io.api.networking.v1.IngressServiceBackend}
*/
public static final class IngressServiceBackend extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.networking.v1.IngressServiceBackend)
IngressServiceBackendOrBuilder {
private static final long serialVersionUID = 0L;
// Use IngressServiceBackend.newBuilder() to construct.
private IngressServiceBackend(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IngressServiceBackend() {
name_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private IngressServiceBackend(
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;
name_ = bs;
break;
}
case 18:
{
io.kubernetes.client.proto.V1Networking.ServiceBackendPort.Builder subBuilder =
null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = port_.toBuilder();
}
port_ =
input.readMessage(
io.kubernetes.client.proto.V1Networking.ServiceBackendPort.PARSER,
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(port_);
port_ = 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.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressServiceBackend_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressServiceBackend_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.IngressServiceBackend.class,
io.kubernetes.client.proto.V1Networking.IngressServiceBackend.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
*
*
* Name is the referenced service. The service must exist in
* the same namespace as the Ingress object.
*
*
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* Name is the referenced service. The service must exist in
* the same namespace as the Ingress object.
*
*
* optional string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
*
*
*
* Name is the referenced service. The service must exist in
* the same namespace as the Ingress object.
*
*
* optional string name = 1;
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PORT_FIELD_NUMBER = 2;
private io.kubernetes.client.proto.V1Networking.ServiceBackendPort port_;
/**
*
*
*
* Port of the referenced service. A port name or port number
* is required for a IngressServiceBackend.
*
*
* optional .k8s.io.api.networking.v1.ServiceBackendPort port = 2;
*/
public boolean hasPort() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* Port of the referenced service. A port name or port number
* is required for a IngressServiceBackend.
*
*
* optional .k8s.io.api.networking.v1.ServiceBackendPort port = 2;
*/
public io.kubernetes.client.proto.V1Networking.ServiceBackendPort getPort() {
return port_ == null
? io.kubernetes.client.proto.V1Networking.ServiceBackendPort.getDefaultInstance()
: port_;
}
/**
*
*
*
* Port of the referenced service. A port name or port number
* is required for a IngressServiceBackend.
*
*
* optional .k8s.io.api.networking.v1.ServiceBackendPort port = 2;
*/
public io.kubernetes.client.proto.V1Networking.ServiceBackendPortOrBuilder getPortOrBuilder() {
return port_ == null
? io.kubernetes.client.proto.V1Networking.ServiceBackendPort.getDefaultInstance()
: port_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getPort());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPort());
}
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.V1Networking.IngressServiceBackend)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1Networking.IngressServiceBackend other =
(io.kubernetes.client.proto.V1Networking.IngressServiceBackend) obj;
boolean result = true;
result = result && (hasName() == other.hasName());
if (hasName()) {
result = result && getName().equals(other.getName());
}
result = result && (hasPort() == other.hasPort());
if (hasPort()) {
result = result && getPort().equals(other.getPort());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasPort()) {
hash = (37 * hash) + PORT_FIELD_NUMBER;
hash = (53 * hash) + getPort().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1Networking.IngressServiceBackend parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.IngressServiceBackend 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.V1Networking.IngressServiceBackend parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.IngressServiceBackend 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.V1Networking.IngressServiceBackend parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.IngressServiceBackend parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Networking.IngressServiceBackend parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.IngressServiceBackend 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.V1Networking.IngressServiceBackend parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.IngressServiceBackend 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.V1Networking.IngressServiceBackend parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.IngressServiceBackend 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.V1Networking.IngressServiceBackend 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;
}
/**
*
*
*
* IngressServiceBackend references a Kubernetes Service as a Backend.
*
*
* Protobuf type {@code k8s.io.api.networking.v1.IngressServiceBackend}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.networking.v1.IngressServiceBackend)
io.kubernetes.client.proto.V1Networking.IngressServiceBackendOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressServiceBackend_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressServiceBackend_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.IngressServiceBackend.class,
io.kubernetes.client.proto.V1Networking.IngressServiceBackend.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1Networking.IngressServiceBackend.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getPortFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (portBuilder_ == null) {
port_ = null;
} else {
portBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressServiceBackend_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IngressServiceBackend
getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1Networking.IngressServiceBackend.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IngressServiceBackend build() {
io.kubernetes.client.proto.V1Networking.IngressServiceBackend result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IngressServiceBackend buildPartial() {
io.kubernetes.client.proto.V1Networking.IngressServiceBackend result =
new io.kubernetes.client.proto.V1Networking.IngressServiceBackend(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (portBuilder_ == null) {
result.port_ = port_;
} else {
result.port_ = portBuilder_.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.V1Networking.IngressServiceBackend) {
return mergeFrom((io.kubernetes.client.proto.V1Networking.IngressServiceBackend) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
io.kubernetes.client.proto.V1Networking.IngressServiceBackend other) {
if (other
== io.kubernetes.client.proto.V1Networking.IngressServiceBackend.getDefaultInstance())
return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasPort()) {
mergePort(other.getPort());
}
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.V1Networking.IngressServiceBackend parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1Networking.IngressServiceBackend)
e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
*
*
* Name is the referenced service. The service must exist in
* the same namespace as the Ingress object.
*
*
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* Name is the referenced service. The service must exist in
* the same namespace as the Ingress object.
*
*
* optional string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Name is the referenced service. The service must exist in
* the same namespace as the Ingress object.
*
*
* optional string name = 1;
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Name is the referenced service. The service must exist in
* the same namespace as the Ingress object.
*
*
* optional string name = 1;
*/
public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
*
*
*
* Name is the referenced service. The service must exist in
* the same namespace as the Ingress object.
*
*
* optional string name = 1;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
*
*
* Name is the referenced service. The service must exist in
* the same namespace as the Ingress object.
*
*
* optional string name = 1;
*/
public Builder setNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
private io.kubernetes.client.proto.V1Networking.ServiceBackendPort port_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.ServiceBackendPort,
io.kubernetes.client.proto.V1Networking.ServiceBackendPort.Builder,
io.kubernetes.client.proto.V1Networking.ServiceBackendPortOrBuilder>
portBuilder_;
/**
*
*
*
* Port of the referenced service. A port name or port number
* is required for a IngressServiceBackend.
*
*
* optional .k8s.io.api.networking.v1.ServiceBackendPort port = 2;
*/
public boolean hasPort() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* Port of the referenced service. A port name or port number
* is required for a IngressServiceBackend.
*
*
* optional .k8s.io.api.networking.v1.ServiceBackendPort port = 2;
*/
public io.kubernetes.client.proto.V1Networking.ServiceBackendPort getPort() {
if (portBuilder_ == null) {
return port_ == null
? io.kubernetes.client.proto.V1Networking.ServiceBackendPort.getDefaultInstance()
: port_;
} else {
return portBuilder_.getMessage();
}
}
/**
*
*
*
* Port of the referenced service. A port name or port number
* is required for a IngressServiceBackend.
*
*
* optional .k8s.io.api.networking.v1.ServiceBackendPort port = 2;
*/
public Builder setPort(io.kubernetes.client.proto.V1Networking.ServiceBackendPort value) {
if (portBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
port_ = value;
onChanged();
} else {
portBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* Port of the referenced service. A port name or port number
* is required for a IngressServiceBackend.
*
*
* optional .k8s.io.api.networking.v1.ServiceBackendPort port = 2;
*/
public Builder setPort(
io.kubernetes.client.proto.V1Networking.ServiceBackendPort.Builder builderForValue) {
if (portBuilder_ == null) {
port_ = builderForValue.build();
onChanged();
} else {
portBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* Port of the referenced service. A port name or port number
* is required for a IngressServiceBackend.
*
*
* optional .k8s.io.api.networking.v1.ServiceBackendPort port = 2;
*/
public Builder mergePort(io.kubernetes.client.proto.V1Networking.ServiceBackendPort value) {
if (portBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)
&& port_ != null
&& port_
!= io.kubernetes.client.proto.V1Networking.ServiceBackendPort
.getDefaultInstance()) {
port_ =
io.kubernetes.client.proto.V1Networking.ServiceBackendPort.newBuilder(port_)
.mergeFrom(value)
.buildPartial();
} else {
port_ = value;
}
onChanged();
} else {
portBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* Port of the referenced service. A port name or port number
* is required for a IngressServiceBackend.
*
*
* optional .k8s.io.api.networking.v1.ServiceBackendPort port = 2;
*/
public Builder clearPort() {
if (portBuilder_ == null) {
port_ = null;
onChanged();
} else {
portBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
*
*
*
* Port of the referenced service. A port name or port number
* is required for a IngressServiceBackend.
*
*
* optional .k8s.io.api.networking.v1.ServiceBackendPort port = 2;
*/
public io.kubernetes.client.proto.V1Networking.ServiceBackendPort.Builder getPortBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getPortFieldBuilder().getBuilder();
}
/**
*
*
*
* Port of the referenced service. A port name or port number
* is required for a IngressServiceBackend.
*
*
* optional .k8s.io.api.networking.v1.ServiceBackendPort port = 2;
*/
public io.kubernetes.client.proto.V1Networking.ServiceBackendPortOrBuilder
getPortOrBuilder() {
if (portBuilder_ != null) {
return portBuilder_.getMessageOrBuilder();
} else {
return port_ == null
? io.kubernetes.client.proto.V1Networking.ServiceBackendPort.getDefaultInstance()
: port_;
}
}
/**
*
*
*
* Port of the referenced service. A port name or port number
* is required for a IngressServiceBackend.
*
*
* optional .k8s.io.api.networking.v1.ServiceBackendPort port = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.ServiceBackendPort,
io.kubernetes.client.proto.V1Networking.ServiceBackendPort.Builder,
io.kubernetes.client.proto.V1Networking.ServiceBackendPortOrBuilder>
getPortFieldBuilder() {
if (portBuilder_ == null) {
portBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.ServiceBackendPort,
io.kubernetes.client.proto.V1Networking.ServiceBackendPort.Builder,
io.kubernetes.client.proto.V1Networking.ServiceBackendPortOrBuilder>(
getPort(), getParentForChildren(), isClean());
port_ = null;
}
return portBuilder_;
}
@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.networking.v1.IngressServiceBackend)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.networking.v1.IngressServiceBackend)
private static final io.kubernetes.client.proto.V1Networking.IngressServiceBackend
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Networking.IngressServiceBackend();
}
public static io.kubernetes.client.proto.V1Networking.IngressServiceBackend
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IngressServiceBackend parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IngressServiceBackend(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.V1Networking.IngressServiceBackend
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IngressSpecOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.networking.v1.IngressSpec)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* IngressClassName is the name of the IngressClass cluster resource. The
* associated IngressClass defines which controller will implement the
* resource. This replaces the deprecated `kubernetes.io/ingress.class`
* annotation. For backwards compatibility, when that annotation is set, it
* must be given precedence over this field. The controller may emit a
* warning if the field and annotation have different values.
* Implementations of this API should ignore Ingresses without a class
* specified. An IngressClass resource may be marked as default, which can
* be used to set a default value for this field. For more information,
* refer to the IngressClass documentation.
* +optional
*
*
* optional string ingressClassName = 4;
*/
boolean hasIngressClassName();
/**
*
*
*
* IngressClassName is the name of the IngressClass cluster resource. The
* associated IngressClass defines which controller will implement the
* resource. This replaces the deprecated `kubernetes.io/ingress.class`
* annotation. For backwards compatibility, when that annotation is set, it
* must be given precedence over this field. The controller may emit a
* warning if the field and annotation have different values.
* Implementations of this API should ignore Ingresses without a class
* specified. An IngressClass resource may be marked as default, which can
* be used to set a default value for this field. For more information,
* refer to the IngressClass documentation.
* +optional
*
*
* optional string ingressClassName = 4;
*/
java.lang.String getIngressClassName();
/**
*
*
*
* IngressClassName is the name of the IngressClass cluster resource. The
* associated IngressClass defines which controller will implement the
* resource. This replaces the deprecated `kubernetes.io/ingress.class`
* annotation. For backwards compatibility, when that annotation is set, it
* must be given precedence over this field. The controller may emit a
* warning if the field and annotation have different values.
* Implementations of this API should ignore Ingresses without a class
* specified. An IngressClass resource may be marked as default, which can
* be used to set a default value for this field. For more information,
* refer to the IngressClass documentation.
* +optional
*
*
* optional string ingressClassName = 4;
*/
com.google.protobuf.ByteString getIngressClassNameBytes();
/**
*
*
*
* DefaultBackend is the backend that should handle requests that don't
* match any rule. If Rules are not specified, DefaultBackend must be specified.
* If DefaultBackend is not set, the handling of requests that do not match any
* of the rules will be up to the Ingress controller.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressBackend defaultBackend = 1;
*/
boolean hasDefaultBackend();
/**
*
*
*
* DefaultBackend is the backend that should handle requests that don't
* match any rule. If Rules are not specified, DefaultBackend must be specified.
* If DefaultBackend is not set, the handling of requests that do not match any
* of the rules will be up to the Ingress controller.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressBackend defaultBackend = 1;
*/
io.kubernetes.client.proto.V1Networking.IngressBackend getDefaultBackend();
/**
*
*
*
* DefaultBackend is the backend that should handle requests that don't
* match any rule. If Rules are not specified, DefaultBackend must be specified.
* If DefaultBackend is not set, the handling of requests that do not match any
* of the rules will be up to the Ingress controller.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressBackend defaultBackend = 1;
*/
io.kubernetes.client.proto.V1Networking.IngressBackendOrBuilder getDefaultBackendOrBuilder();
/**
*
*
*
* 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.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressTLS tls = 2;
*/
java.util.List getTlsList();
/**
*
*
*
* 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.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressTLS tls = 2;
*/
io.kubernetes.client.proto.V1Networking.IngressTLS getTls(int 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.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressTLS tls = 2;
*/
int getTlsCount();
/**
*
*
*
* 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.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressTLS tls = 2;
*/
java.util.List extends io.kubernetes.client.proto.V1Networking.IngressTLSOrBuilder>
getTlsOrBuilderList();
/**
*
*
*
* 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.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressTLS tls = 2;
*/
io.kubernetes.client.proto.V1Networking.IngressTLSOrBuilder getTlsOrBuilder(int index);
/**
*
*
*
* A list of host rules used to configure the Ingress. If unspecified, or
* no rule matches, all traffic is sent to the default backend.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressRule rules = 3;
*/
java.util.List getRulesList();
/**
*
*
*
* A list of host rules used to configure the Ingress. If unspecified, or
* no rule matches, all traffic is sent to the default backend.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressRule rules = 3;
*/
io.kubernetes.client.proto.V1Networking.IngressRule getRules(int index);
/**
*
*
*
* A list of host rules used to configure the Ingress. If unspecified, or
* no rule matches, all traffic is sent to the default backend.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressRule rules = 3;
*/
int getRulesCount();
/**
*
*
*
* A list of host rules used to configure the Ingress. If unspecified, or
* no rule matches, all traffic is sent to the default backend.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressRule rules = 3;
*/
java.util.List extends io.kubernetes.client.proto.V1Networking.IngressRuleOrBuilder>
getRulesOrBuilderList();
/**
*
*
*
* A list of host rules used to configure the Ingress. If unspecified, or
* no rule matches, all traffic is sent to the default backend.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressRule rules = 3;
*/
io.kubernetes.client.proto.V1Networking.IngressRuleOrBuilder getRulesOrBuilder(int index);
}
/**
*
*
*
* IngressSpec describes the Ingress the user wishes to exist.
*
*
* Protobuf type {@code k8s.io.api.networking.v1.IngressSpec}
*/
public static final class IngressSpec extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.networking.v1.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() {
ingressClassName_ = "";
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.V1Networking.IngressBackend.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = defaultBackend_.toBuilder();
}
defaultBackend_ =
input.readMessage(
io.kubernetes.client.proto.V1Networking.IngressBackend.PARSER,
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(defaultBackend_);
defaultBackend_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 18:
{
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
tls_ =
new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
tls_.add(
input.readMessage(
io.kubernetes.client.proto.V1Networking.IngressTLS.PARSER,
extensionRegistry));
break;
}
case 26:
{
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
rules_ =
new java.util.ArrayList<
io.kubernetes.client.proto.V1Networking.IngressRule>();
mutable_bitField0_ |= 0x00000008;
}
rules_.add(
input.readMessage(
io.kubernetes.client.proto.V1Networking.IngressRule.PARSER,
extensionRegistry));
break;
}
case 34:
{
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
ingressClassName_ = 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_ & 0x00000004) == 0x00000004)) {
tls_ = java.util.Collections.unmodifiableList(tls_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
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.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.IngressSpec.class,
io.kubernetes.client.proto.V1Networking.IngressSpec.Builder.class);
}
private int bitField0_;
public static final int INGRESSCLASSNAME_FIELD_NUMBER = 4;
private volatile java.lang.Object ingressClassName_;
/**
*
*
*
* IngressClassName is the name of the IngressClass cluster resource. The
* associated IngressClass defines which controller will implement the
* resource. This replaces the deprecated `kubernetes.io/ingress.class`
* annotation. For backwards compatibility, when that annotation is set, it
* must be given precedence over this field. The controller may emit a
* warning if the field and annotation have different values.
* Implementations of this API should ignore Ingresses without a class
* specified. An IngressClass resource may be marked as default, which can
* be used to set a default value for this field. For more information,
* refer to the IngressClass documentation.
* +optional
*
*
* optional string ingressClassName = 4;
*/
public boolean hasIngressClassName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* IngressClassName is the name of the IngressClass cluster resource. The
* associated IngressClass defines which controller will implement the
* resource. This replaces the deprecated `kubernetes.io/ingress.class`
* annotation. For backwards compatibility, when that annotation is set, it
* must be given precedence over this field. The controller may emit a
* warning if the field and annotation have different values.
* Implementations of this API should ignore Ingresses without a class
* specified. An IngressClass resource may be marked as default, which can
* be used to set a default value for this field. For more information,
* refer to the IngressClass documentation.
* +optional
*
*
* optional string ingressClassName = 4;
*/
public java.lang.String getIngressClassName() {
java.lang.Object ref = ingressClassName_;
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()) {
ingressClassName_ = s;
}
return s;
}
}
/**
*
*
*
* IngressClassName is the name of the IngressClass cluster resource. The
* associated IngressClass defines which controller will implement the
* resource. This replaces the deprecated `kubernetes.io/ingress.class`
* annotation. For backwards compatibility, when that annotation is set, it
* must be given precedence over this field. The controller may emit a
* warning if the field and annotation have different values.
* Implementations of this API should ignore Ingresses without a class
* specified. An IngressClass resource may be marked as default, which can
* be used to set a default value for this field. For more information,
* refer to the IngressClass documentation.
* +optional
*
*
* optional string ingressClassName = 4;
*/
public com.google.protobuf.ByteString getIngressClassNameBytes() {
java.lang.Object ref = ingressClassName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
ingressClassName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEFAULTBACKEND_FIELD_NUMBER = 1;
private io.kubernetes.client.proto.V1Networking.IngressBackend defaultBackend_;
/**
*
*
*
* DefaultBackend is the backend that should handle requests that don't
* match any rule. If Rules are not specified, DefaultBackend must be specified.
* If DefaultBackend is not set, the handling of requests that do not match any
* of the rules will be up to the Ingress controller.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressBackend defaultBackend = 1;
*/
public boolean hasDefaultBackend() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* DefaultBackend is the backend that should handle requests that don't
* match any rule. If Rules are not specified, DefaultBackend must be specified.
* If DefaultBackend is not set, the handling of requests that do not match any
* of the rules will be up to the Ingress controller.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressBackend defaultBackend = 1;
*/
public io.kubernetes.client.proto.V1Networking.IngressBackend getDefaultBackend() {
return defaultBackend_ == null
? io.kubernetes.client.proto.V1Networking.IngressBackend.getDefaultInstance()
: defaultBackend_;
}
/**
*
*
*
* DefaultBackend is the backend that should handle requests that don't
* match any rule. If Rules are not specified, DefaultBackend must be specified.
* If DefaultBackend is not set, the handling of requests that do not match any
* of the rules will be up to the Ingress controller.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressBackend defaultBackend = 1;
*/
public io.kubernetes.client.proto.V1Networking.IngressBackendOrBuilder
getDefaultBackendOrBuilder() {
return defaultBackend_ == null
? io.kubernetes.client.proto.V1Networking.IngressBackend.getDefaultInstance()
: defaultBackend_;
}
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.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressTLS tls = 2;
*/
public java.util.List getTlsList() {
return 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.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressTLS tls = 2;
*/
public java.util.List extends io.kubernetes.client.proto.V1Networking.IngressTLSOrBuilder>
getTlsOrBuilderList() {
return 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.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.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.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressTLS tls = 2;
*/
public io.kubernetes.client.proto.V1Networking.IngressTLS getTls(int index) {
return tls_.get(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.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressTLS tls = 2;
*/
public io.kubernetes.client.proto.V1Networking.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.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressRule rules = 3;
*/
public java.util.List getRulesList() {
return 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.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressRule rules = 3;
*/
public java.util.List extends io.kubernetes.client.proto.V1Networking.IngressRuleOrBuilder>
getRulesOrBuilderList() {
return 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.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressRule rules = 3;
*/
public int getRulesCount() {
return rules_.size();
}
/**
*
*
*
* A list of host rules used to configure the Ingress. If unspecified, or
* no rule matches, all traffic is sent to the default backend.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressRule rules = 3;
*/
public io.kubernetes.client.proto.V1Networking.IngressRule getRules(int index) {
return rules_.get(index);
}
/**
*
*
*
* A list of host rules used to configure the Ingress. If unspecified, or
* no rule matches, all traffic is sent to the default backend.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressRule rules = 3;
*/
public io.kubernetes.client.proto.V1Networking.IngressRuleOrBuilder getRulesOrBuilder(
int index) {
return rules_.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_ & 0x00000002) == 0x00000002)) {
output.writeMessage(1, getDefaultBackend());
}
for (int i = 0; i < tls_.size(); i++) {
output.writeMessage(2, tls_.get(i));
}
for (int i = 0; i < rules_.size(); i++) {
output.writeMessage(3, rules_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, ingressClassName_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDefaultBackend());
}
for (int i = 0; i < tls_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, tls_.get(i));
}
for (int i = 0; i < rules_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, rules_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, ingressClassName_);
}
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.V1Networking.IngressSpec)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1Networking.IngressSpec other =
(io.kubernetes.client.proto.V1Networking.IngressSpec) obj;
boolean result = true;
result = result && (hasIngressClassName() == other.hasIngressClassName());
if (hasIngressClassName()) {
result = result && getIngressClassName().equals(other.getIngressClassName());
}
result = result && (hasDefaultBackend() == other.hasDefaultBackend());
if (hasDefaultBackend()) {
result = result && getDefaultBackend().equals(other.getDefaultBackend());
}
result = result && getTlsList().equals(other.getTlsList());
result = result && getRulesList().equals(other.getRulesList());
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 (hasIngressClassName()) {
hash = (37 * hash) + INGRESSCLASSNAME_FIELD_NUMBER;
hash = (53 * hash) + getIngressClassName().hashCode();
}
if (hasDefaultBackend()) {
hash = (37 * hash) + DEFAULTBACKEND_FIELD_NUMBER;
hash = (53 * hash) + getDefaultBackend().hashCode();
}
if (getTlsCount() > 0) {
hash = (37 * hash) + TLS_FIELD_NUMBER;
hash = (53 * hash) + getTlsList().hashCode();
}
if (getRulesCount() > 0) {
hash = (37 * hash) + RULES_FIELD_NUMBER;
hash = (53 * hash) + getRulesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1Networking.IngressSpec parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.IngressSpec 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.V1Networking.IngressSpec parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.IngressSpec 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.V1Networking.IngressSpec parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.IngressSpec parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Networking.IngressSpec parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.IngressSpec 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.V1Networking.IngressSpec parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.IngressSpec 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.V1Networking.IngressSpec parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.IngressSpec 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.V1Networking.IngressSpec 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;
}
/**
*
*
*
* IngressSpec describes the Ingress the user wishes to exist.
*
*
* Protobuf type {@code k8s.io.api.networking.v1.IngressSpec}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.networking.v1.IngressSpec)
io.kubernetes.client.proto.V1Networking.IngressSpecOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.IngressSpec.class,
io.kubernetes.client.proto.V1Networking.IngressSpec.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1Networking.IngressSpec.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getDefaultBackendFieldBuilder();
getTlsFieldBuilder();
getRulesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
ingressClassName_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (defaultBackendBuilder_ == null) {
defaultBackend_ = null;
} else {
defaultBackendBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (tlsBuilder_ == null) {
tls_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
tlsBuilder_.clear();
}
if (rulesBuilder_ == null) {
rules_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
rulesBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressSpec_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IngressSpec getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1Networking.IngressSpec.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IngressSpec build() {
io.kubernetes.client.proto.V1Networking.IngressSpec result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IngressSpec buildPartial() {
io.kubernetes.client.proto.V1Networking.IngressSpec result =
new io.kubernetes.client.proto.V1Networking.IngressSpec(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.ingressClassName_ = ingressClassName_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (defaultBackendBuilder_ == null) {
result.defaultBackend_ = defaultBackend_;
} else {
result.defaultBackend_ = defaultBackendBuilder_.build();
}
if (tlsBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
tls_ = java.util.Collections.unmodifiableList(tls_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.tls_ = tls_;
} else {
result.tls_ = tlsBuilder_.build();
}
if (rulesBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
rules_ = java.util.Collections.unmodifiableList(rules_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.rules_ = rules_;
} else {
result.rules_ = rulesBuilder_.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.V1Networking.IngressSpec) {
return mergeFrom((io.kubernetes.client.proto.V1Networking.IngressSpec) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1Networking.IngressSpec other) {
if (other == io.kubernetes.client.proto.V1Networking.IngressSpec.getDefaultInstance())
return this;
if (other.hasIngressClassName()) {
bitField0_ |= 0x00000001;
ingressClassName_ = other.ingressClassName_;
onChanged();
}
if (other.hasDefaultBackend()) {
mergeDefaultBackend(other.getDefaultBackend());
}
if (tlsBuilder_ == null) {
if (!other.tls_.isEmpty()) {
if (tls_.isEmpty()) {
tls_ = other.tls_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureTlsIsMutable();
tls_.addAll(other.tls_);
}
onChanged();
}
} else {
if (!other.tls_.isEmpty()) {
if (tlsBuilder_.isEmpty()) {
tlsBuilder_.dispose();
tlsBuilder_ = null;
tls_ = other.tls_;
bitField0_ = (bitField0_ & ~0x00000004);
tlsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getTlsFieldBuilder()
: null;
} else {
tlsBuilder_.addAllMessages(other.tls_);
}
}
}
if (rulesBuilder_ == null) {
if (!other.rules_.isEmpty()) {
if (rules_.isEmpty()) {
rules_ = other.rules_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureRulesIsMutable();
rules_.addAll(other.rules_);
}
onChanged();
}
} else {
if (!other.rules_.isEmpty()) {
if (rulesBuilder_.isEmpty()) {
rulesBuilder_.dispose();
rulesBuilder_ = null;
rules_ = other.rules_;
bitField0_ = (bitField0_ & ~0x00000008);
rulesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getRulesFieldBuilder()
: null;
} else {
rulesBuilder_.addAllMessages(other.rules_);
}
}
}
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.V1Networking.IngressSpec parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1Networking.IngressSpec) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object ingressClassName_ = "";
/**
*
*
*
* IngressClassName is the name of the IngressClass cluster resource. The
* associated IngressClass defines which controller will implement the
* resource. This replaces the deprecated `kubernetes.io/ingress.class`
* annotation. For backwards compatibility, when that annotation is set, it
* must be given precedence over this field. The controller may emit a
* warning if the field and annotation have different values.
* Implementations of this API should ignore Ingresses without a class
* specified. An IngressClass resource may be marked as default, which can
* be used to set a default value for this field. For more information,
* refer to the IngressClass documentation.
* +optional
*
*
* optional string ingressClassName = 4;
*/
public boolean hasIngressClassName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* IngressClassName is the name of the IngressClass cluster resource. The
* associated IngressClass defines which controller will implement the
* resource. This replaces the deprecated `kubernetes.io/ingress.class`
* annotation. For backwards compatibility, when that annotation is set, it
* must be given precedence over this field. The controller may emit a
* warning if the field and annotation have different values.
* Implementations of this API should ignore Ingresses without a class
* specified. An IngressClass resource may be marked as default, which can
* be used to set a default value for this field. For more information,
* refer to the IngressClass documentation.
* +optional
*
*
* optional string ingressClassName = 4;
*/
public java.lang.String getIngressClassName() {
java.lang.Object ref = ingressClassName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
ingressClassName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* IngressClassName is the name of the IngressClass cluster resource. The
* associated IngressClass defines which controller will implement the
* resource. This replaces the deprecated `kubernetes.io/ingress.class`
* annotation. For backwards compatibility, when that annotation is set, it
* must be given precedence over this field. The controller may emit a
* warning if the field and annotation have different values.
* Implementations of this API should ignore Ingresses without a class
* specified. An IngressClass resource may be marked as default, which can
* be used to set a default value for this field. For more information,
* refer to the IngressClass documentation.
* +optional
*
*
* optional string ingressClassName = 4;
*/
public com.google.protobuf.ByteString getIngressClassNameBytes() {
java.lang.Object ref = ingressClassName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
ingressClassName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* IngressClassName is the name of the IngressClass cluster resource. The
* associated IngressClass defines which controller will implement the
* resource. This replaces the deprecated `kubernetes.io/ingress.class`
* annotation. For backwards compatibility, when that annotation is set, it
* must be given precedence over this field. The controller may emit a
* warning if the field and annotation have different values.
* Implementations of this API should ignore Ingresses without a class
* specified. An IngressClass resource may be marked as default, which can
* be used to set a default value for this field. For more information,
* refer to the IngressClass documentation.
* +optional
*
*
* optional string ingressClassName = 4;
*/
public Builder setIngressClassName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
ingressClassName_ = value;
onChanged();
return this;
}
/**
*
*
*
* IngressClassName is the name of the IngressClass cluster resource. The
* associated IngressClass defines which controller will implement the
* resource. This replaces the deprecated `kubernetes.io/ingress.class`
* annotation. For backwards compatibility, when that annotation is set, it
* must be given precedence over this field. The controller may emit a
* warning if the field and annotation have different values.
* Implementations of this API should ignore Ingresses without a class
* specified. An IngressClass resource may be marked as default, which can
* be used to set a default value for this field. For more information,
* refer to the IngressClass documentation.
* +optional
*
*
* optional string ingressClassName = 4;
*/
public Builder clearIngressClassName() {
bitField0_ = (bitField0_ & ~0x00000001);
ingressClassName_ = getDefaultInstance().getIngressClassName();
onChanged();
return this;
}
/**
*
*
*
* IngressClassName is the name of the IngressClass cluster resource. The
* associated IngressClass defines which controller will implement the
* resource. This replaces the deprecated `kubernetes.io/ingress.class`
* annotation. For backwards compatibility, when that annotation is set, it
* must be given precedence over this field. The controller may emit a
* warning if the field and annotation have different values.
* Implementations of this API should ignore Ingresses without a class
* specified. An IngressClass resource may be marked as default, which can
* be used to set a default value for this field. For more information,
* refer to the IngressClass documentation.
* +optional
*
*
* optional string ingressClassName = 4;
*/
public Builder setIngressClassNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
ingressClassName_ = value;
onChanged();
return this;
}
private io.kubernetes.client.proto.V1Networking.IngressBackend defaultBackend_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.IngressBackend,
io.kubernetes.client.proto.V1Networking.IngressBackend.Builder,
io.kubernetes.client.proto.V1Networking.IngressBackendOrBuilder>
defaultBackendBuilder_;
/**
*
*
*
* DefaultBackend is the backend that should handle requests that don't
* match any rule. If Rules are not specified, DefaultBackend must be specified.
* If DefaultBackend is not set, the handling of requests that do not match any
* of the rules will be up to the Ingress controller.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressBackend defaultBackend = 1;
*/
public boolean hasDefaultBackend() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* DefaultBackend is the backend that should handle requests that don't
* match any rule. If Rules are not specified, DefaultBackend must be specified.
* If DefaultBackend is not set, the handling of requests that do not match any
* of the rules will be up to the Ingress controller.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressBackend defaultBackend = 1;
*/
public io.kubernetes.client.proto.V1Networking.IngressBackend getDefaultBackend() {
if (defaultBackendBuilder_ == null) {
return defaultBackend_ == null
? io.kubernetes.client.proto.V1Networking.IngressBackend.getDefaultInstance()
: defaultBackend_;
} else {
return defaultBackendBuilder_.getMessage();
}
}
/**
*
*
*
* DefaultBackend is the backend that should handle requests that don't
* match any rule. If Rules are not specified, DefaultBackend must be specified.
* If DefaultBackend is not set, the handling of requests that do not match any
* of the rules will be up to the Ingress controller.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressBackend defaultBackend = 1;
*/
public Builder setDefaultBackend(
io.kubernetes.client.proto.V1Networking.IngressBackend value) {
if (defaultBackendBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
defaultBackend_ = value;
onChanged();
} else {
defaultBackendBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* DefaultBackend is the backend that should handle requests that don't
* match any rule. If Rules are not specified, DefaultBackend must be specified.
* If DefaultBackend is not set, the handling of requests that do not match any
* of the rules will be up to the Ingress controller.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressBackend defaultBackend = 1;
*/
public Builder setDefaultBackend(
io.kubernetes.client.proto.V1Networking.IngressBackend.Builder builderForValue) {
if (defaultBackendBuilder_ == null) {
defaultBackend_ = builderForValue.build();
onChanged();
} else {
defaultBackendBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* DefaultBackend is the backend that should handle requests that don't
* match any rule. If Rules are not specified, DefaultBackend must be specified.
* If DefaultBackend is not set, the handling of requests that do not match any
* of the rules will be up to the Ingress controller.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressBackend defaultBackend = 1;
*/
public Builder mergeDefaultBackend(
io.kubernetes.client.proto.V1Networking.IngressBackend value) {
if (defaultBackendBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)
&& defaultBackend_ != null
&& defaultBackend_
!= io.kubernetes.client.proto.V1Networking.IngressBackend.getDefaultInstance()) {
defaultBackend_ =
io.kubernetes.client.proto.V1Networking.IngressBackend.newBuilder(defaultBackend_)
.mergeFrom(value)
.buildPartial();
} else {
defaultBackend_ = value;
}
onChanged();
} else {
defaultBackendBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* DefaultBackend is the backend that should handle requests that don't
* match any rule. If Rules are not specified, DefaultBackend must be specified.
* If DefaultBackend is not set, the handling of requests that do not match any
* of the rules will be up to the Ingress controller.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressBackend defaultBackend = 1;
*/
public Builder clearDefaultBackend() {
if (defaultBackendBuilder_ == null) {
defaultBackend_ = null;
onChanged();
} else {
defaultBackendBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
*
*
*
* DefaultBackend is the backend that should handle requests that don't
* match any rule. If Rules are not specified, DefaultBackend must be specified.
* If DefaultBackend is not set, the handling of requests that do not match any
* of the rules will be up to the Ingress controller.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressBackend defaultBackend = 1;
*/
public io.kubernetes.client.proto.V1Networking.IngressBackend.Builder
getDefaultBackendBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getDefaultBackendFieldBuilder().getBuilder();
}
/**
*
*
*
* DefaultBackend is the backend that should handle requests that don't
* match any rule. If Rules are not specified, DefaultBackend must be specified.
* If DefaultBackend is not set, the handling of requests that do not match any
* of the rules will be up to the Ingress controller.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressBackend defaultBackend = 1;
*/
public io.kubernetes.client.proto.V1Networking.IngressBackendOrBuilder
getDefaultBackendOrBuilder() {
if (defaultBackendBuilder_ != null) {
return defaultBackendBuilder_.getMessageOrBuilder();
} else {
return defaultBackend_ == null
? io.kubernetes.client.proto.V1Networking.IngressBackend.getDefaultInstance()
: defaultBackend_;
}
}
/**
*
*
*
* DefaultBackend is the backend that should handle requests that don't
* match any rule. If Rules are not specified, DefaultBackend must be specified.
* If DefaultBackend is not set, the handling of requests that do not match any
* of the rules will be up to the Ingress controller.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IngressBackend defaultBackend = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.IngressBackend,
io.kubernetes.client.proto.V1Networking.IngressBackend.Builder,
io.kubernetes.client.proto.V1Networking.IngressBackendOrBuilder>
getDefaultBackendFieldBuilder() {
if (defaultBackendBuilder_ == null) {
defaultBackendBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.IngressBackend,
io.kubernetes.client.proto.V1Networking.IngressBackend.Builder,
io.kubernetes.client.proto.V1Networking.IngressBackendOrBuilder>(
getDefaultBackend(), getParentForChildren(), isClean());
defaultBackend_ = null;
}
return defaultBackendBuilder_;
}
private java.util.List tls_ =
java.util.Collections.emptyList();
private void ensureTlsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
tls_ = new java.util.ArrayList(tls_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.IngressTLS,
io.kubernetes.client.proto.V1Networking.IngressTLS.Builder,
io.kubernetes.client.proto.V1Networking.IngressTLSOrBuilder>
tlsBuilder_;
/**
*
*
*
* 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.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressTLS tls = 2;
*/
public java.util.List getTlsList() {
if (tlsBuilder_ == null) {
return java.util.Collections.unmodifiableList(tls_);
} else {
return tlsBuilder_.getMessageList();
}
}
/**
*
*
*
* 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.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.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.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressTLS tls = 2;
*/
public io.kubernetes.client.proto.V1Networking.IngressTLS getTls(int index) {
if (tlsBuilder_ == null) {
return tls_.get(index);
} else {
return tlsBuilder_.getMessage(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.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressTLS tls = 2;
*/
public Builder setTls(int index, io.kubernetes.client.proto.V1Networking.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.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressTLS tls = 2;
*/
public Builder setTls(
int index, io.kubernetes.client.proto.V1Networking.IngressTLS.Builder builderForValue) {
if (tlsBuilder_ == null) {
ensureTlsIsMutable();
tls_.set(index, builderForValue.build());
onChanged();
} else {
tlsBuilder_.setMessage(index, builderForValue.build());
}
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.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressTLS tls = 2;
*/
public Builder addTls(io.kubernetes.client.proto.V1Networking.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.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressTLS tls = 2;
*/
public Builder addTls(int index, io.kubernetes.client.proto.V1Networking.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.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressTLS tls = 2;
*/
public Builder addTls(
io.kubernetes.client.proto.V1Networking.IngressTLS.Builder builderForValue) {
if (tlsBuilder_ == null) {
ensureTlsIsMutable();
tls_.add(builderForValue.build());
onChanged();
} else {
tlsBuilder_.addMessage(builderForValue.build());
}
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.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressTLS tls = 2;
*/
public Builder addTls(
int index, io.kubernetes.client.proto.V1Networking.IngressTLS.Builder builderForValue) {
if (tlsBuilder_ == null) {
ensureTlsIsMutable();
tls_.add(index, builderForValue.build());
onChanged();
} else {
tlsBuilder_.addMessage(index, builderForValue.build());
}
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.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressTLS tls = 2;
*/
public Builder addAllTls(
java.lang.Iterable extends io.kubernetes.client.proto.V1Networking.IngressTLS> values) {
if (tlsBuilder_ == null) {
ensureTlsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tls_);
onChanged();
} else {
tlsBuilder_.addAllMessages(values);
}
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.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressTLS tls = 2;
*/
public Builder clearTls() {
if (tlsBuilder_ == null) {
tls_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
tlsBuilder_.clear();
}
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.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressTLS tls = 2;
*/
public Builder removeTls(int index) {
if (tlsBuilder_ == null) {
ensureTlsIsMutable();
tls_.remove(index);
onChanged();
} else {
tlsBuilder_.remove(index);
}
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.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressTLS tls = 2;
*/
public io.kubernetes.client.proto.V1Networking.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.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressTLS tls = 2;
*/
public io.kubernetes.client.proto.V1Networking.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.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressTLS tls = 2;
*/
public java.util.List extends io.kubernetes.client.proto.V1Networking.IngressTLSOrBuilder>
getTlsOrBuilderList() {
if (tlsBuilder_ != null) {
return tlsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(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.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressTLS tls = 2;
*/
public io.kubernetes.client.proto.V1Networking.IngressTLS.Builder addTlsBuilder() {
return getTlsFieldBuilder()
.addBuilder(io.kubernetes.client.proto.V1Networking.IngressTLS.getDefaultInstance());
}
/**
*
*
*
* 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.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressTLS tls = 2;
*/
public io.kubernetes.client.proto.V1Networking.IngressTLS.Builder addTlsBuilder(int index) {
return getTlsFieldBuilder()
.addBuilder(
index, io.kubernetes.client.proto.V1Networking.IngressTLS.getDefaultInstance());
}
/**
*
*
*
* 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.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressTLS tls = 2;
*/
public java.util.List
getTlsBuilderList() {
return getTlsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.IngressTLS,
io.kubernetes.client.proto.V1Networking.IngressTLS.Builder,
io.kubernetes.client.proto.V1Networking.IngressTLSOrBuilder>
getTlsFieldBuilder() {
if (tlsBuilder_ == null) {
tlsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.IngressTLS,
io.kubernetes.client.proto.V1Networking.IngressTLS.Builder,
io.kubernetes.client.proto.V1Networking.IngressTLSOrBuilder>(
tls_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
tls_ = null;
}
return tlsBuilder_;
}
private java.util.List rules_ =
java.util.Collections.emptyList();
private void ensureRulesIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
rules_ =
new java.util.ArrayList(rules_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.IngressRule,
io.kubernetes.client.proto.V1Networking.IngressRule.Builder,
io.kubernetes.client.proto.V1Networking.IngressRuleOrBuilder>
rulesBuilder_;
/**
*
*
*
* A list of host rules used to configure the Ingress. If unspecified, or
* no rule matches, all traffic is sent to the default backend.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressRule rules = 3;
*/
public java.util.List getRulesList() {
if (rulesBuilder_ == null) {
return java.util.Collections.unmodifiableList(rules_);
} else {
return rulesBuilder_.getMessageList();
}
}
/**
*
*
*
* A list of host rules used to configure the Ingress. If unspecified, or
* no rule matches, all traffic is sent to the default backend.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressRule rules = 3;
*/
public int getRulesCount() {
if (rulesBuilder_ == null) {
return rules_.size();
} else {
return rulesBuilder_.getCount();
}
}
/**
*
*
*
* A list of host rules used to configure the Ingress. If unspecified, or
* no rule matches, all traffic is sent to the default backend.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressRule rules = 3;
*/
public io.kubernetes.client.proto.V1Networking.IngressRule getRules(int index) {
if (rulesBuilder_ == null) {
return rules_.get(index);
} else {
return rulesBuilder_.getMessage(index);
}
}
/**
*
*
*
* A list of host rules used to configure the Ingress. If unspecified, or
* no rule matches, all traffic is sent to the default backend.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressRule rules = 3;
*/
public Builder setRules(
int index, io.kubernetes.client.proto.V1Networking.IngressRule value) {
if (rulesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRulesIsMutable();
rules_.set(index, value);
onChanged();
} else {
rulesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* A list of host rules used to configure the Ingress. If unspecified, or
* no rule matches, all traffic is sent to the default backend.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressRule rules = 3;
*/
public Builder setRules(
int index, io.kubernetes.client.proto.V1Networking.IngressRule.Builder builderForValue) {
if (rulesBuilder_ == null) {
ensureRulesIsMutable();
rules_.set(index, builderForValue.build());
onChanged();
} else {
rulesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of host rules used to configure the Ingress. If unspecified, or
* no rule matches, all traffic is sent to the default backend.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressRule rules = 3;
*/
public Builder addRules(io.kubernetes.client.proto.V1Networking.IngressRule value) {
if (rulesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRulesIsMutable();
rules_.add(value);
onChanged();
} else {
rulesBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* A list of host rules used to configure the Ingress. If unspecified, or
* no rule matches, all traffic is sent to the default backend.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressRule rules = 3;
*/
public Builder addRules(
int index, io.kubernetes.client.proto.V1Networking.IngressRule value) {
if (rulesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRulesIsMutable();
rules_.add(index, value);
onChanged();
} else {
rulesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* A list of host rules used to configure the Ingress. If unspecified, or
* no rule matches, all traffic is sent to the default backend.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressRule rules = 3;
*/
public Builder addRules(
io.kubernetes.client.proto.V1Networking.IngressRule.Builder builderForValue) {
if (rulesBuilder_ == null) {
ensureRulesIsMutable();
rules_.add(builderForValue.build());
onChanged();
} else {
rulesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of host rules used to configure the Ingress. If unspecified, or
* no rule matches, all traffic is sent to the default backend.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressRule rules = 3;
*/
public Builder addRules(
int index, io.kubernetes.client.proto.V1Networking.IngressRule.Builder builderForValue) {
if (rulesBuilder_ == null) {
ensureRulesIsMutable();
rules_.add(index, builderForValue.build());
onChanged();
} else {
rulesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* A list of host rules used to configure the Ingress. If unspecified, or
* no rule matches, all traffic is sent to the default backend.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressRule rules = 3;
*/
public Builder addAllRules(
java.lang.Iterable extends io.kubernetes.client.proto.V1Networking.IngressRule>
values) {
if (rulesBuilder_ == null) {
ensureRulesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rules_);
onChanged();
} else {
rulesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* A list of host rules used to configure the Ingress. If unspecified, or
* no rule matches, all traffic is sent to the default backend.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressRule rules = 3;
*/
public Builder clearRules() {
if (rulesBuilder_ == null) {
rules_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
rulesBuilder_.clear();
}
return this;
}
/**
*
*
*
* A list of host rules used to configure the Ingress. If unspecified, or
* no rule matches, all traffic is sent to the default backend.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressRule rules = 3;
*/
public Builder removeRules(int index) {
if (rulesBuilder_ == null) {
ensureRulesIsMutable();
rules_.remove(index);
onChanged();
} else {
rulesBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* A list of host rules used to configure the Ingress. If unspecified, or
* no rule matches, all traffic is sent to the default backend.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressRule rules = 3;
*/
public io.kubernetes.client.proto.V1Networking.IngressRule.Builder getRulesBuilder(
int index) {
return getRulesFieldBuilder().getBuilder(index);
}
/**
*
*
*
* A list of host rules used to configure the Ingress. If unspecified, or
* no rule matches, all traffic is sent to the default backend.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressRule rules = 3;
*/
public io.kubernetes.client.proto.V1Networking.IngressRuleOrBuilder getRulesOrBuilder(
int index) {
if (rulesBuilder_ == null) {
return rules_.get(index);
} else {
return rulesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* A list of host rules used to configure the Ingress. If unspecified, or
* no rule matches, all traffic is sent to the default backend.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressRule rules = 3;
*/
public java.util.List extends io.kubernetes.client.proto.V1Networking.IngressRuleOrBuilder>
getRulesOrBuilderList() {
if (rulesBuilder_ != null) {
return rulesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(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.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressRule rules = 3;
*/
public io.kubernetes.client.proto.V1Networking.IngressRule.Builder addRulesBuilder() {
return getRulesFieldBuilder()
.addBuilder(io.kubernetes.client.proto.V1Networking.IngressRule.getDefaultInstance());
}
/**
*
*
*
* A list of host rules used to configure the Ingress. If unspecified, or
* no rule matches, all traffic is sent to the default backend.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressRule rules = 3;
*/
public io.kubernetes.client.proto.V1Networking.IngressRule.Builder addRulesBuilder(
int index) {
return getRulesFieldBuilder()
.addBuilder(
index, io.kubernetes.client.proto.V1Networking.IngressRule.getDefaultInstance());
}
/**
*
*
*
* A list of host rules used to configure the Ingress. If unspecified, or
* no rule matches, all traffic is sent to the default backend.
* +listType=atomic
* +optional
*
*
* repeated .k8s.io.api.networking.v1.IngressRule rules = 3;
*/
public java.util.List
getRulesBuilderList() {
return getRulesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.IngressRule,
io.kubernetes.client.proto.V1Networking.IngressRule.Builder,
io.kubernetes.client.proto.V1Networking.IngressRuleOrBuilder>
getRulesFieldBuilder() {
if (rulesBuilder_ == null) {
rulesBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.IngressRule,
io.kubernetes.client.proto.V1Networking.IngressRule.Builder,
io.kubernetes.client.proto.V1Networking.IngressRuleOrBuilder>(
rules_,
((bitField0_ & 0x00000008) == 0x00000008),
getParentForChildren(),
isClean());
rules_ = null;
}
return rulesBuilder_;
}
@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.networking.v1.IngressSpec)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.networking.v1.IngressSpec)
private static final io.kubernetes.client.proto.V1Networking.IngressSpec DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Networking.IngressSpec();
}
public static io.kubernetes.client.proto.V1Networking.IngressSpec getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IngressSpec parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IngressSpec(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.V1Networking.IngressSpec getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IngressStatusOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.networking.v1.IngressStatus)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* LoadBalancer contains the current status of the load-balancer.
* +optional
*
*
* optional .k8s.io.api.core.v1.LoadBalancerStatus loadBalancer = 1;
*/
boolean hasLoadBalancer();
/**
*
*
*
* LoadBalancer contains the current status of the load-balancer.
* +optional
*
*
* optional .k8s.io.api.core.v1.LoadBalancerStatus loadBalancer = 1;
*/
io.kubernetes.client.proto.V1.LoadBalancerStatus getLoadBalancer();
/**
*
*
*
* LoadBalancer contains the current status of the load-balancer.
* +optional
*
*
* optional .k8s.io.api.core.v1.LoadBalancerStatus loadBalancer = 1;
*/
io.kubernetes.client.proto.V1.LoadBalancerStatusOrBuilder getLoadBalancerOrBuilder();
}
/**
*
*
*
* IngressStatus describe the current state of the Ingress.
*
*
* Protobuf type {@code k8s.io.api.networking.v1.IngressStatus}
*/
public static final class IngressStatus extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.networking.v1.IngressStatus)
IngressStatusOrBuilder {
private static final long serialVersionUID = 0L;
// Use IngressStatus.newBuilder() to construct.
private IngressStatus(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IngressStatus() {}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private IngressStatus(
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.V1.LoadBalancerStatus.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = loadBalancer_.toBuilder();
}
loadBalancer_ =
input.readMessage(
io.kubernetes.client.proto.V1.LoadBalancerStatus.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(loadBalancer_);
loadBalancer_ = 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.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.IngressStatus.class,
io.kubernetes.client.proto.V1Networking.IngressStatus.Builder.class);
}
private int bitField0_;
public static final int LOADBALANCER_FIELD_NUMBER = 1;
private io.kubernetes.client.proto.V1.LoadBalancerStatus loadBalancer_;
/**
*
*
*
* LoadBalancer contains the current status of the load-balancer.
* +optional
*
*
* optional .k8s.io.api.core.v1.LoadBalancerStatus loadBalancer = 1;
*/
public boolean hasLoadBalancer() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* LoadBalancer contains the current status of the load-balancer.
* +optional
*
*
* optional .k8s.io.api.core.v1.LoadBalancerStatus loadBalancer = 1;
*/
public io.kubernetes.client.proto.V1.LoadBalancerStatus getLoadBalancer() {
return loadBalancer_ == null
? io.kubernetes.client.proto.V1.LoadBalancerStatus.getDefaultInstance()
: loadBalancer_;
}
/**
*
*
*
* LoadBalancer contains the current status of the load-balancer.
* +optional
*
*
* optional .k8s.io.api.core.v1.LoadBalancerStatus loadBalancer = 1;
*/
public io.kubernetes.client.proto.V1.LoadBalancerStatusOrBuilder getLoadBalancerOrBuilder() {
return loadBalancer_ == null
? io.kubernetes.client.proto.V1.LoadBalancerStatus.getDefaultInstance()
: loadBalancer_;
}
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, getLoadBalancer());
}
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, getLoadBalancer());
}
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.V1Networking.IngressStatus)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1Networking.IngressStatus other =
(io.kubernetes.client.proto.V1Networking.IngressStatus) obj;
boolean result = true;
result = result && (hasLoadBalancer() == other.hasLoadBalancer());
if (hasLoadBalancer()) {
result = result && getLoadBalancer().equals(other.getLoadBalancer());
}
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 (hasLoadBalancer()) {
hash = (37 * hash) + LOADBALANCER_FIELD_NUMBER;
hash = (53 * hash) + getLoadBalancer().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1Networking.IngressStatus parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.IngressStatus 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.V1Networking.IngressStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.IngressStatus 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.V1Networking.IngressStatus parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.IngressStatus parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Networking.IngressStatus parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.IngressStatus 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.V1Networking.IngressStatus parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.IngressStatus 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.V1Networking.IngressStatus parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.IngressStatus 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.V1Networking.IngressStatus 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;
}
/**
*
*
*
* IngressStatus describe the current state of the Ingress.
*
*
* Protobuf type {@code k8s.io.api.networking.v1.IngressStatus}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.networking.v1.IngressStatus)
io.kubernetes.client.proto.V1Networking.IngressStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.IngressStatus.class,
io.kubernetes.client.proto.V1Networking.IngressStatus.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1Networking.IngressStatus.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getLoadBalancerFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (loadBalancerBuilder_ == null) {
loadBalancer_ = null;
} else {
loadBalancerBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressStatus_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IngressStatus getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1Networking.IngressStatus.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IngressStatus build() {
io.kubernetes.client.proto.V1Networking.IngressStatus result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IngressStatus buildPartial() {
io.kubernetes.client.proto.V1Networking.IngressStatus result =
new io.kubernetes.client.proto.V1Networking.IngressStatus(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (loadBalancerBuilder_ == null) {
result.loadBalancer_ = loadBalancer_;
} else {
result.loadBalancer_ = loadBalancerBuilder_.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.V1Networking.IngressStatus) {
return mergeFrom((io.kubernetes.client.proto.V1Networking.IngressStatus) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1Networking.IngressStatus other) {
if (other == io.kubernetes.client.proto.V1Networking.IngressStatus.getDefaultInstance())
return this;
if (other.hasLoadBalancer()) {
mergeLoadBalancer(other.getLoadBalancer());
}
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.V1Networking.IngressStatus parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1Networking.IngressStatus) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.kubernetes.client.proto.V1.LoadBalancerStatus loadBalancer_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1.LoadBalancerStatus,
io.kubernetes.client.proto.V1.LoadBalancerStatus.Builder,
io.kubernetes.client.proto.V1.LoadBalancerStatusOrBuilder>
loadBalancerBuilder_;
/**
*
*
*
* LoadBalancer contains the current status of the load-balancer.
* +optional
*
*
* optional .k8s.io.api.core.v1.LoadBalancerStatus loadBalancer = 1;
*/
public boolean hasLoadBalancer() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* LoadBalancer contains the current status of the load-balancer.
* +optional
*
*
* optional .k8s.io.api.core.v1.LoadBalancerStatus loadBalancer = 1;
*/
public io.kubernetes.client.proto.V1.LoadBalancerStatus getLoadBalancer() {
if (loadBalancerBuilder_ == null) {
return loadBalancer_ == null
? io.kubernetes.client.proto.V1.LoadBalancerStatus.getDefaultInstance()
: loadBalancer_;
} else {
return loadBalancerBuilder_.getMessage();
}
}
/**
*
*
*
* LoadBalancer contains the current status of the load-balancer.
* +optional
*
*
* optional .k8s.io.api.core.v1.LoadBalancerStatus loadBalancer = 1;
*/
public Builder setLoadBalancer(io.kubernetes.client.proto.V1.LoadBalancerStatus value) {
if (loadBalancerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
loadBalancer_ = value;
onChanged();
} else {
loadBalancerBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* LoadBalancer contains the current status of the load-balancer.
* +optional
*
*
* optional .k8s.io.api.core.v1.LoadBalancerStatus loadBalancer = 1;
*/
public Builder setLoadBalancer(
io.kubernetes.client.proto.V1.LoadBalancerStatus.Builder builderForValue) {
if (loadBalancerBuilder_ == null) {
loadBalancer_ = builderForValue.build();
onChanged();
} else {
loadBalancerBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* LoadBalancer contains the current status of the load-balancer.
* +optional
*
*
* optional .k8s.io.api.core.v1.LoadBalancerStatus loadBalancer = 1;
*/
public Builder mergeLoadBalancer(io.kubernetes.client.proto.V1.LoadBalancerStatus value) {
if (loadBalancerBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)
&& loadBalancer_ != null
&& loadBalancer_
!= io.kubernetes.client.proto.V1.LoadBalancerStatus.getDefaultInstance()) {
loadBalancer_ =
io.kubernetes.client.proto.V1.LoadBalancerStatus.newBuilder(loadBalancer_)
.mergeFrom(value)
.buildPartial();
} else {
loadBalancer_ = value;
}
onChanged();
} else {
loadBalancerBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* LoadBalancer contains the current status of the load-balancer.
* +optional
*
*
* optional .k8s.io.api.core.v1.LoadBalancerStatus loadBalancer = 1;
*/
public Builder clearLoadBalancer() {
if (loadBalancerBuilder_ == null) {
loadBalancer_ = null;
onChanged();
} else {
loadBalancerBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
*
*
*
* LoadBalancer contains the current status of the load-balancer.
* +optional
*
*
* optional .k8s.io.api.core.v1.LoadBalancerStatus loadBalancer = 1;
*/
public io.kubernetes.client.proto.V1.LoadBalancerStatus.Builder getLoadBalancerBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getLoadBalancerFieldBuilder().getBuilder();
}
/**
*
*
*
* LoadBalancer contains the current status of the load-balancer.
* +optional
*
*
* optional .k8s.io.api.core.v1.LoadBalancerStatus loadBalancer = 1;
*/
public io.kubernetes.client.proto.V1.LoadBalancerStatusOrBuilder getLoadBalancerOrBuilder() {
if (loadBalancerBuilder_ != null) {
return loadBalancerBuilder_.getMessageOrBuilder();
} else {
return loadBalancer_ == null
? io.kubernetes.client.proto.V1.LoadBalancerStatus.getDefaultInstance()
: loadBalancer_;
}
}
/**
*
*
*
* 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.networking.v1.IngressStatus)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.networking.v1.IngressStatus)
private static final io.kubernetes.client.proto.V1Networking.IngressStatus DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Networking.IngressStatus();
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.IngressStatus getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IngressTLSOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.networking.v1.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.
* +listType=atomic
* +optional
*
*
* repeated string hosts = 1;
*/
java.util.List getHostsList();
/**
*
*
*
* 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.
* +listType=atomic
* +optional
*
*
* repeated string hosts = 1;
*/
int getHostsCount();
/**
*
*
*
* 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.
* +listType=atomic
* +optional
*
*
* repeated string hosts = 1;
*/
java.lang.String getHosts(int index);
/**
*
*
*
* 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.
* +listType=atomic
* +optional
*
*
* repeated string hosts = 1;
*/
com.google.protobuf.ByteString getHostsBytes(int index);
/**
*
*
*
* SecretName is the name of the secret used to terminate TLS traffic on
* port 443. Field is left optional to allow TLS 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;
*/
boolean hasSecretName();
/**
*
*
*
* SecretName is the name of the secret used to terminate TLS traffic on
* port 443. Field is left optional to allow TLS 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;
*/
java.lang.String getSecretName();
/**
*
*
*
* SecretName is the name of the secret used to terminate TLS traffic on
* port 443. Field is left optional to allow TLS 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;
*/
com.google.protobuf.ByteString getSecretNameBytes();
}
/**
*
*
*
* IngressTLS describes the transport layer security associated with an Ingress.
*
*
* Protobuf type {@code k8s.io.api.networking.v1.IngressTLS}
*/
public static final class IngressTLS extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.networking.v1.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.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressTLS_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressTLS_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.IngressTLS.class,
io.kubernetes.client.proto.V1Networking.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.
* +listType=atomic
* +optional
*
*
* repeated string hosts = 1;
*/
public com.google.protobuf.ProtocolStringList getHostsList() {
return 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.
* +listType=atomic
* +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.
* +listType=atomic
* +optional
*
*
* repeated string hosts = 1;
*/
public java.lang.String getHosts(int index) {
return hosts_.get(index);
}
/**
*
*
*
* 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.
* +listType=atomic
* +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 TLS traffic on
* port 443. Field is left optional to allow TLS 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 boolean hasSecretName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* SecretName is the name of the secret used to terminate TLS traffic on
* port 443. Field is left optional to allow TLS 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 java.lang.String getSecretName() {
java.lang.Object ref = secretName_;
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()) {
secretName_ = s;
}
return s;
}
}
/**
*
*
*
* SecretName is the name of the secret used to terminate TLS traffic on
* port 443. Field is left optional to allow TLS 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.V1Networking.IngressTLS)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1Networking.IngressTLS other =
(io.kubernetes.client.proto.V1Networking.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.V1Networking.IngressTLS parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.IngressTLS parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.IngressTLS parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.IngressTLS parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.IngressTLS parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.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.V1Networking.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.V1Networking.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.networking.v1.IngressTLS}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.networking.v1.IngressTLS)
io.kubernetes.client.proto.V1Networking.IngressTLSOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressTLS_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressTLS_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.IngressTLS.class,
io.kubernetes.client.proto.V1Networking.IngressTLS.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1Networking.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.V1Networking
.internal_static_k8s_io_api_networking_v1_IngressTLS_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IngressTLS getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1Networking.IngressTLS.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IngressTLS build() {
io.kubernetes.client.proto.V1Networking.IngressTLS result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.IngressTLS buildPartial() {
io.kubernetes.client.proto.V1Networking.IngressTLS result =
new io.kubernetes.client.proto.V1Networking.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.V1Networking.IngressTLS) {
return mergeFrom((io.kubernetes.client.proto.V1Networking.IngressTLS) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1Networking.IngressTLS other) {
if (other == io.kubernetes.client.proto.V1Networking.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.V1Networking.IngressTLS parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1Networking.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.
* +listType=atomic
* +optional
*
*
* repeated string hosts = 1;
*/
public com.google.protobuf.ProtocolStringList getHostsList() {
return hosts_.getUnmodifiableView();
}
/**
*
*
*
* 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.
* +listType=atomic
* +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.
* +listType=atomic
* +optional
*
*
* repeated string hosts = 1;
*/
public java.lang.String getHosts(int index) {
return hosts_.get(index);
}
/**
*
*
*
* 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.
* +listType=atomic
* +optional
*
*
* repeated string hosts = 1;
*/
public com.google.protobuf.ByteString getHostsBytes(int index) {
return hosts_.getByteString(index);
}
/**
*
*
*
* 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.
* +listType=atomic
* +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.
* +listType=atomic
* +optional
*
*
* repeated string hosts = 1;
*/
public Builder addHosts(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureHostsIsMutable();
hosts_.add(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.
* +listType=atomic
* +optional
*
*
* repeated string hosts = 1;
*/
public Builder addAllHosts(java.lang.Iterable values) {
ensureHostsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hosts_);
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.
* +listType=atomic
* +optional
*
*
* repeated string hosts = 1;
*/
public Builder clearHosts() {
hosts_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
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.
* +listType=atomic
* +optional
*
*
* repeated string hosts = 1;
*/
public Builder addHostsBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureHostsIsMutable();
hosts_.add(value);
onChanged();
return this;
}
private java.lang.Object secretName_ = "";
/**
*
*
*
* SecretName is the name of the secret used to terminate TLS traffic on
* port 443. Field is left optional to allow TLS 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 boolean hasSecretName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* SecretName is the name of the secret used to terminate TLS traffic on
* port 443. Field is left optional to allow TLS 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 java.lang.String getSecretName() {
java.lang.Object ref = secretName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
secretName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* SecretName is the name of the secret used to terminate TLS traffic on
* port 443. Field is left optional to allow TLS 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 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;
}
}
/**
*
*
*
* SecretName is the name of the secret used to terminate TLS traffic on
* port 443. Field is left optional to allow TLS 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 setSecretName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
secretName_ = value;
onChanged();
return this;
}
/**
*
*
*
* SecretName is the name of the secret used to terminate TLS traffic on
* port 443. Field is left optional to allow TLS 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 clearSecretName() {
bitField0_ = (bitField0_ & ~0x00000002);
secretName_ = getDefaultInstance().getSecretName();
onChanged();
return this;
}
/**
*
*
*
* SecretName is the name of the secret used to terminate TLS traffic on
* port 443. Field is left optional to allow TLS 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.networking.v1.IngressTLS)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.networking.v1.IngressTLS)
private static final io.kubernetes.client.proto.V1Networking.IngressTLS DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Networking.IngressTLS();
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.IngressTLS getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NetworkPolicyOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.networking.v1.NetworkPolicy)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
boolean hasMetadata();
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
io.kubernetes.client.proto.Meta.ObjectMeta getMetadata();
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder();
/**
*
*
*
* Specification of the desired behavior for this NetworkPolicy.
* +optional
*
*
* optional .k8s.io.api.networking.v1.NetworkPolicySpec spec = 2;
*/
boolean hasSpec();
/**
*
*
*
* Specification of the desired behavior for this NetworkPolicy.
* +optional
*
*
* optional .k8s.io.api.networking.v1.NetworkPolicySpec spec = 2;
*/
io.kubernetes.client.proto.V1Networking.NetworkPolicySpec getSpec();
/**
*
*
*
* Specification of the desired behavior for this NetworkPolicy.
* +optional
*
*
* optional .k8s.io.api.networking.v1.NetworkPolicySpec spec = 2;
*/
io.kubernetes.client.proto.V1Networking.NetworkPolicySpecOrBuilder getSpecOrBuilder();
}
/**
*
*
*
* NetworkPolicy describes what network traffic is allowed for a set of Pods
*
*
* Protobuf type {@code k8s.io.api.networking.v1.NetworkPolicy}
*/
public static final class NetworkPolicy extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.networking.v1.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.V1Networking.NetworkPolicySpec.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = spec_.toBuilder();
}
spec_ =
input.readMessage(
io.kubernetes.client.proto.V1Networking.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.V1Networking
.internal_static_k8s_io_api_networking_v1_NetworkPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_NetworkPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.NetworkPolicy.class,
io.kubernetes.client.proto.V1Networking.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/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public boolean hasMetadata() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() {
return metadata_ == null
? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()
: metadata_;
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/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.V1Networking.NetworkPolicySpec spec_;
/**
*
*
*
* Specification of the desired behavior for this NetworkPolicy.
* +optional
*
*
* optional .k8s.io.api.networking.v1.NetworkPolicySpec spec = 2;
*/
public boolean hasSpec() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* Specification of the desired behavior for this NetworkPolicy.
* +optional
*
*
* optional .k8s.io.api.networking.v1.NetworkPolicySpec spec = 2;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicySpec getSpec() {
return spec_ == null
? io.kubernetes.client.proto.V1Networking.NetworkPolicySpec.getDefaultInstance()
: spec_;
}
/**
*
*
*
* Specification of the desired behavior for this NetworkPolicy.
* +optional
*
*
* optional .k8s.io.api.networking.v1.NetworkPolicySpec spec = 2;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicySpecOrBuilder getSpecOrBuilder() {
return spec_ == null
? io.kubernetes.client.proto.V1Networking.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.V1Networking.NetworkPolicy)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1Networking.NetworkPolicy other =
(io.kubernetes.client.proto.V1Networking.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.V1Networking.NetworkPolicy parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.NetworkPolicy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.NetworkPolicy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.NetworkPolicy parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.NetworkPolicy parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.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.V1Networking.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.V1Networking.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;
}
/**
*
*
*
* NetworkPolicy describes what network traffic is allowed for a set of Pods
*
*
* Protobuf type {@code k8s.io.api.networking.v1.NetworkPolicy}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.networking.v1.NetworkPolicy)
io.kubernetes.client.proto.V1Networking.NetworkPolicyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_NetworkPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_NetworkPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.NetworkPolicy.class,
io.kubernetes.client.proto.V1Networking.NetworkPolicy.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1Networking.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.V1Networking
.internal_static_k8s_io_api_networking_v1_NetworkPolicy_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.NetworkPolicy getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1Networking.NetworkPolicy.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.NetworkPolicy build() {
io.kubernetes.client.proto.V1Networking.NetworkPolicy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.NetworkPolicy buildPartial() {
io.kubernetes.client.proto.V1Networking.NetworkPolicy result =
new io.kubernetes.client.proto.V1Networking.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.V1Networking.NetworkPolicy) {
return mergeFrom((io.kubernetes.client.proto.V1Networking.NetworkPolicy) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1Networking.NetworkPolicy other) {
if (other == io.kubernetes.client.proto.V1Networking.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.V1Networking.NetworkPolicy parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1Networking.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/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public boolean hasMetadata() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null
? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()
: metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public Builder setMetadata(
io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) {
if (metadataBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)
&& metadata_ != null
&& metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) {
metadata_ =
io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_)
.mergeFrom(value)
.buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null
? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()
: metadata_;
}
}
/**
*
*
*
* Standard object's metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ObjectMeta,
io.kubernetes.client.proto.Meta.ObjectMeta.Builder,
io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ObjectMeta,
io.kubernetes.client.proto.Meta.ObjectMeta.Builder,
io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>(
getMetadata(), getParentForChildren(), isClean());
metadata_ = null;
}
return metadataBuilder_;
}
private io.kubernetes.client.proto.V1Networking.NetworkPolicySpec spec_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.NetworkPolicySpec,
io.kubernetes.client.proto.V1Networking.NetworkPolicySpec.Builder,
io.kubernetes.client.proto.V1Networking.NetworkPolicySpecOrBuilder>
specBuilder_;
/**
*
*
*
* Specification of the desired behavior for this NetworkPolicy.
* +optional
*
*
* optional .k8s.io.api.networking.v1.NetworkPolicySpec spec = 2;
*/
public boolean hasSpec() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* Specification of the desired behavior for this NetworkPolicy.
* +optional
*
*
* optional .k8s.io.api.networking.v1.NetworkPolicySpec spec = 2;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicySpec getSpec() {
if (specBuilder_ == null) {
return spec_ == null
? io.kubernetes.client.proto.V1Networking.NetworkPolicySpec.getDefaultInstance()
: spec_;
} else {
return specBuilder_.getMessage();
}
}
/**
*
*
*
* Specification of the desired behavior for this NetworkPolicy.
* +optional
*
*
* optional .k8s.io.api.networking.v1.NetworkPolicySpec spec = 2;
*/
public Builder setSpec(io.kubernetes.client.proto.V1Networking.NetworkPolicySpec value) {
if (specBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
spec_ = value;
onChanged();
} else {
specBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* Specification of the desired behavior for this NetworkPolicy.
* +optional
*
*
* optional .k8s.io.api.networking.v1.NetworkPolicySpec spec = 2;
*/
public Builder setSpec(
io.kubernetes.client.proto.V1Networking.NetworkPolicySpec.Builder builderForValue) {
if (specBuilder_ == null) {
spec_ = builderForValue.build();
onChanged();
} else {
specBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* Specification of the desired behavior for this NetworkPolicy.
* +optional
*
*
* optional .k8s.io.api.networking.v1.NetworkPolicySpec spec = 2;
*/
public Builder mergeSpec(io.kubernetes.client.proto.V1Networking.NetworkPolicySpec value) {
if (specBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)
&& spec_ != null
&& spec_
!= io.kubernetes.client.proto.V1Networking.NetworkPolicySpec
.getDefaultInstance()) {
spec_ =
io.kubernetes.client.proto.V1Networking.NetworkPolicySpec.newBuilder(spec_)
.mergeFrom(value)
.buildPartial();
} else {
spec_ = value;
}
onChanged();
} else {
specBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* Specification of the desired behavior for this NetworkPolicy.
* +optional
*
*
* optional .k8s.io.api.networking.v1.NetworkPolicySpec spec = 2;
*/
public Builder clearSpec() {
if (specBuilder_ == null) {
spec_ = null;
onChanged();
} else {
specBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
*
*
*
* Specification of the desired behavior for this NetworkPolicy.
* +optional
*
*
* optional .k8s.io.api.networking.v1.NetworkPolicySpec spec = 2;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicySpec.Builder getSpecBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getSpecFieldBuilder().getBuilder();
}
/**
*
*
*
* Specification of the desired behavior for this NetworkPolicy.
* +optional
*
*
* optional .k8s.io.api.networking.v1.NetworkPolicySpec spec = 2;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicySpecOrBuilder getSpecOrBuilder() {
if (specBuilder_ != null) {
return specBuilder_.getMessageOrBuilder();
} else {
return spec_ == null
? io.kubernetes.client.proto.V1Networking.NetworkPolicySpec.getDefaultInstance()
: spec_;
}
}
/**
*
*
*
* Specification of the desired behavior for this NetworkPolicy.
* +optional
*
*
* optional .k8s.io.api.networking.v1.NetworkPolicySpec spec = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.NetworkPolicySpec,
io.kubernetes.client.proto.V1Networking.NetworkPolicySpec.Builder,
io.kubernetes.client.proto.V1Networking.NetworkPolicySpecOrBuilder>
getSpecFieldBuilder() {
if (specBuilder_ == null) {
specBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.NetworkPolicySpec,
io.kubernetes.client.proto.V1Networking.NetworkPolicySpec.Builder,
io.kubernetes.client.proto.V1Networking.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.networking.v1.NetworkPolicy)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.networking.v1.NetworkPolicy)
private static final io.kubernetes.client.proto.V1Networking.NetworkPolicy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Networking.NetworkPolicy();
}
public static io.kubernetes.client.proto.V1Networking.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.V1Networking.NetworkPolicy getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NetworkPolicyEgressRuleOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.networking.v1.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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
java.util.List getPortsList();
/**
*
*
*
* 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
io.kubernetes.client.proto.V1Networking.NetworkPolicyPort getPorts(int index);
/**
*
*
*
* 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
int getPortsCount();
/**
*
*
*
* 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
java.util.List extends io.kubernetes.client.proto.V1Networking.NetworkPolicyPortOrBuilder>
getPortsOrBuilderList();
/**
*
*
*
* 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
io.kubernetes.client.proto.V1Networking.NetworkPolicyPortOrBuilder getPortsOrBuilder(int index);
/**
*
*
*
* 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.networking.v1.NetworkPolicyPeer to = 2;
*/
java.util.List getToList();
/**
*
*
*
* 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.networking.v1.NetworkPolicyPeer to = 2;
*/
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer getTo(int index);
/**
*
*
*
* 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.networking.v1.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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;
*/
java.util.List extends io.kubernetes.client.proto.V1Networking.NetworkPolicyPeerOrBuilder>
getToOrBuilderList();
/**
*
*
*
* 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.networking.v1.NetworkPolicyPeer to = 2;
*/
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeerOrBuilder getToOrBuilder(int index);
}
/**
*
*
*
* 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.networking.v1.NetworkPolicyEgressRule}
*/
public static final class NetworkPolicyEgressRule extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.networking.v1.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<
io.kubernetes.client.proto.V1Networking.NetworkPolicyPort>();
mutable_bitField0_ |= 0x00000001;
}
ports_.add(
input.readMessage(
io.kubernetes.client.proto.V1Networking.NetworkPolicyPort.PARSER,
extensionRegistry));
break;
}
case 18:
{
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
to_ =
new java.util.ArrayList<
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer>();
mutable_bitField0_ |= 0x00000002;
}
to_.add(
input.readMessage(
io.kubernetes.client.proto.V1Networking.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.V1Networking
.internal_static_k8s_io_api_networking_v1_NetworkPolicyEgressRule_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_NetworkPolicyEgressRule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule.class,
io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule.Builder.class);
}
public static final int PORTS_FIELD_NUMBER = 1;
private java.util.List ports_;
/**
*
*
*
* 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public java.util.List
getPortsList() {
return ports_;
}
/**
*
*
*
* 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public java.util.List<
? extends io.kubernetes.client.proto.V1Networking.NetworkPolicyPortOrBuilder>
getPortsOrBuilderList() {
return ports_;
}
/**
*
*
*
* 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public int getPortsCount() {
return ports_.size();
}
/**
*
*
*
* 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyPort getPorts(int index) {
return ports_.get(index);
}
/**
*
*
*
* 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyPortOrBuilder getPortsOrBuilder(
int index) {
return ports_.get(index);
}
public static final int TO_FIELD_NUMBER = 2;
private java.util.List to_;
/**
*
*
*
* 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.networking.v1.NetworkPolicyPeer to = 2;
*/
public java.util.List getToList() {
return to_;
}
/**
*
*
*
* 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.networking.v1.NetworkPolicyPeer to = 2;
*/
public java.util.List<
? extends io.kubernetes.client.proto.V1Networking.NetworkPolicyPeerOrBuilder>
getToOrBuilderList() {
return to_;
}
/**
*
*
*
* 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.networking.v1.NetworkPolicyPeer to = 2;
*/
public int getToCount() {
return to_.size();
}
/**
*
*
*
* 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.networking.v1.NetworkPolicyPeer to = 2;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer getTo(int index) {
return to_.get(index);
}
/**
*
*
*
* 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.networking.v1.NetworkPolicyPeer to = 2;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyPeerOrBuilder getToOrBuilder(
int index) {
return to_.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 < ports_.size(); i++) {
output.writeMessage(1, ports_.get(i));
}
for (int i = 0; i < to_.size(); i++) {
output.writeMessage(2, to_.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 < ports_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, ports_.get(i));
}
for (int i = 0; i < to_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, to_.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.V1Networking.NetworkPolicyEgressRule)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule other =
(io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule) obj;
boolean result = true;
result = result && getPortsList().equals(other.getPortsList());
result = result && getToList().equals(other.getToList());
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 (getPortsCount() > 0) {
hash = (37 * hash) + PORTS_FIELD_NUMBER;
hash = (53 * hash) + getPortsList().hashCode();
}
if (getToCount() > 0) {
hash = (37 * hash) + TO_FIELD_NUMBER;
hash = (53 * hash) + getToList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule 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.V1Networking.NetworkPolicyEgressRule parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule 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.V1Networking.NetworkPolicyEgressRule parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule 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.V1Networking.NetworkPolicyEgressRule
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule
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.V1Networking.NetworkPolicyEgressRule parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule 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.V1Networking.NetworkPolicyEgressRule 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;
}
/**
*
*
*
* 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.networking.v1.NetworkPolicyEgressRule}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.networking.v1.NetworkPolicyEgressRule)
io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRuleOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_NetworkPolicyEgressRule_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_NetworkPolicyEgressRule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule.class,
io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule.Builder.class);
}
// Construct using
// io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getPortsFieldBuilder();
getToFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (portsBuilder_ == null) {
ports_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
portsBuilder_.clear();
}
if (toBuilder_ == null) {
to_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
toBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_NetworkPolicyEgressRule_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule
getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule build() {
io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule buildPartial() {
io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule result =
new io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule(this);
int from_bitField0_ = bitField0_;
if (portsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
ports_ = java.util.Collections.unmodifiableList(ports_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.ports_ = ports_;
} else {
result.ports_ = portsBuilder_.build();
}
if (toBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
to_ = java.util.Collections.unmodifiableList(to_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.to_ = to_;
} else {
result.to_ = toBuilder_.build();
}
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.V1Networking.NetworkPolicyEgressRule) {
return mergeFrom((io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule other) {
if (other
== io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule.getDefaultInstance())
return this;
if (portsBuilder_ == null) {
if (!other.ports_.isEmpty()) {
if (ports_.isEmpty()) {
ports_ = other.ports_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensurePortsIsMutable();
ports_.addAll(other.ports_);
}
onChanged();
}
} else {
if (!other.ports_.isEmpty()) {
if (portsBuilder_.isEmpty()) {
portsBuilder_.dispose();
portsBuilder_ = null;
ports_ = other.ports_;
bitField0_ = (bitField0_ & ~0x00000001);
portsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getPortsFieldBuilder()
: null;
} else {
portsBuilder_.addAllMessages(other.ports_);
}
}
}
if (toBuilder_ == null) {
if (!other.to_.isEmpty()) {
if (to_.isEmpty()) {
to_ = other.to_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureToIsMutable();
to_.addAll(other.to_);
}
onChanged();
}
} else {
if (!other.to_.isEmpty()) {
if (toBuilder_.isEmpty()) {
toBuilder_.dispose();
toBuilder_ = null;
to_ = other.to_;
bitField0_ = (bitField0_ & ~0x00000002);
toBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getToFieldBuilder()
: null;
} else {
toBuilder_.addAllMessages(other.to_);
}
}
}
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.V1Networking.NetworkPolicyEgressRule parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule)
e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List ports_ =
java.util.Collections.emptyList();
private void ensurePortsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
ports_ =
new java.util.ArrayList(
ports_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.NetworkPolicyPort,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPort.Builder,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPortOrBuilder>
portsBuilder_;
/**
*
*
*
* 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public java.util.List
getPortsList() {
if (portsBuilder_ == null) {
return java.util.Collections.unmodifiableList(ports_);
} else {
return portsBuilder_.getMessageList();
}
}
/**
*
*
*
* 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public int getPortsCount() {
if (portsBuilder_ == null) {
return ports_.size();
} else {
return portsBuilder_.getCount();
}
}
/**
*
*
*
* 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyPort getPorts(int index) {
if (portsBuilder_ == null) {
return ports_.get(index);
} else {
return portsBuilder_.getMessage(index);
}
}
/**
*
*
*
* 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public Builder setPorts(
int index, io.kubernetes.client.proto.V1Networking.NetworkPolicyPort value) {
if (portsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePortsIsMutable();
ports_.set(index, value);
onChanged();
} else {
portsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public Builder setPorts(
int index,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPort.Builder builderForValue) {
if (portsBuilder_ == null) {
ensurePortsIsMutable();
ports_.set(index, builderForValue.build());
onChanged();
} else {
portsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public Builder addPorts(io.kubernetes.client.proto.V1Networking.NetworkPolicyPort value) {
if (portsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePortsIsMutable();
ports_.add(value);
onChanged();
} else {
portsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public Builder addPorts(
int index, io.kubernetes.client.proto.V1Networking.NetworkPolicyPort value) {
if (portsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePortsIsMutable();
ports_.add(index, value);
onChanged();
} else {
portsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public Builder addPorts(
io.kubernetes.client.proto.V1Networking.NetworkPolicyPort.Builder builderForValue) {
if (portsBuilder_ == null) {
ensurePortsIsMutable();
ports_.add(builderForValue.build());
onChanged();
} else {
portsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public Builder addPorts(
int index,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPort.Builder builderForValue) {
if (portsBuilder_ == null) {
ensurePortsIsMutable();
ports_.add(index, builderForValue.build());
onChanged();
} else {
portsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public Builder addAllPorts(
java.lang.Iterable extends io.kubernetes.client.proto.V1Networking.NetworkPolicyPort>
values) {
if (portsBuilder_ == null) {
ensurePortsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ports_);
onChanged();
} else {
portsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public Builder clearPorts() {
if (portsBuilder_ == null) {
ports_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
portsBuilder_.clear();
}
return this;
}
/**
*
*
*
* 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public Builder removePorts(int index) {
if (portsBuilder_ == null) {
ensurePortsIsMutable();
ports_.remove(index);
onChanged();
} else {
portsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyPort.Builder getPortsBuilder(
int index) {
return getPortsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyPortOrBuilder getPortsOrBuilder(
int index) {
if (portsBuilder_ == null) {
return ports_.get(index);
} else {
return portsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public java.util.List<
? extends io.kubernetes.client.proto.V1Networking.NetworkPolicyPortOrBuilder>
getPortsOrBuilderList() {
if (portsBuilder_ != null) {
return portsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(ports_);
}
}
/**
*
*
*
* 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyPort.Builder addPortsBuilder() {
return getPortsFieldBuilder()
.addBuilder(
io.kubernetes.client.proto.V1Networking.NetworkPolicyPort.getDefaultInstance());
}
/**
*
*
*
* 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyPort.Builder addPortsBuilder(
int index) {
return getPortsFieldBuilder()
.addBuilder(
index,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPort.getDefaultInstance());
}
/**
*
*
*
* 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public java.util.List
getPortsBuilderList() {
return getPortsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.NetworkPolicyPort,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPort.Builder,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPortOrBuilder>
getPortsFieldBuilder() {
if (portsBuilder_ == null) {
portsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.NetworkPolicyPort,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPort.Builder,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPortOrBuilder>(
ports_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
ports_ = null;
}
return portsBuilder_;
}
private java.util.List to_ =
java.util.Collections.emptyList();
private void ensureToIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
to_ =
new java.util.ArrayList(
to_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer.Builder,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeerOrBuilder>
toBuilder_;
/**
*
*
*
* 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.networking.v1.NetworkPolicyPeer to = 2;
*/
public java.util.List getToList() {
if (toBuilder_ == null) {
return java.util.Collections.unmodifiableList(to_);
} else {
return toBuilder_.getMessageList();
}
}
/**
*
*
*
* 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.networking.v1.NetworkPolicyPeer to = 2;
*/
public int getToCount() {
if (toBuilder_ == null) {
return to_.size();
} else {
return toBuilder_.getCount();
}
}
/**
*
*
*
* 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.networking.v1.NetworkPolicyPeer to = 2;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer getTo(int index) {
if (toBuilder_ == null) {
return to_.get(index);
} else {
return toBuilder_.getMessage(index);
}
}
/**
*
*
*
* 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.networking.v1.NetworkPolicyPeer to = 2;
*/
public Builder setTo(
int index, io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer value) {
if (toBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureToIsMutable();
to_.set(index, value);
onChanged();
} else {
toBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* 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.networking.v1.NetworkPolicyPeer to = 2;
*/
public Builder setTo(
int index,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer.Builder builderForValue) {
if (toBuilder_ == null) {
ensureToIsMutable();
to_.set(index, builderForValue.build());
onChanged();
} else {
toBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* 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.networking.v1.NetworkPolicyPeer to = 2;
*/
public Builder addTo(io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer value) {
if (toBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureToIsMutable();
to_.add(value);
onChanged();
} else {
toBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* 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.networking.v1.NetworkPolicyPeer to = 2;
*/
public Builder addTo(
int index, io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer value) {
if (toBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureToIsMutable();
to_.add(index, value);
onChanged();
} else {
toBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* 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.networking.v1.NetworkPolicyPeer to = 2;
*/
public Builder addTo(
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer.Builder builderForValue) {
if (toBuilder_ == null) {
ensureToIsMutable();
to_.add(builderForValue.build());
onChanged();
} else {
toBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* 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.networking.v1.NetworkPolicyPeer to = 2;
*/
public Builder addTo(
int index,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer.Builder builderForValue) {
if (toBuilder_ == null) {
ensureToIsMutable();
to_.add(index, builderForValue.build());
onChanged();
} else {
toBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* 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.networking.v1.NetworkPolicyPeer to = 2;
*/
public Builder addAllTo(
java.lang.Iterable extends io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer>
values) {
if (toBuilder_ == null) {
ensureToIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, to_);
onChanged();
} else {
toBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* 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.networking.v1.NetworkPolicyPeer to = 2;
*/
public Builder clearTo() {
if (toBuilder_ == null) {
to_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
toBuilder_.clear();
}
return this;
}
/**
*
*
*
* 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.networking.v1.NetworkPolicyPeer to = 2;
*/
public Builder removeTo(int index) {
if (toBuilder_ == null) {
ensureToIsMutable();
to_.remove(index);
onChanged();
} else {
toBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* 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.networking.v1.NetworkPolicyPeer to = 2;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer.Builder getToBuilder(
int index) {
return getToFieldBuilder().getBuilder(index);
}
/**
*
*
*
* 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.networking.v1.NetworkPolicyPeer to = 2;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyPeerOrBuilder getToOrBuilder(
int index) {
if (toBuilder_ == null) {
return to_.get(index);
} else {
return toBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* 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.networking.v1.NetworkPolicyPeer to = 2;
*/
public java.util.List<
? extends io.kubernetes.client.proto.V1Networking.NetworkPolicyPeerOrBuilder>
getToOrBuilderList() {
if (toBuilder_ != null) {
return toBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(to_);
}
}
/**
*
*
*
* 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.networking.v1.NetworkPolicyPeer to = 2;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer.Builder addToBuilder() {
return getToFieldBuilder()
.addBuilder(
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer.getDefaultInstance());
}
/**
*
*
*
* 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.networking.v1.NetworkPolicyPeer to = 2;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer.Builder addToBuilder(
int index) {
return getToFieldBuilder()
.addBuilder(
index,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer.getDefaultInstance());
}
/**
*
*
*
* 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.networking.v1.NetworkPolicyPeer to = 2;
*/
public java.util.List
getToBuilderList() {
return getToFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer.Builder,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeerOrBuilder>
getToFieldBuilder() {
if (toBuilder_ == null) {
toBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer.Builder,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeerOrBuilder>(
to_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
to_ = null;
}
return toBuilder_;
}
@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.networking.v1.NetworkPolicyEgressRule)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.networking.v1.NetworkPolicyEgressRule)
private static final io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule();
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NetworkPolicyEgressRule parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NetworkPolicyEgressRule(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.V1Networking.NetworkPolicyEgressRule
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NetworkPolicyIngressRuleOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.networking.v1.NetworkPolicyIngressRule)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* List of ports which should be made accessible on the pods selected for this
* rule. 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
java.util.List getPortsList();
/**
*
*
*
* List of ports which should be made accessible on the pods selected for this
* rule. 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
io.kubernetes.client.proto.V1Networking.NetworkPolicyPort getPorts(int index);
/**
*
*
*
* List of ports which should be made accessible on the pods selected for this
* rule. 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
int getPortsCount();
/**
*
*
*
* List of ports which should be made accessible on the pods selected for this
* rule. 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
java.util.List extends io.kubernetes.client.proto.V1Networking.NetworkPolicyPortOrBuilder>
getPortsOrBuilderList();
/**
*
*
*
* List of ports which should be made accessible on the pods selected for this
* rule. 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
io.kubernetes.client.proto.V1Networking.NetworkPolicyPortOrBuilder getPortsOrBuilder(int index);
/**
*
*
*
* List of sources which should be able to access the 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 sources (traffic not restricted by
* source). 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 from list.
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
*/
java.util.List getFromList();
/**
*
*
*
* List of sources which should be able to access the 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 sources (traffic not restricted by
* source). 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 from list.
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
*/
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer getFrom(int index);
/**
*
*
*
* List of sources which should be able to access the 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 sources (traffic not restricted by
* source). 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 from list.
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
*/
int getFromCount();
/**
*
*
*
* List of sources which should be able to access the 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 sources (traffic not restricted by
* source). 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 from list.
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
*/
java.util.List extends io.kubernetes.client.proto.V1Networking.NetworkPolicyPeerOrBuilder>
getFromOrBuilderList();
/**
*
*
*
* List of sources which should be able to access the 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 sources (traffic not restricted by
* source). 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 from list.
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
*/
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeerOrBuilder getFromOrBuilder(int index);
}
/**
*
*
*
* NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods
* matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from.
*
*
* Protobuf type {@code k8s.io.api.networking.v1.NetworkPolicyIngressRule}
*/
public static final class NetworkPolicyIngressRule extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.networking.v1.NetworkPolicyIngressRule)
NetworkPolicyIngressRuleOrBuilder {
private static final long serialVersionUID = 0L;
// Use NetworkPolicyIngressRule.newBuilder() to construct.
private NetworkPolicyIngressRule(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NetworkPolicyIngressRule() {
ports_ = java.util.Collections.emptyList();
from_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private NetworkPolicyIngressRule(
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<
io.kubernetes.client.proto.V1Networking.NetworkPolicyPort>();
mutable_bitField0_ |= 0x00000001;
}
ports_.add(
input.readMessage(
io.kubernetes.client.proto.V1Networking.NetworkPolicyPort.PARSER,
extensionRegistry));
break;
}
case 18:
{
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
from_ =
new java.util.ArrayList<
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer>();
mutable_bitField0_ |= 0x00000002;
}
from_.add(
input.readMessage(
io.kubernetes.client.proto.V1Networking.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)) {
from_ = java.util.Collections.unmodifiableList(from_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_NetworkPolicyIngressRule_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_NetworkPolicyIngressRule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule.class,
io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule.Builder.class);
}
public static final int PORTS_FIELD_NUMBER = 1;
private java.util.List ports_;
/**
*
*
*
* List of ports which should be made accessible on the pods selected for this
* rule. 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public java.util.List
getPortsList() {
return ports_;
}
/**
*
*
*
* List of ports which should be made accessible on the pods selected for this
* rule. 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public java.util.List<
? extends io.kubernetes.client.proto.V1Networking.NetworkPolicyPortOrBuilder>
getPortsOrBuilderList() {
return ports_;
}
/**
*
*
*
* List of ports which should be made accessible on the pods selected for this
* rule. 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public int getPortsCount() {
return ports_.size();
}
/**
*
*
*
* List of ports which should be made accessible on the pods selected for this
* rule. 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyPort getPorts(int index) {
return ports_.get(index);
}
/**
*
*
*
* List of ports which should be made accessible on the pods selected for this
* rule. 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyPortOrBuilder getPortsOrBuilder(
int index) {
return ports_.get(index);
}
public static final int FROM_FIELD_NUMBER = 2;
private java.util.List from_;
/**
*
*
*
* List of sources which should be able to access the 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 sources (traffic not restricted by
* source). 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 from list.
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
*/
public java.util.List getFromList() {
return from_;
}
/**
*
*
*
* List of sources which should be able to access the 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 sources (traffic not restricted by
* source). 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 from list.
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
*/
public java.util.List<
? extends io.kubernetes.client.proto.V1Networking.NetworkPolicyPeerOrBuilder>
getFromOrBuilderList() {
return from_;
}
/**
*
*
*
* List of sources which should be able to access the 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 sources (traffic not restricted by
* source). 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 from list.
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
*/
public int getFromCount() {
return from_.size();
}
/**
*
*
*
* List of sources which should be able to access the 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 sources (traffic not restricted by
* source). 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 from list.
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer getFrom(int index) {
return from_.get(index);
}
/**
*
*
*
* List of sources which should be able to access the 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 sources (traffic not restricted by
* source). 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 from list.
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyPeerOrBuilder getFromOrBuilder(
int index) {
return from_.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 < ports_.size(); i++) {
output.writeMessage(1, ports_.get(i));
}
for (int i = 0; i < from_.size(); i++) {
output.writeMessage(2, from_.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 < ports_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, ports_.get(i));
}
for (int i = 0; i < from_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, from_.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.V1Networking.NetworkPolicyIngressRule)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule other =
(io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule) obj;
boolean result = true;
result = result && getPortsList().equals(other.getPortsList());
result = result && getFromList().equals(other.getFromList());
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 (getPortsCount() > 0) {
hash = (37 * hash) + PORTS_FIELD_NUMBER;
hash = (53 * hash) + getPortsList().hashCode();
}
if (getFromCount() > 0) {
hash = (37 * hash) + FROM_FIELD_NUMBER;
hash = (53 * hash) + getFromList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule 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.V1Networking.NetworkPolicyIngressRule parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule 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.V1Networking.NetworkPolicyIngressRule parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule 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.V1Networking.NetworkPolicyIngressRule
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule
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.V1Networking.NetworkPolicyIngressRule parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule 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.V1Networking.NetworkPolicyIngressRule 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;
}
/**
*
*
*
* NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods
* matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from.
*
*
* Protobuf type {@code k8s.io.api.networking.v1.NetworkPolicyIngressRule}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.networking.v1.NetworkPolicyIngressRule)
io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRuleOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_NetworkPolicyIngressRule_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_NetworkPolicyIngressRule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule.class,
io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule.Builder.class);
}
// Construct using
// io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getPortsFieldBuilder();
getFromFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (portsBuilder_ == null) {
ports_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
portsBuilder_.clear();
}
if (fromBuilder_ == null) {
from_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
fromBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_NetworkPolicyIngressRule_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule
getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule
.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule build() {
io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule buildPartial() {
io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule result =
new io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule(this);
int from_bitField0_ = bitField0_;
if (portsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
ports_ = java.util.Collections.unmodifiableList(ports_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.ports_ = ports_;
} else {
result.ports_ = portsBuilder_.build();
}
if (fromBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
from_ = java.util.Collections.unmodifiableList(from_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.from_ = from_;
} else {
result.from_ = fromBuilder_.build();
}
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.V1Networking.NetworkPolicyIngressRule) {
return mergeFrom(
(io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule other) {
if (other
== io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule
.getDefaultInstance()) return this;
if (portsBuilder_ == null) {
if (!other.ports_.isEmpty()) {
if (ports_.isEmpty()) {
ports_ = other.ports_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensurePortsIsMutable();
ports_.addAll(other.ports_);
}
onChanged();
}
} else {
if (!other.ports_.isEmpty()) {
if (portsBuilder_.isEmpty()) {
portsBuilder_.dispose();
portsBuilder_ = null;
ports_ = other.ports_;
bitField0_ = (bitField0_ & ~0x00000001);
portsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getPortsFieldBuilder()
: null;
} else {
portsBuilder_.addAllMessages(other.ports_);
}
}
}
if (fromBuilder_ == null) {
if (!other.from_.isEmpty()) {
if (from_.isEmpty()) {
from_ = other.from_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureFromIsMutable();
from_.addAll(other.from_);
}
onChanged();
}
} else {
if (!other.from_.isEmpty()) {
if (fromBuilder_.isEmpty()) {
fromBuilder_.dispose();
fromBuilder_ = null;
from_ = other.from_;
bitField0_ = (bitField0_ & ~0x00000002);
fromBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getFromFieldBuilder()
: null;
} else {
fromBuilder_.addAllMessages(other.from_);
}
}
}
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.V1Networking.NetworkPolicyIngressRule parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule)
e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List ports_ =
java.util.Collections.emptyList();
private void ensurePortsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
ports_ =
new java.util.ArrayList(
ports_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.NetworkPolicyPort,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPort.Builder,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPortOrBuilder>
portsBuilder_;
/**
*
*
*
* List of ports which should be made accessible on the pods selected for this
* rule. 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public java.util.List
getPortsList() {
if (portsBuilder_ == null) {
return java.util.Collections.unmodifiableList(ports_);
} else {
return portsBuilder_.getMessageList();
}
}
/**
*
*
*
* List of ports which should be made accessible on the pods selected for this
* rule. 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public int getPortsCount() {
if (portsBuilder_ == null) {
return ports_.size();
} else {
return portsBuilder_.getCount();
}
}
/**
*
*
*
* List of ports which should be made accessible on the pods selected for this
* rule. 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyPort getPorts(int index) {
if (portsBuilder_ == null) {
return ports_.get(index);
} else {
return portsBuilder_.getMessage(index);
}
}
/**
*
*
*
* List of ports which should be made accessible on the pods selected for this
* rule. 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public Builder setPorts(
int index, io.kubernetes.client.proto.V1Networking.NetworkPolicyPort value) {
if (portsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePortsIsMutable();
ports_.set(index, value);
onChanged();
} else {
portsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* List of ports which should be made accessible on the pods selected for this
* rule. 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public Builder setPorts(
int index,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPort.Builder builderForValue) {
if (portsBuilder_ == null) {
ensurePortsIsMutable();
ports_.set(index, builderForValue.build());
onChanged();
} else {
portsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* List of ports which should be made accessible on the pods selected for this
* rule. 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public Builder addPorts(io.kubernetes.client.proto.V1Networking.NetworkPolicyPort value) {
if (portsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePortsIsMutable();
ports_.add(value);
onChanged();
} else {
portsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* List of ports which should be made accessible on the pods selected for this
* rule. 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public Builder addPorts(
int index, io.kubernetes.client.proto.V1Networking.NetworkPolicyPort value) {
if (portsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePortsIsMutable();
ports_.add(index, value);
onChanged();
} else {
portsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* List of ports which should be made accessible on the pods selected for this
* rule. 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public Builder addPorts(
io.kubernetes.client.proto.V1Networking.NetworkPolicyPort.Builder builderForValue) {
if (portsBuilder_ == null) {
ensurePortsIsMutable();
ports_.add(builderForValue.build());
onChanged();
} else {
portsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* List of ports which should be made accessible on the pods selected for this
* rule. 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public Builder addPorts(
int index,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPort.Builder builderForValue) {
if (portsBuilder_ == null) {
ensurePortsIsMutable();
ports_.add(index, builderForValue.build());
onChanged();
} else {
portsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* List of ports which should be made accessible on the pods selected for this
* rule. 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public Builder addAllPorts(
java.lang.Iterable extends io.kubernetes.client.proto.V1Networking.NetworkPolicyPort>
values) {
if (portsBuilder_ == null) {
ensurePortsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ports_);
onChanged();
} else {
portsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* List of ports which should be made accessible on the pods selected for this
* rule. 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public Builder clearPorts() {
if (portsBuilder_ == null) {
ports_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
portsBuilder_.clear();
}
return this;
}
/**
*
*
*
* List of ports which should be made accessible on the pods selected for this
* rule. 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public Builder removePorts(int index) {
if (portsBuilder_ == null) {
ensurePortsIsMutable();
ports_.remove(index);
onChanged();
} else {
portsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* List of ports which should be made accessible on the pods selected for this
* rule. 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyPort.Builder getPortsBuilder(
int index) {
return getPortsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* List of ports which should be made accessible on the pods selected for this
* rule. 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyPortOrBuilder getPortsOrBuilder(
int index) {
if (portsBuilder_ == null) {
return ports_.get(index);
} else {
return portsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* List of ports which should be made accessible on the pods selected for this
* rule. 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public java.util.List<
? extends io.kubernetes.client.proto.V1Networking.NetworkPolicyPortOrBuilder>
getPortsOrBuilderList() {
if (portsBuilder_ != null) {
return portsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(ports_);
}
}
/**
*
*
*
* List of ports which should be made accessible on the pods selected for this
* rule. 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyPort.Builder addPortsBuilder() {
return getPortsFieldBuilder()
.addBuilder(
io.kubernetes.client.proto.V1Networking.NetworkPolicyPort.getDefaultInstance());
}
/**
*
*
*
* List of ports which should be made accessible on the pods selected for this
* rule. 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyPort.Builder addPortsBuilder(
int index) {
return getPortsFieldBuilder()
.addBuilder(
index,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPort.getDefaultInstance());
}
/**
*
*
*
* List of ports which should be made accessible on the pods selected for this
* rule. 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
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
*/
public java.util.List
getPortsBuilderList() {
return getPortsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.NetworkPolicyPort,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPort.Builder,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPortOrBuilder>
getPortsFieldBuilder() {
if (portsBuilder_ == null) {
portsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.NetworkPolicyPort,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPort.Builder,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPortOrBuilder>(
ports_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
ports_ = null;
}
return portsBuilder_;
}
private java.util.List from_ =
java.util.Collections.emptyList();
private void ensureFromIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
from_ =
new java.util.ArrayList(
from_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer.Builder,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeerOrBuilder>
fromBuilder_;
/**
*
*
*
* List of sources which should be able to access the 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 sources (traffic not restricted by
* source). 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 from list.
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
*/
public java.util.List
getFromList() {
if (fromBuilder_ == null) {
return java.util.Collections.unmodifiableList(from_);
} else {
return fromBuilder_.getMessageList();
}
}
/**
*
*
*
* List of sources which should be able to access the 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 sources (traffic not restricted by
* source). 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 from list.
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
*/
public int getFromCount() {
if (fromBuilder_ == null) {
return from_.size();
} else {
return fromBuilder_.getCount();
}
}
/**
*
*
*
* List of sources which should be able to access the 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 sources (traffic not restricted by
* source). 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 from list.
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer getFrom(int index) {
if (fromBuilder_ == null) {
return from_.get(index);
} else {
return fromBuilder_.getMessage(index);
}
}
/**
*
*
*
* List of sources which should be able to access the 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 sources (traffic not restricted by
* source). 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 from list.
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
*/
public Builder setFrom(
int index, io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer value) {
if (fromBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFromIsMutable();
from_.set(index, value);
onChanged();
} else {
fromBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* List of sources which should be able to access the 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 sources (traffic not restricted by
* source). 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 from list.
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
*/
public Builder setFrom(
int index,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer.Builder builderForValue) {
if (fromBuilder_ == null) {
ensureFromIsMutable();
from_.set(index, builderForValue.build());
onChanged();
} else {
fromBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* List of sources which should be able to access the 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 sources (traffic not restricted by
* source). 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 from list.
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
*/
public Builder addFrom(io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer value) {
if (fromBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFromIsMutable();
from_.add(value);
onChanged();
} else {
fromBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* List of sources which should be able to access the 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 sources (traffic not restricted by
* source). 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 from list.
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
*/
public Builder addFrom(
int index, io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer value) {
if (fromBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFromIsMutable();
from_.add(index, value);
onChanged();
} else {
fromBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* List of sources which should be able to access the 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 sources (traffic not restricted by
* source). 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 from list.
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
*/
public Builder addFrom(
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer.Builder builderForValue) {
if (fromBuilder_ == null) {
ensureFromIsMutable();
from_.add(builderForValue.build());
onChanged();
} else {
fromBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* List of sources which should be able to access the 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 sources (traffic not restricted by
* source). 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 from list.
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
*/
public Builder addFrom(
int index,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer.Builder builderForValue) {
if (fromBuilder_ == null) {
ensureFromIsMutable();
from_.add(index, builderForValue.build());
onChanged();
} else {
fromBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* List of sources which should be able to access the 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 sources (traffic not restricted by
* source). 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 from list.
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
*/
public Builder addAllFrom(
java.lang.Iterable extends io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer>
values) {
if (fromBuilder_ == null) {
ensureFromIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, from_);
onChanged();
} else {
fromBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* List of sources which should be able to access the 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 sources (traffic not restricted by
* source). 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 from list.
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
*/
public Builder clearFrom() {
if (fromBuilder_ == null) {
from_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
fromBuilder_.clear();
}
return this;
}
/**
*
*
*
* List of sources which should be able to access the 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 sources (traffic not restricted by
* source). 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 from list.
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
*/
public Builder removeFrom(int index) {
if (fromBuilder_ == null) {
ensureFromIsMutable();
from_.remove(index);
onChanged();
} else {
fromBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* List of sources which should be able to access the 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 sources (traffic not restricted by
* source). 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 from list.
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer.Builder getFromBuilder(
int index) {
return getFromFieldBuilder().getBuilder(index);
}
/**
*
*
*
* List of sources which should be able to access the 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 sources (traffic not restricted by
* source). 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 from list.
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyPeerOrBuilder getFromOrBuilder(
int index) {
if (fromBuilder_ == null) {
return from_.get(index);
} else {
return fromBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* List of sources which should be able to access the 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 sources (traffic not restricted by
* source). 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 from list.
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
*/
public java.util.List<
? extends io.kubernetes.client.proto.V1Networking.NetworkPolicyPeerOrBuilder>
getFromOrBuilderList() {
if (fromBuilder_ != null) {
return fromBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(from_);
}
}
/**
*
*
*
* List of sources which should be able to access the 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 sources (traffic not restricted by
* source). 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 from list.
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer.Builder addFromBuilder() {
return getFromFieldBuilder()
.addBuilder(
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer.getDefaultInstance());
}
/**
*
*
*
* List of sources which should be able to access the 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 sources (traffic not restricted by
* source). 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 from list.
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer.Builder addFromBuilder(
int index) {
return getFromFieldBuilder()
.addBuilder(
index,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer.getDefaultInstance());
}
/**
*
*
*
* List of sources which should be able to access the 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 sources (traffic not restricted by
* source). 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 from list.
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
*/
public java.util.List
getFromBuilderList() {
return getFromFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer.Builder,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeerOrBuilder>
getFromFieldBuilder() {
if (fromBuilder_ == null) {
fromBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer.Builder,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeerOrBuilder>(
from_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
from_ = null;
}
return fromBuilder_;
}
@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.networking.v1.NetworkPolicyIngressRule)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.networking.v1.NetworkPolicyIngressRule)
private static final io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule();
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NetworkPolicyIngressRule parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NetworkPolicyIngressRule(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.V1Networking.NetworkPolicyIngressRule
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NetworkPolicyListOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.networking.v1.NetworkPolicyList)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Standard list metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
boolean hasMetadata();
/**
*
*
*
* Standard list metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
io.kubernetes.client.proto.Meta.ListMeta getMetadata();
/**
*
*
*
* Standard list metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder();
/**
*
*
*
* Items is a list of schema objects.
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicy items = 2;
*/
java.util.List getItemsList();
/**
*
*
*
* Items is a list of schema objects.
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicy items = 2;
*/
io.kubernetes.client.proto.V1Networking.NetworkPolicy getItems(int index);
/**
*
*
*
* Items is a list of schema objects.
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicy items = 2;
*/
int getItemsCount();
/**
*
*
*
* Items is a list of schema objects.
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicy items = 2;
*/
java.util.List extends io.kubernetes.client.proto.V1Networking.NetworkPolicyOrBuilder>
getItemsOrBuilderList();
/**
*
*
*
* Items is a list of schema objects.
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicy items = 2;
*/
io.kubernetes.client.proto.V1Networking.NetworkPolicyOrBuilder getItemsOrBuilder(int index);
}
/**
*
*
*
* NetworkPolicyList is a list of NetworkPolicy objects.
*
*
* Protobuf type {@code k8s.io.api.networking.v1.NetworkPolicyList}
*/
public static final class NetworkPolicyList extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.networking.v1.NetworkPolicyList)
NetworkPolicyListOrBuilder {
private static final long serialVersionUID = 0L;
// Use NetworkPolicyList.newBuilder() to construct.
private NetworkPolicyList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NetworkPolicyList() {
items_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private NetworkPolicyList(
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.ListMeta.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = metadata_.toBuilder();
}
metadata_ =
input.readMessage(
io.kubernetes.client.proto.Meta.ListMeta.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18:
{
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
items_ =
new java.util.ArrayList<
io.kubernetes.client.proto.V1Networking.NetworkPolicy>();
mutable_bitField0_ |= 0x00000002;
}
items_.add(
input.readMessage(
io.kubernetes.client.proto.V1Networking.NetworkPolicy.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)) {
items_ = java.util.Collections.unmodifiableList(items_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_NetworkPolicyList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_NetworkPolicyList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.NetworkPolicyList.class,
io.kubernetes.client.proto.V1Networking.NetworkPolicyList.Builder.class);
}
private int bitField0_;
public static final int METADATA_FIELD_NUMBER = 1;
private io.kubernetes.client.proto.Meta.ListMeta metadata_;
/**
*
*
*
* Standard list metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public boolean hasMetadata() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* Standard list metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ListMeta getMetadata() {
return metadata_ == null
? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()
: metadata_;
}
/**
*
*
*
* Standard list metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() {
return metadata_ == null
? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()
: metadata_;
}
public static final int ITEMS_FIELD_NUMBER = 2;
private java.util.List items_;
/**
*
*
*
* Items is a list of schema objects.
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicy items = 2;
*/
public java.util.List getItemsList() {
return items_;
}
/**
*
*
*
* Items is a list of schema objects.
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicy items = 2;
*/
public java.util.List extends io.kubernetes.client.proto.V1Networking.NetworkPolicyOrBuilder>
getItemsOrBuilderList() {
return items_;
}
/**
*
*
*
* Items is a list of schema objects.
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicy items = 2;
*/
public int getItemsCount() {
return items_.size();
}
/**
*
*
*
* Items is a list of schema objects.
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicy items = 2;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicy getItems(int index) {
return items_.get(index);
}
/**
*
*
*
* Items is a list of schema objects.
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicy items = 2;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyOrBuilder getItemsOrBuilder(
int index) {
return items_.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)) {
output.writeMessage(1, getMetadata());
}
for (int i = 0; i < items_.size(); i++) {
output.writeMessage(2, items_.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.CodedOutputStream.computeMessageSize(1, getMetadata());
}
for (int i = 0; i < items_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, items_.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.V1Networking.NetworkPolicyList)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1Networking.NetworkPolicyList other =
(io.kubernetes.client.proto.V1Networking.NetworkPolicyList) obj;
boolean result = true;
result = result && (hasMetadata() == other.hasMetadata());
if (hasMetadata()) {
result = result && getMetadata().equals(other.getMetadata());
}
result = result && getItemsList().equals(other.getItemsList());
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 (getItemsCount() > 0) {
hash = (37 * hash) + ITEMS_FIELD_NUMBER;
hash = (53 * hash) + getItemsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyList parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyList 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.V1Networking.NetworkPolicyList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyList 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.V1Networking.NetworkPolicyList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyList parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyList parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyList 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.V1Networking.NetworkPolicyList parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyList 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.V1Networking.NetworkPolicyList parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyList 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.V1Networking.NetworkPolicyList 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;
}
/**
*
*
*
* NetworkPolicyList is a list of NetworkPolicy objects.
*
*
* Protobuf type {@code k8s.io.api.networking.v1.NetworkPolicyList}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.networking.v1.NetworkPolicyList)
io.kubernetes.client.proto.V1Networking.NetworkPolicyListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_NetworkPolicyList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_NetworkPolicyList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.NetworkPolicyList.class,
io.kubernetes.client.proto.V1Networking.NetworkPolicyList.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1Networking.NetworkPolicyList.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();
getItemsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (itemsBuilder_ == null) {
items_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
itemsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_NetworkPolicyList_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.NetworkPolicyList getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1Networking.NetworkPolicyList.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.NetworkPolicyList build() {
io.kubernetes.client.proto.V1Networking.NetworkPolicyList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.NetworkPolicyList buildPartial() {
io.kubernetes.client.proto.V1Networking.NetworkPolicyList result =
new io.kubernetes.client.proto.V1Networking.NetworkPolicyList(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 (itemsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
items_ = java.util.Collections.unmodifiableList(items_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.items_ = items_;
} else {
result.items_ = itemsBuilder_.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.V1Networking.NetworkPolicyList) {
return mergeFrom((io.kubernetes.client.proto.V1Networking.NetworkPolicyList) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1Networking.NetworkPolicyList other) {
if (other == io.kubernetes.client.proto.V1Networking.NetworkPolicyList.getDefaultInstance())
return this;
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
if (itemsBuilder_ == null) {
if (!other.items_.isEmpty()) {
if (items_.isEmpty()) {
items_ = other.items_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureItemsIsMutable();
items_.addAll(other.items_);
}
onChanged();
}
} else {
if (!other.items_.isEmpty()) {
if (itemsBuilder_.isEmpty()) {
itemsBuilder_.dispose();
itemsBuilder_ = null;
items_ = other.items_;
bitField0_ = (bitField0_ & ~0x00000002);
itemsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getItemsFieldBuilder()
: null;
} else {
itemsBuilder_.addAllMessages(other.items_);
}
}
}
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.V1Networking.NetworkPolicyList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1Networking.NetworkPolicyList) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.kubernetes.client.proto.Meta.ListMeta metadata_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ListMeta,
io.kubernetes.client.proto.Meta.ListMeta.Builder,
io.kubernetes.client.proto.Meta.ListMetaOrBuilder>
metadataBuilder_;
/**
*
*
*
* Standard list metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public boolean hasMetadata() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* Standard list metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ListMeta getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null
? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()
: metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
*
*
*
* Standard list metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* Standard list metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* Standard list metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ListMeta value) {
if (metadataBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)
&& metadata_ != null
&& metadata_ != io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()) {
metadata_ =
io.kubernetes.client.proto.Meta.ListMeta.newBuilder(metadata_)
.mergeFrom(value)
.buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* Standard list metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
*
*
*
* Standard list metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ListMeta.Builder getMetadataBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
*
*
*
* Standard list metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null
? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()
: metadata_;
}
}
/**
*
*
*
* Standard list metadata.
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ListMeta,
io.kubernetes.client.proto.Meta.ListMeta.Builder,
io.kubernetes.client.proto.Meta.ListMetaOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.ListMeta,
io.kubernetes.client.proto.Meta.ListMeta.Builder,
io.kubernetes.client.proto.Meta.ListMetaOrBuilder>(
getMetadata(), getParentForChildren(), isClean());
metadata_ = null;
}
return metadataBuilder_;
}
private java.util.List items_ =
java.util.Collections.emptyList();
private void ensureItemsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
items_ =
new java.util.ArrayList(
items_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.NetworkPolicy,
io.kubernetes.client.proto.V1Networking.NetworkPolicy.Builder,
io.kubernetes.client.proto.V1Networking.NetworkPolicyOrBuilder>
itemsBuilder_;
/**
*
*
*
* Items is a list of schema objects.
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicy items = 2;
*/
public java.util.List getItemsList() {
if (itemsBuilder_ == null) {
return java.util.Collections.unmodifiableList(items_);
} else {
return itemsBuilder_.getMessageList();
}
}
/**
*
*
*
* Items is a list of schema objects.
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicy items = 2;
*/
public int getItemsCount() {
if (itemsBuilder_ == null) {
return items_.size();
} else {
return itemsBuilder_.getCount();
}
}
/**
*
*
*
* Items is a list of schema objects.
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicy items = 2;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicy getItems(int index) {
if (itemsBuilder_ == null) {
return items_.get(index);
} else {
return itemsBuilder_.getMessage(index);
}
}
/**
*
*
*
* Items is a list of schema objects.
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicy items = 2;
*/
public Builder setItems(
int index, io.kubernetes.client.proto.V1Networking.NetworkPolicy value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.set(index, value);
onChanged();
} else {
itemsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* Items is a list of schema objects.
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicy items = 2;
*/
public Builder setItems(
int index,
io.kubernetes.client.proto.V1Networking.NetworkPolicy.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.set(index, builderForValue.build());
onChanged();
} else {
itemsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Items is a list of schema objects.
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicy items = 2;
*/
public Builder addItems(io.kubernetes.client.proto.V1Networking.NetworkPolicy value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.add(value);
onChanged();
} else {
itemsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* Items is a list of schema objects.
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicy items = 2;
*/
public Builder addItems(
int index, io.kubernetes.client.proto.V1Networking.NetworkPolicy value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.add(index, value);
onChanged();
} else {
itemsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* Items is a list of schema objects.
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicy items = 2;
*/
public Builder addItems(
io.kubernetes.client.proto.V1Networking.NetworkPolicy.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(builderForValue.build());
onChanged();
} else {
itemsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* Items is a list of schema objects.
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicy items = 2;
*/
public Builder addItems(
int index,
io.kubernetes.client.proto.V1Networking.NetworkPolicy.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(index, builderForValue.build());
onChanged();
} else {
itemsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Items is a list of schema objects.
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicy items = 2;
*/
public Builder addAllItems(
java.lang.Iterable extends io.kubernetes.client.proto.V1Networking.NetworkPolicy>
values) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_);
onChanged();
} else {
itemsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* Items is a list of schema objects.
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicy items = 2;
*/
public Builder clearItems() {
if (itemsBuilder_ == null) {
items_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
itemsBuilder_.clear();
}
return this;
}
/**
*
*
*
* Items is a list of schema objects.
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicy items = 2;
*/
public Builder removeItems(int index) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.remove(index);
onChanged();
} else {
itemsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* Items is a list of schema objects.
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicy items = 2;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicy.Builder getItemsBuilder(
int index) {
return getItemsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* Items is a list of schema objects.
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicy items = 2;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyOrBuilder getItemsOrBuilder(
int index) {
if (itemsBuilder_ == null) {
return items_.get(index);
} else {
return itemsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* Items is a list of schema objects.
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicy items = 2;
*/
public java.util.List<
? extends io.kubernetes.client.proto.V1Networking.NetworkPolicyOrBuilder>
getItemsOrBuilderList() {
if (itemsBuilder_ != null) {
return itemsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(items_);
}
}
/**
*
*
*
* Items is a list of schema objects.
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicy items = 2;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicy.Builder addItemsBuilder() {
return getItemsFieldBuilder()
.addBuilder(io.kubernetes.client.proto.V1Networking.NetworkPolicy.getDefaultInstance());
}
/**
*
*
*
* Items is a list of schema objects.
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicy items = 2;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicy.Builder addItemsBuilder(
int index) {
return getItemsFieldBuilder()
.addBuilder(
index, io.kubernetes.client.proto.V1Networking.NetworkPolicy.getDefaultInstance());
}
/**
*
*
*
* Items is a list of schema objects.
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicy items = 2;
*/
public java.util.List
getItemsBuilderList() {
return getItemsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.NetworkPolicy,
io.kubernetes.client.proto.V1Networking.NetworkPolicy.Builder,
io.kubernetes.client.proto.V1Networking.NetworkPolicyOrBuilder>
getItemsFieldBuilder() {
if (itemsBuilder_ == null) {
itemsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.NetworkPolicy,
io.kubernetes.client.proto.V1Networking.NetworkPolicy.Builder,
io.kubernetes.client.proto.V1Networking.NetworkPolicyOrBuilder>(
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.networking.v1.NetworkPolicyList)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.networking.v1.NetworkPolicyList)
private static final io.kubernetes.client.proto.V1Networking.NetworkPolicyList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Networking.NetworkPolicyList();
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NetworkPolicyList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NetworkPolicyList(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.V1Networking.NetworkPolicyList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NetworkPolicyPeerOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.networking.v1.NetworkPolicyPeer)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* This is a label selector which selects Pods. This field follows standard label
* selector semantics; if present but empty, it selects all pods.
* If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects
* the Pods matching PodSelector in the Namespaces selected by NamespaceSelector.
* Otherwise it selects the Pods matching PodSelector in the policy's own Namespace.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
*/
boolean hasPodSelector();
/**
*
*
*
* This is a label selector which selects Pods. This field follows standard label
* selector semantics; if present but empty, it selects all pods.
* If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects
* the Pods matching PodSelector in the Namespaces selected by NamespaceSelector.
* Otherwise it selects the Pods matching PodSelector in the policy's own Namespace.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
*/
io.kubernetes.client.proto.Meta.LabelSelector getPodSelector();
/**
*
*
*
* This is a label selector which selects Pods. This field follows standard label
* selector semantics; if present but empty, it selects all pods.
* If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects
* the Pods matching PodSelector in the Namespaces selected by NamespaceSelector.
* Otherwise it selects the Pods matching PodSelector in the policy's own Namespace.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
*/
io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getPodSelectorOrBuilder();
/**
*
*
*
* Selects Namespaces using cluster-scoped labels. This field follows standard label
* selector semantics; if present but empty, it selects all namespaces.
* If PodSelector is also set, then the NetworkPolicyPeer as a whole selects
* the Pods matching PodSelector in the Namespaces selected by NamespaceSelector.
* Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 2;
*
*/
boolean hasNamespaceSelector();
/**
*
*
*
* Selects Namespaces using cluster-scoped labels. This field follows standard label
* selector semantics; if present but empty, it selects all namespaces.
* If PodSelector is also set, then the NetworkPolicyPeer as a whole selects
* the Pods matching PodSelector in the Namespaces selected by NamespaceSelector.
* Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 2;
*
*/
io.kubernetes.client.proto.Meta.LabelSelector getNamespaceSelector();
/**
*
*
*
* Selects Namespaces using cluster-scoped labels. This field follows standard label
* selector semantics; if present but empty, it selects all namespaces.
* If PodSelector is also set, then the NetworkPolicyPeer as a whole selects
* the Pods matching PodSelector in the Namespaces selected by NamespaceSelector.
* Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 2;
*
*/
io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getNamespaceSelectorOrBuilder();
/**
*
*
*
* IPBlock defines policy on a particular IPBlock. If this field is set then
* neither of the other fields can be.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3;
*/
boolean hasIpBlock();
/**
*
*
*
* IPBlock defines policy on a particular IPBlock. If this field is set then
* neither of the other fields can be.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3;
*/
io.kubernetes.client.proto.V1Networking.IPBlock getIpBlock();
/**
*
*
*
* IPBlock defines policy on a particular IPBlock. If this field is set then
* neither of the other fields can be.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3;
*/
io.kubernetes.client.proto.V1Networking.IPBlockOrBuilder getIpBlockOrBuilder();
}
/**
*
*
*
* NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of
* fields are allowed
*
*
* Protobuf type {@code k8s.io.api.networking.v1.NetworkPolicyPeer}
*/
public static final class NetworkPolicyPeer extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.networking.v1.NetworkPolicyPeer)
NetworkPolicyPeerOrBuilder {
private static final long serialVersionUID = 0L;
// Use NetworkPolicyPeer.newBuilder() to construct.
private NetworkPolicyPeer(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NetworkPolicyPeer() {}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private NetworkPolicyPeer(
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 = podSelector_.toBuilder();
}
podSelector_ =
input.readMessage(
io.kubernetes.client.proto.Meta.LabelSelector.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(podSelector_);
podSelector_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18:
{
io.kubernetes.client.proto.Meta.LabelSelector.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = namespaceSelector_.toBuilder();
}
namespaceSelector_ =
input.readMessage(
io.kubernetes.client.proto.Meta.LabelSelector.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(namespaceSelector_);
namespaceSelector_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26:
{
io.kubernetes.client.proto.V1Networking.IPBlock.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = ipBlock_.toBuilder();
}
ipBlock_ =
input.readMessage(
io.kubernetes.client.proto.V1Networking.IPBlock.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(ipBlock_);
ipBlock_ = 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.V1Networking
.internal_static_k8s_io_api_networking_v1_NetworkPolicyPeer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_NetworkPolicyPeer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer.class,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer.Builder.class);
}
private int bitField0_;
public static final int PODSELECTOR_FIELD_NUMBER = 1;
private io.kubernetes.client.proto.Meta.LabelSelector podSelector_;
/**
*
*
*
* This is a label selector which selects Pods. This field follows standard label
* selector semantics; if present but empty, it selects all pods.
* If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects
* the Pods matching PodSelector in the Namespaces selected by NamespaceSelector.
* Otherwise it selects the Pods matching PodSelector in the policy's own Namespace.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
*/
public boolean hasPodSelector() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* This is a label selector which selects Pods. This field follows standard label
* selector semantics; if present but empty, it selects all pods.
* If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects
* the Pods matching PodSelector in the Namespaces selected by NamespaceSelector.
* Otherwise it selects the Pods matching PodSelector in the policy's own Namespace.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
*/
public io.kubernetes.client.proto.Meta.LabelSelector getPodSelector() {
return podSelector_ == null
? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance()
: podSelector_;
}
/**
*
*
*
* This is a label selector which selects Pods. This field follows standard label
* selector semantics; if present but empty, it selects all pods.
* If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects
* the Pods matching PodSelector in the Namespaces selected by NamespaceSelector.
* Otherwise it selects the Pods matching PodSelector in the policy's own Namespace.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
*/
public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getPodSelectorOrBuilder() {
return podSelector_ == null
? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance()
: podSelector_;
}
public static final int NAMESPACESELECTOR_FIELD_NUMBER = 2;
private io.kubernetes.client.proto.Meta.LabelSelector namespaceSelector_;
/**
*
*
*
* Selects Namespaces using cluster-scoped labels. This field follows standard label
* selector semantics; if present but empty, it selects all namespaces.
* If PodSelector is also set, then the NetworkPolicyPeer as a whole selects
* the Pods matching PodSelector in the Namespaces selected by NamespaceSelector.
* Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 2;
*
*/
public boolean hasNamespaceSelector() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* Selects Namespaces using cluster-scoped labels. This field follows standard label
* selector semantics; if present but empty, it selects all namespaces.
* If PodSelector is also set, then the NetworkPolicyPeer as a whole selects
* the Pods matching PodSelector in the Namespaces selected by NamespaceSelector.
* Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 2;
*
*/
public io.kubernetes.client.proto.Meta.LabelSelector getNamespaceSelector() {
return namespaceSelector_ == null
? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance()
: namespaceSelector_;
}
/**
*
*
*
* Selects Namespaces using cluster-scoped labels. This field follows standard label
* selector semantics; if present but empty, it selects all namespaces.
* If PodSelector is also set, then the NetworkPolicyPeer as a whole selects
* the Pods matching PodSelector in the Namespaces selected by NamespaceSelector.
* Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 2;
*
*/
public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getNamespaceSelectorOrBuilder() {
return namespaceSelector_ == null
? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance()
: namespaceSelector_;
}
public static final int IPBLOCK_FIELD_NUMBER = 3;
private io.kubernetes.client.proto.V1Networking.IPBlock ipBlock_;
/**
*
*
*
* IPBlock defines policy on a particular IPBlock. If this field is set then
* neither of the other fields can be.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3;
*/
public boolean hasIpBlock() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
*
*
* IPBlock defines policy on a particular IPBlock. If this field is set then
* neither of the other fields can be.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3;
*/
public io.kubernetes.client.proto.V1Networking.IPBlock getIpBlock() {
return ipBlock_ == null
? io.kubernetes.client.proto.V1Networking.IPBlock.getDefaultInstance()
: ipBlock_;
}
/**
*
*
*
* IPBlock defines policy on a particular IPBlock. If this field is set then
* neither of the other fields can be.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3;
*/
public io.kubernetes.client.proto.V1Networking.IPBlockOrBuilder getIpBlockOrBuilder() {
return ipBlock_ == null
? io.kubernetes.client.proto.V1Networking.IPBlock.getDefaultInstance()
: ipBlock_;
}
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, getPodSelector());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getNamespaceSelector());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, getIpBlock());
}
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, getPodSelector());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getNamespaceSelector());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getIpBlock());
}
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.V1Networking.NetworkPolicyPeer)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer other =
(io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer) obj;
boolean result = true;
result = result && (hasPodSelector() == other.hasPodSelector());
if (hasPodSelector()) {
result = result && getPodSelector().equals(other.getPodSelector());
}
result = result && (hasNamespaceSelector() == other.hasNamespaceSelector());
if (hasNamespaceSelector()) {
result = result && getNamespaceSelector().equals(other.getNamespaceSelector());
}
result = result && (hasIpBlock() == other.hasIpBlock());
if (hasIpBlock()) {
result = result && getIpBlock().equals(other.getIpBlock());
}
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 (hasPodSelector()) {
hash = (37 * hash) + PODSELECTOR_FIELD_NUMBER;
hash = (53 * hash) + getPodSelector().hashCode();
}
if (hasNamespaceSelector()) {
hash = (37 * hash) + NAMESPACESELECTOR_FIELD_NUMBER;
hash = (53 * hash) + getNamespaceSelector().hashCode();
}
if (hasIpBlock()) {
hash = (37 * hash) + IPBLOCK_FIELD_NUMBER;
hash = (53 * hash) + getIpBlock().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer 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.V1Networking.NetworkPolicyPeer parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer 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.V1Networking.NetworkPolicyPeer parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer 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.V1Networking.NetworkPolicyPeer parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer 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.V1Networking.NetworkPolicyPeer parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer 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.V1Networking.NetworkPolicyPeer 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;
}
/**
*
*
*
* NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of
* fields are allowed
*
*
* Protobuf type {@code k8s.io.api.networking.v1.NetworkPolicyPeer}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.networking.v1.NetworkPolicyPeer)
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_NetworkPolicyPeer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_NetworkPolicyPeer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer.class,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getPodSelectorFieldBuilder();
getNamespaceSelectorFieldBuilder();
getIpBlockFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (podSelectorBuilder_ == null) {
podSelector_ = null;
} else {
podSelectorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (namespaceSelectorBuilder_ == null) {
namespaceSelector_ = null;
} else {
namespaceSelectorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (ipBlockBuilder_ == null) {
ipBlock_ = null;
} else {
ipBlockBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_NetworkPolicyPeer_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer build() {
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer buildPartial() {
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer result =
new io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (podSelectorBuilder_ == null) {
result.podSelector_ = podSelector_;
} else {
result.podSelector_ = podSelectorBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (namespaceSelectorBuilder_ == null) {
result.namespaceSelector_ = namespaceSelector_;
} else {
result.namespaceSelector_ = namespaceSelectorBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (ipBlockBuilder_ == null) {
result.ipBlock_ = ipBlock_;
} else {
result.ipBlock_ = ipBlockBuilder_.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.V1Networking.NetworkPolicyPeer) {
return mergeFrom((io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer other) {
if (other == io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer.getDefaultInstance())
return this;
if (other.hasPodSelector()) {
mergePodSelector(other.getPodSelector());
}
if (other.hasNamespaceSelector()) {
mergeNamespaceSelector(other.getNamespaceSelector());
}
if (other.hasIpBlock()) {
mergeIpBlock(other.getIpBlock());
}
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.V1Networking.NetworkPolicyPeer parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.kubernetes.client.proto.Meta.LabelSelector podSelector_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.LabelSelector,
io.kubernetes.client.proto.Meta.LabelSelector.Builder,
io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder>
podSelectorBuilder_;
/**
*
*
*
* This is a label selector which selects Pods. This field follows standard label
* selector semantics; if present but empty, it selects all pods.
* If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects
* the Pods matching PodSelector in the Namespaces selected by NamespaceSelector.
* Otherwise it selects the Pods matching PodSelector in the policy's own Namespace.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
*/
public boolean hasPodSelector() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* This is a label selector which selects Pods. This field follows standard label
* selector semantics; if present but empty, it selects all pods.
* If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects
* the Pods matching PodSelector in the Namespaces selected by NamespaceSelector.
* Otherwise it selects the Pods matching PodSelector in the policy's own Namespace.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
*/
public io.kubernetes.client.proto.Meta.LabelSelector getPodSelector() {
if (podSelectorBuilder_ == null) {
return podSelector_ == null
? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance()
: podSelector_;
} else {
return podSelectorBuilder_.getMessage();
}
}
/**
*
*
*
* This is a label selector which selects Pods. This field follows standard label
* selector semantics; if present but empty, it selects all pods.
* If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects
* the Pods matching PodSelector in the Namespaces selected by NamespaceSelector.
* Otherwise it selects the Pods matching PodSelector in the policy's own Namespace.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
*/
public Builder setPodSelector(io.kubernetes.client.proto.Meta.LabelSelector value) {
if (podSelectorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
podSelector_ = value;
onChanged();
} else {
podSelectorBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* This is a label selector which selects Pods. This field follows standard label
* selector semantics; if present but empty, it selects all pods.
* If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects
* the Pods matching PodSelector in the Namespaces selected by NamespaceSelector.
* Otherwise it selects the Pods matching PodSelector in the policy's own Namespace.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
*/
public Builder setPodSelector(
io.kubernetes.client.proto.Meta.LabelSelector.Builder builderForValue) {
if (podSelectorBuilder_ == null) {
podSelector_ = builderForValue.build();
onChanged();
} else {
podSelectorBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* This is a label selector which selects Pods. This field follows standard label
* selector semantics; if present but empty, it selects all pods.
* If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects
* the Pods matching PodSelector in the Namespaces selected by NamespaceSelector.
* Otherwise it selects the Pods matching PodSelector in the policy's own Namespace.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
*/
public Builder mergePodSelector(io.kubernetes.client.proto.Meta.LabelSelector value) {
if (podSelectorBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)
&& podSelector_ != null
&& podSelector_
!= io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance()) {
podSelector_ =
io.kubernetes.client.proto.Meta.LabelSelector.newBuilder(podSelector_)
.mergeFrom(value)
.buildPartial();
} else {
podSelector_ = value;
}
onChanged();
} else {
podSelectorBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* This is a label selector which selects Pods. This field follows standard label
* selector semantics; if present but empty, it selects all pods.
* If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects
* the Pods matching PodSelector in the Namespaces selected by NamespaceSelector.
* Otherwise it selects the Pods matching PodSelector in the policy's own Namespace.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
*/
public Builder clearPodSelector() {
if (podSelectorBuilder_ == null) {
podSelector_ = null;
onChanged();
} else {
podSelectorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
*
*
*
* This is a label selector which selects Pods. This field follows standard label
* selector semantics; if present but empty, it selects all pods.
* If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects
* the Pods matching PodSelector in the Namespaces selected by NamespaceSelector.
* Otherwise it selects the Pods matching PodSelector in the policy's own Namespace.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
*/
public io.kubernetes.client.proto.Meta.LabelSelector.Builder getPodSelectorBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getPodSelectorFieldBuilder().getBuilder();
}
/**
*
*
*
* This is a label selector which selects Pods. This field follows standard label
* selector semantics; if present but empty, it selects all pods.
* If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects
* the Pods matching PodSelector in the Namespaces selected by NamespaceSelector.
* Otherwise it selects the Pods matching PodSelector in the policy's own Namespace.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
*/
public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getPodSelectorOrBuilder() {
if (podSelectorBuilder_ != null) {
return podSelectorBuilder_.getMessageOrBuilder();
} else {
return podSelector_ == null
? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance()
: podSelector_;
}
}
/**
*
*
*
* This is a label selector which selects Pods. This field follows standard label
* selector semantics; if present but empty, it selects all pods.
* If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects
* the Pods matching PodSelector in the Namespaces selected by NamespaceSelector.
* Otherwise it selects the Pods matching PodSelector in the policy's own Namespace.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.LabelSelector,
io.kubernetes.client.proto.Meta.LabelSelector.Builder,
io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder>
getPodSelectorFieldBuilder() {
if (podSelectorBuilder_ == null) {
podSelectorBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.LabelSelector,
io.kubernetes.client.proto.Meta.LabelSelector.Builder,
io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder>(
getPodSelector(), getParentForChildren(), isClean());
podSelector_ = null;
}
return podSelectorBuilder_;
}
private io.kubernetes.client.proto.Meta.LabelSelector namespaceSelector_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.LabelSelector,
io.kubernetes.client.proto.Meta.LabelSelector.Builder,
io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder>
namespaceSelectorBuilder_;
/**
*
*
*
* Selects Namespaces using cluster-scoped labels. This field follows standard label
* selector semantics; if present but empty, it selects all namespaces.
* If PodSelector is also set, then the NetworkPolicyPeer as a whole selects
* the Pods matching PodSelector in the Namespaces selected by NamespaceSelector.
* Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 2;
*
*/
public boolean hasNamespaceSelector() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* Selects Namespaces using cluster-scoped labels. This field follows standard label
* selector semantics; if present but empty, it selects all namespaces.
* If PodSelector is also set, then the NetworkPolicyPeer as a whole selects
* the Pods matching PodSelector in the Namespaces selected by NamespaceSelector.
* Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 2;
*
*/
public io.kubernetes.client.proto.Meta.LabelSelector getNamespaceSelector() {
if (namespaceSelectorBuilder_ == null) {
return namespaceSelector_ == null
? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance()
: namespaceSelector_;
} else {
return namespaceSelectorBuilder_.getMessage();
}
}
/**
*
*
*
* Selects Namespaces using cluster-scoped labels. This field follows standard label
* selector semantics; if present but empty, it selects all namespaces.
* If PodSelector is also set, then the NetworkPolicyPeer as a whole selects
* the Pods matching PodSelector in the Namespaces selected by NamespaceSelector.
* Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 2;
*
*/
public Builder setNamespaceSelector(io.kubernetes.client.proto.Meta.LabelSelector value) {
if (namespaceSelectorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
namespaceSelector_ = value;
onChanged();
} else {
namespaceSelectorBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* Selects Namespaces using cluster-scoped labels. This field follows standard label
* selector semantics; if present but empty, it selects all namespaces.
* If PodSelector is also set, then the NetworkPolicyPeer as a whole selects
* the Pods matching PodSelector in the Namespaces selected by NamespaceSelector.
* Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 2;
*
*/
public Builder setNamespaceSelector(
io.kubernetes.client.proto.Meta.LabelSelector.Builder builderForValue) {
if (namespaceSelectorBuilder_ == null) {
namespaceSelector_ = builderForValue.build();
onChanged();
} else {
namespaceSelectorBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* Selects Namespaces using cluster-scoped labels. This field follows standard label
* selector semantics; if present but empty, it selects all namespaces.
* If PodSelector is also set, then the NetworkPolicyPeer as a whole selects
* the Pods matching PodSelector in the Namespaces selected by NamespaceSelector.
* Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 2;
*
*/
public Builder mergeNamespaceSelector(io.kubernetes.client.proto.Meta.LabelSelector value) {
if (namespaceSelectorBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)
&& namespaceSelector_ != null
&& namespaceSelector_
!= io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance()) {
namespaceSelector_ =
io.kubernetes.client.proto.Meta.LabelSelector.newBuilder(namespaceSelector_)
.mergeFrom(value)
.buildPartial();
} else {
namespaceSelector_ = value;
}
onChanged();
} else {
namespaceSelectorBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* Selects Namespaces using cluster-scoped labels. This field follows standard label
* selector semantics; if present but empty, it selects all namespaces.
* If PodSelector is also set, then the NetworkPolicyPeer as a whole selects
* the Pods matching PodSelector in the Namespaces selected by NamespaceSelector.
* Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 2;
*
*/
public Builder clearNamespaceSelector() {
if (namespaceSelectorBuilder_ == null) {
namespaceSelector_ = null;
onChanged();
} else {
namespaceSelectorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
*
*
*
* Selects Namespaces using cluster-scoped labels. This field follows standard label
* selector semantics; if present but empty, it selects all namespaces.
* If PodSelector is also set, then the NetworkPolicyPeer as a whole selects
* the Pods matching PodSelector in the Namespaces selected by NamespaceSelector.
* Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 2;
*
*/
public io.kubernetes.client.proto.Meta.LabelSelector.Builder getNamespaceSelectorBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getNamespaceSelectorFieldBuilder().getBuilder();
}
/**
*
*
*
* Selects Namespaces using cluster-scoped labels. This field follows standard label
* selector semantics; if present but empty, it selects all namespaces.
* If PodSelector is also set, then the NetworkPolicyPeer as a whole selects
* the Pods matching PodSelector in the Namespaces selected by NamespaceSelector.
* Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 2;
*
*/
public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder
getNamespaceSelectorOrBuilder() {
if (namespaceSelectorBuilder_ != null) {
return namespaceSelectorBuilder_.getMessageOrBuilder();
} else {
return namespaceSelector_ == null
? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance()
: namespaceSelector_;
}
}
/**
*
*
*
* Selects Namespaces using cluster-scoped labels. This field follows standard label
* selector semantics; if present but empty, it selects all namespaces.
* If PodSelector is also set, then the NetworkPolicyPeer as a whole selects
* the Pods matching PodSelector in the Namespaces selected by NamespaceSelector.
* Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 2;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.LabelSelector,
io.kubernetes.client.proto.Meta.LabelSelector.Builder,
io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder>
getNamespaceSelectorFieldBuilder() {
if (namespaceSelectorBuilder_ == null) {
namespaceSelectorBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.LabelSelector,
io.kubernetes.client.proto.Meta.LabelSelector.Builder,
io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder>(
getNamespaceSelector(), getParentForChildren(), isClean());
namespaceSelector_ = null;
}
return namespaceSelectorBuilder_;
}
private io.kubernetes.client.proto.V1Networking.IPBlock ipBlock_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.IPBlock,
io.kubernetes.client.proto.V1Networking.IPBlock.Builder,
io.kubernetes.client.proto.V1Networking.IPBlockOrBuilder>
ipBlockBuilder_;
/**
*
*
*
* IPBlock defines policy on a particular IPBlock. If this field is set then
* neither of the other fields can be.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3;
*/
public boolean hasIpBlock() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
*
*
* IPBlock defines policy on a particular IPBlock. If this field is set then
* neither of the other fields can be.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3;
*/
public io.kubernetes.client.proto.V1Networking.IPBlock getIpBlock() {
if (ipBlockBuilder_ == null) {
return ipBlock_ == null
? io.kubernetes.client.proto.V1Networking.IPBlock.getDefaultInstance()
: ipBlock_;
} else {
return ipBlockBuilder_.getMessage();
}
}
/**
*
*
*
* IPBlock defines policy on a particular IPBlock. If this field is set then
* neither of the other fields can be.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3;
*/
public Builder setIpBlock(io.kubernetes.client.proto.V1Networking.IPBlock value) {
if (ipBlockBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ipBlock_ = value;
onChanged();
} else {
ipBlockBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
*
*
*
* IPBlock defines policy on a particular IPBlock. If this field is set then
* neither of the other fields can be.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3;
*/
public Builder setIpBlock(
io.kubernetes.client.proto.V1Networking.IPBlock.Builder builderForValue) {
if (ipBlockBuilder_ == null) {
ipBlock_ = builderForValue.build();
onChanged();
} else {
ipBlockBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
*
*
*
* IPBlock defines policy on a particular IPBlock. If this field is set then
* neither of the other fields can be.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3;
*/
public Builder mergeIpBlock(io.kubernetes.client.proto.V1Networking.IPBlock value) {
if (ipBlockBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)
&& ipBlock_ != null
&& ipBlock_ != io.kubernetes.client.proto.V1Networking.IPBlock.getDefaultInstance()) {
ipBlock_ =
io.kubernetes.client.proto.V1Networking.IPBlock.newBuilder(ipBlock_)
.mergeFrom(value)
.buildPartial();
} else {
ipBlock_ = value;
}
onChanged();
} else {
ipBlockBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
*
*
*
* IPBlock defines policy on a particular IPBlock. If this field is set then
* neither of the other fields can be.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3;
*/
public Builder clearIpBlock() {
if (ipBlockBuilder_ == null) {
ipBlock_ = null;
onChanged();
} else {
ipBlockBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
*
*
*
* IPBlock defines policy on a particular IPBlock. If this field is set then
* neither of the other fields can be.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3;
*/
public io.kubernetes.client.proto.V1Networking.IPBlock.Builder getIpBlockBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getIpBlockFieldBuilder().getBuilder();
}
/**
*
*
*
* IPBlock defines policy on a particular IPBlock. If this field is set then
* neither of the other fields can be.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3;
*/
public io.kubernetes.client.proto.V1Networking.IPBlockOrBuilder getIpBlockOrBuilder() {
if (ipBlockBuilder_ != null) {
return ipBlockBuilder_.getMessageOrBuilder();
} else {
return ipBlock_ == null
? io.kubernetes.client.proto.V1Networking.IPBlock.getDefaultInstance()
: ipBlock_;
}
}
/**
*
*
*
* IPBlock defines policy on a particular IPBlock. If this field is set then
* neither of the other fields can be.
* +optional
*
*
* optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.IPBlock,
io.kubernetes.client.proto.V1Networking.IPBlock.Builder,
io.kubernetes.client.proto.V1Networking.IPBlockOrBuilder>
getIpBlockFieldBuilder() {
if (ipBlockBuilder_ == null) {
ipBlockBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.IPBlock,
io.kubernetes.client.proto.V1Networking.IPBlock.Builder,
io.kubernetes.client.proto.V1Networking.IPBlockOrBuilder>(
getIpBlock(), getParentForChildren(), isClean());
ipBlock_ = null;
}
return ipBlockBuilder_;
}
@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.networking.v1.NetworkPolicyPeer)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.networking.v1.NetworkPolicyPeer)
private static final io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer();
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NetworkPolicyPeer parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NetworkPolicyPeer(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.V1Networking.NetworkPolicyPeer getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NetworkPolicyPortOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.networking.v1.NetworkPolicyPort)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this
* field defaults to TCP.
* +optional
*
*
* optional string protocol = 1;
*/
boolean hasProtocol();
/**
*
*
*
* The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this
* field defaults to TCP.
* +optional
*
*
* optional string protocol = 1;
*/
java.lang.String getProtocol();
/**
*
*
*
* The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this
* field defaults to TCP.
* +optional
*
*
* optional string protocol = 1;
*/
com.google.protobuf.ByteString getProtocolBytes();
/**
*
*
*
* The port on the given protocol. This can either be a numerical or named
* port on a pod. If this field is not provided, this matches all port names and
* numbers.
* If present, only traffic on the specified protocol AND port will be matched.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2;
*/
boolean hasPort();
/**
*
*
*
* The port on the given protocol. This can either be a numerical or named
* port on a pod. If this field is not provided, this matches all port names and
* numbers.
* If present, only traffic on the specified protocol AND port will be matched.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2;
*/
io.kubernetes.client.proto.IntStr.IntOrString getPort();
/**
*
*
*
* The port on the given protocol. This can either be a numerical or named
* port on a pod. If this field is not provided, this matches all port names and
* numbers.
* If present, only traffic on the specified protocol AND port will be matched.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2;
*/
io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder getPortOrBuilder();
/**
*
*
*
* If set, indicates that the range of ports from port to endPort, inclusive,
* should be allowed by the policy. This field cannot be defined if the port field
* is not defined or if the port field is defined as a named (string) port.
* The endPort must be equal or greater than port.
* This feature is in Beta state and is enabled by default.
* It can be disabled using the Feature Gate "NetworkPolicyEndPort".
* +optional
*
*
* optional int32 endPort = 3;
*/
boolean hasEndPort();
/**
*
*
*
* If set, indicates that the range of ports from port to endPort, inclusive,
* should be allowed by the policy. This field cannot be defined if the port field
* is not defined or if the port field is defined as a named (string) port.
* The endPort must be equal or greater than port.
* This feature is in Beta state and is enabled by default.
* It can be disabled using the Feature Gate "NetworkPolicyEndPort".
* +optional
*
*
* optional int32 endPort = 3;
*/
int getEndPort();
}
/**
*
*
*
* NetworkPolicyPort describes a port to allow traffic on
*
*
* Protobuf type {@code k8s.io.api.networking.v1.NetworkPolicyPort}
*/
public static final class NetworkPolicyPort extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.networking.v1.NetworkPolicyPort)
NetworkPolicyPortOrBuilder {
private static final long serialVersionUID = 0L;
// Use NetworkPolicyPort.newBuilder() to construct.
private NetworkPolicyPort(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NetworkPolicyPort() {
protocol_ = "";
endPort_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private NetworkPolicyPort(
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;
protocol_ = bs;
break;
}
case 18:
{
io.kubernetes.client.proto.IntStr.IntOrString.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = port_.toBuilder();
}
port_ =
input.readMessage(
io.kubernetes.client.proto.IntStr.IntOrString.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(port_);
port_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 24:
{
bitField0_ |= 0x00000004;
endPort_ = 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.V1Networking
.internal_static_k8s_io_api_networking_v1_NetworkPolicyPort_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_NetworkPolicyPort_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.NetworkPolicyPort.class,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPort.Builder.class);
}
private int bitField0_;
public static final int PROTOCOL_FIELD_NUMBER = 1;
private volatile java.lang.Object protocol_;
/**
*
*
*
* The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this
* field defaults to TCP.
* +optional
*
*
* optional string protocol = 1;
*/
public boolean hasProtocol() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this
* field defaults to TCP.
* +optional
*
*
* optional string protocol = 1;
*/
public java.lang.String getProtocol() {
java.lang.Object ref = protocol_;
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()) {
protocol_ = s;
}
return s;
}
}
/**
*
*
*
* The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this
* field defaults to TCP.
* +optional
*
*
* optional string protocol = 1;
*/
public com.google.protobuf.ByteString getProtocolBytes() {
java.lang.Object ref = protocol_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
protocol_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PORT_FIELD_NUMBER = 2;
private io.kubernetes.client.proto.IntStr.IntOrString port_;
/**
*
*
*
* The port on the given protocol. This can either be a numerical or named
* port on a pod. If this field is not provided, this matches all port names and
* numbers.
* If present, only traffic on the specified protocol AND port will be matched.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2;
*/
public boolean hasPort() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* The port on the given protocol. This can either be a numerical or named
* port on a pod. If this field is not provided, this matches all port names and
* numbers.
* If present, only traffic on the specified protocol AND port will be matched.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2;
*/
public io.kubernetes.client.proto.IntStr.IntOrString getPort() {
return port_ == null
? io.kubernetes.client.proto.IntStr.IntOrString.getDefaultInstance()
: port_;
}
/**
*
*
*
* The port on the given protocol. This can either be a numerical or named
* port on a pod. If this field is not provided, this matches all port names and
* numbers.
* If present, only traffic on the specified protocol AND port will be matched.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2;
*/
public io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder getPortOrBuilder() {
return port_ == null
? io.kubernetes.client.proto.IntStr.IntOrString.getDefaultInstance()
: port_;
}
public static final int ENDPORT_FIELD_NUMBER = 3;
private int endPort_;
/**
*
*
*
* If set, indicates that the range of ports from port to endPort, inclusive,
* should be allowed by the policy. This field cannot be defined if the port field
* is not defined or if the port field is defined as a named (string) port.
* The endPort must be equal or greater than port.
* This feature is in Beta state and is enabled by default.
* It can be disabled using the Feature Gate "NetworkPolicyEndPort".
* +optional
*
*
* optional int32 endPort = 3;
*/
public boolean hasEndPort() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
*
*
* If set, indicates that the range of ports from port to endPort, inclusive,
* should be allowed by the policy. This field cannot be defined if the port field
* is not defined or if the port field is defined as a named (string) port.
* The endPort must be equal or greater than port.
* This feature is in Beta state and is enabled by default.
* It can be disabled using the Feature Gate "NetworkPolicyEndPort".
* +optional
*
*
* optional int32 endPort = 3;
*/
public int getEndPort() {
return endPort_;
}
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, protocol_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getPort());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(3, endPort_);
}
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, protocol_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPort());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, endPort_);
}
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.V1Networking.NetworkPolicyPort)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1Networking.NetworkPolicyPort other =
(io.kubernetes.client.proto.V1Networking.NetworkPolicyPort) obj;
boolean result = true;
result = result && (hasProtocol() == other.hasProtocol());
if (hasProtocol()) {
result = result && getProtocol().equals(other.getProtocol());
}
result = result && (hasPort() == other.hasPort());
if (hasPort()) {
result = result && getPort().equals(other.getPort());
}
result = result && (hasEndPort() == other.hasEndPort());
if (hasEndPort()) {
result = result && (getEndPort() == other.getEndPort());
}
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 (hasProtocol()) {
hash = (37 * hash) + PROTOCOL_FIELD_NUMBER;
hash = (53 * hash) + getProtocol().hashCode();
}
if (hasPort()) {
hash = (37 * hash) + PORT_FIELD_NUMBER;
hash = (53 * hash) + getPort().hashCode();
}
if (hasEndPort()) {
hash = (37 * hash) + ENDPORT_FIELD_NUMBER;
hash = (53 * hash) + getEndPort();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyPort parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyPort 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.V1Networking.NetworkPolicyPort parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyPort 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.V1Networking.NetworkPolicyPort parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyPort parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyPort parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyPort 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.V1Networking.NetworkPolicyPort parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyPort 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.V1Networking.NetworkPolicyPort parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyPort 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.V1Networking.NetworkPolicyPort 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;
}
/**
*
*
*
* NetworkPolicyPort describes a port to allow traffic on
*
*
* Protobuf type {@code k8s.io.api.networking.v1.NetworkPolicyPort}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.networking.v1.NetworkPolicyPort)
io.kubernetes.client.proto.V1Networking.NetworkPolicyPortOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_NetworkPolicyPort_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_NetworkPolicyPort_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.NetworkPolicyPort.class,
io.kubernetes.client.proto.V1Networking.NetworkPolicyPort.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1Networking.NetworkPolicyPort.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getPortFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
protocol_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (portBuilder_ == null) {
port_ = null;
} else {
portBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
endPort_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_NetworkPolicyPort_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.NetworkPolicyPort getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1Networking.NetworkPolicyPort.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.NetworkPolicyPort build() {
io.kubernetes.client.proto.V1Networking.NetworkPolicyPort result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.NetworkPolicyPort buildPartial() {
io.kubernetes.client.proto.V1Networking.NetworkPolicyPort result =
new io.kubernetes.client.proto.V1Networking.NetworkPolicyPort(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.protocol_ = protocol_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (portBuilder_ == null) {
result.port_ = port_;
} else {
result.port_ = portBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.endPort_ = endPort_;
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.V1Networking.NetworkPolicyPort) {
return mergeFrom((io.kubernetes.client.proto.V1Networking.NetworkPolicyPort) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1Networking.NetworkPolicyPort other) {
if (other == io.kubernetes.client.proto.V1Networking.NetworkPolicyPort.getDefaultInstance())
return this;
if (other.hasProtocol()) {
bitField0_ |= 0x00000001;
protocol_ = other.protocol_;
onChanged();
}
if (other.hasPort()) {
mergePort(other.getPort());
}
if (other.hasEndPort()) {
setEndPort(other.getEndPort());
}
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.V1Networking.NetworkPolicyPort parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1Networking.NetworkPolicyPort) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object protocol_ = "";
/**
*
*
*
* The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this
* field defaults to TCP.
* +optional
*
*
* optional string protocol = 1;
*/
public boolean hasProtocol() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this
* field defaults to TCP.
* +optional
*
*
* optional string protocol = 1;
*/
public java.lang.String getProtocol() {
java.lang.Object ref = protocol_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
protocol_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this
* field defaults to TCP.
* +optional
*
*
* optional string protocol = 1;
*/
public com.google.protobuf.ByteString getProtocolBytes() {
java.lang.Object ref = protocol_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
protocol_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this
* field defaults to TCP.
* +optional
*
*
* optional string protocol = 1;
*/
public Builder setProtocol(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
protocol_ = value;
onChanged();
return this;
}
/**
*
*
*
* The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this
* field defaults to TCP.
* +optional
*
*
* optional string protocol = 1;
*/
public Builder clearProtocol() {
bitField0_ = (bitField0_ & ~0x00000001);
protocol_ = getDefaultInstance().getProtocol();
onChanged();
return this;
}
/**
*
*
*
* The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this
* field defaults to TCP.
* +optional
*
*
* optional string protocol = 1;
*/
public Builder setProtocolBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
protocol_ = value;
onChanged();
return this;
}
private io.kubernetes.client.proto.IntStr.IntOrString port_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.IntStr.IntOrString,
io.kubernetes.client.proto.IntStr.IntOrString.Builder,
io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder>
portBuilder_;
/**
*
*
*
* The port on the given protocol. This can either be a numerical or named
* port on a pod. If this field is not provided, this matches all port names and
* numbers.
* If present, only traffic on the specified protocol AND port will be matched.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2;
*/
public boolean hasPort() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* The port on the given protocol. This can either be a numerical or named
* port on a pod. If this field is not provided, this matches all port names and
* numbers.
* If present, only traffic on the specified protocol AND port will be matched.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2;
*/
public io.kubernetes.client.proto.IntStr.IntOrString getPort() {
if (portBuilder_ == null) {
return port_ == null
? io.kubernetes.client.proto.IntStr.IntOrString.getDefaultInstance()
: port_;
} else {
return portBuilder_.getMessage();
}
}
/**
*
*
*
* The port on the given protocol. This can either be a numerical or named
* port on a pod. If this field is not provided, this matches all port names and
* numbers.
* If present, only traffic on the specified protocol AND port will be matched.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2;
*/
public Builder setPort(io.kubernetes.client.proto.IntStr.IntOrString value) {
if (portBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
port_ = value;
onChanged();
} else {
portBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* The port on the given protocol. This can either be a numerical or named
* port on a pod. If this field is not provided, this matches all port names and
* numbers.
* If present, only traffic on the specified protocol AND port will be matched.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2;
*/
public Builder setPort(
io.kubernetes.client.proto.IntStr.IntOrString.Builder builderForValue) {
if (portBuilder_ == null) {
port_ = builderForValue.build();
onChanged();
} else {
portBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* The port on the given protocol. This can either be a numerical or named
* port on a pod. If this field is not provided, this matches all port names and
* numbers.
* If present, only traffic on the specified protocol AND port will be matched.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2;
*/
public Builder mergePort(io.kubernetes.client.proto.IntStr.IntOrString value) {
if (portBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)
&& port_ != null
&& port_ != io.kubernetes.client.proto.IntStr.IntOrString.getDefaultInstance()) {
port_ =
io.kubernetes.client.proto.IntStr.IntOrString.newBuilder(port_)
.mergeFrom(value)
.buildPartial();
} else {
port_ = value;
}
onChanged();
} else {
portBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*
*
* The port on the given protocol. This can either be a numerical or named
* port on a pod. If this field is not provided, this matches all port names and
* numbers.
* If present, only traffic on the specified protocol AND port will be matched.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2;
*/
public Builder clearPort() {
if (portBuilder_ == null) {
port_ = null;
onChanged();
} else {
portBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
*
*
*
* The port on the given protocol. This can either be a numerical or named
* port on a pod. If this field is not provided, this matches all port names and
* numbers.
* If present, only traffic on the specified protocol AND port will be matched.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2;
*/
public io.kubernetes.client.proto.IntStr.IntOrString.Builder getPortBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getPortFieldBuilder().getBuilder();
}
/**
*
*
*
* The port on the given protocol. This can either be a numerical or named
* port on a pod. If this field is not provided, this matches all port names and
* numbers.
* If present, only traffic on the specified protocol AND port will be matched.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2;
*/
public io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder getPortOrBuilder() {
if (portBuilder_ != null) {
return portBuilder_.getMessageOrBuilder();
} else {
return port_ == null
? io.kubernetes.client.proto.IntStr.IntOrString.getDefaultInstance()
: port_;
}
}
/**
*
*
*
* The port on the given protocol. This can either be a numerical or named
* port on a pod. If this field is not provided, this matches all port names and
* numbers.
* If present, only traffic on the specified protocol AND port will be matched.
* +optional
*
*
* optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.IntStr.IntOrString,
io.kubernetes.client.proto.IntStr.IntOrString.Builder,
io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder>
getPortFieldBuilder() {
if (portBuilder_ == null) {
portBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.IntStr.IntOrString,
io.kubernetes.client.proto.IntStr.IntOrString.Builder,
io.kubernetes.client.proto.IntStr.IntOrStringOrBuilder>(
getPort(), getParentForChildren(), isClean());
port_ = null;
}
return portBuilder_;
}
private int endPort_;
/**
*
*
*
* If set, indicates that the range of ports from port to endPort, inclusive,
* should be allowed by the policy. This field cannot be defined if the port field
* is not defined or if the port field is defined as a named (string) port.
* The endPort must be equal or greater than port.
* This feature is in Beta state and is enabled by default.
* It can be disabled using the Feature Gate "NetworkPolicyEndPort".
* +optional
*
*
* optional int32 endPort = 3;
*/
public boolean hasEndPort() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
*
*
* If set, indicates that the range of ports from port to endPort, inclusive,
* should be allowed by the policy. This field cannot be defined if the port field
* is not defined or if the port field is defined as a named (string) port.
* The endPort must be equal or greater than port.
* This feature is in Beta state and is enabled by default.
* It can be disabled using the Feature Gate "NetworkPolicyEndPort".
* +optional
*
*
* optional int32 endPort = 3;
*/
public int getEndPort() {
return endPort_;
}
/**
*
*
*
* If set, indicates that the range of ports from port to endPort, inclusive,
* should be allowed by the policy. This field cannot be defined if the port field
* is not defined or if the port field is defined as a named (string) port.
* The endPort must be equal or greater than port.
* This feature is in Beta state and is enabled by default.
* It can be disabled using the Feature Gate "NetworkPolicyEndPort".
* +optional
*
*
* optional int32 endPort = 3;
*/
public Builder setEndPort(int value) {
bitField0_ |= 0x00000004;
endPort_ = value;
onChanged();
return this;
}
/**
*
*
*
* If set, indicates that the range of ports from port to endPort, inclusive,
* should be allowed by the policy. This field cannot be defined if the port field
* is not defined or if the port field is defined as a named (string) port.
* The endPort must be equal or greater than port.
* This feature is in Beta state and is enabled by default.
* It can be disabled using the Feature Gate "NetworkPolicyEndPort".
* +optional
*
*
* optional int32 endPort = 3;
*/
public Builder clearEndPort() {
bitField0_ = (bitField0_ & ~0x00000004);
endPort_ = 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.networking.v1.NetworkPolicyPort)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.networking.v1.NetworkPolicyPort)
private static final io.kubernetes.client.proto.V1Networking.NetworkPolicyPort DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Networking.NetworkPolicyPort();
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicyPort getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NetworkPolicyPort parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NetworkPolicyPort(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.V1Networking.NetworkPolicyPort getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NetworkPolicySpecOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.networking.v1.NetworkPolicySpec)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Selects the pods to which this NetworkPolicy object applies. The array of
* ingress rules is applied to any pods selected by this field. Multiple network
* policies can select the same set of pods. In this case, the ingress rules for
* each are combined additively. This field is NOT optional and follows standard
* label selector semantics. An empty podSelector matches all pods in this
* namespace.
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
*/
boolean hasPodSelector();
/**
*
*
*
* Selects the pods to which this NetworkPolicy object applies. The array of
* ingress rules is applied to any pods selected by this field. Multiple network
* policies can select the same set of pods. In this case, the ingress rules for
* each are combined additively. This field is NOT optional and follows standard
* label selector semantics. An empty podSelector matches all pods in this
* namespace.
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
*/
io.kubernetes.client.proto.Meta.LabelSelector getPodSelector();
/**
*
*
*
* Selects the pods to which this NetworkPolicy object applies. The array of
* ingress rules is applied to any pods selected by this field. Multiple network
* policies can select the same set of pods. In this case, the ingress rules for
* each are combined additively. This field is NOT optional and follows standard
* label selector semantics. An empty podSelector matches all pods in this
* namespace.
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
*/
io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getPodSelectorOrBuilder();
/**
*
*
*
* List of ingress rules to be applied to the selected pods. Traffic is allowed to
* a pod if there are no NetworkPolicies selecting the pod
* (and cluster policy otherwise allows the traffic), OR if the traffic source is
* the pod's local node, OR if the traffic matches at least one ingress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy does not allow any traffic (and serves
* solely to ensure that the pods it selects are isolated by default)
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
*/
java.util.List
getIngressList();
/**
*
*
*
* List of ingress rules to be applied to the selected pods. Traffic is allowed to
* a pod if there are no NetworkPolicies selecting the pod
* (and cluster policy otherwise allows the traffic), OR if the traffic source is
* the pod's local node, OR if the traffic matches at least one ingress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy does not allow any traffic (and serves
* solely to ensure that the pods it selects are isolated by default)
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
*/
io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule getIngress(int index);
/**
*
*
*
* List of ingress rules to be applied to the selected pods. Traffic is allowed to
* a pod if there are no NetworkPolicies selecting the pod
* (and cluster policy otherwise allows the traffic), OR if the traffic source is
* the pod's local node, OR if the traffic matches at least one ingress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy does not allow any traffic (and serves
* solely to ensure that the pods it selects are isolated by default)
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
*/
int getIngressCount();
/**
*
*
*
* List of ingress rules to be applied to the selected pods. Traffic is allowed to
* a pod if there are no NetworkPolicies selecting the pod
* (and cluster policy otherwise allows the traffic), OR if the traffic source is
* the pod's local node, OR if the traffic matches at least one ingress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy does not allow any traffic (and serves
* solely to ensure that the pods it selects are isolated by default)
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
*/
java.util.List<
? extends io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRuleOrBuilder>
getIngressOrBuilderList();
/**
*
*
*
* List of ingress rules to be applied to the selected pods. Traffic is allowed to
* a pod if there are no NetworkPolicies selecting the pod
* (and cluster policy otherwise allows the traffic), OR if the traffic source is
* the pod's local node, OR if the traffic matches at least one ingress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy does not allow any traffic (and serves
* solely to ensure that the pods it selects are isolated by default)
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
*/
io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRuleOrBuilder getIngressOrBuilder(
int index);
/**
*
*
*
* List of egress rules to be applied to the selected pods. Outgoing traffic is
* allowed if there are no NetworkPolicies selecting the pod (and cluster policy
* otherwise allows the traffic), OR if the traffic matches at least one egress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy limits all outgoing traffic (and serves
* solely to ensure that the pods it selects are isolated by default).
* This field is beta-level in 1.8
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
*/
java.util.List getEgressList();
/**
*
*
*
* List of egress rules to be applied to the selected pods. Outgoing traffic is
* allowed if there are no NetworkPolicies selecting the pod (and cluster policy
* otherwise allows the traffic), OR if the traffic matches at least one egress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy limits all outgoing traffic (and serves
* solely to ensure that the pods it selects are isolated by default).
* This field is beta-level in 1.8
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
*/
io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule getEgress(int index);
/**
*
*
*
* List of egress rules to be applied to the selected pods. Outgoing traffic is
* allowed if there are no NetworkPolicies selecting the pod (and cluster policy
* otherwise allows the traffic), OR if the traffic matches at least one egress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy limits all outgoing traffic (and serves
* solely to ensure that the pods it selects are isolated by default).
* This field is beta-level in 1.8
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
*/
int getEgressCount();
/**
*
*
*
* List of egress rules to be applied to the selected pods. Outgoing traffic is
* allowed if there are no NetworkPolicies selecting the pod (and cluster policy
* otherwise allows the traffic), OR if the traffic matches at least one egress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy limits all outgoing traffic (and serves
* solely to ensure that the pods it selects are isolated by default).
* This field is beta-level in 1.8
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
*/
java.util.List<
? extends io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRuleOrBuilder>
getEgressOrBuilderList();
/**
*
*
*
* List of egress rules to be applied to the selected pods. Outgoing traffic is
* allowed if there are no NetworkPolicies selecting the pod (and cluster policy
* otherwise allows the traffic), OR if the traffic matches at least one egress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy limits all outgoing traffic (and serves
* solely to ensure that the pods it selects are isolated by default).
* This field is beta-level in 1.8
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
*/
io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRuleOrBuilder getEgressOrBuilder(
int index);
/**
*
*
*
* List of rule types that the NetworkPolicy relates to.
* Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"].
* If this field is not specified, it will default based on the existence of Ingress or Egress rules;
* policies that contain an Egress section are assumed to affect Egress, and all policies
* (whether or not they contain an Ingress section) are assumed to affect Ingress.
* If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ].
* Likewise, if you want to write a policy that specifies that no egress is allowed,
* you must specify a policyTypes value that include "Egress" (since such a policy would not include
* an Egress section and would otherwise default to just [ "Ingress" ]).
* This field is beta-level in 1.8
* +optional
*
*
* repeated string policyTypes = 4;
*/
java.util.List getPolicyTypesList();
/**
*
*
*
* List of rule types that the NetworkPolicy relates to.
* Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"].
* If this field is not specified, it will default based on the existence of Ingress or Egress rules;
* policies that contain an Egress section are assumed to affect Egress, and all policies
* (whether or not they contain an Ingress section) are assumed to affect Ingress.
* If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ].
* Likewise, if you want to write a policy that specifies that no egress is allowed,
* you must specify a policyTypes value that include "Egress" (since such a policy would not include
* an Egress section and would otherwise default to just [ "Ingress" ]).
* This field is beta-level in 1.8
* +optional
*
*
* repeated string policyTypes = 4;
*/
int getPolicyTypesCount();
/**
*
*
*
* List of rule types that the NetworkPolicy relates to.
* Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"].
* If this field is not specified, it will default based on the existence of Ingress or Egress rules;
* policies that contain an Egress section are assumed to affect Egress, and all policies
* (whether or not they contain an Ingress section) are assumed to affect Ingress.
* If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ].
* Likewise, if you want to write a policy that specifies that no egress is allowed,
* you must specify a policyTypes value that include "Egress" (since such a policy would not include
* an Egress section and would otherwise default to just [ "Ingress" ]).
* This field is beta-level in 1.8
* +optional
*
*
* repeated string policyTypes = 4;
*/
java.lang.String getPolicyTypes(int index);
/**
*
*
*
* List of rule types that the NetworkPolicy relates to.
* Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"].
* If this field is not specified, it will default based on the existence of Ingress or Egress rules;
* policies that contain an Egress section are assumed to affect Egress, and all policies
* (whether or not they contain an Ingress section) are assumed to affect Ingress.
* If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ].
* Likewise, if you want to write a policy that specifies that no egress is allowed,
* you must specify a policyTypes value that include "Egress" (since such a policy would not include
* an Egress section and would otherwise default to just [ "Ingress" ]).
* This field is beta-level in 1.8
* +optional
*
*
* repeated string policyTypes = 4;
*/
com.google.protobuf.ByteString getPolicyTypesBytes(int index);
}
/**
*
*
*
* NetworkPolicySpec provides the specification of a NetworkPolicy
*
*
* Protobuf type {@code k8s.io.api.networking.v1.NetworkPolicySpec}
*/
public static final class NetworkPolicySpec extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.networking.v1.NetworkPolicySpec)
NetworkPolicySpecOrBuilder {
private static final long serialVersionUID = 0L;
// Use NetworkPolicySpec.newBuilder() to construct.
private NetworkPolicySpec(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NetworkPolicySpec() {
ingress_ = java.util.Collections.emptyList();
egress_ = java.util.Collections.emptyList();
policyTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private NetworkPolicySpec(
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 = podSelector_.toBuilder();
}
podSelector_ =
input.readMessage(
io.kubernetes.client.proto.Meta.LabelSelector.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(podSelector_);
podSelector_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18:
{
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
ingress_ =
new java.util.ArrayList<
io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule>();
mutable_bitField0_ |= 0x00000002;
}
ingress_.add(
input.readMessage(
io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule.PARSER,
extensionRegistry));
break;
}
case 26:
{
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
egress_ =
new java.util.ArrayList<
io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule>();
mutable_bitField0_ |= 0x00000004;
}
egress_.add(
input.readMessage(
io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule.PARSER,
extensionRegistry));
break;
}
case 34:
{
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
policyTypes_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000008;
}
policyTypes_.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)) {
ingress_ = java.util.Collections.unmodifiableList(ingress_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
egress_ = java.util.Collections.unmodifiableList(egress_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
policyTypes_ = policyTypes_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_NetworkPolicySpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_NetworkPolicySpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.NetworkPolicySpec.class,
io.kubernetes.client.proto.V1Networking.NetworkPolicySpec.Builder.class);
}
private int bitField0_;
public static final int PODSELECTOR_FIELD_NUMBER = 1;
private io.kubernetes.client.proto.Meta.LabelSelector podSelector_;
/**
*
*
*
* Selects the pods to which this NetworkPolicy object applies. The array of
* ingress rules is applied to any pods selected by this field. Multiple network
* policies can select the same set of pods. In this case, the ingress rules for
* each are combined additively. This field is NOT optional and follows standard
* label selector semantics. An empty podSelector matches all pods in this
* namespace.
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
*/
public boolean hasPodSelector() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* Selects the pods to which this NetworkPolicy object applies. The array of
* ingress rules is applied to any pods selected by this field. Multiple network
* policies can select the same set of pods. In this case, the ingress rules for
* each are combined additively. This field is NOT optional and follows standard
* label selector semantics. An empty podSelector matches all pods in this
* namespace.
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
*/
public io.kubernetes.client.proto.Meta.LabelSelector getPodSelector() {
return podSelector_ == null
? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance()
: podSelector_;
}
/**
*
*
*
* Selects the pods to which this NetworkPolicy object applies. The array of
* ingress rules is applied to any pods selected by this field. Multiple network
* policies can select the same set of pods. In this case, the ingress rules for
* each are combined additively. This field is NOT optional and follows standard
* label selector semantics. An empty podSelector matches all pods in this
* namespace.
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
*/
public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getPodSelectorOrBuilder() {
return podSelector_ == null
? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance()
: podSelector_;
}
public static final int INGRESS_FIELD_NUMBER = 2;
private java.util.List
ingress_;
/**
*
*
*
* List of ingress rules to be applied to the selected pods. Traffic is allowed to
* a pod if there are no NetworkPolicies selecting the pod
* (and cluster policy otherwise allows the traffic), OR if the traffic source is
* the pod's local node, OR if the traffic matches at least one ingress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy does not allow any traffic (and serves
* solely to ensure that the pods it selects are isolated by default)
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
*/
public java.util.List
getIngressList() {
return ingress_;
}
/**
*
*
*
* List of ingress rules to be applied to the selected pods. Traffic is allowed to
* a pod if there are no NetworkPolicies selecting the pod
* (and cluster policy otherwise allows the traffic), OR if the traffic source is
* the pod's local node, OR if the traffic matches at least one ingress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy does not allow any traffic (and serves
* solely to ensure that the pods it selects are isolated by default)
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
*/
public java.util.List<
? extends io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRuleOrBuilder>
getIngressOrBuilderList() {
return ingress_;
}
/**
*
*
*
* List of ingress rules to be applied to the selected pods. Traffic is allowed to
* a pod if there are no NetworkPolicies selecting the pod
* (and cluster policy otherwise allows the traffic), OR if the traffic source is
* the pod's local node, OR if the traffic matches at least one ingress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy does not allow any traffic (and serves
* solely to ensure that the pods it selects are isolated by default)
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
*/
public int getIngressCount() {
return ingress_.size();
}
/**
*
*
*
* List of ingress rules to be applied to the selected pods. Traffic is allowed to
* a pod if there are no NetworkPolicies selecting the pod
* (and cluster policy otherwise allows the traffic), OR if the traffic source is
* the pod's local node, OR if the traffic matches at least one ingress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy does not allow any traffic (and serves
* solely to ensure that the pods it selects are isolated by default)
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule getIngress(int index) {
return ingress_.get(index);
}
/**
*
*
*
* List of ingress rules to be applied to the selected pods. Traffic is allowed to
* a pod if there are no NetworkPolicies selecting the pod
* (and cluster policy otherwise allows the traffic), OR if the traffic source is
* the pod's local node, OR if the traffic matches at least one ingress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy does not allow any traffic (and serves
* solely to ensure that the pods it selects are isolated by default)
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRuleOrBuilder
getIngressOrBuilder(int index) {
return ingress_.get(index);
}
public static final int EGRESS_FIELD_NUMBER = 3;
private java.util.List egress_;
/**
*
*
*
* List of egress rules to be applied to the selected pods. Outgoing traffic is
* allowed if there are no NetworkPolicies selecting the pod (and cluster policy
* otherwise allows the traffic), OR if the traffic matches at least one egress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy limits all outgoing traffic (and serves
* solely to ensure that the pods it selects are isolated by default).
* This field is beta-level in 1.8
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
*/
public java.util.List
getEgressList() {
return egress_;
}
/**
*
*
*
* List of egress rules to be applied to the selected pods. Outgoing traffic is
* allowed if there are no NetworkPolicies selecting the pod (and cluster policy
* otherwise allows the traffic), OR if the traffic matches at least one egress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy limits all outgoing traffic (and serves
* solely to ensure that the pods it selects are isolated by default).
* This field is beta-level in 1.8
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
*/
public java.util.List<
? extends io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRuleOrBuilder>
getEgressOrBuilderList() {
return egress_;
}
/**
*
*
*
* List of egress rules to be applied to the selected pods. Outgoing traffic is
* allowed if there are no NetworkPolicies selecting the pod (and cluster policy
* otherwise allows the traffic), OR if the traffic matches at least one egress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy limits all outgoing traffic (and serves
* solely to ensure that the pods it selects are isolated by default).
* This field is beta-level in 1.8
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
*/
public int getEgressCount() {
return egress_.size();
}
/**
*
*
*
* List of egress rules to be applied to the selected pods. Outgoing traffic is
* allowed if there are no NetworkPolicies selecting the pod (and cluster policy
* otherwise allows the traffic), OR if the traffic matches at least one egress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy limits all outgoing traffic (and serves
* solely to ensure that the pods it selects are isolated by default).
* This field is beta-level in 1.8
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule getEgress(int index) {
return egress_.get(index);
}
/**
*
*
*
* List of egress rules to be applied to the selected pods. Outgoing traffic is
* allowed if there are no NetworkPolicies selecting the pod (and cluster policy
* otherwise allows the traffic), OR if the traffic matches at least one egress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy limits all outgoing traffic (and serves
* solely to ensure that the pods it selects are isolated by default).
* This field is beta-level in 1.8
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRuleOrBuilder
getEgressOrBuilder(int index) {
return egress_.get(index);
}
public static final int POLICYTYPES_FIELD_NUMBER = 4;
private com.google.protobuf.LazyStringList policyTypes_;
/**
*
*
*
* List of rule types that the NetworkPolicy relates to.
* Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"].
* If this field is not specified, it will default based on the existence of Ingress or Egress rules;
* policies that contain an Egress section are assumed to affect Egress, and all policies
* (whether or not they contain an Ingress section) are assumed to affect Ingress.
* If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ].
* Likewise, if you want to write a policy that specifies that no egress is allowed,
* you must specify a policyTypes value that include "Egress" (since such a policy would not include
* an Egress section and would otherwise default to just [ "Ingress" ]).
* This field is beta-level in 1.8
* +optional
*
*
* repeated string policyTypes = 4;
*/
public com.google.protobuf.ProtocolStringList getPolicyTypesList() {
return policyTypes_;
}
/**
*
*
*
* List of rule types that the NetworkPolicy relates to.
* Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"].
* If this field is not specified, it will default based on the existence of Ingress or Egress rules;
* policies that contain an Egress section are assumed to affect Egress, and all policies
* (whether or not they contain an Ingress section) are assumed to affect Ingress.
* If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ].
* Likewise, if you want to write a policy that specifies that no egress is allowed,
* you must specify a policyTypes value that include "Egress" (since such a policy would not include
* an Egress section and would otherwise default to just [ "Ingress" ]).
* This field is beta-level in 1.8
* +optional
*
*
* repeated string policyTypes = 4;
*/
public int getPolicyTypesCount() {
return policyTypes_.size();
}
/**
*
*
*
* List of rule types that the NetworkPolicy relates to.
* Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"].
* If this field is not specified, it will default based on the existence of Ingress or Egress rules;
* policies that contain an Egress section are assumed to affect Egress, and all policies
* (whether or not they contain an Ingress section) are assumed to affect Ingress.
* If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ].
* Likewise, if you want to write a policy that specifies that no egress is allowed,
* you must specify a policyTypes value that include "Egress" (since such a policy would not include
* an Egress section and would otherwise default to just [ "Ingress" ]).
* This field is beta-level in 1.8
* +optional
*
*
* repeated string policyTypes = 4;
*/
public java.lang.String getPolicyTypes(int index) {
return policyTypes_.get(index);
}
/**
*
*
*
* List of rule types that the NetworkPolicy relates to.
* Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"].
* If this field is not specified, it will default based on the existence of Ingress or Egress rules;
* policies that contain an Egress section are assumed to affect Egress, and all policies
* (whether or not they contain an Ingress section) are assumed to affect Ingress.
* If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ].
* Likewise, if you want to write a policy that specifies that no egress is allowed,
* you must specify a policyTypes value that include "Egress" (since such a policy would not include
* an Egress section and would otherwise default to just [ "Ingress" ]).
* This field is beta-level in 1.8
* +optional
*
*
* repeated string policyTypes = 4;
*/
public com.google.protobuf.ByteString getPolicyTypesBytes(int index) {
return policyTypes_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getPodSelector());
}
for (int i = 0; i < ingress_.size(); i++) {
output.writeMessage(2, ingress_.get(i));
}
for (int i = 0; i < egress_.size(); i++) {
output.writeMessage(3, egress_.get(i));
}
for (int i = 0; i < policyTypes_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, policyTypes_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPodSelector());
}
for (int i = 0; i < ingress_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, ingress_.get(i));
}
for (int i = 0; i < egress_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, egress_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < policyTypes_.size(); i++) {
dataSize += computeStringSizeNoTag(policyTypes_.getRaw(i));
}
size += dataSize;
size += 1 * getPolicyTypesList().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.V1Networking.NetworkPolicySpec)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1Networking.NetworkPolicySpec other =
(io.kubernetes.client.proto.V1Networking.NetworkPolicySpec) obj;
boolean result = true;
result = result && (hasPodSelector() == other.hasPodSelector());
if (hasPodSelector()) {
result = result && getPodSelector().equals(other.getPodSelector());
}
result = result && getIngressList().equals(other.getIngressList());
result = result && getEgressList().equals(other.getEgressList());
result = result && getPolicyTypesList().equals(other.getPolicyTypesList());
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 (hasPodSelector()) {
hash = (37 * hash) + PODSELECTOR_FIELD_NUMBER;
hash = (53 * hash) + getPodSelector().hashCode();
}
if (getIngressCount() > 0) {
hash = (37 * hash) + INGRESS_FIELD_NUMBER;
hash = (53 * hash) + getIngressList().hashCode();
}
if (getEgressCount() > 0) {
hash = (37 * hash) + EGRESS_FIELD_NUMBER;
hash = (53 * hash) + getEgressList().hashCode();
}
if (getPolicyTypesCount() > 0) {
hash = (37 * hash) + POLICYTYPES_FIELD_NUMBER;
hash = (53 * hash) + getPolicyTypesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicySpec parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicySpec 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.V1Networking.NetworkPolicySpec parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicySpec 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.V1Networking.NetworkPolicySpec parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicySpec parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicySpec parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicySpec 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.V1Networking.NetworkPolicySpec parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicySpec 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.V1Networking.NetworkPolicySpec parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicySpec 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.V1Networking.NetworkPolicySpec 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;
}
/**
*
*
*
* NetworkPolicySpec provides the specification of a NetworkPolicy
*
*
* Protobuf type {@code k8s.io.api.networking.v1.NetworkPolicySpec}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.networking.v1.NetworkPolicySpec)
io.kubernetes.client.proto.V1Networking.NetworkPolicySpecOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_NetworkPolicySpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_NetworkPolicySpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.NetworkPolicySpec.class,
io.kubernetes.client.proto.V1Networking.NetworkPolicySpec.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1Networking.NetworkPolicySpec.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getPodSelectorFieldBuilder();
getIngressFieldBuilder();
getEgressFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (podSelectorBuilder_ == null) {
podSelector_ = null;
} else {
podSelectorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (ingressBuilder_ == null) {
ingress_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ingressBuilder_.clear();
}
if (egressBuilder_ == null) {
egress_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
egressBuilder_.clear();
}
policyTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_NetworkPolicySpec_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.NetworkPolicySpec getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1Networking.NetworkPolicySpec.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.NetworkPolicySpec build() {
io.kubernetes.client.proto.V1Networking.NetworkPolicySpec result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.NetworkPolicySpec buildPartial() {
io.kubernetes.client.proto.V1Networking.NetworkPolicySpec result =
new io.kubernetes.client.proto.V1Networking.NetworkPolicySpec(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (podSelectorBuilder_ == null) {
result.podSelector_ = podSelector_;
} else {
result.podSelector_ = podSelectorBuilder_.build();
}
if (ingressBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
ingress_ = java.util.Collections.unmodifiableList(ingress_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.ingress_ = ingress_;
} else {
result.ingress_ = ingressBuilder_.build();
}
if (egressBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
egress_ = java.util.Collections.unmodifiableList(egress_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.egress_ = egress_;
} else {
result.egress_ = egressBuilder_.build();
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
policyTypes_ = policyTypes_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000008);
}
result.policyTypes_ = policyTypes_;
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.V1Networking.NetworkPolicySpec) {
return mergeFrom((io.kubernetes.client.proto.V1Networking.NetworkPolicySpec) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1Networking.NetworkPolicySpec other) {
if (other == io.kubernetes.client.proto.V1Networking.NetworkPolicySpec.getDefaultInstance())
return this;
if (other.hasPodSelector()) {
mergePodSelector(other.getPodSelector());
}
if (ingressBuilder_ == null) {
if (!other.ingress_.isEmpty()) {
if (ingress_.isEmpty()) {
ingress_ = other.ingress_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureIngressIsMutable();
ingress_.addAll(other.ingress_);
}
onChanged();
}
} else {
if (!other.ingress_.isEmpty()) {
if (ingressBuilder_.isEmpty()) {
ingressBuilder_.dispose();
ingressBuilder_ = null;
ingress_ = other.ingress_;
bitField0_ = (bitField0_ & ~0x00000002);
ingressBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getIngressFieldBuilder()
: null;
} else {
ingressBuilder_.addAllMessages(other.ingress_);
}
}
}
if (egressBuilder_ == null) {
if (!other.egress_.isEmpty()) {
if (egress_.isEmpty()) {
egress_ = other.egress_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureEgressIsMutable();
egress_.addAll(other.egress_);
}
onChanged();
}
} else {
if (!other.egress_.isEmpty()) {
if (egressBuilder_.isEmpty()) {
egressBuilder_.dispose();
egressBuilder_ = null;
egress_ = other.egress_;
bitField0_ = (bitField0_ & ~0x00000004);
egressBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getEgressFieldBuilder()
: null;
} else {
egressBuilder_.addAllMessages(other.egress_);
}
}
}
if (!other.policyTypes_.isEmpty()) {
if (policyTypes_.isEmpty()) {
policyTypes_ = other.policyTypes_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensurePolicyTypesIsMutable();
policyTypes_.addAll(other.policyTypes_);
}
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.V1Networking.NetworkPolicySpec parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1Networking.NetworkPolicySpec) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.kubernetes.client.proto.Meta.LabelSelector podSelector_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.LabelSelector,
io.kubernetes.client.proto.Meta.LabelSelector.Builder,
io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder>
podSelectorBuilder_;
/**
*
*
*
* Selects the pods to which this NetworkPolicy object applies. The array of
* ingress rules is applied to any pods selected by this field. Multiple network
* policies can select the same set of pods. In this case, the ingress rules for
* each are combined additively. This field is NOT optional and follows standard
* label selector semantics. An empty podSelector matches all pods in this
* namespace.
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
*/
public boolean hasPodSelector() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* Selects the pods to which this NetworkPolicy object applies. The array of
* ingress rules is applied to any pods selected by this field. Multiple network
* policies can select the same set of pods. In this case, the ingress rules for
* each are combined additively. This field is NOT optional and follows standard
* label selector semantics. An empty podSelector matches all pods in this
* namespace.
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
*/
public io.kubernetes.client.proto.Meta.LabelSelector getPodSelector() {
if (podSelectorBuilder_ == null) {
return podSelector_ == null
? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance()
: podSelector_;
} else {
return podSelectorBuilder_.getMessage();
}
}
/**
*
*
*
* Selects the pods to which this NetworkPolicy object applies. The array of
* ingress rules is applied to any pods selected by this field. Multiple network
* policies can select the same set of pods. In this case, the ingress rules for
* each are combined additively. This field is NOT optional and follows standard
* label selector semantics. An empty podSelector matches all pods in this
* namespace.
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
*/
public Builder setPodSelector(io.kubernetes.client.proto.Meta.LabelSelector value) {
if (podSelectorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
podSelector_ = value;
onChanged();
} else {
podSelectorBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* Selects the pods to which this NetworkPolicy object applies. The array of
* ingress rules is applied to any pods selected by this field. Multiple network
* policies can select the same set of pods. In this case, the ingress rules for
* each are combined additively. This field is NOT optional and follows standard
* label selector semantics. An empty podSelector matches all pods in this
* namespace.
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
*/
public Builder setPodSelector(
io.kubernetes.client.proto.Meta.LabelSelector.Builder builderForValue) {
if (podSelectorBuilder_ == null) {
podSelector_ = builderForValue.build();
onChanged();
} else {
podSelectorBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* Selects the pods to which this NetworkPolicy object applies. The array of
* ingress rules is applied to any pods selected by this field. Multiple network
* policies can select the same set of pods. In this case, the ingress rules for
* each are combined additively. This field is NOT optional and follows standard
* label selector semantics. An empty podSelector matches all pods in this
* namespace.
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
*/
public Builder mergePodSelector(io.kubernetes.client.proto.Meta.LabelSelector value) {
if (podSelectorBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)
&& podSelector_ != null
&& podSelector_
!= io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance()) {
podSelector_ =
io.kubernetes.client.proto.Meta.LabelSelector.newBuilder(podSelector_)
.mergeFrom(value)
.buildPartial();
} else {
podSelector_ = value;
}
onChanged();
} else {
podSelectorBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* Selects the pods to which this NetworkPolicy object applies. The array of
* ingress rules is applied to any pods selected by this field. Multiple network
* policies can select the same set of pods. In this case, the ingress rules for
* each are combined additively. This field is NOT optional and follows standard
* label selector semantics. An empty podSelector matches all pods in this
* namespace.
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
*/
public Builder clearPodSelector() {
if (podSelectorBuilder_ == null) {
podSelector_ = null;
onChanged();
} else {
podSelectorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
*
*
*
* Selects the pods to which this NetworkPolicy object applies. The array of
* ingress rules is applied to any pods selected by this field. Multiple network
* policies can select the same set of pods. In this case, the ingress rules for
* each are combined additively. This field is NOT optional and follows standard
* label selector semantics. An empty podSelector matches all pods in this
* namespace.
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
*/
public io.kubernetes.client.proto.Meta.LabelSelector.Builder getPodSelectorBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getPodSelectorFieldBuilder().getBuilder();
}
/**
*
*
*
* Selects the pods to which this NetworkPolicy object applies. The array of
* ingress rules is applied to any pods selected by this field. Multiple network
* policies can select the same set of pods. In this case, the ingress rules for
* each are combined additively. This field is NOT optional and follows standard
* label selector semantics. An empty podSelector matches all pods in this
* namespace.
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
*/
public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getPodSelectorOrBuilder() {
if (podSelectorBuilder_ != null) {
return podSelectorBuilder_.getMessageOrBuilder();
} else {
return podSelector_ == null
? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance()
: podSelector_;
}
}
/**
*
*
*
* Selects the pods to which this NetworkPolicy object applies. The array of
* ingress rules is applied to any pods selected by this field. Multiple network
* policies can select the same set of pods. In this case, the ingress rules for
* each are combined additively. This field is NOT optional and follows standard
* label selector semantics. An empty podSelector matches all pods in this
* namespace.
*
*
* optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.LabelSelector,
io.kubernetes.client.proto.Meta.LabelSelector.Builder,
io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder>
getPodSelectorFieldBuilder() {
if (podSelectorBuilder_ == null) {
podSelectorBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
io.kubernetes.client.proto.Meta.LabelSelector,
io.kubernetes.client.proto.Meta.LabelSelector.Builder,
io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder>(
getPodSelector(), getParentForChildren(), isClean());
podSelector_ = null;
}
return podSelectorBuilder_;
}
private java.util.List
ingress_ = java.util.Collections.emptyList();
private void ensureIngressIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
ingress_ =
new java.util.ArrayList<
io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule>(ingress_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule,
io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule.Builder,
io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRuleOrBuilder>
ingressBuilder_;
/**
*
*
*
* List of ingress rules to be applied to the selected pods. Traffic is allowed to
* a pod if there are no NetworkPolicies selecting the pod
* (and cluster policy otherwise allows the traffic), OR if the traffic source is
* the pod's local node, OR if the traffic matches at least one ingress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy does not allow any traffic (and serves
* solely to ensure that the pods it selects are isolated by default)
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
*/
public java.util.List
getIngressList() {
if (ingressBuilder_ == null) {
return java.util.Collections.unmodifiableList(ingress_);
} else {
return ingressBuilder_.getMessageList();
}
}
/**
*
*
*
* List of ingress rules to be applied to the selected pods. Traffic is allowed to
* a pod if there are no NetworkPolicies selecting the pod
* (and cluster policy otherwise allows the traffic), OR if the traffic source is
* the pod's local node, OR if the traffic matches at least one ingress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy does not allow any traffic (and serves
* solely to ensure that the pods it selects are isolated by default)
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
*/
public int getIngressCount() {
if (ingressBuilder_ == null) {
return ingress_.size();
} else {
return ingressBuilder_.getCount();
}
}
/**
*
*
*
* List of ingress rules to be applied to the selected pods. Traffic is allowed to
* a pod if there are no NetworkPolicies selecting the pod
* (and cluster policy otherwise allows the traffic), OR if the traffic source is
* the pod's local node, OR if the traffic matches at least one ingress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy does not allow any traffic (and serves
* solely to ensure that the pods it selects are isolated by default)
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule getIngress(
int index) {
if (ingressBuilder_ == null) {
return ingress_.get(index);
} else {
return ingressBuilder_.getMessage(index);
}
}
/**
*
*
*
* List of ingress rules to be applied to the selected pods. Traffic is allowed to
* a pod if there are no NetworkPolicies selecting the pod
* (and cluster policy otherwise allows the traffic), OR if the traffic source is
* the pod's local node, OR if the traffic matches at least one ingress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy does not allow any traffic (and serves
* solely to ensure that the pods it selects are isolated by default)
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
*/
public Builder setIngress(
int index, io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule value) {
if (ingressBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIngressIsMutable();
ingress_.set(index, value);
onChanged();
} else {
ingressBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* List of ingress rules to be applied to the selected pods. Traffic is allowed to
* a pod if there are no NetworkPolicies selecting the pod
* (and cluster policy otherwise allows the traffic), OR if the traffic source is
* the pod's local node, OR if the traffic matches at least one ingress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy does not allow any traffic (and serves
* solely to ensure that the pods it selects are isolated by default)
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
*/
public Builder setIngress(
int index,
io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule.Builder
builderForValue) {
if (ingressBuilder_ == null) {
ensureIngressIsMutable();
ingress_.set(index, builderForValue.build());
onChanged();
} else {
ingressBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* List of ingress rules to be applied to the selected pods. Traffic is allowed to
* a pod if there are no NetworkPolicies selecting the pod
* (and cluster policy otherwise allows the traffic), OR if the traffic source is
* the pod's local node, OR if the traffic matches at least one ingress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy does not allow any traffic (and serves
* solely to ensure that the pods it selects are isolated by default)
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
*/
public Builder addIngress(
io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule value) {
if (ingressBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIngressIsMutable();
ingress_.add(value);
onChanged();
} else {
ingressBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* List of ingress rules to be applied to the selected pods. Traffic is allowed to
* a pod if there are no NetworkPolicies selecting the pod
* (and cluster policy otherwise allows the traffic), OR if the traffic source is
* the pod's local node, OR if the traffic matches at least one ingress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy does not allow any traffic (and serves
* solely to ensure that the pods it selects are isolated by default)
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
*/
public Builder addIngress(
int index, io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule value) {
if (ingressBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIngressIsMutable();
ingress_.add(index, value);
onChanged();
} else {
ingressBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* List of ingress rules to be applied to the selected pods. Traffic is allowed to
* a pod if there are no NetworkPolicies selecting the pod
* (and cluster policy otherwise allows the traffic), OR if the traffic source is
* the pod's local node, OR if the traffic matches at least one ingress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy does not allow any traffic (and serves
* solely to ensure that the pods it selects are isolated by default)
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
*/
public Builder addIngress(
io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule.Builder
builderForValue) {
if (ingressBuilder_ == null) {
ensureIngressIsMutable();
ingress_.add(builderForValue.build());
onChanged();
} else {
ingressBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* List of ingress rules to be applied to the selected pods. Traffic is allowed to
* a pod if there are no NetworkPolicies selecting the pod
* (and cluster policy otherwise allows the traffic), OR if the traffic source is
* the pod's local node, OR if the traffic matches at least one ingress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy does not allow any traffic (and serves
* solely to ensure that the pods it selects are isolated by default)
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
*/
public Builder addIngress(
int index,
io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule.Builder
builderForValue) {
if (ingressBuilder_ == null) {
ensureIngressIsMutable();
ingress_.add(index, builderForValue.build());
onChanged();
} else {
ingressBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* List of ingress rules to be applied to the selected pods. Traffic is allowed to
* a pod if there are no NetworkPolicies selecting the pod
* (and cluster policy otherwise allows the traffic), OR if the traffic source is
* the pod's local node, OR if the traffic matches at least one ingress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy does not allow any traffic (and serves
* solely to ensure that the pods it selects are isolated by default)
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
*/
public Builder addAllIngress(
java.lang.Iterable<
? extends io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule>
values) {
if (ingressBuilder_ == null) {
ensureIngressIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ingress_);
onChanged();
} else {
ingressBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* List of ingress rules to be applied to the selected pods. Traffic is allowed to
* a pod if there are no NetworkPolicies selecting the pod
* (and cluster policy otherwise allows the traffic), OR if the traffic source is
* the pod's local node, OR if the traffic matches at least one ingress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy does not allow any traffic (and serves
* solely to ensure that the pods it selects are isolated by default)
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
*/
public Builder clearIngress() {
if (ingressBuilder_ == null) {
ingress_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
ingressBuilder_.clear();
}
return this;
}
/**
*
*
*
* List of ingress rules to be applied to the selected pods. Traffic is allowed to
* a pod if there are no NetworkPolicies selecting the pod
* (and cluster policy otherwise allows the traffic), OR if the traffic source is
* the pod's local node, OR if the traffic matches at least one ingress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy does not allow any traffic (and serves
* solely to ensure that the pods it selects are isolated by default)
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
*/
public Builder removeIngress(int index) {
if (ingressBuilder_ == null) {
ensureIngressIsMutable();
ingress_.remove(index);
onChanged();
} else {
ingressBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* List of ingress rules to be applied to the selected pods. Traffic is allowed to
* a pod if there are no NetworkPolicies selecting the pod
* (and cluster policy otherwise allows the traffic), OR if the traffic source is
* the pod's local node, OR if the traffic matches at least one ingress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy does not allow any traffic (and serves
* solely to ensure that the pods it selects are isolated by default)
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule.Builder
getIngressBuilder(int index) {
return getIngressFieldBuilder().getBuilder(index);
}
/**
*
*
*
* List of ingress rules to be applied to the selected pods. Traffic is allowed to
* a pod if there are no NetworkPolicies selecting the pod
* (and cluster policy otherwise allows the traffic), OR if the traffic source is
* the pod's local node, OR if the traffic matches at least one ingress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy does not allow any traffic (and serves
* solely to ensure that the pods it selects are isolated by default)
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRuleOrBuilder
getIngressOrBuilder(int index) {
if (ingressBuilder_ == null) {
return ingress_.get(index);
} else {
return ingressBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* List of ingress rules to be applied to the selected pods. Traffic is allowed to
* a pod if there are no NetworkPolicies selecting the pod
* (and cluster policy otherwise allows the traffic), OR if the traffic source is
* the pod's local node, OR if the traffic matches at least one ingress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy does not allow any traffic (and serves
* solely to ensure that the pods it selects are isolated by default)
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
*/
public java.util.List<
? extends io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRuleOrBuilder>
getIngressOrBuilderList() {
if (ingressBuilder_ != null) {
return ingressBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(ingress_);
}
}
/**
*
*
*
* List of ingress rules to be applied to the selected pods. Traffic is allowed to
* a pod if there are no NetworkPolicies selecting the pod
* (and cluster policy otherwise allows the traffic), OR if the traffic source is
* the pod's local node, OR if the traffic matches at least one ingress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy does not allow any traffic (and serves
* solely to ensure that the pods it selects are isolated by default)
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule.Builder
addIngressBuilder() {
return getIngressFieldBuilder()
.addBuilder(
io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule
.getDefaultInstance());
}
/**
*
*
*
* List of ingress rules to be applied to the selected pods. Traffic is allowed to
* a pod if there are no NetworkPolicies selecting the pod
* (and cluster policy otherwise allows the traffic), OR if the traffic source is
* the pod's local node, OR if the traffic matches at least one ingress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy does not allow any traffic (and serves
* solely to ensure that the pods it selects are isolated by default)
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule.Builder
addIngressBuilder(int index) {
return getIngressFieldBuilder()
.addBuilder(
index,
io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule
.getDefaultInstance());
}
/**
*
*
*
* List of ingress rules to be applied to the selected pods. Traffic is allowed to
* a pod if there are no NetworkPolicies selecting the pod
* (and cluster policy otherwise allows the traffic), OR if the traffic source is
* the pod's local node, OR if the traffic matches at least one ingress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy does not allow any traffic (and serves
* solely to ensure that the pods it selects are isolated by default)
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
*/
public java.util.List<
io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule.Builder>
getIngressBuilderList() {
return getIngressFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule,
io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule.Builder,
io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRuleOrBuilder>
getIngressFieldBuilder() {
if (ingressBuilder_ == null) {
ingressBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule,
io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule.Builder,
io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRuleOrBuilder>(
ingress_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
ingress_ = null;
}
return ingressBuilder_;
}
private java.util.List
egress_ = java.util.Collections.emptyList();
private void ensureEgressIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
egress_ =
new java.util.ArrayList<
io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule>(egress_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule,
io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule.Builder,
io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRuleOrBuilder>
egressBuilder_;
/**
*
*
*
* List of egress rules to be applied to the selected pods. Outgoing traffic is
* allowed if there are no NetworkPolicies selecting the pod (and cluster policy
* otherwise allows the traffic), OR if the traffic matches at least one egress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy limits all outgoing traffic (and serves
* solely to ensure that the pods it selects are isolated by default).
* This field is beta-level in 1.8
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
*/
public java.util.List
getEgressList() {
if (egressBuilder_ == null) {
return java.util.Collections.unmodifiableList(egress_);
} else {
return egressBuilder_.getMessageList();
}
}
/**
*
*
*
* List of egress rules to be applied to the selected pods. Outgoing traffic is
* allowed if there are no NetworkPolicies selecting the pod (and cluster policy
* otherwise allows the traffic), OR if the traffic matches at least one egress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy limits all outgoing traffic (and serves
* solely to ensure that the pods it selects are isolated by default).
* This field is beta-level in 1.8
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
*/
public int getEgressCount() {
if (egressBuilder_ == null) {
return egress_.size();
} else {
return egressBuilder_.getCount();
}
}
/**
*
*
*
* List of egress rules to be applied to the selected pods. Outgoing traffic is
* allowed if there are no NetworkPolicies selecting the pod (and cluster policy
* otherwise allows the traffic), OR if the traffic matches at least one egress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy limits all outgoing traffic (and serves
* solely to ensure that the pods it selects are isolated by default).
* This field is beta-level in 1.8
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule getEgress(int index) {
if (egressBuilder_ == null) {
return egress_.get(index);
} else {
return egressBuilder_.getMessage(index);
}
}
/**
*
*
*
* List of egress rules to be applied to the selected pods. Outgoing traffic is
* allowed if there are no NetworkPolicies selecting the pod (and cluster policy
* otherwise allows the traffic), OR if the traffic matches at least one egress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy limits all outgoing traffic (and serves
* solely to ensure that the pods it selects are isolated by default).
* This field is beta-level in 1.8
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
*/
public Builder setEgress(
int index, io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule value) {
if (egressBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEgressIsMutable();
egress_.set(index, value);
onChanged();
} else {
egressBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* List of egress rules to be applied to the selected pods. Outgoing traffic is
* allowed if there are no NetworkPolicies selecting the pod (and cluster policy
* otherwise allows the traffic), OR if the traffic matches at least one egress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy limits all outgoing traffic (and serves
* solely to ensure that the pods it selects are isolated by default).
* This field is beta-level in 1.8
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
*/
public Builder setEgress(
int index,
io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule.Builder builderForValue) {
if (egressBuilder_ == null) {
ensureEgressIsMutable();
egress_.set(index, builderForValue.build());
onChanged();
} else {
egressBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* List of egress rules to be applied to the selected pods. Outgoing traffic is
* allowed if there are no NetworkPolicies selecting the pod (and cluster policy
* otherwise allows the traffic), OR if the traffic matches at least one egress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy limits all outgoing traffic (and serves
* solely to ensure that the pods it selects are isolated by default).
* This field is beta-level in 1.8
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
*/
public Builder addEgress(
io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule value) {
if (egressBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEgressIsMutable();
egress_.add(value);
onChanged();
} else {
egressBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* List of egress rules to be applied to the selected pods. Outgoing traffic is
* allowed if there are no NetworkPolicies selecting the pod (and cluster policy
* otherwise allows the traffic), OR if the traffic matches at least one egress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy limits all outgoing traffic (and serves
* solely to ensure that the pods it selects are isolated by default).
* This field is beta-level in 1.8
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
*/
public Builder addEgress(
int index, io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule value) {
if (egressBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEgressIsMutable();
egress_.add(index, value);
onChanged();
} else {
egressBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* List of egress rules to be applied to the selected pods. Outgoing traffic is
* allowed if there are no NetworkPolicies selecting the pod (and cluster policy
* otherwise allows the traffic), OR if the traffic matches at least one egress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy limits all outgoing traffic (and serves
* solely to ensure that the pods it selects are isolated by default).
* This field is beta-level in 1.8
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
*/
public Builder addEgress(
io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule.Builder builderForValue) {
if (egressBuilder_ == null) {
ensureEgressIsMutable();
egress_.add(builderForValue.build());
onChanged();
} else {
egressBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* List of egress rules to be applied to the selected pods. Outgoing traffic is
* allowed if there are no NetworkPolicies selecting the pod (and cluster policy
* otherwise allows the traffic), OR if the traffic matches at least one egress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy limits all outgoing traffic (and serves
* solely to ensure that the pods it selects are isolated by default).
* This field is beta-level in 1.8
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
*/
public Builder addEgress(
int index,
io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule.Builder builderForValue) {
if (egressBuilder_ == null) {
ensureEgressIsMutable();
egress_.add(index, builderForValue.build());
onChanged();
} else {
egressBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* List of egress rules to be applied to the selected pods. Outgoing traffic is
* allowed if there are no NetworkPolicies selecting the pod (and cluster policy
* otherwise allows the traffic), OR if the traffic matches at least one egress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy limits all outgoing traffic (and serves
* solely to ensure that the pods it selects are isolated by default).
* This field is beta-level in 1.8
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
*/
public Builder addAllEgress(
java.lang.Iterable<
? extends io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule>
values) {
if (egressBuilder_ == null) {
ensureEgressIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, egress_);
onChanged();
} else {
egressBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* List of egress rules to be applied to the selected pods. Outgoing traffic is
* allowed if there are no NetworkPolicies selecting the pod (and cluster policy
* otherwise allows the traffic), OR if the traffic matches at least one egress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy limits all outgoing traffic (and serves
* solely to ensure that the pods it selects are isolated by default).
* This field is beta-level in 1.8
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
*/
public Builder clearEgress() {
if (egressBuilder_ == null) {
egress_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
egressBuilder_.clear();
}
return this;
}
/**
*
*
*
* List of egress rules to be applied to the selected pods. Outgoing traffic is
* allowed if there are no NetworkPolicies selecting the pod (and cluster policy
* otherwise allows the traffic), OR if the traffic matches at least one egress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy limits all outgoing traffic (and serves
* solely to ensure that the pods it selects are isolated by default).
* This field is beta-level in 1.8
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
*/
public Builder removeEgress(int index) {
if (egressBuilder_ == null) {
ensureEgressIsMutable();
egress_.remove(index);
onChanged();
} else {
egressBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* List of egress rules to be applied to the selected pods. Outgoing traffic is
* allowed if there are no NetworkPolicies selecting the pod (and cluster policy
* otherwise allows the traffic), OR if the traffic matches at least one egress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy limits all outgoing traffic (and serves
* solely to ensure that the pods it selects are isolated by default).
* This field is beta-level in 1.8
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule.Builder
getEgressBuilder(int index) {
return getEgressFieldBuilder().getBuilder(index);
}
/**
*
*
*
* List of egress rules to be applied to the selected pods. Outgoing traffic is
* allowed if there are no NetworkPolicies selecting the pod (and cluster policy
* otherwise allows the traffic), OR if the traffic matches at least one egress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy limits all outgoing traffic (and serves
* solely to ensure that the pods it selects are isolated by default).
* This field is beta-level in 1.8
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRuleOrBuilder
getEgressOrBuilder(int index) {
if (egressBuilder_ == null) {
return egress_.get(index);
} else {
return egressBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* List of egress rules to be applied to the selected pods. Outgoing traffic is
* allowed if there are no NetworkPolicies selecting the pod (and cluster policy
* otherwise allows the traffic), OR if the traffic matches at least one egress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy limits all outgoing traffic (and serves
* solely to ensure that the pods it selects are isolated by default).
* This field is beta-level in 1.8
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
*/
public java.util.List<
? extends io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRuleOrBuilder>
getEgressOrBuilderList() {
if (egressBuilder_ != null) {
return egressBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(egress_);
}
}
/**
*
*
*
* List of egress rules to be applied to the selected pods. Outgoing traffic is
* allowed if there are no NetworkPolicies selecting the pod (and cluster policy
* otherwise allows the traffic), OR if the traffic matches at least one egress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy limits all outgoing traffic (and serves
* solely to ensure that the pods it selects are isolated by default).
* This field is beta-level in 1.8
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule.Builder
addEgressBuilder() {
return getEgressFieldBuilder()
.addBuilder(
io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule
.getDefaultInstance());
}
/**
*
*
*
* List of egress rules to be applied to the selected pods. Outgoing traffic is
* allowed if there are no NetworkPolicies selecting the pod (and cluster policy
* otherwise allows the traffic), OR if the traffic matches at least one egress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy limits all outgoing traffic (and serves
* solely to ensure that the pods it selects are isolated by default).
* This field is beta-level in 1.8
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
*/
public io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule.Builder
addEgressBuilder(int index) {
return getEgressFieldBuilder()
.addBuilder(
index,
io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule
.getDefaultInstance());
}
/**
*
*
*
* List of egress rules to be applied to the selected pods. Outgoing traffic is
* allowed if there are no NetworkPolicies selecting the pod (and cluster policy
* otherwise allows the traffic), OR if the traffic matches at least one egress rule
* across all of the NetworkPolicy objects whose podSelector matches the pod. If
* this field is empty then this NetworkPolicy limits all outgoing traffic (and serves
* solely to ensure that the pods it selects are isolated by default).
* This field is beta-level in 1.8
* +optional
*
*
* repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
*/
public java.util.List
getEgressBuilderList() {
return getEgressFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule,
io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule.Builder,
io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRuleOrBuilder>
getEgressFieldBuilder() {
if (egressBuilder_ == null) {
egressBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule,
io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule.Builder,
io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRuleOrBuilder>(
egress_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
egress_ = null;
}
return egressBuilder_;
}
private com.google.protobuf.LazyStringList policyTypes_ =
com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensurePolicyTypesIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
policyTypes_ = new com.google.protobuf.LazyStringArrayList(policyTypes_);
bitField0_ |= 0x00000008;
}
}
/**
*
*
*
* List of rule types that the NetworkPolicy relates to.
* Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"].
* If this field is not specified, it will default based on the existence of Ingress or Egress rules;
* policies that contain an Egress section are assumed to affect Egress, and all policies
* (whether or not they contain an Ingress section) are assumed to affect Ingress.
* If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ].
* Likewise, if you want to write a policy that specifies that no egress is allowed,
* you must specify a policyTypes value that include "Egress" (since such a policy would not include
* an Egress section and would otherwise default to just [ "Ingress" ]).
* This field is beta-level in 1.8
* +optional
*
*
* repeated string policyTypes = 4;
*/
public com.google.protobuf.ProtocolStringList getPolicyTypesList() {
return policyTypes_.getUnmodifiableView();
}
/**
*
*
*
* List of rule types that the NetworkPolicy relates to.
* Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"].
* If this field is not specified, it will default based on the existence of Ingress or Egress rules;
* policies that contain an Egress section are assumed to affect Egress, and all policies
* (whether or not they contain an Ingress section) are assumed to affect Ingress.
* If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ].
* Likewise, if you want to write a policy that specifies that no egress is allowed,
* you must specify a policyTypes value that include "Egress" (since such a policy would not include
* an Egress section and would otherwise default to just [ "Ingress" ]).
* This field is beta-level in 1.8
* +optional
*
*
* repeated string policyTypes = 4;
*/
public int getPolicyTypesCount() {
return policyTypes_.size();
}
/**
*
*
*
* List of rule types that the NetworkPolicy relates to.
* Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"].
* If this field is not specified, it will default based on the existence of Ingress or Egress rules;
* policies that contain an Egress section are assumed to affect Egress, and all policies
* (whether or not they contain an Ingress section) are assumed to affect Ingress.
* If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ].
* Likewise, if you want to write a policy that specifies that no egress is allowed,
* you must specify a policyTypes value that include "Egress" (since such a policy would not include
* an Egress section and would otherwise default to just [ "Ingress" ]).
* This field is beta-level in 1.8
* +optional
*
*
* repeated string policyTypes = 4;
*/
public java.lang.String getPolicyTypes(int index) {
return policyTypes_.get(index);
}
/**
*
*
*
* List of rule types that the NetworkPolicy relates to.
* Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"].
* If this field is not specified, it will default based on the existence of Ingress or Egress rules;
* policies that contain an Egress section are assumed to affect Egress, and all policies
* (whether or not they contain an Ingress section) are assumed to affect Ingress.
* If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ].
* Likewise, if you want to write a policy that specifies that no egress is allowed,
* you must specify a policyTypes value that include "Egress" (since such a policy would not include
* an Egress section and would otherwise default to just [ "Ingress" ]).
* This field is beta-level in 1.8
* +optional
*
*
* repeated string policyTypes = 4;
*/
public com.google.protobuf.ByteString getPolicyTypesBytes(int index) {
return policyTypes_.getByteString(index);
}
/**
*
*
*
* List of rule types that the NetworkPolicy relates to.
* Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"].
* If this field is not specified, it will default based on the existence of Ingress or Egress rules;
* policies that contain an Egress section are assumed to affect Egress, and all policies
* (whether or not they contain an Ingress section) are assumed to affect Ingress.
* If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ].
* Likewise, if you want to write a policy that specifies that no egress is allowed,
* you must specify a policyTypes value that include "Egress" (since such a policy would not include
* an Egress section and would otherwise default to just [ "Ingress" ]).
* This field is beta-level in 1.8
* +optional
*
*
* repeated string policyTypes = 4;
*/
public Builder setPolicyTypes(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePolicyTypesIsMutable();
policyTypes_.set(index, value);
onChanged();
return this;
}
/**
*
*
*
* List of rule types that the NetworkPolicy relates to.
* Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"].
* If this field is not specified, it will default based on the existence of Ingress or Egress rules;
* policies that contain an Egress section are assumed to affect Egress, and all policies
* (whether or not they contain an Ingress section) are assumed to affect Ingress.
* If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ].
* Likewise, if you want to write a policy that specifies that no egress is allowed,
* you must specify a policyTypes value that include "Egress" (since such a policy would not include
* an Egress section and would otherwise default to just [ "Ingress" ]).
* This field is beta-level in 1.8
* +optional
*
*
* repeated string policyTypes = 4;
*/
public Builder addPolicyTypes(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePolicyTypesIsMutable();
policyTypes_.add(value);
onChanged();
return this;
}
/**
*
*
*
* List of rule types that the NetworkPolicy relates to.
* Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"].
* If this field is not specified, it will default based on the existence of Ingress or Egress rules;
* policies that contain an Egress section are assumed to affect Egress, and all policies
* (whether or not they contain an Ingress section) are assumed to affect Ingress.
* If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ].
* Likewise, if you want to write a policy that specifies that no egress is allowed,
* you must specify a policyTypes value that include "Egress" (since such a policy would not include
* an Egress section and would otherwise default to just [ "Ingress" ]).
* This field is beta-level in 1.8
* +optional
*
*
* repeated string policyTypes = 4;
*/
public Builder addAllPolicyTypes(java.lang.Iterable values) {
ensurePolicyTypesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policyTypes_);
onChanged();
return this;
}
/**
*
*
*
* List of rule types that the NetworkPolicy relates to.
* Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"].
* If this field is not specified, it will default based on the existence of Ingress or Egress rules;
* policies that contain an Egress section are assumed to affect Egress, and all policies
* (whether or not they contain an Ingress section) are assumed to affect Ingress.
* If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ].
* Likewise, if you want to write a policy that specifies that no egress is allowed,
* you must specify a policyTypes value that include "Egress" (since such a policy would not include
* an Egress section and would otherwise default to just [ "Ingress" ]).
* This field is beta-level in 1.8
* +optional
*
*
* repeated string policyTypes = 4;
*/
public Builder clearPolicyTypes() {
policyTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
*
*
* List of rule types that the NetworkPolicy relates to.
* Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"].
* If this field is not specified, it will default based on the existence of Ingress or Egress rules;
* policies that contain an Egress section are assumed to affect Egress, and all policies
* (whether or not they contain an Ingress section) are assumed to affect Ingress.
* If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ].
* Likewise, if you want to write a policy that specifies that no egress is allowed,
* you must specify a policyTypes value that include "Egress" (since such a policy would not include
* an Egress section and would otherwise default to just [ "Ingress" ]).
* This field is beta-level in 1.8
* +optional
*
*
* repeated string policyTypes = 4;
*/
public Builder addPolicyTypesBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensurePolicyTypesIsMutable();
policyTypes_.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.networking.v1.NetworkPolicySpec)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.networking.v1.NetworkPolicySpec)
private static final io.kubernetes.client.proto.V1Networking.NetworkPolicySpec DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Networking.NetworkPolicySpec();
}
public static io.kubernetes.client.proto.V1Networking.NetworkPolicySpec getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NetworkPolicySpec parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NetworkPolicySpec(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.V1Networking.NetworkPolicySpec getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ServiceBackendPortOrBuilder
extends
// @@protoc_insertion_point(interface_extends:k8s.io.api.networking.v1.ServiceBackendPort)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Name is the name of the port on the Service.
* This is a mutually exclusive setting with "Number".
* +optional
*
*
* optional string name = 1;
*/
boolean hasName();
/**
*
*
*
* Name is the name of the port on the Service.
* This is a mutually exclusive setting with "Number".
* +optional
*
*
* optional string name = 1;
*/
java.lang.String getName();
/**
*
*
*
* Name is the name of the port on the Service.
* This is a mutually exclusive setting with "Number".
* +optional
*
*
* optional string name = 1;
*/
com.google.protobuf.ByteString getNameBytes();
/**
*
*
*
* Number is the numerical port number (e.g. 80) on the Service.
* This is a mutually exclusive setting with "Name".
* +optional
*
*
* optional int32 number = 2;
*/
boolean hasNumber();
/**
*
*
*
* Number is the numerical port number (e.g. 80) on the Service.
* This is a mutually exclusive setting with "Name".
* +optional
*
*
* optional int32 number = 2;
*/
int getNumber();
}
/**
*
*
*
* ServiceBackendPort is the service port being referenced.
*
*
* Protobuf type {@code k8s.io.api.networking.v1.ServiceBackendPort}
*/
public static final class ServiceBackendPort extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:k8s.io.api.networking.v1.ServiceBackendPort)
ServiceBackendPortOrBuilder {
private static final long serialVersionUID = 0L;
// Use ServiceBackendPort.newBuilder() to construct.
private ServiceBackendPort(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ServiceBackendPort() {
name_ = "";
number_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private ServiceBackendPort(
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;
name_ = bs;
break;
}
case 16:
{
bitField0_ |= 0x00000002;
number_ = 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.V1Networking
.internal_static_k8s_io_api_networking_v1_ServiceBackendPort_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_ServiceBackendPort_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.ServiceBackendPort.class,
io.kubernetes.client.proto.V1Networking.ServiceBackendPort.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
*
*
* Name is the name of the port on the Service.
* This is a mutually exclusive setting with "Number".
* +optional
*
*
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* Name is the name of the port on the Service.
* This is a mutually exclusive setting with "Number".
* +optional
*
*
* optional string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
*
*
*
* Name is the name of the port on the Service.
* This is a mutually exclusive setting with "Number".
* +optional
*
*
* optional string name = 1;
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NUMBER_FIELD_NUMBER = 2;
private int number_;
/**
*
*
*
* Number is the numerical port number (e.g. 80) on the Service.
* This is a mutually exclusive setting with "Name".
* +optional
*
*
* optional int32 number = 2;
*/
public boolean hasNumber() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* Number is the numerical port number (e.g. 80) on the Service.
* This is a mutually exclusive setting with "Name".
* +optional
*
*
* optional int32 number = 2;
*/
public int getNumber() {
return number_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, number_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, number_);
}
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.V1Networking.ServiceBackendPort)) {
return super.equals(obj);
}
io.kubernetes.client.proto.V1Networking.ServiceBackendPort other =
(io.kubernetes.client.proto.V1Networking.ServiceBackendPort) obj;
boolean result = true;
result = result && (hasName() == other.hasName());
if (hasName()) {
result = result && getName().equals(other.getName());
}
result = result && (hasNumber() == other.hasNumber());
if (hasNumber()) {
result = result && (getNumber() == other.getNumber());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasNumber()) {
hash = (37 * hash) + NUMBER_FIELD_NUMBER;
hash = (53 * hash) + getNumber();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.kubernetes.client.proto.V1Networking.ServiceBackendPort parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.ServiceBackendPort 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.V1Networking.ServiceBackendPort parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.ServiceBackendPort 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.V1Networking.ServiceBackendPort parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.kubernetes.client.proto.V1Networking.ServiceBackendPort parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.kubernetes.client.proto.V1Networking.ServiceBackendPort parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.ServiceBackendPort 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.V1Networking.ServiceBackendPort parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.ServiceBackendPort 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.V1Networking.ServiceBackendPort parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.kubernetes.client.proto.V1Networking.ServiceBackendPort 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.V1Networking.ServiceBackendPort 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;
}
/**
*
*
*
* ServiceBackendPort is the service port being referenced.
*
*
* Protobuf type {@code k8s.io.api.networking.v1.ServiceBackendPort}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:k8s.io.api.networking.v1.ServiceBackendPort)
io.kubernetes.client.proto.V1Networking.ServiceBackendPortOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_ServiceBackendPort_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_ServiceBackendPort_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.kubernetes.client.proto.V1Networking.ServiceBackendPort.class,
io.kubernetes.client.proto.V1Networking.ServiceBackendPort.Builder.class);
}
// Construct using io.kubernetes.client.proto.V1Networking.ServiceBackendPort.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();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
number_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.kubernetes.client.proto.V1Networking
.internal_static_k8s_io_api_networking_v1_ServiceBackendPort_descriptor;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.ServiceBackendPort
getDefaultInstanceForType() {
return io.kubernetes.client.proto.V1Networking.ServiceBackendPort.getDefaultInstance();
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.ServiceBackendPort build() {
io.kubernetes.client.proto.V1Networking.ServiceBackendPort result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.kubernetes.client.proto.V1Networking.ServiceBackendPort buildPartial() {
io.kubernetes.client.proto.V1Networking.ServiceBackendPort result =
new io.kubernetes.client.proto.V1Networking.ServiceBackendPort(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.number_ = number_;
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.V1Networking.ServiceBackendPort) {
return mergeFrom((io.kubernetes.client.proto.V1Networking.ServiceBackendPort) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.kubernetes.client.proto.V1Networking.ServiceBackendPort other) {
if (other
== io.kubernetes.client.proto.V1Networking.ServiceBackendPort.getDefaultInstance())
return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasNumber()) {
setNumber(other.getNumber());
}
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.V1Networking.ServiceBackendPort parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(io.kubernetes.client.proto.V1Networking.ServiceBackendPort) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
*
*
* Name is the name of the port on the Service.
* This is a mutually exclusive setting with "Number".
* +optional
*
*
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*
*
* Name is the name of the port on the Service.
* This is a mutually exclusive setting with "Number".
* +optional
*
*
* optional string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Name is the name of the port on the Service.
* This is a mutually exclusive setting with "Number".
* +optional
*
*
* optional string name = 1;
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Name is the name of the port on the Service.
* This is a mutually exclusive setting with "Number".
* +optional
*
*
* optional string name = 1;
*/
public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
*
*
*
* Name is the name of the port on the Service.
* This is a mutually exclusive setting with "Number".
* +optional
*
*
* optional string name = 1;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
*
*
* Name is the name of the port on the Service.
* This is a mutually exclusive setting with "Number".
* +optional
*
*
* optional string name = 1;
*/
public Builder setNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
private int number_;
/**
*
*
*
* Number is the numerical port number (e.g. 80) on the Service.
* This is a mutually exclusive setting with "Name".
* +optional
*
*
* optional int32 number = 2;
*/
public boolean hasNumber() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*
*
* Number is the numerical port number (e.g. 80) on the Service.
* This is a mutually exclusive setting with "Name".
* +optional
*
*
* optional int32 number = 2;
*/
public int getNumber() {
return number_;
}
/**
*
*
*
* Number is the numerical port number (e.g. 80) on the Service.
* This is a mutually exclusive setting with "Name".
* +optional
*
*
* optional int32 number = 2;
*/
public Builder setNumber(int value) {
bitField0_ |= 0x00000002;
number_ = value;
onChanged();
return this;
}
/**
*
*
*
* Number is the numerical port number (e.g. 80) on the Service.
* This is a mutually exclusive setting with "Name".
* +optional
*
*
* optional int32 number = 2;
*/
public Builder clearNumber() {
bitField0_ = (bitField0_ & ~0x00000002);
number_ = 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.networking.v1.ServiceBackendPort)
}
// @@protoc_insertion_point(class_scope:k8s.io.api.networking.v1.ServiceBackendPort)
private static final io.kubernetes.client.proto.V1Networking.ServiceBackendPort
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Networking.ServiceBackendPort();
}
public static io.kubernetes.client.proto.V1Networking.ServiceBackendPort getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated
public static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ServiceBackendPort parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ServiceBackendPort(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.V1Networking.ServiceBackendPort getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_k8s_io_api_networking_v1_HTTPIngressPath_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_k8s_io_api_networking_v1_HTTPIngressPath_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_k8s_io_api_networking_v1_HTTPIngressRuleValue_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_k8s_io_api_networking_v1_HTTPIngressRuleValue_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_k8s_io_api_networking_v1_IPBlock_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_k8s_io_api_networking_v1_IPBlock_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_k8s_io_api_networking_v1_Ingress_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_k8s_io_api_networking_v1_Ingress_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_k8s_io_api_networking_v1_IngressBackend_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_k8s_io_api_networking_v1_IngressBackend_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_k8s_io_api_networking_v1_IngressClass_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_k8s_io_api_networking_v1_IngressClass_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_k8s_io_api_networking_v1_IngressClassList_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_k8s_io_api_networking_v1_IngressClassList_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_k8s_io_api_networking_v1_IngressClassParametersReference_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_k8s_io_api_networking_v1_IngressClassParametersReference_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_k8s_io_api_networking_v1_IngressClassSpec_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_k8s_io_api_networking_v1_IngressClassSpec_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_k8s_io_api_networking_v1_IngressList_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_k8s_io_api_networking_v1_IngressList_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_k8s_io_api_networking_v1_IngressRule_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_k8s_io_api_networking_v1_IngressRule_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_k8s_io_api_networking_v1_IngressRuleValue_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_k8s_io_api_networking_v1_IngressRuleValue_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_k8s_io_api_networking_v1_IngressServiceBackend_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_k8s_io_api_networking_v1_IngressServiceBackend_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_k8s_io_api_networking_v1_IngressSpec_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_k8s_io_api_networking_v1_IngressSpec_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_k8s_io_api_networking_v1_IngressStatus_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_k8s_io_api_networking_v1_IngressStatus_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_k8s_io_api_networking_v1_IngressTLS_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_k8s_io_api_networking_v1_IngressTLS_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_k8s_io_api_networking_v1_NetworkPolicy_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_k8s_io_api_networking_v1_NetworkPolicy_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_k8s_io_api_networking_v1_NetworkPolicyEgressRule_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_k8s_io_api_networking_v1_NetworkPolicyEgressRule_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_k8s_io_api_networking_v1_NetworkPolicyIngressRule_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_k8s_io_api_networking_v1_NetworkPolicyIngressRule_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_k8s_io_api_networking_v1_NetworkPolicyList_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_k8s_io_api_networking_v1_NetworkPolicyList_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_k8s_io_api_networking_v1_NetworkPolicyPeer_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_k8s_io_api_networking_v1_NetworkPolicyPeer_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_k8s_io_api_networking_v1_NetworkPolicyPort_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_k8s_io_api_networking_v1_NetworkPolicyPort_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_k8s_io_api_networking_v1_NetworkPolicySpec_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_k8s_io_api_networking_v1_NetworkPolicySpec_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_k8s_io_api_networking_v1_ServiceBackendPort_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_k8s_io_api_networking_v1_ServiceBackendPort_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
static {
java.lang.String[] descriptorData = {
"\n(k8s.io/api/networking/v1/generated.pro"
+ "to\022\030k8s.io.api.networking.v1\032\"k8s.io/api"
+ "/core/v1/generated.proto\0324k8s.io/apimach"
+ "inery/pkg/apis/meta/v1/generated.proto\032/"
+ "k8s.io/apimachinery/pkg/runtime/generate"
+ "d.proto\0326k8s.io/apimachinery/pkg/runtime"
+ "/schema/generated.proto\0323k8s.io/apimachi"
+ "nery/pkg/util/intstr/generated.proto\"l\n\017"
+ "HTTPIngressPath\022\014\n\004path\030\001 \001(\t\022\020\n\010pathTyp"
+ "e\030\003 \001(\t\0229\n\007backend\030\002 \001(\0132(.k8s.io.api.ne"
+ "tworking.v1.IngressBackend\"P\n\024HTTPIngres"
+ "sRuleValue\0228\n\005paths\030\001 \003(\0132).k8s.io.api.n"
+ "etworking.v1.HTTPIngressPath\"\'\n\007IPBlock\022"
+ "\014\n\004cidr\030\001 \001(\t\022\016\n\006except\030\002 \003(\t\"\273\001\n\007Ingres"
+ "s\022B\n\010metadata\030\001 \001(\01320.k8s.io.apimachiner"
+ "y.pkg.apis.meta.v1.ObjectMeta\0223\n\004spec\030\002 "
+ "\001(\0132%.k8s.io.api.networking.v1.IngressSp"
+ "ec\0227\n\006status\030\003 \001(\0132\'.k8s.io.api.networki"
+ "ng.v1.IngressStatus\"\223\001\n\016IngressBackend\022@"
+ "\n\007service\030\004 \001(\0132/.k8s.io.api.networking."
+ "v1.IngressServiceBackend\022?\n\010resource\030\003 \001"
+ "(\0132-.k8s.io.api.core.v1.TypedLocalObject"
+ "Reference\"\214\001\n\014IngressClass\022B\n\010metadata\030\001"
+ " \001(\01320.k8s.io.apimachinery.pkg.apis.meta"
+ ".v1.ObjectMeta\0228\n\004spec\030\002 \001(\0132*.k8s.io.ap"
+ "i.networking.v1.IngressClassSpec\"\213\001\n\020Ing"
+ "ressClassList\022@\n\010metadata\030\001 \001(\0132..k8s.io"
+ ".apimachinery.pkg.apis.meta.v1.ListMeta\022"
+ "5\n\005items\030\002 \003(\0132&.k8s.io.api.networking.v"
+ "1.IngressClass\"q\n\037IngressClassParameters"
+ "Reference\022\020\n\010aPIGroup\030\001 \001(\t\022\014\n\004kind\030\002 \001("
+ "\t\022\014\n\004name\030\003 \001(\t\022\r\n\005scope\030\004 \001(\t\022\021\n\tnamesp"
+ "ace\030\005 \001(\t\"u\n\020IngressClassSpec\022\022\n\ncontrol"
+ "ler\030\001 \001(\t\022M\n\nparameters\030\002 \001(\01329.k8s.io.a"
+ "pi.networking.v1.IngressClassParametersR"
+ "eference\"\201\001\n\013IngressList\022@\n\010metadata\030\001 \001"
+ "(\0132..k8s.io.apimachinery.pkg.apis.meta.v"
+ "1.ListMeta\0220\n\005items\030\002 \003(\0132!.k8s.io.api.n"
+ "etworking.v1.Ingress\"a\n\013IngressRule\022\014\n\004h"
+ "ost\030\001 \001(\t\022D\n\020ingressRuleValue\030\002 \001(\0132*.k8"
+ "s.io.api.networking.v1.IngressRuleValue\""
+ "P\n\020IngressRuleValue\022<\n\004http\030\001 \001(\0132..k8s."
+ "io.api.networking.v1.HTTPIngressRuleValu"
+ "e\"a\n\025IngressServiceBackend\022\014\n\004name\030\001 \001(\t"
+ "\022:\n\004port\030\002 \001(\0132,.k8s.io.api.networking.v"
+ "1.ServiceBackendPort\"\322\001\n\013IngressSpec\022\030\n\020"
+ "ingressClassName\030\004 \001(\t\022@\n\016defaultBackend"
+ "\030\001 \001(\0132(.k8s.io.api.networking.v1.Ingres"
+ "sBackend\0221\n\003tls\030\002 \003(\0132$.k8s.io.api.netwo"
+ "rking.v1.IngressTLS\0224\n\005rules\030\003 \003(\0132%.k8s"
+ ".io.api.networking.v1.IngressRule\"M\n\rIng"
+ "ressStatus\022<\n\014loadBalancer\030\001 \001(\0132&.k8s.i"
+ "o.api.core.v1.LoadBalancerStatus\"/\n\nIngr"
+ "essTLS\022\r\n\005hosts\030\001 \003(\t\022\022\n\nsecretName\030\002 \001("
+ "\t\"\216\001\n\rNetworkPolicy\022B\n\010metadata\030\001 \001(\01320."
+ "k8s.io.apimachinery.pkg.apis.meta.v1.Obj"
+ "ectMeta\0229\n\004spec\030\002 \001(\0132+.k8s.io.api.netwo"
+ "rking.v1.NetworkPolicySpec\"\216\001\n\027NetworkPo"
+ "licyEgressRule\022:\n\005ports\030\001 \003(\0132+.k8s.io.a"
+ "pi.networking.v1.NetworkPolicyPort\0227\n\002to"
+ "\030\002 \003(\0132+.k8s.io.api.networking.v1.Networ"
+ "kPolicyPeer\"\221\001\n\030NetworkPolicyIngressRule"
+ "\022:\n\005ports\030\001 \003(\0132+.k8s.io.api.networking."
+ "v1.NetworkPolicyPort\0229\n\004from\030\002 \003(\0132+.k8s"
+ ".io.api.networking.v1.NetworkPolicyPeer\""
+ "\215\001\n\021NetworkPolicyList\022@\n\010metadata\030\001 \001(\0132"
+ "..k8s.io.apimachinery.pkg.apis.meta.v1.L"
+ "istMeta\0226\n\005items\030\002 \003(\0132\'.k8s.io.api.netw"
+ "orking.v1.NetworkPolicy\"\341\001\n\021NetworkPolic"
+ "yPeer\022H\n\013podSelector\030\001 \001(\01323.k8s.io.apim"
+ "achinery.pkg.apis.meta.v1.LabelSelector\022"
+ "N\n\021namespaceSelector\030\002 \001(\01323.k8s.io.apim"
+ "achinery.pkg.apis.meta.v1.LabelSelector\022"
+ "2\n\007ipBlock\030\003 \001(\0132!.k8s.io.api.networking"
+ ".v1.IPBlock\"v\n\021NetworkPolicyPort\022\020\n\010prot"
+ "ocol\030\001 \001(\t\022>\n\004port\030\002 \001(\01320.k8s.io.apimac"
+ "hinery.pkg.util.intstr.IntOrString\022\017\n\007en"
+ "dPort\030\003 \001(\005\"\372\001\n\021NetworkPolicySpec\022H\n\013pod"
+ "Selector\030\001 \001(\01323.k8s.io.apimachinery.pkg"
+ ".apis.meta.v1.LabelSelector\022C\n\007ingress\030\002"
+ " \003(\01322.k8s.io.api.networking.v1.NetworkP"
+ "olicyIngressRule\022A\n\006egress\030\003 \003(\01321.k8s.i"
+ "o.api.networking.v1.NetworkPolicyEgressR"
+ "ule\022\023\n\013policyTypes\030\004 \003(\t\"2\n\022ServiceBacke"
+ "ndPort\022\014\n\004name\030\001 \001(\t\022\016\n\006number\030\002 \001(\005B.\n\032"
+ "io.kubernetes.client.protoB\014V1Networking"
+ "Z\002v1"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
io.kubernetes.client.proto.V1.getDescriptor(),
io.kubernetes.client.proto.Meta.getDescriptor(),
io.kubernetes.client.proto.Runtime.getDescriptor(),
io.kubernetes.client.proto.RuntimeSchema.getDescriptor(),
io.kubernetes.client.proto.IntStr.getDescriptor(),
},
assigner);
internal_static_k8s_io_api_networking_v1_HTTPIngressPath_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_k8s_io_api_networking_v1_HTTPIngressPath_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_k8s_io_api_networking_v1_HTTPIngressPath_descriptor,
new java.lang.String[] {
"Path", "PathType", "Backend",
});
internal_static_k8s_io_api_networking_v1_HTTPIngressRuleValue_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_k8s_io_api_networking_v1_HTTPIngressRuleValue_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_k8s_io_api_networking_v1_HTTPIngressRuleValue_descriptor,
new java.lang.String[] {
"Paths",
});
internal_static_k8s_io_api_networking_v1_IPBlock_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_k8s_io_api_networking_v1_IPBlock_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_k8s_io_api_networking_v1_IPBlock_descriptor,
new java.lang.String[] {
"Cidr", "Except",
});
internal_static_k8s_io_api_networking_v1_Ingress_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_k8s_io_api_networking_v1_Ingress_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_k8s_io_api_networking_v1_Ingress_descriptor,
new java.lang.String[] {
"Metadata", "Spec", "Status",
});
internal_static_k8s_io_api_networking_v1_IngressBackend_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_k8s_io_api_networking_v1_IngressBackend_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_k8s_io_api_networking_v1_IngressBackend_descriptor,
new java.lang.String[] {
"Service", "Resource",
});
internal_static_k8s_io_api_networking_v1_IngressClass_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_k8s_io_api_networking_v1_IngressClass_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_k8s_io_api_networking_v1_IngressClass_descriptor,
new java.lang.String[] {
"Metadata", "Spec",
});
internal_static_k8s_io_api_networking_v1_IngressClassList_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_k8s_io_api_networking_v1_IngressClassList_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_k8s_io_api_networking_v1_IngressClassList_descriptor,
new java.lang.String[] {
"Metadata", "Items",
});
internal_static_k8s_io_api_networking_v1_IngressClassParametersReference_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_k8s_io_api_networking_v1_IngressClassParametersReference_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_k8s_io_api_networking_v1_IngressClassParametersReference_descriptor,
new java.lang.String[] {
"APIGroup", "Kind", "Name", "Scope", "Namespace",
});
internal_static_k8s_io_api_networking_v1_IngressClassSpec_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_k8s_io_api_networking_v1_IngressClassSpec_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_k8s_io_api_networking_v1_IngressClassSpec_descriptor,
new java.lang.String[] {
"Controller", "Parameters",
});
internal_static_k8s_io_api_networking_v1_IngressList_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_k8s_io_api_networking_v1_IngressList_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_k8s_io_api_networking_v1_IngressList_descriptor,
new java.lang.String[] {
"Metadata", "Items",
});
internal_static_k8s_io_api_networking_v1_IngressRule_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_k8s_io_api_networking_v1_IngressRule_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_k8s_io_api_networking_v1_IngressRule_descriptor,
new java.lang.String[] {
"Host", "IngressRuleValue",
});
internal_static_k8s_io_api_networking_v1_IngressRuleValue_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_k8s_io_api_networking_v1_IngressRuleValue_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_k8s_io_api_networking_v1_IngressRuleValue_descriptor,
new java.lang.String[] {
"Http",
});
internal_static_k8s_io_api_networking_v1_IngressServiceBackend_descriptor =
getDescriptor().getMessageTypes().get(12);
internal_static_k8s_io_api_networking_v1_IngressServiceBackend_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_k8s_io_api_networking_v1_IngressServiceBackend_descriptor,
new java.lang.String[] {
"Name", "Port",
});
internal_static_k8s_io_api_networking_v1_IngressSpec_descriptor =
getDescriptor().getMessageTypes().get(13);
internal_static_k8s_io_api_networking_v1_IngressSpec_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_k8s_io_api_networking_v1_IngressSpec_descriptor,
new java.lang.String[] {
"IngressClassName", "DefaultBackend", "Tls", "Rules",
});
internal_static_k8s_io_api_networking_v1_IngressStatus_descriptor =
getDescriptor().getMessageTypes().get(14);
internal_static_k8s_io_api_networking_v1_IngressStatus_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_k8s_io_api_networking_v1_IngressStatus_descriptor,
new java.lang.String[] {
"LoadBalancer",
});
internal_static_k8s_io_api_networking_v1_IngressTLS_descriptor =
getDescriptor().getMessageTypes().get(15);
internal_static_k8s_io_api_networking_v1_IngressTLS_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_k8s_io_api_networking_v1_IngressTLS_descriptor,
new java.lang.String[] {
"Hosts", "SecretName",
});
internal_static_k8s_io_api_networking_v1_NetworkPolicy_descriptor =
getDescriptor().getMessageTypes().get(16);
internal_static_k8s_io_api_networking_v1_NetworkPolicy_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_k8s_io_api_networking_v1_NetworkPolicy_descriptor,
new java.lang.String[] {
"Metadata", "Spec",
});
internal_static_k8s_io_api_networking_v1_NetworkPolicyEgressRule_descriptor =
getDescriptor().getMessageTypes().get(17);
internal_static_k8s_io_api_networking_v1_NetworkPolicyEgressRule_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_k8s_io_api_networking_v1_NetworkPolicyEgressRule_descriptor,
new java.lang.String[] {
"Ports", "To",
});
internal_static_k8s_io_api_networking_v1_NetworkPolicyIngressRule_descriptor =
getDescriptor().getMessageTypes().get(18);
internal_static_k8s_io_api_networking_v1_NetworkPolicyIngressRule_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_k8s_io_api_networking_v1_NetworkPolicyIngressRule_descriptor,
new java.lang.String[] {
"Ports", "From",
});
internal_static_k8s_io_api_networking_v1_NetworkPolicyList_descriptor =
getDescriptor().getMessageTypes().get(19);
internal_static_k8s_io_api_networking_v1_NetworkPolicyList_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_k8s_io_api_networking_v1_NetworkPolicyList_descriptor,
new java.lang.String[] {
"Metadata", "Items",
});
internal_static_k8s_io_api_networking_v1_NetworkPolicyPeer_descriptor =
getDescriptor().getMessageTypes().get(20);
internal_static_k8s_io_api_networking_v1_NetworkPolicyPeer_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_k8s_io_api_networking_v1_NetworkPolicyPeer_descriptor,
new java.lang.String[] {
"PodSelector", "NamespaceSelector", "IpBlock",
});
internal_static_k8s_io_api_networking_v1_NetworkPolicyPort_descriptor =
getDescriptor().getMessageTypes().get(21);
internal_static_k8s_io_api_networking_v1_NetworkPolicyPort_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_k8s_io_api_networking_v1_NetworkPolicyPort_descriptor,
new java.lang.String[] {
"Protocol", "Port", "EndPort",
});
internal_static_k8s_io_api_networking_v1_NetworkPolicySpec_descriptor =
getDescriptor().getMessageTypes().get(22);
internal_static_k8s_io_api_networking_v1_NetworkPolicySpec_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_k8s_io_api_networking_v1_NetworkPolicySpec_descriptor,
new java.lang.String[] {
"PodSelector", "Ingress", "Egress", "PolicyTypes",
});
internal_static_k8s_io_api_networking_v1_ServiceBackendPort_descriptor =
getDescriptor().getMessageTypes().get(23);
internal_static_k8s_io_api_networking_v1_ServiceBackendPort_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_k8s_io_api_networking_v1_ServiceBackendPort_descriptor,
new java.lang.String[] {
"Name", "Number",
});
io.kubernetes.client.proto.V1.getDescriptor();
io.kubernetes.client.proto.Meta.getDescriptor();
io.kubernetes.client.proto.Runtime.getDescriptor();
io.kubernetes.client.proto.RuntimeSchema.getDescriptor();
io.kubernetes.client.proto.IntStr.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy