Class ObjectCustomContextPayload.Builder (0.27.0)

public static final class ObjectCustomContextPayload.Builder extends GeneratedMessage.Builder<ObjectCustomContextPayload.Builder> implements ObjectCustomContextPayloadOrBuilder

Describes the payload of a user defined object custom context.

Protobuf type google.cloud.storagebatchoperations.v1.ObjectCustomContextPayload

Static Methods

getDescriptor()

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

Methods

build()

public ObjectCustomContextPayload build()
Returns
Type Description
ObjectCustomContextPayload

buildPartial()

public ObjectCustomContextPayload buildPartial()
Returns
Type Description
ObjectCustomContextPayload

clear()

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

clearValue()

public ObjectCustomContextPayload.Builder clearValue()

The value of the object custom context. If set, value must NOT be an empty string since it is a required field in custom context. If unset, value will be ignored and no changes will be made to the value field of the custom context payload.

optional string value = 1;

Returns
Type Description
ObjectCustomContextPayload.Builder

This builder for chaining.

getDefaultInstanceForType()

public ObjectCustomContextPayload getDefaultInstanceForType()
Returns
Type Description
ObjectCustomContextPayload

getDescriptorForType()

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

getValue()

public String getValue()

The value of the object custom context. If set, value must NOT be an empty string since it is a required field in custom context. If unset, value will be ignored and no changes will be made to the value field of the custom context payload.

optional string value = 1;

Returns
Type Description
String

The value.

getValueBytes()

public ByteString getValueBytes()

The value of the object custom context. If set, value must NOT be an empty string since it is a required field in custom context. If unset, value will be ignored and no changes will be made to the value field of the custom context payload.

optional string value = 1;

Returns
Type Description
ByteString

The bytes for value.

hasValue()

public boolean hasValue()

The value of the object custom context. If set, value must NOT be an empty string since it is a required field in custom context. If unset, value will be ignored and no changes will be made to the value field of the custom context payload.

optional string value = 1;

Returns
Type Description
boolean

Whether the value field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ObjectCustomContextPayload other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setValue(String value)

public ObjectCustomContextPayload.Builder setValue(String value)

The value of the object custom context. If set, value must NOT be an empty string since it is a required field in custom context. If unset, value will be ignored and no changes will be made to the value field of the custom context payload.

optional string value = 1;

Parameter
Name Description
value String

The value to set.

Returns
Type Description
ObjectCustomContextPayload.Builder

This builder for chaining.

setValueBytes(ByteString value)

public ObjectCustomContextPayload.Builder setValueBytes(ByteString value)

The value of the object custom context. If set, value must NOT be an empty string since it is a required field in custom context. If unset, value will be ignored and no changes will be made to the value field of the custom context payload.

optional string value = 1;

Parameter
Name Description
value ByteString

The bytes for value to set.

Returns
Type Description
ObjectCustomContextPayload.Builder

This builder for chaining.