Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/service/discovery/v3/discovery.proto
package io.envoyproxy.envoy.service.discovery.v3;
/**
*
* A DiscoveryRequest requests a set of versioned resources of the same type for
* a given Envoy node on some API.
* [#next-free-field: 8]
*
*
* Protobuf type {@code envoy.service.discovery.v3.DiscoveryRequest}
*/
public final class DiscoveryRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.service.discovery.v3.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;
resourceLocators_ = java.util.Collections.emptyList();
typeUrl_ = "";
responseNonce_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DiscoveryRequest();
}
@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;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
versionInfo_ = s;
break;
}
case 18: {
io.envoyproxy.envoy.config.core.v3.Node.Builder subBuilder = null;
if (node_ != null) {
subBuilder = node_.toBuilder();
}
node_ = input.readMessage(io.envoyproxy.envoy.config.core.v3.Node.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(node_);
node_ = subBuilder.buildPartial();
}
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
resourceNames_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
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;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
resourceLocators_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
resourceLocators_.add(
input.readMessage(io.envoyproxy.envoy.service.discovery.v3.ResourceLocator.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
resourceNames_ = resourceNames_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
resourceLocators_ = java.util.Collections.unmodifiableList(resourceLocators_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_DiscoveryRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_DiscoveryRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest.class, io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest.Builder.class);
}
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.
*
* 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;
* @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 NODE_FIELD_NUMBER = 2;
private io.envoyproxy.envoy.config.core.v3.Node node_;
/**
*
* The node making the request.
*
*
* .envoy.config.core.v3.Node node = 2;
* @return Whether the node field is set.
*/
@java.lang.Override
public boolean hasNode() {
return node_ != null;
}
/**
*
*
* .envoy.config.core.v3.Node node = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.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 may have empty resource_names, which will cause all
* resources for the Envoy instance to be returned. 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;
* @return A list containing the resourceNames.
*/
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 may have empty resource_names, which will cause all
* resources for the Envoy instance to be returned. 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;
* @return The count of resourceNames.
*/
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 may have empty resource_names, which will cause all
* resources for the Envoy instance to be returned. 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;
* @param index The index of the element to return.
* @return The resourceNames at the given index.
*/
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 may have empty resource_names, which will cause all
* resources for the Envoy instance to be returned. 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;
* @param index The index of the value to return.
* @return The bytes of the resourceNames at the given index.
*/
public com.google.protobuf.ByteString
getResourceNamesBytes(int index) {
return resourceNames_.getByteString(index);
}
public static final int RESOURCE_LOCATORS_FIELD_NUMBER = 7;
private java.util.List resourceLocators_;
/**
*
* [#not-implemented-hide:]
* Alternative to ``resource_names`` field that allows specifying dynamic
* parameters along with each resource name. Clients that populate this
* field must be able to handle responses from the server where resources
* are wrapped in a Resource message.
* Note that it is legal for a request to have some resources listed
* in ``resource_names`` and others in ``resource_locators``.
*
* [#not-implemented-hide:]
* Alternative to ``resource_names`` field that allows specifying dynamic
* parameters along with each resource name. Clients that populate this
* field must be able to handle responses from the server where resources
* are wrapped in a Resource message.
* Note that it is legal for a request to have some resources listed
* in ``resource_names`` and others in ``resource_locators``.
*
* [#not-implemented-hide:]
* Alternative to ``resource_names`` field that allows specifying dynamic
* parameters along with each resource name. Clients that populate this
* field must be able to handle responses from the server where resources
* are wrapped in a Resource message.
* Note that it is legal for a request to have some resources listed
* in ``resource_names`` and others in ``resource_locators``.
*
*
* repeated .envoy.service.discovery.v3.ResourceLocator resource_locators = 7;
*/
@java.lang.Override
public int getResourceLocatorsCount() {
return resourceLocators_.size();
}
/**
*
* [#not-implemented-hide:]
* Alternative to ``resource_names`` field that allows specifying dynamic
* parameters along with each resource name. Clients that populate this
* field must be able to handle responses from the server where resources
* are wrapped in a Resource message.
* Note that it is legal for a request to have some resources listed
* in ``resource_names`` and others in ``resource_locators``.
*
* [#not-implemented-hide:]
* Alternative to ``resource_names`` field that allows specifying dynamic
* parameters along with each resource name. Clients that populate this
* field must be able to handle responses from the server where resources
* are wrapped in a Resource message.
* Note that it is legal for a request to have some resources listed
* in ``resource_names`` and others in ``resource_locators``.
*
*
* repeated .envoy.service.discovery.v3.ResourceLocator resource_locators = 7;
*/
@java.lang.Override
public io.envoyproxy.envoy.service.discovery.v3.ResourceLocatorOrBuilder getResourceLocatorsOrBuilder(
int index) {
return resourceLocators_.get(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.
*
* 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;
* @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 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 only if 1) this is a non-persistent-stream xDS such as HTTP,
* or 2) the client has not yet accepted an update in this xDS stream (unlike
* delta, where it is populated only for new explicit ACKs).
*
* nonce corresponding to DiscoveryResponse being ACK/NACKed. See above
* discussion on version_info and the DiscoveryResponse nonce comment. This
* may be empty only if 1) this is a non-persistent-stream xDS such as HTTP,
* or 2) the client has not yet accepted an update in this xDS stream (unlike
* delta, where it is populated only for new explicit ACKs).
*
*
* string response_nonce = 5;
* @return The bytes for responseNonce.
*/
@java.lang.Override
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_v3_api_msg_service.discovery.v3.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;
* @return Whether the errorDetail field is set.
*/
@java.lang.Override
public boolean hasErrorDetail() {
return errorDetail_ != null;
}
/**
*
* This is populated when the previous :ref:`DiscoveryResponse <envoy_v3_api_msg_service.discovery.v3.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.
*
* This is populated when the previous :ref:`DiscoveryResponse <envoy_v3_api_msg_service.discovery.v3.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;
*/
@java.lang.Override
public com.google.rpc.StatusOrBuilder getErrorDetailOrBuilder() {
return getErrorDetail();
}
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(versionInfo_)) {
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeUrl_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, typeUrl_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(responseNonce_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, responseNonce_);
}
if (errorDetail_ != null) {
output.writeMessage(6, getErrorDetail());
}
for (int i = 0; i < resourceLocators_.size(); i++) {
output.writeMessage(7, resourceLocators_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionInfo_)) {
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeUrl_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, typeUrl_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(responseNonce_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, responseNonce_);
}
if (errorDetail_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getErrorDetail());
}
for (int i = 0; i < resourceLocators_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, resourceLocators_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest)) {
return super.equals(obj);
}
io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest other = (io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest) obj;
if (!getVersionInfo()
.equals(other.getVersionInfo())) return false;
if (hasNode() != other.hasNode()) return false;
if (hasNode()) {
if (!getNode()
.equals(other.getNode())) return false;
}
if (!getResourceNamesList()
.equals(other.getResourceNamesList())) return false;
if (!getResourceLocatorsList()
.equals(other.getResourceLocatorsList())) return false;
if (!getTypeUrl()
.equals(other.getTypeUrl())) return false;
if (!getResponseNonce()
.equals(other.getResponseNonce())) return false;
if (hasErrorDetail() != other.hasErrorDetail()) return false;
if (hasErrorDetail()) {
if (!getErrorDetail()
.equals(other.getErrorDetail())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + 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();
}
if (getResourceLocatorsCount() > 0) {
hash = (37 * hash) + RESOURCE_LOCATORS_FIELD_NUMBER;
hash = (53 * hash) + getResourceLocatorsList().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.service.discovery.v3.DiscoveryRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.discovery.v3.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.service.discovery.v3.DiscoveryRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.discovery.v3.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.service.discovery.v3.DiscoveryRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.discovery.v3.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.service.discovery.v3.DiscoveryRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.discovery.v3.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.service.discovery.v3.DiscoveryRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.discovery.v3.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);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest 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;
}
/**
*
* A DiscoveryRequest requests a set of versioned resources of the same type for
* a given Envoy node on some API.
* [#next-free-field: 8]
*
* 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.
*
* 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;
* @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;
}
}
/**
*
* 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;
* @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;
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;
* @return This builder for chaining.
*/
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;
* @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;
onChanged();
return this;
}
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_;
/**
*
* The node making the request.
*
*
* .envoy.config.core.v3.Node node = 2;
* @return Whether the node field is set.
*/
public boolean hasNode() {
return nodeBuilder_ != null || node_ != null;
}
/**
*
* 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 may have empty resource_names, which will cause all
* resources for the Envoy instance to be returned. 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;
* @return A list containing the resourceNames.
*/
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 may have empty resource_names, which will cause all
* resources for the Envoy instance to be returned. 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;
* @return The count of resourceNames.
*/
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 may have empty resource_names, which will cause all
* resources for the Envoy instance to be returned. 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;
* @param index The index of the element to return.
* @return The resourceNames at the given index.
*/
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 may have empty resource_names, which will cause all
* resources for the Envoy instance to be returned. 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;
* @param index The index of the value to return.
* @return The bytes of the resourceNames at the given index.
*/
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 may have empty resource_names, which will cause all
* resources for the Envoy instance to be returned. 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;
* @param index The index to set the value at.
* @param value The resourceNames to set.
* @return This builder for chaining.
*/
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 may have empty resource_names, which will cause all
* resources for the Envoy instance to be returned. 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;
* @param value The resourceNames to add.
* @return This builder for chaining.
*/
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 may have empty resource_names, which will cause all
* resources for the Envoy instance to be returned. 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;
* @param values The resourceNames to add.
* @return This builder for chaining.
*/
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 may have empty resource_names, which will cause all
* resources for the Envoy instance to be returned. 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.
*
* 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 may have empty resource_names, which will cause all
* resources for the Envoy instance to be returned. 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;
* @param value The bytes of the resourceNames to add.
* @return This builder for chaining.
*/
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.util.List resourceLocators_ =
java.util.Collections.emptyList();
private void ensureResourceLocatorsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
resourceLocators_ = new java.util.ArrayList(resourceLocators_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.service.discovery.v3.ResourceLocator, io.envoyproxy.envoy.service.discovery.v3.ResourceLocator.Builder, io.envoyproxy.envoy.service.discovery.v3.ResourceLocatorOrBuilder> resourceLocatorsBuilder_;
/**
*
* [#not-implemented-hide:]
* Alternative to ``resource_names`` field that allows specifying dynamic
* parameters along with each resource name. Clients that populate this
* field must be able to handle responses from the server where resources
* are wrapped in a Resource message.
* Note that it is legal for a request to have some resources listed
* in ``resource_names`` and others in ``resource_locators``.
*
* [#not-implemented-hide:]
* Alternative to ``resource_names`` field that allows specifying dynamic
* parameters along with each resource name. Clients that populate this
* field must be able to handle responses from the server where resources
* are wrapped in a Resource message.
* Note that it is legal for a request to have some resources listed
* in ``resource_names`` and others in ``resource_locators``.
*
*
* repeated .envoy.service.discovery.v3.ResourceLocator resource_locators = 7;
*/
public int getResourceLocatorsCount() {
if (resourceLocatorsBuilder_ == null) {
return resourceLocators_.size();
} else {
return resourceLocatorsBuilder_.getCount();
}
}
/**
*
* [#not-implemented-hide:]
* Alternative to ``resource_names`` field that allows specifying dynamic
* parameters along with each resource name. Clients that populate this
* field must be able to handle responses from the server where resources
* are wrapped in a Resource message.
* Note that it is legal for a request to have some resources listed
* in ``resource_names`` and others in ``resource_locators``.
*
* [#not-implemented-hide:]
* Alternative to ``resource_names`` field that allows specifying dynamic
* parameters along with each resource name. Clients that populate this
* field must be able to handle responses from the server where resources
* are wrapped in a Resource message.
* Note that it is legal for a request to have some resources listed
* in ``resource_names`` and others in ``resource_locators``.
*
*
* repeated .envoy.service.discovery.v3.ResourceLocator resource_locators = 7;
*/
public Builder setResourceLocators(
int index, io.envoyproxy.envoy.service.discovery.v3.ResourceLocator value) {
if (resourceLocatorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResourceLocatorsIsMutable();
resourceLocators_.set(index, value);
onChanged();
} else {
resourceLocatorsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* [#not-implemented-hide:]
* Alternative to ``resource_names`` field that allows specifying dynamic
* parameters along with each resource name. Clients that populate this
* field must be able to handle responses from the server where resources
* are wrapped in a Resource message.
* Note that it is legal for a request to have some resources listed
* in ``resource_names`` and others in ``resource_locators``.
*
* [#not-implemented-hide:]
* Alternative to ``resource_names`` field that allows specifying dynamic
* parameters along with each resource name. Clients that populate this
* field must be able to handle responses from the server where resources
* are wrapped in a Resource message.
* Note that it is legal for a request to have some resources listed
* in ``resource_names`` and others in ``resource_locators``.
*
*
* repeated .envoy.service.discovery.v3.ResourceLocator resource_locators = 7;
*/
public Builder addResourceLocators(io.envoyproxy.envoy.service.discovery.v3.ResourceLocator value) {
if (resourceLocatorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResourceLocatorsIsMutable();
resourceLocators_.add(value);
onChanged();
} else {
resourceLocatorsBuilder_.addMessage(value);
}
return this;
}
/**
*
* [#not-implemented-hide:]
* Alternative to ``resource_names`` field that allows specifying dynamic
* parameters along with each resource name. Clients that populate this
* field must be able to handle responses from the server where resources
* are wrapped in a Resource message.
* Note that it is legal for a request to have some resources listed
* in ``resource_names`` and others in ``resource_locators``.
*
*
* repeated .envoy.service.discovery.v3.ResourceLocator resource_locators = 7;
*/
public Builder addResourceLocators(
int index, io.envoyproxy.envoy.service.discovery.v3.ResourceLocator value) {
if (resourceLocatorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResourceLocatorsIsMutable();
resourceLocators_.add(index, value);
onChanged();
} else {
resourceLocatorsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* [#not-implemented-hide:]
* Alternative to ``resource_names`` field that allows specifying dynamic
* parameters along with each resource name. Clients that populate this
* field must be able to handle responses from the server where resources
* are wrapped in a Resource message.
* Note that it is legal for a request to have some resources listed
* in ``resource_names`` and others in ``resource_locators``.
*
* [#not-implemented-hide:]
* Alternative to ``resource_names`` field that allows specifying dynamic
* parameters along with each resource name. Clients that populate this
* field must be able to handle responses from the server where resources
* are wrapped in a Resource message.
* Note that it is legal for a request to have some resources listed
* in ``resource_names`` and others in ``resource_locators``.
*
* [#not-implemented-hide:]
* Alternative to ``resource_names`` field that allows specifying dynamic
* parameters along with each resource name. Clients that populate this
* field must be able to handle responses from the server where resources
* are wrapped in a Resource message.
* Note that it is legal for a request to have some resources listed
* in ``resource_names`` and others in ``resource_locators``.
*
* [#not-implemented-hide:]
* Alternative to ``resource_names`` field that allows specifying dynamic
* parameters along with each resource name. Clients that populate this
* field must be able to handle responses from the server where resources
* are wrapped in a Resource message.
* Note that it is legal for a request to have some resources listed
* in ``resource_names`` and others in ``resource_locators``.
*
* [#not-implemented-hide:]
* Alternative to ``resource_names`` field that allows specifying dynamic
* parameters along with each resource name. Clients that populate this
* field must be able to handle responses from the server where resources
* are wrapped in a Resource message.
* Note that it is legal for a request to have some resources listed
* in ``resource_names`` and others in ``resource_locators``.
*
* [#not-implemented-hide:]
* Alternative to ``resource_names`` field that allows specifying dynamic
* parameters along with each resource name. Clients that populate this
* field must be able to handle responses from the server where resources
* are wrapped in a Resource message.
* Note that it is legal for a request to have some resources listed
* in ``resource_names`` and others in ``resource_locators``.
*
*
* repeated .envoy.service.discovery.v3.ResourceLocator resource_locators = 7;
*/
public io.envoyproxy.envoy.service.discovery.v3.ResourceLocator.Builder getResourceLocatorsBuilder(
int index) {
return getResourceLocatorsFieldBuilder().getBuilder(index);
}
/**
*
* [#not-implemented-hide:]
* Alternative to ``resource_names`` field that allows specifying dynamic
* parameters along with each resource name. Clients that populate this
* field must be able to handle responses from the server where resources
* are wrapped in a Resource message.
* Note that it is legal for a request to have some resources listed
* in ``resource_names`` and others in ``resource_locators``.
*
*
* repeated .envoy.service.discovery.v3.ResourceLocator resource_locators = 7;
*/
public io.envoyproxy.envoy.service.discovery.v3.ResourceLocatorOrBuilder getResourceLocatorsOrBuilder(
int index) {
if (resourceLocatorsBuilder_ == null) {
return resourceLocators_.get(index); } else {
return resourceLocatorsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* [#not-implemented-hide:]
* Alternative to ``resource_names`` field that allows specifying dynamic
* parameters along with each resource name. Clients that populate this
* field must be able to handle responses from the server where resources
* are wrapped in a Resource message.
* Note that it is legal for a request to have some resources listed
* in ``resource_names`` and others in ``resource_locators``.
*
* [#not-implemented-hide:]
* Alternative to ``resource_names`` field that allows specifying dynamic
* parameters along with each resource name. Clients that populate this
* field must be able to handle responses from the server where resources
* are wrapped in a Resource message.
* Note that it is legal for a request to have some resources listed
* in ``resource_names`` and others in ``resource_locators``.
*
* [#not-implemented-hide:]
* Alternative to ``resource_names`` field that allows specifying dynamic
* parameters along with each resource name. Clients that populate this
* field must be able to handle responses from the server where resources
* are wrapped in a Resource message.
* Note that it is legal for a request to have some resources listed
* in ``resource_names`` and others in ``resource_locators``.
*
* [#not-implemented-hide:]
* Alternative to ``resource_names`` field that allows specifying dynamic
* parameters along with each resource name. Clients that populate this
* field must be able to handle responses from the server where resources
* are wrapped in a Resource message.
* Note that it is legal for a request to have some resources listed
* in ``resource_names`` and others in ``resource_locators``.
*
* 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.
*
* 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;
* @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 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;
* @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;
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;
* @return This builder for chaining.
*/
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;
* @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;
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 only if 1) this is a non-persistent-stream xDS such as HTTP,
* or 2) the client has not yet accepted an update in this xDS stream (unlike
* delta, where it is populated only for new explicit ACKs).
*
* nonce corresponding to DiscoveryResponse being ACK/NACKed. See above
* discussion on version_info and the DiscoveryResponse nonce comment. This
* may be empty only if 1) this is a non-persistent-stream xDS such as HTTP,
* or 2) the client has not yet accepted an update in this xDS stream (unlike
* delta, where it is populated only for new explicit ACKs).
*
*
* string response_nonce = 5;
* @return The bytes for responseNonce.
*/
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 only if 1) this is a non-persistent-stream xDS such as HTTP,
* or 2) the client has not yet accepted an update in this xDS stream (unlike
* delta, where it is populated only for new explicit ACKs).
*
*
* string response_nonce = 5;
* @param value The responseNonce to set.
* @return This builder for chaining.
*/
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 only if 1) this is a non-persistent-stream xDS such as HTTP,
* or 2) the client has not yet accepted an update in this xDS stream (unlike
* delta, where it is populated only for new explicit ACKs).
*
*
* string response_nonce = 5;
* @return This builder for chaining.
*/
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 only if 1) this is a non-persistent-stream xDS such as HTTP,
* or 2) the client has not yet accepted an update in this xDS stream (unlike
* delta, where it is populated only for new explicit ACKs).
*
*
* string response_nonce = 5;
* @param value The bytes for responseNonce to set.
* @return This builder for chaining.
*/
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_;
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_v3_api_msg_service.discovery.v3.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;
* @return Whether the errorDetail field is set.
*/
public boolean hasErrorDetail() {
return errorDetailBuilder_ != null || errorDetail_ != null;
}
/**
*
* This is populated when the previous :ref:`DiscoveryResponse <envoy_v3_api_msg_service.discovery.v3.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.
*
* This is populated when the previous :ref:`DiscoveryResponse <envoy_v3_api_msg_service.discovery.v3.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_v3_api_msg_service.discovery.v3.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.
*
* This is populated when the previous :ref:`DiscoveryResponse <envoy_v3_api_msg_service.discovery.v3.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.
*
* This is populated when the previous :ref:`DiscoveryResponse <envoy_v3_api_msg_service.discovery.v3.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.
*
* This is populated when the previous :ref:`DiscoveryResponse <envoy_v3_api_msg_service.discovery.v3.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.
*
* This is populated when the previous :ref:`DiscoveryResponse <envoy_v3_api_msg_service.discovery.v3.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.
*
* This is populated when the previous :ref:`DiscoveryResponse <envoy_v3_api_msg_service.discovery.v3.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_;
}
@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.discovery.v3.DiscoveryRequest)
}
// @@protoc_insertion_point(class_scope:envoy.service.discovery.v3.DiscoveryRequest)
private static final io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest();
}
public static io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
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;
}
@java.lang.Override
public io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}