Class FetchBlobResponse.Builder (0.53.0)

public static final class FetchBlobResponse.Builder extends GeneratedMessage.Builder<FetchBlobResponse.Builder> implements FetchBlobResponseOrBuilder

Response message containing the content of a blob.

Protobuf type google.cloud.securesourcemanager.v1.FetchBlobResponse

Static Methods

getDescriptor()

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

Methods

build()

public FetchBlobResponse build()
Returns
Type Description
FetchBlobResponse

buildPartial()

public FetchBlobResponse buildPartial()
Returns
Type Description
FetchBlobResponse

clear()

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

clearContent()

public FetchBlobResponse.Builder clearContent()

The content of the blob, encoded as base64.

string content = 2;

Returns
Type Description
FetchBlobResponse.Builder

This builder for chaining.

clearSha()

public FetchBlobResponse.Builder clearSha()

The SHA-1 hash of the blob.

string sha = 1;

Returns
Type Description
FetchBlobResponse.Builder

This builder for chaining.

getContent()

public String getContent()

The content of the blob, encoded as base64.

string content = 2;

Returns
Type Description
String

The content.

getContentBytes()

public ByteString getContentBytes()

The content of the blob, encoded as base64.

string content = 2;

Returns
Type Description
ByteString

The bytes for content.

getDefaultInstanceForType()

public FetchBlobResponse getDefaultInstanceForType()
Returns
Type Description
FetchBlobResponse

getDescriptorForType()

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

getSha()

public String getSha()

The SHA-1 hash of the blob.

string sha = 1;

Returns
Type Description
String

The sha.

getShaBytes()

public ByteString getShaBytes()

The SHA-1 hash of the blob.

string sha = 1;

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(FetchBlobResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setContent(String value)

public FetchBlobResponse.Builder setContent(String value)

The content of the blob, encoded as base64.

string content = 2;

Parameter
Name Description
value String

The content to set.

Returns
Type Description
FetchBlobResponse.Builder

This builder for chaining.

setContentBytes(ByteString value)

public FetchBlobResponse.Builder setContentBytes(ByteString value)

The content of the blob, encoded as base64.

string content = 2;

Parameter
Name Description
value ByteString

The bytes for content to set.

Returns
Type Description
FetchBlobResponse.Builder

This builder for chaining.

setSha(String value)

public FetchBlobResponse.Builder setSha(String value)

The SHA-1 hash of the blob.

string sha = 1;

Parameter
Name Description
value String

The sha to set.

Returns
Type Description
FetchBlobResponse.Builder

This builder for chaining.

setShaBytes(ByteString value)

public FetchBlobResponse.Builder setShaBytes(ByteString value)

The SHA-1 hash of the blob.

string sha = 1;

Parameter
Name Description
value ByteString

The bytes for sha to set.

Returns
Type Description
FetchBlobResponse.Builder

This builder for chaining.