public final class

PermissionProto.Permission

extends <any>

implements PermissionProto.PermissionOrBuilder

 java.lang.Object

↳<any>

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

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

Fields
public static final intACCESS_TYPE_FIELD_NUMBER

public static final intDATA_TYPE_FIELD_NUMBER

public static final intPERMISSION_FIELD_NUMBER

Methods
protected final java.lang.ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)

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 static PermissionProto.PermissiongetDefaultInstance()

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 static PermissionProto.Permission.BuildernewBuilder()

public static PermissionProto.Permission.BuildernewBuilder(PermissionProto.Permission prototype)

public static PermissionProto.PermissionparseDelimitedFrom(java.io.InputStream input)

public static PermissionProto.PermissionparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static PermissionProto.PermissionparseFrom(byte[] data[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static PermissionProto.PermissionparseFrom(java.nio.ByteBuffer data)

public static PermissionProto.PermissionparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static PermissionProto.PermissionparseFrom(com.google.protobuf.ByteString data)

public static PermissionProto.PermissionparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static PermissionProto.PermissionparseFrom(com.google.protobuf.CodedInputStream input)

public static PermissionProto.PermissionparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static PermissionProto.PermissionparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static <any>parser()

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

Fields

public static final int DATA_TYPE_FIELD_NUMBER

public static final int ACCESS_TYPE_FIELD_NUMBER

public static final int PERMISSION_FIELD_NUMBER

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;

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.

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 static PermissionProto.Permission parseFrom(java.nio.ByteBuffer data)

public static PermissionProto.Permission parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static PermissionProto.Permission parseFrom(com.google.protobuf.ByteString data)

public static PermissionProto.Permission parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static PermissionProto.Permission parseFrom(byte[] data[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static PermissionProto.Permission parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static PermissionProto.Permission parseDelimitedFrom(java.io.InputStream input)

public static PermissionProto.Permission parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static PermissionProto.Permission parseFrom(com.google.protobuf.CodedInputStream input)

public static PermissionProto.Permission parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

public static PermissionProto.Permission.Builder newBuilder()

protected final java.lang.Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)

public static PermissionProto.Permission getDefaultInstance()

public static <any> parser()