io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/service/discovery/v3/discovery.proto
// Protobuf Java Version: 3.25.5
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.emptyList();
resourceLocators_ = java.util.Collections.emptyList();
typeUrl_ = "";
responseNonce_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DiscoveryRequest();
}
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);
}
private int bitField0_;
public static final int VERSION_INFO_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
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;
* @return The versionInfo.
*/
@java.lang.Override
public java.lang.String getVersionInfo() {
java.lang.Object ref = versionInfo_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
versionInfo_ = s;
return s;
}
}
/**
*
* 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 ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The node making the request.
*
*
* .envoy.config.core.v3.Node node = 2;
* @return The node.
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.Node getNode() {
return node_ == null ? io.envoyproxy.envoy.config.core.v3.Node.getDefaultInstance() : node_;
}
/**
*
* The node making the request.
*
*
* .envoy.config.core.v3.Node node = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.core.v3.NodeOrBuilder getNodeOrBuilder() {
return node_ == null ? io.envoyproxy.envoy.config.core.v3.Node.getDefaultInstance() : node_;
}
public static final int RESOURCE_NAMES_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList resourceNames_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* 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;
@SuppressWarnings("serial")
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``.
*
*
* repeated .envoy.service.discovery.v3.ResourceLocator resource_locators = 7;
*/
@java.lang.Override
public java.util.List getResourceLocatorsList() {
return 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``.
*
*
* repeated .envoy.service.discovery.v3.ResourceLocator resource_locators = 7;
*/
@java.lang.Override
public java.util.List extends io.envoyproxy.envoy.service.discovery.v3.ResourceLocatorOrBuilder>
getResourceLocatorsOrBuilderList() {
return 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``.
*
*
* 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``.
*
*
* repeated .envoy.service.discovery.v3.ResourceLocator resource_locators = 7;
*/
@java.lang.Override
public io.envoyproxy.envoy.service.discovery.v3.ResourceLocator getResourceLocators(int index) {
return resourceLocators_.get(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;
*/
@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;
@SuppressWarnings("serial")
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;
* @return The typeUrl.
*/
@java.lang.Override
public java.lang.String getTypeUrl() {
java.lang.Object ref = typeUrl_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
typeUrl_ = s;
return s;
}
}
/**
*
* Type 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;
@SuppressWarnings("serial")
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).
*
*
* string response_nonce = 5;
* @return The responseNonce.
*/
@java.lang.Override
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 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 ((bitField0_ & 0x00000002) != 0);
}
/**
*
* 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 The errorDetail.
*/
@java.lang.Override
public com.google.rpc.Status getErrorDetail() {
return errorDetail_ == null ? com.google.rpc.Status.getDefaultInstance() : 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;
*/
@java.lang.Override
public com.google.rpc.StatusOrBuilder getErrorDetailOrBuilder() {
return errorDetail_ == null ? com.google.rpc.Status.getDefaultInstance() : errorDetail_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
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 (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(6, getErrorDetail());
}
for (int i = 0; i < resourceLocators_.size(); i++) {
output.writeMessage(7, resourceLocators_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionInfo_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, versionInfo_);
}
if (((bitField0_ & 0x00000001) != 0)) {
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 (((bitField0_ & 0x00000002) != 0)) {
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 += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.envoyproxy.envoy.service.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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + 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) + getUnknownFields().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]
*
*
* Protobuf type {@code envoy.service.discovery.v3.DiscoveryRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.service.discovery.v3.DiscoveryRequest)
io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequestOrBuilder {
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);
}
// Construct using io.envoyproxy.envoy.service.discovery.v3.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) {
getNodeFieldBuilder();
getResourceLocatorsFieldBuilder();
getErrorDetailFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
versionInfo_ = "";
node_ = null;
if (nodeBuilder_ != null) {
nodeBuilder_.dispose();
nodeBuilder_ = null;
}
resourceNames_ =
com.google.protobuf.LazyStringArrayList.emptyList();
if (resourceLocatorsBuilder_ == null) {
resourceLocators_ = java.util.Collections.emptyList();
} else {
resourceLocators_ = null;
resourceLocatorsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
typeUrl_ = "";
responseNonce_ = "";
errorDetail_ = null;
if (errorDetailBuilder_ != null) {
errorDetailBuilder_.dispose();
errorDetailBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.service.discovery.v3.DiscoveryProto.internal_static_envoy_service_discovery_v3_DiscoveryRequest_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest getDefaultInstanceForType() {
return io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest build() {
io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest buildPartial() {
io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest result = new io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest result) {
if (resourceLocatorsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
resourceLocators_ = java.util.Collections.unmodifiableList(resourceLocators_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.resourceLocators_ = resourceLocators_;
} else {
result.resourceLocators_ = resourceLocatorsBuilder_.build();
}
}
private void buildPartial0(io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.versionInfo_ = versionInfo_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.node_ = nodeBuilder_ == null
? node_
: nodeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
resourceNames_.makeImmutable();
result.resourceNames_ = resourceNames_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.typeUrl_ = typeUrl_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.responseNonce_ = responseNonce_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.errorDetail_ = errorDetailBuilder_ == null
? errorDetail_
: errorDetailBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest) {
return mergeFrom((io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest other) {
if (other == io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest.getDefaultInstance()) return this;
if (!other.getVersionInfo().isEmpty()) {
versionInfo_ = other.versionInfo_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasNode()) {
mergeNode(other.getNode());
}
if (!other.resourceNames_.isEmpty()) {
if (resourceNames_.isEmpty()) {
resourceNames_ = other.resourceNames_;
bitField0_ |= 0x00000004;
} else {
ensureResourceNamesIsMutable();
resourceNames_.addAll(other.resourceNames_);
}
onChanged();
}
if (resourceLocatorsBuilder_ == null) {
if (!other.resourceLocators_.isEmpty()) {
if (resourceLocators_.isEmpty()) {
resourceLocators_ = other.resourceLocators_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureResourceLocatorsIsMutable();
resourceLocators_.addAll(other.resourceLocators_);
}
onChanged();
}
} else {
if (!other.resourceLocators_.isEmpty()) {
if (resourceLocatorsBuilder_.isEmpty()) {
resourceLocatorsBuilder_.dispose();
resourceLocatorsBuilder_ = null;
resourceLocators_ = other.resourceLocators_;
bitField0_ = (bitField0_ & ~0x00000008);
resourceLocatorsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getResourceLocatorsFieldBuilder() : null;
} else {
resourceLocatorsBuilder_.addAllMessages(other.resourceLocators_);
}
}
}
if (!other.getTypeUrl().isEmpty()) {
typeUrl_ = other.typeUrl_;
bitField0_ |= 0x00000010;
onChanged();
}
if (!other.getResponseNonce().isEmpty()) {
responseNonce_ = other.responseNonce_;
bitField0_ |= 0x00000020;
onChanged();
}
if (other.hasErrorDetail()) {
mergeErrorDetail(other.getErrorDetail());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
versionInfo_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getNodeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
java.lang.String s = input.readStringRequireUtf8();
ensureResourceNamesIsMutable();
resourceNames_.add(s);
break;
} // case 26
case 34: {
typeUrl_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 34
case 42: {
responseNonce_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 42
case 50: {
input.readMessage(
getErrorDetailFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 50
case 58: {
io.envoyproxy.envoy.service.discovery.v3.ResourceLocator m =
input.readMessage(
io.envoyproxy.envoy.service.discovery.v3.ResourceLocator.parser(),
extensionRegistry);
if (resourceLocatorsBuilder_ == null) {
ensureResourceLocatorsIsMutable();
resourceLocators_.add(m);
} else {
resourceLocatorsBuilder_.addMessage(m);
}
break;
} // case 58
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object 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;
* @return The versionInfo.
*/
public java.lang.String getVersionInfo() {
java.lang.Object ref = versionInfo_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
versionInfo_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* 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;
bitField0_ |= 0x00000001;
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();
bitField0_ = (bitField0_ & ~0x00000001);
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;
bitField0_ |= 0x00000001;
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 ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The node making the request.
*
*
* .envoy.config.core.v3.Node node = 2;
* @return The node.
*/
public io.envoyproxy.envoy.config.core.v3.Node getNode() {
if (nodeBuilder_ == null) {
return node_ == null ? io.envoyproxy.envoy.config.core.v3.Node.getDefaultInstance() : node_;
} else {
return nodeBuilder_.getMessage();
}
}
/**
*
* The node making the request.
*
*
* .envoy.config.core.v3.Node node = 2;
*/
public Builder setNode(io.envoyproxy.envoy.config.core.v3.Node value) {
if (nodeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
node_ = value;
} else {
nodeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The node making the request.
*
*
* .envoy.config.core.v3.Node node = 2;
*/
public Builder setNode(
io.envoyproxy.envoy.config.core.v3.Node.Builder builderForValue) {
if (nodeBuilder_ == null) {
node_ = builderForValue.build();
} else {
nodeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The node making the request.
*
*
* .envoy.config.core.v3.Node node = 2;
*/
public Builder mergeNode(io.envoyproxy.envoy.config.core.v3.Node value) {
if (nodeBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
node_ != null &&
node_ != io.envoyproxy.envoy.config.core.v3.Node.getDefaultInstance()) {
getNodeBuilder().mergeFrom(value);
} else {
node_ = value;
}
} else {
nodeBuilder_.mergeFrom(value);
}
if (node_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* The node making the request.
*
*
* .envoy.config.core.v3.Node node = 2;
*/
public Builder clearNode() {
bitField0_ = (bitField0_ & ~0x00000002);
node_ = null;
if (nodeBuilder_ != null) {
nodeBuilder_.dispose();
nodeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The node making the request.
*
*
* .envoy.config.core.v3.Node node = 2;
*/
public io.envoyproxy.envoy.config.core.v3.Node.Builder getNodeBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getNodeFieldBuilder().getBuilder();
}
/**
*
* The node making the request.
*
*
* .envoy.config.core.v3.Node node = 2;
*/
public io.envoyproxy.envoy.config.core.v3.NodeOrBuilder getNodeOrBuilder() {
if (nodeBuilder_ != null) {
return nodeBuilder_.getMessageOrBuilder();
} else {
return node_ == null ?
io.envoyproxy.envoy.config.core.v3.Node.getDefaultInstance() : node_;
}
}
/**
*
* The node making the request.
*
*
* .envoy.config.core.v3.Node node = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.Node, io.envoyproxy.envoy.config.core.v3.Node.Builder, io.envoyproxy.envoy.config.core.v3.NodeOrBuilder>
getNodeFieldBuilder() {
if (nodeBuilder_ == null) {
nodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.core.v3.Node, io.envoyproxy.envoy.config.core.v3.Node.Builder, io.envoyproxy.envoy.config.core.v3.NodeOrBuilder>(
getNode(),
getParentForChildren(),
isClean());
node_ = null;
}
return nodeBuilder_;
}
private com.google.protobuf.LazyStringArrayList resourceNames_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureResourceNamesIsMutable() {
if (!resourceNames_.isModifiable()) {
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 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() {
resourceNames_.makeImmutable();
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);
}
/**
*
* 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);
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 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);
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 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_);
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 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 This builder for chaining.
*/
public Builder clearResourceNames() {
resourceNames_ =
com.google.protobuf.LazyStringArrayList.emptyList();
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 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);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.util.List resourceLocators_ =
java.util.Collections.emptyList();
private void ensureResourceLocatorsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
resourceLocators_ = new java.util.ArrayList(resourceLocators_);
bitField0_ |= 0x00000008;
}
}
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``.
*
*
* repeated .envoy.service.discovery.v3.ResourceLocator resource_locators = 7;
*/
public java.util.List getResourceLocatorsList() {
if (resourceLocatorsBuilder_ == null) {
return java.util.Collections.unmodifiableList(resourceLocators_);
} else {
return resourceLocatorsBuilder_.getMessageList();
}
}
/**
*
* [#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``.
*
*
* repeated .envoy.service.discovery.v3.ResourceLocator resource_locators = 7;
*/
public io.envoyproxy.envoy.service.discovery.v3.ResourceLocator getResourceLocators(int index) {
if (resourceLocatorsBuilder_ == null) {
return resourceLocators_.get(index);
} else {
return resourceLocatorsBuilder_.getMessage(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 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``.
*
*
* repeated .envoy.service.discovery.v3.ResourceLocator resource_locators = 7;
*/
public Builder setResourceLocators(
int index, io.envoyproxy.envoy.service.discovery.v3.ResourceLocator.Builder builderForValue) {
if (resourceLocatorsBuilder_ == null) {
ensureResourceLocatorsIsMutable();
resourceLocators_.set(index, builderForValue.build());
onChanged();
} else {
resourceLocatorsBuilder_.setMessage(index, builderForValue.build());
}
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(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``.
*
*
* repeated .envoy.service.discovery.v3.ResourceLocator resource_locators = 7;
*/
public Builder addResourceLocators(
io.envoyproxy.envoy.service.discovery.v3.ResourceLocator.Builder builderForValue) {
if (resourceLocatorsBuilder_ == null) {
ensureResourceLocatorsIsMutable();
resourceLocators_.add(builderForValue.build());
onChanged();
} else {
resourceLocatorsBuilder_.addMessage(builderForValue.build());
}
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.Builder builderForValue) {
if (resourceLocatorsBuilder_ == null) {
ensureResourceLocatorsIsMutable();
resourceLocators_.add(index, builderForValue.build());
onChanged();
} else {
resourceLocatorsBuilder_.addMessage(index, builderForValue.build());
}
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 addAllResourceLocators(
java.lang.Iterable extends io.envoyproxy.envoy.service.discovery.v3.ResourceLocator> values) {
if (resourceLocatorsBuilder_ == null) {
ensureResourceLocatorsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, resourceLocators_);
onChanged();
} else {
resourceLocatorsBuilder_.addAllMessages(values);
}
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 clearResourceLocators() {
if (resourceLocatorsBuilder_ == null) {
resourceLocators_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
resourceLocatorsBuilder_.clear();
}
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 removeResourceLocators(int index) {
if (resourceLocatorsBuilder_ == null) {
ensureResourceLocatorsIsMutable();
resourceLocators_.remove(index);
onChanged();
} else {
resourceLocatorsBuilder_.remove(index);
}
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 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``.
*
*
* repeated .envoy.service.discovery.v3.ResourceLocator resource_locators = 7;
*/
public java.util.List extends io.envoyproxy.envoy.service.discovery.v3.ResourceLocatorOrBuilder>
getResourceLocatorsOrBuilderList() {
if (resourceLocatorsBuilder_ != null) {
return resourceLocatorsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(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``.
*
*
* repeated .envoy.service.discovery.v3.ResourceLocator resource_locators = 7;
*/
public io.envoyproxy.envoy.service.discovery.v3.ResourceLocator.Builder addResourceLocatorsBuilder() {
return getResourceLocatorsFieldBuilder().addBuilder(
io.envoyproxy.envoy.service.discovery.v3.ResourceLocator.getDefaultInstance());
}
/**
*
* [#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 addResourceLocatorsBuilder(
int index) {
return getResourceLocatorsFieldBuilder().addBuilder(
index, io.envoyproxy.envoy.service.discovery.v3.ResourceLocator.getDefaultInstance());
}
/**
*
* [#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 java.util.List
getResourceLocatorsBuilderList() {
return getResourceLocatorsFieldBuilder().getBuilderList();
}
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>
getResourceLocatorsFieldBuilder() {
if (resourceLocatorsBuilder_ == null) {
resourceLocatorsBuilder_ = new 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>(
resourceLocators_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
resourceLocators_ = null;
}
return resourceLocatorsBuilder_;
}
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;
* @return The typeUrl.
*/
public java.lang.String getTypeUrl() {
java.lang.Object ref = typeUrl_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
typeUrl_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Type 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;
bitField0_ |= 0x00000010;
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();
bitField0_ = (bitField0_ & ~0x00000010);
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;
bitField0_ |= 0x00000010;
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).
*
*
* string response_nonce = 5;
* @return The responseNonce.
*/
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 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;
bitField0_ |= 0x00000020;
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();
bitField0_ = (bitField0_ & ~0x00000020);
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;
bitField0_ |= 0x00000020;
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 ((bitField0_ & 0x00000040) != 0);
}
/**
*
* 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 The errorDetail.
*/
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_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;
} else {
errorDetailBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
onChanged();
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.
*
*
* .google.rpc.Status error_detail = 6;
*/
public Builder setErrorDetail(
com.google.rpc.Status.Builder builderForValue) {
if (errorDetailBuilder_ == null) {
errorDetail_ = builderForValue.build();
} else {
errorDetailBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
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.
*
*
* .google.rpc.Status error_detail = 6;
*/
public Builder mergeErrorDetail(com.google.rpc.Status value) {
if (errorDetailBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0) &&
errorDetail_ != null &&
errorDetail_ != com.google.rpc.Status.getDefaultInstance()) {
getErrorDetailBuilder().mergeFrom(value);
} else {
errorDetail_ = value;
}
} else {
errorDetailBuilder_.mergeFrom(value);
}
if (errorDetail_ != null) {
bitField0_ |= 0x00000040;
onChanged();
}
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.
*
*
* .google.rpc.Status error_detail = 6;
*/
public Builder clearErrorDetail() {
bitField0_ = (bitField0_ & ~0x00000040);
errorDetail_ = null;
if (errorDetailBuilder_ != null) {
errorDetailBuilder_.dispose();
errorDetailBuilder_ = null;
}
onChanged();
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.
*
*
* .google.rpc.Status error_detail = 6;
*/
public com.google.rpc.Status.Builder getErrorDetailBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getErrorDetailFieldBuilder().getBuilder();
}
/**
*
* 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 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_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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy