io.envoyproxy.envoy.service.status.v3.PerXdsConfig Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/service/status/v3/csds.proto
// Protobuf Java Version: 3.25.5
package io.envoyproxy.envoy.service.status.v3;
/**
*
* Detailed config (per xDS) with status.
* [#next-free-field: 8]
*
*
* Protobuf type {@code envoy.service.status.v3.PerXdsConfig}
*/
public final class PerXdsConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.service.status.v3.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;
clientStatus_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PerXdsConfig();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.status.v3.CsdsProto.internal_static_envoy_service_status_v3_PerXdsConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.status.v3.CsdsProto.internal_static_envoy_service_status_v3_PerXdsConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.status.v3.PerXdsConfig.class, io.envoyproxy.envoy.service.status.v3.PerXdsConfig.Builder.class);
}
private int perXdsConfigCase_ = 0;
@SuppressWarnings("serial")
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),
ENDPOINT_CONFIG(6),
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 6: return ENDPOINT_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_ = 0;
/**
*
* Config status generated by management servers. Will not be present if the
* CSDS server is an xDS client.
*
*
* .envoy.service.status.v3.ConfigStatus status = 1;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* Config status generated by management servers. Will not be present if the
* CSDS server is an xDS client.
*
*
* .envoy.service.status.v3.ConfigStatus status = 1;
* @return The status.
*/
@java.lang.Override public io.envoyproxy.envoy.service.status.v3.ConfigStatus getStatus() {
io.envoyproxy.envoy.service.status.v3.ConfigStatus result = io.envoyproxy.envoy.service.status.v3.ConfigStatus.forNumber(status_);
return result == null ? io.envoyproxy.envoy.service.status.v3.ConfigStatus.UNRECOGNIZED : result;
}
public static final int CLIENT_STATUS_FIELD_NUMBER = 7;
private int clientStatus_ = 0;
/**
*
* Client config status is populated by xDS clients. Will not be present if
* the CSDS server is an xDS server. No matter what the client config status
* is, xDS clients should always dump the most recent accepted xDS config.
*
* .. attention::
* This field is deprecated. Use :ref:`ClientResourceStatus
* <envoy_v3_api_enum_admin.v3.ClientResourceStatus>` for per-resource
* config status instead.
*
*
* .envoy.service.status.v3.ClientConfigStatus client_status = 7 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
* @deprecated envoy.service.status.v3.PerXdsConfig.client_status is deprecated.
* See envoy/service/status/v3/csds.proto;l=112
* @return The enum numeric value on the wire for clientStatus.
*/
@java.lang.Override @java.lang.Deprecated public int getClientStatusValue() {
return clientStatus_;
}
/**
*
* Client config status is populated by xDS clients. Will not be present if
* the CSDS server is an xDS server. No matter what the client config status
* is, xDS clients should always dump the most recent accepted xDS config.
*
* .. attention::
* This field is deprecated. Use :ref:`ClientResourceStatus
* <envoy_v3_api_enum_admin.v3.ClientResourceStatus>` for per-resource
* config status instead.
*
*
* .envoy.service.status.v3.ClientConfigStatus client_status = 7 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
* @deprecated envoy.service.status.v3.PerXdsConfig.client_status is deprecated.
* See envoy/service/status/v3/csds.proto;l=112
* @return The clientStatus.
*/
@java.lang.Override @java.lang.Deprecated public io.envoyproxy.envoy.service.status.v3.ClientConfigStatus getClientStatus() {
io.envoyproxy.envoy.service.status.v3.ClientConfigStatus result = io.envoyproxy.envoy.service.status.v3.ClientConfigStatus.forNumber(clientStatus_);
return result == null ? io.envoyproxy.envoy.service.status.v3.ClientConfigStatus.UNRECOGNIZED : result;
}
public static final int LISTENER_CONFIG_FIELD_NUMBER = 2;
/**
* .envoy.admin.v3.ListenersConfigDump listener_config = 2;
* @return Whether the listenerConfig field is set.
*/
@java.lang.Override
public boolean hasListenerConfig() {
return perXdsConfigCase_ == 2;
}
/**
* .envoy.admin.v3.ListenersConfigDump listener_config = 2;
* @return The listenerConfig.
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.ListenersConfigDump getListenerConfig() {
if (perXdsConfigCase_ == 2) {
return (io.envoyproxy.envoy.admin.v3.ListenersConfigDump) perXdsConfig_;
}
return io.envoyproxy.envoy.admin.v3.ListenersConfigDump.getDefaultInstance();
}
/**
* .envoy.admin.v3.ListenersConfigDump listener_config = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.ListenersConfigDumpOrBuilder getListenerConfigOrBuilder() {
if (perXdsConfigCase_ == 2) {
return (io.envoyproxy.envoy.admin.v3.ListenersConfigDump) perXdsConfig_;
}
return io.envoyproxy.envoy.admin.v3.ListenersConfigDump.getDefaultInstance();
}
public static final int CLUSTER_CONFIG_FIELD_NUMBER = 3;
/**
* .envoy.admin.v3.ClustersConfigDump cluster_config = 3;
* @return Whether the clusterConfig field is set.
*/
@java.lang.Override
public boolean hasClusterConfig() {
return perXdsConfigCase_ == 3;
}
/**
* .envoy.admin.v3.ClustersConfigDump cluster_config = 3;
* @return The clusterConfig.
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.ClustersConfigDump getClusterConfig() {
if (perXdsConfigCase_ == 3) {
return (io.envoyproxy.envoy.admin.v3.ClustersConfigDump) perXdsConfig_;
}
return io.envoyproxy.envoy.admin.v3.ClustersConfigDump.getDefaultInstance();
}
/**
* .envoy.admin.v3.ClustersConfigDump cluster_config = 3;
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.ClustersConfigDumpOrBuilder getClusterConfigOrBuilder() {
if (perXdsConfigCase_ == 3) {
return (io.envoyproxy.envoy.admin.v3.ClustersConfigDump) perXdsConfig_;
}
return io.envoyproxy.envoy.admin.v3.ClustersConfigDump.getDefaultInstance();
}
public static final int ROUTE_CONFIG_FIELD_NUMBER = 4;
/**
* .envoy.admin.v3.RoutesConfigDump route_config = 4;
* @return Whether the routeConfig field is set.
*/
@java.lang.Override
public boolean hasRouteConfig() {
return perXdsConfigCase_ == 4;
}
/**
* .envoy.admin.v3.RoutesConfigDump route_config = 4;
* @return The routeConfig.
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.RoutesConfigDump getRouteConfig() {
if (perXdsConfigCase_ == 4) {
return (io.envoyproxy.envoy.admin.v3.RoutesConfigDump) perXdsConfig_;
}
return io.envoyproxy.envoy.admin.v3.RoutesConfigDump.getDefaultInstance();
}
/**
* .envoy.admin.v3.RoutesConfigDump route_config = 4;
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.RoutesConfigDumpOrBuilder getRouteConfigOrBuilder() {
if (perXdsConfigCase_ == 4) {
return (io.envoyproxy.envoy.admin.v3.RoutesConfigDump) perXdsConfig_;
}
return io.envoyproxy.envoy.admin.v3.RoutesConfigDump.getDefaultInstance();
}
public static final int SCOPED_ROUTE_CONFIG_FIELD_NUMBER = 5;
/**
* .envoy.admin.v3.ScopedRoutesConfigDump scoped_route_config = 5;
* @return Whether the scopedRouteConfig field is set.
*/
@java.lang.Override
public boolean hasScopedRouteConfig() {
return perXdsConfigCase_ == 5;
}
/**
* .envoy.admin.v3.ScopedRoutesConfigDump scoped_route_config = 5;
* @return The scopedRouteConfig.
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.ScopedRoutesConfigDump getScopedRouteConfig() {
if (perXdsConfigCase_ == 5) {
return (io.envoyproxy.envoy.admin.v3.ScopedRoutesConfigDump) perXdsConfig_;
}
return io.envoyproxy.envoy.admin.v3.ScopedRoutesConfigDump.getDefaultInstance();
}
/**
* .envoy.admin.v3.ScopedRoutesConfigDump scoped_route_config = 5;
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.ScopedRoutesConfigDumpOrBuilder getScopedRouteConfigOrBuilder() {
if (perXdsConfigCase_ == 5) {
return (io.envoyproxy.envoy.admin.v3.ScopedRoutesConfigDump) perXdsConfig_;
}
return io.envoyproxy.envoy.admin.v3.ScopedRoutesConfigDump.getDefaultInstance();
}
public static final int ENDPOINT_CONFIG_FIELD_NUMBER = 6;
/**
* .envoy.admin.v3.EndpointsConfigDump endpoint_config = 6;
* @return Whether the endpointConfig field is set.
*/
@java.lang.Override
public boolean hasEndpointConfig() {
return perXdsConfigCase_ == 6;
}
/**
* .envoy.admin.v3.EndpointsConfigDump endpoint_config = 6;
* @return The endpointConfig.
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.EndpointsConfigDump getEndpointConfig() {
if (perXdsConfigCase_ == 6) {
return (io.envoyproxy.envoy.admin.v3.EndpointsConfigDump) perXdsConfig_;
}
return io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.getDefaultInstance();
}
/**
* .envoy.admin.v3.EndpointsConfigDump endpoint_config = 6;
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.EndpointsConfigDumpOrBuilder getEndpointConfigOrBuilder() {
if (perXdsConfigCase_ == 6) {
return (io.envoyproxy.envoy.admin.v3.EndpointsConfigDump) perXdsConfig_;
}
return io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.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.v3.ConfigStatus.UNKNOWN.getNumber()) {
output.writeEnum(1, status_);
}
if (perXdsConfigCase_ == 2) {
output.writeMessage(2, (io.envoyproxy.envoy.admin.v3.ListenersConfigDump) perXdsConfig_);
}
if (perXdsConfigCase_ == 3) {
output.writeMessage(3, (io.envoyproxy.envoy.admin.v3.ClustersConfigDump) perXdsConfig_);
}
if (perXdsConfigCase_ == 4) {
output.writeMessage(4, (io.envoyproxy.envoy.admin.v3.RoutesConfigDump) perXdsConfig_);
}
if (perXdsConfigCase_ == 5) {
output.writeMessage(5, (io.envoyproxy.envoy.admin.v3.ScopedRoutesConfigDump) perXdsConfig_);
}
if (perXdsConfigCase_ == 6) {
output.writeMessage(6, (io.envoyproxy.envoy.admin.v3.EndpointsConfigDump) perXdsConfig_);
}
if (clientStatus_ != io.envoyproxy.envoy.service.status.v3.ClientConfigStatus.CLIENT_UNKNOWN.getNumber()) {
output.writeEnum(7, clientStatus_);
}
getUnknownFields().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.v3.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.v3.ListenersConfigDump) perXdsConfig_);
}
if (perXdsConfigCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (io.envoyproxy.envoy.admin.v3.ClustersConfigDump) perXdsConfig_);
}
if (perXdsConfigCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (io.envoyproxy.envoy.admin.v3.RoutesConfigDump) perXdsConfig_);
}
if (perXdsConfigCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (io.envoyproxy.envoy.admin.v3.ScopedRoutesConfigDump) perXdsConfig_);
}
if (perXdsConfigCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (io.envoyproxy.envoy.admin.v3.EndpointsConfigDump) perXdsConfig_);
}
if (clientStatus_ != io.envoyproxy.envoy.service.status.v3.ClientConfigStatus.CLIENT_UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(7, clientStatus_);
}
size += getUnknownFields().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.v3.PerXdsConfig)) {
return super.equals(obj);
}
io.envoyproxy.envoy.service.status.v3.PerXdsConfig other = (io.envoyproxy.envoy.service.status.v3.PerXdsConfig) obj;
if (status_ != other.status_) return false;
if (clientStatus_ != other.clientStatus_) 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 6:
if (!getEndpointConfig()
.equals(other.getEndpointConfig())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) 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_;
hash = (37 * hash) + CLIENT_STATUS_FIELD_NUMBER;
hash = (53 * hash) + clientStatus_;
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 6:
hash = (37 * hash) + ENDPOINT_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getEndpointConfig().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.service.status.v3.PerXdsConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.status.v3.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.v3.PerXdsConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.status.v3.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.v3.PerXdsConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.status.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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: 8]
*
*
* Protobuf type {@code envoy.service.status.v3.PerXdsConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.service.status.v3.PerXdsConfig)
io.envoyproxy.envoy.service.status.v3.PerXdsConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.status.v3.CsdsProto.internal_static_envoy_service_status_v3_PerXdsConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.status.v3.CsdsProto.internal_static_envoy_service_status_v3_PerXdsConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.status.v3.PerXdsConfig.class, io.envoyproxy.envoy.service.status.v3.PerXdsConfig.Builder.class);
}
// Construct using io.envoyproxy.envoy.service.status.v3.PerXdsConfig.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
status_ = 0;
clientStatus_ = 0;
if (listenerConfigBuilder_ != null) {
listenerConfigBuilder_.clear();
}
if (clusterConfigBuilder_ != null) {
clusterConfigBuilder_.clear();
}
if (routeConfigBuilder_ != null) {
routeConfigBuilder_.clear();
}
if (scopedRouteConfigBuilder_ != null) {
scopedRouteConfigBuilder_.clear();
}
if (endpointConfigBuilder_ != null) {
endpointConfigBuilder_.clear();
}
perXdsConfigCase_ = 0;
perXdsConfig_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.service.status.v3.CsdsProto.internal_static_envoy_service_status_v3_PerXdsConfig_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.service.status.v3.PerXdsConfig getDefaultInstanceForType() {
return io.envoyproxy.envoy.service.status.v3.PerXdsConfig.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.service.status.v3.PerXdsConfig build() {
io.envoyproxy.envoy.service.status.v3.PerXdsConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.service.status.v3.PerXdsConfig buildPartial() {
io.envoyproxy.envoy.service.status.v3.PerXdsConfig result = new io.envoyproxy.envoy.service.status.v3.PerXdsConfig(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(io.envoyproxy.envoy.service.status.v3.PerXdsConfig result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.status_ = status_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.clientStatus_ = clientStatus_;
}
}
private void buildPartialOneofs(io.envoyproxy.envoy.service.status.v3.PerXdsConfig result) {
result.perXdsConfigCase_ = perXdsConfigCase_;
result.perXdsConfig_ = this.perXdsConfig_;
if (perXdsConfigCase_ == 2 &&
listenerConfigBuilder_ != null) {
result.perXdsConfig_ = listenerConfigBuilder_.build();
}
if (perXdsConfigCase_ == 3 &&
clusterConfigBuilder_ != null) {
result.perXdsConfig_ = clusterConfigBuilder_.build();
}
if (perXdsConfigCase_ == 4 &&
routeConfigBuilder_ != null) {
result.perXdsConfig_ = routeConfigBuilder_.build();
}
if (perXdsConfigCase_ == 5 &&
scopedRouteConfigBuilder_ != null) {
result.perXdsConfig_ = scopedRouteConfigBuilder_.build();
}
if (perXdsConfigCase_ == 6 &&
endpointConfigBuilder_ != null) {
result.perXdsConfig_ = endpointConfigBuilder_.build();
}
}
@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.v3.PerXdsConfig) {
return mergeFrom((io.envoyproxy.envoy.service.status.v3.PerXdsConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.service.status.v3.PerXdsConfig other) {
if (other == io.envoyproxy.envoy.service.status.v3.PerXdsConfig.getDefaultInstance()) return this;
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (other.clientStatus_ != 0) {
setClientStatusValue(other.getClientStatusValue());
}
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 ENDPOINT_CONFIG: {
mergeEndpointConfig(other.getEndpointConfig());
break;
}
case PERXDSCONFIG_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
status_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
input.readMessage(
getListenerConfigFieldBuilder().getBuilder(),
extensionRegistry);
perXdsConfigCase_ = 2;
break;
} // case 18
case 26: {
input.readMessage(
getClusterConfigFieldBuilder().getBuilder(),
extensionRegistry);
perXdsConfigCase_ = 3;
break;
} // case 26
case 34: {
input.readMessage(
getRouteConfigFieldBuilder().getBuilder(),
extensionRegistry);
perXdsConfigCase_ = 4;
break;
} // case 34
case 42: {
input.readMessage(
getScopedRouteConfigFieldBuilder().getBuilder(),
extensionRegistry);
perXdsConfigCase_ = 5;
break;
} // case 42
case 50: {
input.readMessage(
getEndpointConfigFieldBuilder().getBuilder(),
extensionRegistry);
perXdsConfigCase_ = 6;
break;
} // case 50
case 56: {
clientStatus_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 56
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
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 bitField0_;
private int status_ = 0;
/**
*
* Config status generated by management servers. Will not be present if the
* CSDS server is an xDS client.
*
*
* .envoy.service.status.v3.ConfigStatus status = 1;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* Config status generated by management servers. Will not be present if the
* CSDS server is an xDS client.
*
*
* .envoy.service.status.v3.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;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Config status generated by management servers. Will not be present if the
* CSDS server is an xDS client.
*
*
* .envoy.service.status.v3.ConfigStatus status = 1;
* @return The status.
*/
@java.lang.Override
public io.envoyproxy.envoy.service.status.v3.ConfigStatus getStatus() {
io.envoyproxy.envoy.service.status.v3.ConfigStatus result = io.envoyproxy.envoy.service.status.v3.ConfigStatus.forNumber(status_);
return result == null ? io.envoyproxy.envoy.service.status.v3.ConfigStatus.UNRECOGNIZED : result;
}
/**
*
* Config status generated by management servers. Will not be present if the
* CSDS server is an xDS client.
*
*
* .envoy.service.status.v3.ConfigStatus status = 1;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(io.envoyproxy.envoy.service.status.v3.ConfigStatus value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Config status generated by management servers. Will not be present if the
* CSDS server is an xDS client.
*
*
* .envoy.service.status.v3.ConfigStatus status = 1;
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000001);
status_ = 0;
onChanged();
return this;
}
private int clientStatus_ = 0;
/**
*
* Client config status is populated by xDS clients. Will not be present if
* the CSDS server is an xDS server. No matter what the client config status
* is, xDS clients should always dump the most recent accepted xDS config.
*
* .. attention::
* This field is deprecated. Use :ref:`ClientResourceStatus
* <envoy_v3_api_enum_admin.v3.ClientResourceStatus>` for per-resource
* config status instead.
*
*
* .envoy.service.status.v3.ClientConfigStatus client_status = 7 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
* @deprecated envoy.service.status.v3.PerXdsConfig.client_status is deprecated.
* See envoy/service/status/v3/csds.proto;l=112
* @return The enum numeric value on the wire for clientStatus.
*/
@java.lang.Override @java.lang.Deprecated public int getClientStatusValue() {
return clientStatus_;
}
/**
*
* Client config status is populated by xDS clients. Will not be present if
* the CSDS server is an xDS server. No matter what the client config status
* is, xDS clients should always dump the most recent accepted xDS config.
*
* .. attention::
* This field is deprecated. Use :ref:`ClientResourceStatus
* <envoy_v3_api_enum_admin.v3.ClientResourceStatus>` for per-resource
* config status instead.
*
*
* .envoy.service.status.v3.ClientConfigStatus client_status = 7 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
* @deprecated envoy.service.status.v3.PerXdsConfig.client_status is deprecated.
* See envoy/service/status/v3/csds.proto;l=112
* @param value The enum numeric value on the wire for clientStatus to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setClientStatusValue(int value) {
clientStatus_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Client config status is populated by xDS clients. Will not be present if
* the CSDS server is an xDS server. No matter what the client config status
* is, xDS clients should always dump the most recent accepted xDS config.
*
* .. attention::
* This field is deprecated. Use :ref:`ClientResourceStatus
* <envoy_v3_api_enum_admin.v3.ClientResourceStatus>` for per-resource
* config status instead.
*
*
* .envoy.service.status.v3.ClientConfigStatus client_status = 7 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
* @deprecated envoy.service.status.v3.PerXdsConfig.client_status is deprecated.
* See envoy/service/status/v3/csds.proto;l=112
* @return The clientStatus.
*/
@java.lang.Override
@java.lang.Deprecated public io.envoyproxy.envoy.service.status.v3.ClientConfigStatus getClientStatus() {
io.envoyproxy.envoy.service.status.v3.ClientConfigStatus result = io.envoyproxy.envoy.service.status.v3.ClientConfigStatus.forNumber(clientStatus_);
return result == null ? io.envoyproxy.envoy.service.status.v3.ClientConfigStatus.UNRECOGNIZED : result;
}
/**
*
* Client config status is populated by xDS clients. Will not be present if
* the CSDS server is an xDS server. No matter what the client config status
* is, xDS clients should always dump the most recent accepted xDS config.
*
* .. attention::
* This field is deprecated. Use :ref:`ClientResourceStatus
* <envoy_v3_api_enum_admin.v3.ClientResourceStatus>` for per-resource
* config status instead.
*
*
* .envoy.service.status.v3.ClientConfigStatus client_status = 7 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
* @deprecated envoy.service.status.v3.PerXdsConfig.client_status is deprecated.
* See envoy/service/status/v3/csds.proto;l=112
* @param value The clientStatus to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setClientStatus(io.envoyproxy.envoy.service.status.v3.ClientConfigStatus value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
clientStatus_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Client config status is populated by xDS clients. Will not be present if
* the CSDS server is an xDS server. No matter what the client config status
* is, xDS clients should always dump the most recent accepted xDS config.
*
* .. attention::
* This field is deprecated. Use :ref:`ClientResourceStatus
* <envoy_v3_api_enum_admin.v3.ClientResourceStatus>` for per-resource
* config status instead.
*
*
* .envoy.service.status.v3.ClientConfigStatus client_status = 7 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
* @deprecated envoy.service.status.v3.PerXdsConfig.client_status is deprecated.
* See envoy/service/status/v3/csds.proto;l=112
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearClientStatus() {
bitField0_ = (bitField0_ & ~0x00000002);
clientStatus_ = 0;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v3.ListenersConfigDump, io.envoyproxy.envoy.admin.v3.ListenersConfigDump.Builder, io.envoyproxy.envoy.admin.v3.ListenersConfigDumpOrBuilder> listenerConfigBuilder_;
/**
* .envoy.admin.v3.ListenersConfigDump listener_config = 2;
* @return Whether the listenerConfig field is set.
*/
@java.lang.Override
public boolean hasListenerConfig() {
return perXdsConfigCase_ == 2;
}
/**
* .envoy.admin.v3.ListenersConfigDump listener_config = 2;
* @return The listenerConfig.
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.ListenersConfigDump getListenerConfig() {
if (listenerConfigBuilder_ == null) {
if (perXdsConfigCase_ == 2) {
return (io.envoyproxy.envoy.admin.v3.ListenersConfigDump) perXdsConfig_;
}
return io.envoyproxy.envoy.admin.v3.ListenersConfigDump.getDefaultInstance();
} else {
if (perXdsConfigCase_ == 2) {
return listenerConfigBuilder_.getMessage();
}
return io.envoyproxy.envoy.admin.v3.ListenersConfigDump.getDefaultInstance();
}
}
/**
* .envoy.admin.v3.ListenersConfigDump listener_config = 2;
*/
public Builder setListenerConfig(io.envoyproxy.envoy.admin.v3.ListenersConfigDump value) {
if (listenerConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
perXdsConfig_ = value;
onChanged();
} else {
listenerConfigBuilder_.setMessage(value);
}
perXdsConfigCase_ = 2;
return this;
}
/**
* .envoy.admin.v3.ListenersConfigDump listener_config = 2;
*/
public Builder setListenerConfig(
io.envoyproxy.envoy.admin.v3.ListenersConfigDump.Builder builderForValue) {
if (listenerConfigBuilder_ == null) {
perXdsConfig_ = builderForValue.build();
onChanged();
} else {
listenerConfigBuilder_.setMessage(builderForValue.build());
}
perXdsConfigCase_ = 2;
return this;
}
/**
* .envoy.admin.v3.ListenersConfigDump listener_config = 2;
*/
public Builder mergeListenerConfig(io.envoyproxy.envoy.admin.v3.ListenersConfigDump value) {
if (listenerConfigBuilder_ == null) {
if (perXdsConfigCase_ == 2 &&
perXdsConfig_ != io.envoyproxy.envoy.admin.v3.ListenersConfigDump.getDefaultInstance()) {
perXdsConfig_ = io.envoyproxy.envoy.admin.v3.ListenersConfigDump.newBuilder((io.envoyproxy.envoy.admin.v3.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.v3.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.v3.ListenersConfigDump listener_config = 2;
*/
public io.envoyproxy.envoy.admin.v3.ListenersConfigDump.Builder getListenerConfigBuilder() {
return getListenerConfigFieldBuilder().getBuilder();
}
/**
* .envoy.admin.v3.ListenersConfigDump listener_config = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.ListenersConfigDumpOrBuilder getListenerConfigOrBuilder() {
if ((perXdsConfigCase_ == 2) && (listenerConfigBuilder_ != null)) {
return listenerConfigBuilder_.getMessageOrBuilder();
} else {
if (perXdsConfigCase_ == 2) {
return (io.envoyproxy.envoy.admin.v3.ListenersConfigDump) perXdsConfig_;
}
return io.envoyproxy.envoy.admin.v3.ListenersConfigDump.getDefaultInstance();
}
}
/**
* .envoy.admin.v3.ListenersConfigDump listener_config = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v3.ListenersConfigDump, io.envoyproxy.envoy.admin.v3.ListenersConfigDump.Builder, io.envoyproxy.envoy.admin.v3.ListenersConfigDumpOrBuilder>
getListenerConfigFieldBuilder() {
if (listenerConfigBuilder_ == null) {
if (!(perXdsConfigCase_ == 2)) {
perXdsConfig_ = io.envoyproxy.envoy.admin.v3.ListenersConfigDump.getDefaultInstance();
}
listenerConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v3.ListenersConfigDump, io.envoyproxy.envoy.admin.v3.ListenersConfigDump.Builder, io.envoyproxy.envoy.admin.v3.ListenersConfigDumpOrBuilder>(
(io.envoyproxy.envoy.admin.v3.ListenersConfigDump) perXdsConfig_,
getParentForChildren(),
isClean());
perXdsConfig_ = null;
}
perXdsConfigCase_ = 2;
onChanged();
return listenerConfigBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v3.ClustersConfigDump, io.envoyproxy.envoy.admin.v3.ClustersConfigDump.Builder, io.envoyproxy.envoy.admin.v3.ClustersConfigDumpOrBuilder> clusterConfigBuilder_;
/**
* .envoy.admin.v3.ClustersConfigDump cluster_config = 3;
* @return Whether the clusterConfig field is set.
*/
@java.lang.Override
public boolean hasClusterConfig() {
return perXdsConfigCase_ == 3;
}
/**
* .envoy.admin.v3.ClustersConfigDump cluster_config = 3;
* @return The clusterConfig.
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.ClustersConfigDump getClusterConfig() {
if (clusterConfigBuilder_ == null) {
if (perXdsConfigCase_ == 3) {
return (io.envoyproxy.envoy.admin.v3.ClustersConfigDump) perXdsConfig_;
}
return io.envoyproxy.envoy.admin.v3.ClustersConfigDump.getDefaultInstance();
} else {
if (perXdsConfigCase_ == 3) {
return clusterConfigBuilder_.getMessage();
}
return io.envoyproxy.envoy.admin.v3.ClustersConfigDump.getDefaultInstance();
}
}
/**
* .envoy.admin.v3.ClustersConfigDump cluster_config = 3;
*/
public Builder setClusterConfig(io.envoyproxy.envoy.admin.v3.ClustersConfigDump value) {
if (clusterConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
perXdsConfig_ = value;
onChanged();
} else {
clusterConfigBuilder_.setMessage(value);
}
perXdsConfigCase_ = 3;
return this;
}
/**
* .envoy.admin.v3.ClustersConfigDump cluster_config = 3;
*/
public Builder setClusterConfig(
io.envoyproxy.envoy.admin.v3.ClustersConfigDump.Builder builderForValue) {
if (clusterConfigBuilder_ == null) {
perXdsConfig_ = builderForValue.build();
onChanged();
} else {
clusterConfigBuilder_.setMessage(builderForValue.build());
}
perXdsConfigCase_ = 3;
return this;
}
/**
* .envoy.admin.v3.ClustersConfigDump cluster_config = 3;
*/
public Builder mergeClusterConfig(io.envoyproxy.envoy.admin.v3.ClustersConfigDump value) {
if (clusterConfigBuilder_ == null) {
if (perXdsConfigCase_ == 3 &&
perXdsConfig_ != io.envoyproxy.envoy.admin.v3.ClustersConfigDump.getDefaultInstance()) {
perXdsConfig_ = io.envoyproxy.envoy.admin.v3.ClustersConfigDump.newBuilder((io.envoyproxy.envoy.admin.v3.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.v3.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.v3.ClustersConfigDump cluster_config = 3;
*/
public io.envoyproxy.envoy.admin.v3.ClustersConfigDump.Builder getClusterConfigBuilder() {
return getClusterConfigFieldBuilder().getBuilder();
}
/**
* .envoy.admin.v3.ClustersConfigDump cluster_config = 3;
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.ClustersConfigDumpOrBuilder getClusterConfigOrBuilder() {
if ((perXdsConfigCase_ == 3) && (clusterConfigBuilder_ != null)) {
return clusterConfigBuilder_.getMessageOrBuilder();
} else {
if (perXdsConfigCase_ == 3) {
return (io.envoyproxy.envoy.admin.v3.ClustersConfigDump) perXdsConfig_;
}
return io.envoyproxy.envoy.admin.v3.ClustersConfigDump.getDefaultInstance();
}
}
/**
* .envoy.admin.v3.ClustersConfigDump cluster_config = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v3.ClustersConfigDump, io.envoyproxy.envoy.admin.v3.ClustersConfigDump.Builder, io.envoyproxy.envoy.admin.v3.ClustersConfigDumpOrBuilder>
getClusterConfigFieldBuilder() {
if (clusterConfigBuilder_ == null) {
if (!(perXdsConfigCase_ == 3)) {
perXdsConfig_ = io.envoyproxy.envoy.admin.v3.ClustersConfigDump.getDefaultInstance();
}
clusterConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v3.ClustersConfigDump, io.envoyproxy.envoy.admin.v3.ClustersConfigDump.Builder, io.envoyproxy.envoy.admin.v3.ClustersConfigDumpOrBuilder>(
(io.envoyproxy.envoy.admin.v3.ClustersConfigDump) perXdsConfig_,
getParentForChildren(),
isClean());
perXdsConfig_ = null;
}
perXdsConfigCase_ = 3;
onChanged();
return clusterConfigBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v3.RoutesConfigDump, io.envoyproxy.envoy.admin.v3.RoutesConfigDump.Builder, io.envoyproxy.envoy.admin.v3.RoutesConfigDumpOrBuilder> routeConfigBuilder_;
/**
* .envoy.admin.v3.RoutesConfigDump route_config = 4;
* @return Whether the routeConfig field is set.
*/
@java.lang.Override
public boolean hasRouteConfig() {
return perXdsConfigCase_ == 4;
}
/**
* .envoy.admin.v3.RoutesConfigDump route_config = 4;
* @return The routeConfig.
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.RoutesConfigDump getRouteConfig() {
if (routeConfigBuilder_ == null) {
if (perXdsConfigCase_ == 4) {
return (io.envoyproxy.envoy.admin.v3.RoutesConfigDump) perXdsConfig_;
}
return io.envoyproxy.envoy.admin.v3.RoutesConfigDump.getDefaultInstance();
} else {
if (perXdsConfigCase_ == 4) {
return routeConfigBuilder_.getMessage();
}
return io.envoyproxy.envoy.admin.v3.RoutesConfigDump.getDefaultInstance();
}
}
/**
* .envoy.admin.v3.RoutesConfigDump route_config = 4;
*/
public Builder setRouteConfig(io.envoyproxy.envoy.admin.v3.RoutesConfigDump value) {
if (routeConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
perXdsConfig_ = value;
onChanged();
} else {
routeConfigBuilder_.setMessage(value);
}
perXdsConfigCase_ = 4;
return this;
}
/**
* .envoy.admin.v3.RoutesConfigDump route_config = 4;
*/
public Builder setRouteConfig(
io.envoyproxy.envoy.admin.v3.RoutesConfigDump.Builder builderForValue) {
if (routeConfigBuilder_ == null) {
perXdsConfig_ = builderForValue.build();
onChanged();
} else {
routeConfigBuilder_.setMessage(builderForValue.build());
}
perXdsConfigCase_ = 4;
return this;
}
/**
* .envoy.admin.v3.RoutesConfigDump route_config = 4;
*/
public Builder mergeRouteConfig(io.envoyproxy.envoy.admin.v3.RoutesConfigDump value) {
if (routeConfigBuilder_ == null) {
if (perXdsConfigCase_ == 4 &&
perXdsConfig_ != io.envoyproxy.envoy.admin.v3.RoutesConfigDump.getDefaultInstance()) {
perXdsConfig_ = io.envoyproxy.envoy.admin.v3.RoutesConfigDump.newBuilder((io.envoyproxy.envoy.admin.v3.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.v3.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.v3.RoutesConfigDump route_config = 4;
*/
public io.envoyproxy.envoy.admin.v3.RoutesConfigDump.Builder getRouteConfigBuilder() {
return getRouteConfigFieldBuilder().getBuilder();
}
/**
* .envoy.admin.v3.RoutesConfigDump route_config = 4;
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.RoutesConfigDumpOrBuilder getRouteConfigOrBuilder() {
if ((perXdsConfigCase_ == 4) && (routeConfigBuilder_ != null)) {
return routeConfigBuilder_.getMessageOrBuilder();
} else {
if (perXdsConfigCase_ == 4) {
return (io.envoyproxy.envoy.admin.v3.RoutesConfigDump) perXdsConfig_;
}
return io.envoyproxy.envoy.admin.v3.RoutesConfigDump.getDefaultInstance();
}
}
/**
* .envoy.admin.v3.RoutesConfigDump route_config = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v3.RoutesConfigDump, io.envoyproxy.envoy.admin.v3.RoutesConfigDump.Builder, io.envoyproxy.envoy.admin.v3.RoutesConfigDumpOrBuilder>
getRouteConfigFieldBuilder() {
if (routeConfigBuilder_ == null) {
if (!(perXdsConfigCase_ == 4)) {
perXdsConfig_ = io.envoyproxy.envoy.admin.v3.RoutesConfigDump.getDefaultInstance();
}
routeConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v3.RoutesConfigDump, io.envoyproxy.envoy.admin.v3.RoutesConfigDump.Builder, io.envoyproxy.envoy.admin.v3.RoutesConfigDumpOrBuilder>(
(io.envoyproxy.envoy.admin.v3.RoutesConfigDump) perXdsConfig_,
getParentForChildren(),
isClean());
perXdsConfig_ = null;
}
perXdsConfigCase_ = 4;
onChanged();
return routeConfigBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v3.ScopedRoutesConfigDump, io.envoyproxy.envoy.admin.v3.ScopedRoutesConfigDump.Builder, io.envoyproxy.envoy.admin.v3.ScopedRoutesConfigDumpOrBuilder> scopedRouteConfigBuilder_;
/**
* .envoy.admin.v3.ScopedRoutesConfigDump scoped_route_config = 5;
* @return Whether the scopedRouteConfig field is set.
*/
@java.lang.Override
public boolean hasScopedRouteConfig() {
return perXdsConfigCase_ == 5;
}
/**
* .envoy.admin.v3.ScopedRoutesConfigDump scoped_route_config = 5;
* @return The scopedRouteConfig.
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.ScopedRoutesConfigDump getScopedRouteConfig() {
if (scopedRouteConfigBuilder_ == null) {
if (perXdsConfigCase_ == 5) {
return (io.envoyproxy.envoy.admin.v3.ScopedRoutesConfigDump) perXdsConfig_;
}
return io.envoyproxy.envoy.admin.v3.ScopedRoutesConfigDump.getDefaultInstance();
} else {
if (perXdsConfigCase_ == 5) {
return scopedRouteConfigBuilder_.getMessage();
}
return io.envoyproxy.envoy.admin.v3.ScopedRoutesConfigDump.getDefaultInstance();
}
}
/**
* .envoy.admin.v3.ScopedRoutesConfigDump scoped_route_config = 5;
*/
public Builder setScopedRouteConfig(io.envoyproxy.envoy.admin.v3.ScopedRoutesConfigDump value) {
if (scopedRouteConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
perXdsConfig_ = value;
onChanged();
} else {
scopedRouteConfigBuilder_.setMessage(value);
}
perXdsConfigCase_ = 5;
return this;
}
/**
* .envoy.admin.v3.ScopedRoutesConfigDump scoped_route_config = 5;
*/
public Builder setScopedRouteConfig(
io.envoyproxy.envoy.admin.v3.ScopedRoutesConfigDump.Builder builderForValue) {
if (scopedRouteConfigBuilder_ == null) {
perXdsConfig_ = builderForValue.build();
onChanged();
} else {
scopedRouteConfigBuilder_.setMessage(builderForValue.build());
}
perXdsConfigCase_ = 5;
return this;
}
/**
* .envoy.admin.v3.ScopedRoutesConfigDump scoped_route_config = 5;
*/
public Builder mergeScopedRouteConfig(io.envoyproxy.envoy.admin.v3.ScopedRoutesConfigDump value) {
if (scopedRouteConfigBuilder_ == null) {
if (perXdsConfigCase_ == 5 &&
perXdsConfig_ != io.envoyproxy.envoy.admin.v3.ScopedRoutesConfigDump.getDefaultInstance()) {
perXdsConfig_ = io.envoyproxy.envoy.admin.v3.ScopedRoutesConfigDump.newBuilder((io.envoyproxy.envoy.admin.v3.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.v3.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.v3.ScopedRoutesConfigDump scoped_route_config = 5;
*/
public io.envoyproxy.envoy.admin.v3.ScopedRoutesConfigDump.Builder getScopedRouteConfigBuilder() {
return getScopedRouteConfigFieldBuilder().getBuilder();
}
/**
* .envoy.admin.v3.ScopedRoutesConfigDump scoped_route_config = 5;
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.ScopedRoutesConfigDumpOrBuilder getScopedRouteConfigOrBuilder() {
if ((perXdsConfigCase_ == 5) && (scopedRouteConfigBuilder_ != null)) {
return scopedRouteConfigBuilder_.getMessageOrBuilder();
} else {
if (perXdsConfigCase_ == 5) {
return (io.envoyproxy.envoy.admin.v3.ScopedRoutesConfigDump) perXdsConfig_;
}
return io.envoyproxy.envoy.admin.v3.ScopedRoutesConfigDump.getDefaultInstance();
}
}
/**
* .envoy.admin.v3.ScopedRoutesConfigDump scoped_route_config = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v3.ScopedRoutesConfigDump, io.envoyproxy.envoy.admin.v3.ScopedRoutesConfigDump.Builder, io.envoyproxy.envoy.admin.v3.ScopedRoutesConfigDumpOrBuilder>
getScopedRouteConfigFieldBuilder() {
if (scopedRouteConfigBuilder_ == null) {
if (!(perXdsConfigCase_ == 5)) {
perXdsConfig_ = io.envoyproxy.envoy.admin.v3.ScopedRoutesConfigDump.getDefaultInstance();
}
scopedRouteConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v3.ScopedRoutesConfigDump, io.envoyproxy.envoy.admin.v3.ScopedRoutesConfigDump.Builder, io.envoyproxy.envoy.admin.v3.ScopedRoutesConfigDumpOrBuilder>(
(io.envoyproxy.envoy.admin.v3.ScopedRoutesConfigDump) perXdsConfig_,
getParentForChildren(),
isClean());
perXdsConfig_ = null;
}
perXdsConfigCase_ = 5;
onChanged();
return scopedRouteConfigBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v3.EndpointsConfigDump, io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.Builder, io.envoyproxy.envoy.admin.v3.EndpointsConfigDumpOrBuilder> endpointConfigBuilder_;
/**
* .envoy.admin.v3.EndpointsConfigDump endpoint_config = 6;
* @return Whether the endpointConfig field is set.
*/
@java.lang.Override
public boolean hasEndpointConfig() {
return perXdsConfigCase_ == 6;
}
/**
* .envoy.admin.v3.EndpointsConfigDump endpoint_config = 6;
* @return The endpointConfig.
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.EndpointsConfigDump getEndpointConfig() {
if (endpointConfigBuilder_ == null) {
if (perXdsConfigCase_ == 6) {
return (io.envoyproxy.envoy.admin.v3.EndpointsConfigDump) perXdsConfig_;
}
return io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.getDefaultInstance();
} else {
if (perXdsConfigCase_ == 6) {
return endpointConfigBuilder_.getMessage();
}
return io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.getDefaultInstance();
}
}
/**
* .envoy.admin.v3.EndpointsConfigDump endpoint_config = 6;
*/
public Builder setEndpointConfig(io.envoyproxy.envoy.admin.v3.EndpointsConfigDump value) {
if (endpointConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
perXdsConfig_ = value;
onChanged();
} else {
endpointConfigBuilder_.setMessage(value);
}
perXdsConfigCase_ = 6;
return this;
}
/**
* .envoy.admin.v3.EndpointsConfigDump endpoint_config = 6;
*/
public Builder setEndpointConfig(
io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.Builder builderForValue) {
if (endpointConfigBuilder_ == null) {
perXdsConfig_ = builderForValue.build();
onChanged();
} else {
endpointConfigBuilder_.setMessage(builderForValue.build());
}
perXdsConfigCase_ = 6;
return this;
}
/**
* .envoy.admin.v3.EndpointsConfigDump endpoint_config = 6;
*/
public Builder mergeEndpointConfig(io.envoyproxy.envoy.admin.v3.EndpointsConfigDump value) {
if (endpointConfigBuilder_ == null) {
if (perXdsConfigCase_ == 6 &&
perXdsConfig_ != io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.getDefaultInstance()) {
perXdsConfig_ = io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.newBuilder((io.envoyproxy.envoy.admin.v3.EndpointsConfigDump) perXdsConfig_)
.mergeFrom(value).buildPartial();
} else {
perXdsConfig_ = value;
}
onChanged();
} else {
if (perXdsConfigCase_ == 6) {
endpointConfigBuilder_.mergeFrom(value);
} else {
endpointConfigBuilder_.setMessage(value);
}
}
perXdsConfigCase_ = 6;
return this;
}
/**
* .envoy.admin.v3.EndpointsConfigDump endpoint_config = 6;
*/
public Builder clearEndpointConfig() {
if (endpointConfigBuilder_ == null) {
if (perXdsConfigCase_ == 6) {
perXdsConfigCase_ = 0;
perXdsConfig_ = null;
onChanged();
}
} else {
if (perXdsConfigCase_ == 6) {
perXdsConfigCase_ = 0;
perXdsConfig_ = null;
}
endpointConfigBuilder_.clear();
}
return this;
}
/**
* .envoy.admin.v3.EndpointsConfigDump endpoint_config = 6;
*/
public io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.Builder getEndpointConfigBuilder() {
return getEndpointConfigFieldBuilder().getBuilder();
}
/**
* .envoy.admin.v3.EndpointsConfigDump endpoint_config = 6;
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.EndpointsConfigDumpOrBuilder getEndpointConfigOrBuilder() {
if ((perXdsConfigCase_ == 6) && (endpointConfigBuilder_ != null)) {
return endpointConfigBuilder_.getMessageOrBuilder();
} else {
if (perXdsConfigCase_ == 6) {
return (io.envoyproxy.envoy.admin.v3.EndpointsConfigDump) perXdsConfig_;
}
return io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.getDefaultInstance();
}
}
/**
* .envoy.admin.v3.EndpointsConfigDump endpoint_config = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v3.EndpointsConfigDump, io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.Builder, io.envoyproxy.envoy.admin.v3.EndpointsConfigDumpOrBuilder>
getEndpointConfigFieldBuilder() {
if (endpointConfigBuilder_ == null) {
if (!(perXdsConfigCase_ == 6)) {
perXdsConfig_ = io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.getDefaultInstance();
}
endpointConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v3.EndpointsConfigDump, io.envoyproxy.envoy.admin.v3.EndpointsConfigDump.Builder, io.envoyproxy.envoy.admin.v3.EndpointsConfigDumpOrBuilder>(
(io.envoyproxy.envoy.admin.v3.EndpointsConfigDump) perXdsConfig_,
getParentForChildren(),
isClean());
perXdsConfig_ = null;
}
perXdsConfigCase_ = 6;
onChanged();
return endpointConfigBuilder_;
}
@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.v3.PerXdsConfig)
}
// @@protoc_insertion_point(class_scope:envoy.service.status.v3.PerXdsConfig)
private static final io.envoyproxy.envoy.service.status.v3.PerXdsConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.status.v3.PerXdsConfig();
}
public static io.envoyproxy.envoy.service.status.v3.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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.v3.PerXdsConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy