Class DiscoveryRequest

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, DiscoveryRequestOrBuilder, Serializable

    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
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class 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.
      • 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
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getVersionInfo

        public 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;
        Specified by:
        getVersionInfo in interface DiscoveryRequestOrBuilder
        Returns:
        The versionInfo.
      • getVersionInfoBytes

        public 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;
        Specified by:
        getVersionInfoBytes in interface DiscoveryRequestOrBuilder
        Returns:
        The bytes for versionInfo.
      • hasNode

        public boolean hasNode()
         The node making the request.
         
        .envoy.api.v2.core.Node node = 2;
        Specified by:
        hasNode in interface DiscoveryRequestOrBuilder
        Returns:
        Whether the node field is set.
      • getResourceNamesList

        public 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;
        Specified by:
        getResourceNamesList in interface DiscoveryRequestOrBuilder
        Returns:
        A list containing the resourceNames.
      • getResourceNamesCount

        public 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;
        Specified by:
        getResourceNamesCount in interface DiscoveryRequestOrBuilder
        Returns:
        The count of resourceNames.
      • getResourceNames

        public 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;
        Specified by:
        getResourceNames in interface DiscoveryRequestOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The resourceNames at the given index.
      • getResourceNamesBytes

        public 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;
        Specified by:
        getResourceNamesBytes in interface DiscoveryRequestOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the resourceNames at the given index.
      • getTypeUrl

        public 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;
        Specified by:
        getTypeUrl in interface DiscoveryRequestOrBuilder
        Returns:
        The typeUrl.
      • getTypeUrlBytes

        public 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;
        Specified by:
        getTypeUrlBytes in interface DiscoveryRequestOrBuilder
        Returns:
        The bytes for typeUrl.
      • getResponseNonce

        public 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;
        Specified by:
        getResponseNonce in interface DiscoveryRequestOrBuilder
        Returns:
        The responseNonce.
      • getResponseNonceBytes

        public 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;
        Specified by:
        getResponseNonceBytes in interface DiscoveryRequestOrBuilder
        Returns:
        The bytes for responseNonce.
      • hasErrorDetail

        public 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;
        Specified by:
        hasErrorDetail in interface DiscoveryRequestOrBuilder
        Returns:
        Whether the errorDetail field is set.
      • getErrorDetail

        public 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;
        Specified by:
        getErrorDetail in interface DiscoveryRequestOrBuilder
        Returns:
        The errorDetail.
      • getErrorDetailOrBuilder

        public 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;
        Specified by:
        getErrorDetailOrBuilder in interface DiscoveryRequestOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static DiscoveryRequest parseFrom​(ByteBuffer data)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DiscoveryRequest parseFrom​(ByteBuffer data,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DiscoveryRequest parseFrom​(com.google.protobuf.ByteString data)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DiscoveryRequest parseFrom​(com.google.protobuf.ByteString data,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DiscoveryRequest parseFrom​(byte[] data)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DiscoveryRequest parseFrom​(byte[] data,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static DiscoveryRequest parseFrom​(com.google.protobuf.CodedInputStream input,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws IOException
        Throws:
        IOException
      • newBuilderForType

        public DiscoveryRequest.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public DiscoveryRequest.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected DiscoveryRequest.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<DiscoveryRequest> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public DiscoveryRequest getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder