public static final class GenericHTTPEndpointConfig.Builder extends GeneratedMessage.Builder<GenericHTTPEndpointConfig.Builder> implements GenericHTTPEndpointConfigOrBuilderDefines the configuration for connections to an HTTP service provider.
Protobuf type google.cloud.developerconnect.v1.GenericHTTPEndpointConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > GenericHTTPEndpointConfig.BuilderImplements
GenericHTTPEndpointConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public GenericHTTPEndpointConfig build()| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig |
|
buildPartial()
public GenericHTTPEndpointConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig |
|
clear()
public GenericHTTPEndpointConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.Builder |
|
clearAuthentication()
public GenericHTTPEndpointConfig.Builder clearAuthentication()| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.Builder |
|
clearBasicAuthentication()
public GenericHTTPEndpointConfig.Builder clearBasicAuthentication()Optional. Basic authentication with username and password.
.google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BasicAuthentication basic_authentication = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.Builder |
|
clearBearerTokenAuthentication()
public GenericHTTPEndpointConfig.Builder clearBearerTokenAuthentication()Optional. Bearer token authentication with a token.
.google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BearerTokenAuthentication bearer_token_authentication = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.Builder |
|
clearHostUri()
public GenericHTTPEndpointConfig.Builder clearHostUri()Required. Immutable. The service provider's https endpoint.
string host_uri = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.Builder |
This builder for chaining. |
clearServiceDirectoryConfig()
public GenericHTTPEndpointConfig.Builder clearServiceDirectoryConfig()Optional. Configuration for using Service Directory to privately connect to a HTTP service provider. This should only be set if the Http service provider is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the HTTP service provider will be made over the public internet.
.google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.Builder |
|
clearSslCaCertificate()
public GenericHTTPEndpointConfig.Builder clearSslCaCertificate()Optional. The SSL certificate to use for requests to the HTTP service provider.
string ssl_ca_certificate = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.Builder |
This builder for chaining. |
getAuthenticationCase()
public GenericHTTPEndpointConfig.AuthenticationCase getAuthenticationCase()| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.AuthenticationCase |
|
getBasicAuthentication()
public GenericHTTPEndpointConfig.BasicAuthentication getBasicAuthentication()Optional. Basic authentication with username and password.
.google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BasicAuthentication basic_authentication = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.BasicAuthentication |
The basicAuthentication. |
getBasicAuthenticationBuilder()
public GenericHTTPEndpointConfig.BasicAuthentication.Builder getBasicAuthenticationBuilder()Optional. Basic authentication with username and password.
.google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BasicAuthentication basic_authentication = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.BasicAuthentication.Builder |
|
getBasicAuthenticationOrBuilder()
public GenericHTTPEndpointConfig.BasicAuthenticationOrBuilder getBasicAuthenticationOrBuilder()Optional. Basic authentication with username and password.
.google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BasicAuthentication basic_authentication = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.BasicAuthenticationOrBuilder |
|
getBearerTokenAuthentication()
public GenericHTTPEndpointConfig.BearerTokenAuthentication getBearerTokenAuthentication()Optional. Bearer token authentication with a token.
.google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BearerTokenAuthentication bearer_token_authentication = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.BearerTokenAuthentication |
The bearerTokenAuthentication. |
getBearerTokenAuthenticationBuilder()
public GenericHTTPEndpointConfig.BearerTokenAuthentication.Builder getBearerTokenAuthenticationBuilder()Optional. Bearer token authentication with a token.
.google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BearerTokenAuthentication bearer_token_authentication = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.BearerTokenAuthentication.Builder |
|
getBearerTokenAuthenticationOrBuilder()
public GenericHTTPEndpointConfig.BearerTokenAuthenticationOrBuilder getBearerTokenAuthenticationOrBuilder()Optional. Bearer token authentication with a token.
.google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BearerTokenAuthentication bearer_token_authentication = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.BearerTokenAuthenticationOrBuilder |
|
getDefaultInstanceForType()
public GenericHTTPEndpointConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getHostUri()
public String getHostUri()Required. Immutable. The service provider's https endpoint.
string host_uri = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
String |
The hostUri. |
getHostUriBytes()
public ByteString getHostUriBytes()Required. Immutable. The service provider's https endpoint.
string host_uri = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for hostUri. |
getServiceDirectoryConfig()
public ServiceDirectoryConfig getServiceDirectoryConfig()Optional. Configuration for using Service Directory to privately connect to a HTTP service provider. This should only be set if the Http service provider is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the HTTP service provider will be made over the public internet.
.google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ServiceDirectoryConfig |
The serviceDirectoryConfig. |
getServiceDirectoryConfigBuilder()
public ServiceDirectoryConfig.Builder getServiceDirectoryConfigBuilder()Optional. Configuration for using Service Directory to privately connect to a HTTP service provider. This should only be set if the Http service provider is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the HTTP service provider will be made over the public internet.
.google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ServiceDirectoryConfig.Builder |
|
getServiceDirectoryConfigOrBuilder()
public ServiceDirectoryConfigOrBuilder getServiceDirectoryConfigOrBuilder()Optional. Configuration for using Service Directory to privately connect to a HTTP service provider. This should only be set if the Http service provider is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the HTTP service provider will be made over the public internet.
.google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ServiceDirectoryConfigOrBuilder |
|
getSslCaCertificate()
public String getSslCaCertificate()Optional. The SSL certificate to use for requests to the HTTP service provider.
string ssl_ca_certificate = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The sslCaCertificate. |
getSslCaCertificateBytes()
public ByteString getSslCaCertificateBytes()Optional. The SSL certificate to use for requests to the HTTP service provider.
string ssl_ca_certificate = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for sslCaCertificate. |
hasBasicAuthentication()
public boolean hasBasicAuthentication()Optional. Basic authentication with username and password.
.google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BasicAuthentication basic_authentication = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the basicAuthentication field is set. |
hasBearerTokenAuthentication()
public boolean hasBearerTokenAuthentication()Optional. Bearer token authentication with a token.
.google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BearerTokenAuthentication bearer_token_authentication = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the bearerTokenAuthentication field is set. |
hasServiceDirectoryConfig()
public boolean hasServiceDirectoryConfig()Optional. Configuration for using Service Directory to privately connect to a HTTP service provider. This should only be set if the Http service provider is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the HTTP service provider will be made over the public internet.
.google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the serviceDirectoryConfig field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeBasicAuthentication(GenericHTTPEndpointConfig.BasicAuthentication value)
public GenericHTTPEndpointConfig.Builder mergeBasicAuthentication(GenericHTTPEndpointConfig.BasicAuthentication value)Optional. Basic authentication with username and password.
.google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BasicAuthentication basic_authentication = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
GenericHTTPEndpointConfig.BasicAuthentication |
| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.Builder |
|
mergeBearerTokenAuthentication(GenericHTTPEndpointConfig.BearerTokenAuthentication value)
public GenericHTTPEndpointConfig.Builder mergeBearerTokenAuthentication(GenericHTTPEndpointConfig.BearerTokenAuthentication value)Optional. Bearer token authentication with a token.
.google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BearerTokenAuthentication bearer_token_authentication = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
GenericHTTPEndpointConfig.BearerTokenAuthentication |
| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.Builder |
|
mergeFrom(GenericHTTPEndpointConfig other)
public GenericHTTPEndpointConfig.Builder mergeFrom(GenericHTTPEndpointConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
GenericHTTPEndpointConfig |
| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GenericHTTPEndpointConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public GenericHTTPEndpointConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.Builder |
|
mergeServiceDirectoryConfig(ServiceDirectoryConfig value)
public GenericHTTPEndpointConfig.Builder mergeServiceDirectoryConfig(ServiceDirectoryConfig value)Optional. Configuration for using Service Directory to privately connect to a HTTP service provider. This should only be set if the Http service provider is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the HTTP service provider will be made over the public internet.
.google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ServiceDirectoryConfig |
| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.Builder |
|
setBasicAuthentication(GenericHTTPEndpointConfig.BasicAuthentication value)
public GenericHTTPEndpointConfig.Builder setBasicAuthentication(GenericHTTPEndpointConfig.BasicAuthentication value)Optional. Basic authentication with username and password.
.google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BasicAuthentication basic_authentication = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
GenericHTTPEndpointConfig.BasicAuthentication |
| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.Builder |
|
setBasicAuthentication(GenericHTTPEndpointConfig.BasicAuthentication.Builder builderForValue)
public GenericHTTPEndpointConfig.Builder setBasicAuthentication(GenericHTTPEndpointConfig.BasicAuthentication.Builder builderForValue)Optional. Basic authentication with username and password.
.google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BasicAuthentication basic_authentication = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
GenericHTTPEndpointConfig.BasicAuthentication.Builder |
| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.Builder |
|
setBearerTokenAuthentication(GenericHTTPEndpointConfig.BearerTokenAuthentication value)
public GenericHTTPEndpointConfig.Builder setBearerTokenAuthentication(GenericHTTPEndpointConfig.BearerTokenAuthentication value)Optional. Bearer token authentication with a token.
.google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BearerTokenAuthentication bearer_token_authentication = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
GenericHTTPEndpointConfig.BearerTokenAuthentication |
| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.Builder |
|
setBearerTokenAuthentication(GenericHTTPEndpointConfig.BearerTokenAuthentication.Builder builderForValue)
public GenericHTTPEndpointConfig.Builder setBearerTokenAuthentication(GenericHTTPEndpointConfig.BearerTokenAuthentication.Builder builderForValue)Optional. Bearer token authentication with a token.
.google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BearerTokenAuthentication bearer_token_authentication = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
GenericHTTPEndpointConfig.BearerTokenAuthentication.Builder |
| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.Builder |
|
setHostUri(String value)
public GenericHTTPEndpointConfig.Builder setHostUri(String value)Required. Immutable. The service provider's https endpoint.
string host_uri = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe hostUri to set. |
| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.Builder |
This builder for chaining. |
setHostUriBytes(ByteString value)
public GenericHTTPEndpointConfig.Builder setHostUriBytes(ByteString value)Required. Immutable. The service provider's https endpoint.
string host_uri = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for hostUri to set. |
| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.Builder |
This builder for chaining. |
setServiceDirectoryConfig(ServiceDirectoryConfig value)
public GenericHTTPEndpointConfig.Builder setServiceDirectoryConfig(ServiceDirectoryConfig value)Optional. Configuration for using Service Directory to privately connect to a HTTP service provider. This should only be set if the Http service provider is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the HTTP service provider will be made over the public internet.
.google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ServiceDirectoryConfig |
| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.Builder |
|
setServiceDirectoryConfig(ServiceDirectoryConfig.Builder builderForValue)
public GenericHTTPEndpointConfig.Builder setServiceDirectoryConfig(ServiceDirectoryConfig.Builder builderForValue)Optional. Configuration for using Service Directory to privately connect to a HTTP service provider. This should only be set if the Http service provider is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the HTTP service provider will be made over the public internet.
.google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ServiceDirectoryConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.Builder |
|
setSslCaCertificate(String value)
public GenericHTTPEndpointConfig.Builder setSslCaCertificate(String value)Optional. The SSL certificate to use for requests to the HTTP service provider.
string ssl_ca_certificate = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe sslCaCertificate to set. |
| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.Builder |
This builder for chaining. |
setSslCaCertificateBytes(ByteString value)
public GenericHTTPEndpointConfig.Builder setSslCaCertificateBytes(ByteString value)Optional. The SSL certificate to use for requests to the HTTP service provider.
string ssl_ca_certificate = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for sslCaCertificate to set. |
| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.Builder |
This builder for chaining. |