Class ObjectCustomContextPayload.Builder (2.54.0)

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

The payload of a single user-defined object context.

Protobuf type google.storage.v2.ObjectCustomContextPayload

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ObjectCustomContextPayload.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ObjectCustomContextPayload.Builder
Overrides

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

clearCreateTime()

public ObjectCustomContextPayload.Builder clearCreateTime()

Output only. The time at which the object context was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ObjectCustomContextPayload.Builder

clearField(Descriptors.FieldDescriptor field)

public ObjectCustomContextPayload.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ObjectCustomContextPayload.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ObjectCustomContextPayload.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ObjectCustomContextPayload.Builder
Overrides

clearUpdateTime()

public ObjectCustomContextPayload.Builder clearUpdateTime()

Output only. The time at which the object context was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ObjectCustomContextPayload.Builder

clearValue()

public ObjectCustomContextPayload.Builder clearValue()

Required. The value of the object context.

string value = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ObjectCustomContextPayload.Builder

This builder for chaining.

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Output only. The time at which the object context was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time at which the object context was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time at which the object context was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public ObjectCustomContextPayload getDefaultInstanceForType()
Returns
Type Description
ObjectCustomContextPayload

getDescriptorForType()

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

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time at which the object context was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The time at which the object context was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time at which the object context was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getValue()

public String getValue()

Required. The value of the object context.

string value = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The value.

getValueBytes()

public ByteString getValueBytes()

Required. The value of the object context.

string value = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for value.

hasCreateTime()

public boolean hasCreateTime()

Output only. The time at which the object context was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time at which the object context was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public ObjectCustomContextPayload.Builder mergeCreateTime(Timestamp value)

Output only. The time at which the object context was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
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

mergeFrom(ObjectCustomContextPayload other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ObjectCustomContextPayload.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ObjectCustomContextPayload.Builder
Overrides

mergeUpdateTime(Timestamp value)

public ObjectCustomContextPayload.Builder mergeUpdateTime(Timestamp value)

Output only. The time at which the object context was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
ObjectCustomContextPayload.Builder

setCreateTime(Timestamp value)

public ObjectCustomContextPayload.Builder setCreateTime(Timestamp value)

Output only. The time at which the object context was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
ObjectCustomContextPayload.Builder

setCreateTime(Timestamp.Builder builderForValue)

public ObjectCustomContextPayload.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time at which the object context was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ObjectCustomContextPayload.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ObjectCustomContextPayload.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ObjectCustomContextPayload.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ObjectCustomContextPayload.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ObjectCustomContextPayload.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ObjectCustomContextPayload.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ObjectCustomContextPayload.Builder
Overrides

setUpdateTime(Timestamp value)

public ObjectCustomContextPayload.Builder setUpdateTime(Timestamp value)

Output only. The time at which the object context was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
ObjectCustomContextPayload.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public ObjectCustomContextPayload.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time at which the object context was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ObjectCustomContextPayload.Builder

setValue(String value)

public ObjectCustomContextPayload.Builder setValue(String value)

Required. The value of the object context.

string value = 1 [(.google.api.field_behavior) = REQUIRED];

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)

Required. The value of the object context.

string value = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for value to set.

Returns
Type Description
ObjectCustomContextPayload.Builder

This builder for chaining.