Class AndroidKeyRestrictions.Builder (0.1.2)

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.api.apikeys.v2.AndroidApplication>
Returns
TypeDescription
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
NameDescription
valueAndroidApplication
Returns
TypeDescription
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
NameDescription
builderForValueAndroidApplication.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueAndroidApplication
Returns
TypeDescription
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
NameDescription
indexint
builderForValueAndroidApplication.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
AndroidApplication.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AndroidKeyRestrictions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AndroidKeyRestrictions.Builder
Overrides

build()

public AndroidKeyRestrictions build()
Returns
TypeDescription
AndroidKeyRestrictions

buildPartial()

public AndroidKeyRestrictions buildPartial()
Returns
TypeDescription
AndroidKeyRestrictions

clear()

public AndroidKeyRestrictions.Builder clear()
Returns
TypeDescription
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
TypeDescription
AndroidKeyRestrictions.Builder

clearField(Descriptors.FieldDescriptor field)

public AndroidKeyRestrictions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AndroidKeyRestrictions.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AndroidKeyRestrictions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AndroidKeyRestrictions.Builder
Overrides

clone()

public AndroidKeyRestrictions.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.api.apikeys.v2.AndroidApplicationOrBuilder>

getDefaultInstanceForType()

public AndroidKeyRestrictions getDefaultInstanceForType()
Returns
TypeDescription
AndroidKeyRestrictions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AndroidKeyRestrictions other)

public AndroidKeyRestrictions.Builder mergeFrom(AndroidKeyRestrictions other)
Parameter
NameDescription
otherAndroidKeyRestrictions
Returns
TypeDescription
AndroidKeyRestrictions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AndroidKeyRestrictions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AndroidKeyRestrictions.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AndroidKeyRestrictions.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AndroidKeyRestrictions.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AndroidKeyRestrictions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueAndroidApplication
Returns
TypeDescription
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
NameDescription
indexint
builderForValueAndroidApplication.Builder
Returns
TypeDescription
AndroidKeyRestrictions.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AndroidKeyRestrictions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AndroidKeyRestrictions.Builder
Overrides

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

public AndroidKeyRestrictions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AndroidKeyRestrictions.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AndroidKeyRestrictions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AndroidKeyRestrictions.Builder
Overrides