public static final class FetchGitRepositoryLinkCommitRequest.Builder extends GeneratedMessage.Builder<FetchGitRepositoryLinkCommitRequest.Builder> implements FetchGitRepositoryLinkCommitRequestOrBuilderRequest message for FetchGitRepositoryLinkCommit.
Protobuf type google.cloud.developerconnect.v1.FetchGitRepositoryLinkCommitRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > FetchGitRepositoryLinkCommitRequest.BuilderImplements
FetchGitRepositoryLinkCommitRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllPathFilters(Iterable<String> values)
public FetchGitRepositoryLinkCommitRequest.Builder addAllPathFilters(Iterable<String> values) Optional. Path patterns or exact paths to filter returned files (only
applicable in FULL view).
When path_filters is specified, FileDiff.patch is populated for all
matching files (use ["**"] to include patches for all changed files).
When path_filters is omitted or empty, the full list of FileDiff is
returned without patch diffs (FileDiff.patch is empty).
repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The pathFilters to add. |
| Returns | |
|---|---|
| Type | Description |
FetchGitRepositoryLinkCommitRequest.Builder |
This builder for chaining. |
addPathFilters(String value)
public FetchGitRepositoryLinkCommitRequest.Builder addPathFilters(String value) Optional. Path patterns or exact paths to filter returned files (only
applicable in FULL view).
When path_filters is specified, FileDiff.patch is populated for all
matching files (use ["**"] to include patches for all changed files).
When path_filters is omitted or empty, the full list of FileDiff is
returned without patch diffs (FileDiff.patch is empty).
repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe pathFilters to add. |
| Returns | |
|---|---|
| Type | Description |
FetchGitRepositoryLinkCommitRequest.Builder |
This builder for chaining. |
addPathFiltersBytes(ByteString value)
public FetchGitRepositoryLinkCommitRequest.Builder addPathFiltersBytes(ByteString value) Optional. Path patterns or exact paths to filter returned files (only
applicable in FULL view).
When path_filters is specified, FileDiff.patch is populated for all
matching files (use ["**"] to include patches for all changed files).
When path_filters is omitted or empty, the full list of FileDiff is
returned without patch diffs (FileDiff.patch is empty).
repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the pathFilters to add. |
| Returns | |
|---|---|
| Type | Description |
FetchGitRepositoryLinkCommitRequest.Builder |
This builder for chaining. |
build()
public FetchGitRepositoryLinkCommitRequest build()| Returns | |
|---|---|
| Type | Description |
FetchGitRepositoryLinkCommitRequest |
|
buildPartial()
public FetchGitRepositoryLinkCommitRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
FetchGitRepositoryLinkCommitRequest |
|
clear()
public FetchGitRepositoryLinkCommitRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
FetchGitRepositoryLinkCommitRequest.Builder |
|
clearCommitSha()
public FetchGitRepositoryLinkCommitRequest.Builder clearCommitSha()Required. The commit SHA, or symbolic revision (e.g., branch name, tag, or Git reference).
string commit_sha = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
FetchGitRepositoryLinkCommitRequest.Builder |
This builder for chaining. |
clearName()
public FetchGitRepositoryLinkCommitRequest.Builder clearName() Required. The resource name of the GitRepositoryLink in the format
projects/*/locations/*/connections/*/gitRepositoryLinks/*.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
FetchGitRepositoryLinkCommitRequest.Builder |
This builder for chaining. |
clearPathFilters()
public FetchGitRepositoryLinkCommitRequest.Builder clearPathFilters() Optional. Path patterns or exact paths to filter returned files (only
applicable in FULL view).
When path_filters is specified, FileDiff.patch is populated for all
matching files (use ["**"] to include patches for all changed files).
When path_filters is omitted or empty, the full list of FileDiff is
returned without patch diffs (FileDiff.patch is empty).
repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
FetchGitRepositoryLinkCommitRequest.Builder |
This builder for chaining. |
clearView()
public FetchGitRepositoryLinkCommitRequest.Builder clearView() Optional. The level of commit details to return in the response.
Defaults to FULL if unspecified. In FULL view, files metadata (paths
and statuses) are returned; path_filters must also be specified to
populate line patch hunks.
.google.cloud.developerconnect.v1.CommitView view = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
FetchGitRepositoryLinkCommitRequest.Builder |
This builder for chaining. |
getCommitSha()
public String getCommitSha()Required. The commit SHA, or symbolic revision (e.g., branch name, tag, or Git reference).
string commit_sha = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The commitSha. |
getCommitShaBytes()
public ByteString getCommitShaBytes()Required. The commit SHA, or symbolic revision (e.g., branch name, tag, or Git reference).
string commit_sha = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for commitSha. |
getDefaultInstanceForType()
public FetchGitRepositoryLinkCommitRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
FetchGitRepositoryLinkCommitRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public String getName() Required. The resource name of the GitRepositoryLink in the format
projects/*/locations/*/connections/*/gitRepositoryLinks/*.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes() Required. The resource name of the GitRepositoryLink in the format
projects/*/locations/*/connections/*/gitRepositoryLinks/*.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getPathFilters(int index)
public String getPathFilters(int index) Optional. Path patterns or exact paths to filter returned files (only
applicable in FULL view).
When path_filters is specified, FileDiff.patch is populated for all
matching files (use ["**"] to include patches for all changed files).
When path_filters is omitted or empty, the full list of FileDiff is
returned without patch diffs (FileDiff.patch is empty).
repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The pathFilters at the given index. |
getPathFiltersBytes(int index)
public ByteString getPathFiltersBytes(int index) Optional. Path patterns or exact paths to filter returned files (only
applicable in FULL view).
When path_filters is specified, FileDiff.patch is populated for all
matching files (use ["**"] to include patches for all changed files).
When path_filters is omitted or empty, the full list of FileDiff is
returned without patch diffs (FileDiff.patch is empty).
repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the pathFilters at the given index. |
getPathFiltersCount()
public int getPathFiltersCount() Optional. Path patterns or exact paths to filter returned files (only
applicable in FULL view).
When path_filters is specified, FileDiff.patch is populated for all
matching files (use ["**"] to include patches for all changed files).
When path_filters is omitted or empty, the full list of FileDiff is
returned without patch diffs (FileDiff.patch is empty).
repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of pathFilters. |
getPathFiltersList()
public ProtocolStringList getPathFiltersList() Optional. Path patterns or exact paths to filter returned files (only
applicable in FULL view).
When path_filters is specified, FileDiff.patch is populated for all
matching files (use ["**"] to include patches for all changed files).
When path_filters is omitted or empty, the full list of FileDiff is
returned without patch diffs (FileDiff.patch is empty).
repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the pathFilters. |
getView()
public CommitView getView() Optional. The level of commit details to return in the response.
Defaults to FULL if unspecified. In FULL view, files metadata (paths
and statuses) are returned; path_filters must also be specified to
populate line patch hunks.
.google.cloud.developerconnect.v1.CommitView view = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CommitView |
The view. |
getViewValue()
public int getViewValue() Optional. The level of commit details to return in the response.
Defaults to FULL if unspecified. In FULL view, files metadata (paths
and statuses) are returned; path_filters must also be specified to
populate line patch hunks.
.google.cloud.developerconnect.v1.CommitView view = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for view. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(FetchGitRepositoryLinkCommitRequest other)
public FetchGitRepositoryLinkCommitRequest.Builder mergeFrom(FetchGitRepositoryLinkCommitRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
FetchGitRepositoryLinkCommitRequest |
| Returns | |
|---|---|
| Type | Description |
FetchGitRepositoryLinkCommitRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public FetchGitRepositoryLinkCommitRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
FetchGitRepositoryLinkCommitRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public FetchGitRepositoryLinkCommitRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
FetchGitRepositoryLinkCommitRequest.Builder |
|
setCommitSha(String value)
public FetchGitRepositoryLinkCommitRequest.Builder setCommitSha(String value)Required. The commit SHA, or symbolic revision (e.g., branch name, tag, or Git reference).
string commit_sha = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe commitSha to set. |
| Returns | |
|---|---|
| Type | Description |
FetchGitRepositoryLinkCommitRequest.Builder |
This builder for chaining. |
setCommitShaBytes(ByteString value)
public FetchGitRepositoryLinkCommitRequest.Builder setCommitShaBytes(ByteString value)Required. The commit SHA, or symbolic revision (e.g., branch name, tag, or Git reference).
string commit_sha = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for commitSha to set. |
| Returns | |
|---|---|
| Type | Description |
FetchGitRepositoryLinkCommitRequest.Builder |
This builder for chaining. |
setName(String value)
public FetchGitRepositoryLinkCommitRequest.Builder setName(String value) Required. The resource name of the GitRepositoryLink in the format
projects/*/locations/*/connections/*/gitRepositoryLinks/*.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
FetchGitRepositoryLinkCommitRequest.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public FetchGitRepositoryLinkCommitRequest.Builder setNameBytes(ByteString value) Required. The resource name of the GitRepositoryLink in the format
projects/*/locations/*/connections/*/gitRepositoryLinks/*.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
FetchGitRepositoryLinkCommitRequest.Builder |
This builder for chaining. |
setPathFilters(int index, String value)
public FetchGitRepositoryLinkCommitRequest.Builder setPathFilters(int index, String value) Optional. Path patterns or exact paths to filter returned files (only
applicable in FULL view).
When path_filters is specified, FileDiff.patch is populated for all
matching files (use ["**"] to include patches for all changed files).
When path_filters is omitted or empty, the full list of FileDiff is
returned without patch diffs (FileDiff.patch is empty).
repeated string path_filters = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe pathFilters to set. |
| Returns | |
|---|---|
| Type | Description |
FetchGitRepositoryLinkCommitRequest.Builder |
This builder for chaining. |
setView(CommitView value)
public FetchGitRepositoryLinkCommitRequest.Builder setView(CommitView value) Optional. The level of commit details to return in the response.
Defaults to FULL if unspecified. In FULL view, files metadata (paths
and statuses) are returned; path_filters must also be specified to
populate line patch hunks.
.google.cloud.developerconnect.v1.CommitView view = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
CommitViewThe view to set. |
| Returns | |
|---|---|
| Type | Description |
FetchGitRepositoryLinkCommitRequest.Builder |
This builder for chaining. |
setViewValue(int value)
public FetchGitRepositoryLinkCommitRequest.Builder setViewValue(int value) Optional. The level of commit details to return in the response.
Defaults to FULL if unspecified. In FULL view, files metadata (paths
and statuses) are returned; path_filters must also be specified to
populate line patch hunks.
.google.cloud.developerconnect.v1.CommitView view = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for view to set. |
| Returns | |
|---|---|
| Type | Description |
FetchGitRepositoryLinkCommitRequest.Builder |
This builder for chaining. |