Class DiscoveryResponse
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessage
-
- io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse
-
- All Implemented Interfaces:
com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,DiscoveryResponseOrBuilder
,java.io.Serializable
public final class DiscoveryResponse extends com.google.protobuf.GeneratedMessage implements DiscoveryResponseOrBuilder
[#next-free-field: 7]
Protobuf typeenvoy.service.discovery.v3.DiscoveryResponse
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DiscoveryResponse.Builder
[#next-free-field: 7]-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends java.lang.Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description private int
bitField0_
private boolean
canary_
static int
CANARY_FIELD_NUMBER
static int
CONTROL_PLANE_FIELD_NUMBER
private ControlPlane
controlPlane_
private static DiscoveryResponse
DEFAULT_INSTANCE
private byte
memoizedIsInitialized
private java.lang.Object
nonce_
static int
NONCE_FIELD_NUMBER
private static com.google.protobuf.Parser<DiscoveryResponse>
PARSER
private java.util.List<com.google.protobuf.Any>
resources_
static int
RESOURCES_FIELD_NUMBER
private static long
serialVersionUID
static int
TYPE_URL_FIELD_NUMBER
private java.lang.Object
typeUrl_
static int
VERSION_INFO_FIELD_NUMBER
private java.lang.Object
versionInfo_
-
Constructor Summary
Constructors Modifier Constructor Description private
DiscoveryResponse()
private
DiscoveryResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
boolean
getCanary()
[#not-implemented-hide:] Canary is used to support two Envoy command line flags: * --terminate-on-canary-transition-failure.ControlPlane
getControlPlane()
The control plane instance that sent the response.ControlPlaneOrBuilder
getControlPlaneOrBuilder()
The control plane instance that sent the response.static DiscoveryResponse
getDefaultInstance()
DiscoveryResponse
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
java.lang.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.java.util.List<com.google.protobuf.Any>
getResourcesList()
The response resources.com.google.protobuf.AnyOrBuilder
getResourcesOrBuilder(int index)
The response resources.java.util.List<? extends com.google.protobuf.AnyOrBuilder>
getResourcesOrBuilderList()
The response resources.int
getSerializedSize()
java.lang.String
getTypeUrl()
Type URL for resources.com.google.protobuf.ByteString
getTypeUrlBytes()
Type URL for resources.java.lang.String
getVersionInfo()
The version of the response data.com.google.protobuf.ByteString
getVersionInfoBytes()
The version of the response data.boolean
hasControlPlane()
The control plane instance that sent the response.int
hashCode()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static DiscoveryResponse.Builder
newBuilder()
static DiscoveryResponse.Builder
newBuilder(DiscoveryResponse prototype)
DiscoveryResponse.Builder
newBuilderForType()
protected DiscoveryResponse.Builder
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
static DiscoveryResponse
parseDelimitedFrom(java.io.InputStream input)
static DiscoveryResponse
parseDelimitedFrom(java.io.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(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(java.io.InputStream input)
static DiscoveryResponse
parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static DiscoveryResponse
parseFrom(java.nio.ByteBuffer data)
static DiscoveryResponse
parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<DiscoveryResponse>
parser()
DiscoveryResponse.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
bitField0_
private int bitField0_
-
VERSION_INFO_FIELD_NUMBER
public static final int VERSION_INFO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
versionInfo_
private volatile java.lang.Object versionInfo_
-
RESOURCES_FIELD_NUMBER
public static final int RESOURCES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
resources_
private java.util.List<com.google.protobuf.Any> resources_
-
CANARY_FIELD_NUMBER
public static final int CANARY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
canary_
private boolean canary_
-
TYPE_URL_FIELD_NUMBER
public static final int TYPE_URL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
typeUrl_
private volatile java.lang.Object typeUrl_
-
NONCE_FIELD_NUMBER
public static final int NONCE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
nonce_
private volatile java.lang.Object nonce_
-
CONTROL_PLANE_FIELD_NUMBER
public static final int CONTROL_PLANE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
controlPlane_
private ControlPlane controlPlane_
-
memoizedIsInitialized
private byte memoizedIsInitialized
-
DEFAULT_INSTANCE
private static final DiscoveryResponse DEFAULT_INSTANCE
-
PARSER
private static final com.google.protobuf.Parser<DiscoveryResponse> PARSER
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage
-
getVersionInfo
public java.lang.String getVersionInfo()
The version of the response data.
string version_info = 1;
- Specified by:
getVersionInfo
in interfaceDiscoveryResponseOrBuilder
- Returns:
- The versionInfo.
-
getVersionInfoBytes
public com.google.protobuf.ByteString getVersionInfoBytes()
The version of the response data.
string version_info = 1;
- Specified by:
getVersionInfoBytes
in interfaceDiscoveryResponseOrBuilder
- Returns:
- The bytes for versionInfo.
-
getResourcesList
public java.util.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;
- Specified by:
getResourcesList
in interfaceDiscoveryResponseOrBuilder
-
getResourcesOrBuilderList
public java.util.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;
- Specified by:
getResourcesOrBuilderList
in interfaceDiscoveryResponseOrBuilder
-
getResourcesCount
public int getResourcesCount()
The response resources. These resources are typed and depend on the API being called.
repeated .google.protobuf.Any resources = 2;
- Specified by:
getResourcesCount
in interfaceDiscoveryResponseOrBuilder
-
getResources
public 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;
- Specified by:
getResources
in interfaceDiscoveryResponseOrBuilder
-
getResourcesOrBuilder
public 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;
- Specified by:
getResourcesOrBuilder
in interfaceDiscoveryResponseOrBuilder
-
getCanary
public 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;
- Specified by:
getCanary
in interfaceDiscoveryResponseOrBuilder
- Returns:
- The canary.
-
getTypeUrl
public java.lang.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;
- Specified by:
getTypeUrl
in interfaceDiscoveryResponseOrBuilder
- Returns:
- The typeUrl.
-
getTypeUrlBytes
public 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;
- Specified by:
getTypeUrlBytes
in interfaceDiscoveryResponseOrBuilder
- Returns:
- The bytes for typeUrl.
-
getNonce
public java.lang.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;
- Specified by:
getNonce
in interfaceDiscoveryResponseOrBuilder
- Returns:
- The nonce.
-
getNonceBytes
public 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;
- Specified by:
getNonceBytes
in interfaceDiscoveryResponseOrBuilder
- Returns:
- The bytes for nonce.
-
hasControlPlane
public boolean hasControlPlane()
The control plane instance that sent the response.
.envoy.config.core.v3.ControlPlane control_plane = 6;
- Specified by:
hasControlPlane
in interfaceDiscoveryResponseOrBuilder
- Returns:
- Whether the controlPlane field is set.
-
getControlPlane
public ControlPlane getControlPlane()
The control plane instance that sent the response.
.envoy.config.core.v3.ControlPlane control_plane = 6;
- Specified by:
getControlPlane
in interfaceDiscoveryResponseOrBuilder
- Returns:
- The controlPlane.
-
getControlPlaneOrBuilder
public ControlPlaneOrBuilder getControlPlaneOrBuilder()
The control plane instance that sent the response.
.envoy.config.core.v3.ControlPlane control_plane = 6;
- Specified by:
getControlPlaneOrBuilder
in interfaceDiscoveryResponseOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessage
- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessage
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static DiscoveryResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DiscoveryResponse parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DiscoveryResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DiscoveryResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DiscoveryResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DiscoveryResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DiscoveryResponse parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DiscoveryResponse parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static DiscoveryResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static DiscoveryResponse parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DiscoveryResponse parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DiscoveryResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public DiscoveryResponse.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static DiscoveryResponse.Builder newBuilder()
-
newBuilder
public static DiscoveryResponse.Builder newBuilder(DiscoveryResponse prototype)
-
toBuilder
public DiscoveryResponse.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected DiscoveryResponse.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
- Overrides:
newBuilderForType
in classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
public static DiscoveryResponse getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<DiscoveryResponse> parser()
-
getParserForType
public com.google.protobuf.Parser<DiscoveryResponse> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
public DiscoveryResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-