public final class

RequestProto.RequestContext.Builder

extends <any>

implements RequestProto.RequestContextOrBuilder

 java.lang.Object

↳<any>

↳androidx.health.platform.client.proto.RequestProto.RequestContext.Builder

Overview

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

Summary

Methods
public RequestProto.RequestContext.BuilderclearCallingPackage()

optional string calling_package = 1;

public RequestProto.RequestContext.BuilderclearIsInForeground()

optional bool is_in_foreground = 4;

public RequestProto.RequestContext.BuilderclearPermissionToken()

optional string permission_token = 3;

public RequestProto.RequestContext.BuilderclearSdkVersion()

optional int32 sdk_version = 2;

public java.lang.StringgetCallingPackage()

optional string calling_package = 1;

public com.google.protobuf.ByteStringgetCallingPackageBytes()

optional string calling_package = 1;

public booleangetIsInForeground()

optional bool is_in_foreground = 4;

public java.lang.StringgetPermissionToken()

optional string permission_token = 3;

public com.google.protobuf.ByteStringgetPermissionTokenBytes()

optional string permission_token = 3;

public intgetSdkVersion()

optional int32 sdk_version = 2;

public booleanhasCallingPackage()

optional string calling_package = 1;

public booleanhasIsInForeground()

optional bool is_in_foreground = 4;

public booleanhasPermissionToken()

optional string permission_token = 3;

public booleanhasSdkVersion()

optional int32 sdk_version = 2;

public RequestProto.RequestContext.BuildersetCallingPackage(java.lang.String value)

optional string calling_package = 1;

public RequestProto.RequestContext.BuildersetCallingPackageBytes(com.google.protobuf.ByteString value)

optional string calling_package = 1;

public RequestProto.RequestContext.BuildersetIsInForeground(boolean value)

optional bool is_in_foreground = 4;

public RequestProto.RequestContext.BuildersetPermissionToken(java.lang.String value)

optional string permission_token = 3;

public RequestProto.RequestContext.BuildersetPermissionTokenBytes(com.google.protobuf.ByteString value)

optional string permission_token = 3;

public RequestProto.RequestContext.BuildersetSdkVersion(int value)

optional int32 sdk_version = 2;

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

Methods

public boolean hasCallingPackage()

optional string calling_package = 1;

Returns:

Whether the callingPackage field is set.

public java.lang.String getCallingPackage()

optional string calling_package = 1;

Returns:

The callingPackage.

public com.google.protobuf.ByteString getCallingPackageBytes()

optional string calling_package = 1;

Returns:

The bytes for callingPackage.

public RequestProto.RequestContext.Builder setCallingPackage(java.lang.String value)

optional string calling_package = 1;

Parameters:

value: The callingPackage to set.

Returns:

This builder for chaining.

public RequestProto.RequestContext.Builder clearCallingPackage()

optional string calling_package = 1;

Returns:

This builder for chaining.

public RequestProto.RequestContext.Builder setCallingPackageBytes(com.google.protobuf.ByteString value)

optional string calling_package = 1;

Parameters:

value: The bytes for callingPackage to set.

Returns:

This builder for chaining.

public boolean hasSdkVersion()

optional int32 sdk_version = 2;

Returns:

Whether the sdkVersion field is set.

public int getSdkVersion()

optional int32 sdk_version = 2;

Returns:

The sdkVersion.

public RequestProto.RequestContext.Builder setSdkVersion(int value)

optional int32 sdk_version = 2;

Parameters:

value: The sdkVersion to set.

Returns:

This builder for chaining.

public RequestProto.RequestContext.Builder clearSdkVersion()

optional int32 sdk_version = 2;

Returns:

This builder for chaining.

public boolean hasPermissionToken()

optional string permission_token = 3;

Returns:

Whether the permissionToken field is set.

public java.lang.String getPermissionToken()

optional string permission_token = 3;

Returns:

The permissionToken.

public com.google.protobuf.ByteString getPermissionTokenBytes()

optional string permission_token = 3;

Returns:

The bytes for permissionToken.

public RequestProto.RequestContext.Builder setPermissionToken(java.lang.String value)

optional string permission_token = 3;

Parameters:

value: The permissionToken to set.

Returns:

This builder for chaining.

public RequestProto.RequestContext.Builder clearPermissionToken()

optional string permission_token = 3;

Returns:

This builder for chaining.

public RequestProto.RequestContext.Builder setPermissionTokenBytes(com.google.protobuf.ByteString value)

optional string permission_token = 3;

Parameters:

value: The bytes for permissionToken to set.

Returns:

This builder for chaining.

public boolean hasIsInForeground()

optional bool is_in_foreground = 4;

Returns:

Whether the isInForeground field is set.

public boolean getIsInForeground()

optional bool is_in_foreground = 4;

Returns:

The isInForeground.

public RequestProto.RequestContext.Builder setIsInForeground(boolean value)

optional bool is_in_foreground = 4;

Parameters:

value: The isInForeground to set.

Returns:

This builder for chaining.

public RequestProto.RequestContext.Builder clearIsInForeground()

optional bool is_in_foreground = 4;

Returns:

This builder for chaining.