public static final class Repository.GitRemoteSettings.Builder extends GeneratedMessage.Builder<Repository.GitRemoteSettings.Builder> implements Repository.GitRemoteSettingsOrBuilderControls Git remote configuration for a repository.
Protobuf type google.cloud.dataform.v1beta1.Repository.GitRemoteSettings
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Repository.GitRemoteSettings.BuilderImplements
Repository.GitRemoteSettingsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Repository.GitRemoteSettings build()| Returns | |
|---|---|
| Type | Description |
Repository.GitRemoteSettings |
|
buildPartial()
public Repository.GitRemoteSettings buildPartial()| Returns | |
|---|---|
| Type | Description |
Repository.GitRemoteSettings |
|
clear()
public Repository.GitRemoteSettings.Builder clear()| Returns | |
|---|---|
| Type | Description |
Repository.GitRemoteSettings.Builder |
|
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 | |
|---|---|
| Type | Description |
Repository.GitRemoteSettings.Builder |
This builder for chaining. |
clearDefaultBranch()
public Repository.GitRemoteSettings.Builder clearDefaultBranch() Optional. The Git remote's default branch name.
If not set, main will be used.
string default_branch = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Repository.GitRemoteSettings.Builder |
This builder for chaining. |
clearEffectiveDefaultBranch()
public Repository.GitRemoteSettings.Builder clearEffectiveDefaultBranch() Output only. The Git remote's effective default branch name.
This is the default branch name of the Git remote if it is set,
otherwise it is main.
string effective_default_branch = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Repository.GitRemoteSettings.Builder |
This builder for chaining. |
clearGitRepositoryLink()
public Repository.GitRemoteSettings.Builder clearGitRepositoryLink() Optional. Resource name for the GitRepositoryLink used for machine
credentials. Must be in the format
projects/*/locations/*/connections/*/gitRepositoryLinks/*
optional string git_repository_link = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
Repository.GitRemoteSettings.Builder |
This builder for chaining. |
clearSshAuthenticationConfig()
public Repository.GitRemoteSettings.Builder clearSshAuthenticationConfig()Optional. Authentication fields for remote uris using SSH protocol.
.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Repository.GitRemoteSettings.Builder |
|
clearTokenStatus() (deprecated)
public Repository.GitRemoteSettings.Builder clearTokenStatus()Deprecated. google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=921
Output only. Deprecated: The field does not contain any token status information. Instead use https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories/computeAccessTokenStatus
.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Repository.GitRemoteSettings.Builder |
This builder for chaining. |
clearUrl()
public Repository.GitRemoteSettings.Builder clearUrl()Required. The Git remote's URL.
string url = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Repository.GitRemoteSettings.Builder |
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) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The authenticationTokenSecretVersion. |
getAuthenticationTokenSecretVersionBytes()
public 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) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for authenticationTokenSecretVersion. |
getDefaultBranch()
public String getDefaultBranch() Optional. The Git remote's default branch name.
If not set, main will be used.
string default_branch = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The defaultBranch. |
getDefaultBranchBytes()
public ByteString getDefaultBranchBytes() Optional. The Git remote's default branch name.
If not set, main will be used.
string default_branch = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for defaultBranch. |
getDefaultInstanceForType()
public Repository.GitRemoteSettings getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Repository.GitRemoteSettings |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEffectiveDefaultBranch()
public String getEffectiveDefaultBranch() Output only. The Git remote's effective default branch name.
This is the default branch name of the Git remote if it is set,
otherwise it is main.
string effective_default_branch = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The effectiveDefaultBranch. |
getEffectiveDefaultBranchBytes()
public ByteString getEffectiveDefaultBranchBytes() Output only. The Git remote's effective default branch name.
This is the default branch name of the Git remote if it is set,
otherwise it is main.
string effective_default_branch = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for effectiveDefaultBranch. |
getGitRepositoryLink()
public String getGitRepositoryLink() Optional. Resource name for the GitRepositoryLink used for machine
credentials. Must be in the format
projects/*/locations/*/connections/*/gitRepositoryLinks/*
optional string git_repository_link = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The gitRepositoryLink. |
getGitRepositoryLinkBytes()
public ByteString getGitRepositoryLinkBytes() Optional. Resource name for the GitRepositoryLink used for machine
credentials. Must be in the format
projects/*/locations/*/connections/*/gitRepositoryLinks/*
optional string git_repository_link = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for gitRepositoryLink. |
getSshAuthenticationConfig()
public Repository.GitRemoteSettings.SshAuthenticationConfig getSshAuthenticationConfig()Optional. Authentication fields for remote uris using SSH protocol.
.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Repository.GitRemoteSettings.SshAuthenticationConfig |
The sshAuthenticationConfig. |
getSshAuthenticationConfigBuilder()
public Repository.GitRemoteSettings.SshAuthenticationConfig.Builder getSshAuthenticationConfigBuilder()Optional. Authentication fields for remote uris using SSH protocol.
.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Repository.GitRemoteSettings.SshAuthenticationConfig.Builder |
|
getSshAuthenticationConfigOrBuilder()
public Repository.GitRemoteSettings.SshAuthenticationConfigOrBuilder getSshAuthenticationConfigOrBuilder()Optional. Authentication fields for remote uris using SSH protocol.
.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Repository.GitRemoteSettings.SshAuthenticationConfigOrBuilder |
|
getTokenStatus() (deprecated)
public Repository.GitRemoteSettings.TokenStatus getTokenStatus()Deprecated. google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=921
Output only. Deprecated: The field does not contain any token status information. Instead use https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories/computeAccessTokenStatus
.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Repository.GitRemoteSettings.TokenStatus |
The tokenStatus. |
getTokenStatusValue() (deprecated)
public int getTokenStatusValue()Deprecated. google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=921
Output only. Deprecated: The field does not contain any token status information. Instead use https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories/computeAccessTokenStatus
.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for tokenStatus. |
getUrl()
public String getUrl()Required. The Git remote's URL.
string url = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The url. |
getUrlBytes()
public ByteString getUrlBytes()Required. The Git remote's URL.
string url = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for url. |
hasGitRepositoryLink()
public boolean hasGitRepositoryLink() Optional. Resource name for the GitRepositoryLink used for machine
credentials. Must be in the format
projects/*/locations/*/connections/*/gitRepositoryLinks/*
optional string git_repository_link = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the gitRepositoryLink field is set. |
hasSshAuthenticationConfig()
public boolean hasSshAuthenticationConfig()Optional. Authentication fields for remote uris using SSH protocol.
.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the sshAuthenticationConfig field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Repository.GitRemoteSettings other)
public Repository.GitRemoteSettings.Builder mergeFrom(Repository.GitRemoteSettings other)| Parameter | |
|---|---|
| Name | Description |
other |
Repository.GitRemoteSettings |
| Returns | |
|---|---|
| Type | Description |
Repository.GitRemoteSettings.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Repository.GitRemoteSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Repository.GitRemoteSettings.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Repository.GitRemoteSettings.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Repository.GitRemoteSettings.Builder |
|
mergeSshAuthenticationConfig(Repository.GitRemoteSettings.SshAuthenticationConfig value)
public Repository.GitRemoteSettings.Builder mergeSshAuthenticationConfig(Repository.GitRemoteSettings.SshAuthenticationConfig value)Optional. Authentication fields for remote uris using SSH protocol.
.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Repository.GitRemoteSettings.SshAuthenticationConfig |
| Returns | |
|---|---|
| Type | Description |
Repository.GitRemoteSettings.Builder |
|
setAuthenticationTokenSecretVersion(String value)
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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe authenticationTokenSecretVersion to set. |
| Returns | |
|---|---|
| Type | Description |
Repository.GitRemoteSettings.Builder |
This builder for chaining. |
setAuthenticationTokenSecretVersionBytes(ByteString value)
public Repository.GitRemoteSettings.Builder setAuthenticationTokenSecretVersionBytes(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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for authenticationTokenSecretVersion to set. |
| Returns | |
|---|---|
| Type | Description |
Repository.GitRemoteSettings.Builder |
This builder for chaining. |
setDefaultBranch(String value)
public Repository.GitRemoteSettings.Builder setDefaultBranch(String value) Optional. The Git remote's default branch name.
If not set, main will be used.
string default_branch = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe defaultBranch to set. |
| Returns | |
|---|---|
| Type | Description |
Repository.GitRemoteSettings.Builder |
This builder for chaining. |
setDefaultBranchBytes(ByteString value)
public Repository.GitRemoteSettings.Builder setDefaultBranchBytes(ByteString value) Optional. The Git remote's default branch name.
If not set, main will be used.
string default_branch = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for defaultBranch to set. |
| Returns | |
|---|---|
| Type | Description |
Repository.GitRemoteSettings.Builder |
This builder for chaining. |
setEffectiveDefaultBranch(String value)
public Repository.GitRemoteSettings.Builder setEffectiveDefaultBranch(String value) Output only. The Git remote's effective default branch name.
This is the default branch name of the Git remote if it is set,
otherwise it is main.
string effective_default_branch = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe effectiveDefaultBranch to set. |
| Returns | |
|---|---|
| Type | Description |
Repository.GitRemoteSettings.Builder |
This builder for chaining. |
setEffectiveDefaultBranchBytes(ByteString value)
public Repository.GitRemoteSettings.Builder setEffectiveDefaultBranchBytes(ByteString value) Output only. The Git remote's effective default branch name.
This is the default branch name of the Git remote if it is set,
otherwise it is main.
string effective_default_branch = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for effectiveDefaultBranch to set. |
| Returns | |
|---|---|
| Type | Description |
Repository.GitRemoteSettings.Builder |
This builder for chaining. |
setGitRepositoryLink(String value)
public Repository.GitRemoteSettings.Builder setGitRepositoryLink(String value) Optional. Resource name for the GitRepositoryLink used for machine
credentials. Must be in the format
projects/*/locations/*/connections/*/gitRepositoryLinks/*
optional string git_repository_link = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe gitRepositoryLink to set. |
| Returns | |
|---|---|
| Type | Description |
Repository.GitRemoteSettings.Builder |
This builder for chaining. |
setGitRepositoryLinkBytes(ByteString value)
public Repository.GitRemoteSettings.Builder setGitRepositoryLinkBytes(ByteString value) Optional. Resource name for the GitRepositoryLink used for machine
credentials. Must be in the format
projects/*/locations/*/connections/*/gitRepositoryLinks/*
optional string git_repository_link = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for gitRepositoryLink to set. |
| Returns | |
|---|---|
| Type | Description |
Repository.GitRemoteSettings.Builder |
This builder for chaining. |
setSshAuthenticationConfig(Repository.GitRemoteSettings.SshAuthenticationConfig value)
public Repository.GitRemoteSettings.Builder setSshAuthenticationConfig(Repository.GitRemoteSettings.SshAuthenticationConfig value)Optional. Authentication fields for remote uris using SSH protocol.
.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Repository.GitRemoteSettings.SshAuthenticationConfig |
| Returns | |
|---|---|
| Type | Description |
Repository.GitRemoteSettings.Builder |
|
setSshAuthenticationConfig(Repository.GitRemoteSettings.SshAuthenticationConfig.Builder builderForValue)
public Repository.GitRemoteSettings.Builder setSshAuthenticationConfig(Repository.GitRemoteSettings.SshAuthenticationConfig.Builder builderForValue)Optional. Authentication fields for remote uris using SSH protocol.
.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Repository.GitRemoteSettings.SshAuthenticationConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
Repository.GitRemoteSettings.Builder |
|
setTokenStatus(Repository.GitRemoteSettings.TokenStatus value) (deprecated)
public Repository.GitRemoteSettings.Builder setTokenStatus(Repository.GitRemoteSettings.TokenStatus value)Deprecated. google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=921
Output only. Deprecated: The field does not contain any token status information. Instead use https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories/computeAccessTokenStatus
.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Repository.GitRemoteSettings.TokenStatusThe tokenStatus to set. |
| Returns | |
|---|---|
| Type | Description |
Repository.GitRemoteSettings.Builder |
This builder for chaining. |
setTokenStatusValue(int value) (deprecated)
public Repository.GitRemoteSettings.Builder setTokenStatusValue(int value)Deprecated. google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=921
Output only. Deprecated: The field does not contain any token status information. Instead use https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories/computeAccessTokenStatus
.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for tokenStatus to set. |
| Returns | |
|---|---|
| Type | Description |
Repository.GitRemoteSettings.Builder |
This builder for chaining. |
setUrl(String value)
public Repository.GitRemoteSettings.Builder setUrl(String value)Required. The Git remote's URL.
string url = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe url to set. |
| Returns | |
|---|---|
| Type | Description |
Repository.GitRemoteSettings.Builder |
This builder for chaining. |
setUrlBytes(ByteString value)
public Repository.GitRemoteSettings.Builder setUrlBytes(ByteString value)Required. The Git remote's URL.
string url = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for url to set. |
| Returns | |
|---|---|
| Type | Description |
Repository.GitRemoteSettings.Builder |
This builder for chaining. |