Class TransferTypes.AzureBlobStorageData.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TransferTypes.AzureBlobStorageData.Builder>
com.google.storagetransfer.v1.proto.TransferTypes.AzureBlobStorageData.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, TransferTypes.AzureBlobStorageDataOrBuilder, Cloneable
Enclosing class:
TransferTypes.AzureBlobStorageData

public static final class TransferTypes.AzureBlobStorageData.Builder extends com.google.protobuf.GeneratedMessage.Builder<TransferTypes.AzureBlobStorageData.Builder> implements TransferTypes.AzureBlobStorageDataOrBuilder
 An AzureBlobStorageData resource can be a data source, but not a data sink.
 An AzureBlobStorageData resource represents one Azure container. The storage
 account determines the [Azure
 endpoint](https://docs.microsoft.com/en-us/azure/storage/common/storage-create-storage-account#storage-account-endpoints).
 In an AzureBlobStorageData resource, a blobs's name is the [Azure Blob
 Storage blob's key
 name](https://docs.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata#blob-names).
 
Protobuf type google.storagetransfer.v1.AzureBlobStorageData
  • 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<TransferTypes.AzureBlobStorageData.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<TransferTypes.AzureBlobStorageData.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<TransferTypes.AzureBlobStorageData.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public TransferTypes.AzureBlobStorageData.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<TransferTypes.AzureBlobStorageData.Builder>
      Throws:
      IOException
    • getStorageAccount

      public String getStorageAccount()
       Required. The name of the Azure Storage account.
       
      string storage_account = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getStorageAccount in interface TransferTypes.AzureBlobStorageDataOrBuilder
      Returns:
      The storageAccount.
    • getStorageAccountBytes

      public com.google.protobuf.ByteString getStorageAccountBytes()
       Required. The name of the Azure Storage account.
       
      string storage_account = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getStorageAccountBytes in interface TransferTypes.AzureBlobStorageDataOrBuilder
      Returns:
      The bytes for storageAccount.
    • setStorageAccount

      public TransferTypes.AzureBlobStorageData.Builder setStorageAccount(String value)
       Required. The name of the Azure Storage account.
       
      string storage_account = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The storageAccount to set.
      Returns:
      This builder for chaining.
    • clearStorageAccount

      public TransferTypes.AzureBlobStorageData.Builder clearStorageAccount()
       Required. The name of the Azure Storage account.
       
      string storage_account = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setStorageAccountBytes

      public TransferTypes.AzureBlobStorageData.Builder setStorageAccountBytes(com.google.protobuf.ByteString value)
       Required. The name of the Azure Storage account.
       
      string storage_account = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for storageAccount to set.
      Returns:
      This builder for chaining.
    • hasAzureCredentials

      public boolean hasAzureCredentials()
       Required. Input only. Credentials used to authenticate API requests to
       Azure.
      
       For information on our data retention policy for user credentials, see
       [User credentials](/storage-transfer/docs/data-retention#user-credentials).
       
      .google.storagetransfer.v1.AzureCredentials azure_credentials = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      hasAzureCredentials in interface TransferTypes.AzureBlobStorageDataOrBuilder
      Returns:
      Whether the azureCredentials field is set.
    • getAzureCredentials

      public TransferTypes.AzureCredentials getAzureCredentials()
       Required. Input only. Credentials used to authenticate API requests to
       Azure.
      
       For information on our data retention policy for user credentials, see
       [User credentials](/storage-transfer/docs/data-retention#user-credentials).
       
      .google.storagetransfer.v1.AzureCredentials azure_credentials = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      getAzureCredentials in interface TransferTypes.AzureBlobStorageDataOrBuilder
      Returns:
      The azureCredentials.
    • setAzureCredentials

       Required. Input only. Credentials used to authenticate API requests to
       Azure.
      
       For information on our data retention policy for user credentials, see
       [User credentials](/storage-transfer/docs/data-retention#user-credentials).
       
      .google.storagetransfer.v1.AzureCredentials azure_credentials = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];
    • setAzureCredentials

       Required. Input only. Credentials used to authenticate API requests to
       Azure.
      
       For information on our data retention policy for user credentials, see
       [User credentials](/storage-transfer/docs/data-retention#user-credentials).
       
      .google.storagetransfer.v1.AzureCredentials azure_credentials = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];
    • mergeAzureCredentials

       Required. Input only. Credentials used to authenticate API requests to
       Azure.
      
       For information on our data retention policy for user credentials, see
       [User credentials](/storage-transfer/docs/data-retention#user-credentials).
       
      .google.storagetransfer.v1.AzureCredentials azure_credentials = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];
    • clearAzureCredentials

      public TransferTypes.AzureBlobStorageData.Builder clearAzureCredentials()
       Required. Input only. Credentials used to authenticate API requests to
       Azure.
      
       For information on our data retention policy for user credentials, see
       [User credentials](/storage-transfer/docs/data-retention#user-credentials).
       
      .google.storagetransfer.v1.AzureCredentials azure_credentials = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];
    • getAzureCredentialsBuilder

      public TransferTypes.AzureCredentials.Builder getAzureCredentialsBuilder()
       Required. Input only. Credentials used to authenticate API requests to
       Azure.
      
       For information on our data retention policy for user credentials, see
       [User credentials](/storage-transfer/docs/data-retention#user-credentials).
       
      .google.storagetransfer.v1.AzureCredentials azure_credentials = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];
    • getAzureCredentialsOrBuilder

      public TransferTypes.AzureCredentialsOrBuilder getAzureCredentialsOrBuilder()
       Required. Input only. Credentials used to authenticate API requests to
       Azure.
      
       For information on our data retention policy for user credentials, see
       [User credentials](/storage-transfer/docs/data-retention#user-credentials).
       
      .google.storagetransfer.v1.AzureCredentials azure_credentials = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      getAzureCredentialsOrBuilder in interface TransferTypes.AzureBlobStorageDataOrBuilder
    • getContainer

      public String getContainer()
       Required. The container to transfer from the Azure Storage account.
       
      string container = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContainer in interface TransferTypes.AzureBlobStorageDataOrBuilder
      Returns:
      The container.
    • getContainerBytes

      public com.google.protobuf.ByteString getContainerBytes()
       Required. The container to transfer from the Azure Storage account.
       
      string container = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContainerBytes in interface TransferTypes.AzureBlobStorageDataOrBuilder
      Returns:
      The bytes for container.
    • setContainer

       Required. The container to transfer from the Azure Storage account.
       
      string container = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The container to set.
      Returns:
      This builder for chaining.
    • clearContainer

       Required. The container to transfer from the Azure Storage account.
       
      string container = 4 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setContainerBytes

      public TransferTypes.AzureBlobStorageData.Builder setContainerBytes(com.google.protobuf.ByteString value)
       Required. The container to transfer from the Azure Storage account.
       
      string container = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for container to set.
      Returns:
      This builder for chaining.
    • getPath

      public String getPath()
       Root path to transfer objects.
      
       Must be an empty string or full path name that ends with a '/'. This field
       is treated as an object prefix. As such, it should generally not begin with
       a '/'.
       
      string path = 5;
      Specified by:
      getPath in interface TransferTypes.AzureBlobStorageDataOrBuilder
      Returns:
      The path.
    • getPathBytes

      public com.google.protobuf.ByteString getPathBytes()
       Root path to transfer objects.
      
       Must be an empty string or full path name that ends with a '/'. This field
       is treated as an object prefix. As such, it should generally not begin with
       a '/'.
       
      string path = 5;
      Specified by:
      getPathBytes in interface TransferTypes.AzureBlobStorageDataOrBuilder
      Returns:
      The bytes for path.
    • setPath

       Root path to transfer objects.
      
       Must be an empty string or full path name that ends with a '/'. This field
       is treated as an object prefix. As such, it should generally not begin with
       a '/'.
       
      string path = 5;
      Parameters:
      value - The path to set.
      Returns:
      This builder for chaining.
    • clearPath

       Root path to transfer objects.
      
       Must be an empty string or full path name that ends with a '/'. This field
       is treated as an object prefix. As such, it should generally not begin with
       a '/'.
       
      string path = 5;
      Returns:
      This builder for chaining.
    • setPathBytes

      public TransferTypes.AzureBlobStorageData.Builder setPathBytes(com.google.protobuf.ByteString value)
       Root path to transfer objects.
      
       Must be an empty string or full path name that ends with a '/'. This field
       is treated as an object prefix. As such, it should generally not begin with
       a '/'.
       
      string path = 5;
      Parameters:
      value - The bytes for path to set.
      Returns:
      This builder for chaining.
    • getCredentialsSecret

      public String getCredentialsSecret()
       Optional. The Resource name of a secret in Secret Manager.
      
       The Azure SAS token must be stored in Secret Manager in JSON format:
      
       {
       "sas_token" : "SAS_TOKEN"
       }
      
       [GoogleServiceAccount][google.storagetransfer.v1.GoogleServiceAccount] must
       be granted `roles/secretmanager.secretAccessor` for the resource.
      
       See [Configure access to a source: Microsoft Azure Blob Storage]
       (https://cloud.google.com/storage-transfer/docs/source-microsoft-azure#secret_manager)
       for more information.
      
       If `credentials_secret` is specified, do not specify
       [azure_credentials][google.storagetransfer.v1.AzureBlobStorageData.azure_credentials].
      
       Format: `projects/{project_number}/secrets/{secret_name}`
       
      string credentials_secret = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCredentialsSecret in interface TransferTypes.AzureBlobStorageDataOrBuilder
      Returns:
      The credentialsSecret.
    • getCredentialsSecretBytes

      public com.google.protobuf.ByteString getCredentialsSecretBytes()
       Optional. The Resource name of a secret in Secret Manager.
      
       The Azure SAS token must be stored in Secret Manager in JSON format:
      
       {
       "sas_token" : "SAS_TOKEN"
       }
      
       [GoogleServiceAccount][google.storagetransfer.v1.GoogleServiceAccount] must
       be granted `roles/secretmanager.secretAccessor` for the resource.
      
       See [Configure access to a source: Microsoft Azure Blob Storage]
       (https://cloud.google.com/storage-transfer/docs/source-microsoft-azure#secret_manager)
       for more information.
      
       If `credentials_secret` is specified, do not specify
       [azure_credentials][google.storagetransfer.v1.AzureBlobStorageData.azure_credentials].
      
       Format: `projects/{project_number}/secrets/{secret_name}`
       
      string credentials_secret = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCredentialsSecretBytes in interface TransferTypes.AzureBlobStorageDataOrBuilder
      Returns:
      The bytes for credentialsSecret.
    • setCredentialsSecret

      public TransferTypes.AzureBlobStorageData.Builder setCredentialsSecret(String value)
       Optional. The Resource name of a secret in Secret Manager.
      
       The Azure SAS token must be stored in Secret Manager in JSON format:
      
       {
       "sas_token" : "SAS_TOKEN"
       }
      
       [GoogleServiceAccount][google.storagetransfer.v1.GoogleServiceAccount] must
       be granted `roles/secretmanager.secretAccessor` for the resource.
      
       See [Configure access to a source: Microsoft Azure Blob Storage]
       (https://cloud.google.com/storage-transfer/docs/source-microsoft-azure#secret_manager)
       for more information.
      
       If `credentials_secret` is specified, do not specify
       [azure_credentials][google.storagetransfer.v1.AzureBlobStorageData.azure_credentials].
      
       Format: `projects/{project_number}/secrets/{secret_name}`
       
      string credentials_secret = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The credentialsSecret to set.
      Returns:
      This builder for chaining.
    • clearCredentialsSecret

      public TransferTypes.AzureBlobStorageData.Builder clearCredentialsSecret()
       Optional. The Resource name of a secret in Secret Manager.
      
       The Azure SAS token must be stored in Secret Manager in JSON format:
      
       {
       "sas_token" : "SAS_TOKEN"
       }
      
       [GoogleServiceAccount][google.storagetransfer.v1.GoogleServiceAccount] must
       be granted `roles/secretmanager.secretAccessor` for the resource.
      
       See [Configure access to a source: Microsoft Azure Blob Storage]
       (https://cloud.google.com/storage-transfer/docs/source-microsoft-azure#secret_manager)
       for more information.
      
       If `credentials_secret` is specified, do not specify
       [azure_credentials][google.storagetransfer.v1.AzureBlobStorageData.azure_credentials].
      
       Format: `projects/{project_number}/secrets/{secret_name}`
       
      string credentials_secret = 7 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setCredentialsSecretBytes

      public TransferTypes.AzureBlobStorageData.Builder setCredentialsSecretBytes(com.google.protobuf.ByteString value)
       Optional. The Resource name of a secret in Secret Manager.
      
       The Azure SAS token must be stored in Secret Manager in JSON format:
      
       {
       "sas_token" : "SAS_TOKEN"
       }
      
       [GoogleServiceAccount][google.storagetransfer.v1.GoogleServiceAccount] must
       be granted `roles/secretmanager.secretAccessor` for the resource.
      
       See [Configure access to a source: Microsoft Azure Blob Storage]
       (https://cloud.google.com/storage-transfer/docs/source-microsoft-azure#secret_manager)
       for more information.
      
       If `credentials_secret` is specified, do not specify
       [azure_credentials][google.storagetransfer.v1.AzureBlobStorageData.azure_credentials].
      
       Format: `projects/{project_number}/secrets/{secret_name}`
       
      string credentials_secret = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for credentialsSecret to set.
      Returns:
      This builder for chaining.
    • hasFederatedIdentityConfig

      public boolean hasFederatedIdentityConfig()
       Optional. Federated identity config of a user registered Azure application.
      
       If `federated_identity_config` is specified, do not specify
       [azure_credentials][google.storagetransfer.v1.AzureBlobStorageData.azure_credentials]
       or
       [credentials_secret][google.storagetransfer.v1.AzureBlobStorageData.credentials_secret].
       
      .google.storagetransfer.v1.AzureBlobStorageData.FederatedIdentityConfig federated_identity_config = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasFederatedIdentityConfig in interface TransferTypes.AzureBlobStorageDataOrBuilder
      Returns:
      Whether the federatedIdentityConfig field is set.
    • getFederatedIdentityConfig

       Optional. Federated identity config of a user registered Azure application.
      
       If `federated_identity_config` is specified, do not specify
       [azure_credentials][google.storagetransfer.v1.AzureBlobStorageData.azure_credentials]
       or
       [credentials_secret][google.storagetransfer.v1.AzureBlobStorageData.credentials_secret].
       
      .google.storagetransfer.v1.AzureBlobStorageData.FederatedIdentityConfig federated_identity_config = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFederatedIdentityConfig in interface TransferTypes.AzureBlobStorageDataOrBuilder
      Returns:
      The federatedIdentityConfig.
    • setFederatedIdentityConfig

       Optional. Federated identity config of a user registered Azure application.
      
       If `federated_identity_config` is specified, do not specify
       [azure_credentials][google.storagetransfer.v1.AzureBlobStorageData.azure_credentials]
       or
       [credentials_secret][google.storagetransfer.v1.AzureBlobStorageData.credentials_secret].
       
      .google.storagetransfer.v1.AzureBlobStorageData.FederatedIdentityConfig federated_identity_config = 8 [(.google.api.field_behavior) = OPTIONAL];
    • setFederatedIdentityConfig

       Optional. Federated identity config of a user registered Azure application.
      
       If `federated_identity_config` is specified, do not specify
       [azure_credentials][google.storagetransfer.v1.AzureBlobStorageData.azure_credentials]
       or
       [credentials_secret][google.storagetransfer.v1.AzureBlobStorageData.credentials_secret].
       
      .google.storagetransfer.v1.AzureBlobStorageData.FederatedIdentityConfig federated_identity_config = 8 [(.google.api.field_behavior) = OPTIONAL];
    • mergeFederatedIdentityConfig

       Optional. Federated identity config of a user registered Azure application.
      
       If `federated_identity_config` is specified, do not specify
       [azure_credentials][google.storagetransfer.v1.AzureBlobStorageData.azure_credentials]
       or
       [credentials_secret][google.storagetransfer.v1.AzureBlobStorageData.credentials_secret].
       
      .google.storagetransfer.v1.AzureBlobStorageData.FederatedIdentityConfig federated_identity_config = 8 [(.google.api.field_behavior) = OPTIONAL];
    • clearFederatedIdentityConfig

      public TransferTypes.AzureBlobStorageData.Builder clearFederatedIdentityConfig()
       Optional. Federated identity config of a user registered Azure application.
      
       If `federated_identity_config` is specified, do not specify
       [azure_credentials][google.storagetransfer.v1.AzureBlobStorageData.azure_credentials]
       or
       [credentials_secret][google.storagetransfer.v1.AzureBlobStorageData.credentials_secret].
       
      .google.storagetransfer.v1.AzureBlobStorageData.FederatedIdentityConfig federated_identity_config = 8 [(.google.api.field_behavior) = OPTIONAL];
    • getFederatedIdentityConfigBuilder

      public TransferTypes.AzureBlobStorageData.FederatedIdentityConfig.Builder getFederatedIdentityConfigBuilder()
       Optional. Federated identity config of a user registered Azure application.
      
       If `federated_identity_config` is specified, do not specify
       [azure_credentials][google.storagetransfer.v1.AzureBlobStorageData.azure_credentials]
       or
       [credentials_secret][google.storagetransfer.v1.AzureBlobStorageData.credentials_secret].
       
      .google.storagetransfer.v1.AzureBlobStorageData.FederatedIdentityConfig federated_identity_config = 8 [(.google.api.field_behavior) = OPTIONAL];
    • getFederatedIdentityConfigOrBuilder

      public TransferTypes.AzureBlobStorageData.FederatedIdentityConfigOrBuilder getFederatedIdentityConfigOrBuilder()
       Optional. Federated identity config of a user registered Azure application.
      
       If `federated_identity_config` is specified, do not specify
       [azure_credentials][google.storagetransfer.v1.AzureBlobStorageData.azure_credentials]
       or
       [credentials_secret][google.storagetransfer.v1.AzureBlobStorageData.credentials_secret].
       
      .google.storagetransfer.v1.AzureBlobStorageData.FederatedIdentityConfig federated_identity_config = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFederatedIdentityConfigOrBuilder in interface TransferTypes.AzureBlobStorageDataOrBuilder