public static final class DiffGitRepositoryLinkCommitRequest.Builder extends GeneratedMessage.Builder<DiffGitRepositoryLinkCommitRequest.Builder> implements DiffGitRepositoryLinkCommitRequestOrBuilderRequest message for DiffGitRepositoryLinkCommit.
Protobuf type google.cloud.developerconnect.v1.DiffGitRepositoryLinkCommitRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DiffGitRepositoryLinkCommitRequest.BuilderImplements
DiffGitRepositoryLinkCommitRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllPathFilters(Iterable<String> values)
public DiffGitRepositoryLinkCommitRequest.Builder addAllPathFilters(Iterable<String> values) Optional. Path patterns or exact paths to filter returned files.
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 |
DiffGitRepositoryLinkCommitRequest.Builder |
This builder for chaining. |
addPathFilters(String value)
public DiffGitRepositoryLinkCommitRequest.Builder addPathFilters(String value) Optional. Path patterns or exact paths to filter returned files.
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 |
DiffGitRepositoryLinkCommitRequest.Builder |
This builder for chaining. |
addPathFiltersBytes(ByteString value)
public DiffGitRepositoryLinkCommitRequest.Builder addPathFiltersBytes(ByteString value) Optional. Path patterns or exact paths to filter returned files.
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 |
DiffGitRepositoryLinkCommitRequest.Builder |
This builder for chaining. |
build()
public DiffGitRepositoryLinkCommitRequest build()| Returns | |
|---|---|
| Type | Description |
DiffGitRepositoryLinkCommitRequest |
|
buildPartial()
public DiffGitRepositoryLinkCommitRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
DiffGitRepositoryLinkCommitRequest |
|
clear()
public DiffGitRepositoryLinkCommitRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
DiffGitRepositoryLinkCommitRequest.Builder |
|
clearBaseSha()
public DiffGitRepositoryLinkCommitRequest.Builder clearBaseSha()Required. The base commit SHA or ref.
string base_sha = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
DiffGitRepositoryLinkCommitRequest.Builder |
This builder for chaining. |
clearHeadSha()
public DiffGitRepositoryLinkCommitRequest.Builder clearHeadSha()Required. The head commit SHA or ref.
string head_sha = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
DiffGitRepositoryLinkCommitRequest.Builder |
This builder for chaining. |
clearName()
public DiffGitRepositoryLinkCommitRequest.Builder clearName()Required. The resource name of the GitRepositoryLink.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
DiffGitRepositoryLinkCommitRequest.Builder |
This builder for chaining. |
clearPathFilters()
public DiffGitRepositoryLinkCommitRequest.Builder clearPathFilters() Optional. Path patterns or exact paths to filter returned files.
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 |
DiffGitRepositoryLinkCommitRequest.Builder |
This builder for chaining. |
getBaseSha()
public String getBaseSha()Required. The base commit SHA or ref.
string base_sha = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The baseSha. |
getBaseShaBytes()
public ByteString getBaseShaBytes()Required. The base commit SHA or ref.
string base_sha = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for baseSha. |
getDefaultInstanceForType()
public DiffGitRepositoryLinkCommitRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DiffGitRepositoryLinkCommitRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getHeadSha()
public String getHeadSha()Required. The head commit SHA or ref.
string head_sha = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The headSha. |
getHeadShaBytes()
public ByteString getHeadShaBytes()Required. The head commit SHA or ref.
string head_sha = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for headSha. |
getName()
public String getName()Required. The resource name of the GitRepositoryLink.
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.
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.
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.
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.
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.
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(DiffGitRepositoryLinkCommitRequest other)
public DiffGitRepositoryLinkCommitRequest.Builder mergeFrom(DiffGitRepositoryLinkCommitRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
DiffGitRepositoryLinkCommitRequest |
| Returns | |
|---|---|
| Type | Description |
DiffGitRepositoryLinkCommitRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DiffGitRepositoryLinkCommitRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DiffGitRepositoryLinkCommitRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DiffGitRepositoryLinkCommitRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DiffGitRepositoryLinkCommitRequest.Builder |
|
setBaseSha(String value)
public DiffGitRepositoryLinkCommitRequest.Builder setBaseSha(String value)Required. The base commit SHA or ref.
string base_sha = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe baseSha to set. |
| Returns | |
|---|---|
| Type | Description |
DiffGitRepositoryLinkCommitRequest.Builder |
This builder for chaining. |
setBaseShaBytes(ByteString value)
public DiffGitRepositoryLinkCommitRequest.Builder setBaseShaBytes(ByteString value)Required. The base commit SHA or ref.
string base_sha = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for baseSha to set. |
| Returns | |
|---|---|
| Type | Description |
DiffGitRepositoryLinkCommitRequest.Builder |
This builder for chaining. |
setHeadSha(String value)
public DiffGitRepositoryLinkCommitRequest.Builder setHeadSha(String value)Required. The head commit SHA or ref.
string head_sha = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe headSha to set. |
| Returns | |
|---|---|
| Type | Description |
DiffGitRepositoryLinkCommitRequest.Builder |
This builder for chaining. |
setHeadShaBytes(ByteString value)
public DiffGitRepositoryLinkCommitRequest.Builder setHeadShaBytes(ByteString value)Required. The head commit SHA or ref.
string head_sha = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for headSha to set. |
| Returns | |
|---|---|
| Type | Description |
DiffGitRepositoryLinkCommitRequest.Builder |
This builder for chaining. |
setName(String value)
public DiffGitRepositoryLinkCommitRequest.Builder setName(String value)Required. The resource name of the GitRepositoryLink.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
DiffGitRepositoryLinkCommitRequest.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public DiffGitRepositoryLinkCommitRequest.Builder setNameBytes(ByteString value)Required. The resource name of the GitRepositoryLink.
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 |
DiffGitRepositoryLinkCommitRequest.Builder |
This builder for chaining. |
setPathFilters(int index, String value)
public DiffGitRepositoryLinkCommitRequest.Builder setPathFilters(int index, String value) Optional. Path patterns or exact paths to filter returned files.
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 |
DiffGitRepositoryLinkCommitRequest.Builder |
This builder for chaining. |