Class AndroidKeyRestrictions.Builder (0.40.0)

public static final class AndroidKeyRestrictions.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AndroidKeyRestrictions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AndroidKeyRestrictions.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public AndroidKeyRestrictions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AndroidKeyRestrictions.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AndroidKeyRestrictions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AndroidKeyRestrictions.Builder
Overrides

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AndroidKeyRestrictions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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

setField(Descriptors.FieldDescriptor field, Object value)

public AndroidKeyRestrictions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AndroidKeyRestrictions.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AndroidKeyRestrictions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AndroidKeyRestrictions.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AndroidKeyRestrictions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AndroidKeyRestrictions.Builder
Overrides