Class GenericHTTPEndpointConfig (0.44.0)

public final class GenericHTTPEndpointConfig extends GeneratedMessage implements GenericHTTPEndpointConfigOrBuilder

Defines the configuration for connections to an HTTP service provider.

Protobuf type google.cloud.developerconnect.v1.GenericHTTPEndpointConfig

Static Fields

BASIC_AUTHENTICATION_FIELD_NUMBER

public static final int BASIC_AUTHENTICATION_FIELD_NUMBER
Field Value
Type Description
int

BEARER_TOKEN_AUTHENTICATION_FIELD_NUMBER

public static final int BEARER_TOKEN_AUTHENTICATION_FIELD_NUMBER
Field Value
Type Description
int

HOST_URI_FIELD_NUMBER

public static final int HOST_URI_FIELD_NUMBER
Field Value
Type Description
int

SERVICE_DIRECTORY_CONFIG_FIELD_NUMBER

public static final int SERVICE_DIRECTORY_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

SSL_CA_CERTIFICATE_FIELD_NUMBER

public static final int SSL_CA_CERTIFICATE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static GenericHTTPEndpointConfig getDefaultInstance()
Returns
Type Description
GenericHTTPEndpointConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static GenericHTTPEndpointConfig.Builder newBuilder()
Returns
Type Description
GenericHTTPEndpointConfig.Builder

newBuilder(GenericHTTPEndpointConfig prototype)

public static GenericHTTPEndpointConfig.Builder newBuilder(GenericHTTPEndpointConfig prototype)
Parameter
Name Description
prototype GenericHTTPEndpointConfig
Returns
Type Description
GenericHTTPEndpointConfig.Builder

parseDelimitedFrom(InputStream input)

public static GenericHTTPEndpointConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GenericHTTPEndpointConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GenericHTTPEndpointConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenericHTTPEndpointConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static GenericHTTPEndpointConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
GenericHTTPEndpointConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GenericHTTPEndpointConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenericHTTPEndpointConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GenericHTTPEndpointConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
GenericHTTPEndpointConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GenericHTTPEndpointConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenericHTTPEndpointConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GenericHTTPEndpointConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
GenericHTTPEndpointConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GenericHTTPEndpointConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenericHTTPEndpointConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static GenericHTTPEndpointConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GenericHTTPEndpointConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GenericHTTPEndpointConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenericHTTPEndpointConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static GenericHTTPEndpointConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
GenericHTTPEndpointConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GenericHTTPEndpointConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenericHTTPEndpointConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<GenericHTTPEndpointConfig> parser()
Returns
Type Description
Parser<GenericHTTPEndpointConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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.

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.

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

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.

getParserForType()

public Parser<GenericHTTPEndpointConfig> getParserForType()
Returns
Type Description
Parser<GenericHTTPEndpointConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public GenericHTTPEndpointConfig.Builder newBuilderForType()
Returns
Type Description
GenericHTTPEndpointConfig.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected GenericHTTPEndpointConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
GenericHTTPEndpointConfig.Builder
Overrides

toBuilder()

public GenericHTTPEndpointConfig.Builder toBuilder()
Returns
Type Description
GenericHTTPEndpointConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException