Class Repository.GitRemoteSettings.Builder

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

public static final class Repository.GitRemoteSettings.Builder extends com.google.protobuf.GeneratedMessage.Builder<Repository.GitRemoteSettings.Builder> implements Repository.GitRemoteSettingsOrBuilder
 Controls Git remote configuration for a repository.
 
Protobuf type google.cloud.dataform.v1.Repository.GitRemoteSettings
  • 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<Repository.GitRemoteSettings.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<Repository.GitRemoteSettings.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<Repository.GitRemoteSettings.Builder>
    • getDefaultInstanceForType

      public Repository.GitRemoteSettings 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 Repository.GitRemoteSettings buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public Repository.GitRemoteSettings.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<Repository.GitRemoteSettings.Builder>
      Throws:
      IOException
    • getUrl

      public String getUrl()
       Required. The Git remote's URL.
       
      string url = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUrl in interface Repository.GitRemoteSettingsOrBuilder
      Returns:
      The url.
    • getUrlBytes

      public com.google.protobuf.ByteString getUrlBytes()
       Required. The Git remote's URL.
       
      string url = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUrlBytes in interface Repository.GitRemoteSettingsOrBuilder
      Returns:
      The bytes for url.
    • setUrl

       Required. The Git remote's URL.
       
      string url = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The url to set.
      Returns:
      This builder for chaining.
    • clearUrl

       Required. The Git remote's URL.
       
      string url = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setUrlBytes

      public Repository.GitRemoteSettings.Builder setUrlBytes(com.google.protobuf.ByteString value)
       Required. The Git remote's URL.
       
      string url = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for url to set.
      Returns:
      This builder for chaining.
    • getDefaultBranch

      public String getDefaultBranch()
       Required. The Git remote's default branch name.
       
      string default_branch = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDefaultBranch in interface Repository.GitRemoteSettingsOrBuilder
      Returns:
      The defaultBranch.
    • getDefaultBranchBytes

      public com.google.protobuf.ByteString getDefaultBranchBytes()
       Required. The Git remote's default branch name.
       
      string default_branch = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDefaultBranchBytes in interface Repository.GitRemoteSettingsOrBuilder
      Returns:
      The bytes for defaultBranch.
    • setDefaultBranch

      public Repository.GitRemoteSettings.Builder setDefaultBranch(String value)
       Required. The Git remote's default branch name.
       
      string default_branch = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The defaultBranch to set.
      Returns:
      This builder for chaining.
    • clearDefaultBranch

      public Repository.GitRemoteSettings.Builder clearDefaultBranch()
       Required. The Git remote's default branch name.
       
      string default_branch = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setDefaultBranchBytes

      public Repository.GitRemoteSettings.Builder setDefaultBranchBytes(com.google.protobuf.ByteString value)
       Required. The Git remote's default branch name.
       
      string default_branch = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for defaultBranch to set.
      Returns:
      This builder for chaining.
    • getAuthenticationTokenSecretVersion

      public String getAuthenticationTokenSecretVersion()
       Optional. The name of the Secret Manager secret version to use as an
       authentication token for Git operations. Must be in the format
       `projects/*/secrets/*/versions/*`.
       
      string authentication_token_secret_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getAuthenticationTokenSecretVersion in interface Repository.GitRemoteSettingsOrBuilder
      Returns:
      The authenticationTokenSecretVersion.
    • getAuthenticationTokenSecretVersionBytes

      public com.google.protobuf.ByteString getAuthenticationTokenSecretVersionBytes()
       Optional. The name of the Secret Manager secret version to use as an
       authentication token for Git operations. Must be in the format
       `projects/*/secrets/*/versions/*`.
       
      string authentication_token_secret_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getAuthenticationTokenSecretVersionBytes in interface Repository.GitRemoteSettingsOrBuilder
      Returns:
      The bytes for authenticationTokenSecretVersion.
    • setAuthenticationTokenSecretVersion

      public Repository.GitRemoteSettings.Builder setAuthenticationTokenSecretVersion(String value)
       Optional. The name of the Secret Manager secret version to use as an
       authentication token for Git operations. Must be in the format
       `projects/*/secrets/*/versions/*`.
       
      string authentication_token_secret_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The authenticationTokenSecretVersion to set.
      Returns:
      This builder for chaining.
    • clearAuthenticationTokenSecretVersion

      public Repository.GitRemoteSettings.Builder clearAuthenticationTokenSecretVersion()
       Optional. The name of the Secret Manager secret version to use as an
       authentication token for Git operations. Must be in the format
       `projects/*/secrets/*/versions/*`.
       
      string authentication_token_secret_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setAuthenticationTokenSecretVersionBytes

      public Repository.GitRemoteSettings.Builder setAuthenticationTokenSecretVersionBytes(com.google.protobuf.ByteString value)
       Optional. The name of the Secret Manager secret version to use as an
       authentication token for Git operations. Must be in the format
       `projects/*/secrets/*/versions/*`.
       
      string authentication_token_secret_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for authenticationTokenSecretVersion to set.
      Returns:
      This builder for chaining.
    • hasSshAuthenticationConfig

      public boolean hasSshAuthenticationConfig()
       Optional. Authentication fields for remote uris using SSH protocol.
       
      .google.cloud.dataform.v1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasSshAuthenticationConfig in interface Repository.GitRemoteSettingsOrBuilder
      Returns:
      Whether the sshAuthenticationConfig field is set.
    • getSshAuthenticationConfig

      public Repository.GitRemoteSettings.SshAuthenticationConfig getSshAuthenticationConfig()
       Optional. Authentication fields for remote uris using SSH protocol.
       
      .google.cloud.dataform.v1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSshAuthenticationConfig in interface Repository.GitRemoteSettingsOrBuilder
      Returns:
      The sshAuthenticationConfig.
    • setSshAuthenticationConfig

       Optional. Authentication fields for remote uris using SSH protocol.
       
      .google.cloud.dataform.v1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL];
    • setSshAuthenticationConfig

       Optional. Authentication fields for remote uris using SSH protocol.
       
      .google.cloud.dataform.v1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL];
    • mergeSshAuthenticationConfig

       Optional. Authentication fields for remote uris using SSH protocol.
       
      .google.cloud.dataform.v1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL];
    • clearSshAuthenticationConfig

      public Repository.GitRemoteSettings.Builder clearSshAuthenticationConfig()
       Optional. Authentication fields for remote uris using SSH protocol.
       
      .google.cloud.dataform.v1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getSshAuthenticationConfigBuilder

      public Repository.GitRemoteSettings.SshAuthenticationConfig.Builder getSshAuthenticationConfigBuilder()
       Optional. Authentication fields for remote uris using SSH protocol.
       
      .google.cloud.dataform.v1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getSshAuthenticationConfigOrBuilder

      public Repository.GitRemoteSettings.SshAuthenticationConfigOrBuilder getSshAuthenticationConfigOrBuilder()
       Optional. Authentication fields for remote uris using SSH protocol.
       
      .google.cloud.dataform.v1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSshAuthenticationConfigOrBuilder in interface Repository.GitRemoteSettingsOrBuilder
    • getTokenStatusValue

      @Deprecated public int getTokenStatusValue()
      Deprecated.
      google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is deprecated. See google/cloud/dataform/v1/dataform.proto;l=881
       Output only. Deprecated: The field does not contain any token status
       information.
       
      .google.cloud.dataform.v1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTokenStatusValue in interface Repository.GitRemoteSettingsOrBuilder
      Returns:
      The enum numeric value on the wire for tokenStatus.
    • setTokenStatusValue

      @Deprecated public Repository.GitRemoteSettings.Builder setTokenStatusValue(int value)
      Deprecated.
      google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is deprecated. See google/cloud/dataform/v1/dataform.proto;l=881
       Output only. Deprecated: The field does not contain any token status
       information.
       
      .google.cloud.dataform.v1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for tokenStatus to set.
      Returns:
      This builder for chaining.
    • getTokenStatus

      Deprecated.
      google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is deprecated. See google/cloud/dataform/v1/dataform.proto;l=881
       Output only. Deprecated: The field does not contain any token status
       information.
       
      .google.cloud.dataform.v1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTokenStatus in interface Repository.GitRemoteSettingsOrBuilder
      Returns:
      The tokenStatus.
    • setTokenStatus

      Deprecated.
      google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is deprecated. See google/cloud/dataform/v1/dataform.proto;l=881
       Output only. Deprecated: The field does not contain any token status
       information.
       
      .google.cloud.dataform.v1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The tokenStatus to set.
      Returns:
      This builder for chaining.
    • clearTokenStatus

      Deprecated.
      google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is deprecated. See google/cloud/dataform/v1/dataform.proto;l=881
       Output only. Deprecated: The field does not contain any token status
       information.
       
      .google.cloud.dataform.v1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.