Class FetchBlobRequest.Builder (0.55.0)

public static final class FetchBlobRequest.Builder extends GeneratedMessage.Builder<FetchBlobRequest.Builder> implements FetchBlobRequestOrBuilder

Request message for fetching a blob (file content) from a repository.

Protobuf type google.cloud.securesourcemanager.v1.FetchBlobRequest

Static Methods

getDescriptor()

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

Methods

build()

public FetchBlobRequest build()
Returns
Type Description
FetchBlobRequest

buildPartial()

public FetchBlobRequest buildPartial()
Returns
Type Description
FetchBlobRequest

clear()

public FetchBlobRequest.Builder clear()
Returns
Type Description
FetchBlobRequest.Builder
Overrides

clearRepository()

public FetchBlobRequest.Builder clearRepository()

Required. The format is projects/{project_number}/locations/{location_id}/repositories/{repository_id}. Specifies the repository containing the blob.

string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
FetchBlobRequest.Builder

This builder for chaining.

clearSha()

public FetchBlobRequest.Builder clearSha()

Required. The SHA-1 hash of the blob to retrieve.

string sha = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FetchBlobRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public FetchBlobRequest getDefaultInstanceForType()
Returns
Type Description
FetchBlobRequest

getDescriptorForType()

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

getRepository()

public String getRepository()

Required. The format is projects/{project_number}/locations/{location_id}/repositories/{repository_id}. Specifies the repository containing the blob.

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 containing the blob.

string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for repository.

getSha()

public String getSha()

Required. The SHA-1 hash of the blob to retrieve.

string sha = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The sha.

getShaBytes()

public ByteString getShaBytes()

Required. The SHA-1 hash of the blob to retrieve.

string sha = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for sha.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FetchBlobRequest other)

public FetchBlobRequest.Builder mergeFrom(FetchBlobRequest other)
Parameter
Name Description
other FetchBlobRequest
Returns
Type Description
FetchBlobRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FetchBlobRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FetchBlobRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

setRepository(String value)

public FetchBlobRequest.Builder setRepository(String value)

Required. The format is projects/{project_number}/locations/{location_id}/repositories/{repository_id}. Specifies the repository containing the blob.

string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The repository to set.

Returns
Type Description
FetchBlobRequest.Builder

This builder for chaining.

setRepositoryBytes(ByteString value)

public FetchBlobRequest.Builder setRepositoryBytes(ByteString value)

Required. The format is projects/{project_number}/locations/{location_id}/repositories/{repository_id}. Specifies the repository containing the blob.

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
FetchBlobRequest.Builder

This builder for chaining.

setSha(String value)

public FetchBlobRequest.Builder setSha(String value)

Required. The SHA-1 hash of the blob to retrieve.

string sha = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The sha to set.

Returns
Type Description
FetchBlobRequest.Builder

This builder for chaining.

setShaBytes(ByteString value)

public FetchBlobRequest.Builder setShaBytes(ByteString value)

Required. The SHA-1 hash of the blob to retrieve.

string sha = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for sha to set.

Returns
Type Description
FetchBlobRequest.Builder

This builder for chaining.