Class TimestampValue.Builder (0.3.0)

public static final class TimestampValue.Builder extends GeneratedMessageV3.Builder<TimestampValue.Builder> implements TimestampValueOrBuilder

Timestamp value type.

Protobuf type google.cloud.contentwarehouse.v1.TimestampValue

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TimestampValue.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TimestampValue.Builder
Overrides

build()

public TimestampValue build()
Returns
TypeDescription
TimestampValue

buildPartial()

public TimestampValue buildPartial()
Returns
TypeDescription
TimestampValue

clear()

public TimestampValue.Builder clear()
Returns
TypeDescription
TimestampValue.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public TimestampValue.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TimestampValue.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public TimestampValue.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TimestampValue.Builder
Overrides

clearTextValue()

public TimestampValue.Builder clearTextValue()

The string must represent a valid instant in UTC and is parsed using java.time.format.DateTimeFormatter.ISO_INSTANT. e.g. "2013-09-29T18:46:19Z"

string text_value = 2;

Returns
TypeDescription
TimestampValue.Builder

This builder for chaining.

clearTimestampValue()

public TimestampValue.Builder clearTimestampValue()

Timestamp value

.google.protobuf.Timestamp timestamp_value = 1;

Returns
TypeDescription
TimestampValue.Builder

clearValue()

public TimestampValue.Builder clearValue()
Returns
TypeDescription
TimestampValue.Builder

clone()

public TimestampValue.Builder clone()
Returns
TypeDescription
TimestampValue.Builder
Overrides

getDefaultInstanceForType()

public TimestampValue getDefaultInstanceForType()
Returns
TypeDescription
TimestampValue

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getTextValue()

public String getTextValue()

The string must represent a valid instant in UTC and is parsed using java.time.format.DateTimeFormatter.ISO_INSTANT. e.g. "2013-09-29T18:46:19Z"

string text_value = 2;

Returns
TypeDescription
String

The textValue.

getTextValueBytes()

public ByteString getTextValueBytes()

The string must represent a valid instant in UTC and is parsed using java.time.format.DateTimeFormatter.ISO_INSTANT. e.g. "2013-09-29T18:46:19Z"

string text_value = 2;

Returns
TypeDescription
ByteString

The bytes for textValue.

getTimestampValue()

public Timestamp getTimestampValue()

Timestamp value

.google.protobuf.Timestamp timestamp_value = 1;

Returns
TypeDescription
Timestamp

The timestampValue.

getTimestampValueBuilder()

public Timestamp.Builder getTimestampValueBuilder()

Timestamp value

.google.protobuf.Timestamp timestamp_value = 1;

Returns
TypeDescription
Builder

getTimestampValueOrBuilder()

public TimestampOrBuilder getTimestampValueOrBuilder()

Timestamp value

.google.protobuf.Timestamp timestamp_value = 1;

Returns
TypeDescription
TimestampOrBuilder

getValueCase()

public TimestampValue.ValueCase getValueCase()
Returns
TypeDescription
TimestampValue.ValueCase

hasTextValue()

public boolean hasTextValue()

The string must represent a valid instant in UTC and is parsed using java.time.format.DateTimeFormatter.ISO_INSTANT. e.g. "2013-09-29T18:46:19Z"

string text_value = 2;

Returns
TypeDescription
boolean

Whether the textValue field is set.

hasTimestampValue()

public boolean hasTimestampValue()

Timestamp value

.google.protobuf.Timestamp timestamp_value = 1;

Returns
TypeDescription
boolean

Whether the timestampValue field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TimestampValue other)

public TimestampValue.Builder mergeFrom(TimestampValue other)
Parameter
NameDescription
otherTimestampValue
Returns
TypeDescription
TimestampValue.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TimestampValue.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TimestampValue.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public TimestampValue.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TimestampValue.Builder
Overrides

mergeTimestampValue(Timestamp value)

public TimestampValue.Builder mergeTimestampValue(Timestamp value)

Timestamp value

.google.protobuf.Timestamp timestamp_value = 1;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
TimestampValue.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TimestampValue.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TimestampValue.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public TimestampValue.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TimestampValue.Builder
Overrides

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

public TimestampValue.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TimestampValue.Builder
Overrides

setTextValue(String value)

public TimestampValue.Builder setTextValue(String value)

The string must represent a valid instant in UTC and is parsed using java.time.format.DateTimeFormatter.ISO_INSTANT. e.g. "2013-09-29T18:46:19Z"

string text_value = 2;

Parameter
NameDescription
valueString

The textValue to set.

Returns
TypeDescription
TimestampValue.Builder

This builder for chaining.

setTextValueBytes(ByteString value)

public TimestampValue.Builder setTextValueBytes(ByteString value)

The string must represent a valid instant in UTC and is parsed using java.time.format.DateTimeFormatter.ISO_INSTANT. e.g. "2013-09-29T18:46:19Z"

string text_value = 2;

Parameter
NameDescription
valueByteString

The bytes for textValue to set.

Returns
TypeDescription
TimestampValue.Builder

This builder for chaining.

setTimestampValue(Timestamp value)

public TimestampValue.Builder setTimestampValue(Timestamp value)

Timestamp value

.google.protobuf.Timestamp timestamp_value = 1;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
TimestampValue.Builder

setTimestampValue(Timestamp.Builder builderForValue)

public TimestampValue.Builder setTimestampValue(Timestamp.Builder builderForValue)

Timestamp value

.google.protobuf.Timestamp timestamp_value = 1;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
TimestampValue.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final TimestampValue.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TimestampValue.Builder
Overrides