Class FetchTreeRequest.Builder (0.55.0)

public static final class FetchTreeRequest.Builder extends GeneratedMessage.Builder<FetchTreeRequest.Builder> implements FetchTreeRequestOrBuilder

Request message for fetching a tree structure from a repository.

Protobuf type google.cloud.securesourcemanager.v1.FetchTreeRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

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
Overrides

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.

getDefaultInstanceForType()

public FetchTreeRequest getDefaultInstanceForType()
Returns
Type Description
FetchTreeRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public FetchTreeRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
FetchTreeRequest.Builder
Overrides

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 int

The 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 String

The 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 ByteString

The 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 boolean

The 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 String

The 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 ByteString

The bytes for ref to set.

Returns
Type Description
FetchTreeRequest.Builder

This builder for chaining.

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 String

The 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 ByteString

The bytes for repository to set.

Returns
Type Description
FetchTreeRequest.Builder

This builder for chaining.