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
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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>
|
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;
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;
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;
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;
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;
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
|
build()
public AndroidKeyRestrictions build()
buildPartial()
public AndroidKeyRestrictions buildPartial()
clear()
public AndroidKeyRestrictions.Builder clear()
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;
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
|
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
|
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;
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;
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
|
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(AndroidKeyRestrictions other)
public AndroidKeyRestrictions.Builder mergeFrom(AndroidKeyRestrictions other)
public AndroidKeyRestrictions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AndroidKeyRestrictions.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
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
|
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;
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;