Class ExportExerciseTcxRequest.Builder (0.2.0)

public static final class ExportExerciseTcxRequest.Builder extends GeneratedMessage.Builder<ExportExerciseTcxRequest.Builder> implements ExportExerciseTcxRequestOrBuilder

Represents a request to export exercise data in TCX format.

Protobuf type google.devicesandservices.health.v4.ExportExerciseTcxRequest

Static Methods

getDescriptor()

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

Methods

build()

public ExportExerciseTcxRequest build()
Returns
Type Description
ExportExerciseTcxRequest

buildPartial()

public ExportExerciseTcxRequest buildPartial()
Returns
Type Description
ExportExerciseTcxRequest

clear()

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

clearName()

public ExportExerciseTcxRequest.Builder clearName()

Required. The resource name of the exercise data point to export.

Format: users/{user}/dataTypes/exercise/dataPoints/{data_point} Example: users/me/dataTypes/exercise/dataPoints/2026443605080188808

The {user} is the alias "me" currently. Future versions may support user IDs. The {data_point} ID maps to the exercise ID, which is a long integer.

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

Returns
Type Description
ExportExerciseTcxRequest.Builder

This builder for chaining.

clearPartialData()

public ExportExerciseTcxRequest.Builder clearPartialData()

Optional. Indicates whether to include the TCX data points when the GPS data is not available. If not specified, defaults to false and partial data will not be included.

bool partial_data = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ExportExerciseTcxRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public ExportExerciseTcxRequest getDefaultInstanceForType()
Returns
Type Description
ExportExerciseTcxRequest

getDescriptorForType()

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

getName()

public String getName()

Required. The resource name of the exercise data point to export.

Format: users/{user}/dataTypes/exercise/dataPoints/{data_point} Example: users/me/dataTypes/exercise/dataPoints/2026443605080188808

The {user} is the alias "me" currently. Future versions may support user IDs. The {data_point} ID maps to the exercise ID, which is a long integer.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of the exercise data point to export.

Format: users/{user}/dataTypes/exercise/dataPoints/{data_point} Example: users/me/dataTypes/exercise/dataPoints/2026443605080188808

The {user} is the alias "me" currently. Future versions may support user IDs. The {data_point} ID maps to the exercise ID, which is a long integer.

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

Returns
Type Description
ByteString

The bytes for name.

getPartialData()

public boolean getPartialData()

Optional. Indicates whether to include the TCX data points when the GPS data is not available. If not specified, defaults to false and partial data will not be included.

bool partial_data = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The partialData.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExportExerciseTcxRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public ExportExerciseTcxRequest.Builder setName(String value)

Required. The resource name of the exercise data point to export.

Format: users/{user}/dataTypes/exercise/dataPoints/{data_point} Example: users/me/dataTypes/exercise/dataPoints/2026443605080188808

The {user} is the alias "me" currently. Future versions may support user IDs. The {data_point} ID maps to the exercise ID, which is a long integer.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ExportExerciseTcxRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ExportExerciseTcxRequest.Builder setNameBytes(ByteString value)

Required. The resource name of the exercise data point to export.

Format: users/{user}/dataTypes/exercise/dataPoints/{data_point} Example: users/me/dataTypes/exercise/dataPoints/2026443605080188808

The {user} is the alias "me" currently. Future versions may support user IDs. The {data_point} ID maps to the exercise ID, which is a long integer.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ExportExerciseTcxRequest.Builder

This builder for chaining.

setPartialData(boolean value)

public ExportExerciseTcxRequest.Builder setPartialData(boolean value)

Optional. Indicates whether to include the TCX data points when the GPS data is not available. If not specified, defaults to false and partial data will not be included.

bool partial_data = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The partialData to set.

Returns
Type Description
ExportExerciseTcxRequest.Builder

This builder for chaining.