
io.envoyproxy.envoy.api.v2.DiscoveryRequest Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/api/v2/discovery.proto
package io.envoyproxy.envoy.api.v2;
/**
*
* A DiscoveryRequest requests a set of versioned resources of the same type for
* a given Envoy node on some API.
*
*
* Protobuf type {@code envoy.api.v2.DiscoveryRequest}
*/
public final class DiscoveryRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.api.v2.DiscoveryRequest)
DiscoveryRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use DiscoveryRequest.newBuilder() to construct.
private DiscoveryRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DiscoveryRequest() {
versionInfo_ = "";
resourceNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
typeUrl_ = "";
responseNonce_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DiscoveryRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
versionInfo_ = s;
break;
}
case 18: {
io.envoyproxy.envoy.api.v2.core.Node.Builder subBuilder = null;
if (node_ != null) {
subBuilder = node_.toBuilder();
}
node_ = input.readMessage(io.envoyproxy.envoy.api.v2.core.Node.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(node_);
node_ = subBuilder.buildPartial();
}
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
resourceNames_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000004;
}
resourceNames_.add(s);
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
typeUrl_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
responseNonce_ = s;
break;
}
case 50: {
com.google.rpc.Status.Builder subBuilder = null;
if (errorDetail_ != null) {
subBuilder = errorDetail_.toBuilder();
}
errorDetail_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(errorDetail_);
errorDetail_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
resourceNames_ = resourceNames_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.api.v2.DiscoveryProto.internal_static_envoy_api_v2_DiscoveryRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.api.v2.DiscoveryProto.internal_static_envoy_api_v2_DiscoveryRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.api.v2.DiscoveryRequest.class, io.envoyproxy.envoy.api.v2.DiscoveryRequest.Builder.class);
}
private int bitField0_;
public static final int VERSION_INFO_FIELD_NUMBER = 1;
private volatile java.lang.Object versionInfo_;
/**
*
* The version_info provided in the request messages will be the version_info
* received with the most recent successfully processed response or empty on
* the first request. It is expected that no new request is sent after a
* response is received until the Envoy instance is ready to ACK/NACK the new
* configuration. ACK/NACK takes place by returning the new API config version
* as applied or the previous API config version respectively. Each type_url
* (see below) has an independent version associated with it.
*
*
* string version_info = 1;
*/
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;
}
}
/**
*
* The version_info provided in the request messages will be the version_info
* received with the most recent successfully processed response or empty on
* the first request. It is expected that no new request is sent after a
* response is received until the Envoy instance is ready to ACK/NACK the new
* configuration. ACK/NACK takes place by returning the new API config version
* as applied or the previous API config version respectively. Each type_url
* (see below) has an independent version associated with it.
*
*
* string version_info = 1;
*/
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 NODE_FIELD_NUMBER = 2;
private io.envoyproxy.envoy.api.v2.core.Node node_;
/**
*
* The node making the request.
*
*
* .envoy.api.v2.core.Node node = 2;
*/
public boolean hasNode() {
return node_ != null;
}
/**
*
* The node making the request.
*
*
* .envoy.api.v2.core.Node node = 2;
*/
public io.envoyproxy.envoy.api.v2.core.Node getNode() {
return node_ == null ? io.envoyproxy.envoy.api.v2.core.Node.getDefaultInstance() : node_;
}
/**
*
* The node making the request.
*
*
* .envoy.api.v2.core.Node node = 2;
*/
public io.envoyproxy.envoy.api.v2.core.NodeOrBuilder getNodeOrBuilder() {
return getNode();
}
public static final int RESOURCE_NAMES_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList resourceNames_;
/**
*
* List of resources to subscribe to, e.g. list of cluster names or a route
* configuration name. If this is empty, all resources for the API are
* returned. LDS/CDS expect empty resource_names, since this is global
* discovery for the Envoy instance. The LDS and CDS responses will then imply
* a number of resources that need to be fetched via EDS/RDS, which will be
* explicitly enumerated in resource_names.
*
*
* repeated string resource_names = 3;
*/
public com.google.protobuf.ProtocolStringList
getResourceNamesList() {
return resourceNames_;
}
/**
*
* List of resources to subscribe to, e.g. list of cluster names or a route
* configuration name. If this is empty, all resources for the API are
* returned. LDS/CDS expect empty resource_names, since this is global
* discovery for the Envoy instance. The LDS and CDS responses will then imply
* a number of resources that need to be fetched via EDS/RDS, which will be
* explicitly enumerated in resource_names.
*
*
* repeated string resource_names = 3;
*/
public int getResourceNamesCount() {
return resourceNames_.size();
}
/**
*
* List of resources to subscribe to, e.g. list of cluster names or a route
* configuration name. If this is empty, all resources for the API are
* returned. LDS/CDS expect empty resource_names, since this is global
* discovery for the Envoy instance. The LDS and CDS responses will then imply
* a number of resources that need to be fetched via EDS/RDS, which will be
* explicitly enumerated in resource_names.
*
*
* repeated string resource_names = 3;
*/
public java.lang.String getResourceNames(int index) {
return resourceNames_.get(index);
}
/**
*
* List of resources to subscribe to, e.g. list of cluster names or a route
* configuration name. If this is empty, all resources for the API are
* returned. LDS/CDS expect empty resource_names, since this is global
* discovery for the Envoy instance. The LDS and CDS responses will then imply
* a number of resources that need to be fetched via EDS/RDS, which will be
* explicitly enumerated in resource_names.
*
*
* repeated string resource_names = 3;
*/
public com.google.protobuf.ByteString
getResourceNamesBytes(int index) {
return resourceNames_.getByteString(index);
}
public static final int TYPE_URL_FIELD_NUMBER = 4;
private volatile java.lang.Object typeUrl_;
/**
*
* Type of the resource that is being requested, e.g.
* "type.googleapis.com/envoy.api.v2.ClusterLoadAssignment". This is implicit
* in requests made via singleton xDS APIs such as CDS, LDS, etc. but is
* required for ADS.
*
*
* string type_url = 4;
*/
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 of the resource that is being requested, e.g.
* "type.googleapis.com/envoy.api.v2.ClusterLoadAssignment". This is implicit
* in requests made via singleton xDS APIs such as CDS, LDS, etc. but is
* required for ADS.
*
*
* string type_url = 4;
*/
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 RESPONSE_NONCE_FIELD_NUMBER = 5;
private volatile java.lang.Object responseNonce_;
/**
*
* nonce corresponding to DiscoveryResponse being ACK/NACKed. See above
* discussion on version_info and the DiscoveryResponse nonce comment. This
* may be empty if no nonce is available, e.g. at startup or for non-stream
* xDS implementations.
*
*
* string response_nonce = 5;
*/
public java.lang.String getResponseNonce() {
java.lang.Object ref = responseNonce_;
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();
responseNonce_ = s;
return s;
}
}
/**
*
* nonce corresponding to DiscoveryResponse being ACK/NACKed. See above
* discussion on version_info and the DiscoveryResponse nonce comment. This
* may be empty if no nonce is available, e.g. at startup or for non-stream
* xDS implementations.
*
*
* string response_nonce = 5;
*/
public com.google.protobuf.ByteString
getResponseNonceBytes() {
java.lang.Object ref = responseNonce_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
responseNonce_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ERROR_DETAIL_FIELD_NUMBER = 6;
private com.google.rpc.Status errorDetail_;
/**
*
* This is populated when the previous :ref:`DiscoveryResponse <envoy_api_msg_DiscoveryResponse>`
* failed to update configuration. The *message* field in *error_details* provides the Envoy
* internal exception related to the failure. It is only intended for consumption during manual
* debugging, the string provided is not guaranteed to be stable across Envoy versions.
*
*
* .google.rpc.Status error_detail = 6;
*/
public boolean hasErrorDetail() {
return errorDetail_ != null;
}
/**
*
* This is populated when the previous :ref:`DiscoveryResponse <envoy_api_msg_DiscoveryResponse>`
* failed to update configuration. The *message* field in *error_details* provides the Envoy
* internal exception related to the failure. It is only intended for consumption during manual
* debugging, the string provided is not guaranteed to be stable across Envoy versions.
*
*
* .google.rpc.Status error_detail = 6;
*/
public com.google.rpc.Status getErrorDetail() {
return errorDetail_ == null ? com.google.rpc.Status.getDefaultInstance() : errorDetail_;
}
/**
*
* This is populated when the previous :ref:`DiscoveryResponse <envoy_api_msg_DiscoveryResponse>`
* failed to update configuration. The *message* field in *error_details* provides the Envoy
* internal exception related to the failure. It is only intended for consumption during manual
* debugging, the string provided is not guaranteed to be stable across Envoy versions.
*
*
* .google.rpc.Status error_detail = 6;
*/
public com.google.rpc.StatusOrBuilder getErrorDetailOrBuilder() {
return getErrorDetail();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getVersionInfoBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, versionInfo_);
}
if (node_ != null) {
output.writeMessage(2, getNode());
}
for (int i = 0; i < resourceNames_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, resourceNames_.getRaw(i));
}
if (!getTypeUrlBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, typeUrl_);
}
if (!getResponseNonceBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, responseNonce_);
}
if (errorDetail_ != null) {
output.writeMessage(6, getErrorDetail());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getVersionInfoBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, versionInfo_);
}
if (node_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getNode());
}
{
int dataSize = 0;
for (int i = 0; i < resourceNames_.size(); i++) {
dataSize += computeStringSizeNoTag(resourceNames_.getRaw(i));
}
size += dataSize;
size += 1 * getResourceNamesList().size();
}
if (!getTypeUrlBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, typeUrl_);
}
if (!getResponseNonceBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, responseNonce_);
}
if (errorDetail_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getErrorDetail());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.envoyproxy.envoy.api.v2.DiscoveryRequest)) {
return super.equals(obj);
}
io.envoyproxy.envoy.api.v2.DiscoveryRequest other = (io.envoyproxy.envoy.api.v2.DiscoveryRequest) obj;
boolean result = true;
result = result && getVersionInfo()
.equals(other.getVersionInfo());
result = result && (hasNode() == other.hasNode());
if (hasNode()) {
result = result && getNode()
.equals(other.getNode());
}
result = result && getResourceNamesList()
.equals(other.getResourceNamesList());
result = result && getTypeUrl()
.equals(other.getTypeUrl());
result = result && getResponseNonce()
.equals(other.getResponseNonce());
result = result && (hasErrorDetail() == other.hasErrorDetail());
if (hasErrorDetail()) {
result = result && getErrorDetail()
.equals(other.getErrorDetail());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VERSION_INFO_FIELD_NUMBER;
hash = (53 * hash) + getVersionInfo().hashCode();
if (hasNode()) {
hash = (37 * hash) + NODE_FIELD_NUMBER;
hash = (53 * hash) + getNode().hashCode();
}
if (getResourceNamesCount() > 0) {
hash = (37 * hash) + RESOURCE_NAMES_FIELD_NUMBER;
hash = (53 * hash) + getResourceNamesList().hashCode();
}
hash = (37 * hash) + TYPE_URL_FIELD_NUMBER;
hash = (53 * hash) + getTypeUrl().hashCode();
hash = (37 * hash) + RESPONSE_NONCE_FIELD_NUMBER;
hash = (53 * hash) + getResponseNonce().hashCode();
if (hasErrorDetail()) {
hash = (37 * hash) + ERROR_DETAIL_FIELD_NUMBER;
hash = (53 * hash) + getErrorDetail().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.api.v2.DiscoveryRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.api.v2.DiscoveryRequest 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.api.v2.DiscoveryRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.api.v2.DiscoveryRequest 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.api.v2.DiscoveryRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.api.v2.DiscoveryRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.api.v2.DiscoveryRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.api.v2.DiscoveryRequest 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.api.v2.DiscoveryRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.api.v2.DiscoveryRequest 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.api.v2.DiscoveryRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.api.v2.DiscoveryRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.envoy.api.v2.DiscoveryRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
*
* A DiscoveryRequest requests a set of versioned resources of the same type for
* a given Envoy node on some API.
*
*
* Protobuf type {@code envoy.api.v2.DiscoveryRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.api.v2.DiscoveryRequest)
io.envoyproxy.envoy.api.v2.DiscoveryRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.api.v2.DiscoveryProto.internal_static_envoy_api_v2_DiscoveryRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.api.v2.DiscoveryProto.internal_static_envoy_api_v2_DiscoveryRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.api.v2.DiscoveryRequest.class, io.envoyproxy.envoy.api.v2.DiscoveryRequest.Builder.class);
}
// Construct using io.envoyproxy.envoy.api.v2.DiscoveryRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
versionInfo_ = "";
if (nodeBuilder_ == null) {
node_ = null;
} else {
node_ = null;
nodeBuilder_ = null;
}
resourceNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
typeUrl_ = "";
responseNonce_ = "";
if (errorDetailBuilder_ == null) {
errorDetail_ = null;
} else {
errorDetail_ = null;
errorDetailBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.api.v2.DiscoveryProto.internal_static_envoy_api_v2_DiscoveryRequest_descriptor;
}
public io.envoyproxy.envoy.api.v2.DiscoveryRequest getDefaultInstanceForType() {
return io.envoyproxy.envoy.api.v2.DiscoveryRequest.getDefaultInstance();
}
public io.envoyproxy.envoy.api.v2.DiscoveryRequest build() {
io.envoyproxy.envoy.api.v2.DiscoveryRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.envoyproxy.envoy.api.v2.DiscoveryRequest buildPartial() {
io.envoyproxy.envoy.api.v2.DiscoveryRequest result = new io.envoyproxy.envoy.api.v2.DiscoveryRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.versionInfo_ = versionInfo_;
if (nodeBuilder_ == null) {
result.node_ = node_;
} else {
result.node_ = nodeBuilder_.build();
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
resourceNames_ = resourceNames_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.resourceNames_ = resourceNames_;
result.typeUrl_ = typeUrl_;
result.responseNonce_ = responseNonce_;
if (errorDetailBuilder_ == null) {
result.errorDetail_ = errorDetail_;
} else {
result.errorDetail_ = errorDetailBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.envoy.api.v2.DiscoveryRequest) {
return mergeFrom((io.envoyproxy.envoy.api.v2.DiscoveryRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.api.v2.DiscoveryRequest other) {
if (other == io.envoyproxy.envoy.api.v2.DiscoveryRequest.getDefaultInstance()) return this;
if (!other.getVersionInfo().isEmpty()) {
versionInfo_ = other.versionInfo_;
onChanged();
}
if (other.hasNode()) {
mergeNode(other.getNode());
}
if (!other.resourceNames_.isEmpty()) {
if (resourceNames_.isEmpty()) {
resourceNames_ = other.resourceNames_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureResourceNamesIsMutable();
resourceNames_.addAll(other.resourceNames_);
}
onChanged();
}
if (!other.getTypeUrl().isEmpty()) {
typeUrl_ = other.typeUrl_;
onChanged();
}
if (!other.getResponseNonce().isEmpty()) {
responseNonce_ = other.responseNonce_;
onChanged();
}
if (other.hasErrorDetail()) {
mergeErrorDetail(other.getErrorDetail());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.envoy.api.v2.DiscoveryRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.api.v2.DiscoveryRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object versionInfo_ = "";
/**
*
* The version_info provided in the request messages will be the version_info
* received with the most recent successfully processed response or empty on
* the first request. It is expected that no new request is sent after a
* response is received until the Envoy instance is ready to ACK/NACK the new
* configuration. ACK/NACK takes place by returning the new API config version
* as applied or the previous API config version respectively. Each type_url
* (see below) has an independent version associated with it.
*
*
* string version_info = 1;
*/
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;
}
}
/**
*
* The version_info provided in the request messages will be the version_info
* received with the most recent successfully processed response or empty on
* the first request. It is expected that no new request is sent after a
* response is received until the Envoy instance is ready to ACK/NACK the new
* configuration. ACK/NACK takes place by returning the new API config version
* as applied or the previous API config version respectively. Each type_url
* (see below) has an independent version associated with it.
*
*
* string version_info = 1;
*/
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;
}
}
/**
*
* The version_info provided in the request messages will be the version_info
* received with the most recent successfully processed response or empty on
* the first request. It is expected that no new request is sent after a
* response is received until the Envoy instance is ready to ACK/NACK the new
* configuration. ACK/NACK takes place by returning the new API config version
* as applied or the previous API config version respectively. Each type_url
* (see below) has an independent version associated with it.
*
*
* string version_info = 1;
*/
public Builder setVersionInfo(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
versionInfo_ = value;
onChanged();
return this;
}
/**
*
* The version_info provided in the request messages will be the version_info
* received with the most recent successfully processed response or empty on
* the first request. It is expected that no new request is sent after a
* response is received until the Envoy instance is ready to ACK/NACK the new
* configuration. ACK/NACK takes place by returning the new API config version
* as applied or the previous API config version respectively. Each type_url
* (see below) has an independent version associated with it.
*
*
* string version_info = 1;
*/
public Builder clearVersionInfo() {
versionInfo_ = getDefaultInstance().getVersionInfo();
onChanged();
return this;
}
/**
*
* The version_info provided in the request messages will be the version_info
* received with the most recent successfully processed response or empty on
* the first request. It is expected that no new request is sent after a
* response is received until the Envoy instance is ready to ACK/NACK the new
* configuration. ACK/NACK takes place by returning the new API config version
* as applied or the previous API config version respectively. Each type_url
* (see below) has an independent version associated with it.
*
*
* string version_info = 1;
*/
public Builder setVersionInfoBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
versionInfo_ = value;
onChanged();
return this;
}
private io.envoyproxy.envoy.api.v2.core.Node node_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.Node, io.envoyproxy.envoy.api.v2.core.Node.Builder, io.envoyproxy.envoy.api.v2.core.NodeOrBuilder> nodeBuilder_;
/**
*
* The node making the request.
*
*
* .envoy.api.v2.core.Node node = 2;
*/
public boolean hasNode() {
return nodeBuilder_ != null || node_ != null;
}
/**
*
* The node making the request.
*
*
* .envoy.api.v2.core.Node node = 2;
*/
public io.envoyproxy.envoy.api.v2.core.Node getNode() {
if (nodeBuilder_ == null) {
return node_ == null ? io.envoyproxy.envoy.api.v2.core.Node.getDefaultInstance() : node_;
} else {
return nodeBuilder_.getMessage();
}
}
/**
*
* The node making the request.
*
*
* .envoy.api.v2.core.Node node = 2;
*/
public Builder setNode(io.envoyproxy.envoy.api.v2.core.Node value) {
if (nodeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
node_ = value;
onChanged();
} else {
nodeBuilder_.setMessage(value);
}
return this;
}
/**
*
* The node making the request.
*
*
* .envoy.api.v2.core.Node node = 2;
*/
public Builder setNode(
io.envoyproxy.envoy.api.v2.core.Node.Builder builderForValue) {
if (nodeBuilder_ == null) {
node_ = builderForValue.build();
onChanged();
} else {
nodeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The node making the request.
*
*
* .envoy.api.v2.core.Node node = 2;
*/
public Builder mergeNode(io.envoyproxy.envoy.api.v2.core.Node value) {
if (nodeBuilder_ == null) {
if (node_ != null) {
node_ =
io.envoyproxy.envoy.api.v2.core.Node.newBuilder(node_).mergeFrom(value).buildPartial();
} else {
node_ = value;
}
onChanged();
} else {
nodeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The node making the request.
*
*
* .envoy.api.v2.core.Node node = 2;
*/
public Builder clearNode() {
if (nodeBuilder_ == null) {
node_ = null;
onChanged();
} else {
node_ = null;
nodeBuilder_ = null;
}
return this;
}
/**
*
* The node making the request.
*
*
* .envoy.api.v2.core.Node node = 2;
*/
public io.envoyproxy.envoy.api.v2.core.Node.Builder getNodeBuilder() {
onChanged();
return getNodeFieldBuilder().getBuilder();
}
/**
*
* The node making the request.
*
*
* .envoy.api.v2.core.Node node = 2;
*/
public io.envoyproxy.envoy.api.v2.core.NodeOrBuilder getNodeOrBuilder() {
if (nodeBuilder_ != null) {
return nodeBuilder_.getMessageOrBuilder();
} else {
return node_ == null ?
io.envoyproxy.envoy.api.v2.core.Node.getDefaultInstance() : node_;
}
}
/**
*
* The node making the request.
*
*
* .envoy.api.v2.core.Node node = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.Node, io.envoyproxy.envoy.api.v2.core.Node.Builder, io.envoyproxy.envoy.api.v2.core.NodeOrBuilder>
getNodeFieldBuilder() {
if (nodeBuilder_ == null) {
nodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.api.v2.core.Node, io.envoyproxy.envoy.api.v2.core.Node.Builder, io.envoyproxy.envoy.api.v2.core.NodeOrBuilder>(
getNode(),
getParentForChildren(),
isClean());
node_ = null;
}
return nodeBuilder_;
}
private com.google.protobuf.LazyStringList resourceNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureResourceNamesIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
resourceNames_ = new com.google.protobuf.LazyStringArrayList(resourceNames_);
bitField0_ |= 0x00000004;
}
}
/**
*
* List of resources to subscribe to, e.g. list of cluster names or a route
* configuration name. If this is empty, all resources for the API are
* returned. LDS/CDS expect empty resource_names, since this is global
* discovery for the Envoy instance. The LDS and CDS responses will then imply
* a number of resources that need to be fetched via EDS/RDS, which will be
* explicitly enumerated in resource_names.
*
*
* repeated string resource_names = 3;
*/
public com.google.protobuf.ProtocolStringList
getResourceNamesList() {
return resourceNames_.getUnmodifiableView();
}
/**
*
* List of resources to subscribe to, e.g. list of cluster names or a route
* configuration name. If this is empty, all resources for the API are
* returned. LDS/CDS expect empty resource_names, since this is global
* discovery for the Envoy instance. The LDS and CDS responses will then imply
* a number of resources that need to be fetched via EDS/RDS, which will be
* explicitly enumerated in resource_names.
*
*
* repeated string resource_names = 3;
*/
public int getResourceNamesCount() {
return resourceNames_.size();
}
/**
*
* List of resources to subscribe to, e.g. list of cluster names or a route
* configuration name. If this is empty, all resources for the API are
* returned. LDS/CDS expect empty resource_names, since this is global
* discovery for the Envoy instance. The LDS and CDS responses will then imply
* a number of resources that need to be fetched via EDS/RDS, which will be
* explicitly enumerated in resource_names.
*
*
* repeated string resource_names = 3;
*/
public java.lang.String getResourceNames(int index) {
return resourceNames_.get(index);
}
/**
*
* List of resources to subscribe to, e.g. list of cluster names or a route
* configuration name. If this is empty, all resources for the API are
* returned. LDS/CDS expect empty resource_names, since this is global
* discovery for the Envoy instance. The LDS and CDS responses will then imply
* a number of resources that need to be fetched via EDS/RDS, which will be
* explicitly enumerated in resource_names.
*
*
* repeated string resource_names = 3;
*/
public com.google.protobuf.ByteString
getResourceNamesBytes(int index) {
return resourceNames_.getByteString(index);
}
/**
*
* List of resources to subscribe to, e.g. list of cluster names or a route
* configuration name. If this is empty, all resources for the API are
* returned. LDS/CDS expect empty resource_names, since this is global
* discovery for the Envoy instance. The LDS and CDS responses will then imply
* a number of resources that need to be fetched via EDS/RDS, which will be
* explicitly enumerated in resource_names.
*
*
* repeated string resource_names = 3;
*/
public Builder setResourceNames(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureResourceNamesIsMutable();
resourceNames_.set(index, value);
onChanged();
return this;
}
/**
*
* List of resources to subscribe to, e.g. list of cluster names or a route
* configuration name. If this is empty, all resources for the API are
* returned. LDS/CDS expect empty resource_names, since this is global
* discovery for the Envoy instance. The LDS and CDS responses will then imply
* a number of resources that need to be fetched via EDS/RDS, which will be
* explicitly enumerated in resource_names.
*
*
* repeated string resource_names = 3;
*/
public Builder addResourceNames(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureResourceNamesIsMutable();
resourceNames_.add(value);
onChanged();
return this;
}
/**
*
* List of resources to subscribe to, e.g. list of cluster names or a route
* configuration name. If this is empty, all resources for the API are
* returned. LDS/CDS expect empty resource_names, since this is global
* discovery for the Envoy instance. The LDS and CDS responses will then imply
* a number of resources that need to be fetched via EDS/RDS, which will be
* explicitly enumerated in resource_names.
*
*
* repeated string resource_names = 3;
*/
public Builder addAllResourceNames(
java.lang.Iterable values) {
ensureResourceNamesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, resourceNames_);
onChanged();
return this;
}
/**
*
* List of resources to subscribe to, e.g. list of cluster names or a route
* configuration name. If this is empty, all resources for the API are
* returned. LDS/CDS expect empty resource_names, since this is global
* discovery for the Envoy instance. The LDS and CDS responses will then imply
* a number of resources that need to be fetched via EDS/RDS, which will be
* explicitly enumerated in resource_names.
*
*
* repeated string resource_names = 3;
*/
public Builder clearResourceNames() {
resourceNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* List of resources to subscribe to, e.g. list of cluster names or a route
* configuration name. If this is empty, all resources for the API are
* returned. LDS/CDS expect empty resource_names, since this is global
* discovery for the Envoy instance. The LDS and CDS responses will then imply
* a number of resources that need to be fetched via EDS/RDS, which will be
* explicitly enumerated in resource_names.
*
*
* repeated string resource_names = 3;
*/
public Builder addResourceNamesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureResourceNamesIsMutable();
resourceNames_.add(value);
onChanged();
return this;
}
private java.lang.Object typeUrl_ = "";
/**
*
* Type of the resource that is being requested, e.g.
* "type.googleapis.com/envoy.api.v2.ClusterLoadAssignment". This is implicit
* in requests made via singleton xDS APIs such as CDS, LDS, etc. but is
* required for ADS.
*
*
* string type_url = 4;
*/
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 of the resource that is being requested, e.g.
* "type.googleapis.com/envoy.api.v2.ClusterLoadAssignment". This is implicit
* in requests made via singleton xDS APIs such as CDS, LDS, etc. but is
* required for ADS.
*
*
* string type_url = 4;
*/
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 of the resource that is being requested, e.g.
* "type.googleapis.com/envoy.api.v2.ClusterLoadAssignment". This is implicit
* in requests made via singleton xDS APIs such as CDS, LDS, etc. but is
* required for ADS.
*
*
* string type_url = 4;
*/
public Builder setTypeUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
typeUrl_ = value;
onChanged();
return this;
}
/**
*
* Type of the resource that is being requested, e.g.
* "type.googleapis.com/envoy.api.v2.ClusterLoadAssignment". This is implicit
* in requests made via singleton xDS APIs such as CDS, LDS, etc. but is
* required for ADS.
*
*
* string type_url = 4;
*/
public Builder clearTypeUrl() {
typeUrl_ = getDefaultInstance().getTypeUrl();
onChanged();
return this;
}
/**
*
* Type of the resource that is being requested, e.g.
* "type.googleapis.com/envoy.api.v2.ClusterLoadAssignment". This is implicit
* in requests made via singleton xDS APIs such as CDS, LDS, etc. but is
* required for ADS.
*
*
* string type_url = 4;
*/
public Builder setTypeUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
typeUrl_ = value;
onChanged();
return this;
}
private java.lang.Object responseNonce_ = "";
/**
*
* nonce corresponding to DiscoveryResponse being ACK/NACKed. See above
* discussion on version_info and the DiscoveryResponse nonce comment. This
* may be empty if no nonce is available, e.g. at startup or for non-stream
* xDS implementations.
*
*
* string response_nonce = 5;
*/
public java.lang.String getResponseNonce() {
java.lang.Object ref = responseNonce_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
responseNonce_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* nonce corresponding to DiscoveryResponse being ACK/NACKed. See above
* discussion on version_info and the DiscoveryResponse nonce comment. This
* may be empty if no nonce is available, e.g. at startup or for non-stream
* xDS implementations.
*
*
* string response_nonce = 5;
*/
public com.google.protobuf.ByteString
getResponseNonceBytes() {
java.lang.Object ref = responseNonce_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
responseNonce_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* nonce corresponding to DiscoveryResponse being ACK/NACKed. See above
* discussion on version_info and the DiscoveryResponse nonce comment. This
* may be empty if no nonce is available, e.g. at startup or for non-stream
* xDS implementations.
*
*
* string response_nonce = 5;
*/
public Builder setResponseNonce(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
responseNonce_ = value;
onChanged();
return this;
}
/**
*
* nonce corresponding to DiscoveryResponse being ACK/NACKed. See above
* discussion on version_info and the DiscoveryResponse nonce comment. This
* may be empty if no nonce is available, e.g. at startup or for non-stream
* xDS implementations.
*
*
* string response_nonce = 5;
*/
public Builder clearResponseNonce() {
responseNonce_ = getDefaultInstance().getResponseNonce();
onChanged();
return this;
}
/**
*
* nonce corresponding to DiscoveryResponse being ACK/NACKed. See above
* discussion on version_info and the DiscoveryResponse nonce comment. This
* may be empty if no nonce is available, e.g. at startup or for non-stream
* xDS implementations.
*
*
* string response_nonce = 5;
*/
public Builder setResponseNonceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
responseNonce_ = value;
onChanged();
return this;
}
private com.google.rpc.Status errorDetail_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorDetailBuilder_;
/**
*
* This is populated when the previous :ref:`DiscoveryResponse <envoy_api_msg_DiscoveryResponse>`
* failed to update configuration. The *message* field in *error_details* provides the Envoy
* internal exception related to the failure. It is only intended for consumption during manual
* debugging, the string provided is not guaranteed to be stable across Envoy versions.
*
*
* .google.rpc.Status error_detail = 6;
*/
public boolean hasErrorDetail() {
return errorDetailBuilder_ != null || errorDetail_ != null;
}
/**
*
* This is populated when the previous :ref:`DiscoveryResponse <envoy_api_msg_DiscoveryResponse>`
* failed to update configuration. The *message* field in *error_details* provides the Envoy
* internal exception related to the failure. It is only intended for consumption during manual
* debugging, the string provided is not guaranteed to be stable across Envoy versions.
*
*
* .google.rpc.Status error_detail = 6;
*/
public com.google.rpc.Status getErrorDetail() {
if (errorDetailBuilder_ == null) {
return errorDetail_ == null ? com.google.rpc.Status.getDefaultInstance() : errorDetail_;
} else {
return errorDetailBuilder_.getMessage();
}
}
/**
*
* This is populated when the previous :ref:`DiscoveryResponse <envoy_api_msg_DiscoveryResponse>`
* failed to update configuration. The *message* field in *error_details* provides the Envoy
* internal exception related to the failure. It is only intended for consumption during manual
* debugging, the string provided is not guaranteed to be stable across Envoy versions.
*
*
* .google.rpc.Status error_detail = 6;
*/
public Builder setErrorDetail(com.google.rpc.Status value) {
if (errorDetailBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
errorDetail_ = value;
onChanged();
} else {
errorDetailBuilder_.setMessage(value);
}
return this;
}
/**
*
* This is populated when the previous :ref:`DiscoveryResponse <envoy_api_msg_DiscoveryResponse>`
* failed to update configuration. The *message* field in *error_details* provides the Envoy
* internal exception related to the failure. It is only intended for consumption during manual
* debugging, the string provided is not guaranteed to be stable across Envoy versions.
*
*
* .google.rpc.Status error_detail = 6;
*/
public Builder setErrorDetail(
com.google.rpc.Status.Builder builderForValue) {
if (errorDetailBuilder_ == null) {
errorDetail_ = builderForValue.build();
onChanged();
} else {
errorDetailBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* This is populated when the previous :ref:`DiscoveryResponse <envoy_api_msg_DiscoveryResponse>`
* failed to update configuration. The *message* field in *error_details* provides the Envoy
* internal exception related to the failure. It is only intended for consumption during manual
* debugging, the string provided is not guaranteed to be stable across Envoy versions.
*
*
* .google.rpc.Status error_detail = 6;
*/
public Builder mergeErrorDetail(com.google.rpc.Status value) {
if (errorDetailBuilder_ == null) {
if (errorDetail_ != null) {
errorDetail_ =
com.google.rpc.Status.newBuilder(errorDetail_).mergeFrom(value).buildPartial();
} else {
errorDetail_ = value;
}
onChanged();
} else {
errorDetailBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* This is populated when the previous :ref:`DiscoveryResponse <envoy_api_msg_DiscoveryResponse>`
* failed to update configuration. The *message* field in *error_details* provides the Envoy
* internal exception related to the failure. It is only intended for consumption during manual
* debugging, the string provided is not guaranteed to be stable across Envoy versions.
*
*
* .google.rpc.Status error_detail = 6;
*/
public Builder clearErrorDetail() {
if (errorDetailBuilder_ == null) {
errorDetail_ = null;
onChanged();
} else {
errorDetail_ = null;
errorDetailBuilder_ = null;
}
return this;
}
/**
*
* This is populated when the previous :ref:`DiscoveryResponse <envoy_api_msg_DiscoveryResponse>`
* failed to update configuration. The *message* field in *error_details* provides the Envoy
* internal exception related to the failure. It is only intended for consumption during manual
* debugging, the string provided is not guaranteed to be stable across Envoy versions.
*
*
* .google.rpc.Status error_detail = 6;
*/
public com.google.rpc.Status.Builder getErrorDetailBuilder() {
onChanged();
return getErrorDetailFieldBuilder().getBuilder();
}
/**
*
* This is populated when the previous :ref:`DiscoveryResponse <envoy_api_msg_DiscoveryResponse>`
* failed to update configuration. The *message* field in *error_details* provides the Envoy
* internal exception related to the failure. It is only intended for consumption during manual
* debugging, the string provided is not guaranteed to be stable across Envoy versions.
*
*
* .google.rpc.Status error_detail = 6;
*/
public com.google.rpc.StatusOrBuilder getErrorDetailOrBuilder() {
if (errorDetailBuilder_ != null) {
return errorDetailBuilder_.getMessageOrBuilder();
} else {
return errorDetail_ == null ?
com.google.rpc.Status.getDefaultInstance() : errorDetail_;
}
}
/**
*
* This is populated when the previous :ref:`DiscoveryResponse <envoy_api_msg_DiscoveryResponse>`
* failed to update configuration. The *message* field in *error_details* provides the Envoy
* internal exception related to the failure. It is only intended for consumption during manual
* debugging, the string provided is not guaranteed to be stable across Envoy versions.
*
*
* .google.rpc.Status error_detail = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
getErrorDetailFieldBuilder() {
if (errorDetailBuilder_ == null) {
errorDetailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
getErrorDetail(),
getParentForChildren(),
isClean());
errorDetail_ = null;
}
return errorDetailBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:envoy.api.v2.DiscoveryRequest)
}
// @@protoc_insertion_point(class_scope:envoy.api.v2.DiscoveryRequest)
private static final io.envoyproxy.envoy.api.v2.DiscoveryRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.api.v2.DiscoveryRequest();
}
public static io.envoyproxy.envoy.api.v2.DiscoveryRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public DiscoveryRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DiscoveryRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.envoyproxy.envoy.api.v2.DiscoveryRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy