Class BytesValue.Builder (3.19.4)

public static final class BytesValue.Builder extends GeneratedMessageLite.Builder<BytesValue,BytesValue.Builder> implements BytesValueOrBuilder

Wrapper message for bytes. The JSON representation for BytesValue is JSON string.

Protobuf type google.protobuf.BytesValue

Implements

BytesValueOrBuilder

Methods

clearValue()

public BytesValue.Builder clearValue()

The bytes value.

bytes value = 1;

Returns
Type Description
BytesValue.Builder

This builder for chaining.

getValue()

public ByteString getValue()

The bytes value.

bytes value = 1;

Returns
Type Description
ByteString

The value.

setValue(ByteString value)

public BytesValue.Builder setValue(ByteString value)

The bytes value.

bytes value = 1;

Parameter
Name Description
value ByteString

The value to set.

Returns
Type Description
BytesValue.Builder

This builder for chaining.