Class Value.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
-
- com.google.cloud.contentwarehouse.v1.Value.Builder
-
- All Implemented Interfaces:
ValueOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Value
public static final class Value.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Value.Builder> implements ValueOrBuilder
`Value` represents a dynamically typed value which can be either be a float, a integer, a string, or a datetime value. A producer of value is expected to set one of these variants. Absence of any variant indicates an error.
Protobuf typegoogle.cloud.contentwarehouse.v1.Value
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Value.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Value
build()
Value
buildPartial()
Value.Builder
clear()
Value.Builder
clearBooleanValue()
Represents a boolean value.Value.Builder
clearDatetimeValue()
Represents a datetime value.Value.Builder
clearEnumValue()
Represents an enum value.Value.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Value.Builder
clearFloatValue()
Represents a float value.Value.Builder
clearIntValue()
Represents a integer value.Value.Builder
clearKind()
Value.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Value.Builder
clearStringValue()
Represents a string value.Value.Builder
clearTimestampValue()
Represents a timestamp value.Value.Builder
clone()
boolean
getBooleanValue()
Represents a boolean value.com.google.type.DateTime
getDatetimeValue()
Represents a datetime value.com.google.type.DateTime.Builder
getDatetimeValueBuilder()
Represents a datetime value.com.google.type.DateTimeOrBuilder
getDatetimeValueOrBuilder()
Represents a datetime value.Value
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
EnumValue
getEnumValue()
Represents an enum value.EnumValue.Builder
getEnumValueBuilder()
Represents an enum value.EnumValueOrBuilder
getEnumValueOrBuilder()
Represents an enum value.float
getFloatValue()
Represents a float value.int
getIntValue()
Represents a integer value.Value.KindCase
getKindCase()
String
getStringValue()
Represents a string value.com.google.protobuf.ByteString
getStringValueBytes()
Represents a string value.TimestampValue
getTimestampValue()
Represents a timestamp value.TimestampValue.Builder
getTimestampValueBuilder()
Represents a timestamp value.TimestampValueOrBuilder
getTimestampValueOrBuilder()
Represents a timestamp value.boolean
hasBooleanValue()
Represents a boolean value.boolean
hasDatetimeValue()
Represents a datetime value.boolean
hasEnumValue()
Represents an enum value.boolean
hasFloatValue()
Represents a float value.boolean
hasIntValue()
Represents a integer value.boolean
hasStringValue()
Represents a string value.boolean
hasTimestampValue()
Represents a timestamp value.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Value.Builder
mergeDatetimeValue(com.google.type.DateTime value)
Represents a datetime value.Value.Builder
mergeEnumValue(EnumValue value)
Represents an enum value.Value.Builder
mergeFrom(Value other)
Value.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Value.Builder
mergeFrom(com.google.protobuf.Message other)
Value.Builder
mergeTimestampValue(TimestampValue value)
Represents a timestamp value.Value.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Value.Builder
setBooleanValue(boolean value)
Represents a boolean value.Value.Builder
setDatetimeValue(com.google.type.DateTime value)
Represents a datetime value.Value.Builder
setDatetimeValue(com.google.type.DateTime.Builder builderForValue)
Represents a datetime value.Value.Builder
setEnumValue(EnumValue value)
Represents an enum value.Value.Builder
setEnumValue(EnumValue.Builder builderForValue)
Represents an enum value.Value.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Value.Builder
setFloatValue(float value)
Represents a float value.Value.Builder
setIntValue(int value)
Represents a integer value.Value.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Value.Builder
setStringValue(String value)
Represents a string value.Value.Builder
setStringValueBytes(com.google.protobuf.ByteString value)
Represents a string value.Value.Builder
setTimestampValue(TimestampValue value)
Represents a timestamp value.Value.Builder
setTimestampValue(TimestampValue.Builder builderForValue)
Represents a timestamp value.Value.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<Value.Builder>
-
clear
public Value.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<Value.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<Value.Builder>
-
getDefaultInstanceForType
public Value getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Value build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Value buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Value.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<Value.Builder>
-
setField
public Value.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<Value.Builder>
-
clearField
public Value.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<Value.Builder>
-
clearOneof
public Value.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<Value.Builder>
-
setRepeatedField
public Value.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<Value.Builder>
-
addRepeatedField
public Value.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<Value.Builder>
-
mergeFrom
public Value.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Value.Builder>
-
mergeFrom
public Value.Builder mergeFrom(Value other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
-
mergeFrom
public Value.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<Value.Builder>
- Throws:
IOException
-
getKindCase
public Value.KindCase getKindCase()
- Specified by:
getKindCase
in interfaceValueOrBuilder
-
clearKind
public Value.Builder clearKind()
-
hasFloatValue
public boolean hasFloatValue()
Represents a float value.
float float_value = 1;
- Specified by:
hasFloatValue
in interfaceValueOrBuilder
- Returns:
- Whether the floatValue field is set.
-
getFloatValue
public float getFloatValue()
Represents a float value.
float float_value = 1;
- Specified by:
getFloatValue
in interfaceValueOrBuilder
- Returns:
- The floatValue.
-
setFloatValue
public Value.Builder setFloatValue(float value)
Represents a float value.
float float_value = 1;
- Parameters:
value
- The floatValue to set.- Returns:
- This builder for chaining.
-
clearFloatValue
public Value.Builder clearFloatValue()
Represents a float value.
float float_value = 1;
- Returns:
- This builder for chaining.
-
hasIntValue
public boolean hasIntValue()
Represents a integer value.
int32 int_value = 2;
- Specified by:
hasIntValue
in interfaceValueOrBuilder
- Returns:
- Whether the intValue field is set.
-
getIntValue
public int getIntValue()
Represents a integer value.
int32 int_value = 2;
- Specified by:
getIntValue
in interfaceValueOrBuilder
- Returns:
- The intValue.
-
setIntValue
public Value.Builder setIntValue(int value)
Represents a integer value.
int32 int_value = 2;
- Parameters:
value
- The intValue to set.- Returns:
- This builder for chaining.
-
clearIntValue
public Value.Builder clearIntValue()
Represents a integer value.
int32 int_value = 2;
- Returns:
- This builder for chaining.
-
hasStringValue
public boolean hasStringValue()
Represents a string value.
string string_value = 3;
- Specified by:
hasStringValue
in interfaceValueOrBuilder
- Returns:
- Whether the stringValue field is set.
-
getStringValue
public String getStringValue()
Represents a string value.
string string_value = 3;
- Specified by:
getStringValue
in interfaceValueOrBuilder
- Returns:
- The stringValue.
-
getStringValueBytes
public com.google.protobuf.ByteString getStringValueBytes()
Represents a string value.
string string_value = 3;
- Specified by:
getStringValueBytes
in interfaceValueOrBuilder
- Returns:
- The bytes for stringValue.
-
setStringValue
public Value.Builder setStringValue(String value)
Represents a string value.
string string_value = 3;
- Parameters:
value
- The stringValue to set.- Returns:
- This builder for chaining.
-
clearStringValue
public Value.Builder clearStringValue()
Represents a string value.
string string_value = 3;
- Returns:
- This builder for chaining.
-
setStringValueBytes
public Value.Builder setStringValueBytes(com.google.protobuf.ByteString value)
Represents a string value.
string string_value = 3;
- Parameters:
value
- The bytes for stringValue to set.- Returns:
- This builder for chaining.
-
hasEnumValue
public boolean hasEnumValue()
Represents an enum value.
.google.cloud.contentwarehouse.v1.EnumValue enum_value = 4;
- Specified by:
hasEnumValue
in interfaceValueOrBuilder
- Returns:
- Whether the enumValue field is set.
-
getEnumValue
public EnumValue getEnumValue()
Represents an enum value.
.google.cloud.contentwarehouse.v1.EnumValue enum_value = 4;
- Specified by:
getEnumValue
in interfaceValueOrBuilder
- Returns:
- The enumValue.
-
setEnumValue
public Value.Builder setEnumValue(EnumValue value)
Represents an enum value.
.google.cloud.contentwarehouse.v1.EnumValue enum_value = 4;
-
setEnumValue
public Value.Builder setEnumValue(EnumValue.Builder builderForValue)
Represents an enum value.
.google.cloud.contentwarehouse.v1.EnumValue enum_value = 4;
-
mergeEnumValue
public Value.Builder mergeEnumValue(EnumValue value)
Represents an enum value.
.google.cloud.contentwarehouse.v1.EnumValue enum_value = 4;
-
clearEnumValue
public Value.Builder clearEnumValue()
Represents an enum value.
.google.cloud.contentwarehouse.v1.EnumValue enum_value = 4;
-
getEnumValueBuilder
public EnumValue.Builder getEnumValueBuilder()
Represents an enum value.
.google.cloud.contentwarehouse.v1.EnumValue enum_value = 4;
-
getEnumValueOrBuilder
public EnumValueOrBuilder getEnumValueOrBuilder()
Represents an enum value.
.google.cloud.contentwarehouse.v1.EnumValue enum_value = 4;
- Specified by:
getEnumValueOrBuilder
in interfaceValueOrBuilder
-
hasDatetimeValue
public boolean hasDatetimeValue()
Represents a datetime value.
.google.type.DateTime datetime_value = 5;
- Specified by:
hasDatetimeValue
in interfaceValueOrBuilder
- Returns:
- Whether the datetimeValue field is set.
-
getDatetimeValue
public com.google.type.DateTime getDatetimeValue()
Represents a datetime value.
.google.type.DateTime datetime_value = 5;
- Specified by:
getDatetimeValue
in interfaceValueOrBuilder
- Returns:
- The datetimeValue.
-
setDatetimeValue
public Value.Builder setDatetimeValue(com.google.type.DateTime value)
Represents a datetime value.
.google.type.DateTime datetime_value = 5;
-
setDatetimeValue
public Value.Builder setDatetimeValue(com.google.type.DateTime.Builder builderForValue)
Represents a datetime value.
.google.type.DateTime datetime_value = 5;
-
mergeDatetimeValue
public Value.Builder mergeDatetimeValue(com.google.type.DateTime value)
Represents a datetime value.
.google.type.DateTime datetime_value = 5;
-
clearDatetimeValue
public Value.Builder clearDatetimeValue()
Represents a datetime value.
.google.type.DateTime datetime_value = 5;
-
getDatetimeValueBuilder
public com.google.type.DateTime.Builder getDatetimeValueBuilder()
Represents a datetime value.
.google.type.DateTime datetime_value = 5;
-
getDatetimeValueOrBuilder
public com.google.type.DateTimeOrBuilder getDatetimeValueOrBuilder()
Represents a datetime value.
.google.type.DateTime datetime_value = 5;
- Specified by:
getDatetimeValueOrBuilder
in interfaceValueOrBuilder
-
hasTimestampValue
public boolean hasTimestampValue()
Represents a timestamp value.
.google.cloud.contentwarehouse.v1.TimestampValue timestamp_value = 6;
- Specified by:
hasTimestampValue
in interfaceValueOrBuilder
- Returns:
- Whether the timestampValue field is set.
-
getTimestampValue
public TimestampValue getTimestampValue()
Represents a timestamp value.
.google.cloud.contentwarehouse.v1.TimestampValue timestamp_value = 6;
- Specified by:
getTimestampValue
in interfaceValueOrBuilder
- Returns:
- The timestampValue.
-
setTimestampValue
public Value.Builder setTimestampValue(TimestampValue value)
Represents a timestamp value.
.google.cloud.contentwarehouse.v1.TimestampValue timestamp_value = 6;
-
setTimestampValue
public Value.Builder setTimestampValue(TimestampValue.Builder builderForValue)
Represents a timestamp value.
.google.cloud.contentwarehouse.v1.TimestampValue timestamp_value = 6;
-
mergeTimestampValue
public Value.Builder mergeTimestampValue(TimestampValue value)
Represents a timestamp value.
.google.cloud.contentwarehouse.v1.TimestampValue timestamp_value = 6;
-
clearTimestampValue
public Value.Builder clearTimestampValue()
Represents a timestamp value.
.google.cloud.contentwarehouse.v1.TimestampValue timestamp_value = 6;
-
getTimestampValueBuilder
public TimestampValue.Builder getTimestampValueBuilder()
Represents a timestamp value.
.google.cloud.contentwarehouse.v1.TimestampValue timestamp_value = 6;
-
getTimestampValueOrBuilder
public TimestampValueOrBuilder getTimestampValueOrBuilder()
Represents a timestamp value.
.google.cloud.contentwarehouse.v1.TimestampValue timestamp_value = 6;
- Specified by:
getTimestampValueOrBuilder
in interfaceValueOrBuilder
-
hasBooleanValue
public boolean hasBooleanValue()
Represents a boolean value.
bool boolean_value = 7;
- Specified by:
hasBooleanValue
in interfaceValueOrBuilder
- Returns:
- Whether the booleanValue field is set.
-
getBooleanValue
public boolean getBooleanValue()
Represents a boolean value.
bool boolean_value = 7;
- Specified by:
getBooleanValue
in interfaceValueOrBuilder
- Returns:
- The booleanValue.
-
setBooleanValue
public Value.Builder setBooleanValue(boolean value)
Represents a boolean value.
bool boolean_value = 7;
- Parameters:
value
- The booleanValue to set.- Returns:
- This builder for chaining.
-
clearBooleanValue
public Value.Builder clearBooleanValue()
Represents a boolean value.
bool boolean_value = 7;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final Value.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
-
mergeUnknownFields
public final Value.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Value.Builder>
-
-