Class GitSource.Builder (0.3.0)

public static final class GitSource.Builder extends GeneratedMessage.Builder<GitSource.Builder> implements GitSourceOrBuilder

Defines how to access a Git source.

Protobuf type google.cloud.designcenter.v1.GitSource

Implements

GitSourceOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public GitSource build()
Returns
Type Description
GitSource

buildPartial()

public GitSource buildPartial()
Returns
Type Description
GitSource

clear()

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

clearCommitSha()

public GitSource.Builder clearCommitSha()

Output only. The commit SHA of the git repo deduced from given ref_tag.

string commit_sha = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GitSource.Builder

This builder for chaining.

clearDeveloperConnectConfig() (deprecated)

public GitSource.Builder clearDeveloperConnectConfig()

Optional. This config defines the location of a source through Developer Connect. Used to access private git repos.

.google.cloud.designcenter.v1.DeveloperConnectConfig developer_connect_config = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GitSource.Builder

clearDir()

public GitSource.Builder clearDir()

Optional. Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's dir is specified and is an absolute path, this value is ignored for that step's execution.

string dir = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GitSource.Builder

This builder for chaining.

clearRefTag()

public GitSource.Builder clearRefTag()

Required. The reference tag of the git repo.

string ref_tag = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GitSource.Builder

This builder for chaining.

clearRepo()

public GitSource.Builder clearRepo()

Required. Location of the git repo to build.

string repo = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GitSource.Builder

This builder for chaining.

getCommitSha()

public String getCommitSha()

Output only. The commit SHA of the git repo deduced from given ref_tag.

string commit_sha = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The commitSha.

getCommitShaBytes()

public ByteString getCommitShaBytes()

Output only. The commit SHA of the git repo deduced from given ref_tag.

string commit_sha = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for commitSha.

getDefaultInstanceForType()

public GitSource getDefaultInstanceForType()
Returns
Type Description
GitSource

getDescriptorForType()

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

getDeveloperConnectConfig() (deprecated)

public DeveloperConnectConfig getDeveloperConnectConfig()

Deprecated. google.cloud.designcenter.v1.GitSource.developer_connect_config is deprecated. See google/cloud/designcenter/v1/ingestion.proto;l=48

Optional. This config defines the location of a source through Developer Connect. Used to access private git repos.

.google.cloud.designcenter.v1.DeveloperConnectConfig developer_connect_config = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DeveloperConnectConfig

The developerConnectConfig.

getDeveloperConnectConfigBuilder() (deprecated)

public DeveloperConnectConfig.Builder getDeveloperConnectConfigBuilder()

Optional. This config defines the location of a source through Developer Connect. Used to access private git repos.

.google.cloud.designcenter.v1.DeveloperConnectConfig developer_connect_config = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DeveloperConnectConfig.Builder

getDeveloperConnectConfigOrBuilder() (deprecated)

public DeveloperConnectConfigOrBuilder getDeveloperConnectConfigOrBuilder()

Optional. This config defines the location of a source through Developer Connect. Used to access private git repos.

.google.cloud.designcenter.v1.DeveloperConnectConfig developer_connect_config = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DeveloperConnectConfigOrBuilder

getDir()

public String getDir()

Optional. Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's dir is specified and is an absolute path, this value is ignored for that step's execution.

string dir = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The dir.

getDirBytes()

public ByteString getDirBytes()

Optional. Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's dir is specified and is an absolute path, this value is ignored for that step's execution.

string dir = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for dir.

getRefTag()

public String getRefTag()

Required. The reference tag of the git repo.

string ref_tag = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The refTag.

getRefTagBytes()

public ByteString getRefTagBytes()

Required. The reference tag of the git repo.

string ref_tag = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for refTag.

getRepo()

public String getRepo()

Required. Location of the git repo to build.

string repo = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The repo.

getRepoBytes()

public ByteString getRepoBytes()

Required. Location of the git repo to build.

string repo = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for repo.

hasDeveloperConnectConfig() (deprecated)

public boolean hasDeveloperConnectConfig()

Deprecated. google.cloud.designcenter.v1.GitSource.developer_connect_config is deprecated. See google/cloud/designcenter/v1/ingestion.proto;l=48

Optional. This config defines the location of a source through Developer Connect. Used to access private git repos.

.google.cloud.designcenter.v1.DeveloperConnectConfig developer_connect_config = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the developerConnectConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDeveloperConnectConfig(DeveloperConnectConfig value) (deprecated)

public GitSource.Builder mergeDeveloperConnectConfig(DeveloperConnectConfig value)

Optional. This config defines the location of a source through Developer Connect. Used to access private git repos.

.google.cloud.designcenter.v1.DeveloperConnectConfig developer_connect_config = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value DeveloperConnectConfig
Returns
Type Description
GitSource.Builder

mergeFrom(GitSource other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCommitSha(String value)

public GitSource.Builder setCommitSha(String value)

Output only. The commit SHA of the git repo deduced from given ref_tag.

string commit_sha = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The commitSha to set.

Returns
Type Description
GitSource.Builder

This builder for chaining.

setCommitShaBytes(ByteString value)

public GitSource.Builder setCommitShaBytes(ByteString value)

Output only. The commit SHA of the git repo deduced from given ref_tag.

string commit_sha = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for commitSha to set.

Returns
Type Description
GitSource.Builder

This builder for chaining.

setDeveloperConnectConfig(DeveloperConnectConfig value) (deprecated)

public GitSource.Builder setDeveloperConnectConfig(DeveloperConnectConfig value)

Optional. This config defines the location of a source through Developer Connect. Used to access private git repos.

.google.cloud.designcenter.v1.DeveloperConnectConfig developer_connect_config = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value DeveloperConnectConfig
Returns
Type Description
GitSource.Builder

setDeveloperConnectConfig(DeveloperConnectConfig.Builder builderForValue) (deprecated)

public GitSource.Builder setDeveloperConnectConfig(DeveloperConnectConfig.Builder builderForValue)

Optional. This config defines the location of a source through Developer Connect. Used to access private git repos.

.google.cloud.designcenter.v1.DeveloperConnectConfig developer_connect_config = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue DeveloperConnectConfig.Builder
Returns
Type Description
GitSource.Builder

setDir(String value)

public GitSource.Builder setDir(String value)

Optional. Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's dir is specified and is an absolute path, this value is ignored for that step's execution.

string dir = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The dir to set.

Returns
Type Description
GitSource.Builder

This builder for chaining.

setDirBytes(ByteString value)

public GitSource.Builder setDirBytes(ByteString value)

Optional. Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's dir is specified and is an absolute path, this value is ignored for that step's execution.

string dir = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for dir to set.

Returns
Type Description
GitSource.Builder

This builder for chaining.

setRefTag(String value)

public GitSource.Builder setRefTag(String value)

Required. The reference tag of the git repo.

string ref_tag = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The refTag to set.

Returns
Type Description
GitSource.Builder

This builder for chaining.

setRefTagBytes(ByteString value)

public GitSource.Builder setRefTagBytes(ByteString value)

Required. The reference tag of the git repo.

string ref_tag = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for refTag to set.

Returns
Type Description
GitSource.Builder

This builder for chaining.

setRepo(String value)

public GitSource.Builder setRepo(String value)

Required. Location of the git repo to build.

string repo = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The repo to set.

Returns
Type Description
GitSource.Builder

This builder for chaining.

setRepoBytes(ByteString value)

public GitSource.Builder setRepoBytes(ByteString value)

Required. Location of the git repo to build.

string repo = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for repo to set.

Returns
Type Description
GitSource.Builder

This builder for chaining.