Class EkmConnection.ServiceResolver.Builder

    • Method Detail

      • 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.Builder<EkmConnection.ServiceResolver.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<EkmConnection.ServiceResolver.Builder>
      • getDefaultInstanceForType

        public EkmConnection.ServiceResolver getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<EkmConnection.ServiceResolver.Builder>
      • mergeFrom

        public EkmConnection.ServiceResolver.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                        throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<EkmConnection.ServiceResolver.Builder>
        Throws:
        IOException
      • 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.
      • setServiceDirectoryService

        public EkmConnection.ServiceResolver.Builder setServiceDirectoryService​(String value)
         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) = { ... }
        Parameters:
        value - The serviceDirectoryService to set.
        Returns:
        This builder for chaining.
      • clearServiceDirectoryService

        public EkmConnection.ServiceResolver.Builder clearServiceDirectoryService()
         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) = { ... }
        Returns:
        This builder for chaining.
      • setServiceDirectoryServiceBytes

        public EkmConnection.ServiceResolver.Builder setServiceDirectoryServiceBytes​(com.google.protobuf.ByteString value)
         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) = { ... }
        Parameters:
        value - The bytes for serviceDirectoryService to set.
        Returns:
        This builder for chaining.
      • 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.
      • setEndpointFilter

        public EkmConnection.ServiceResolver.Builder setEndpointFilter​(String value)
         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];
        Parameters:
        value - The endpointFilter to set.
        Returns:
        This builder for chaining.
      • clearEndpointFilter

        public EkmConnection.ServiceResolver.Builder clearEndpointFilter()
         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];
        Returns:
        This builder for chaining.
      • setEndpointFilterBytes

        public EkmConnection.ServiceResolver.Builder setEndpointFilterBytes​(com.google.protobuf.ByteString value)
         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];
        Parameters:
        value - The bytes for endpointFilter to set.
        Returns:
        This builder for chaining.
      • 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.
      • setHostname

        public EkmConnection.ServiceResolver.Builder setHostname​(String value)
         Required. The hostname of the EKM replica used at TLS and HTTP layers.
         
        string hostname = 3 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The hostname to set.
        Returns:
        This builder for chaining.
      • clearHostname

        public EkmConnection.ServiceResolver.Builder clearHostname()
         Required. The hostname of the EKM replica used at TLS and HTTP layers.
         
        string hostname = 3 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setHostnameBytes

        public EkmConnection.ServiceResolver.Builder setHostnameBytes​(com.google.protobuf.ByteString value)
         Required. The hostname of the EKM replica used at TLS and HTTP layers.
         
        string hostname = 3 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for hostname to set.
        Returns:
        This builder for chaining.
      • 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
      • 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
      • setServerCertificates

        public EkmConnection.ServiceResolver.Builder setServerCertificates​(int index,
                                                                           Certificate value)
         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];
      • setServerCertificates

        public EkmConnection.ServiceResolver.Builder setServerCertificates​(int index,
                                                                           Certificate.Builder builderForValue)
         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];
      • addServerCertificates

        public EkmConnection.ServiceResolver.Builder addServerCertificates​(Certificate value)
         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];
      • addServerCertificates

        public EkmConnection.ServiceResolver.Builder addServerCertificates​(int index,
                                                                           Certificate value)
         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];
      • addServerCertificates

        public EkmConnection.ServiceResolver.Builder addServerCertificates​(Certificate.Builder builderForValue)
         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];
      • addServerCertificates

        public EkmConnection.ServiceResolver.Builder addServerCertificates​(int index,
                                                                           Certificate.Builder builderForValue)
         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];
      • addAllServerCertificates

        public EkmConnection.ServiceResolver.Builder addAllServerCertificates​(Iterable<? extends Certificate> values)
         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];
      • clearServerCertificates

        public EkmConnection.ServiceResolver.Builder clearServerCertificates()
         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];
      • removeServerCertificates

        public EkmConnection.ServiceResolver.Builder removeServerCertificates​(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];
      • getServerCertificatesBuilder

        public Certificate.Builder getServerCertificatesBuilder​(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];
      • 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
      • 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
      • addServerCertificatesBuilder

        public Certificate.Builder addServerCertificatesBuilder()
         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];
      • addServerCertificatesBuilder

        public Certificate.Builder addServerCertificatesBuilder​(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];
      • getServerCertificatesBuilderList

        public List<Certificate.Builder> getServerCertificatesBuilderList()
         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];