public final class

DataProto.Value.Builder

extends <any>

implements DataProto.ValueOrBuilder

 java.lang.Object

↳<any>

↳androidx.health.platform.client.proto.DataProto.Value.Builder

Overview

Protobuf type androidx.health.platform.client.proto.Value

Summary

Methods
public DataProto.Value.BuilderclearBooleanVal()

bool boolean_val = 5;

public DataProto.Value.BuilderclearDoubleVal()

double double_val = 2;

public DataProto.Value.BuilderclearEnumVal()

string enum_val = 4;

public DataProto.Value.BuilderclearLongVal()

int64 long_val = 1;

public DataProto.Value.BuilderclearStringVal()

string string_val = 3;

public DataProto.Value.BuilderclearValue()

public booleangetBooleanVal()

bool boolean_val = 5;

public doublegetDoubleVal()

double double_val = 2;

public java.lang.StringgetEnumVal()

string enum_val = 4;

public com.google.protobuf.ByteStringgetEnumValBytes()

string enum_val = 4;

public longgetLongVal()

int64 long_val = 1;

public java.lang.StringgetStringVal()

string string_val = 3;

public com.google.protobuf.ByteStringgetStringValBytes()

string string_val = 3;

public DataProto.Value.ValueCasegetValueCase()

public booleanhasBooleanVal()

bool boolean_val = 5;

public booleanhasDoubleVal()

double double_val = 2;

public booleanhasEnumVal()

string enum_val = 4;

public booleanhasLongVal()

int64 long_val = 1;

public booleanhasStringVal()

string string_val = 3;

public DataProto.Value.BuildersetBooleanVal(boolean value)

bool boolean_val = 5;

public DataProto.Value.BuildersetDoubleVal(double value)

double double_val = 2;

public DataProto.Value.BuildersetEnumVal(java.lang.String value)

string enum_val = 4;

public DataProto.Value.BuildersetEnumValBytes(com.google.protobuf.ByteString value)

string enum_val = 4;

public DataProto.Value.BuildersetLongVal(long value)

int64 long_val = 1;

public DataProto.Value.BuildersetStringVal(java.lang.String value)

string string_val = 3;

public DataProto.Value.BuildersetStringValBytes(com.google.protobuf.ByteString value)

string string_val = 3;

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods

public DataProto.Value.ValueCase getValueCase()

public DataProto.Value.Builder clearValue()

public boolean hasLongVal()

int64 long_val = 1;

Returns:

Whether the longVal field is set.

public long getLongVal()

int64 long_val = 1;

Returns:

The longVal.

public DataProto.Value.Builder setLongVal(long value)

int64 long_val = 1;

Parameters:

value: The longVal to set.

Returns:

This builder for chaining.

public DataProto.Value.Builder clearLongVal()

int64 long_val = 1;

Returns:

This builder for chaining.

public boolean hasDoubleVal()

double double_val = 2;

Returns:

Whether the doubleVal field is set.

public double getDoubleVal()

double double_val = 2;

Returns:

The doubleVal.

public DataProto.Value.Builder setDoubleVal(double value)

double double_val = 2;

Parameters:

value: The doubleVal to set.

Returns:

This builder for chaining.

public DataProto.Value.Builder clearDoubleVal()

double double_val = 2;

Returns:

This builder for chaining.

public boolean hasStringVal()

string string_val = 3;

Returns:

Whether the stringVal field is set.

public java.lang.String getStringVal()

string string_val = 3;

Returns:

The stringVal.

public com.google.protobuf.ByteString getStringValBytes()

string string_val = 3;

Returns:

The bytes for stringVal.

public DataProto.Value.Builder setStringVal(java.lang.String value)

string string_val = 3;

Parameters:

value: The stringVal to set.

Returns:

This builder for chaining.

public DataProto.Value.Builder clearStringVal()

string string_val = 3;

Returns:

This builder for chaining.

public DataProto.Value.Builder setStringValBytes(com.google.protobuf.ByteString value)

string string_val = 3;

Parameters:

value: The bytes for stringVal to set.

Returns:

This builder for chaining.

public boolean hasEnumVal()

string enum_val = 4;

Returns:

Whether the enumVal field is set.

public java.lang.String getEnumVal()

string enum_val = 4;

Returns:

The enumVal.

public com.google.protobuf.ByteString getEnumValBytes()

string enum_val = 4;

Returns:

The bytes for enumVal.

public DataProto.Value.Builder setEnumVal(java.lang.String value)

string enum_val = 4;

Parameters:

value: The enumVal to set.

Returns:

This builder for chaining.

public DataProto.Value.Builder clearEnumVal()

string enum_val = 4;

Returns:

This builder for chaining.

public DataProto.Value.Builder setEnumValBytes(com.google.protobuf.ByteString value)

string enum_val = 4;

Parameters:

value: The bytes for enumVal to set.

Returns:

This builder for chaining.

public boolean hasBooleanVal()

bool boolean_val = 5;

Returns:

Whether the booleanVal field is set.

public boolean getBooleanVal()

bool boolean_val = 5;

Returns:

The booleanVal.

public DataProto.Value.Builder setBooleanVal(boolean value)

bool boolean_val = 5;

Parameters:

value: The booleanVal to set.

Returns:

This builder for chaining.

public DataProto.Value.Builder clearBooleanVal()

bool boolean_val = 5;

Returns:

This builder for chaining.