Class GenericHTTPEndpointConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GenericHTTPEndpointConfig.Builder>
com.google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.Builder
- All Implemented Interfaces:
GenericHTTPEndpointConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GenericHTTPEndpointConfig
public static final class GenericHTTPEndpointConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<GenericHTTPEndpointConfig.Builder>
implements GenericHTTPEndpointConfigOrBuilder
Defines the configuration for connections to an HTTP service provider.Protobuf type
google.cloud.developerconnect.v1.GenericHTTPEndpointConfig-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Required.Optional.Optional.Optional.Optional.Optional.Optional.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.Optional.Optional.Optional.Optional.com.google.protobuf.ByteStringOptional.booleanOptional.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanOptional.Optional.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.Optional.Optional.Optional.setBearerTokenAuthentication(GenericHTTPEndpointConfig.BearerTokenAuthentication.Builder builderForValue) Optional.setHostUri(String value) Required.setHostUriBytes(com.google.protobuf.ByteString value) Required.Optional.setServiceDirectoryConfig(ServiceDirectoryConfig.Builder builderForValue) Optional.setSslCaCertificate(String value) Optional.setSslCaCertificateBytes(com.google.protobuf.ByteString value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<GenericHTTPEndpointConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<GenericHTTPEndpointConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<GenericHTTPEndpointConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GenericHTTPEndpointConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<GenericHTTPEndpointConfig.Builder>
-
mergeFrom
public GenericHTTPEndpointConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GenericHTTPEndpointConfig.Builder>- Throws:
IOException
-
getAuthenticationCase
- Specified by:
getAuthenticationCasein interfaceGenericHTTPEndpointConfigOrBuilder
-
clearAuthentication
-
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];- Specified by:
hasBasicAuthenticationin interfaceGenericHTTPEndpointConfigOrBuilder- Returns:
- Whether the basicAuthentication field is set.
-
getBasicAuthentication
Optional. Basic authentication with username and password.
.google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BasicAuthentication basic_authentication = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBasicAuthenticationin interfaceGenericHTTPEndpointConfigOrBuilder- Returns:
- The basicAuthentication.
-
setBasicAuthentication
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]; -
setBasicAuthentication
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]; -
mergeBasicAuthentication
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]; -
clearBasicAuthentication
Optional. Basic authentication with username and password.
.google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BasicAuthentication basic_authentication = 1 [(.google.api.field_behavior) = OPTIONAL]; -
getBasicAuthenticationBuilder
Optional. Basic authentication with username and password.
.google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BasicAuthentication basic_authentication = 1 [(.google.api.field_behavior) = OPTIONAL]; -
getBasicAuthenticationOrBuilder
Optional. Basic authentication with username and password.
.google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BasicAuthentication basic_authentication = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBasicAuthenticationOrBuilderin interfaceGenericHTTPEndpointConfigOrBuilder
-
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];- Specified by:
hasBearerTokenAuthenticationin interfaceGenericHTTPEndpointConfigOrBuilder- Returns:
- Whether the bearerTokenAuthentication field is set.
-
getBearerTokenAuthentication
Optional. Bearer token authentication with a token.
.google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BearerTokenAuthentication bearer_token_authentication = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBearerTokenAuthenticationin interfaceGenericHTTPEndpointConfigOrBuilder- Returns:
- The bearerTokenAuthentication.
-
setBearerTokenAuthentication
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]; -
setBearerTokenAuthentication
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]; -
mergeBearerTokenAuthentication
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]; -
clearBearerTokenAuthentication
Optional. Bearer token authentication with a token.
.google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BearerTokenAuthentication bearer_token_authentication = 2 [(.google.api.field_behavior) = OPTIONAL]; -
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]; -
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];- Specified by:
getBearerTokenAuthenticationOrBuilderin interfaceGenericHTTPEndpointConfigOrBuilder
-
getHostUri
Required. Immutable. The service provider's https endpoint.
string host_uri = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getHostUriin interfaceGenericHTTPEndpointConfigOrBuilder- Returns:
- The hostUri.
-
getHostUriBytes
public com.google.protobuf.ByteString getHostUriBytes()Required. Immutable. The service provider's https endpoint.
string host_uri = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getHostUriBytesin interfaceGenericHTTPEndpointConfigOrBuilder- Returns:
- The bytes for hostUri.
-
setHostUri
Required. Immutable. The service provider's https endpoint.
string host_uri = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The hostUri to set.- Returns:
- This builder for chaining.
-
clearHostUri
Required. Immutable. The service provider's https endpoint.
string host_uri = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Returns:
- This builder for chaining.
-
setHostUriBytes
Required. Immutable. The service provider's https endpoint.
string host_uri = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The bytes for hostUri to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
hasServiceDirectoryConfigin interfaceGenericHTTPEndpointConfigOrBuilder- Returns:
- Whether the serviceDirectoryConfig field is set.
-
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];- Specified by:
getServiceDirectoryConfigin interfaceGenericHTTPEndpointConfigOrBuilder- Returns:
- The serviceDirectoryConfig.
-
setServiceDirectoryConfig
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]; -
setServiceDirectoryConfig
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]; -
mergeServiceDirectoryConfig
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]; -
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]; -
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]; -
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];- Specified by:
getServiceDirectoryConfigOrBuilderin interfaceGenericHTTPEndpointConfigOrBuilder
-
getSslCaCertificate
Optional. The SSL certificate to use for requests to the HTTP service provider.
string ssl_ca_certificate = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSslCaCertificatein interfaceGenericHTTPEndpointConfigOrBuilder- Returns:
- The sslCaCertificate.
-
getSslCaCertificateBytes
public com.google.protobuf.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];- Specified by:
getSslCaCertificateBytesin interfaceGenericHTTPEndpointConfigOrBuilder- Returns:
- The bytes for sslCaCertificate.
-
setSslCaCertificate
Optional. The SSL certificate to use for requests to the HTTP service provider.
string ssl_ca_certificate = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The sslCaCertificate to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setSslCaCertificateBytes
public GenericHTTPEndpointConfig.Builder setSslCaCertificateBytes(com.google.protobuf.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];- Parameters:
value- The bytes for sslCaCertificate to set.- Returns:
- This builder for chaining.
-