Class TimestampValue.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<TimestampValue.Builder>
-
- com.google.cloud.contentwarehouse.v1.TimestampValue.Builder
-
- All Implemented Interfaces:
TimestampValueOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- TimestampValue
public static final class TimestampValue.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TimestampValue.Builder> implements TimestampValueOrBuilder
Timestamp value type.
Protobuf typegoogle.cloud.contentwarehouse.v1.TimestampValue
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TimestampValue.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
TimestampValue
build()
TimestampValue
buildPartial()
TimestampValue.Builder
clear()
TimestampValue.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
TimestampValue.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
TimestampValue.Builder
clearTextValue()
The string must represent a valid instant in UTC and is parsed using java.time.format.DateTimeFormatter.ISO_INSTANT.TimestampValue.Builder
clearTimestampValue()
Timestamp valueTimestampValue.Builder
clearValue()
TimestampValue.Builder
clone()
TimestampValue
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getTextValue()
The string must represent a valid instant in UTC and is parsed using java.time.format.DateTimeFormatter.ISO_INSTANT.com.google.protobuf.ByteString
getTextValueBytes()
The string must represent a valid instant in UTC and is parsed using java.time.format.DateTimeFormatter.ISO_INSTANT.com.google.protobuf.Timestamp
getTimestampValue()
Timestamp valuecom.google.protobuf.Timestamp.Builder
getTimestampValueBuilder()
Timestamp valuecom.google.protobuf.TimestampOrBuilder
getTimestampValueOrBuilder()
Timestamp valueTimestampValue.ValueCase
getValueCase()
boolean
hasTextValue()
The string must represent a valid instant in UTC and is parsed using java.time.format.DateTimeFormatter.ISO_INSTANT.boolean
hasTimestampValue()
Timestamp valueprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
TimestampValue.Builder
mergeFrom(TimestampValue other)
TimestampValue.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
TimestampValue.Builder
mergeFrom(com.google.protobuf.Message other)
TimestampValue.Builder
mergeTimestampValue(com.google.protobuf.Timestamp value)
Timestamp valueTimestampValue.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
TimestampValue.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
TimestampValue.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
TimestampValue.Builder
setTextValue(String value)
The string must represent a valid instant in UTC and is parsed using java.time.format.DateTimeFormatter.ISO_INSTANT.TimestampValue.Builder
setTextValueBytes(com.google.protobuf.ByteString value)
The string must represent a valid instant in UTC and is parsed using java.time.format.DateTimeFormatter.ISO_INSTANT.TimestampValue.Builder
setTimestampValue(com.google.protobuf.Timestamp value)
Timestamp valueTimestampValue.Builder
setTimestampValue(com.google.protobuf.Timestamp.Builder builderForValue)
Timestamp valueTimestampValue.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<TimestampValue.Builder>
-
clear
public TimestampValue.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<TimestampValue.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<TimestampValue.Builder>
-
getDefaultInstanceForType
public TimestampValue getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public TimestampValue build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TimestampValue buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TimestampValue.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<TimestampValue.Builder>
-
setField
public TimestampValue.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TimestampValue.Builder>
-
clearField
public TimestampValue.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TimestampValue.Builder>
-
clearOneof
public TimestampValue.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<TimestampValue.Builder>
-
setRepeatedField
public TimestampValue.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TimestampValue.Builder>
-
addRepeatedField
public TimestampValue.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TimestampValue.Builder>
-
mergeFrom
public TimestampValue.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<TimestampValue.Builder>
-
mergeFrom
public TimestampValue.Builder mergeFrom(TimestampValue other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<TimestampValue.Builder>
-
mergeFrom
public TimestampValue.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<TimestampValue.Builder>
- Throws:
IOException
-
getValueCase
public TimestampValue.ValueCase getValueCase()
- Specified by:
getValueCase
in interfaceTimestampValueOrBuilder
-
clearValue
public TimestampValue.Builder clearValue()
-
hasTimestampValue
public boolean hasTimestampValue()
Timestamp value
.google.protobuf.Timestamp timestamp_value = 1;
- Specified by:
hasTimestampValue
in interfaceTimestampValueOrBuilder
- Returns:
- Whether the timestampValue field is set.
-
getTimestampValue
public com.google.protobuf.Timestamp getTimestampValue()
Timestamp value
.google.protobuf.Timestamp timestamp_value = 1;
- Specified by:
getTimestampValue
in interfaceTimestampValueOrBuilder
- Returns:
- The timestampValue.
-
setTimestampValue
public TimestampValue.Builder setTimestampValue(com.google.protobuf.Timestamp value)
Timestamp value
.google.protobuf.Timestamp timestamp_value = 1;
-
setTimestampValue
public TimestampValue.Builder setTimestampValue(com.google.protobuf.Timestamp.Builder builderForValue)
Timestamp value
.google.protobuf.Timestamp timestamp_value = 1;
-
mergeTimestampValue
public TimestampValue.Builder mergeTimestampValue(com.google.protobuf.Timestamp value)
Timestamp value
.google.protobuf.Timestamp timestamp_value = 1;
-
clearTimestampValue
public TimestampValue.Builder clearTimestampValue()
Timestamp value
.google.protobuf.Timestamp timestamp_value = 1;
-
getTimestampValueBuilder
public com.google.protobuf.Timestamp.Builder getTimestampValueBuilder()
Timestamp value
.google.protobuf.Timestamp timestamp_value = 1;
-
getTimestampValueOrBuilder
public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder()
Timestamp value
.google.protobuf.Timestamp timestamp_value = 1;
- Specified by:
getTimestampValueOrBuilder
in interfaceTimestampValueOrBuilder
-
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;
- Specified by:
hasTextValue
in interfaceTimestampValueOrBuilder
- Returns:
- Whether the textValue field is set.
-
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;
- Specified by:
getTextValue
in interfaceTimestampValueOrBuilder
- Returns:
- The textValue.
-
getTextValueBytes
public com.google.protobuf.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;
- Specified by:
getTextValueBytes
in interfaceTimestampValueOrBuilder
- Returns:
- The bytes for textValue.
-
setTextValue
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;
- Parameters:
value
- The textValue to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setTextValueBytes
public TimestampValue.Builder setTextValueBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for textValue to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final TimestampValue.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TimestampValue.Builder>
-
mergeUnknownFields
public final TimestampValue.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TimestampValue.Builder>
-
-