public final class DiscoveryResponse extends com.google.protobuf.GeneratedMessageV3 implements DiscoveryResponseOrBuilder
[#next-free-field: 7]Protobuf type
envoy.api.v2.DiscoveryResponse| Modifier and Type | Class and Description |
|---|---|
static class |
DiscoveryResponse.Builder
[#next-free-field: 7]
Protobuf type
envoy.api.v2.DiscoveryResponse |
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 |
CANARY_FIELD_NUMBER |
static int |
CONTROL_PLANE_FIELD_NUMBER |
static int |
NONCE_FIELD_NUMBER |
static int |
RESOURCES_FIELD_NUMBER |
static int |
TYPE_URL_FIELD_NUMBER |
static int |
VERSION_INFO_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
getCanary()
[#not-implemented-hide:]
Canary is used to support two Envoy command line flags:
* --terminate-on-canary-transition-failure.
|
ControlPlane |
getControlPlane()
[#not-implemented-hide:]
The control plane instance that sent the response.
|
ControlPlaneOrBuilder |
getControlPlaneOrBuilder()
[#not-implemented-hide:]
The control plane instance that sent the response.
|
static DiscoveryResponse |
getDefaultInstance() |
DiscoveryResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getNonce()
For gRPC based subscriptions, the nonce provides a way to explicitly ack a
specific DiscoveryResponse in a following DiscoveryRequest.
|
com.google.protobuf.ByteString |
getNonceBytes()
For gRPC based subscriptions, the nonce provides a way to explicitly ack a
specific DiscoveryResponse in a following DiscoveryRequest.
|
com.google.protobuf.Parser<DiscoveryResponse> |
getParserForType() |
com.google.protobuf.Any |
getResources(int index)
The response resources.
|
int |
getResourcesCount()
The response resources.
|
List<com.google.protobuf.Any> |
getResourcesList()
The response resources.
|
com.google.protobuf.AnyOrBuilder |
getResourcesOrBuilder(int index)
The response resources.
|
List<? extends com.google.protobuf.AnyOrBuilder> |
getResourcesOrBuilderList()
The response resources.
|
int |
getSerializedSize() |
String |
getTypeUrl()
Type URL for resources.
|
com.google.protobuf.ByteString |
getTypeUrlBytes()
Type URL for resources.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
String |
getVersionInfo()
The version of the response data.
|
com.google.protobuf.ByteString |
getVersionInfoBytes()
The version of the response data.
|
boolean |
hasControlPlane()
[#not-implemented-hide:]
The control plane instance that sent the response.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static DiscoveryResponse.Builder |
newBuilder() |
static DiscoveryResponse.Builder |
newBuilder(DiscoveryResponse prototype) |
DiscoveryResponse.Builder |
newBuilderForType() |
protected DiscoveryResponse.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static DiscoveryResponse |
parseDelimitedFrom(InputStream input) |
static DiscoveryResponse |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DiscoveryResponse |
parseFrom(byte[] data) |
static DiscoveryResponse |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DiscoveryResponse |
parseFrom(ByteBuffer data) |
static DiscoveryResponse |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DiscoveryResponse |
parseFrom(com.google.protobuf.ByteString data) |
static DiscoveryResponse |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DiscoveryResponse |
parseFrom(com.google.protobuf.CodedInputStream input) |
static DiscoveryResponse |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DiscoveryResponse |
parseFrom(InputStream input) |
static DiscoveryResponse |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<DiscoveryResponse> |
parser() |
DiscoveryResponse.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 RESOURCES_FIELD_NUMBER
public static final int CANARY_FIELD_NUMBER
public static final int TYPE_URL_FIELD_NUMBER
public static final int NONCE_FIELD_NUMBER
public static final int CONTROL_PLANE_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 of the response data.
string version_info = 1;getVersionInfo in interface DiscoveryResponseOrBuilderpublic com.google.protobuf.ByteString getVersionInfoBytes()
The version of the response data.
string version_info = 1;getVersionInfoBytes in interface DiscoveryResponseOrBuilderpublic List<com.google.protobuf.Any> getResourcesList()
The response resources. These resources are typed and depend on the API being called.
repeated .google.protobuf.Any resources = 2;getResourcesList in interface DiscoveryResponseOrBuilderpublic List<? extends com.google.protobuf.AnyOrBuilder> getResourcesOrBuilderList()
The response resources. These resources are typed and depend on the API being called.
repeated .google.protobuf.Any resources = 2;getResourcesOrBuilderList in interface DiscoveryResponseOrBuilderpublic int getResourcesCount()
The response resources. These resources are typed and depend on the API being called.
repeated .google.protobuf.Any resources = 2;getResourcesCount in interface DiscoveryResponseOrBuilderpublic com.google.protobuf.Any getResources(int index)
The response resources. These resources are typed and depend on the API being called.
repeated .google.protobuf.Any resources = 2;getResources in interface DiscoveryResponseOrBuilderpublic com.google.protobuf.AnyOrBuilder getResourcesOrBuilder(int index)
The response resources. These resources are typed and depend on the API being called.
repeated .google.protobuf.Any resources = 2;getResourcesOrBuilder in interface DiscoveryResponseOrBuilderpublic boolean getCanary()
[#not-implemented-hide:] Canary is used to support two Envoy command line flags: * --terminate-on-canary-transition-failure. When set, Envoy is able to terminate if it detects that configuration is stuck at canary. Consider this example sequence of updates: - Management server applies a canary config successfully. - Management server rolls back to a production config. - Envoy rejects the new production config. Since there is no sensible way to continue receiving configuration updates, Envoy will then terminate and apply production config from a clean slate. * --dry-run-canary. When set, a canary response will never be applied, only validated via a dry run.
bool canary = 3;getCanary in interface DiscoveryResponseOrBuilderpublic String getTypeUrl()
Type URL for resources. Identifies the xDS API when muxing over ADS. Must be consistent with the type_url in the 'resources' repeated Any (if non-empty).
string type_url = 4;getTypeUrl in interface DiscoveryResponseOrBuilderpublic com.google.protobuf.ByteString getTypeUrlBytes()
Type URL for resources. Identifies the xDS API when muxing over ADS. Must be consistent with the type_url in the 'resources' repeated Any (if non-empty).
string type_url = 4;getTypeUrlBytes in interface DiscoveryResponseOrBuilderpublic String getNonce()
For gRPC based subscriptions, the nonce provides a way to explicitly ack a specific DiscoveryResponse in a following DiscoveryRequest. Additional messages may have been sent by Envoy to the management server for the previous version on the stream prior to this DiscoveryResponse, that were unprocessed at response send time. The nonce allows the management server to ignore any further DiscoveryRequests for the previous version until a DiscoveryRequest bearing the nonce. The nonce is optional and is not required for non-stream based xDS implementations.
string nonce = 5;getNonce in interface DiscoveryResponseOrBuilderpublic com.google.protobuf.ByteString getNonceBytes()
For gRPC based subscriptions, the nonce provides a way to explicitly ack a specific DiscoveryResponse in a following DiscoveryRequest. Additional messages may have been sent by Envoy to the management server for the previous version on the stream prior to this DiscoveryResponse, that were unprocessed at response send time. The nonce allows the management server to ignore any further DiscoveryRequests for the previous version until a DiscoveryRequest bearing the nonce. The nonce is optional and is not required for non-stream based xDS implementations.
string nonce = 5;getNonceBytes in interface DiscoveryResponseOrBuilderpublic boolean hasControlPlane()
[#not-implemented-hide:] The control plane instance that sent the response.
.envoy.api.v2.core.ControlPlane control_plane = 6;hasControlPlane in interface DiscoveryResponseOrBuilderpublic ControlPlane getControlPlane()
[#not-implemented-hide:] The control plane instance that sent the response.
.envoy.api.v2.core.ControlPlane control_plane = 6;getControlPlane in interface DiscoveryResponseOrBuilderpublic ControlPlaneOrBuilder getControlPlaneOrBuilder()
[#not-implemented-hide:] The control plane instance that sent the response.
.envoy.api.v2.core.ControlPlane control_plane = 6;getControlPlaneOrBuilder in interface DiscoveryResponseOrBuilderpublic 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 DiscoveryResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DiscoveryResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DiscoveryResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DiscoveryResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DiscoveryResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DiscoveryResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DiscoveryResponse parseFrom(InputStream input) throws IOException
IOExceptionpublic static DiscoveryResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DiscoveryResponse parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static DiscoveryResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DiscoveryResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static DiscoveryResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic DiscoveryResponse.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static DiscoveryResponse.Builder newBuilder()
public static DiscoveryResponse.Builder newBuilder(DiscoveryResponse prototype)
public DiscoveryResponse.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected DiscoveryResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static DiscoveryResponse getDefaultInstance()
public static com.google.protobuf.Parser<DiscoveryResponse> parser()
public com.google.protobuf.Parser<DiscoveryResponse> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public DiscoveryResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.