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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
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
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AndroidKeyRestrictions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
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;
clearField(Descriptors.FieldDescriptor field)
public AndroidKeyRestrictions.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public AndroidKeyRestrictions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public AndroidKeyRestrictions.Builder clone()
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
|
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 GeneratedMessageV3.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
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AndroidKeyRestrictions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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;
setField(Descriptors.FieldDescriptor field, Object value)
public AndroidKeyRestrictions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AndroidKeyRestrictions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AndroidKeyRestrictions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides