Class AndroidKeyRestrictions.Builder (0.81.0)

public static final class AndroidKeyRestrictions.Builder extends GeneratedMessage.Builder<AndroidKeyRestrictions.Builder> implements AndroidKeyRestrictionsOrBuilder

The Android apps that are allowed to use the key.

Protobuf type google.api.apikeys.v2.AndroidKeyRestrictions

Static Methods

getDescriptor()

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

Methods

addAllAllowedApplications(Iterable<? extends AndroidApplication> values)

public AndroidKeyRestrictions.Builder addAllAllowedApplications(Iterable<? extends AndroidApplication> values)

A list of Android applications that are allowed to make API calls with this key.

repeated .google.api.apikeys.v2.AndroidApplication allowed_applications = 1;

Parameter
Name Description
values Iterable<? extends com.google.api.apikeys.v2.AndroidApplication>
Returns
Type Description
AndroidKeyRestrictions.Builder

addAllowedApplications(AndroidApplication value)

public AndroidKeyRestrictions.Builder addAllowedApplications(AndroidApplication value)

A list of Android applications that are allowed to make API calls with this key.

repeated .google.api.apikeys.v2.AndroidApplication allowed_applications = 1;

Parameter
Name Description
value AndroidApplication
Returns
Type Description
AndroidKeyRestrictions.Builder

addAllowedApplications(AndroidApplication.Builder builderForValue)

public AndroidKeyRestrictions.Builder addAllowedApplications(AndroidApplication.Builder builderForValue)

A list of Android applications that are allowed to make API calls with this key.

repeated .google.api.apikeys.v2.AndroidApplication allowed_applications = 1;

Parameter
Name Description
builderForValue AndroidApplication.Builder
Returns
Type Description
AndroidKeyRestrictions.Builder

addAllowedApplications(int index, AndroidApplication value)

public AndroidKeyRestrictions.Builder addAllowedApplications(int index, AndroidApplication value)

A list of Android applications that are allowed to make API calls with this key.

repeated .google.api.apikeys.v2.AndroidApplication allowed_applications = 1;

Parameters
Name Description
index int
value AndroidApplication
Returns
Type Description
AndroidKeyRestrictions.Builder

addAllowedApplications(int index, AndroidApplication.Builder builderForValue)

public AndroidKeyRestrictions.Builder addAllowedApplications(int index, AndroidApplication.Builder builderForValue)

A list of Android applications that are allowed to make API calls with this key.

repeated .google.api.apikeys.v2.AndroidApplication allowed_applications = 1;

Parameters
Name Description
index int
builderForValue AndroidApplication.Builder
Returns
Type Description
AndroidKeyRestrictions.Builder

addAllowedApplicationsBuilder()

public AndroidApplication.Builder addAllowedApplicationsBuilder()

A list of Android applications that are allowed to make API calls with this key.

repeated .google.api.apikeys.v2.AndroidApplication allowed_applications = 1;

Returns
Type Description
AndroidApplication.Builder

addAllowedApplicationsBuilder(int index)

public AndroidApplication.Builder addAllowedApplicationsBuilder(int index)

A list of Android applications that are allowed to make API calls with this key.

repeated .google.api.apikeys.v2.AndroidApplication allowed_applications = 1;

Parameter
Name Description
index int
Returns
Type Description
AndroidApplication.Builder

build()

public AndroidKeyRestrictions build()
Returns
Type Description
AndroidKeyRestrictions

buildPartial()

public AndroidKeyRestrictions buildPartial()
Returns
Type Description
AndroidKeyRestrictions

clear()

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

clearAllowedApplications()

public AndroidKeyRestrictions.Builder clearAllowedApplications()

A list of Android applications that are allowed to make API calls with this key.

repeated .google.api.apikeys.v2.AndroidApplication allowed_applications = 1;

Returns
Type Description
AndroidKeyRestrictions.Builder

getAllowedApplications(int index)

public AndroidApplication getAllowedApplications(int index)

A list of Android applications that are allowed to make API calls with this key.

repeated .google.api.apikeys.v2.AndroidApplication allowed_applications = 1;

Parameter
Name Description
index int
Returns
Type Description
AndroidApplication

getAllowedApplicationsBuilder(int index)

public AndroidApplication.Builder getAllowedApplicationsBuilder(int index)

A list of Android applications that are allowed to make API calls with this key.

repeated .google.api.apikeys.v2.AndroidApplication allowed_applications = 1;

Parameter
Name Description
index int
Returns
Type Description
AndroidApplication.Builder

getAllowedApplicationsBuilderList()

public List<AndroidApplication.Builder> getAllowedApplicationsBuilderList()

A list of Android applications that are allowed to make API calls with this key.

repeated .google.api.apikeys.v2.AndroidApplication allowed_applications = 1;

Returns
Type Description
List<Builder>

getAllowedApplicationsCount()

public int getAllowedApplicationsCount()

A list of Android applications that are allowed to make API calls with this key.

repeated .google.api.apikeys.v2.AndroidApplication allowed_applications = 1;

Returns
Type Description
int

getAllowedApplicationsList()

public List<AndroidApplication> getAllowedApplicationsList()

A list of Android applications that are allowed to make API calls with this key.

repeated .google.api.apikeys.v2.AndroidApplication allowed_applications = 1;

Returns
Type Description
List<AndroidApplication>

getAllowedApplicationsOrBuilder(int index)

public AndroidApplicationOrBuilder getAllowedApplicationsOrBuilder(int index)

A list of Android applications that are allowed to make API calls with this key.

repeated .google.api.apikeys.v2.AndroidApplication allowed_applications = 1;

Parameter
Name Description
index int
Returns
Type Description
AndroidApplicationOrBuilder

getAllowedApplicationsOrBuilderList()

public List<? extends AndroidApplicationOrBuilder> getAllowedApplicationsOrBuilderList()

A list of Android applications that are allowed to make API calls with this key.

repeated .google.api.apikeys.v2.AndroidApplication allowed_applications = 1;

Returns
Type Description
List<? extends com.google.api.apikeys.v2.AndroidApplicationOrBuilder>

getDefaultInstanceForType()

public AndroidKeyRestrictions getDefaultInstanceForType()
Returns
Type Description
AndroidKeyRestrictions

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AndroidKeyRestrictions other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeAllowedApplications(int index)

public AndroidKeyRestrictions.Builder removeAllowedApplications(int index)

A list of Android applications that are allowed to make API calls with this key.

repeated .google.api.apikeys.v2.AndroidApplication allowed_applications = 1;

Parameter
Name Description
index int
Returns
Type Description
AndroidKeyRestrictions.Builder

setAllowedApplications(int index, AndroidApplication value)

public AndroidKeyRestrictions.Builder setAllowedApplications(int index, AndroidApplication value)

A list of Android applications that are allowed to make API calls with this key.

repeated .google.api.apikeys.v2.AndroidApplication allowed_applications = 1;

Parameters
Name Description
index int
value AndroidApplication
Returns
Type Description
AndroidKeyRestrictions.Builder

setAllowedApplications(int index, AndroidApplication.Builder builderForValue)

public AndroidKeyRestrictions.Builder setAllowedApplications(int index, AndroidApplication.Builder builderForValue)

A list of Android applications that are allowed to make API calls with this key.

repeated .google.api.apikeys.v2.AndroidApplication allowed_applications = 1;

Parameters
Name Description
index int
builderForValue AndroidApplication.Builder
Returns
Type Description
AndroidKeyRestrictions.Builder