public final class

PermissionProto.Permission.Builder

extends <any>

implements PermissionProto.PermissionOrBuilder

 java.lang.Object

↳<any>

↳androidx.health.platform.client.proto.PermissionProto.Permission.Builder

Overview

 Represents both the new and the old permission format.
 If "permission" is set, the other 2 fields will be ignored.
 
Protobuf type androidx.health.platform.client.proto.Permission

Summary

Methods
public PermissionProto.Permission.BuilderclearAccessType()

optional .androidx.health.platform.client.proto.AccessType access_type = 2;

public PermissionProto.Permission.BuilderclearDataType()

optional .androidx.health.platform.client.proto.DataType data_type = 1;

public PermissionProto.Permission.BuilderclearPermission()

optional string permission = 3;

public PermissionProto.AccessTypegetAccessType()

optional .androidx.health.platform.client.proto.AccessType access_type = 2;

public DataProto.DataTypegetDataType()

optional .androidx.health.platform.client.proto.DataType data_type = 1;

public java.lang.StringgetPermission()

optional string permission = 3;

public com.google.protobuf.ByteStringgetPermissionBytes()

optional string permission = 3;

public booleanhasAccessType()

optional .androidx.health.platform.client.proto.AccessType access_type = 2;

public booleanhasDataType()

optional .androidx.health.platform.client.proto.DataType data_type = 1;

public booleanhasPermission()

optional string permission = 3;

public PermissionProto.Permission.BuildermergeDataType(DataProto.DataType value)

optional .androidx.health.platform.client.proto.DataType data_type = 1;

public PermissionProto.Permission.BuildersetAccessType(PermissionProto.AccessType value)

optional .androidx.health.platform.client.proto.AccessType access_type = 2;

public PermissionProto.Permission.BuildersetDataType(DataProto.DataType.Builder builderForValue)

optional .androidx.health.platform.client.proto.DataType data_type = 1;

public PermissionProto.Permission.BuildersetDataType(DataProto.DataType value)

optional .androidx.health.platform.client.proto.DataType data_type = 1;

public PermissionProto.Permission.BuildersetPermission(java.lang.String value)

optional string permission = 3;

public PermissionProto.Permission.BuildersetPermissionBytes(com.google.protobuf.ByteString value)

optional string permission = 3;

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

Methods

public boolean hasDataType()

optional .androidx.health.platform.client.proto.DataType data_type = 1;

public DataProto.DataType getDataType()

optional .androidx.health.platform.client.proto.DataType data_type = 1;

optional .androidx.health.platform.client.proto.DataType data_type = 1;

optional .androidx.health.platform.client.proto.DataType data_type = 1;

optional .androidx.health.platform.client.proto.DataType data_type = 1;

public PermissionProto.Permission.Builder clearDataType()

optional .androidx.health.platform.client.proto.DataType data_type = 1;

public boolean hasAccessType()

optional .androidx.health.platform.client.proto.AccessType access_type = 2;

Returns:

Whether the accessType field is set.

public PermissionProto.AccessType getAccessType()

optional .androidx.health.platform.client.proto.AccessType access_type = 2;

Returns:

The accessType.

optional .androidx.health.platform.client.proto.AccessType access_type = 2;

Parameters:

value: The enum numeric value on the wire for accessType to set.

Returns:

This builder for chaining.

public PermissionProto.Permission.Builder clearAccessType()

optional .androidx.health.platform.client.proto.AccessType access_type = 2;

Returns:

This builder for chaining.

public boolean hasPermission()

optional string permission = 3;

Returns:

Whether the permission field is set.

public java.lang.String getPermission()

optional string permission = 3;

Returns:

The permission.

public com.google.protobuf.ByteString getPermissionBytes()

optional string permission = 3;

Returns:

The bytes for permission.

public PermissionProto.Permission.Builder setPermission(java.lang.String value)

optional string permission = 3;

Parameters:

value: The permission to set.

Returns:

This builder for chaining.

public PermissionProto.Permission.Builder clearPermission()

optional string permission = 3;

Returns:

This builder for chaining.

public PermissionProto.Permission.Builder setPermissionBytes(com.google.protobuf.ByteString value)

optional string permission = 3;

Parameters:

value: The bytes for permission to set.

Returns:

This builder for chaining.