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.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()
Returns
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
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
Returns
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
Returns
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
Returns
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
Returns
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
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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AndroidKeyRestrictions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public AndroidKeyRestrictions build()
Returns
buildPartial()
public AndroidKeyRestrictions buildPartial()
Returns
clear()
public AndroidKeyRestrictions.Builder clear()
Returns
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
clearField(Descriptors.FieldDescriptor field)
public AndroidKeyRestrictions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public AndroidKeyRestrictions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public AndroidKeyRestrictions.Builder clone()
Returns
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
Returns
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
Returns
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
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
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
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
Returns
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
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(AndroidKeyRestrictions other)
public AndroidKeyRestrictions.Builder mergeFrom(AndroidKeyRestrictions other)
Parameter
Returns
public AndroidKeyRestrictions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public AndroidKeyRestrictions.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AndroidKeyRestrictions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public AndroidKeyRestrictions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AndroidKeyRestrictions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AndroidKeyRestrictions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides