public static final class Discovery.DiscoveryResponse extends com.google.protobuf.GeneratedMessageV3 implements Discovery.DiscoveryResponseOrBuilder
envoy.api.v2.DiscoveryResponse| Modifier and Type | Class and Description |
|---|---|
static class |
Discovery.DiscoveryResponse.Builder
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| Modifier and Type | Field and Description |
|---|---|
static int |
CANARY_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.
|
static Discovery.DiscoveryResponse |
getDefaultInstance() |
Discovery.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<Discovery.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.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Discovery.DiscoveryResponse.Builder |
newBuilder() |
static Discovery.DiscoveryResponse.Builder |
newBuilder(Discovery.DiscoveryResponse prototype) |
Discovery.DiscoveryResponse.Builder |
newBuilderForType() |
protected Discovery.DiscoveryResponse.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Discovery.DiscoveryResponse |
parseDelimitedFrom(InputStream input) |
static Discovery.DiscoveryResponse |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Discovery.DiscoveryResponse |
parseFrom(byte[] data) |
static Discovery.DiscoveryResponse |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Discovery.DiscoveryResponse |
parseFrom(ByteBuffer data) |
static Discovery.DiscoveryResponse |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Discovery.DiscoveryResponse |
parseFrom(com.google.protobuf.ByteString data) |
static Discovery.DiscoveryResponse |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Discovery.DiscoveryResponse |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Discovery.DiscoveryResponse |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Discovery.DiscoveryResponse |
parseFrom(InputStream input) |
static Discovery.DiscoveryResponse |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Discovery.DiscoveryResponse> |
parser() |
Discovery.DiscoveryResponse.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, 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 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 Discovery.DiscoveryResponseOrBuilderpublic com.google.protobuf.ByteString getVersionInfoBytes()
The version of the response data.
string version_info = 1;getVersionInfoBytes in interface Discovery.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 [(.gogoproto.nullable) = false];getResourcesList in interface Discovery.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 [(.gogoproto.nullable) = false];getResourcesOrBuilderList in interface Discovery.DiscoveryResponseOrBuilderpublic int getResourcesCount()
The response resources. These resources are typed and depend on the API being called.
repeated .google.protobuf.Any resources = 2 [(.gogoproto.nullable) = false];getResourcesCount in interface Discovery.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 [(.gogoproto.nullable) = false];getResources in interface Discovery.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 [(.gogoproto.nullable) = false];getResourcesOrBuilder in interface Discovery.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 Discovery.DiscoveryResponseOrBuilderpublic String getTypeUrl()
Type URL for resources. This must be consistent with the type_url in the Any messages for resources if resources is non-empty. This effectively identifies the xDS API when muxing over ADS.
string type_url = 4;getTypeUrl in interface Discovery.DiscoveryResponseOrBuilderpublic com.google.protobuf.ByteString getTypeUrlBytes()
Type URL for resources. This must be consistent with the type_url in the Any messages for resources if resources is non-empty. This effectively identifies the xDS API when muxing over ADS.
string type_url = 4;getTypeUrlBytes in interface Discovery.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 Discovery.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 Discovery.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 Discovery.DiscoveryResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Discovery.DiscoveryResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Discovery.DiscoveryResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Discovery.DiscoveryResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Discovery.DiscoveryResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Discovery.DiscoveryResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Discovery.DiscoveryResponse parseFrom(InputStream input) throws IOException
IOExceptionpublic static Discovery.DiscoveryResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Discovery.DiscoveryResponse parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Discovery.DiscoveryResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Discovery.DiscoveryResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Discovery.DiscoveryResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Discovery.DiscoveryResponse.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Discovery.DiscoveryResponse.Builder newBuilder()
public static Discovery.DiscoveryResponse.Builder newBuilder(Discovery.DiscoveryResponse prototype)
public Discovery.DiscoveryResponse.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Discovery.DiscoveryResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Discovery.DiscoveryResponse getDefaultInstance()
public static com.google.protobuf.Parser<Discovery.DiscoveryResponse> parser()
public com.google.protobuf.Parser<Discovery.DiscoveryResponse> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Discovery.DiscoveryResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018 The Envoy Project. All rights reserved.