public static final class FetchTreeRequest.Builder extends GeneratedMessageV3.Builder<FetchTreeRequest.Builder> implements FetchTreeRequestOrBuilderRequest message for fetching a tree structure from a repository.
Protobuf type google.cloud.securesourcemanager.v1.FetchTreeRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > FetchTreeRequest.BuilderImplements
FetchTreeRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public FetchTreeRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
FetchTreeRequest.Builder |
|
build()
public FetchTreeRequest build()| Returns | |
|---|---|
| Type | Description |
FetchTreeRequest |
|
buildPartial()
public FetchTreeRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
FetchTreeRequest |
|
clear()
public FetchTreeRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
FetchTreeRequest.Builder |
|
clearField(Descriptors.FieldDescriptor field)
public FetchTreeRequest.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
FetchTreeRequest.Builder |
|
clearOneof(Descriptors.OneofDescriptor oneof)
public FetchTreeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
FetchTreeRequest.Builder |
|
clearPageSize()
public FetchTreeRequest.Builder clearPageSize()Optional. Requested page size. Server may return fewer items than requested. If unspecified, at most 10,000 items will be returned.
int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
FetchTreeRequest.Builder |
This builder for chaining. |
clearPageToken()
public FetchTreeRequest.Builder clearPageToken()Optional. A token identifying a page of results the server should return.
string page_token = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
FetchTreeRequest.Builder |
This builder for chaining. |
clearRecursive()
public FetchTreeRequest.Builder clearRecursive()Optional. If true, include all subfolders and their files in the response. If false, only the immediate children are returned.
bool recursive = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
FetchTreeRequest.Builder |
This builder for chaining. |
clearRef()
public FetchTreeRequest.Builder clearRef() Optional. ref can be a SHA-1 hash, a branch name, or a tag. Specifies
which tree to fetch. If not specified, the default branch will be used.
string ref = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
FetchTreeRequest.Builder |
This builder for chaining. |
clearRepository()
public FetchTreeRequest.Builder clearRepository() Required. The format is
projects/{project_number}/locations/{location_id}/repositories/{repository_id}.
Specifies the repository to fetch the tree from.
string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
FetchTreeRequest.Builder |
This builder for chaining. |
clone()
public FetchTreeRequest.Builder clone()| Returns | |
|---|---|
| Type | Description |
FetchTreeRequest.Builder |
|
getDefaultInstanceForType()
public FetchTreeRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
FetchTreeRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getPageSize()
public int getPageSize()Optional. Requested page size. Server may return fewer items than requested. If unspecified, at most 10,000 items will be returned.
int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The pageSize. |
getPageToken()
public String getPageToken()Optional. A token identifying a page of results the server should return.
string page_token = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The pageToken. |
getPageTokenBytes()
public ByteString getPageTokenBytes()Optional. A token identifying a page of results the server should return.
string page_token = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for pageToken. |
getRecursive()
public boolean getRecursive()Optional. If true, include all subfolders and their files in the response. If false, only the immediate children are returned.
bool recursive = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The recursive. |
getRef()
public String getRef() Optional. ref can be a SHA-1 hash, a branch name, or a tag. Specifies
which tree to fetch. If not specified, the default branch will be used.
string ref = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The ref. |
getRefBytes()
public ByteString getRefBytes() Optional. ref can be a SHA-1 hash, a branch name, or a tag. Specifies
which tree to fetch. If not specified, the default branch will be used.
string ref = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for ref. |
getRepository()
public String getRepository() Required. The format is
projects/{project_number}/locations/{location_id}/repositories/{repository_id}.
Specifies the repository to fetch the tree from.
string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The repository. |
getRepositoryBytes()
public ByteString getRepositoryBytes() Required. The format is
projects/{project_number}/locations/{location_id}/repositories/{repository_id}.
Specifies the repository to fetch the tree from.
string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for repository. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(FetchTreeRequest other)
public FetchTreeRequest.Builder mergeFrom(FetchTreeRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
FetchTreeRequest |
| Returns | |
|---|---|
| Type | Description |
FetchTreeRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public FetchTreeRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
FetchTreeRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public FetchTreeRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
FetchTreeRequest.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final FetchTreeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
FetchTreeRequest.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
public FetchTreeRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
FetchTreeRequest.Builder |
|
setPageSize(int value)
public FetchTreeRequest.Builder setPageSize(int value)Optional. Requested page size. Server may return fewer items than requested. If unspecified, at most 10,000 items will be returned.
int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe pageSize to set. |
| Returns | |
|---|---|
| Type | Description |
FetchTreeRequest.Builder |
This builder for chaining. |
setPageToken(String value)
public FetchTreeRequest.Builder setPageToken(String value)Optional. A token identifying a page of results the server should return.
string page_token = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe pageToken to set. |
| Returns | |
|---|---|
| Type | Description |
FetchTreeRequest.Builder |
This builder for chaining. |
setPageTokenBytes(ByteString value)
public FetchTreeRequest.Builder setPageTokenBytes(ByteString value)Optional. A token identifying a page of results the server should return.
string page_token = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for pageToken to set. |
| Returns | |
|---|---|
| Type | Description |
FetchTreeRequest.Builder |
This builder for chaining. |
setRecursive(boolean value)
public FetchTreeRequest.Builder setRecursive(boolean value)Optional. If true, include all subfolders and their files in the response. If false, only the immediate children are returned.
bool recursive = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe recursive to set. |
| Returns | |
|---|---|
| Type | Description |
FetchTreeRequest.Builder |
This builder for chaining. |
setRef(String value)
public FetchTreeRequest.Builder setRef(String value) Optional. ref can be a SHA-1 hash, a branch name, or a tag. Specifies
which tree to fetch. If not specified, the default branch will be used.
string ref = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe ref to set. |
| Returns | |
|---|---|
| Type | Description |
FetchTreeRequest.Builder |
This builder for chaining. |
setRefBytes(ByteString value)
public FetchTreeRequest.Builder setRefBytes(ByteString value) Optional. ref can be a SHA-1 hash, a branch name, or a tag. Specifies
which tree to fetch. If not specified, the default branch will be used.
string ref = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for ref to set. |
| Returns | |
|---|---|
| Type | Description |
FetchTreeRequest.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public FetchTreeRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
FetchTreeRequest.Builder |
|
setRepository(String value)
public FetchTreeRequest.Builder setRepository(String value) Required. The format is
projects/{project_number}/locations/{location_id}/repositories/{repository_id}.
Specifies the repository to fetch the tree from.
string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe repository to set. |
| Returns | |
|---|---|
| Type | Description |
FetchTreeRequest.Builder |
This builder for chaining. |
setRepositoryBytes(ByteString value)
public FetchTreeRequest.Builder setRepositoryBytes(ByteString value) Required. The format is
projects/{project_number}/locations/{location_id}/repositories/{repository_id}.
Specifies the repository to fetch the tree from.
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 |
FetchTreeRequest.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final FetchTreeRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
FetchTreeRequest.Builder |
|