public static final class ConnectedRepository.Builder extends GeneratedMessage.Builder<ConnectedRepository.Builder> implements ConnectedRepositoryOrBuilderLocation of the source in a 2nd-gen Google Cloud Build repository resource.
Protobuf type google.devtools.cloudbuild.v1.ConnectedRepository
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ConnectedRepository.BuilderImplements
ConnectedRepositoryOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ConnectedRepository build()| Returns | |
|---|---|
| Type | Description |
ConnectedRepository |
|
buildPartial()
public ConnectedRepository buildPartial()| Returns | |
|---|---|
| Type | Description |
ConnectedRepository |
|
clear()
public ConnectedRepository.Builder clear()| Returns | |
|---|---|
| Type | Description |
ConnectedRepository.Builder |
|
clearDir()
public ConnectedRepository.Builder clearDir()Optional. Directory, relative to the source root, in which to run the build.
string dir = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ConnectedRepository.Builder |
This builder for chaining. |
clearRepository()
public ConnectedRepository.Builder clearRepository() Required. Name of the Google Cloud Build repository, formatted as
projects/*/locations/*/connections/*/repositories/*.
string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ConnectedRepository.Builder |
This builder for chaining. |
clearRevision()
public ConnectedRepository.Builder clearRevision()Required. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.
string revision = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ConnectedRepository.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public ConnectedRepository getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ConnectedRepository |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDir()
public String getDir()Optional. Directory, relative to the source root, in which to run the build.
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.
string dir = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for dir. |
getRepository()
public String getRepository() Required. Name of the Google Cloud Build repository, formatted as
projects/*/locations/*/connections/*/repositories/*.
string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The repository. |
getRepositoryBytes()
public ByteString getRepositoryBytes() Required. Name of the Google Cloud Build repository, formatted as
projects/*/locations/*/connections/*/repositories/*.
string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for repository. |
getRevision()
public String getRevision()Required. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.
string revision = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The revision. |
getRevisionBytes()
public ByteString getRevisionBytes()Required. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.
string revision = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for revision. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ConnectedRepository other)
public ConnectedRepository.Builder mergeFrom(ConnectedRepository other)| Parameter | |
|---|---|
| Name | Description |
other |
ConnectedRepository |
| Returns | |
|---|---|
| Type | Description |
ConnectedRepository.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ConnectedRepository.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ConnectedRepository.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ConnectedRepository.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ConnectedRepository.Builder |
|
setDir(String value)
public ConnectedRepository.Builder setDir(String value)Optional. Directory, relative to the source root, in which to run the build.
string dir = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe dir to set. |
| Returns | |
|---|---|
| Type | Description |
ConnectedRepository.Builder |
This builder for chaining. |
setDirBytes(ByteString value)
public ConnectedRepository.Builder setDirBytes(ByteString value)Optional. Directory, relative to the source root, in which to run the build.
string dir = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for dir to set. |
| Returns | |
|---|---|
| Type | Description |
ConnectedRepository.Builder |
This builder for chaining. |
setRepository(String value)
public ConnectedRepository.Builder setRepository(String value) Required. Name of the Google Cloud Build repository, formatted as
projects/*/locations/*/connections/*/repositories/*.
string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe repository to set. |
| Returns | |
|---|---|
| Type | Description |
ConnectedRepository.Builder |
This builder for chaining. |
setRepositoryBytes(ByteString value)
public ConnectedRepository.Builder setRepositoryBytes(ByteString value) Required. Name of the Google Cloud Build repository, formatted as
projects/*/locations/*/connections/*/repositories/*.
string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for repository to set. |
| Returns | |
|---|---|
| Type | Description |
ConnectedRepository.Builder |
This builder for chaining. |
setRevision(String value)
public ConnectedRepository.Builder setRevision(String value)Required. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.
string revision = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe revision to set. |
| Returns | |
|---|---|
| Type | Description |
ConnectedRepository.Builder |
This builder for chaining. |
setRevisionBytes(ByteString value)
public ConnectedRepository.Builder setRevisionBytes(ByteString value)Required. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.
string revision = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for revision to set. |
| Returns | |
|---|---|
| Type | Description |
ConnectedRepository.Builder |
This builder for chaining. |