Package io.envoyproxy.envoy.api.v2
Class DiscoveryResponse
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.envoyproxy.envoy.api.v2.DiscoveryResponse
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,DiscoveryResponseOrBuilder,Serializable
public final class DiscoveryResponse extends com.google.protobuf.GeneratedMessageV3 implements DiscoveryResponseOrBuilder
[#next-free-field: 7]
Protobuf typeenvoy.api.v2.DiscoveryResponse- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDiscoveryResponse.Builder[#next-free-field: 7]-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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
-
-
Field Summary
Fields Modifier and Type Field Description static intCANARY_FIELD_NUMBERstatic intCONTROL_PLANE_FIELD_NUMBERstatic intNONCE_FIELD_NUMBERstatic intRESOURCES_FIELD_NUMBERstatic intTYPE_URL_FIELD_NUMBERstatic intVERSION_INFO_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)booleangetCanary()[#not-implemented-hide:] Canary is used to support two Envoy command line flags: * --terminate-on-canary-transition-failure.ControlPlanegetControlPlane()[#not-implemented-hide:] The control plane instance that sent the response.ControlPlaneOrBuildergetControlPlaneOrBuilder()[#not-implemented-hide:] The control plane instance that sent the response.static DiscoveryResponsegetDefaultInstance()DiscoveryResponsegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetNonce()For gRPC based subscriptions, the nonce provides a way to explicitly ack a specific DiscoveryResponse in a following DiscoveryRequest.com.google.protobuf.ByteStringgetNonceBytes()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.AnygetResources(int index)The response resources.intgetResourcesCount()The response resources.List<com.google.protobuf.Any>getResourcesList()The response resources.com.google.protobuf.AnyOrBuildergetResourcesOrBuilder(int index)The response resources.List<? extends com.google.protobuf.AnyOrBuilder>getResourcesOrBuilderList()The response resources.intgetSerializedSize()StringgetTypeUrl()Type URL for resources.com.google.protobuf.ByteStringgetTypeUrlBytes()Type URL for resources.com.google.protobuf.UnknownFieldSetgetUnknownFields()StringgetVersionInfo()The version of the response data.com.google.protobuf.ByteStringgetVersionInfoBytes()The version of the response data.booleanhasControlPlane()[#not-implemented-hide:] The control plane instance that sent the response.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static DiscoveryResponse.BuildernewBuilder()static DiscoveryResponse.BuildernewBuilder(DiscoveryResponse prototype)DiscoveryResponse.BuildernewBuilderForType()protected DiscoveryResponse.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static DiscoveryResponseparseDelimitedFrom(InputStream input)static DiscoveryResponseparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DiscoveryResponseparseFrom(byte[] data)static DiscoveryResponseparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DiscoveryResponseparseFrom(com.google.protobuf.ByteString data)static DiscoveryResponseparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DiscoveryResponseparseFrom(com.google.protobuf.CodedInputStream input)static DiscoveryResponseparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DiscoveryResponseparseFrom(InputStream input)static DiscoveryResponseparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DiscoveryResponseparseFrom(ByteBuffer data)static DiscoveryResponseparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<DiscoveryResponse>parser()DiscoveryResponse.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
VERSION_INFO_FIELD_NUMBER
public static final int VERSION_INFO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESOURCES_FIELD_NUMBER
public static final int RESOURCES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CANARY_FIELD_NUMBER
public static final int CANARY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TYPE_URL_FIELD_NUMBER
public static final int TYPE_URL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NONCE_FIELD_NUMBER
public static final int NONCE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONTROL_PLANE_FIELD_NUMBER
public static final int CONTROL_PLANE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getVersionInfo
public String getVersionInfo()
The version of the response data.
string version_info = 1;- Specified by:
getVersionInfoin interfaceDiscoveryResponseOrBuilder- Returns:
- The versionInfo.
-
getVersionInfoBytes
public com.google.protobuf.ByteString getVersionInfoBytes()
The version of the response data.
string version_info = 1;- Specified by:
getVersionInfoBytesin interfaceDiscoveryResponseOrBuilder- Returns:
- The bytes for versionInfo.
-
getResourcesList
public 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:
getResourcesListin interfaceDiscoveryResponseOrBuilder
-
getResourcesOrBuilderList
public 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:
getResourcesOrBuilderListin 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:
getResourcesCountin 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:
getResourcesin 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:
getResourcesOrBuilderin 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:
getCanaryin interfaceDiscoveryResponseOrBuilder- Returns:
- The canary.
-
getTypeUrl
public 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:
getTypeUrlin 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:
getTypeUrlBytesin interfaceDiscoveryResponseOrBuilder- Returns:
- The bytes for typeUrl.
-
getNonce
public 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:
getNoncein 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:
getNonceBytesin interfaceDiscoveryResponseOrBuilder- Returns:
- The bytes for nonce.
-
hasControlPlane
public boolean hasControlPlane()
[#not-implemented-hide:] The control plane instance that sent the response.
.envoy.api.v2.core.ControlPlane control_plane = 6;- Specified by:
hasControlPlanein interfaceDiscoveryResponseOrBuilder- Returns:
- Whether the controlPlane field is set.
-
getControlPlane
public ControlPlane getControlPlane()
[#not-implemented-hide:] The control plane instance that sent the response.
.envoy.api.v2.core.ControlPlane control_plane = 6;- Specified by:
getControlPlanein interfaceDiscoveryResponseOrBuilder- Returns:
- The controlPlane.
-
getControlPlaneOrBuilder
public ControlPlaneOrBuilder getControlPlaneOrBuilder()
[#not-implemented-hide:] The control plane instance that sent the response.
.envoy.api.v2.core.ControlPlane control_plane = 6;- Specified by:
getControlPlaneOrBuilderin interfaceDiscoveryResponseOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static DiscoveryResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DiscoveryResponse parseFrom(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(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static DiscoveryResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static DiscoveryResponse parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static DiscoveryResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static DiscoveryResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static DiscoveryResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public DiscoveryResponse.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein 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:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected DiscoveryResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static DiscoveryResponse getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<DiscoveryResponse> parser()
-
getParserForType
public com.google.protobuf.Parser<DiscoveryResponse> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public DiscoveryResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-