Class AndroidKeySettings.Builder (3.28.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllAllowedPackageNames(Iterable<String> values)

public AndroidKeySettings.Builder addAllAllowedPackageNames(Iterable<String> values)

Optional. Android package names of apps allowed to use the key. Example: 'com.companyname.appname'

repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesIterable<String>

The allowedPackageNames to add.

Returns
TypeDescription
AndroidKeySettings.Builder

This builder for chaining.

addAllowedPackageNames(String value)

public AndroidKeySettings.Builder addAllowedPackageNames(String value)

Optional. Android package names of apps allowed to use the key. Example: 'com.companyname.appname'

repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The allowedPackageNames to add.

Returns
TypeDescription
AndroidKeySettings.Builder

This builder for chaining.

addAllowedPackageNamesBytes(ByteString value)

public AndroidKeySettings.Builder addAllowedPackageNamesBytes(ByteString value)

Optional. Android package names of apps allowed to use the key. Example: 'com.companyname.appname'

repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes of the allowedPackageNames to add.

Returns
TypeDescription
AndroidKeySettings.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AndroidKeySettings build()
Returns
TypeDescription
AndroidKeySettings

buildPartial()

public AndroidKeySettings buildPartial()
Returns
TypeDescription
AndroidKeySettings

clear()

public AndroidKeySettings.Builder clear()
Returns
TypeDescription
AndroidKeySettings.Builder
Overrides

clearAllowAllPackageNames()

public AndroidKeySettings.Builder clearAllowAllPackageNames()

Optional. If set to true, allowed_package_names are not enforced.

bool allow_all_package_names = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AndroidKeySettings.Builder

This builder for chaining.

clearAllowedPackageNames()

public AndroidKeySettings.Builder clearAllowedPackageNames()

Optional. Android package names of apps allowed to use the key. Example: 'com.companyname.appname'

repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AndroidKeySettings.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSupportNonGoogleAppStoreDistribution()

public AndroidKeySettings.Builder clearSupportNonGoogleAppStoreDistribution()

Optional. Set to true for keys that are used in an Android application that is available for download in app stores in addition to the Google Play Store.

bool support_non_google_app_store_distribution = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AndroidKeySettings.Builder

This builder for chaining.

clone()

public AndroidKeySettings.Builder clone()
Returns
TypeDescription
AndroidKeySettings.Builder
Overrides

getAllowAllPackageNames()

public boolean getAllowAllPackageNames()

Optional. If set to true, allowed_package_names are not enforced.

bool allow_all_package_names = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The allowAllPackageNames.

getAllowedPackageNames(int index)

public String getAllowedPackageNames(int index)

Optional. Android package names of apps allowed to use the key. Example: 'com.companyname.appname'

repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The allowedPackageNames at the given index.

getAllowedPackageNamesBytes(int index)

public ByteString getAllowedPackageNamesBytes(int index)

Optional. Android package names of apps allowed to use the key. Example: 'com.companyname.appname'

repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the allowedPackageNames at the given index.

getAllowedPackageNamesCount()

public int getAllowedPackageNamesCount()

Optional. Android package names of apps allowed to use the key. Example: 'com.companyname.appname'

repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The count of allowedPackageNames.

getAllowedPackageNamesList()

public ProtocolStringList getAllowedPackageNamesList()

Optional. Android package names of apps allowed to use the key. Example: 'com.companyname.appname'

repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ProtocolStringList

A list containing the allowedPackageNames.

getDefaultInstanceForType()

public AndroidKeySettings getDefaultInstanceForType()
Returns
TypeDescription
AndroidKeySettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSupportNonGoogleAppStoreDistribution()

public boolean getSupportNonGoogleAppStoreDistribution()

Optional. Set to true for keys that are used in an Android application that is available for download in app stores in addition to the Google Play Store.

bool support_non_google_app_store_distribution = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The supportNonGoogleAppStoreDistribution.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(AndroidKeySettings other)

public AndroidKeySettings.Builder mergeFrom(AndroidKeySettings other)
Parameter
NameDescription
otherAndroidKeySettings
Returns
TypeDescription
AndroidKeySettings.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AndroidKeySettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AndroidKeySettings.Builder
Overrides

setAllowAllPackageNames(boolean value)

public AndroidKeySettings.Builder setAllowAllPackageNames(boolean value)

Optional. If set to true, allowed_package_names are not enforced.

bool allow_all_package_names = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueboolean

The allowAllPackageNames to set.

Returns
TypeDescription
AndroidKeySettings.Builder

This builder for chaining.

setAllowedPackageNames(int index, String value)

public AndroidKeySettings.Builder setAllowedPackageNames(int index, String value)

Optional. Android package names of apps allowed to use the key. Example: 'com.companyname.appname'

repeated string allowed_package_names = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The allowedPackageNames to set.

Returns
TypeDescription
AndroidKeySettings.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSupportNonGoogleAppStoreDistribution(boolean value)

public AndroidKeySettings.Builder setSupportNonGoogleAppStoreDistribution(boolean value)

Optional. Set to true for keys that are used in an Android application that is available for download in app stores in addition to the Google Play Store.

bool support_non_google_app_store_distribution = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueboolean

The supportNonGoogleAppStoreDistribution to set.

Returns
TypeDescription
AndroidKeySettings.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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