Class Repository.Builder (0.39.0)

public static final class Repository.Builder extends GeneratedMessageV3.Builder<Repository.Builder> implements RepositoryOrBuilder

Represents a Dataform Git repository.

Protobuf type google.cloud.dataform.v1beta1.Repository

Implements

RepositoryOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Repository.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Repository.Builder
Overrides

build()

public Repository build()
Returns
Type Description
Repository

buildPartial()

public Repository buildPartial()
Returns
Type Description
Repository

clear()

public Repository.Builder clear()
Returns
Type Description
Repository.Builder
Overrides

clearDisplayName()

public Repository.Builder clearDisplayName()

Optional. The repository's user-friendly name.

string display_name = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Repository.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Repository.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Repository.Builder
Overrides

clearGitRemoteSettings()

public Repository.Builder clearGitRemoteSettings()

Optional. If set, configures this repository to be linked to a Git remote.

.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Repository.Builder

clearLabels()

public Repository.Builder clearLabels()
Returns
Type Description
Repository.Builder

clearName()

public Repository.Builder clearName()

Output only. The repository's name.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Repository.Builder

This builder for chaining.

clearNpmrcEnvironmentVariablesSecretVersion()

public Repository.Builder clearNpmrcEnvironmentVariablesSecretVersion()

Optional. The name of the Secret Manager secret version to be used to interpolate variables into the .npmrc file for package installation operations. Must be in the format projects/*/secrets/*/versions/*. The file itself must be in a JSON format.

string npmrc_environment_variables_secret_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
Repository.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Repository.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Repository.Builder
Overrides

clearServiceAccount()

public Repository.Builder clearServiceAccount()

Optional. The service account to run workflow invocations under.

string service_account = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Repository.Builder

This builder for chaining.

clearSetAuthenticatedUserAdmin()

public Repository.Builder clearSetAuthenticatedUserAdmin()

Optional. Input only. If set to true, the authenticated user will be granted the roles/dataform.admin role on the created repository. To modify access to the created repository later apply setIamPolicy from https://cloud.google.com/dataform/reference/rest#rest-resource:-v1beta1.projects.locations.repositories

bool set_authenticated_user_admin = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
Repository.Builder

This builder for chaining.

clearWorkspaceCompilationOverrides()

public Repository.Builder clearWorkspaceCompilationOverrides()

Optional. If set, fields of workspace_compilation_overrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results. See documentation for WorkspaceCompilationOverrides for more information.

.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides workspace_compilation_overrides = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Repository.Builder

clone()

public Repository.Builder clone()
Returns
Type Description
Repository.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

Optional. Repository user labels.

map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public Repository getDefaultInstanceForType()
Returns
Type Description
Repository

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Optional. The repository's user-friendly name.

string display_name = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Optional. The repository's user-friendly name.

string display_name = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for displayName.

getGitRemoteSettings()

public Repository.GitRemoteSettings getGitRemoteSettings()

Optional. If set, configures this repository to be linked to a Git remote.

.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Repository.GitRemoteSettings

The gitRemoteSettings.

getGitRemoteSettingsBuilder()

public Repository.GitRemoteSettings.Builder getGitRemoteSettingsBuilder()

Optional. If set, configures this repository to be linked to a Git remote.

.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Repository.GitRemoteSettings.Builder

getGitRemoteSettingsOrBuilder()

public Repository.GitRemoteSettingsOrBuilder getGitRemoteSettingsOrBuilder()

Optional. If set, configures this repository to be linked to a Git remote.

.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Repository.GitRemoteSettingsOrBuilder

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. Repository user labels.

map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. Repository user labels.

map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. Repository user labels.

map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. Repository user labels.

map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Output only. The repository's name.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The repository's name.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getNpmrcEnvironmentVariablesSecretVersion()

public String getNpmrcEnvironmentVariablesSecretVersion()

Optional. The name of the Secret Manager secret version to be used to interpolate variables into the .npmrc file for package installation operations. Must be in the format projects/*/secrets/*/versions/*. The file itself must be in a JSON format.

string npmrc_environment_variables_secret_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The npmrcEnvironmentVariablesSecretVersion.

getNpmrcEnvironmentVariablesSecretVersionBytes()

public ByteString getNpmrcEnvironmentVariablesSecretVersionBytes()

Optional. The name of the Secret Manager secret version to be used to interpolate variables into the .npmrc file for package installation operations. Must be in the format projects/*/secrets/*/versions/*. The file itself must be in a JSON format.

string npmrc_environment_variables_secret_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for npmrcEnvironmentVariablesSecretVersion.

getServiceAccount()

public String getServiceAccount()

Optional. The service account to run workflow invocations under.

string service_account = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The serviceAccount.

getServiceAccountBytes()

public ByteString getServiceAccountBytes()

Optional. The service account to run workflow invocations under.

string service_account = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for serviceAccount.

getSetAuthenticatedUserAdmin()

public boolean getSetAuthenticatedUserAdmin()

Optional. Input only. If set to true, the authenticated user will be granted the roles/dataform.admin role on the created repository. To modify access to the created repository later apply setIamPolicy from https://cloud.google.com/dataform/reference/rest#rest-resource:-v1beta1.projects.locations.repositories

bool set_authenticated_user_admin = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
boolean

The setAuthenticatedUserAdmin.

getWorkspaceCompilationOverrides()

public Repository.WorkspaceCompilationOverrides getWorkspaceCompilationOverrides()

Optional. If set, fields of workspace_compilation_overrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results. See documentation for WorkspaceCompilationOverrides for more information.

.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides workspace_compilation_overrides = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Repository.WorkspaceCompilationOverrides

The workspaceCompilationOverrides.

getWorkspaceCompilationOverridesBuilder()

public Repository.WorkspaceCompilationOverrides.Builder getWorkspaceCompilationOverridesBuilder()

Optional. If set, fields of workspace_compilation_overrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results. See documentation for WorkspaceCompilationOverrides for more information.

.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides workspace_compilation_overrides = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Repository.WorkspaceCompilationOverrides.Builder

getWorkspaceCompilationOverridesOrBuilder()

public Repository.WorkspaceCompilationOverridesOrBuilder getWorkspaceCompilationOverridesOrBuilder()

Optional. If set, fields of workspace_compilation_overrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results. See documentation for WorkspaceCompilationOverrides for more information.

.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides workspace_compilation_overrides = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Repository.WorkspaceCompilationOverridesOrBuilder

hasGitRemoteSettings()

public boolean hasGitRemoteSettings()

Optional. If set, configures this repository to be linked to a Git remote.

.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the gitRemoteSettings field is set.

hasWorkspaceCompilationOverrides()

public boolean hasWorkspaceCompilationOverrides()

Optional. If set, fields of workspace_compilation_overrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results. See documentation for WorkspaceCompilationOverrides for more information.

.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides workspace_compilation_overrides = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the workspaceCompilationOverrides field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Repository other)

public Repository.Builder mergeFrom(Repository other)
Parameter
Name Description
other Repository
Returns
Type Description
Repository.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Repository.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Repository.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Repository.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Repository.Builder
Overrides

mergeGitRemoteSettings(Repository.GitRemoteSettings value)

public Repository.Builder mergeGitRemoteSettings(Repository.GitRemoteSettings value)

Optional. If set, configures this repository to be linked to a Git remote.

.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Repository.GitRemoteSettings
Returns
Type Description
Repository.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Repository.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Repository.Builder
Overrides

mergeWorkspaceCompilationOverrides(Repository.WorkspaceCompilationOverrides value)

public Repository.Builder mergeWorkspaceCompilationOverrides(Repository.WorkspaceCompilationOverrides value)

Optional. If set, fields of workspace_compilation_overrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results. See documentation for WorkspaceCompilationOverrides for more information.

.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides workspace_compilation_overrides = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Repository.WorkspaceCompilationOverrides
Returns
Type Description
Repository.Builder

putAllLabels(Map<String,String> values)

public Repository.Builder putAllLabels(Map<String,String> values)

Optional. Repository user labels.

map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
Repository.Builder

putLabels(String key, String value)

public Repository.Builder putLabels(String key, String value)

Optional. Repository user labels.

map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
Repository.Builder

removeLabels(String key)

public Repository.Builder removeLabels(String key)

Optional. Repository user labels.

map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
Repository.Builder

setDisplayName(String value)

public Repository.Builder setDisplayName(String value)

Optional. The repository's user-friendly name.

string display_name = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
Repository.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Repository.Builder setDisplayNameBytes(ByteString value)

Optional. The repository's user-friendly name.

string display_name = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
Repository.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Repository.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Repository.Builder
Overrides

setGitRemoteSettings(Repository.GitRemoteSettings value)

public Repository.Builder setGitRemoteSettings(Repository.GitRemoteSettings value)

Optional. If set, configures this repository to be linked to a Git remote.

.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Repository.GitRemoteSettings
Returns
Type Description
Repository.Builder

setGitRemoteSettings(Repository.GitRemoteSettings.Builder builderForValue)

public Repository.Builder setGitRemoteSettings(Repository.GitRemoteSettings.Builder builderForValue)

Optional. If set, configures this repository to be linked to a Git remote.

.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Repository.GitRemoteSettings.Builder
Returns
Type Description
Repository.Builder

setName(String value)

public Repository.Builder setName(String value)

Output only. The repository's name.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Repository.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Repository.Builder setNameBytes(ByteString value)

Output only. The repository's name.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Repository.Builder

This builder for chaining.

setNpmrcEnvironmentVariablesSecretVersion(String value)

public Repository.Builder setNpmrcEnvironmentVariablesSecretVersion(String value)

Optional. The name of the Secret Manager secret version to be used to interpolate variables into the .npmrc file for package installation operations. Must be in the format projects/*/secrets/*/versions/*. The file itself must be in a JSON format.

string npmrc_environment_variables_secret_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The npmrcEnvironmentVariablesSecretVersion to set.

Returns
Type Description
Repository.Builder

This builder for chaining.

setNpmrcEnvironmentVariablesSecretVersionBytes(ByteString value)

public Repository.Builder setNpmrcEnvironmentVariablesSecretVersionBytes(ByteString value)

Optional. The name of the Secret Manager secret version to be used to interpolate variables into the .npmrc file for package installation operations. Must be in the format projects/*/secrets/*/versions/*. The file itself must be in a JSON format.

string npmrc_environment_variables_secret_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for npmrcEnvironmentVariablesSecretVersion to set.

Returns
Type Description
Repository.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Repository.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Repository.Builder
Overrides

setServiceAccount(String value)

public Repository.Builder setServiceAccount(String value)

Optional. The service account to run workflow invocations under.

string service_account = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The serviceAccount to set.

Returns
Type Description
Repository.Builder

This builder for chaining.

setServiceAccountBytes(ByteString value)

public Repository.Builder setServiceAccountBytes(ByteString value)

Optional. The service account to run workflow invocations under.

string service_account = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for serviceAccount to set.

Returns
Type Description
Repository.Builder

This builder for chaining.

setSetAuthenticatedUserAdmin(boolean value)

public Repository.Builder setSetAuthenticatedUserAdmin(boolean value)

Optional. Input only. If set to true, the authenticated user will be granted the roles/dataform.admin role on the created repository. To modify access to the created repository later apply setIamPolicy from https://cloud.google.com/dataform/reference/rest#rest-resource:-v1beta1.projects.locations.repositories

bool set_authenticated_user_admin = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
value boolean

The setAuthenticatedUserAdmin to set.

Returns
Type Description
Repository.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Repository.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Repository.Builder
Overrides

setWorkspaceCompilationOverrides(Repository.WorkspaceCompilationOverrides value)

public Repository.Builder setWorkspaceCompilationOverrides(Repository.WorkspaceCompilationOverrides value)

Optional. If set, fields of workspace_compilation_overrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results. See documentation for WorkspaceCompilationOverrides for more information.

.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides workspace_compilation_overrides = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Repository.WorkspaceCompilationOverrides
Returns
Type Description
Repository.Builder

setWorkspaceCompilationOverrides(Repository.WorkspaceCompilationOverrides.Builder builderForValue)

public Repository.Builder setWorkspaceCompilationOverrides(Repository.WorkspaceCompilationOverrides.Builder builderForValue)

Optional. If set, fields of workspace_compilation_overrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results. See documentation for WorkspaceCompilationOverrides for more information.

.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides workspace_compilation_overrides = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Repository.WorkspaceCompilationOverrides.Builder
Returns
Type Description
Repository.Builder