Class EkmConnection.ServiceResolver

  • All Implemented Interfaces:
    EkmConnection.ServiceResolverOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
    Enclosing class:
    EkmConnection

    public static final class EkmConnection.ServiceResolver
    extends com.google.protobuf.GeneratedMessageV3
    implements EkmConnection.ServiceResolverOrBuilder
     A [ServiceResolver][google.cloud.kms.v1.EkmConnection.ServiceResolver]
     represents an EKM replica that can be reached within an
     [EkmConnection][google.cloud.kms.v1.EkmConnection].
     
    Protobuf type google.cloud.kms.v1.EkmConnection.ServiceResolver
    See Also:
    Serialized Form
    • Field Detail

      • SERVICE_DIRECTORY_SERVICE_FIELD_NUMBER

        public static final int SERVICE_DIRECTORY_SERVICE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ENDPOINT_FILTER_FIELD_NUMBER

        public static final int ENDPOINT_FILTER_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SERVER_CERTIFICATES_FIELD_NUMBER

        public static final int SERVER_CERTIFICATES_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance 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
      • getServiceDirectoryService

        public String getServiceDirectoryService()
         Required. The resource name of the Service Directory service pointing to
         an EKM replica, in the format
         `projects/*/locations/*/namespaces/*/services/*`.
         
        string service_directory_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getServiceDirectoryService in interface EkmConnection.ServiceResolverOrBuilder
        Returns:
        The serviceDirectoryService.
      • getServiceDirectoryServiceBytes

        public com.google.protobuf.ByteString getServiceDirectoryServiceBytes()
         Required. The resource name of the Service Directory service pointing to
         an EKM replica, in the format
         `projects/*/locations/*/namespaces/*/services/*`.
         
        string service_directory_service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getServiceDirectoryServiceBytes in interface EkmConnection.ServiceResolverOrBuilder
        Returns:
        The bytes for serviceDirectoryService.
      • getEndpointFilter

        public String getEndpointFilter()
         Optional. The filter applied to the endpoints of the resolved service. If
         no filter is specified, all endpoints will be considered. An endpoint
         will be chosen arbitrarily from the filtered list for each request.
        
         For endpoint filter syntax and examples, see
         https://cloud.google.com/service-directory/docs/reference/rpc/google.cloud.servicedirectory.v1#resolveservicerequest.
         
        string endpoint_filter = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getEndpointFilter in interface EkmConnection.ServiceResolverOrBuilder
        Returns:
        The endpointFilter.
      • getEndpointFilterBytes

        public com.google.protobuf.ByteString getEndpointFilterBytes()
         Optional. The filter applied to the endpoints of the resolved service. If
         no filter is specified, all endpoints will be considered. An endpoint
         will be chosen arbitrarily from the filtered list for each request.
        
         For endpoint filter syntax and examples, see
         https://cloud.google.com/service-directory/docs/reference/rpc/google.cloud.servicedirectory.v1#resolveservicerequest.
         
        string endpoint_filter = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getEndpointFilterBytes in interface EkmConnection.ServiceResolverOrBuilder
        Returns:
        The bytes for endpointFilter.
      • getHostname

        public String getHostname()
         Required. The hostname of the EKM replica used at TLS and HTTP layers.
         
        string hostname = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getHostname in interface EkmConnection.ServiceResolverOrBuilder
        Returns:
        The hostname.
      • getHostnameBytes

        public com.google.protobuf.ByteString getHostnameBytes()
         Required. The hostname of the EKM replica used at TLS and HTTP layers.
         
        string hostname = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getHostnameBytes in interface EkmConnection.ServiceResolverOrBuilder
        Returns:
        The bytes for hostname.
      • getServerCertificatesList

        public List<Certificate> getServerCertificatesList()
         Required. A list of leaf server certificates used to authenticate HTTPS
         connections to the EKM replica. Currently, a maximum of 10
         [Certificate][google.cloud.kms.v1.Certificate] is supported.
         
        repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getServerCertificatesList in interface EkmConnection.ServiceResolverOrBuilder
      • getServerCertificatesOrBuilderList

        public List<? extends CertificateOrBuilder> getServerCertificatesOrBuilderList()
         Required. A list of leaf server certificates used to authenticate HTTPS
         connections to the EKM replica. Currently, a maximum of 10
         [Certificate][google.cloud.kms.v1.Certificate] is supported.
         
        repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getServerCertificatesOrBuilderList in interface EkmConnection.ServiceResolverOrBuilder
      • getServerCertificatesCount

        public int getServerCertificatesCount()
         Required. A list of leaf server certificates used to authenticate HTTPS
         connections to the EKM replica. Currently, a maximum of 10
         [Certificate][google.cloud.kms.v1.Certificate] is supported.
         
        repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getServerCertificatesCount in interface EkmConnection.ServiceResolverOrBuilder
      • getServerCertificates

        public Certificate getServerCertificates​(int index)
         Required. A list of leaf server certificates used to authenticate HTTPS
         connections to the EKM replica. Currently, a maximum of 10
         [Certificate][google.cloud.kms.v1.Certificate] is supported.
         
        repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getServerCertificates in interface EkmConnection.ServiceResolverOrBuilder
      • getServerCertificatesOrBuilder

        public CertificateOrBuilder getServerCertificatesOrBuilder​(int index)
         Required. A list of leaf server certificates used to authenticate HTTPS
         connections to the EKM replica. Currently, a maximum of 10
         [Certificate][google.cloud.kms.v1.Certificate] is supported.
         
        repeated .google.cloud.kms.v1.Certificate server_certificates = 4 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getServerCertificatesOrBuilder in interface EkmConnection.ServiceResolverOrBuilder
      • 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 EkmConnection.ServiceResolver parseFrom​(ByteBuffer data)
                                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

        public com.google.protobuf.Parser<EkmConnection.ServiceResolver> 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 EkmConnection.ServiceResolver getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder