public static final class AnalyticsValue.Builder extends GeneratedMessageV3.Builder<AnalyticsValue.Builder> implements AnalyticsValueOrBuilder
Value for Event Params and UserProperty can be of type string or int or float or double.
Protobuf type google.events.firebase.analytics.v1.AnalyticsValue
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AnalyticsValue.BuilderImplements
AnalyticsValueOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AnalyticsValue.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
AnalyticsValue.Builder |
build()
public AnalyticsValue build()
Returns | |
---|---|
Type | Description |
AnalyticsValue |
buildPartial()
public AnalyticsValue buildPartial()
Returns | |
---|---|
Type | Description |
AnalyticsValue |
clear()
public AnalyticsValue.Builder clear()
Returns | |
---|---|
Type | Description |
AnalyticsValue.Builder |
clearDoubleValue()
public AnalyticsValue.Builder clearDoubleValue()
double double_value = 4;
Returns | |
---|---|
Type | Description |
AnalyticsValue.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public AnalyticsValue.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
AnalyticsValue.Builder |
clearFloatValue()
public AnalyticsValue.Builder clearFloatValue()
float float_value = 3;
Returns | |
---|---|
Type | Description |
AnalyticsValue.Builder |
This builder for chaining. |
clearIntValue()
public AnalyticsValue.Builder clearIntValue()
int64 int_value = 2;
Returns | |
---|---|
Type | Description |
AnalyticsValue.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public AnalyticsValue.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
AnalyticsValue.Builder |
clearParamValue()
public AnalyticsValue.Builder clearParamValue()
Returns | |
---|---|
Type | Description |
AnalyticsValue.Builder |
clearStringValue()
public AnalyticsValue.Builder clearStringValue()
string string_value = 1;
Returns | |
---|---|
Type | Description |
AnalyticsValue.Builder |
This builder for chaining. |
clone()
public AnalyticsValue.Builder clone()
Returns | |
---|---|
Type | Description |
AnalyticsValue.Builder |
getDefaultInstanceForType()
public AnalyticsValue getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
AnalyticsValue |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getDoubleValue()
public double getDoubleValue()
double double_value = 4;
Returns | |
---|---|
Type | Description |
double |
The doubleValue. |
getFloatValue()
public float getFloatValue()
float float_value = 3;
Returns | |
---|---|
Type | Description |
float |
The floatValue. |
getIntValue()
public long getIntValue()
int64 int_value = 2;
Returns | |
---|---|
Type | Description |
long |
The intValue. |
getParamValueCase()
public AnalyticsValue.ParamValueCase getParamValueCase()
Returns | |
---|---|
Type | Description |
AnalyticsValue.ParamValueCase |
getStringValue()
public String getStringValue()
string string_value = 1;
Returns | |
---|---|
Type | Description |
String |
The stringValue. |
getStringValueBytes()
public ByteString getStringValueBytes()
string string_value = 1;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for stringValue. |
hasDoubleValue()
public boolean hasDoubleValue()
double double_value = 4;
Returns | |
---|---|
Type | Description |
boolean |
Whether the doubleValue field is set. |
hasFloatValue()
public boolean hasFloatValue()
float float_value = 3;
Returns | |
---|---|
Type | Description |
boolean |
Whether the floatValue field is set. |
hasIntValue()
public boolean hasIntValue()
int64 int_value = 2;
Returns | |
---|---|
Type | Description |
boolean |
Whether the intValue field is set. |
hasStringValue()
public boolean hasStringValue()
string string_value = 1;
Returns | |
---|---|
Type | Description |
boolean |
Whether the stringValue field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(AnalyticsValue other)
public AnalyticsValue.Builder mergeFrom(AnalyticsValue other)
Parameter | |
---|---|
Name | Description |
other |
AnalyticsValue |
Returns | |
---|---|
Type | Description |
AnalyticsValue.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AnalyticsValue.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
AnalyticsValue.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public AnalyticsValue.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
AnalyticsValue.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AnalyticsValue.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
AnalyticsValue.Builder |
setDoubleValue(double value)
public AnalyticsValue.Builder setDoubleValue(double value)
double double_value = 4;
Parameter | |
---|---|
Name | Description |
value |
double The doubleValue to set. |
Returns | |
---|---|
Type | Description |
AnalyticsValue.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public AnalyticsValue.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
AnalyticsValue.Builder |
setFloatValue(float value)
public AnalyticsValue.Builder setFloatValue(float value)
float float_value = 3;
Parameter | |
---|---|
Name | Description |
value |
float The floatValue to set. |
Returns | |
---|---|
Type | Description |
AnalyticsValue.Builder |
This builder for chaining. |
setIntValue(long value)
public AnalyticsValue.Builder setIntValue(long value)
int64 int_value = 2;
Parameter | |
---|---|
Name | Description |
value |
long The intValue to set. |
Returns | |
---|---|
Type | Description |
AnalyticsValue.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AnalyticsValue.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
AnalyticsValue.Builder |
setStringValue(String value)
public AnalyticsValue.Builder setStringValue(String value)
string string_value = 1;
Parameter | |
---|---|
Name | Description |
value |
String The stringValue to set. |
Returns | |
---|---|
Type | Description |
AnalyticsValue.Builder |
This builder for chaining. |
setStringValueBytes(ByteString value)
public AnalyticsValue.Builder setStringValueBytes(ByteString value)
string string_value = 1;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for stringValue to set. |
Returns | |
---|---|
Type | Description |
AnalyticsValue.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final AnalyticsValue.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
AnalyticsValue.Builder |