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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GenericHTTPEndpointConfig.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<GenericHTTPEndpointConfig.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.GeneratedMessage.Builder<GenericHTTPEndpointConfig.Builder>
    • getDefaultInstanceForType

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

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

      public GenericHTTPEndpointConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public GenericHTTPEndpointConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GenericHTTPEndpointConfig.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      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<GenericHTTPEndpointConfig.Builder>
      Throws:
      IOException
    • getAuthenticationCase

      public GenericHTTPEndpointConfig.AuthenticationCase getAuthenticationCase()
      Specified by:
      getAuthenticationCase in interface GenericHTTPEndpointConfigOrBuilder
    • clearAuthentication

      public GenericHTTPEndpointConfig.Builder 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:
      hasBasicAuthentication in interface GenericHTTPEndpointConfigOrBuilder
      Returns:
      Whether the basicAuthentication field is set.
    • 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];
      Specified by:
      getBasicAuthentication in interface GenericHTTPEndpointConfigOrBuilder
      Returns:
      The basicAuthentication.
    • setBasicAuthentication

       Optional. Basic authentication with username and password.
       
      .google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BasicAuthentication basic_authentication = 1 [(.google.api.field_behavior) = OPTIONAL];
    • setBasicAuthentication

       Optional. Basic authentication with username and password.
       
      .google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BasicAuthentication basic_authentication = 1 [(.google.api.field_behavior) = OPTIONAL];
    • mergeBasicAuthentication

       Optional. Basic authentication with username and password.
       
      .google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BasicAuthentication basic_authentication = 1 [(.google.api.field_behavior) = OPTIONAL];
    • 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];
    • 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];
    • 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];
      Specified by:
      getBasicAuthenticationOrBuilder in interface GenericHTTPEndpointConfigOrBuilder
    • 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:
      hasBearerTokenAuthentication in interface GenericHTTPEndpointConfigOrBuilder
      Returns:
      Whether the bearerTokenAuthentication field is set.
    • 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];
      Specified by:
      getBearerTokenAuthentication in interface GenericHTTPEndpointConfigOrBuilder
      Returns:
      The bearerTokenAuthentication.
    • setBearerTokenAuthentication

       Optional. Bearer token authentication with a token.
       
      .google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BearerTokenAuthentication bearer_token_authentication = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setBearerTokenAuthentication

       Optional. Bearer token authentication with a token.
       
      .google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BearerTokenAuthentication bearer_token_authentication = 2 [(.google.api.field_behavior) = OPTIONAL];
    • mergeBearerTokenAuthentication

       Optional. Bearer token authentication with a token.
       
      .google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BearerTokenAuthentication bearer_token_authentication = 2 [(.google.api.field_behavior) = OPTIONAL];
    • 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];
    • 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:
      getBearerTokenAuthenticationOrBuilder in interface GenericHTTPEndpointConfigOrBuilder
    • 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];
      Specified by:
      getHostUri in interface GenericHTTPEndpointConfigOrBuilder
      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:
      getHostUriBytes in interface GenericHTTPEndpointConfigOrBuilder
      Returns:
      The bytes for hostUri.
    • setHostUri

      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];
      Parameters:
      value - The hostUri to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setHostUriBytes

      public GenericHTTPEndpointConfig.Builder setHostUriBytes(com.google.protobuf.ByteString value)
       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:
      hasServiceDirectoryConfig in interface GenericHTTPEndpointConfigOrBuilder
      Returns:
      Whether the serviceDirectoryConfig field is set.
    • 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];
      Specified by:
      getServiceDirectoryConfig in interface GenericHTTPEndpointConfigOrBuilder
      Returns:
      The serviceDirectoryConfig.
    • setServiceDirectoryConfig

      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];
    • 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

      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];
    • 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];
    • 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];
    • 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];
      Specified by:
      getServiceDirectoryConfigOrBuilder in interface GenericHTTPEndpointConfigOrBuilder
    • 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];
      Specified by:
      getSslCaCertificate in interface GenericHTTPEndpointConfigOrBuilder
      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:
      getSslCaCertificateBytes in interface GenericHTTPEndpointConfigOrBuilder
      Returns:
      The bytes for sslCaCertificate.
    • setSslCaCertificate

      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];
      Parameters:
      value - The sslCaCertificate to set.
      Returns:
      This builder for chaining.
    • 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:
      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.