Class ObjectFullContext.Builder (2.75.0)

public static final class ObjectFullContext.Builder extends GeneratedMessage.Builder<ObjectFullContext.Builder> implements ObjectFullContextOrBuilder

A full representation of an object context.

Protobuf type google.storage.control.v2.ObjectFullContext

Static Methods

getDescriptor()

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

Methods

build()

public ObjectFullContext build()
Returns
Type Description
ObjectFullContext

buildPartial()

public ObjectFullContext buildPartial()
Returns
Type Description
ObjectFullContext

clear()

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

clearCreateTime()

public ObjectFullContext.Builder clearCreateTime()

The time at which the object context was created.

.google.protobuf.Timestamp create_time = 4;

Returns
Type Description
ObjectFullContext.Builder

clearExtendedData()

public ObjectFullContext.Builder clearExtendedData()

The extended data of the object context.

.google.protobuf.Any extended_data = 6;

Returns
Type Description
ObjectFullContext.Builder

clearKey()

public ObjectFullContext.Builder clearKey()

The key of the object context, which is unique among contexts of an object.

string key = 2;

Returns
Type Description
ObjectFullContext.Builder

This builder for chaining.

clearType()

public ObjectFullContext.Builder clearType()

The type of the object context.

.google.storage.control.v2.ObjectFullContext.Type type = 1;

Returns
Type Description
ObjectFullContext.Builder

This builder for chaining.

clearUpdateTime()

public ObjectFullContext.Builder clearUpdateTime()

The time at which the object context was updated.

.google.protobuf.Timestamp update_time = 5;

Returns
Type Description
ObjectFullContext.Builder

clearValue()

public ObjectFullContext.Builder clearValue()

The value of the object context.

string value = 3;

Returns
Type Description
ObjectFullContext.Builder

This builder for chaining.

getCreateTime()

public Timestamp getCreateTime()

The time at which the object context was created.

.google.protobuf.Timestamp create_time = 4;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

The time at which the object context was created.

.google.protobuf.Timestamp create_time = 4;

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

The time at which the object context was created.

.google.protobuf.Timestamp create_time = 4;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public ObjectFullContext getDefaultInstanceForType()
Returns
Type Description
ObjectFullContext

getDescriptorForType()

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

getExtendedData()

public Any getExtendedData()

The extended data of the object context.

.google.protobuf.Any extended_data = 6;

Returns
Type Description
Any

The extendedData.

getExtendedDataBuilder()

public Any.Builder getExtendedDataBuilder()

The extended data of the object context.

.google.protobuf.Any extended_data = 6;

Returns
Type Description
Builder

getExtendedDataOrBuilder()

public AnyOrBuilder getExtendedDataOrBuilder()

The extended data of the object context.

.google.protobuf.Any extended_data = 6;

Returns
Type Description
AnyOrBuilder

getKey()

public String getKey()

The key of the object context, which is unique among contexts of an object.

string key = 2;

Returns
Type Description
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

The key of the object context, which is unique among contexts of an object.

string key = 2;

Returns
Type Description
ByteString

The bytes for key.

getType()

public ObjectFullContext.Type getType()

The type of the object context.

.google.storage.control.v2.ObjectFullContext.Type type = 1;

Returns
Type Description
ObjectFullContext.Type

The type.

getTypeValue()

public int getTypeValue()

The type of the object context.

.google.storage.control.v2.ObjectFullContext.Type type = 1;

Returns
Type Description
int

The enum numeric value on the wire for type.

getUpdateTime()

public Timestamp getUpdateTime()

The time at which the object context was updated.

.google.protobuf.Timestamp update_time = 5;

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

The time at which the object context was updated.

.google.protobuf.Timestamp update_time = 5;

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

The time at which the object context was updated.

.google.protobuf.Timestamp update_time = 5;

Returns
Type Description
TimestampOrBuilder

getValue()

public String getValue()

The value of the object context.

string value = 3;

Returns
Type Description
String

The value.

getValueBytes()

public ByteString getValueBytes()

The value of the object context.

string value = 3;

Returns
Type Description
ByteString

The bytes for value.

hasCreateTime()

public boolean hasCreateTime()

The time at which the object context was created.

.google.protobuf.Timestamp create_time = 4;

Returns
Type Description
boolean

Whether the createTime field is set.

hasExtendedData()

public boolean hasExtendedData()

The extended data of the object context.

.google.protobuf.Any extended_data = 6;

Returns
Type Description
boolean

Whether the extendedData field is set.

hasUpdateTime()

public boolean hasUpdateTime()

The time at which the object context was updated.

.google.protobuf.Timestamp update_time = 5;

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public ObjectFullContext.Builder mergeCreateTime(Timestamp value)

The time at which the object context was created.

.google.protobuf.Timestamp create_time = 4;

Parameter
Name Description
value Timestamp
Returns
Type Description
ObjectFullContext.Builder

mergeExtendedData(Any value)

public ObjectFullContext.Builder mergeExtendedData(Any value)

The extended data of the object context.

.google.protobuf.Any extended_data = 6;

Parameter
Name Description
value Any
Returns
Type Description
ObjectFullContext.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ObjectFullContext other)

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

mergeUpdateTime(Timestamp value)

public ObjectFullContext.Builder mergeUpdateTime(Timestamp value)

The time at which the object context was updated.

.google.protobuf.Timestamp update_time = 5;

Parameter
Name Description
value Timestamp
Returns
Type Description
ObjectFullContext.Builder

setCreateTime(Timestamp value)

public ObjectFullContext.Builder setCreateTime(Timestamp value)

The time at which the object context was created.

.google.protobuf.Timestamp create_time = 4;

Parameter
Name Description
value Timestamp
Returns
Type Description
ObjectFullContext.Builder

setCreateTime(Timestamp.Builder builderForValue)

public ObjectFullContext.Builder setCreateTime(Timestamp.Builder builderForValue)

The time at which the object context was created.

.google.protobuf.Timestamp create_time = 4;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ObjectFullContext.Builder

setExtendedData(Any value)

public ObjectFullContext.Builder setExtendedData(Any value)

The extended data of the object context.

.google.protobuf.Any extended_data = 6;

Parameter
Name Description
value Any
Returns
Type Description
ObjectFullContext.Builder

setExtendedData(Any.Builder builderForValue)

public ObjectFullContext.Builder setExtendedData(Any.Builder builderForValue)

The extended data of the object context.

.google.protobuf.Any extended_data = 6;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ObjectFullContext.Builder

setKey(String value)

public ObjectFullContext.Builder setKey(String value)

The key of the object context, which is unique among contexts of an object.

string key = 2;

Parameter
Name Description
value String

The key to set.

Returns
Type Description
ObjectFullContext.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public ObjectFullContext.Builder setKeyBytes(ByteString value)

The key of the object context, which is unique among contexts of an object.

string key = 2;

Parameter
Name Description
value ByteString

The bytes for key to set.

Returns
Type Description
ObjectFullContext.Builder

This builder for chaining.

setType(ObjectFullContext.Type value)

public ObjectFullContext.Builder setType(ObjectFullContext.Type value)

The type of the object context.

.google.storage.control.v2.ObjectFullContext.Type type = 1;

Parameter
Name Description
value ObjectFullContext.Type

The type to set.

Returns
Type Description
ObjectFullContext.Builder

This builder for chaining.

setTypeValue(int value)

public ObjectFullContext.Builder setTypeValue(int value)

The type of the object context.

.google.storage.control.v2.ObjectFullContext.Type type = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
ObjectFullContext.Builder

This builder for chaining.

setUpdateTime(Timestamp value)

public ObjectFullContext.Builder setUpdateTime(Timestamp value)

The time at which the object context was updated.

.google.protobuf.Timestamp update_time = 5;

Parameter
Name Description
value Timestamp
Returns
Type Description
ObjectFullContext.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public ObjectFullContext.Builder setUpdateTime(Timestamp.Builder builderForValue)

The time at which the object context was updated.

.google.protobuf.Timestamp update_time = 5;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ObjectFullContext.Builder

setValue(String value)

public ObjectFullContext.Builder setValue(String value)

The value of the object context.

string value = 3;

Parameter
Name Description
value String

The value to set.

Returns
Type Description
ObjectFullContext.Builder

This builder for chaining.

setValueBytes(ByteString value)

public ObjectFullContext.Builder setValueBytes(ByteString value)

The value of the object context.

string value = 3;

Parameter
Name Description
value ByteString

The bytes for value to set.

Returns
Type Description
ObjectFullContext.Builder

This builder for chaining.