Class CreateDataPointRequest.Builder (0.2.0)

public static final class CreateDataPointRequest.Builder extends GeneratedMessage.Builder<CreateDataPointRequest.Builder> implements CreateDataPointRequestOrBuilder

Request to create an identifiable data point.

Protobuf type google.devicesandservices.health.v4.CreateDataPointRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public CreateDataPointRequest build()
Returns
Type Description
CreateDataPointRequest

buildPartial()

public CreateDataPointRequest buildPartial()
Returns
Type Description
CreateDataPointRequest

clear()

public CreateDataPointRequest.Builder clear()
Returns
Type Description
CreateDataPointRequest.Builder
Overrides

clearDataPoint()

public CreateDataPointRequest.Builder clearDataPoint()

Required. The data point to create.

.google.devicesandservices.health.v4.DataPoint data_point = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateDataPointRequest.Builder

clearParent()

public CreateDataPointRequest.Builder clearParent()

Required. The parent resource name where the data point will be created. Format: users/{user}/dataTypes/{data_type}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateDataPointRequest.Builder

This builder for chaining.

getDataPoint()

public DataPoint getDataPoint()

Required. The data point to create.

.google.devicesandservices.health.v4.DataPoint data_point = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DataPoint

The dataPoint.

getDataPointBuilder()

public DataPoint.Builder getDataPointBuilder()

Required. The data point to create.

.google.devicesandservices.health.v4.DataPoint data_point = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DataPoint.Builder

getDataPointOrBuilder()

public DataPointOrBuilder getDataPointOrBuilder()

Required. The data point to create.

.google.devicesandservices.health.v4.DataPoint data_point = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DataPointOrBuilder

getDefaultInstanceForType()

public CreateDataPointRequest getDefaultInstanceForType()
Returns
Type Description
CreateDataPointRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getParent()

public String getParent()

Required. The parent resource name where the data point will be created. Format: users/{user}/dataTypes/{data_type}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent resource name where the data point will be created. Format: users/{user}/dataTypes/{data_type}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasDataPoint()

public boolean hasDataPoint()

Required. The data point to create.

.google.devicesandservices.health.v4.DataPoint data_point = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the dataPoint field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDataPoint(DataPoint value)

public CreateDataPointRequest.Builder mergeDataPoint(DataPoint value)

Required. The data point to create.

.google.devicesandservices.health.v4.DataPoint data_point = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DataPoint
Returns
Type Description
CreateDataPointRequest.Builder

mergeFrom(CreateDataPointRequest other)

public CreateDataPointRequest.Builder mergeFrom(CreateDataPointRequest other)
Parameter
Name Description
other CreateDataPointRequest
Returns
Type Description
CreateDataPointRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateDataPointRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateDataPointRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateDataPointRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateDataPointRequest.Builder
Overrides

setDataPoint(DataPoint value)

public CreateDataPointRequest.Builder setDataPoint(DataPoint value)

Required. The data point to create.

.google.devicesandservices.health.v4.DataPoint data_point = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DataPoint
Returns
Type Description
CreateDataPointRequest.Builder

setDataPoint(DataPoint.Builder builderForValue)

public CreateDataPointRequest.Builder setDataPoint(DataPoint.Builder builderForValue)

Required. The data point to create.

.google.devicesandservices.health.v4.DataPoint data_point = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue DataPoint.Builder
Returns
Type Description
CreateDataPointRequest.Builder

setParent(String value)

public CreateDataPointRequest.Builder setParent(String value)

Required. The parent resource name where the data point will be created. Format: users/{user}/dataTypes/{data_type}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateDataPointRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateDataPointRequest.Builder setParentBytes(ByteString value)

Required. The parent resource name where the data point will be created. Format: users/{user}/dataTypes/{data_type}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateDataPointRequest.Builder

This builder for chaining.