Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
io.envoyproxy.envoy.service.status.v2.PerXdsConfig Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/service/status/v2/csds.proto
package io.envoyproxy.envoy.service.status.v2;
/**
*
* Detailed config (per xDS) with status.
* [#next-free-field: 6]
*
*
* Protobuf type {@code envoy.service.status.v2.PerXdsConfig}
*/
public final class PerXdsConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.service.status.v2.PerXdsConfig)
PerXdsConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use PerXdsConfig.newBuilder() to construct.
private PerXdsConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PerXdsConfig() {
status_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PerXdsConfig();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PerXdsConfig(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
status_ = rawValue;
break;
}
case 18: {
io.envoyproxy.envoy.admin.v2alpha.ListenersConfigDump.Builder subBuilder = null;
if (perXdsConfigCase_ == 2) {
subBuilder = ((io.envoyproxy.envoy.admin.v2alpha.ListenersConfigDump) perXdsConfig_).toBuilder();
}
perXdsConfig_ =
input.readMessage(io.envoyproxy.envoy.admin.v2alpha.ListenersConfigDump.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.admin.v2alpha.ListenersConfigDump) perXdsConfig_);
perXdsConfig_ = subBuilder.buildPartial();
}
perXdsConfigCase_ = 2;
break;
}
case 26: {
io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.Builder subBuilder = null;
if (perXdsConfigCase_ == 3) {
subBuilder = ((io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump) perXdsConfig_).toBuilder();
}
perXdsConfig_ =
input.readMessage(io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump) perXdsConfig_);
perXdsConfig_ = subBuilder.buildPartial();
}
perXdsConfigCase_ = 3;
break;
}
case 34: {
io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.Builder subBuilder = null;
if (perXdsConfigCase_ == 4) {
subBuilder = ((io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump) perXdsConfig_).toBuilder();
}
perXdsConfig_ =
input.readMessage(io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump) perXdsConfig_);
perXdsConfig_ = subBuilder.buildPartial();
}
perXdsConfigCase_ = 4;
break;
}
case 42: {
io.envoyproxy.envoy.admin.v2alpha.ScopedRoutesConfigDump.Builder subBuilder = null;
if (perXdsConfigCase_ == 5) {
subBuilder = ((io.envoyproxy.envoy.admin.v2alpha.ScopedRoutesConfigDump) perXdsConfig_).toBuilder();
}
perXdsConfig_ =
input.readMessage(io.envoyproxy.envoy.admin.v2alpha.ScopedRoutesConfigDump.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.envoyproxy.envoy.admin.v2alpha.ScopedRoutesConfigDump) perXdsConfig_);
perXdsConfig_ = subBuilder.buildPartial();
}
perXdsConfigCase_ = 5;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().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.envoyproxy.envoy.service.status.v2.CsdsProto.internal_static_envoy_service_status_v2_PerXdsConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.status.v2.CsdsProto.internal_static_envoy_service_status_v2_PerXdsConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.status.v2.PerXdsConfig.class, io.envoyproxy.envoy.service.status.v2.PerXdsConfig.Builder.class);
}
private int perXdsConfigCase_ = 0;
private java.lang.Object perXdsConfig_;
public enum PerXdsConfigCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
LISTENER_CONFIG(2),
CLUSTER_CONFIG(3),
ROUTE_CONFIG(4),
SCOPED_ROUTE_CONFIG(5),
PERXDSCONFIG_NOT_SET(0);
private final int value;
private PerXdsConfigCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static PerXdsConfigCase valueOf(int value) {
return forNumber(value);
}
public static PerXdsConfigCase forNumber(int value) {
switch (value) {
case 2: return LISTENER_CONFIG;
case 3: return CLUSTER_CONFIG;
case 4: return ROUTE_CONFIG;
case 5: return SCOPED_ROUTE_CONFIG;
case 0: return PERXDSCONFIG_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public PerXdsConfigCase
getPerXdsConfigCase() {
return PerXdsConfigCase.forNumber(
perXdsConfigCase_);
}
public static final int STATUS_FIELD_NUMBER = 1;
private int status_;
/**
* .envoy.service.status.v2.ConfigStatus status = 1;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
* .envoy.service.status.v2.ConfigStatus status = 1;
* @return The status.
*/
@java.lang.Override public io.envoyproxy.envoy.service.status.v2.ConfigStatus getStatus() {
@SuppressWarnings("deprecation")
io.envoyproxy.envoy.service.status.v2.ConfigStatus result = io.envoyproxy.envoy.service.status.v2.ConfigStatus.valueOf(status_);
return result == null ? io.envoyproxy.envoy.service.status.v2.ConfigStatus.UNRECOGNIZED : result;
}
public static final int LISTENER_CONFIG_FIELD_NUMBER = 2;
/**
* .envoy.admin.v2alpha.ListenersConfigDump listener_config = 2;
* @return Whether the listenerConfig field is set.
*/
@java.lang.Override
public boolean hasListenerConfig() {
return perXdsConfigCase_ == 2;
}
/**
* .envoy.admin.v2alpha.ListenersConfigDump listener_config = 2;
* @return The listenerConfig.
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.ListenersConfigDump getListenerConfig() {
if (perXdsConfigCase_ == 2) {
return (io.envoyproxy.envoy.admin.v2alpha.ListenersConfigDump) perXdsConfig_;
}
return io.envoyproxy.envoy.admin.v2alpha.ListenersConfigDump.getDefaultInstance();
}
/**
* .envoy.admin.v2alpha.ListenersConfigDump listener_config = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.ListenersConfigDumpOrBuilder getListenerConfigOrBuilder() {
if (perXdsConfigCase_ == 2) {
return (io.envoyproxy.envoy.admin.v2alpha.ListenersConfigDump) perXdsConfig_;
}
return io.envoyproxy.envoy.admin.v2alpha.ListenersConfigDump.getDefaultInstance();
}
public static final int CLUSTER_CONFIG_FIELD_NUMBER = 3;
/**
* .envoy.admin.v2alpha.ClustersConfigDump cluster_config = 3;
* @return Whether the clusterConfig field is set.
*/
@java.lang.Override
public boolean hasClusterConfig() {
return perXdsConfigCase_ == 3;
}
/**
* .envoy.admin.v2alpha.ClustersConfigDump cluster_config = 3;
* @return The clusterConfig.
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump getClusterConfig() {
if (perXdsConfigCase_ == 3) {
return (io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump) perXdsConfig_;
}
return io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.getDefaultInstance();
}
/**
* .envoy.admin.v2alpha.ClustersConfigDump cluster_config = 3;
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDumpOrBuilder getClusterConfigOrBuilder() {
if (perXdsConfigCase_ == 3) {
return (io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump) perXdsConfig_;
}
return io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.getDefaultInstance();
}
public static final int ROUTE_CONFIG_FIELD_NUMBER = 4;
/**
* .envoy.admin.v2alpha.RoutesConfigDump route_config = 4;
* @return Whether the routeConfig field is set.
*/
@java.lang.Override
public boolean hasRouteConfig() {
return perXdsConfigCase_ == 4;
}
/**
* .envoy.admin.v2alpha.RoutesConfigDump route_config = 4;
* @return The routeConfig.
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump getRouteConfig() {
if (perXdsConfigCase_ == 4) {
return (io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump) perXdsConfig_;
}
return io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.getDefaultInstance();
}
/**
* .envoy.admin.v2alpha.RoutesConfigDump route_config = 4;
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDumpOrBuilder getRouteConfigOrBuilder() {
if (perXdsConfigCase_ == 4) {
return (io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump) perXdsConfig_;
}
return io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.getDefaultInstance();
}
public static final int SCOPED_ROUTE_CONFIG_FIELD_NUMBER = 5;
/**
* .envoy.admin.v2alpha.ScopedRoutesConfigDump scoped_route_config = 5;
* @return Whether the scopedRouteConfig field is set.
*/
@java.lang.Override
public boolean hasScopedRouteConfig() {
return perXdsConfigCase_ == 5;
}
/**
* .envoy.admin.v2alpha.ScopedRoutesConfigDump scoped_route_config = 5;
* @return The scopedRouteConfig.
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.ScopedRoutesConfigDump getScopedRouteConfig() {
if (perXdsConfigCase_ == 5) {
return (io.envoyproxy.envoy.admin.v2alpha.ScopedRoutesConfigDump) perXdsConfig_;
}
return io.envoyproxy.envoy.admin.v2alpha.ScopedRoutesConfigDump.getDefaultInstance();
}
/**
* .envoy.admin.v2alpha.ScopedRoutesConfigDump scoped_route_config = 5;
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.ScopedRoutesConfigDumpOrBuilder getScopedRouteConfigOrBuilder() {
if (perXdsConfigCase_ == 5) {
return (io.envoyproxy.envoy.admin.v2alpha.ScopedRoutesConfigDump) perXdsConfig_;
}
return io.envoyproxy.envoy.admin.v2alpha.ScopedRoutesConfigDump.getDefaultInstance();
}
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 (status_ != io.envoyproxy.envoy.service.status.v2.ConfigStatus.UNKNOWN.getNumber()) {
output.writeEnum(1, status_);
}
if (perXdsConfigCase_ == 2) {
output.writeMessage(2, (io.envoyproxy.envoy.admin.v2alpha.ListenersConfigDump) perXdsConfig_);
}
if (perXdsConfigCase_ == 3) {
output.writeMessage(3, (io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump) perXdsConfig_);
}
if (perXdsConfigCase_ == 4) {
output.writeMessage(4, (io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump) perXdsConfig_);
}
if (perXdsConfigCase_ == 5) {
output.writeMessage(5, (io.envoyproxy.envoy.admin.v2alpha.ScopedRoutesConfigDump) perXdsConfig_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (status_ != io.envoyproxy.envoy.service.status.v2.ConfigStatus.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, status_);
}
if (perXdsConfigCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.envoyproxy.envoy.admin.v2alpha.ListenersConfigDump) perXdsConfig_);
}
if (perXdsConfigCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump) perXdsConfig_);
}
if (perXdsConfigCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump) perXdsConfig_);
}
if (perXdsConfigCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (io.envoyproxy.envoy.admin.v2alpha.ScopedRoutesConfigDump) perXdsConfig_);
}
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.envoyproxy.envoy.service.status.v2.PerXdsConfig)) {
return super.equals(obj);
}
io.envoyproxy.envoy.service.status.v2.PerXdsConfig other = (io.envoyproxy.envoy.service.status.v2.PerXdsConfig) obj;
if (status_ != other.status_) return false;
if (!getPerXdsConfigCase().equals(other.getPerXdsConfigCase())) return false;
switch (perXdsConfigCase_) {
case 2:
if (!getListenerConfig()
.equals(other.getListenerConfig())) return false;
break;
case 3:
if (!getClusterConfig()
.equals(other.getClusterConfig())) return false;
break;
case 4:
if (!getRouteConfig()
.equals(other.getRouteConfig())) return false;
break;
case 5:
if (!getScopedRouteConfig()
.equals(other.getScopedRouteConfig())) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
switch (perXdsConfigCase_) {
case 2:
hash = (37 * hash) + LISTENER_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getListenerConfig().hashCode();
break;
case 3:
hash = (37 * hash) + CLUSTER_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getClusterConfig().hashCode();
break;
case 4:
hash = (37 * hash) + ROUTE_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getRouteConfig().hashCode();
break;
case 5:
hash = (37 * hash) + SCOPED_ROUTE_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getScopedRouteConfig().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.service.status.v2.PerXdsConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.status.v2.PerXdsConfig parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.service.status.v2.PerXdsConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.status.v2.PerXdsConfig parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.service.status.v2.PerXdsConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.status.v2.PerXdsConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.service.status.v2.PerXdsConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.status.v2.PerXdsConfig 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.envoyproxy.envoy.service.status.v2.PerXdsConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.status.v2.PerXdsConfig 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.envoyproxy.envoy.service.status.v2.PerXdsConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.status.v2.PerXdsConfig 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.envoyproxy.envoy.service.status.v2.PerXdsConfig 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;
}
/**
*
* Detailed config (per xDS) with status.
* [#next-free-field: 6]
*
*
* Protobuf type {@code envoy.service.status.v2.PerXdsConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.service.status.v2.PerXdsConfig)
io.envoyproxy.envoy.service.status.v2.PerXdsConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.status.v2.CsdsProto.internal_static_envoy_service_status_v2_PerXdsConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.status.v2.CsdsProto.internal_static_envoy_service_status_v2_PerXdsConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.status.v2.PerXdsConfig.class, io.envoyproxy.envoy.service.status.v2.PerXdsConfig.Builder.class);
}
// Construct using io.envoyproxy.envoy.service.status.v2.PerXdsConfig.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();
status_ = 0;
perXdsConfigCase_ = 0;
perXdsConfig_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.service.status.v2.CsdsProto.internal_static_envoy_service_status_v2_PerXdsConfig_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.service.status.v2.PerXdsConfig getDefaultInstanceForType() {
return io.envoyproxy.envoy.service.status.v2.PerXdsConfig.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.service.status.v2.PerXdsConfig build() {
io.envoyproxy.envoy.service.status.v2.PerXdsConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.service.status.v2.PerXdsConfig buildPartial() {
io.envoyproxy.envoy.service.status.v2.PerXdsConfig result = new io.envoyproxy.envoy.service.status.v2.PerXdsConfig(this);
result.status_ = status_;
if (perXdsConfigCase_ == 2) {
if (listenerConfigBuilder_ == null) {
result.perXdsConfig_ = perXdsConfig_;
} else {
result.perXdsConfig_ = listenerConfigBuilder_.build();
}
}
if (perXdsConfigCase_ == 3) {
if (clusterConfigBuilder_ == null) {
result.perXdsConfig_ = perXdsConfig_;
} else {
result.perXdsConfig_ = clusterConfigBuilder_.build();
}
}
if (perXdsConfigCase_ == 4) {
if (routeConfigBuilder_ == null) {
result.perXdsConfig_ = perXdsConfig_;
} else {
result.perXdsConfig_ = routeConfigBuilder_.build();
}
}
if (perXdsConfigCase_ == 5) {
if (scopedRouteConfigBuilder_ == null) {
result.perXdsConfig_ = perXdsConfig_;
} else {
result.perXdsConfig_ = scopedRouteConfigBuilder_.build();
}
}
result.perXdsConfigCase_ = perXdsConfigCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.envoy.service.status.v2.PerXdsConfig) {
return mergeFrom((io.envoyproxy.envoy.service.status.v2.PerXdsConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.service.status.v2.PerXdsConfig other) {
if (other == io.envoyproxy.envoy.service.status.v2.PerXdsConfig.getDefaultInstance()) return this;
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
switch (other.getPerXdsConfigCase()) {
case LISTENER_CONFIG: {
mergeListenerConfig(other.getListenerConfig());
break;
}
case CLUSTER_CONFIG: {
mergeClusterConfig(other.getClusterConfig());
break;
}
case ROUTE_CONFIG: {
mergeRouteConfig(other.getRouteConfig());
break;
}
case SCOPED_ROUTE_CONFIG: {
mergeScopedRouteConfig(other.getScopedRouteConfig());
break;
}
case PERXDSCONFIG_NOT_SET: {
break;
}
}
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.envoyproxy.envoy.service.status.v2.PerXdsConfig parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.service.status.v2.PerXdsConfig) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int perXdsConfigCase_ = 0;
private java.lang.Object perXdsConfig_;
public PerXdsConfigCase
getPerXdsConfigCase() {
return PerXdsConfigCase.forNumber(
perXdsConfigCase_);
}
public Builder clearPerXdsConfig() {
perXdsConfigCase_ = 0;
perXdsConfig_ = null;
onChanged();
return this;
}
private int status_ = 0;
/**
* .envoy.service.status.v2.ConfigStatus status = 1;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
* .envoy.service.status.v2.ConfigStatus status = 1;
* @param value The enum numeric value on the wire for status to set.
* @return This builder for chaining.
*/
public Builder setStatusValue(int value) {
status_ = value;
onChanged();
return this;
}
/**
* .envoy.service.status.v2.ConfigStatus status = 1;
* @return The status.
*/
@java.lang.Override
public io.envoyproxy.envoy.service.status.v2.ConfigStatus getStatus() {
@SuppressWarnings("deprecation")
io.envoyproxy.envoy.service.status.v2.ConfigStatus result = io.envoyproxy.envoy.service.status.v2.ConfigStatus.valueOf(status_);
return result == null ? io.envoyproxy.envoy.service.status.v2.ConfigStatus.UNRECOGNIZED : result;
}
/**
* .envoy.service.status.v2.ConfigStatus status = 1;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(io.envoyproxy.envoy.service.status.v2.ConfigStatus value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
/**
* .envoy.service.status.v2.ConfigStatus status = 1;
* @return This builder for chaining.
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v2alpha.ListenersConfigDump, io.envoyproxy.envoy.admin.v2alpha.ListenersConfigDump.Builder, io.envoyproxy.envoy.admin.v2alpha.ListenersConfigDumpOrBuilder> listenerConfigBuilder_;
/**
* .envoy.admin.v2alpha.ListenersConfigDump listener_config = 2;
* @return Whether the listenerConfig field is set.
*/
@java.lang.Override
public boolean hasListenerConfig() {
return perXdsConfigCase_ == 2;
}
/**
* .envoy.admin.v2alpha.ListenersConfigDump listener_config = 2;
* @return The listenerConfig.
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.ListenersConfigDump getListenerConfig() {
if (listenerConfigBuilder_ == null) {
if (perXdsConfigCase_ == 2) {
return (io.envoyproxy.envoy.admin.v2alpha.ListenersConfigDump) perXdsConfig_;
}
return io.envoyproxy.envoy.admin.v2alpha.ListenersConfigDump.getDefaultInstance();
} else {
if (perXdsConfigCase_ == 2) {
return listenerConfigBuilder_.getMessage();
}
return io.envoyproxy.envoy.admin.v2alpha.ListenersConfigDump.getDefaultInstance();
}
}
/**
* .envoy.admin.v2alpha.ListenersConfigDump listener_config = 2;
*/
public Builder setListenerConfig(io.envoyproxy.envoy.admin.v2alpha.ListenersConfigDump value) {
if (listenerConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
perXdsConfig_ = value;
onChanged();
} else {
listenerConfigBuilder_.setMessage(value);
}
perXdsConfigCase_ = 2;
return this;
}
/**
* .envoy.admin.v2alpha.ListenersConfigDump listener_config = 2;
*/
public Builder setListenerConfig(
io.envoyproxy.envoy.admin.v2alpha.ListenersConfigDump.Builder builderForValue) {
if (listenerConfigBuilder_ == null) {
perXdsConfig_ = builderForValue.build();
onChanged();
} else {
listenerConfigBuilder_.setMessage(builderForValue.build());
}
perXdsConfigCase_ = 2;
return this;
}
/**
* .envoy.admin.v2alpha.ListenersConfigDump listener_config = 2;
*/
public Builder mergeListenerConfig(io.envoyproxy.envoy.admin.v2alpha.ListenersConfigDump value) {
if (listenerConfigBuilder_ == null) {
if (perXdsConfigCase_ == 2 &&
perXdsConfig_ != io.envoyproxy.envoy.admin.v2alpha.ListenersConfigDump.getDefaultInstance()) {
perXdsConfig_ = io.envoyproxy.envoy.admin.v2alpha.ListenersConfigDump.newBuilder((io.envoyproxy.envoy.admin.v2alpha.ListenersConfigDump) perXdsConfig_)
.mergeFrom(value).buildPartial();
} else {
perXdsConfig_ = value;
}
onChanged();
} else {
if (perXdsConfigCase_ == 2) {
listenerConfigBuilder_.mergeFrom(value);
} else {
listenerConfigBuilder_.setMessage(value);
}
}
perXdsConfigCase_ = 2;
return this;
}
/**
* .envoy.admin.v2alpha.ListenersConfigDump listener_config = 2;
*/
public Builder clearListenerConfig() {
if (listenerConfigBuilder_ == null) {
if (perXdsConfigCase_ == 2) {
perXdsConfigCase_ = 0;
perXdsConfig_ = null;
onChanged();
}
} else {
if (perXdsConfigCase_ == 2) {
perXdsConfigCase_ = 0;
perXdsConfig_ = null;
}
listenerConfigBuilder_.clear();
}
return this;
}
/**
* .envoy.admin.v2alpha.ListenersConfigDump listener_config = 2;
*/
public io.envoyproxy.envoy.admin.v2alpha.ListenersConfigDump.Builder getListenerConfigBuilder() {
return getListenerConfigFieldBuilder().getBuilder();
}
/**
* .envoy.admin.v2alpha.ListenersConfigDump listener_config = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.ListenersConfigDumpOrBuilder getListenerConfigOrBuilder() {
if ((perXdsConfigCase_ == 2) && (listenerConfigBuilder_ != null)) {
return listenerConfigBuilder_.getMessageOrBuilder();
} else {
if (perXdsConfigCase_ == 2) {
return (io.envoyproxy.envoy.admin.v2alpha.ListenersConfigDump) perXdsConfig_;
}
return io.envoyproxy.envoy.admin.v2alpha.ListenersConfigDump.getDefaultInstance();
}
}
/**
* .envoy.admin.v2alpha.ListenersConfigDump listener_config = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v2alpha.ListenersConfigDump, io.envoyproxy.envoy.admin.v2alpha.ListenersConfigDump.Builder, io.envoyproxy.envoy.admin.v2alpha.ListenersConfigDumpOrBuilder>
getListenerConfigFieldBuilder() {
if (listenerConfigBuilder_ == null) {
if (!(perXdsConfigCase_ == 2)) {
perXdsConfig_ = io.envoyproxy.envoy.admin.v2alpha.ListenersConfigDump.getDefaultInstance();
}
listenerConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v2alpha.ListenersConfigDump, io.envoyproxy.envoy.admin.v2alpha.ListenersConfigDump.Builder, io.envoyproxy.envoy.admin.v2alpha.ListenersConfigDumpOrBuilder>(
(io.envoyproxy.envoy.admin.v2alpha.ListenersConfigDump) perXdsConfig_,
getParentForChildren(),
isClean());
perXdsConfig_ = null;
}
perXdsConfigCase_ = 2;
onChanged();;
return listenerConfigBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.Builder, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDumpOrBuilder> clusterConfigBuilder_;
/**
* .envoy.admin.v2alpha.ClustersConfigDump cluster_config = 3;
* @return Whether the clusterConfig field is set.
*/
@java.lang.Override
public boolean hasClusterConfig() {
return perXdsConfigCase_ == 3;
}
/**
* .envoy.admin.v2alpha.ClustersConfigDump cluster_config = 3;
* @return The clusterConfig.
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump getClusterConfig() {
if (clusterConfigBuilder_ == null) {
if (perXdsConfigCase_ == 3) {
return (io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump) perXdsConfig_;
}
return io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.getDefaultInstance();
} else {
if (perXdsConfigCase_ == 3) {
return clusterConfigBuilder_.getMessage();
}
return io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.getDefaultInstance();
}
}
/**
* .envoy.admin.v2alpha.ClustersConfigDump cluster_config = 3;
*/
public Builder setClusterConfig(io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump value) {
if (clusterConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
perXdsConfig_ = value;
onChanged();
} else {
clusterConfigBuilder_.setMessage(value);
}
perXdsConfigCase_ = 3;
return this;
}
/**
* .envoy.admin.v2alpha.ClustersConfigDump cluster_config = 3;
*/
public Builder setClusterConfig(
io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.Builder builderForValue) {
if (clusterConfigBuilder_ == null) {
perXdsConfig_ = builderForValue.build();
onChanged();
} else {
clusterConfigBuilder_.setMessage(builderForValue.build());
}
perXdsConfigCase_ = 3;
return this;
}
/**
* .envoy.admin.v2alpha.ClustersConfigDump cluster_config = 3;
*/
public Builder mergeClusterConfig(io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump value) {
if (clusterConfigBuilder_ == null) {
if (perXdsConfigCase_ == 3 &&
perXdsConfig_ != io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.getDefaultInstance()) {
perXdsConfig_ = io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.newBuilder((io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump) perXdsConfig_)
.mergeFrom(value).buildPartial();
} else {
perXdsConfig_ = value;
}
onChanged();
} else {
if (perXdsConfigCase_ == 3) {
clusterConfigBuilder_.mergeFrom(value);
} else {
clusterConfigBuilder_.setMessage(value);
}
}
perXdsConfigCase_ = 3;
return this;
}
/**
* .envoy.admin.v2alpha.ClustersConfigDump cluster_config = 3;
*/
public Builder clearClusterConfig() {
if (clusterConfigBuilder_ == null) {
if (perXdsConfigCase_ == 3) {
perXdsConfigCase_ = 0;
perXdsConfig_ = null;
onChanged();
}
} else {
if (perXdsConfigCase_ == 3) {
perXdsConfigCase_ = 0;
perXdsConfig_ = null;
}
clusterConfigBuilder_.clear();
}
return this;
}
/**
* .envoy.admin.v2alpha.ClustersConfigDump cluster_config = 3;
*/
public io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.Builder getClusterConfigBuilder() {
return getClusterConfigFieldBuilder().getBuilder();
}
/**
* .envoy.admin.v2alpha.ClustersConfigDump cluster_config = 3;
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDumpOrBuilder getClusterConfigOrBuilder() {
if ((perXdsConfigCase_ == 3) && (clusterConfigBuilder_ != null)) {
return clusterConfigBuilder_.getMessageOrBuilder();
} else {
if (perXdsConfigCase_ == 3) {
return (io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump) perXdsConfig_;
}
return io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.getDefaultInstance();
}
}
/**
* .envoy.admin.v2alpha.ClustersConfigDump cluster_config = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.Builder, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDumpOrBuilder>
getClusterConfigFieldBuilder() {
if (clusterConfigBuilder_ == null) {
if (!(perXdsConfigCase_ == 3)) {
perXdsConfig_ = io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.getDefaultInstance();
}
clusterConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.Builder, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDumpOrBuilder>(
(io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump) perXdsConfig_,
getParentForChildren(),
isClean());
perXdsConfig_ = null;
}
perXdsConfigCase_ = 3;
onChanged();;
return clusterConfigBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump, io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.Builder, io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDumpOrBuilder> routeConfigBuilder_;
/**
* .envoy.admin.v2alpha.RoutesConfigDump route_config = 4;
* @return Whether the routeConfig field is set.
*/
@java.lang.Override
public boolean hasRouteConfig() {
return perXdsConfigCase_ == 4;
}
/**
* .envoy.admin.v2alpha.RoutesConfigDump route_config = 4;
* @return The routeConfig.
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump getRouteConfig() {
if (routeConfigBuilder_ == null) {
if (perXdsConfigCase_ == 4) {
return (io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump) perXdsConfig_;
}
return io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.getDefaultInstance();
} else {
if (perXdsConfigCase_ == 4) {
return routeConfigBuilder_.getMessage();
}
return io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.getDefaultInstance();
}
}
/**
* .envoy.admin.v2alpha.RoutesConfigDump route_config = 4;
*/
public Builder setRouteConfig(io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump value) {
if (routeConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
perXdsConfig_ = value;
onChanged();
} else {
routeConfigBuilder_.setMessage(value);
}
perXdsConfigCase_ = 4;
return this;
}
/**
* .envoy.admin.v2alpha.RoutesConfigDump route_config = 4;
*/
public Builder setRouteConfig(
io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.Builder builderForValue) {
if (routeConfigBuilder_ == null) {
perXdsConfig_ = builderForValue.build();
onChanged();
} else {
routeConfigBuilder_.setMessage(builderForValue.build());
}
perXdsConfigCase_ = 4;
return this;
}
/**
* .envoy.admin.v2alpha.RoutesConfigDump route_config = 4;
*/
public Builder mergeRouteConfig(io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump value) {
if (routeConfigBuilder_ == null) {
if (perXdsConfigCase_ == 4 &&
perXdsConfig_ != io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.getDefaultInstance()) {
perXdsConfig_ = io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.newBuilder((io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump) perXdsConfig_)
.mergeFrom(value).buildPartial();
} else {
perXdsConfig_ = value;
}
onChanged();
} else {
if (perXdsConfigCase_ == 4) {
routeConfigBuilder_.mergeFrom(value);
} else {
routeConfigBuilder_.setMessage(value);
}
}
perXdsConfigCase_ = 4;
return this;
}
/**
* .envoy.admin.v2alpha.RoutesConfigDump route_config = 4;
*/
public Builder clearRouteConfig() {
if (routeConfigBuilder_ == null) {
if (perXdsConfigCase_ == 4) {
perXdsConfigCase_ = 0;
perXdsConfig_ = null;
onChanged();
}
} else {
if (perXdsConfigCase_ == 4) {
perXdsConfigCase_ = 0;
perXdsConfig_ = null;
}
routeConfigBuilder_.clear();
}
return this;
}
/**
* .envoy.admin.v2alpha.RoutesConfigDump route_config = 4;
*/
public io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.Builder getRouteConfigBuilder() {
return getRouteConfigFieldBuilder().getBuilder();
}
/**
* .envoy.admin.v2alpha.RoutesConfigDump route_config = 4;
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDumpOrBuilder getRouteConfigOrBuilder() {
if ((perXdsConfigCase_ == 4) && (routeConfigBuilder_ != null)) {
return routeConfigBuilder_.getMessageOrBuilder();
} else {
if (perXdsConfigCase_ == 4) {
return (io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump) perXdsConfig_;
}
return io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.getDefaultInstance();
}
}
/**
* .envoy.admin.v2alpha.RoutesConfigDump route_config = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump, io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.Builder, io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDumpOrBuilder>
getRouteConfigFieldBuilder() {
if (routeConfigBuilder_ == null) {
if (!(perXdsConfigCase_ == 4)) {
perXdsConfig_ = io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.getDefaultInstance();
}
routeConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump, io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump.Builder, io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDumpOrBuilder>(
(io.envoyproxy.envoy.admin.v2alpha.RoutesConfigDump) perXdsConfig_,
getParentForChildren(),
isClean());
perXdsConfig_ = null;
}
perXdsConfigCase_ = 4;
onChanged();;
return routeConfigBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v2alpha.ScopedRoutesConfigDump, io.envoyproxy.envoy.admin.v2alpha.ScopedRoutesConfigDump.Builder, io.envoyproxy.envoy.admin.v2alpha.ScopedRoutesConfigDumpOrBuilder> scopedRouteConfigBuilder_;
/**
* .envoy.admin.v2alpha.ScopedRoutesConfigDump scoped_route_config = 5;
* @return Whether the scopedRouteConfig field is set.
*/
@java.lang.Override
public boolean hasScopedRouteConfig() {
return perXdsConfigCase_ == 5;
}
/**
* .envoy.admin.v2alpha.ScopedRoutesConfigDump scoped_route_config = 5;
* @return The scopedRouteConfig.
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.ScopedRoutesConfigDump getScopedRouteConfig() {
if (scopedRouteConfigBuilder_ == null) {
if (perXdsConfigCase_ == 5) {
return (io.envoyproxy.envoy.admin.v2alpha.ScopedRoutesConfigDump) perXdsConfig_;
}
return io.envoyproxy.envoy.admin.v2alpha.ScopedRoutesConfigDump.getDefaultInstance();
} else {
if (perXdsConfigCase_ == 5) {
return scopedRouteConfigBuilder_.getMessage();
}
return io.envoyproxy.envoy.admin.v2alpha.ScopedRoutesConfigDump.getDefaultInstance();
}
}
/**
* .envoy.admin.v2alpha.ScopedRoutesConfigDump scoped_route_config = 5;
*/
public Builder setScopedRouteConfig(io.envoyproxy.envoy.admin.v2alpha.ScopedRoutesConfigDump value) {
if (scopedRouteConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
perXdsConfig_ = value;
onChanged();
} else {
scopedRouteConfigBuilder_.setMessage(value);
}
perXdsConfigCase_ = 5;
return this;
}
/**
* .envoy.admin.v2alpha.ScopedRoutesConfigDump scoped_route_config = 5;
*/
public Builder setScopedRouteConfig(
io.envoyproxy.envoy.admin.v2alpha.ScopedRoutesConfigDump.Builder builderForValue) {
if (scopedRouteConfigBuilder_ == null) {
perXdsConfig_ = builderForValue.build();
onChanged();
} else {
scopedRouteConfigBuilder_.setMessage(builderForValue.build());
}
perXdsConfigCase_ = 5;
return this;
}
/**
* .envoy.admin.v2alpha.ScopedRoutesConfigDump scoped_route_config = 5;
*/
public Builder mergeScopedRouteConfig(io.envoyproxy.envoy.admin.v2alpha.ScopedRoutesConfigDump value) {
if (scopedRouteConfigBuilder_ == null) {
if (perXdsConfigCase_ == 5 &&
perXdsConfig_ != io.envoyproxy.envoy.admin.v2alpha.ScopedRoutesConfigDump.getDefaultInstance()) {
perXdsConfig_ = io.envoyproxy.envoy.admin.v2alpha.ScopedRoutesConfigDump.newBuilder((io.envoyproxy.envoy.admin.v2alpha.ScopedRoutesConfigDump) perXdsConfig_)
.mergeFrom(value).buildPartial();
} else {
perXdsConfig_ = value;
}
onChanged();
} else {
if (perXdsConfigCase_ == 5) {
scopedRouteConfigBuilder_.mergeFrom(value);
} else {
scopedRouteConfigBuilder_.setMessage(value);
}
}
perXdsConfigCase_ = 5;
return this;
}
/**
* .envoy.admin.v2alpha.ScopedRoutesConfigDump scoped_route_config = 5;
*/
public Builder clearScopedRouteConfig() {
if (scopedRouteConfigBuilder_ == null) {
if (perXdsConfigCase_ == 5) {
perXdsConfigCase_ = 0;
perXdsConfig_ = null;
onChanged();
}
} else {
if (perXdsConfigCase_ == 5) {
perXdsConfigCase_ = 0;
perXdsConfig_ = null;
}
scopedRouteConfigBuilder_.clear();
}
return this;
}
/**
* .envoy.admin.v2alpha.ScopedRoutesConfigDump scoped_route_config = 5;
*/
public io.envoyproxy.envoy.admin.v2alpha.ScopedRoutesConfigDump.Builder getScopedRouteConfigBuilder() {
return getScopedRouteConfigFieldBuilder().getBuilder();
}
/**
* .envoy.admin.v2alpha.ScopedRoutesConfigDump scoped_route_config = 5;
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v2alpha.ScopedRoutesConfigDumpOrBuilder getScopedRouteConfigOrBuilder() {
if ((perXdsConfigCase_ == 5) && (scopedRouteConfigBuilder_ != null)) {
return scopedRouteConfigBuilder_.getMessageOrBuilder();
} else {
if (perXdsConfigCase_ == 5) {
return (io.envoyproxy.envoy.admin.v2alpha.ScopedRoutesConfigDump) perXdsConfig_;
}
return io.envoyproxy.envoy.admin.v2alpha.ScopedRoutesConfigDump.getDefaultInstance();
}
}
/**
* .envoy.admin.v2alpha.ScopedRoutesConfigDump scoped_route_config = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v2alpha.ScopedRoutesConfigDump, io.envoyproxy.envoy.admin.v2alpha.ScopedRoutesConfigDump.Builder, io.envoyproxy.envoy.admin.v2alpha.ScopedRoutesConfigDumpOrBuilder>
getScopedRouteConfigFieldBuilder() {
if (scopedRouteConfigBuilder_ == null) {
if (!(perXdsConfigCase_ == 5)) {
perXdsConfig_ = io.envoyproxy.envoy.admin.v2alpha.ScopedRoutesConfigDump.getDefaultInstance();
}
scopedRouteConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v2alpha.ScopedRoutesConfigDump, io.envoyproxy.envoy.admin.v2alpha.ScopedRoutesConfigDump.Builder, io.envoyproxy.envoy.admin.v2alpha.ScopedRoutesConfigDumpOrBuilder>(
(io.envoyproxy.envoy.admin.v2alpha.ScopedRoutesConfigDump) perXdsConfig_,
getParentForChildren(),
isClean());
perXdsConfig_ = null;
}
perXdsConfigCase_ = 5;
onChanged();;
return scopedRouteConfigBuilder_;
}
@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:envoy.service.status.v2.PerXdsConfig)
}
// @@protoc_insertion_point(class_scope:envoy.service.status.v2.PerXdsConfig)
private static final io.envoyproxy.envoy.service.status.v2.PerXdsConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.status.v2.PerXdsConfig();
}
public static io.envoyproxy.envoy.service.status.v2.PerXdsConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PerXdsConfig parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PerXdsConfig(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.envoyproxy.envoy.service.status.v2.PerXdsConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}