Class StringValue.Builder (3.19.4)

public static final class StringValue.Builder extends GeneratedMessageLite.Builder<StringValue,StringValue.Builder> implements StringValueOrBuilder

Wrapper message for string. The JSON representation for StringValue is JSON string.

Protobuf type google.protobuf.StringValue

Methods

clearValue()

public StringValue.Builder clearValue()

The string value.

string value = 1;

Returns
TypeDescription
StringValue.Builder

This builder for chaining.

getValue()

public String getValue()

The string value.

string value = 1;

Returns
TypeDescription
String

The value.

getValueBytes()

public ByteString getValueBytes()

The string value.

string value = 1;

Returns
TypeDescription
ByteString

The bytes for value.

setValue(String value)

public StringValue.Builder setValue(String value)

The string value.

string value = 1;

Parameter
NameDescription
valueString

The value to set.

Returns
TypeDescription
StringValue.Builder

This builder for chaining.

setValueBytes(ByteString value)

public StringValue.Builder setValueBytes(ByteString value)

The string value.

string value = 1;

Parameter
NameDescription
valueByteString

The bytes for value to set.

Returns
TypeDescription
StringValue.Builder

This builder for chaining.