public static final class DeveloperConnectSourceConfig.Builder extends GeneratedMessage.Builder<DeveloperConnectSourceConfig.Builder> implements DeveloperConnectSourceConfigOrBuilderThis config specifies the location of a source (such as GitHub or Bitbucket) through Developer Connect.
Protobuf type google.cloud.designcenter.v1.DeveloperConnectSourceConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DeveloperConnectSourceConfig.BuilderImplements
DeveloperConnectSourceConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public DeveloperConnectSourceConfig build()| Returns | |
|---|---|
| Type | Description |
DeveloperConnectSourceConfig |
|
buildPartial()
public DeveloperConnectSourceConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
DeveloperConnectSourceConfig |
|
clear()
public DeveloperConnectSourceConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
DeveloperConnectSourceConfig.Builder |
|
clearDeveloperConnectRepoUri()
public DeveloperConnectSourceConfig.Builder clearDeveloperConnectRepoUri() Required. The Developer Connect Git repository link, formatted as
projects/*/locations/*/connections/*/gitRepositoryLinks/*.
string developer_connect_repo_uri = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
DeveloperConnectSourceConfig.Builder |
This builder for chaining. |
clearDir()
public DeveloperConnectSourceConfig.Builder clearDir()Required. The sub-directory within the repository from which to read content. The path must be relative to the repository's root such as dir1/dir2. To read content from the root dir, provide "/" as the value of the field.
string dir = 5 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
DeveloperConnectSourceConfig.Builder |
This builder for chaining. |
clearFetchedCommitSha()
public DeveloperConnectSourceConfig.Builder clearFetchedCommitSha()Output only. The SHA of the commit deduced from GitReference.
string fetched_commit_sha = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
DeveloperConnectSourceConfig.Builder |
This builder for chaining. |
clearReference()
public DeveloperConnectSourceConfig.Builder clearReference()Required. The reference (for example, a branch, tag, or commit SHA) from which the content should be read.
.google.cloud.designcenter.v1.GitReference reference = 8 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
DeveloperConnectSourceConfig.Builder |
|
getDefaultInstanceForType()
public DeveloperConnectSourceConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DeveloperConnectSourceConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDeveloperConnectRepoUri()
public String getDeveloperConnectRepoUri() Required. The Developer Connect Git repository link, formatted as
projects/*/locations/*/connections/*/gitRepositoryLinks/*.
string developer_connect_repo_uri = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The developerConnectRepoUri. |
getDeveloperConnectRepoUriBytes()
public ByteString getDeveloperConnectRepoUriBytes() Required. The Developer Connect Git repository link, formatted as
projects/*/locations/*/connections/*/gitRepositoryLinks/*.
string developer_connect_repo_uri = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for developerConnectRepoUri. |
getDir()
public String getDir()Required. The sub-directory within the repository from which to read content. The path must be relative to the repository's root such as dir1/dir2. To read content from the root dir, provide "/" as the value of the field.
string dir = 5 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The dir. |
getDirBytes()
public ByteString getDirBytes()Required. The sub-directory within the repository from which to read content. The path must be relative to the repository's root such as dir1/dir2. To read content from the root dir, provide "/" as the value of the field.
string dir = 5 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for dir. |
getFetchedCommitSha()
public String getFetchedCommitSha()Output only. The SHA of the commit deduced from GitReference.
string fetched_commit_sha = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The fetchedCommitSha. |
getFetchedCommitShaBytes()
public ByteString getFetchedCommitShaBytes()Output only. The SHA of the commit deduced from GitReference.
string fetched_commit_sha = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for fetchedCommitSha. |
getReference()
public GitReference getReference()Required. The reference (for example, a branch, tag, or commit SHA) from which the content should be read.
.google.cloud.designcenter.v1.GitReference reference = 8 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
GitReference |
The reference. |
getReferenceBuilder()
public GitReference.Builder getReferenceBuilder()Required. The reference (for example, a branch, tag, or commit SHA) from which the content should be read.
.google.cloud.designcenter.v1.GitReference reference = 8 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
GitReference.Builder |
|
getReferenceOrBuilder()
public GitReferenceOrBuilder getReferenceOrBuilder()Required. The reference (for example, a branch, tag, or commit SHA) from which the content should be read.
.google.cloud.designcenter.v1.GitReference reference = 8 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
GitReferenceOrBuilder |
|
hasReference()
public boolean hasReference()Required. The reference (for example, a branch, tag, or commit SHA) from which the content should be read.
.google.cloud.designcenter.v1.GitReference reference = 8 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the reference field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(DeveloperConnectSourceConfig other)
public DeveloperConnectSourceConfig.Builder mergeFrom(DeveloperConnectSourceConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
DeveloperConnectSourceConfig |
| Returns | |
|---|---|
| Type | Description |
DeveloperConnectSourceConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DeveloperConnectSourceConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DeveloperConnectSourceConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DeveloperConnectSourceConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DeveloperConnectSourceConfig.Builder |
|
mergeReference(GitReference value)
public DeveloperConnectSourceConfig.Builder mergeReference(GitReference value)Required. The reference (for example, a branch, tag, or commit SHA) from which the content should be read.
.google.cloud.designcenter.v1.GitReference reference = 8 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
GitReference |
| Returns | |
|---|---|
| Type | Description |
DeveloperConnectSourceConfig.Builder |
|
setDeveloperConnectRepoUri(String value)
public DeveloperConnectSourceConfig.Builder setDeveloperConnectRepoUri(String value) Required. The Developer Connect Git repository link, formatted as
projects/*/locations/*/connections/*/gitRepositoryLinks/*.
string developer_connect_repo_uri = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe developerConnectRepoUri to set. |
| Returns | |
|---|---|
| Type | Description |
DeveloperConnectSourceConfig.Builder |
This builder for chaining. |
setDeveloperConnectRepoUriBytes(ByteString value)
public DeveloperConnectSourceConfig.Builder setDeveloperConnectRepoUriBytes(ByteString value) Required. The Developer Connect Git repository link, formatted as
projects/*/locations/*/connections/*/gitRepositoryLinks/*.
string developer_connect_repo_uri = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for developerConnectRepoUri to set. |
| Returns | |
|---|---|
| Type | Description |
DeveloperConnectSourceConfig.Builder |
This builder for chaining. |
setDir(String value)
public DeveloperConnectSourceConfig.Builder setDir(String value)Required. The sub-directory within the repository from which to read content. The path must be relative to the repository's root such as dir1/dir2. To read content from the root dir, provide "/" as the value of the field.
string dir = 5 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe dir to set. |
| Returns | |
|---|---|
| Type | Description |
DeveloperConnectSourceConfig.Builder |
This builder for chaining. |
setDirBytes(ByteString value)
public DeveloperConnectSourceConfig.Builder setDirBytes(ByteString value)Required. The sub-directory within the repository from which to read content. The path must be relative to the repository's root such as dir1/dir2. To read content from the root dir, provide "/" as the value of the field.
string dir = 5 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for dir to set. |
| Returns | |
|---|---|
| Type | Description |
DeveloperConnectSourceConfig.Builder |
This builder for chaining. |
setFetchedCommitSha(String value)
public DeveloperConnectSourceConfig.Builder setFetchedCommitSha(String value)Output only. The SHA of the commit deduced from GitReference.
string fetched_commit_sha = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe fetchedCommitSha to set. |
| Returns | |
|---|---|
| Type | Description |
DeveloperConnectSourceConfig.Builder |
This builder for chaining. |
setFetchedCommitShaBytes(ByteString value)
public DeveloperConnectSourceConfig.Builder setFetchedCommitShaBytes(ByteString value)Output only. The SHA of the commit deduced from GitReference.
string fetched_commit_sha = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for fetchedCommitSha to set. |
| Returns | |
|---|---|
| Type | Description |
DeveloperConnectSourceConfig.Builder |
This builder for chaining. |
setReference(GitReference value)
public DeveloperConnectSourceConfig.Builder setReference(GitReference value)Required. The reference (for example, a branch, tag, or commit SHA) from which the content should be read.
.google.cloud.designcenter.v1.GitReference reference = 8 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
GitReference |
| Returns | |
|---|---|
| Type | Description |
DeveloperConnectSourceConfig.Builder |
|
setReference(GitReference.Builder builderForValue)
public DeveloperConnectSourceConfig.Builder setReference(GitReference.Builder builderForValue)Required. The reference (for example, a branch, tag, or commit SHA) from which the content should be read.
.google.cloud.designcenter.v1.GitReference reference = 8 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
GitReference.Builder |
| Returns | |
|---|---|
| Type | Description |
DeveloperConnectSourceConfig.Builder |
|