![JAR search and dependency download from the Maven repository](/logo.png)
io.envoyproxy.envoy.service.status.v3.ClientConfig 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;
/**
*
* All xds configs for a particular client.
*
*
* Protobuf type {@code envoy.service.status.v3.ClientConfig}
*/
public final class ClientConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.service.status.v3.ClientConfig)
ClientConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use ClientConfig.newBuilder() to construct.
private ClientConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ClientConfig() {
xdsConfig_ = java.util.Collections.emptyList();
genericXdsConfigs_ = java.util.Collections.emptyList();
clientScope_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ClientConfig();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.status.v3.CsdsProto.internal_static_envoy_service_status_v3_ClientConfig_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_ClientConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.status.v3.ClientConfig.class, io.envoyproxy.envoy.service.status.v3.ClientConfig.Builder.class);
}
public interface GenericXdsConfigOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.service.status.v3.ClientConfig.GenericXdsConfig)
com.google.protobuf.MessageOrBuilder {
/**
*
* Type_url represents the fully qualified name of xDS resource type
* like envoy.v3.Cluster, envoy.v3.ClusterLoadAssignment etc.
*
*
* string type_url = 1;
* @return The typeUrl.
*/
java.lang.String getTypeUrl();
/**
*
* Type_url represents the fully qualified name of xDS resource type
* like envoy.v3.Cluster, envoy.v3.ClusterLoadAssignment etc.
*
*
* string type_url = 1;
* @return The bytes for typeUrl.
*/
com.google.protobuf.ByteString
getTypeUrlBytes();
/**
*
* Name of the xDS resource
*
*
* string name = 2;
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the xDS resource
*
*
* string name = 2;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* This is the :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>`
* in the last processed xDS discovery response. If there are only
* static bootstrap listeners, this field will be ""
*
*
* string version_info = 3;
* @return The versionInfo.
*/
java.lang.String getVersionInfo();
/**
*
* This is the :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>`
* in the last processed xDS discovery response. If there are only
* static bootstrap listeners, this field will be ""
*
*
* string version_info = 3;
* @return The bytes for versionInfo.
*/
com.google.protobuf.ByteString
getVersionInfoBytes();
/**
*
* The xDS resource config. Actual content depends on the type
*
*
* .google.protobuf.Any xds_config = 4;
* @return Whether the xdsConfig field is set.
*/
boolean hasXdsConfig();
/**
*
* The xDS resource config. Actual content depends on the type
*
*
* .google.protobuf.Any xds_config = 4;
* @return The xdsConfig.
*/
com.google.protobuf.Any getXdsConfig();
/**
*
* The xDS resource config. Actual content depends on the type
*
*
* .google.protobuf.Any xds_config = 4;
*/
com.google.protobuf.AnyOrBuilder getXdsConfigOrBuilder();
/**
*
* Timestamp when the xDS resource was last updated
*
*
* .google.protobuf.Timestamp last_updated = 5;
* @return Whether the lastUpdated field is set.
*/
boolean hasLastUpdated();
/**
*
* Timestamp when the xDS resource was last updated
*
*
* .google.protobuf.Timestamp last_updated = 5;
* @return The lastUpdated.
*/
com.google.protobuf.Timestamp getLastUpdated();
/**
*
* Timestamp when the xDS resource was last updated
*
*
* .google.protobuf.Timestamp last_updated = 5;
*/
com.google.protobuf.TimestampOrBuilder getLastUpdatedOrBuilder();
/**
*
* Per xDS resource config status. It is generated by management servers.
* It will not be present if the CSDS server is an xDS client.
*
*
* .envoy.service.status.v3.ConfigStatus config_status = 6;
* @return The enum numeric value on the wire for configStatus.
*/
int getConfigStatusValue();
/**
*
* Per xDS resource config status. It is generated by management servers.
* It will not be present if the CSDS server is an xDS client.
*
*
* .envoy.service.status.v3.ConfigStatus config_status = 6;
* @return The configStatus.
*/
io.envoyproxy.envoy.service.status.v3.ConfigStatus getConfigStatus();
/**
*
* Per xDS resource status from the view of a xDS client
*
*
* .envoy.admin.v3.ClientResourceStatus client_status = 7;
* @return The enum numeric value on the wire for clientStatus.
*/
int getClientStatusValue();
/**
*
* Per xDS resource status from the view of a xDS client
*
*
* .envoy.admin.v3.ClientResourceStatus client_status = 7;
* @return The clientStatus.
*/
io.envoyproxy.envoy.admin.v3.ClientResourceStatus getClientStatus();
/**
*
* Set if the last update failed, cleared after the next successful
* update. The *error_state* field contains the rejected version of
* this particular resource along with the reason and timestamp. For
* successfully updated or acknowledged resource, this field should
* be empty.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.UpdateFailureState error_state = 8;
* @return Whether the errorState field is set.
*/
boolean hasErrorState();
/**
*
* Set if the last update failed, cleared after the next successful
* update. The *error_state* field contains the rejected version of
* this particular resource along with the reason and timestamp. For
* successfully updated or acknowledged resource, this field should
* be empty.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.UpdateFailureState error_state = 8;
* @return The errorState.
*/
io.envoyproxy.envoy.admin.v3.UpdateFailureState getErrorState();
/**
*
* Set if the last update failed, cleared after the next successful
* update. The *error_state* field contains the rejected version of
* this particular resource along with the reason and timestamp. For
* successfully updated or acknowledged resource, this field should
* be empty.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.UpdateFailureState error_state = 8;
*/
io.envoyproxy.envoy.admin.v3.UpdateFailureStateOrBuilder getErrorStateOrBuilder();
/**
*
* Is static resource is true if it is specified in the config supplied
* through the file at the startup.
*
*
* bool is_static_resource = 9;
* @return The isStaticResource.
*/
boolean getIsStaticResource();
}
/**
*
* GenericXdsConfig is used to specify the config status and the dump
* of any xDS resource identified by their type URL. It is the generalized
* version of the now deprecated ListenersConfigDump, ClustersConfigDump etc
* [#next-free-field: 10]
*
*
* Protobuf type {@code envoy.service.status.v3.ClientConfig.GenericXdsConfig}
*/
public static final class GenericXdsConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.service.status.v3.ClientConfig.GenericXdsConfig)
GenericXdsConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use GenericXdsConfig.newBuilder() to construct.
private GenericXdsConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GenericXdsConfig() {
typeUrl_ = "";
name_ = "";
versionInfo_ = "";
configStatus_ = 0;
clientStatus_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GenericXdsConfig();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.status.v3.CsdsProto.internal_static_envoy_service_status_v3_ClientConfig_GenericXdsConfig_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_ClientConfig_GenericXdsConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig.class, io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig.Builder.class);
}
private int bitField0_;
public static final int TYPE_URL_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object typeUrl_ = "";
/**
*
* Type_url represents the fully qualified name of xDS resource type
* like envoy.v3.Cluster, envoy.v3.ClusterLoadAssignment etc.
*
*
* string type_url = 1;
* @return The typeUrl.
*/
@java.lang.Override
public java.lang.String getTypeUrl() {
java.lang.Object ref = typeUrl_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
typeUrl_ = s;
return s;
}
}
/**
*
* Type_url represents the fully qualified name of xDS resource type
* like envoy.v3.Cluster, envoy.v3.ClusterLoadAssignment etc.
*
*
* string type_url = 1;
* @return The bytes for typeUrl.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTypeUrlBytes() {
java.lang.Object ref = typeUrl_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
typeUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
* Name of the xDS resource
*
*
* string name = 2;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Name of the xDS resource
*
*
* string name = 2;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VERSION_INFO_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object versionInfo_ = "";
/**
*
* This is the :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>`
* in the last processed xDS discovery response. If there are only
* static bootstrap listeners, this field will be ""
*
*
* string version_info = 3;
* @return The versionInfo.
*/
@java.lang.Override
public java.lang.String getVersionInfo() {
java.lang.Object ref = versionInfo_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
versionInfo_ = s;
return s;
}
}
/**
*
* This is the :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>`
* in the last processed xDS discovery response. If there are only
* static bootstrap listeners, this field will be ""
*
*
* string version_info = 3;
* @return The bytes for versionInfo.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getVersionInfoBytes() {
java.lang.Object ref = versionInfo_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
versionInfo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int XDS_CONFIG_FIELD_NUMBER = 4;
private com.google.protobuf.Any xdsConfig_;
/**
*
* The xDS resource config. Actual content depends on the type
*
*
* .google.protobuf.Any xds_config = 4;
* @return Whether the xdsConfig field is set.
*/
@java.lang.Override
public boolean hasXdsConfig() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The xDS resource config. Actual content depends on the type
*
*
* .google.protobuf.Any xds_config = 4;
* @return The xdsConfig.
*/
@java.lang.Override
public com.google.protobuf.Any getXdsConfig() {
return xdsConfig_ == null ? com.google.protobuf.Any.getDefaultInstance() : xdsConfig_;
}
/**
*
* The xDS resource config. Actual content depends on the type
*
*
* .google.protobuf.Any xds_config = 4;
*/
@java.lang.Override
public com.google.protobuf.AnyOrBuilder getXdsConfigOrBuilder() {
return xdsConfig_ == null ? com.google.protobuf.Any.getDefaultInstance() : xdsConfig_;
}
public static final int LAST_UPDATED_FIELD_NUMBER = 5;
private com.google.protobuf.Timestamp lastUpdated_;
/**
*
* Timestamp when the xDS resource was last updated
*
*
* .google.protobuf.Timestamp last_updated = 5;
* @return Whether the lastUpdated field is set.
*/
@java.lang.Override
public boolean hasLastUpdated() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Timestamp when the xDS resource was last updated
*
*
* .google.protobuf.Timestamp last_updated = 5;
* @return The lastUpdated.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getLastUpdated() {
return lastUpdated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdated_;
}
/**
*
* Timestamp when the xDS resource was last updated
*
*
* .google.protobuf.Timestamp last_updated = 5;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getLastUpdatedOrBuilder() {
return lastUpdated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdated_;
}
public static final int CONFIG_STATUS_FIELD_NUMBER = 6;
private int configStatus_ = 0;
/**
*
* Per xDS resource config status. It is generated by management servers.
* It will not be present if the CSDS server is an xDS client.
*
*
* .envoy.service.status.v3.ConfigStatus config_status = 6;
* @return The enum numeric value on the wire for configStatus.
*/
@java.lang.Override public int getConfigStatusValue() {
return configStatus_;
}
/**
*
* Per xDS resource config status. It is generated by management servers.
* It will not be present if the CSDS server is an xDS client.
*
*
* .envoy.service.status.v3.ConfigStatus config_status = 6;
* @return The configStatus.
*/
@java.lang.Override public io.envoyproxy.envoy.service.status.v3.ConfigStatus getConfigStatus() {
io.envoyproxy.envoy.service.status.v3.ConfigStatus result = io.envoyproxy.envoy.service.status.v3.ConfigStatus.forNumber(configStatus_);
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;
/**
*
* Per xDS resource status from the view of a xDS client
*
*
* .envoy.admin.v3.ClientResourceStatus client_status = 7;
* @return The enum numeric value on the wire for clientStatus.
*/
@java.lang.Override public int getClientStatusValue() {
return clientStatus_;
}
/**
*
* Per xDS resource status from the view of a xDS client
*
*
* .envoy.admin.v3.ClientResourceStatus client_status = 7;
* @return The clientStatus.
*/
@java.lang.Override public io.envoyproxy.envoy.admin.v3.ClientResourceStatus getClientStatus() {
io.envoyproxy.envoy.admin.v3.ClientResourceStatus result = io.envoyproxy.envoy.admin.v3.ClientResourceStatus.forNumber(clientStatus_);
return result == null ? io.envoyproxy.envoy.admin.v3.ClientResourceStatus.UNRECOGNIZED : result;
}
public static final int ERROR_STATE_FIELD_NUMBER = 8;
private io.envoyproxy.envoy.admin.v3.UpdateFailureState errorState_;
/**
*
* Set if the last update failed, cleared after the next successful
* update. The *error_state* field contains the rejected version of
* this particular resource along with the reason and timestamp. For
* successfully updated or acknowledged resource, this field should
* be empty.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.UpdateFailureState error_state = 8;
* @return Whether the errorState field is set.
*/
@java.lang.Override
public boolean hasErrorState() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Set if the last update failed, cleared after the next successful
* update. The *error_state* field contains the rejected version of
* this particular resource along with the reason and timestamp. For
* successfully updated or acknowledged resource, this field should
* be empty.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.UpdateFailureState error_state = 8;
* @return The errorState.
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.UpdateFailureState getErrorState() {
return errorState_ == null ? io.envoyproxy.envoy.admin.v3.UpdateFailureState.getDefaultInstance() : errorState_;
}
/**
*
* Set if the last update failed, cleared after the next successful
* update. The *error_state* field contains the rejected version of
* this particular resource along with the reason and timestamp. For
* successfully updated or acknowledged resource, this field should
* be empty.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.UpdateFailureState error_state = 8;
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.UpdateFailureStateOrBuilder getErrorStateOrBuilder() {
return errorState_ == null ? io.envoyproxy.envoy.admin.v3.UpdateFailureState.getDefaultInstance() : errorState_;
}
public static final int IS_STATIC_RESOURCE_FIELD_NUMBER = 9;
private boolean isStaticResource_ = false;
/**
*
* Is static resource is true if it is specified in the config supplied
* through the file at the startup.
*
*
* bool is_static_resource = 9;
* @return The isStaticResource.
*/
@java.lang.Override
public boolean getIsStaticResource() {
return isStaticResource_;
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeUrl_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, typeUrl_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionInfo_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, versionInfo_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(4, getXdsConfig());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(5, getLastUpdated());
}
if (configStatus_ != io.envoyproxy.envoy.service.status.v3.ConfigStatus.UNKNOWN.getNumber()) {
output.writeEnum(6, configStatus_);
}
if (clientStatus_ != io.envoyproxy.envoy.admin.v3.ClientResourceStatus.UNKNOWN.getNumber()) {
output.writeEnum(7, clientStatus_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(8, getErrorState());
}
if (isStaticResource_ != false) {
output.writeBool(9, isStaticResource_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeUrl_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, typeUrl_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionInfo_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, versionInfo_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getXdsConfig());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getLastUpdated());
}
if (configStatus_ != io.envoyproxy.envoy.service.status.v3.ConfigStatus.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, configStatus_);
}
if (clientStatus_ != io.envoyproxy.envoy.admin.v3.ClientResourceStatus.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(7, clientStatus_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getErrorState());
}
if (isStaticResource_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, isStaticResource_);
}
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.ClientConfig.GenericXdsConfig)) {
return super.equals(obj);
}
io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig other = (io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig) obj;
if (!getTypeUrl()
.equals(other.getTypeUrl())) return false;
if (!getName()
.equals(other.getName())) return false;
if (!getVersionInfo()
.equals(other.getVersionInfo())) return false;
if (hasXdsConfig() != other.hasXdsConfig()) return false;
if (hasXdsConfig()) {
if (!getXdsConfig()
.equals(other.getXdsConfig())) return false;
}
if (hasLastUpdated() != other.hasLastUpdated()) return false;
if (hasLastUpdated()) {
if (!getLastUpdated()
.equals(other.getLastUpdated())) return false;
}
if (configStatus_ != other.configStatus_) return false;
if (clientStatus_ != other.clientStatus_) return false;
if (hasErrorState() != other.hasErrorState()) return false;
if (hasErrorState()) {
if (!getErrorState()
.equals(other.getErrorState())) return false;
}
if (getIsStaticResource()
!= other.getIsStaticResource()) return false;
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) + TYPE_URL_FIELD_NUMBER;
hash = (53 * hash) + getTypeUrl().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + VERSION_INFO_FIELD_NUMBER;
hash = (53 * hash) + getVersionInfo().hashCode();
if (hasXdsConfig()) {
hash = (37 * hash) + XDS_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getXdsConfig().hashCode();
}
if (hasLastUpdated()) {
hash = (37 * hash) + LAST_UPDATED_FIELD_NUMBER;
hash = (53 * hash) + getLastUpdated().hashCode();
}
hash = (37 * hash) + CONFIG_STATUS_FIELD_NUMBER;
hash = (53 * hash) + configStatus_;
hash = (37 * hash) + CLIENT_STATUS_FIELD_NUMBER;
hash = (53 * hash) + clientStatus_;
if (hasErrorState()) {
hash = (37 * hash) + ERROR_STATE_FIELD_NUMBER;
hash = (53 * hash) + getErrorState().hashCode();
}
hash = (37 * hash) + IS_STATIC_RESOURCE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsStaticResource());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig 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.ClientConfig.GenericXdsConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig 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.ClientConfig.GenericXdsConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig 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.ClientConfig.GenericXdsConfig 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.ClientConfig.GenericXdsConfig 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.ClientConfig.GenericXdsConfig 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.ClientConfig.GenericXdsConfig 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.ClientConfig.GenericXdsConfig 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.ClientConfig.GenericXdsConfig 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.ClientConfig.GenericXdsConfig 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;
}
/**
*
* GenericXdsConfig is used to specify the config status and the dump
* of any xDS resource identified by their type URL. It is the generalized
* version of the now deprecated ListenersConfigDump, ClustersConfigDump etc
* [#next-free-field: 10]
*
*
* Protobuf type {@code envoy.service.status.v3.ClientConfig.GenericXdsConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.service.status.v3.ClientConfig.GenericXdsConfig)
io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.status.v3.CsdsProto.internal_static_envoy_service_status_v3_ClientConfig_GenericXdsConfig_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_ClientConfig_GenericXdsConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig.class, io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig.Builder.class);
}
// Construct using io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getXdsConfigFieldBuilder();
getLastUpdatedFieldBuilder();
getErrorStateFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
typeUrl_ = "";
name_ = "";
versionInfo_ = "";
xdsConfig_ = null;
if (xdsConfigBuilder_ != null) {
xdsConfigBuilder_.dispose();
xdsConfigBuilder_ = null;
}
lastUpdated_ = null;
if (lastUpdatedBuilder_ != null) {
lastUpdatedBuilder_.dispose();
lastUpdatedBuilder_ = null;
}
configStatus_ = 0;
clientStatus_ = 0;
errorState_ = null;
if (errorStateBuilder_ != null) {
errorStateBuilder_.dispose();
errorStateBuilder_ = null;
}
isStaticResource_ = false;
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_ClientConfig_GenericXdsConfig_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig getDefaultInstanceForType() {
return io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig build() {
io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig buildPartial() {
io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig result = new io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.typeUrl_ = typeUrl_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.versionInfo_ = versionInfo_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.xdsConfig_ = xdsConfigBuilder_ == null
? xdsConfig_
: xdsConfigBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.lastUpdated_ = lastUpdatedBuilder_ == null
? lastUpdated_
: lastUpdatedBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.configStatus_ = configStatus_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.clientStatus_ = clientStatus_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.errorState_ = errorStateBuilder_ == null
? errorState_
: errorStateBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.isStaticResource_ = isStaticResource_;
}
result.bitField0_ |= to_bitField0_;
}
@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.ClientConfig.GenericXdsConfig) {
return mergeFrom((io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig other) {
if (other == io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig.getDefaultInstance()) return this;
if (!other.getTypeUrl().isEmpty()) {
typeUrl_ = other.typeUrl_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getVersionInfo().isEmpty()) {
versionInfo_ = other.versionInfo_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasXdsConfig()) {
mergeXdsConfig(other.getXdsConfig());
}
if (other.hasLastUpdated()) {
mergeLastUpdated(other.getLastUpdated());
}
if (other.configStatus_ != 0) {
setConfigStatusValue(other.getConfigStatusValue());
}
if (other.clientStatus_ != 0) {
setClientStatusValue(other.getClientStatusValue());
}
if (other.hasErrorState()) {
mergeErrorState(other.getErrorState());
}
if (other.getIsStaticResource() != false) {
setIsStaticResource(other.getIsStaticResource());
}
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 10: {
typeUrl_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
versionInfo_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getXdsConfigFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
input.readMessage(
getLastUpdatedFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
case 48: {
configStatus_ = input.readEnum();
bitField0_ |= 0x00000020;
break;
} // case 48
case 56: {
clientStatus_ = input.readEnum();
bitField0_ |= 0x00000040;
break;
} // case 56
case 66: {
input.readMessage(
getErrorStateFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 66
case 72: {
isStaticResource_ = input.readBool();
bitField0_ |= 0x00000100;
break;
} // case 72
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 bitField0_;
private java.lang.Object typeUrl_ = "";
/**
*
* Type_url represents the fully qualified name of xDS resource type
* like envoy.v3.Cluster, envoy.v3.ClusterLoadAssignment etc.
*
*
* string type_url = 1;
* @return The typeUrl.
*/
public java.lang.String getTypeUrl() {
java.lang.Object ref = typeUrl_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
typeUrl_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Type_url represents the fully qualified name of xDS resource type
* like envoy.v3.Cluster, envoy.v3.ClusterLoadAssignment etc.
*
*
* string type_url = 1;
* @return The bytes for typeUrl.
*/
public com.google.protobuf.ByteString
getTypeUrlBytes() {
java.lang.Object ref = typeUrl_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
typeUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Type_url represents the fully qualified name of xDS resource type
* like envoy.v3.Cluster, envoy.v3.ClusterLoadAssignment etc.
*
*
* string type_url = 1;
* @param value The typeUrl to set.
* @return This builder for chaining.
*/
public Builder setTypeUrl(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
typeUrl_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Type_url represents the fully qualified name of xDS resource type
* like envoy.v3.Cluster, envoy.v3.ClusterLoadAssignment etc.
*
*
* string type_url = 1;
* @return This builder for chaining.
*/
public Builder clearTypeUrl() {
typeUrl_ = getDefaultInstance().getTypeUrl();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Type_url represents the fully qualified name of xDS resource type
* like envoy.v3.Cluster, envoy.v3.ClusterLoadAssignment etc.
*
*
* string type_url = 1;
* @param value The bytes for typeUrl to set.
* @return This builder for chaining.
*/
public Builder setTypeUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
typeUrl_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* Name of the xDS resource
*
*
* string name = 2;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the xDS resource
*
*
* string name = 2;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the xDS resource
*
*
* string name = 2;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Name of the xDS resource
*
*
* string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Name of the xDS resource
*
*
* string name = 2;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object versionInfo_ = "";
/**
*
* This is the :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>`
* in the last processed xDS discovery response. If there are only
* static bootstrap listeners, this field will be ""
*
*
* string version_info = 3;
* @return The versionInfo.
*/
public java.lang.String getVersionInfo() {
java.lang.Object ref = versionInfo_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
versionInfo_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* This is the :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>`
* in the last processed xDS discovery response. If there are only
* static bootstrap listeners, this field will be ""
*
*
* string version_info = 3;
* @return The bytes for versionInfo.
*/
public com.google.protobuf.ByteString
getVersionInfoBytes() {
java.lang.Object ref = versionInfo_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
versionInfo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* This is the :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>`
* in the last processed xDS discovery response. If there are only
* static bootstrap listeners, this field will be ""
*
*
* string version_info = 3;
* @param value The versionInfo to set.
* @return This builder for chaining.
*/
public Builder setVersionInfo(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
versionInfo_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* This is the :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>`
* in the last processed xDS discovery response. If there are only
* static bootstrap listeners, this field will be ""
*
*
* string version_info = 3;
* @return This builder for chaining.
*/
public Builder clearVersionInfo() {
versionInfo_ = getDefaultInstance().getVersionInfo();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* This is the :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>`
* in the last processed xDS discovery response. If there are only
* static bootstrap listeners, this field will be ""
*
*
* string version_info = 3;
* @param value The bytes for versionInfo to set.
* @return This builder for chaining.
*/
public Builder setVersionInfoBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
versionInfo_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private com.google.protobuf.Any xdsConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> xdsConfigBuilder_;
/**
*
* The xDS resource config. Actual content depends on the type
*
*
* .google.protobuf.Any xds_config = 4;
* @return Whether the xdsConfig field is set.
*/
public boolean hasXdsConfig() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The xDS resource config. Actual content depends on the type
*
*
* .google.protobuf.Any xds_config = 4;
* @return The xdsConfig.
*/
public com.google.protobuf.Any getXdsConfig() {
if (xdsConfigBuilder_ == null) {
return xdsConfig_ == null ? com.google.protobuf.Any.getDefaultInstance() : xdsConfig_;
} else {
return xdsConfigBuilder_.getMessage();
}
}
/**
*
* The xDS resource config. Actual content depends on the type
*
*
* .google.protobuf.Any xds_config = 4;
*/
public Builder setXdsConfig(com.google.protobuf.Any value) {
if (xdsConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
xdsConfig_ = value;
} else {
xdsConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* The xDS resource config. Actual content depends on the type
*
*
* .google.protobuf.Any xds_config = 4;
*/
public Builder setXdsConfig(
com.google.protobuf.Any.Builder builderForValue) {
if (xdsConfigBuilder_ == null) {
xdsConfig_ = builderForValue.build();
} else {
xdsConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* The xDS resource config. Actual content depends on the type
*
*
* .google.protobuf.Any xds_config = 4;
*/
public Builder mergeXdsConfig(com.google.protobuf.Any value) {
if (xdsConfigBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
xdsConfig_ != null &&
xdsConfig_ != com.google.protobuf.Any.getDefaultInstance()) {
getXdsConfigBuilder().mergeFrom(value);
} else {
xdsConfig_ = value;
}
} else {
xdsConfigBuilder_.mergeFrom(value);
}
if (xdsConfig_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
* The xDS resource config. Actual content depends on the type
*
*
* .google.protobuf.Any xds_config = 4;
*/
public Builder clearXdsConfig() {
bitField0_ = (bitField0_ & ~0x00000008);
xdsConfig_ = null;
if (xdsConfigBuilder_ != null) {
xdsConfigBuilder_.dispose();
xdsConfigBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The xDS resource config. Actual content depends on the type
*
*
* .google.protobuf.Any xds_config = 4;
*/
public com.google.protobuf.Any.Builder getXdsConfigBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getXdsConfigFieldBuilder().getBuilder();
}
/**
*
* The xDS resource config. Actual content depends on the type
*
*
* .google.protobuf.Any xds_config = 4;
*/
public com.google.protobuf.AnyOrBuilder getXdsConfigOrBuilder() {
if (xdsConfigBuilder_ != null) {
return xdsConfigBuilder_.getMessageOrBuilder();
} else {
return xdsConfig_ == null ?
com.google.protobuf.Any.getDefaultInstance() : xdsConfig_;
}
}
/**
*
* The xDS resource config. Actual content depends on the type
*
*
* .google.protobuf.Any xds_config = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
getXdsConfigFieldBuilder() {
if (xdsConfigBuilder_ == null) {
xdsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
getXdsConfig(),
getParentForChildren(),
isClean());
xdsConfig_ = null;
}
return xdsConfigBuilder_;
}
private com.google.protobuf.Timestamp lastUpdated_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastUpdatedBuilder_;
/**
*
* Timestamp when the xDS resource was last updated
*
*
* .google.protobuf.Timestamp last_updated = 5;
* @return Whether the lastUpdated field is set.
*/
public boolean hasLastUpdated() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Timestamp when the xDS resource was last updated
*
*
* .google.protobuf.Timestamp last_updated = 5;
* @return The lastUpdated.
*/
public com.google.protobuf.Timestamp getLastUpdated() {
if (lastUpdatedBuilder_ == null) {
return lastUpdated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdated_;
} else {
return lastUpdatedBuilder_.getMessage();
}
}
/**
*
* Timestamp when the xDS resource was last updated
*
*
* .google.protobuf.Timestamp last_updated = 5;
*/
public Builder setLastUpdated(com.google.protobuf.Timestamp value) {
if (lastUpdatedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
lastUpdated_ = value;
} else {
lastUpdatedBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Timestamp when the xDS resource was last updated
*
*
* .google.protobuf.Timestamp last_updated = 5;
*/
public Builder setLastUpdated(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (lastUpdatedBuilder_ == null) {
lastUpdated_ = builderForValue.build();
} else {
lastUpdatedBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Timestamp when the xDS resource was last updated
*
*
* .google.protobuf.Timestamp last_updated = 5;
*/
public Builder mergeLastUpdated(com.google.protobuf.Timestamp value) {
if (lastUpdatedBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
lastUpdated_ != null &&
lastUpdated_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getLastUpdatedBuilder().mergeFrom(value);
} else {
lastUpdated_ = value;
}
} else {
lastUpdatedBuilder_.mergeFrom(value);
}
if (lastUpdated_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
*
* Timestamp when the xDS resource was last updated
*
*
* .google.protobuf.Timestamp last_updated = 5;
*/
public Builder clearLastUpdated() {
bitField0_ = (bitField0_ & ~0x00000010);
lastUpdated_ = null;
if (lastUpdatedBuilder_ != null) {
lastUpdatedBuilder_.dispose();
lastUpdatedBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Timestamp when the xDS resource was last updated
*
*
* .google.protobuf.Timestamp last_updated = 5;
*/
public com.google.protobuf.Timestamp.Builder getLastUpdatedBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getLastUpdatedFieldBuilder().getBuilder();
}
/**
*
* Timestamp when the xDS resource was last updated
*
*
* .google.protobuf.Timestamp last_updated = 5;
*/
public com.google.protobuf.TimestampOrBuilder getLastUpdatedOrBuilder() {
if (lastUpdatedBuilder_ != null) {
return lastUpdatedBuilder_.getMessageOrBuilder();
} else {
return lastUpdated_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdated_;
}
}
/**
*
* Timestamp when the xDS resource was last updated
*
*
* .google.protobuf.Timestamp last_updated = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getLastUpdatedFieldBuilder() {
if (lastUpdatedBuilder_ == null) {
lastUpdatedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getLastUpdated(),
getParentForChildren(),
isClean());
lastUpdated_ = null;
}
return lastUpdatedBuilder_;
}
private int configStatus_ = 0;
/**
*
* Per xDS resource config status. It is generated by management servers.
* It will not be present if the CSDS server is an xDS client.
*
*
* .envoy.service.status.v3.ConfigStatus config_status = 6;
* @return The enum numeric value on the wire for configStatus.
*/
@java.lang.Override public int getConfigStatusValue() {
return configStatus_;
}
/**
*
* Per xDS resource config status. It is generated by management servers.
* It will not be present if the CSDS server is an xDS client.
*
*
* .envoy.service.status.v3.ConfigStatus config_status = 6;
* @param value The enum numeric value on the wire for configStatus to set.
* @return This builder for chaining.
*/
public Builder setConfigStatusValue(int value) {
configStatus_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Per xDS resource config status. It is generated by management servers.
* It will not be present if the CSDS server is an xDS client.
*
*
* .envoy.service.status.v3.ConfigStatus config_status = 6;
* @return The configStatus.
*/
@java.lang.Override
public io.envoyproxy.envoy.service.status.v3.ConfigStatus getConfigStatus() {
io.envoyproxy.envoy.service.status.v3.ConfigStatus result = io.envoyproxy.envoy.service.status.v3.ConfigStatus.forNumber(configStatus_);
return result == null ? io.envoyproxy.envoy.service.status.v3.ConfigStatus.UNRECOGNIZED : result;
}
/**
*
* Per xDS resource config status. It is generated by management servers.
* It will not be present if the CSDS server is an xDS client.
*
*
* .envoy.service.status.v3.ConfigStatus config_status = 6;
* @param value The configStatus to set.
* @return This builder for chaining.
*/
public Builder setConfigStatus(io.envoyproxy.envoy.service.status.v3.ConfigStatus value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
configStatus_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Per xDS resource config status. It is generated by management servers.
* It will not be present if the CSDS server is an xDS client.
*
*
* .envoy.service.status.v3.ConfigStatus config_status = 6;
* @return This builder for chaining.
*/
public Builder clearConfigStatus() {
bitField0_ = (bitField0_ & ~0x00000020);
configStatus_ = 0;
onChanged();
return this;
}
private int clientStatus_ = 0;
/**
*
* Per xDS resource status from the view of a xDS client
*
*
* .envoy.admin.v3.ClientResourceStatus client_status = 7;
* @return The enum numeric value on the wire for clientStatus.
*/
@java.lang.Override public int getClientStatusValue() {
return clientStatus_;
}
/**
*
* Per xDS resource status from the view of a xDS client
*
*
* .envoy.admin.v3.ClientResourceStatus client_status = 7;
* @param value The enum numeric value on the wire for clientStatus to set.
* @return This builder for chaining.
*/
public Builder setClientStatusValue(int value) {
clientStatus_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Per xDS resource status from the view of a xDS client
*
*
* .envoy.admin.v3.ClientResourceStatus client_status = 7;
* @return The clientStatus.
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.ClientResourceStatus getClientStatus() {
io.envoyproxy.envoy.admin.v3.ClientResourceStatus result = io.envoyproxy.envoy.admin.v3.ClientResourceStatus.forNumber(clientStatus_);
return result == null ? io.envoyproxy.envoy.admin.v3.ClientResourceStatus.UNRECOGNIZED : result;
}
/**
*
* Per xDS resource status from the view of a xDS client
*
*
* .envoy.admin.v3.ClientResourceStatus client_status = 7;
* @param value The clientStatus to set.
* @return This builder for chaining.
*/
public Builder setClientStatus(io.envoyproxy.envoy.admin.v3.ClientResourceStatus value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
clientStatus_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Per xDS resource status from the view of a xDS client
*
*
* .envoy.admin.v3.ClientResourceStatus client_status = 7;
* @return This builder for chaining.
*/
public Builder clearClientStatus() {
bitField0_ = (bitField0_ & ~0x00000040);
clientStatus_ = 0;
onChanged();
return this;
}
private io.envoyproxy.envoy.admin.v3.UpdateFailureState errorState_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v3.UpdateFailureState, io.envoyproxy.envoy.admin.v3.UpdateFailureState.Builder, io.envoyproxy.envoy.admin.v3.UpdateFailureStateOrBuilder> errorStateBuilder_;
/**
*
* Set if the last update failed, cleared after the next successful
* update. The *error_state* field contains the rejected version of
* this particular resource along with the reason and timestamp. For
* successfully updated or acknowledged resource, this field should
* be empty.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.UpdateFailureState error_state = 8;
* @return Whether the errorState field is set.
*/
public boolean hasErrorState() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Set if the last update failed, cleared after the next successful
* update. The *error_state* field contains the rejected version of
* this particular resource along with the reason and timestamp. For
* successfully updated or acknowledged resource, this field should
* be empty.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.UpdateFailureState error_state = 8;
* @return The errorState.
*/
public io.envoyproxy.envoy.admin.v3.UpdateFailureState getErrorState() {
if (errorStateBuilder_ == null) {
return errorState_ == null ? io.envoyproxy.envoy.admin.v3.UpdateFailureState.getDefaultInstance() : errorState_;
} else {
return errorStateBuilder_.getMessage();
}
}
/**
*
* Set if the last update failed, cleared after the next successful
* update. The *error_state* field contains the rejected version of
* this particular resource along with the reason and timestamp. For
* successfully updated or acknowledged resource, this field should
* be empty.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.UpdateFailureState error_state = 8;
*/
public Builder setErrorState(io.envoyproxy.envoy.admin.v3.UpdateFailureState value) {
if (errorStateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
errorState_ = value;
} else {
errorStateBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* Set if the last update failed, cleared after the next successful
* update. The *error_state* field contains the rejected version of
* this particular resource along with the reason and timestamp. For
* successfully updated or acknowledged resource, this field should
* be empty.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.UpdateFailureState error_state = 8;
*/
public Builder setErrorState(
io.envoyproxy.envoy.admin.v3.UpdateFailureState.Builder builderForValue) {
if (errorStateBuilder_ == null) {
errorState_ = builderForValue.build();
} else {
errorStateBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* Set if the last update failed, cleared after the next successful
* update. The *error_state* field contains the rejected version of
* this particular resource along with the reason and timestamp. For
* successfully updated or acknowledged resource, this field should
* be empty.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.UpdateFailureState error_state = 8;
*/
public Builder mergeErrorState(io.envoyproxy.envoy.admin.v3.UpdateFailureState value) {
if (errorStateBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0) &&
errorState_ != null &&
errorState_ != io.envoyproxy.envoy.admin.v3.UpdateFailureState.getDefaultInstance()) {
getErrorStateBuilder().mergeFrom(value);
} else {
errorState_ = value;
}
} else {
errorStateBuilder_.mergeFrom(value);
}
if (errorState_ != null) {
bitField0_ |= 0x00000080;
onChanged();
}
return this;
}
/**
*
* Set if the last update failed, cleared after the next successful
* update. The *error_state* field contains the rejected version of
* this particular resource along with the reason and timestamp. For
* successfully updated or acknowledged resource, this field should
* be empty.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.UpdateFailureState error_state = 8;
*/
public Builder clearErrorState() {
bitField0_ = (bitField0_ & ~0x00000080);
errorState_ = null;
if (errorStateBuilder_ != null) {
errorStateBuilder_.dispose();
errorStateBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Set if the last update failed, cleared after the next successful
* update. The *error_state* field contains the rejected version of
* this particular resource along with the reason and timestamp. For
* successfully updated or acknowledged resource, this field should
* be empty.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.UpdateFailureState error_state = 8;
*/
public io.envoyproxy.envoy.admin.v3.UpdateFailureState.Builder getErrorStateBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getErrorStateFieldBuilder().getBuilder();
}
/**
*
* Set if the last update failed, cleared after the next successful
* update. The *error_state* field contains the rejected version of
* this particular resource along with the reason and timestamp. For
* successfully updated or acknowledged resource, this field should
* be empty.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.UpdateFailureState error_state = 8;
*/
public io.envoyproxy.envoy.admin.v3.UpdateFailureStateOrBuilder getErrorStateOrBuilder() {
if (errorStateBuilder_ != null) {
return errorStateBuilder_.getMessageOrBuilder();
} else {
return errorState_ == null ?
io.envoyproxy.envoy.admin.v3.UpdateFailureState.getDefaultInstance() : errorState_;
}
}
/**
*
* Set if the last update failed, cleared after the next successful
* update. The *error_state* field contains the rejected version of
* this particular resource along with the reason and timestamp. For
* successfully updated or acknowledged resource, this field should
* be empty.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.UpdateFailureState error_state = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v3.UpdateFailureState, io.envoyproxy.envoy.admin.v3.UpdateFailureState.Builder, io.envoyproxy.envoy.admin.v3.UpdateFailureStateOrBuilder>
getErrorStateFieldBuilder() {
if (errorStateBuilder_ == null) {
errorStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.admin.v3.UpdateFailureState, io.envoyproxy.envoy.admin.v3.UpdateFailureState.Builder, io.envoyproxy.envoy.admin.v3.UpdateFailureStateOrBuilder>(
getErrorState(),
getParentForChildren(),
isClean());
errorState_ = null;
}
return errorStateBuilder_;
}
private boolean isStaticResource_ ;
/**
*
* Is static resource is true if it is specified in the config supplied
* through the file at the startup.
*
*
* bool is_static_resource = 9;
* @return The isStaticResource.
*/
@java.lang.Override
public boolean getIsStaticResource() {
return isStaticResource_;
}
/**
*
* Is static resource is true if it is specified in the config supplied
* through the file at the startup.
*
*
* bool is_static_resource = 9;
* @param value The isStaticResource to set.
* @return This builder for chaining.
*/
public Builder setIsStaticResource(boolean value) {
isStaticResource_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* Is static resource is true if it is specified in the config supplied
* through the file at the startup.
*
*
* bool is_static_resource = 9;
* @return This builder for chaining.
*/
public Builder clearIsStaticResource() {
bitField0_ = (bitField0_ & ~0x00000100);
isStaticResource_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:envoy.service.status.v3.ClientConfig.GenericXdsConfig)
}
// @@protoc_insertion_point(class_scope:envoy.service.status.v3.ClientConfig.GenericXdsConfig)
private static final io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig();
}
public static io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GenericXdsConfig 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.ClientConfig.GenericXdsConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int NODE_FIELD_NUMBER = 1;
private io.envoyproxy.envoy.config.core.v3.Node node_;
/**
*
* Node for a particular client.
*
*
* .envoy.config.core.v3.Node node = 1;
* @return Whether the node field is set.
*/
@java.lang.Override
public boolean hasNode() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Node for a particular client.
*
*
* .envoy.config.core.v3.Node node = 1;
* @return The node.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.Node getNode() {
return node_ == null ? io.envoyproxy.envoy.config.core.v3.Node.getDefaultInstance() : node_;
}
/**
*
* Node for a particular client.
*
*
* .envoy.config.core.v3.Node node = 1;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.NodeOrBuilder getNodeOrBuilder() {
return node_ == null ? io.envoyproxy.envoy.config.core.v3.Node.getDefaultInstance() : node_;
}
public static final int XDS_CONFIG_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List xdsConfig_;
/**
*
* This field is deprecated in favor of generic_xds_configs which is
* much simpler and uniform in structure.
*
*
* repeated .envoy.service.status.v3.PerXdsConfig xds_config = 2 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Override
@java.lang.Deprecated public java.util.List getXdsConfigList() {
return xdsConfig_;
}
/**
*
* This field is deprecated in favor of generic_xds_configs which is
* much simpler and uniform in structure.
*
*
* repeated .envoy.service.status.v3.PerXdsConfig xds_config = 2 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Override
@java.lang.Deprecated public java.util.List extends io.envoyproxy.envoy.service.status.v3.PerXdsConfigOrBuilder>
getXdsConfigOrBuilderList() {
return xdsConfig_;
}
/**
*
* This field is deprecated in favor of generic_xds_configs which is
* much simpler and uniform in structure.
*
*
* repeated .envoy.service.status.v3.PerXdsConfig xds_config = 2 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Override
@java.lang.Deprecated public int getXdsConfigCount() {
return xdsConfig_.size();
}
/**
*
* This field is deprecated in favor of generic_xds_configs which is
* much simpler and uniform in structure.
*
*
* repeated .envoy.service.status.v3.PerXdsConfig xds_config = 2 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Override
@java.lang.Deprecated public io.envoyproxy.envoy.service.status.v3.PerXdsConfig getXdsConfig(int index) {
return xdsConfig_.get(index);
}
/**
*
* This field is deprecated in favor of generic_xds_configs which is
* much simpler and uniform in structure.
*
*
* repeated .envoy.service.status.v3.PerXdsConfig xds_config = 2 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Override
@java.lang.Deprecated public io.envoyproxy.envoy.service.status.v3.PerXdsConfigOrBuilder getXdsConfigOrBuilder(
int index) {
return xdsConfig_.get(index);
}
public static final int GENERIC_XDS_CONFIGS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List genericXdsConfigs_;
/**
*
* Represents generic xDS config and the exact config structure depends on
* the type URL (like Cluster if it is CDS)
*
*
* repeated .envoy.service.status.v3.ClientConfig.GenericXdsConfig generic_xds_configs = 3;
*/
@java.lang.Override
public java.util.List getGenericXdsConfigsList() {
return genericXdsConfigs_;
}
/**
*
* Represents generic xDS config and the exact config structure depends on
* the type URL (like Cluster if it is CDS)
*
*
* repeated .envoy.service.status.v3.ClientConfig.GenericXdsConfig generic_xds_configs = 3;
*/
@java.lang.Override
public java.util.List extends io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfigOrBuilder>
getGenericXdsConfigsOrBuilderList() {
return genericXdsConfigs_;
}
/**
*
* Represents generic xDS config and the exact config structure depends on
* the type URL (like Cluster if it is CDS)
*
*
* repeated .envoy.service.status.v3.ClientConfig.GenericXdsConfig generic_xds_configs = 3;
*/
@java.lang.Override
public int getGenericXdsConfigsCount() {
return genericXdsConfigs_.size();
}
/**
*
* Represents generic xDS config and the exact config structure depends on
* the type URL (like Cluster if it is CDS)
*
*
* repeated .envoy.service.status.v3.ClientConfig.GenericXdsConfig generic_xds_configs = 3;
*/
@java.lang.Override
public io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig getGenericXdsConfigs(int index) {
return genericXdsConfigs_.get(index);
}
/**
*
* Represents generic xDS config and the exact config structure depends on
* the type URL (like Cluster if it is CDS)
*
*
* repeated .envoy.service.status.v3.ClientConfig.GenericXdsConfig generic_xds_configs = 3;
*/
@java.lang.Override
public io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfigOrBuilder getGenericXdsConfigsOrBuilder(
int index) {
return genericXdsConfigs_.get(index);
}
public static final int CLIENT_SCOPE_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object clientScope_ = "";
/**
*
* For xDS clients, the scope in which the data is used.
* For example, gRPC indicates the data plane target or that the data is
* associated with gRPC server(s).
*
*
* string client_scope = 4;
* @return The clientScope.
*/
@java.lang.Override
public java.lang.String getClientScope() {
java.lang.Object ref = clientScope_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clientScope_ = s;
return s;
}
}
/**
*
* For xDS clients, the scope in which the data is used.
* For example, gRPC indicates the data plane target or that the data is
* associated with gRPC server(s).
*
*
* string client_scope = 4;
* @return The bytes for clientScope.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClientScopeBytes() {
java.lang.Object ref = clientScope_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clientScope_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getNode());
}
for (int i = 0; i < xdsConfig_.size(); i++) {
output.writeMessage(2, xdsConfig_.get(i));
}
for (int i = 0; i < genericXdsConfigs_.size(); i++) {
output.writeMessage(3, genericXdsConfigs_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientScope_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, clientScope_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getNode());
}
for (int i = 0; i < xdsConfig_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, xdsConfig_.get(i));
}
for (int i = 0; i < genericXdsConfigs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, genericXdsConfigs_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientScope_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, clientScope_);
}
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.ClientConfig)) {
return super.equals(obj);
}
io.envoyproxy.envoy.service.status.v3.ClientConfig other = (io.envoyproxy.envoy.service.status.v3.ClientConfig) obj;
if (hasNode() != other.hasNode()) return false;
if (hasNode()) {
if (!getNode()
.equals(other.getNode())) return false;
}
if (!getXdsConfigList()
.equals(other.getXdsConfigList())) return false;
if (!getGenericXdsConfigsList()
.equals(other.getGenericXdsConfigsList())) return false;
if (!getClientScope()
.equals(other.getClientScope())) return false;
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();
if (hasNode()) {
hash = (37 * hash) + NODE_FIELD_NUMBER;
hash = (53 * hash) + getNode().hashCode();
}
if (getXdsConfigCount() > 0) {
hash = (37 * hash) + XDS_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getXdsConfigList().hashCode();
}
if (getGenericXdsConfigsCount() > 0) {
hash = (37 * hash) + GENERIC_XDS_CONFIGS_FIELD_NUMBER;
hash = (53 * hash) + getGenericXdsConfigsList().hashCode();
}
hash = (37 * hash) + CLIENT_SCOPE_FIELD_NUMBER;
hash = (53 * hash) + getClientScope().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.service.status.v3.ClientConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.status.v3.ClientConfig 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.ClientConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.status.v3.ClientConfig 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.ClientConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.status.v3.ClientConfig 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.ClientConfig 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.ClientConfig 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.ClientConfig 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.ClientConfig 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.ClientConfig 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.ClientConfig 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.ClientConfig 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;
}
/**
*
* All xds configs for a particular client.
*
*
* Protobuf type {@code envoy.service.status.v3.ClientConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.service.status.v3.ClientConfig)
io.envoyproxy.envoy.service.status.v3.ClientConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.status.v3.CsdsProto.internal_static_envoy_service_status_v3_ClientConfig_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_ClientConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.status.v3.ClientConfig.class, io.envoyproxy.envoy.service.status.v3.ClientConfig.Builder.class);
}
// Construct using io.envoyproxy.envoy.service.status.v3.ClientConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getNodeFieldBuilder();
getXdsConfigFieldBuilder();
getGenericXdsConfigsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
node_ = null;
if (nodeBuilder_ != null) {
nodeBuilder_.dispose();
nodeBuilder_ = null;
}
if (xdsConfigBuilder_ == null) {
xdsConfig_ = java.util.Collections.emptyList();
} else {
xdsConfig_ = null;
xdsConfigBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (genericXdsConfigsBuilder_ == null) {
genericXdsConfigs_ = java.util.Collections.emptyList();
} else {
genericXdsConfigs_ = null;
genericXdsConfigsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
clientScope_ = "";
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_ClientConfig_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.service.status.v3.ClientConfig getDefaultInstanceForType() {
return io.envoyproxy.envoy.service.status.v3.ClientConfig.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.service.status.v3.ClientConfig build() {
io.envoyproxy.envoy.service.status.v3.ClientConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.service.status.v3.ClientConfig buildPartial() {
io.envoyproxy.envoy.service.status.v3.ClientConfig result = new io.envoyproxy.envoy.service.status.v3.ClientConfig(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.envoyproxy.envoy.service.status.v3.ClientConfig result) {
if (xdsConfigBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
xdsConfig_ = java.util.Collections.unmodifiableList(xdsConfig_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.xdsConfig_ = xdsConfig_;
} else {
result.xdsConfig_ = xdsConfigBuilder_.build();
}
if (genericXdsConfigsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
genericXdsConfigs_ = java.util.Collections.unmodifiableList(genericXdsConfigs_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.genericXdsConfigs_ = genericXdsConfigs_;
} else {
result.genericXdsConfigs_ = genericXdsConfigsBuilder_.build();
}
}
private void buildPartial0(io.envoyproxy.envoy.service.status.v3.ClientConfig result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.node_ = nodeBuilder_ == null
? node_
: nodeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.clientScope_ = clientScope_;
}
result.bitField0_ |= to_bitField0_;
}
@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.ClientConfig) {
return mergeFrom((io.envoyproxy.envoy.service.status.v3.ClientConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.service.status.v3.ClientConfig other) {
if (other == io.envoyproxy.envoy.service.status.v3.ClientConfig.getDefaultInstance()) return this;
if (other.hasNode()) {
mergeNode(other.getNode());
}
if (xdsConfigBuilder_ == null) {
if (!other.xdsConfig_.isEmpty()) {
if (xdsConfig_.isEmpty()) {
xdsConfig_ = other.xdsConfig_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureXdsConfigIsMutable();
xdsConfig_.addAll(other.xdsConfig_);
}
onChanged();
}
} else {
if (!other.xdsConfig_.isEmpty()) {
if (xdsConfigBuilder_.isEmpty()) {
xdsConfigBuilder_.dispose();
xdsConfigBuilder_ = null;
xdsConfig_ = other.xdsConfig_;
bitField0_ = (bitField0_ & ~0x00000002);
xdsConfigBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getXdsConfigFieldBuilder() : null;
} else {
xdsConfigBuilder_.addAllMessages(other.xdsConfig_);
}
}
}
if (genericXdsConfigsBuilder_ == null) {
if (!other.genericXdsConfigs_.isEmpty()) {
if (genericXdsConfigs_.isEmpty()) {
genericXdsConfigs_ = other.genericXdsConfigs_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureGenericXdsConfigsIsMutable();
genericXdsConfigs_.addAll(other.genericXdsConfigs_);
}
onChanged();
}
} else {
if (!other.genericXdsConfigs_.isEmpty()) {
if (genericXdsConfigsBuilder_.isEmpty()) {
genericXdsConfigsBuilder_.dispose();
genericXdsConfigsBuilder_ = null;
genericXdsConfigs_ = other.genericXdsConfigs_;
bitField0_ = (bitField0_ & ~0x00000004);
genericXdsConfigsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getGenericXdsConfigsFieldBuilder() : null;
} else {
genericXdsConfigsBuilder_.addAllMessages(other.genericXdsConfigs_);
}
}
}
if (!other.getClientScope().isEmpty()) {
clientScope_ = other.clientScope_;
bitField0_ |= 0x00000008;
onChanged();
}
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 10: {
input.readMessage(
getNodeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
io.envoyproxy.envoy.service.status.v3.PerXdsConfig m =
input.readMessage(
io.envoyproxy.envoy.service.status.v3.PerXdsConfig.parser(),
extensionRegistry);
if (xdsConfigBuilder_ == null) {
ensureXdsConfigIsMutable();
xdsConfig_.add(m);
} else {
xdsConfigBuilder_.addMessage(m);
}
break;
} // case 18
case 26: {
io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig m =
input.readMessage(
io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig.parser(),
extensionRegistry);
if (genericXdsConfigsBuilder_ == null) {
ensureGenericXdsConfigsIsMutable();
genericXdsConfigs_.add(m);
} else {
genericXdsConfigsBuilder_.addMessage(m);
}
break;
} // case 26
case 34: {
clientScope_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
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 bitField0_;
private io.envoyproxy.envoy.config.core.v3.Node node_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.Node, io.envoyproxy.envoy.config.core.v3.Node.Builder, io.envoyproxy.envoy.config.core.v3.NodeOrBuilder> nodeBuilder_;
/**
*
* Node for a particular client.
*
*
* .envoy.config.core.v3.Node node = 1;
* @return Whether the node field is set.
*/
public boolean hasNode() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Node for a particular client.
*
*
* .envoy.config.core.v3.Node node = 1;
* @return The node.
*/
public io.envoyproxy.envoy.config.core.v3.Node getNode() {
if (nodeBuilder_ == null) {
return node_ == null ? io.envoyproxy.envoy.config.core.v3.Node.getDefaultInstance() : node_;
} else {
return nodeBuilder_.getMessage();
}
}
/**
*
* Node for a particular client.
*
*
* .envoy.config.core.v3.Node node = 1;
*/
public Builder setNode(io.envoyproxy.envoy.config.core.v3.Node value) {
if (nodeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
node_ = value;
} else {
nodeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Node for a particular client.
*
*
* .envoy.config.core.v3.Node node = 1;
*/
public Builder setNode(
io.envoyproxy.envoy.config.core.v3.Node.Builder builderForValue) {
if (nodeBuilder_ == null) {
node_ = builderForValue.build();
} else {
nodeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Node for a particular client.
*
*
* .envoy.config.core.v3.Node node = 1;
*/
public Builder mergeNode(io.envoyproxy.envoy.config.core.v3.Node value) {
if (nodeBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
node_ != null &&
node_ != io.envoyproxy.envoy.config.core.v3.Node.getDefaultInstance()) {
getNodeBuilder().mergeFrom(value);
} else {
node_ = value;
}
} else {
nodeBuilder_.mergeFrom(value);
}
if (node_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* Node for a particular client.
*
*
* .envoy.config.core.v3.Node node = 1;
*/
public Builder clearNode() {
bitField0_ = (bitField0_ & ~0x00000001);
node_ = null;
if (nodeBuilder_ != null) {
nodeBuilder_.dispose();
nodeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Node for a particular client.
*
*
* .envoy.config.core.v3.Node node = 1;
*/
public io.envoyproxy.envoy.config.core.v3.Node.Builder getNodeBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getNodeFieldBuilder().getBuilder();
}
/**
*
* Node for a particular client.
*
*
* .envoy.config.core.v3.Node node = 1;
*/
public io.envoyproxy.envoy.config.core.v3.NodeOrBuilder getNodeOrBuilder() {
if (nodeBuilder_ != null) {
return nodeBuilder_.getMessageOrBuilder();
} else {
return node_ == null ?
io.envoyproxy.envoy.config.core.v3.Node.getDefaultInstance() : node_;
}
}
/**
*
* Node for a particular client.
*
*
* .envoy.config.core.v3.Node node = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.Node, io.envoyproxy.envoy.config.core.v3.Node.Builder, io.envoyproxy.envoy.config.core.v3.NodeOrBuilder>
getNodeFieldBuilder() {
if (nodeBuilder_ == null) {
nodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.Node, io.envoyproxy.envoy.config.core.v3.Node.Builder, io.envoyproxy.envoy.config.core.v3.NodeOrBuilder>(
getNode(),
getParentForChildren(),
isClean());
node_ = null;
}
return nodeBuilder_;
}
private java.util.List xdsConfig_ =
java.util.Collections.emptyList();
private void ensureXdsConfigIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
xdsConfig_ = new java.util.ArrayList(xdsConfig_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.service.status.v3.PerXdsConfig, io.envoyproxy.envoy.service.status.v3.PerXdsConfig.Builder, io.envoyproxy.envoy.service.status.v3.PerXdsConfigOrBuilder> xdsConfigBuilder_;
/**
*
* This field is deprecated in favor of generic_xds_configs which is
* much simpler and uniform in structure.
*
*
* repeated .envoy.service.status.v3.PerXdsConfig xds_config = 2 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Deprecated public java.util.List getXdsConfigList() {
if (xdsConfigBuilder_ == null) {
return java.util.Collections.unmodifiableList(xdsConfig_);
} else {
return xdsConfigBuilder_.getMessageList();
}
}
/**
*
* This field is deprecated in favor of generic_xds_configs which is
* much simpler and uniform in structure.
*
*
* repeated .envoy.service.status.v3.PerXdsConfig xds_config = 2 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Deprecated public int getXdsConfigCount() {
if (xdsConfigBuilder_ == null) {
return xdsConfig_.size();
} else {
return xdsConfigBuilder_.getCount();
}
}
/**
*
* This field is deprecated in favor of generic_xds_configs which is
* much simpler and uniform in structure.
*
*
* repeated .envoy.service.status.v3.PerXdsConfig xds_config = 2 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Deprecated public io.envoyproxy.envoy.service.status.v3.PerXdsConfig getXdsConfig(int index) {
if (xdsConfigBuilder_ == null) {
return xdsConfig_.get(index);
} else {
return xdsConfigBuilder_.getMessage(index);
}
}
/**
*
* This field is deprecated in favor of generic_xds_configs which is
* much simpler and uniform in structure.
*
*
* repeated .envoy.service.status.v3.PerXdsConfig xds_config = 2 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Deprecated public Builder setXdsConfig(
int index, io.envoyproxy.envoy.service.status.v3.PerXdsConfig value) {
if (xdsConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureXdsConfigIsMutable();
xdsConfig_.set(index, value);
onChanged();
} else {
xdsConfigBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* This field is deprecated in favor of generic_xds_configs which is
* much simpler and uniform in structure.
*
*
* repeated .envoy.service.status.v3.PerXdsConfig xds_config = 2 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Deprecated public Builder setXdsConfig(
int index, io.envoyproxy.envoy.service.status.v3.PerXdsConfig.Builder builderForValue) {
if (xdsConfigBuilder_ == null) {
ensureXdsConfigIsMutable();
xdsConfig_.set(index, builderForValue.build());
onChanged();
} else {
xdsConfigBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* This field is deprecated in favor of generic_xds_configs which is
* much simpler and uniform in structure.
*
*
* repeated .envoy.service.status.v3.PerXdsConfig xds_config = 2 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Deprecated public Builder addXdsConfig(io.envoyproxy.envoy.service.status.v3.PerXdsConfig value) {
if (xdsConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureXdsConfigIsMutable();
xdsConfig_.add(value);
onChanged();
} else {
xdsConfigBuilder_.addMessage(value);
}
return this;
}
/**
*
* This field is deprecated in favor of generic_xds_configs which is
* much simpler and uniform in structure.
*
*
* repeated .envoy.service.status.v3.PerXdsConfig xds_config = 2 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Deprecated public Builder addXdsConfig(
int index, io.envoyproxy.envoy.service.status.v3.PerXdsConfig value) {
if (xdsConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureXdsConfigIsMutable();
xdsConfig_.add(index, value);
onChanged();
} else {
xdsConfigBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* This field is deprecated in favor of generic_xds_configs which is
* much simpler and uniform in structure.
*
*
* repeated .envoy.service.status.v3.PerXdsConfig xds_config = 2 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Deprecated public Builder addXdsConfig(
io.envoyproxy.envoy.service.status.v3.PerXdsConfig.Builder builderForValue) {
if (xdsConfigBuilder_ == null) {
ensureXdsConfigIsMutable();
xdsConfig_.add(builderForValue.build());
onChanged();
} else {
xdsConfigBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* This field is deprecated in favor of generic_xds_configs which is
* much simpler and uniform in structure.
*
*
* repeated .envoy.service.status.v3.PerXdsConfig xds_config = 2 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Deprecated public Builder addXdsConfig(
int index, io.envoyproxy.envoy.service.status.v3.PerXdsConfig.Builder builderForValue) {
if (xdsConfigBuilder_ == null) {
ensureXdsConfigIsMutable();
xdsConfig_.add(index, builderForValue.build());
onChanged();
} else {
xdsConfigBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* This field is deprecated in favor of generic_xds_configs which is
* much simpler and uniform in structure.
*
*
* repeated .envoy.service.status.v3.PerXdsConfig xds_config = 2 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Deprecated public Builder addAllXdsConfig(
java.lang.Iterable extends io.envoyproxy.envoy.service.status.v3.PerXdsConfig> values) {
if (xdsConfigBuilder_ == null) {
ensureXdsConfigIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, xdsConfig_);
onChanged();
} else {
xdsConfigBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* This field is deprecated in favor of generic_xds_configs which is
* much simpler and uniform in structure.
*
*
* repeated .envoy.service.status.v3.PerXdsConfig xds_config = 2 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Deprecated public Builder clearXdsConfig() {
if (xdsConfigBuilder_ == null) {
xdsConfig_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
xdsConfigBuilder_.clear();
}
return this;
}
/**
*
* This field is deprecated in favor of generic_xds_configs which is
* much simpler and uniform in structure.
*
*
* repeated .envoy.service.status.v3.PerXdsConfig xds_config = 2 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Deprecated public Builder removeXdsConfig(int index) {
if (xdsConfigBuilder_ == null) {
ensureXdsConfigIsMutable();
xdsConfig_.remove(index);
onChanged();
} else {
xdsConfigBuilder_.remove(index);
}
return this;
}
/**
*
* This field is deprecated in favor of generic_xds_configs which is
* much simpler and uniform in structure.
*
*
* repeated .envoy.service.status.v3.PerXdsConfig xds_config = 2 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Deprecated public io.envoyproxy.envoy.service.status.v3.PerXdsConfig.Builder getXdsConfigBuilder(
int index) {
return getXdsConfigFieldBuilder().getBuilder(index);
}
/**
*
* This field is deprecated in favor of generic_xds_configs which is
* much simpler and uniform in structure.
*
*
* repeated .envoy.service.status.v3.PerXdsConfig xds_config = 2 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Deprecated public io.envoyproxy.envoy.service.status.v3.PerXdsConfigOrBuilder getXdsConfigOrBuilder(
int index) {
if (xdsConfigBuilder_ == null) {
return xdsConfig_.get(index); } else {
return xdsConfigBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* This field is deprecated in favor of generic_xds_configs which is
* much simpler and uniform in structure.
*
*
* repeated .envoy.service.status.v3.PerXdsConfig xds_config = 2 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Deprecated public java.util.List extends io.envoyproxy.envoy.service.status.v3.PerXdsConfigOrBuilder>
getXdsConfigOrBuilderList() {
if (xdsConfigBuilder_ != null) {
return xdsConfigBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(xdsConfig_);
}
}
/**
*
* This field is deprecated in favor of generic_xds_configs which is
* much simpler and uniform in structure.
*
*
* repeated .envoy.service.status.v3.PerXdsConfig xds_config = 2 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Deprecated public io.envoyproxy.envoy.service.status.v3.PerXdsConfig.Builder addXdsConfigBuilder() {
return getXdsConfigFieldBuilder().addBuilder(
io.envoyproxy.envoy.service.status.v3.PerXdsConfig.getDefaultInstance());
}
/**
*
* This field is deprecated in favor of generic_xds_configs which is
* much simpler and uniform in structure.
*
*
* repeated .envoy.service.status.v3.PerXdsConfig xds_config = 2 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Deprecated public io.envoyproxy.envoy.service.status.v3.PerXdsConfig.Builder addXdsConfigBuilder(
int index) {
return getXdsConfigFieldBuilder().addBuilder(
index, io.envoyproxy.envoy.service.status.v3.PerXdsConfig.getDefaultInstance());
}
/**
*
* This field is deprecated in favor of generic_xds_configs which is
* much simpler and uniform in structure.
*
*
* repeated .envoy.service.status.v3.PerXdsConfig xds_config = 2 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
*/
@java.lang.Deprecated public java.util.List
getXdsConfigBuilderList() {
return getXdsConfigFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.service.status.v3.PerXdsConfig, io.envoyproxy.envoy.service.status.v3.PerXdsConfig.Builder, io.envoyproxy.envoy.service.status.v3.PerXdsConfigOrBuilder>
getXdsConfigFieldBuilder() {
if (xdsConfigBuilder_ == null) {
xdsConfigBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.service.status.v3.PerXdsConfig, io.envoyproxy.envoy.service.status.v3.PerXdsConfig.Builder, io.envoyproxy.envoy.service.status.v3.PerXdsConfigOrBuilder>(
xdsConfig_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
xdsConfig_ = null;
}
return xdsConfigBuilder_;
}
private java.util.List genericXdsConfigs_ =
java.util.Collections.emptyList();
private void ensureGenericXdsConfigsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
genericXdsConfigs_ = new java.util.ArrayList(genericXdsConfigs_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig, io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig.Builder, io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfigOrBuilder> genericXdsConfigsBuilder_;
/**
*
* Represents generic xDS config and the exact config structure depends on
* the type URL (like Cluster if it is CDS)
*
*
* repeated .envoy.service.status.v3.ClientConfig.GenericXdsConfig generic_xds_configs = 3;
*/
public java.util.List getGenericXdsConfigsList() {
if (genericXdsConfigsBuilder_ == null) {
return java.util.Collections.unmodifiableList(genericXdsConfigs_);
} else {
return genericXdsConfigsBuilder_.getMessageList();
}
}
/**
*
* Represents generic xDS config and the exact config structure depends on
* the type URL (like Cluster if it is CDS)
*
*
* repeated .envoy.service.status.v3.ClientConfig.GenericXdsConfig generic_xds_configs = 3;
*/
public int getGenericXdsConfigsCount() {
if (genericXdsConfigsBuilder_ == null) {
return genericXdsConfigs_.size();
} else {
return genericXdsConfigsBuilder_.getCount();
}
}
/**
*
* Represents generic xDS config and the exact config structure depends on
* the type URL (like Cluster if it is CDS)
*
*
* repeated .envoy.service.status.v3.ClientConfig.GenericXdsConfig generic_xds_configs = 3;
*/
public io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig getGenericXdsConfigs(int index) {
if (genericXdsConfigsBuilder_ == null) {
return genericXdsConfigs_.get(index);
} else {
return genericXdsConfigsBuilder_.getMessage(index);
}
}
/**
*
* Represents generic xDS config and the exact config structure depends on
* the type URL (like Cluster if it is CDS)
*
*
* repeated .envoy.service.status.v3.ClientConfig.GenericXdsConfig generic_xds_configs = 3;
*/
public Builder setGenericXdsConfigs(
int index, io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig value) {
if (genericXdsConfigsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGenericXdsConfigsIsMutable();
genericXdsConfigs_.set(index, value);
onChanged();
} else {
genericXdsConfigsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Represents generic xDS config and the exact config structure depends on
* the type URL (like Cluster if it is CDS)
*
*
* repeated .envoy.service.status.v3.ClientConfig.GenericXdsConfig generic_xds_configs = 3;
*/
public Builder setGenericXdsConfigs(
int index, io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig.Builder builderForValue) {
if (genericXdsConfigsBuilder_ == null) {
ensureGenericXdsConfigsIsMutable();
genericXdsConfigs_.set(index, builderForValue.build());
onChanged();
} else {
genericXdsConfigsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Represents generic xDS config and the exact config structure depends on
* the type URL (like Cluster if it is CDS)
*
*
* repeated .envoy.service.status.v3.ClientConfig.GenericXdsConfig generic_xds_configs = 3;
*/
public Builder addGenericXdsConfigs(io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig value) {
if (genericXdsConfigsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGenericXdsConfigsIsMutable();
genericXdsConfigs_.add(value);
onChanged();
} else {
genericXdsConfigsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Represents generic xDS config and the exact config structure depends on
* the type URL (like Cluster if it is CDS)
*
*
* repeated .envoy.service.status.v3.ClientConfig.GenericXdsConfig generic_xds_configs = 3;
*/
public Builder addGenericXdsConfigs(
int index, io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig value) {
if (genericXdsConfigsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGenericXdsConfigsIsMutable();
genericXdsConfigs_.add(index, value);
onChanged();
} else {
genericXdsConfigsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Represents generic xDS config and the exact config structure depends on
* the type URL (like Cluster if it is CDS)
*
*
* repeated .envoy.service.status.v3.ClientConfig.GenericXdsConfig generic_xds_configs = 3;
*/
public Builder addGenericXdsConfigs(
io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig.Builder builderForValue) {
if (genericXdsConfigsBuilder_ == null) {
ensureGenericXdsConfigsIsMutable();
genericXdsConfigs_.add(builderForValue.build());
onChanged();
} else {
genericXdsConfigsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Represents generic xDS config and the exact config structure depends on
* the type URL (like Cluster if it is CDS)
*
*
* repeated .envoy.service.status.v3.ClientConfig.GenericXdsConfig generic_xds_configs = 3;
*/
public Builder addGenericXdsConfigs(
int index, io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig.Builder builderForValue) {
if (genericXdsConfigsBuilder_ == null) {
ensureGenericXdsConfigsIsMutable();
genericXdsConfigs_.add(index, builderForValue.build());
onChanged();
} else {
genericXdsConfigsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Represents generic xDS config and the exact config structure depends on
* the type URL (like Cluster if it is CDS)
*
*
* repeated .envoy.service.status.v3.ClientConfig.GenericXdsConfig generic_xds_configs = 3;
*/
public Builder addAllGenericXdsConfigs(
java.lang.Iterable extends io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig> values) {
if (genericXdsConfigsBuilder_ == null) {
ensureGenericXdsConfigsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, genericXdsConfigs_);
onChanged();
} else {
genericXdsConfigsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Represents generic xDS config and the exact config structure depends on
* the type URL (like Cluster if it is CDS)
*
*
* repeated .envoy.service.status.v3.ClientConfig.GenericXdsConfig generic_xds_configs = 3;
*/
public Builder clearGenericXdsConfigs() {
if (genericXdsConfigsBuilder_ == null) {
genericXdsConfigs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
genericXdsConfigsBuilder_.clear();
}
return this;
}
/**
*
* Represents generic xDS config and the exact config structure depends on
* the type URL (like Cluster if it is CDS)
*
*
* repeated .envoy.service.status.v3.ClientConfig.GenericXdsConfig generic_xds_configs = 3;
*/
public Builder removeGenericXdsConfigs(int index) {
if (genericXdsConfigsBuilder_ == null) {
ensureGenericXdsConfigsIsMutable();
genericXdsConfigs_.remove(index);
onChanged();
} else {
genericXdsConfigsBuilder_.remove(index);
}
return this;
}
/**
*
* Represents generic xDS config and the exact config structure depends on
* the type URL (like Cluster if it is CDS)
*
*
* repeated .envoy.service.status.v3.ClientConfig.GenericXdsConfig generic_xds_configs = 3;
*/
public io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig.Builder getGenericXdsConfigsBuilder(
int index) {
return getGenericXdsConfigsFieldBuilder().getBuilder(index);
}
/**
*
* Represents generic xDS config and the exact config structure depends on
* the type URL (like Cluster if it is CDS)
*
*
* repeated .envoy.service.status.v3.ClientConfig.GenericXdsConfig generic_xds_configs = 3;
*/
public io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfigOrBuilder getGenericXdsConfigsOrBuilder(
int index) {
if (genericXdsConfigsBuilder_ == null) {
return genericXdsConfigs_.get(index); } else {
return genericXdsConfigsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Represents generic xDS config and the exact config structure depends on
* the type URL (like Cluster if it is CDS)
*
*
* repeated .envoy.service.status.v3.ClientConfig.GenericXdsConfig generic_xds_configs = 3;
*/
public java.util.List extends io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfigOrBuilder>
getGenericXdsConfigsOrBuilderList() {
if (genericXdsConfigsBuilder_ != null) {
return genericXdsConfigsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(genericXdsConfigs_);
}
}
/**
*
* Represents generic xDS config and the exact config structure depends on
* the type URL (like Cluster if it is CDS)
*
*
* repeated .envoy.service.status.v3.ClientConfig.GenericXdsConfig generic_xds_configs = 3;
*/
public io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig.Builder addGenericXdsConfigsBuilder() {
return getGenericXdsConfigsFieldBuilder().addBuilder(
io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig.getDefaultInstance());
}
/**
*
* Represents generic xDS config and the exact config structure depends on
* the type URL (like Cluster if it is CDS)
*
*
* repeated .envoy.service.status.v3.ClientConfig.GenericXdsConfig generic_xds_configs = 3;
*/
public io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig.Builder addGenericXdsConfigsBuilder(
int index) {
return getGenericXdsConfigsFieldBuilder().addBuilder(
index, io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig.getDefaultInstance());
}
/**
*
* Represents generic xDS config and the exact config structure depends on
* the type URL (like Cluster if it is CDS)
*
*
* repeated .envoy.service.status.v3.ClientConfig.GenericXdsConfig generic_xds_configs = 3;
*/
public java.util.List
getGenericXdsConfigsBuilderList() {
return getGenericXdsConfigsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig, io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig.Builder, io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfigOrBuilder>
getGenericXdsConfigsFieldBuilder() {
if (genericXdsConfigsBuilder_ == null) {
genericXdsConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig, io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig.Builder, io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfigOrBuilder>(
genericXdsConfigs_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
genericXdsConfigs_ = null;
}
return genericXdsConfigsBuilder_;
}
private java.lang.Object clientScope_ = "";
/**
*
* For xDS clients, the scope in which the data is used.
* For example, gRPC indicates the data plane target or that the data is
* associated with gRPC server(s).
*
*
* string client_scope = 4;
* @return The clientScope.
*/
public java.lang.String getClientScope() {
java.lang.Object ref = clientScope_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clientScope_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* For xDS clients, the scope in which the data is used.
* For example, gRPC indicates the data plane target or that the data is
* associated with gRPC server(s).
*
*
* string client_scope = 4;
* @return The bytes for clientScope.
*/
public com.google.protobuf.ByteString
getClientScopeBytes() {
java.lang.Object ref = clientScope_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clientScope_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* For xDS clients, the scope in which the data is used.
* For example, gRPC indicates the data plane target or that the data is
* associated with gRPC server(s).
*
*
* string client_scope = 4;
* @param value The clientScope to set.
* @return This builder for chaining.
*/
public Builder setClientScope(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
clientScope_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* For xDS clients, the scope in which the data is used.
* For example, gRPC indicates the data plane target or that the data is
* associated with gRPC server(s).
*
*
* string client_scope = 4;
* @return This builder for chaining.
*/
public Builder clearClientScope() {
clientScope_ = getDefaultInstance().getClientScope();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* For xDS clients, the scope in which the data is used.
* For example, gRPC indicates the data plane target or that the data is
* associated with gRPC server(s).
*
*
* string client_scope = 4;
* @param value The bytes for clientScope to set.
* @return This builder for chaining.
*/
public Builder setClientScopeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
clientScope_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:envoy.service.status.v3.ClientConfig)
}
// @@protoc_insertion_point(class_scope:envoy.service.status.v3.ClientConfig)
private static final io.envoyproxy.envoy.service.status.v3.ClientConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.status.v3.ClientConfig();
}
public static io.envoyproxy.envoy.service.status.v3.ClientConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ClientConfig 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.ClientConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy