Class AccountConnector.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AccountConnector.Builder>
com.google.cloud.developerconnect.v1.AccountConnector.Builder
All Implemented Interfaces:
AccountConnectorOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AccountConnector

public static final class AccountConnector.Builder extends com.google.protobuf.GeneratedMessage.Builder<AccountConnector.Builder> implements AccountConnectorOrBuilder
 AccountConnector encapsulates what a platform administrator needs to
 configure for users to connect to the service providers, which includes,
 among other fields, the OAuth client ID, client secret, and authorization and
 token endpoints.
 
Protobuf type google.cloud.developerconnect.v1.AccountConnector
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<AccountConnector.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<AccountConnector.Builder>
    • internalGetFieldAccessorTable

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

      public AccountConnector.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<AccountConnector.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<AccountConnector.Builder>
    • getDefaultInstanceForType

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

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

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

      public AccountConnector.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<AccountConnector.Builder>
    • mergeFrom

      public AccountConnector.Builder mergeFrom(AccountConnector other)
    • isInitialized

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

      public AccountConnector.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<AccountConnector.Builder>
      Throws:
      IOException
    • getAccountConnectorConfigCase

      public AccountConnector.AccountConnectorConfigCase getAccountConnectorConfigCase()
      Specified by:
      getAccountConnectorConfigCase in interface AccountConnectorOrBuilder
    • clearAccountConnectorConfig

      public AccountConnector.Builder clearAccountConnectorConfig()
    • hasProviderOauthConfig

      public boolean hasProviderOauthConfig()
       Optional. Provider OAuth config.
       
      .google.cloud.developerconnect.v1.ProviderOAuthConfig provider_oauth_config = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasProviderOauthConfig in interface AccountConnectorOrBuilder
      Returns:
      Whether the providerOauthConfig field is set.
    • getProviderOauthConfig

      public ProviderOAuthConfig getProviderOauthConfig()
       Optional. Provider OAuth config.
       
      .google.cloud.developerconnect.v1.ProviderOAuthConfig provider_oauth_config = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getProviderOauthConfig in interface AccountConnectorOrBuilder
      Returns:
      The providerOauthConfig.
    • setProviderOauthConfig

      public AccountConnector.Builder setProviderOauthConfig(ProviderOAuthConfig value)
       Optional. Provider OAuth config.
       
      .google.cloud.developerconnect.v1.ProviderOAuthConfig provider_oauth_config = 5 [(.google.api.field_behavior) = OPTIONAL];
    • setProviderOauthConfig

      public AccountConnector.Builder setProviderOauthConfig(ProviderOAuthConfig.Builder builderForValue)
       Optional. Provider OAuth config.
       
      .google.cloud.developerconnect.v1.ProviderOAuthConfig provider_oauth_config = 5 [(.google.api.field_behavior) = OPTIONAL];
    • mergeProviderOauthConfig

      public AccountConnector.Builder mergeProviderOauthConfig(ProviderOAuthConfig value)
       Optional. Provider OAuth config.
       
      .google.cloud.developerconnect.v1.ProviderOAuthConfig provider_oauth_config = 5 [(.google.api.field_behavior) = OPTIONAL];
    • clearProviderOauthConfig

      public AccountConnector.Builder clearProviderOauthConfig()
       Optional. Provider OAuth config.
       
      .google.cloud.developerconnect.v1.ProviderOAuthConfig provider_oauth_config = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getProviderOauthConfigBuilder

      public ProviderOAuthConfig.Builder getProviderOauthConfigBuilder()
       Optional. Provider OAuth config.
       
      .google.cloud.developerconnect.v1.ProviderOAuthConfig provider_oauth_config = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getProviderOauthConfigOrBuilder

      public ProviderOAuthConfigOrBuilder getProviderOauthConfigOrBuilder()
       Optional. Provider OAuth config.
       
      .google.cloud.developerconnect.v1.ProviderOAuthConfig provider_oauth_config = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getProviderOauthConfigOrBuilder in interface AccountConnectorOrBuilder
    • getName

      public String getName()
       Identifier. The resource name of the accountConnector, in the format
       `projects/{project}/locations/{location}/accountConnectors/{account_connector_id}`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface AccountConnectorOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. The resource name of the accountConnector, in the format
       `projects/{project}/locations/{location}/accountConnectors/{account_connector_id}`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface AccountConnectorOrBuilder
      Returns:
      The bytes for name.
    • setName

      public AccountConnector.Builder setName(String value)
       Identifier. The resource name of the accountConnector, in the format
       `projects/{project}/locations/{location}/accountConnectors/{account_connector_id}`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public AccountConnector.Builder clearName()
       Identifier. The resource name of the accountConnector, in the format
       `projects/{project}/locations/{location}/accountConnectors/{account_connector_id}`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public AccountConnector.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. The resource name of the accountConnector, in the format
       `projects/{project}/locations/{location}/accountConnectors/{account_connector_id}`.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The timestamp when the accountConnector was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface AccountConnectorOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The timestamp when the accountConnector was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface AccountConnectorOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public AccountConnector.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the accountConnector was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public AccountConnector.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp when the accountConnector was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public AccountConnector.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the accountConnector was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public AccountConnector.Builder clearCreateTime()
       Output only. The timestamp when the accountConnector was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The timestamp when the accountConnector was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The timestamp when the accountConnector was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface AccountConnectorOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The timestamp when the accountConnector was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface AccountConnectorOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The timestamp when the accountConnector was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface AccountConnectorOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public AccountConnector.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the accountConnector was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public AccountConnector.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp when the accountConnector was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public AccountConnector.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the accountConnector was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public AccountConnector.Builder clearUpdateTime()
       Output only. The timestamp when the accountConnector was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. The timestamp when the accountConnector was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The timestamp when the accountConnector was updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface AccountConnectorOrBuilder
    • getAnnotationsCount

      public int getAnnotationsCount()
      Description copied from interface: AccountConnectorOrBuilder
       Optional. Allows users to store small amounts of arbitrary data.
       
      map<string, string> annotations = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsCount in interface AccountConnectorOrBuilder
    • containsAnnotations

      public boolean containsAnnotations(String key)
       Optional. Allows users to store small amounts of arbitrary data.
       
      map<string, string> annotations = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsAnnotations in interface AccountConnectorOrBuilder
    • getAnnotations

      @Deprecated public Map<String,String> getAnnotations()
      Deprecated.
      Use getAnnotationsMap() instead.
      Specified by:
      getAnnotations in interface AccountConnectorOrBuilder
    • getAnnotationsMap

      public Map<String,String> getAnnotationsMap()
       Optional. Allows users to store small amounts of arbitrary data.
       
      map<string, string> annotations = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsMap in interface AccountConnectorOrBuilder
    • getAnnotationsOrDefault

      public String getAnnotationsOrDefault(String key, String defaultValue)
       Optional. Allows users to store small amounts of arbitrary data.
       
      map<string, string> annotations = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsOrDefault in interface AccountConnectorOrBuilder
    • getAnnotationsOrThrow

      public String getAnnotationsOrThrow(String key)
       Optional. Allows users to store small amounts of arbitrary data.
       
      map<string, string> annotations = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsOrThrow in interface AccountConnectorOrBuilder
    • clearAnnotations

      public AccountConnector.Builder clearAnnotations()
    • removeAnnotations

      public AccountConnector.Builder removeAnnotations(String key)
       Optional. Allows users to store small amounts of arbitrary data.
       
      map<string, string> annotations = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableAnnotations

      @Deprecated public Map<String,String> getMutableAnnotations()
      Deprecated.
      Use alternate mutation accessors instead.
    • putAnnotations

      public AccountConnector.Builder putAnnotations(String key, String value)
       Optional. Allows users to store small amounts of arbitrary data.
       
      map<string, string> annotations = 6 [(.google.api.field_behavior) = OPTIONAL];
    • putAllAnnotations

      public AccountConnector.Builder putAllAnnotations(Map<String,String> values)
       Optional. Allows users to store small amounts of arbitrary data.
       
      map<string, string> annotations = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getEtag

      public String getEtag()
       Optional. This checksum is computed by the server based on the value of
       other fields, and may be sent on update and delete requests to ensure the
       client has an up-to-date value before proceeding.
       
      string etag = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEtag in interface AccountConnectorOrBuilder
      Returns:
      The etag.
    • getEtagBytes

      public com.google.protobuf.ByteString getEtagBytes()
       Optional. This checksum is computed by the server based on the value of
       other fields, and may be sent on update and delete requests to ensure the
       client has an up-to-date value before proceeding.
       
      string etag = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEtagBytes in interface AccountConnectorOrBuilder
      Returns:
      The bytes for etag.
    • setEtag

      public AccountConnector.Builder setEtag(String value)
       Optional. This checksum is computed by the server based on the value of
       other fields, and may be sent on update and delete requests to ensure the
       client has an up-to-date value before proceeding.
       
      string etag = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The etag to set.
      Returns:
      This builder for chaining.
    • clearEtag

      public AccountConnector.Builder clearEtag()
       Optional. This checksum is computed by the server based on the value of
       other fields, and may be sent on update and delete requests to ensure the
       client has an up-to-date value before proceeding.
       
      string etag = 7 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setEtagBytes

      public AccountConnector.Builder setEtagBytes(com.google.protobuf.ByteString value)
       Optional. This checksum is computed by the server based on the value of
       other fields, and may be sent on update and delete requests to ensure the
       client has an up-to-date value before proceeding.
       
      string etag = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for etag to set.
      Returns:
      This builder for chaining.
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: AccountConnectorOrBuilder
       Optional. Labels as key value pairs
       
      map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface AccountConnectorOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. Labels as key value pairs
       
      map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface AccountConnectorOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface AccountConnectorOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Optional. Labels as key value pairs
       
      map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface AccountConnectorOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. Labels as key value pairs
       
      map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface AccountConnectorOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. Labels as key value pairs
       
      map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface AccountConnectorOrBuilder
    • clearLabels

      public AccountConnector.Builder clearLabels()
    • removeLabels

      public AccountConnector.Builder removeLabels(String key)
       Optional. Labels as key value pairs
       
      map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      public AccountConnector.Builder putLabels(String key, String value)
       Optional. Labels as key value pairs
       
      map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    • putAllLabels

      public AccountConnector.Builder putAllLabels(Map<String,String> values)
       Optional. Labels as key value pairs
       
      map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
    • getOauthStartUri

      public String getOauthStartUri()
       Output only. Start OAuth flow by clicking on this URL.
       
      string oauth_start_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOauthStartUri in interface AccountConnectorOrBuilder
      Returns:
      The oauthStartUri.
    • getOauthStartUriBytes

      public com.google.protobuf.ByteString getOauthStartUriBytes()
       Output only. Start OAuth flow by clicking on this URL.
       
      string oauth_start_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOauthStartUriBytes in interface AccountConnectorOrBuilder
      Returns:
      The bytes for oauthStartUri.
    • setOauthStartUri

      public AccountConnector.Builder setOauthStartUri(String value)
       Output only. Start OAuth flow by clicking on this URL.
       
      string oauth_start_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The oauthStartUri to set.
      Returns:
      This builder for chaining.
    • clearOauthStartUri

      public AccountConnector.Builder clearOauthStartUri()
       Output only. Start OAuth flow by clicking on this URL.
       
      string oauth_start_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setOauthStartUriBytes

      public AccountConnector.Builder setOauthStartUriBytes(com.google.protobuf.ByteString value)
       Output only. Start OAuth flow by clicking on this URL.
       
      string oauth_start_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for oauthStartUri to set.
      Returns:
      This builder for chaining.