public static final class AndroidKeySettings.Builder extends GeneratedMessageV3.Builder<AndroidKeySettings.Builder> implements AndroidKeySettingsOrBuilder
Settings specific to keys that can be used by Android apps.
Protobuf type google.cloud.recaptchaenterprise.v1.AndroidKeySettings
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()
Methods
addAllAllowedPackageNames(Iterable<String> values)
public AndroidKeySettings.Builder addAllAllowedPackageNames(Iterable<String> values)
Android package names of apps allowed to use the key.
Example: 'com.companyname.appname'
repeated string allowed_package_names = 1;
Parameter |
---|
Name | Description |
values | Iterable<String>
The allowedPackageNames to add.
|
addAllowedPackageNames(String value)
public AndroidKeySettings.Builder addAllowedPackageNames(String value)
Android package names of apps allowed to use the key.
Example: 'com.companyname.appname'
repeated string allowed_package_names = 1;
Parameter |
---|
Name | Description |
value | String
The allowedPackageNames to add.
|
addAllowedPackageNamesBytes(ByteString value)
public AndroidKeySettings.Builder addAllowedPackageNamesBytes(ByteString value)
Android package names of apps allowed to use the key.
Example: 'com.companyname.appname'
repeated string allowed_package_names = 1;
Parameter |
---|
Name | Description |
value | ByteString
The bytes of the allowedPackageNames to add.
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AndroidKeySettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public AndroidKeySettings build()
buildPartial()
public AndroidKeySettings buildPartial()
clear()
public AndroidKeySettings.Builder clear()
Overrides
clearAllowAllPackageNames()
public AndroidKeySettings.Builder clearAllowAllPackageNames()
If set to true, allowed_package_names are not enforced.
bool allow_all_package_names = 2;
clearAllowedPackageNames()
public AndroidKeySettings.Builder clearAllowedPackageNames()
Android package names of apps allowed to use the key.
Example: 'com.companyname.appname'
repeated string allowed_package_names = 1;
clearField(Descriptors.FieldDescriptor field)
public AndroidKeySettings.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public AndroidKeySettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public AndroidKeySettings.Builder clone()
Overrides
getAllowAllPackageNames()
public boolean getAllowAllPackageNames()
If set to true, allowed_package_names are not enforced.
bool allow_all_package_names = 2;
Returns |
---|
Type | Description |
boolean | The allowAllPackageNames.
|
getAllowedPackageNames(int index)
public String getAllowedPackageNames(int index)
Android package names of apps allowed to use the key.
Example: 'com.companyname.appname'
repeated string allowed_package_names = 1;
Parameter |
---|
Name | Description |
index | int
The index of the element to return.
|
Returns |
---|
Type | Description |
String | The allowedPackageNames at the given index.
|
getAllowedPackageNamesBytes(int index)
public ByteString getAllowedPackageNamesBytes(int index)
Android package names of apps allowed to use the key.
Example: 'com.companyname.appname'
repeated string allowed_package_names = 1;
Parameter |
---|
Name | Description |
index | int
The index of the value to return.
|
Returns |
---|
Type | Description |
ByteString | The bytes of the allowedPackageNames at the given index.
|
getAllowedPackageNamesCount()
public int getAllowedPackageNamesCount()
Android package names of apps allowed to use the key.
Example: 'com.companyname.appname'
repeated string allowed_package_names = 1;
Returns |
---|
Type | Description |
int | The count of allowedPackageNames.
|
getAllowedPackageNamesList()
public ProtocolStringList getAllowedPackageNamesList()
Android package names of apps allowed to use the key.
Example: 'com.companyname.appname'
repeated string allowed_package_names = 1;
getDefaultInstanceForType()
public AndroidKeySettings getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
public AndroidKeySettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AndroidKeySettings.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeFrom(AndroidKeySettings other)
public AndroidKeySettings.Builder mergeFrom(AndroidKeySettings other)
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AndroidKeySettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setAllowAllPackageNames(boolean value)
public AndroidKeySettings.Builder setAllowAllPackageNames(boolean value)
If set to true, allowed_package_names are not enforced.
bool allow_all_package_names = 2;
Parameter |
---|
Name | Description |
value | boolean
The allowAllPackageNames to set.
|
setAllowedPackageNames(int index, String value)
public AndroidKeySettings.Builder setAllowedPackageNames(int index, String value)
Android package names of apps allowed to use the key.
Example: 'com.companyname.appname'
repeated string allowed_package_names = 1;
Parameters |
---|
Name | Description |
index | int
The index to set the value at.
|
value | String
The allowedPackageNames to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public AndroidKeySettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AndroidKeySettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AndroidKeySettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides