public final class DiscoveryRequest extends com.google.protobuf.GeneratedMessageV3 implements DiscoveryRequestOrBuilder
A DiscoveryRequest requests a set of versioned resources of the same type for a given Envoy node on some API. [#next-free-field: 7]Protobuf type
envoy.api.v2.DiscoveryRequest| Modifier and Type | Class and Description |
|---|---|
static class |
DiscoveryRequest.Builder
A DiscoveryRequest requests a set of versioned resources of the same type for
a given Envoy node on some API.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ERROR_DETAIL_FIELD_NUMBER |
static int |
NODE_FIELD_NUMBER |
static int |
RESOURCE_NAMES_FIELD_NUMBER |
static int |
RESPONSE_NONCE_FIELD_NUMBER |
static int |
TYPE_URL_FIELD_NUMBER |
static int |
VERSION_INFO_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static DiscoveryRequest |
getDefaultInstance() |
DiscoveryRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Status |
getErrorDetail()
This is populated when the previous :ref:`DiscoveryResponse <envoy_api_msg_DiscoveryResponse>`
failed to update configuration.
|
StatusOrBuilder |
getErrorDetailOrBuilder()
This is populated when the previous :ref:`DiscoveryResponse <envoy_api_msg_DiscoveryResponse>`
failed to update configuration.
|
Node |
getNode()
The node making the request.
|
NodeOrBuilder |
getNodeOrBuilder()
The node making the request.
|
com.google.protobuf.Parser<DiscoveryRequest> |
getParserForType() |
String |
getResourceNames(int index)
List of resources to subscribe to, e.g. list of cluster names or a route
configuration name.
|
com.google.protobuf.ByteString |
getResourceNamesBytes(int index)
List of resources to subscribe to, e.g. list of cluster names or a route
configuration name.
|
int |
getResourceNamesCount()
List of resources to subscribe to, e.g. list of cluster names or a route
configuration name.
|
com.google.protobuf.ProtocolStringList |
getResourceNamesList()
List of resources to subscribe to, e.g. list of cluster names or a route
configuration name.
|
String |
getResponseNonce()
nonce corresponding to DiscoveryResponse being ACK/NACKed.
|
com.google.protobuf.ByteString |
getResponseNonceBytes()
nonce corresponding to DiscoveryResponse being ACK/NACKed.
|
int |
getSerializedSize() |
String |
getTypeUrl()
Type of the resource that is being requested, e.g.
|
com.google.protobuf.ByteString |
getTypeUrlBytes()
Type of the resource that is being requested, e.g.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
String |
getVersionInfo()
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.
|
com.google.protobuf.ByteString |
getVersionInfoBytes()
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.
|
boolean |
hasErrorDetail()
This is populated when the previous :ref:`DiscoveryResponse <envoy_api_msg_DiscoveryResponse>`
failed to update configuration.
|
int |
hashCode() |
boolean |
hasNode()
The node making the request.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static DiscoveryRequest.Builder |
newBuilder() |
static DiscoveryRequest.Builder |
newBuilder(DiscoveryRequest prototype) |
DiscoveryRequest.Builder |
newBuilderForType() |
protected DiscoveryRequest.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static DiscoveryRequest |
parseDelimitedFrom(InputStream input) |
static DiscoveryRequest |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DiscoveryRequest |
parseFrom(byte[] data) |
static DiscoveryRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DiscoveryRequest |
parseFrom(ByteBuffer data) |
static DiscoveryRequest |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DiscoveryRequest |
parseFrom(com.google.protobuf.ByteString data) |
static DiscoveryRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DiscoveryRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static DiscoveryRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DiscoveryRequest |
parseFrom(InputStream input) |
static DiscoveryRequest |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<DiscoveryRequest> |
parser() |
DiscoveryRequest.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int VERSION_INFO_FIELD_NUMBER
public static final int NODE_FIELD_NUMBER
public static final int RESOURCE_NAMES_FIELD_NUMBER
public static final int TYPE_URL_FIELD_NUMBER
public static final int RESPONSE_NONCE_FIELD_NUMBER
public static final int ERROR_DETAIL_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getVersionInfo()
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;getVersionInfo in interface DiscoveryRequestOrBuilderpublic com.google.protobuf.ByteString getVersionInfoBytes()
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;getVersionInfoBytes in interface DiscoveryRequestOrBuilderpublic boolean hasNode()
The node making the request.
.envoy.api.v2.core.Node node = 2;hasNode in interface DiscoveryRequestOrBuilderpublic Node getNode()
The node making the request.
.envoy.api.v2.core.Node node = 2;getNode in interface DiscoveryRequestOrBuilderpublic NodeOrBuilder getNodeOrBuilder()
The node making the request.
.envoy.api.v2.core.Node node = 2;getNodeOrBuilder in interface DiscoveryRequestOrBuilderpublic com.google.protobuf.ProtocolStringList getResourceNamesList()
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;getResourceNamesList in interface DiscoveryRequestOrBuilderpublic int getResourceNamesCount()
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;getResourceNamesCount in interface DiscoveryRequestOrBuilderpublic String getResourceNames(int 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;getResourceNames in interface DiscoveryRequestOrBuilderpublic com.google.protobuf.ByteString getResourceNamesBytes(int 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;getResourceNamesBytes in interface DiscoveryRequestOrBuilderpublic String getTypeUrl()
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;getTypeUrl in interface DiscoveryRequestOrBuilderpublic com.google.protobuf.ByteString getTypeUrlBytes()
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;getTypeUrlBytes in interface DiscoveryRequestOrBuilderpublic String getResponseNonce()
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;getResponseNonce in interface DiscoveryRequestOrBuilderpublic com.google.protobuf.ByteString getResponseNonceBytes()
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;getResponseNonceBytes in interface DiscoveryRequestOrBuilderpublic boolean hasErrorDetail()
This is populated when the previous :ref:`DiscoveryResponse <envoy_api_msg_DiscoveryResponse>` failed to update configuration. The *message* field in *error_details* provides the Envoy internal exception related to the failure. It is only intended for consumption during manual debugging, the string provided is not guaranteed to be stable across Envoy versions.
.google.rpc.Status error_detail = 6;hasErrorDetail in interface DiscoveryRequestOrBuilderpublic Status getErrorDetail()
This is populated when the previous :ref:`DiscoveryResponse <envoy_api_msg_DiscoveryResponse>` failed to update configuration. The *message* field in *error_details* provides the Envoy internal exception related to the failure. It is only intended for consumption during manual debugging, the string provided is not guaranteed to be stable across Envoy versions.
.google.rpc.Status error_detail = 6;getErrorDetail in interface DiscoveryRequestOrBuilderpublic StatusOrBuilder getErrorDetailOrBuilder()
This is populated when the previous :ref:`DiscoveryResponse <envoy_api_msg_DiscoveryResponse>` failed to update configuration. The *message* field in *error_details* provides the Envoy internal exception related to the failure. It is only intended for consumption during manual debugging, the string provided is not guaranteed to be stable across Envoy versions.
.google.rpc.Status error_detail = 6;getErrorDetailOrBuilder in interface DiscoveryRequestOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static DiscoveryRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DiscoveryRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DiscoveryRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DiscoveryRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DiscoveryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DiscoveryRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DiscoveryRequest parseFrom(InputStream input) throws IOException
IOExceptionpublic static DiscoveryRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DiscoveryRequest parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static DiscoveryRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DiscoveryRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static DiscoveryRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic DiscoveryRequest.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static DiscoveryRequest.Builder newBuilder()
public static DiscoveryRequest.Builder newBuilder(DiscoveryRequest prototype)
public DiscoveryRequest.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected DiscoveryRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static DiscoveryRequest getDefaultInstance()
public static com.google.protobuf.Parser<DiscoveryRequest> parser()
public com.google.protobuf.Parser<DiscoveryRequest> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public DiscoveryRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.