- 3.75.0 (latest)
- 3.73.0
- 3.72.0
- 3.71.0
- 3.70.0
- 3.69.0
- 3.67.0
- 3.65.0
- 3.64.0
- 3.61.0
- 3.60.0
- 3.59.0
- 3.57.0
- 3.56.0
- 3.55.0
- 3.54.0
- 3.53.0
- 3.52.0
- 3.51.0
- 3.50.0
- 3.49.0
- 3.48.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.42.0
- 3.41.0
- 3.40.0
- 3.39.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.30.0
- 3.29.0
- 3.28.0
- 3.27.0
- 3.26.0
- 3.25.0
- 3.24.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.6.0
- 3.5.0
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.0
- 3.0.12
- 2.6.1
- 2.5.0
- 2.4.10
- 2.3.1
public static final class Key.Builder extends GeneratedMessageV3.Builder<Key.Builder> implements KeyOrBuilderA key used to identify and configure applications (web and/or mobile) that use reCAPTCHA Enterprise.
 Protobuf type google.cloud.recaptchaenterprise.v1.Key
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Key.BuilderImplements
KeyOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description | 
| Descriptor | |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Key.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| value | Object | 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
build()
public Key build()| Returns | |
|---|---|
| Type | Description | 
| Key | |
buildPartial()
public Key buildPartial()| Returns | |
|---|---|
| Type | Description | 
| Key | |
clear()
public Key.Builder clear()| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
clearAndroidSettings()
public Key.Builder clearAndroidSettings()Settings for keys that can be used by Android apps.
 .google.cloud.recaptchaenterprise.v1.AndroidKeySettings android_settings = 4;
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
clearCreateTime()
public Key.Builder clearCreateTime()Output only. The timestamp corresponding to the creation of this key.
 
 .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
clearDisplayName()
public Key.Builder clearDisplayName()Required. Human-readable display name of this key. Modifiable by user.
 string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | This builder for chaining. | 
clearExpressSettings()
public Key.Builder clearExpressSettings()Settings for keys that can be used by reCAPTCHA Express.
 .google.cloud.recaptchaenterprise.v1.ExpressKeySettings express_settings = 11;
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
clearField(Descriptors.FieldDescriptor field)
public Key.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
clearIosSettings()
public Key.Builder clearIosSettings()Settings for keys that can be used by iOS apps.
 .google.cloud.recaptchaenterprise.v1.IOSKeySettings ios_settings = 5;
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
clearLabels()
public Key.Builder clearLabels()| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
clearName()
public Key.Builder clearName() Identifier. The resource name for the Key in the format
 projects/{project}/keys/{key}.
 string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | This builder for chaining. | 
clearOneof(Descriptors.OneofDescriptor oneof)
public Key.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description | 
| oneof | OneofDescriptor | 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
clearPlatformSettings()
public Key.Builder clearPlatformSettings()| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
clearTestingOptions()
public Key.Builder clearTestingOptions()Optional. Options for user acceptance testing.
 
 .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL];
 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
clearWafSettings()
public Key.Builder clearWafSettings()Optional. Settings for WAF
 
 .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL];
 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
clearWebSettings()
public Key.Builder clearWebSettings()Settings for keys that can be used by websites.
 .google.cloud.recaptchaenterprise.v1.WebKeySettings web_settings = 3;
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
clone()
public Key.Builder clone()| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
containsLabels(String key)
public boolean containsLabels(String key)Optional. See Creating and managing labels.
 map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description | 
| key | String | 
| Returns | |
|---|---|
| Type | Description | 
| boolean | |
getAndroidSettings()
public AndroidKeySettings getAndroidSettings()Settings for keys that can be used by Android apps.
 .google.cloud.recaptchaenterprise.v1.AndroidKeySettings android_settings = 4;
| Returns | |
|---|---|
| Type | Description | 
| AndroidKeySettings | The androidSettings. | 
getAndroidSettingsBuilder()
public AndroidKeySettings.Builder getAndroidSettingsBuilder()Settings for keys that can be used by Android apps.
 .google.cloud.recaptchaenterprise.v1.AndroidKeySettings android_settings = 4;
| Returns | |
|---|---|
| Type | Description | 
| AndroidKeySettings.Builder | |
getAndroidSettingsOrBuilder()
public AndroidKeySettingsOrBuilder getAndroidSettingsOrBuilder()Settings for keys that can be used by Android apps.
 .google.cloud.recaptchaenterprise.v1.AndroidKeySettings android_settings = 4;
| Returns | |
|---|---|
| Type | Description | 
| AndroidKeySettingsOrBuilder | |
getCreateTime()
public Timestamp getCreateTime()Output only. The timestamp corresponding to the creation of this key.
 
 .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
| Timestamp | The createTime. | 
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()Output only. The timestamp corresponding to the creation of this key.
 
 .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
| Builder | |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()Output only. The timestamp corresponding to the creation of this key.
 
 .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
| TimestampOrBuilder | |
getDefaultInstanceForType()
public Key getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description | 
| Key | |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description | 
| Descriptor | |
getDisplayName()
public String getDisplayName()Required. Human-readable display name of this key. Modifiable by user.
 string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description | 
| String | The displayName. | 
getDisplayNameBytes()
public ByteString getDisplayNameBytes()Required. Human-readable display name of this key. Modifiable by user.
 string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description | 
| ByteString | The bytes for displayName. | 
getExpressSettings()
public ExpressKeySettings getExpressSettings()Settings for keys that can be used by reCAPTCHA Express.
 .google.cloud.recaptchaenterprise.v1.ExpressKeySettings express_settings = 11;
| Returns | |
|---|---|
| Type | Description | 
| ExpressKeySettings | The expressSettings. | 
getExpressSettingsBuilder()
public ExpressKeySettings.Builder getExpressSettingsBuilder()Settings for keys that can be used by reCAPTCHA Express.
 .google.cloud.recaptchaenterprise.v1.ExpressKeySettings express_settings = 11;
| Returns | |
|---|---|
| Type | Description | 
| ExpressKeySettings.Builder | |
getExpressSettingsOrBuilder()
public ExpressKeySettingsOrBuilder getExpressSettingsOrBuilder()Settings for keys that can be used by reCAPTCHA Express.
 .google.cloud.recaptchaenterprise.v1.ExpressKeySettings express_settings = 11;
| Returns | |
|---|---|
| Type | Description | 
| ExpressKeySettingsOrBuilder | |
getIosSettings()
public IOSKeySettings getIosSettings()Settings for keys that can be used by iOS apps.
 .google.cloud.recaptchaenterprise.v1.IOSKeySettings ios_settings = 5;
| Returns | |
|---|---|
| Type | Description | 
| IOSKeySettings | The iosSettings. | 
getIosSettingsBuilder()
public IOSKeySettings.Builder getIosSettingsBuilder()Settings for keys that can be used by iOS apps.
 .google.cloud.recaptchaenterprise.v1.IOSKeySettings ios_settings = 5;
| Returns | |
|---|---|
| Type | Description | 
| IOSKeySettings.Builder | |
getIosSettingsOrBuilder()
public IOSKeySettingsOrBuilder getIosSettingsOrBuilder()Settings for keys that can be used by iOS apps.
 .google.cloud.recaptchaenterprise.v1.IOSKeySettings ios_settings = 5;
| Returns | |
|---|---|
| Type | Description | 
| IOSKeySettingsOrBuilder | |
getLabels() (deprecated)
public Map<String,String> getLabels()Use #getLabelsMap() instead.
| Returns | |
|---|---|
| Type | Description | 
| Map<String,String> | |
getLabelsCount()
public int getLabelsCount()Optional. See Creating and managing labels.
 map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description | 
| int | |
getLabelsMap()
public Map<String,String> getLabelsMap()Optional. See Creating and managing labels.
 map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description | 
| Map<String,String> | |
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)Optional. See Creating and managing labels.
 map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description | 
| key | String | 
| defaultValue | String | 
| Returns | |
|---|---|
| Type | Description | 
| String | |
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)Optional. See Creating and managing labels.
 map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description | 
| key | String | 
| Returns | |
|---|---|
| Type | Description | 
| String | |
getMutableLabels() (deprecated)
public Map<String,String> getMutableLabels()Use alternate mutation accessors instead.
| Returns | |
|---|---|
| Type | Description | 
| Map<String,String> | |
getName()
public String getName() Identifier. The resource name for the Key in the format
 projects/{project}/keys/{key}.
 string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description | 
| String | The name. | 
getNameBytes()
public ByteString getNameBytes() Identifier. The resource name for the Key in the format
 projects/{project}/keys/{key}.
 string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description | 
| ByteString | The bytes for name. | 
getPlatformSettingsCase()
public Key.PlatformSettingsCase getPlatformSettingsCase()| Returns | |
|---|---|
| Type | Description | 
| Key.PlatformSettingsCase | |
getTestingOptions()
public TestingOptions getTestingOptions()Optional. Options for user acceptance testing.
 
 .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL];
 
| Returns | |
|---|---|
| Type | Description | 
| TestingOptions | The testingOptions. | 
getTestingOptionsBuilder()
public TestingOptions.Builder getTestingOptionsBuilder()Optional. Options for user acceptance testing.
 
 .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL];
 
| Returns | |
|---|---|
| Type | Description | 
| TestingOptions.Builder | |
getTestingOptionsOrBuilder()
public TestingOptionsOrBuilder getTestingOptionsOrBuilder()Optional. Options for user acceptance testing.
 
 .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL];
 
| Returns | |
|---|---|
| Type | Description | 
| TestingOptionsOrBuilder | |
getWafSettings()
public WafSettings getWafSettings()Optional. Settings for WAF
 
 .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL];
 
| Returns | |
|---|---|
| Type | Description | 
| WafSettings | The wafSettings. | 
getWafSettingsBuilder()
public WafSettings.Builder getWafSettingsBuilder()Optional. Settings for WAF
 
 .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL];
 
| Returns | |
|---|---|
| Type | Description | 
| WafSettings.Builder | |
getWafSettingsOrBuilder()
public WafSettingsOrBuilder getWafSettingsOrBuilder()Optional. Settings for WAF
 
 .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL];
 
| Returns | |
|---|---|
| Type | Description | 
| WafSettingsOrBuilder | |
getWebSettings()
public WebKeySettings getWebSettings()Settings for keys that can be used by websites.
 .google.cloud.recaptchaenterprise.v1.WebKeySettings web_settings = 3;
| Returns | |
|---|---|
| Type | Description | 
| WebKeySettings | The webSettings. | 
getWebSettingsBuilder()
public WebKeySettings.Builder getWebSettingsBuilder()Settings for keys that can be used by websites.
 .google.cloud.recaptchaenterprise.v1.WebKeySettings web_settings = 3;
| Returns | |
|---|---|
| Type | Description | 
| WebKeySettings.Builder | |
getWebSettingsOrBuilder()
public WebKeySettingsOrBuilder getWebSettingsOrBuilder()Settings for keys that can be used by websites.
 .google.cloud.recaptchaenterprise.v1.WebKeySettings web_settings = 3;
| Returns | |
|---|---|
| Type | Description | 
| WebKeySettingsOrBuilder | |
hasAndroidSettings()
public boolean hasAndroidSettings()Settings for keys that can be used by Android apps.
 .google.cloud.recaptchaenterprise.v1.AndroidKeySettings android_settings = 4;
| Returns | |
|---|---|
| Type | Description | 
| boolean | Whether the androidSettings field is set. | 
hasCreateTime()
public boolean hasCreateTime()Output only. The timestamp corresponding to the creation of this key.
 
 .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
| boolean | Whether the createTime field is set. | 
hasExpressSettings()
public boolean hasExpressSettings()Settings for keys that can be used by reCAPTCHA Express.
 .google.cloud.recaptchaenterprise.v1.ExpressKeySettings express_settings = 11;
| Returns | |
|---|---|
| Type | Description | 
| boolean | Whether the expressSettings field is set. | 
hasIosSettings()
public boolean hasIosSettings()Settings for keys that can be used by iOS apps.
 .google.cloud.recaptchaenterprise.v1.IOSKeySettings ios_settings = 5;
| Returns | |
|---|---|
| Type | Description | 
| boolean | Whether the iosSettings field is set. | 
hasTestingOptions()
public boolean hasTestingOptions()Optional. Options for user acceptance testing.
 
 .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL];
 
| Returns | |
|---|---|
| Type | Description | 
| boolean | Whether the testingOptions field is set. | 
hasWafSettings()
public boolean hasWafSettings()Optional. Settings for WAF
 
 .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL];
 
| Returns | |
|---|---|
| Type | Description | 
| boolean | Whether the wafSettings field is set. | 
hasWebSettings()
public boolean hasWebSettings()Settings for keys that can be used by websites.
 .google.cloud.recaptchaenterprise.v1.WebKeySettings web_settings = 3;
| Returns | |
|---|---|
| Type | Description | 
| boolean | Whether the webSettings field is set. | 
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description | 
| FieldAccessorTable | |
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description | 
| number | int | 
| Returns | |
|---|---|
| Type | Description | 
| com.google.protobuf.MapFieldReflectionAccessor | |
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description | 
| number | int | 
| Returns | |
|---|---|
| Type | Description | 
| com.google.protobuf.MapFieldReflectionAccessor | |
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description | 
| boolean | |
mergeAndroidSettings(AndroidKeySettings value)
public Key.Builder mergeAndroidSettings(AndroidKeySettings value)Settings for keys that can be used by Android apps.
 .google.cloud.recaptchaenterprise.v1.AndroidKeySettings android_settings = 4;
| Parameter | |
|---|---|
| Name | Description | 
| value | AndroidKeySettings | 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
mergeCreateTime(Timestamp value)
public Key.Builder mergeCreateTime(Timestamp value)Output only. The timestamp corresponding to the creation of this key.
 
 .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameter | |
|---|---|
| Name | Description | 
| value | Timestamp | 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
mergeExpressSettings(ExpressKeySettings value)
public Key.Builder mergeExpressSettings(ExpressKeySettings value)Settings for keys that can be used by reCAPTCHA Express.
 .google.cloud.recaptchaenterprise.v1.ExpressKeySettings express_settings = 11;
| Parameter | |
|---|---|
| Name | Description | 
| value | ExpressKeySettings | 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Key.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description | 
| input | CodedInputStream | 
| extensionRegistry | ExtensionRegistryLite | 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
| Exceptions | |
|---|---|
| Type | Description | 
| IOException | |
mergeFrom(Message other)
public Key.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description | 
| other | Message | 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
mergeFrom(Key other)
public Key.Builder mergeFrom(Key other)| Parameter | |
|---|---|
| Name | Description | 
| other | Key | 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
mergeIosSettings(IOSKeySettings value)
public Key.Builder mergeIosSettings(IOSKeySettings value)Settings for keys that can be used by iOS apps.
 .google.cloud.recaptchaenterprise.v1.IOSKeySettings ios_settings = 5;
| Parameter | |
|---|---|
| Name | Description | 
| value | IOSKeySettings | 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
mergeTestingOptions(TestingOptions value)
public Key.Builder mergeTestingOptions(TestingOptions value)Optional. Options for user acceptance testing.
 
 .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL];
 
| Parameter | |
|---|---|
| Name | Description | 
| value | TestingOptions | 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Key.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
| unknownFields | UnknownFieldSet | 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
mergeWafSettings(WafSettings value)
public Key.Builder mergeWafSettings(WafSettings value)Optional. Settings for WAF
 
 .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL];
 
| Parameter | |
|---|---|
| Name | Description | 
| value | WafSettings | 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
mergeWebSettings(WebKeySettings value)
public Key.Builder mergeWebSettings(WebKeySettings value)Settings for keys that can be used by websites.
 .google.cloud.recaptchaenterprise.v1.WebKeySettings web_settings = 3;
| Parameter | |
|---|---|
| Name | Description | 
| value | WebKeySettings | 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
putAllLabels(Map<String,String> values)
public Key.Builder putAllLabels(Map<String,String> values)Optional. See Creating and managing labels.
 map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description | 
| values | Map<String,String> | 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
putLabels(String key, String value)
public Key.Builder putLabels(String key, String value)Optional. See Creating and managing labels.
 map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description | 
| key | String | 
| value | String | 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
removeLabels(String key)
public Key.Builder removeLabels(String key)Optional. See Creating and managing labels.
 map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description | 
| key | String | 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
setAndroidSettings(AndroidKeySettings value)
public Key.Builder setAndroidSettings(AndroidKeySettings value)Settings for keys that can be used by Android apps.
 .google.cloud.recaptchaenterprise.v1.AndroidKeySettings android_settings = 4;
| Parameter | |
|---|---|
| Name | Description | 
| value | AndroidKeySettings | 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
setAndroidSettings(AndroidKeySettings.Builder builderForValue)
public Key.Builder setAndroidSettings(AndroidKeySettings.Builder builderForValue)Settings for keys that can be used by Android apps.
 .google.cloud.recaptchaenterprise.v1.AndroidKeySettings android_settings = 4;
| Parameter | |
|---|---|
| Name | Description | 
| builderForValue | AndroidKeySettings.Builder | 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
setCreateTime(Timestamp value)
public Key.Builder setCreateTime(Timestamp value)Output only. The timestamp corresponding to the creation of this key.
 
 .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameter | |
|---|---|
| Name | Description | 
| value | Timestamp | 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
setCreateTime(Timestamp.Builder builderForValue)
public Key.Builder setCreateTime(Timestamp.Builder builderForValue)Output only. The timestamp corresponding to the creation of this key.
 
 .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameter | |
|---|---|
| Name | Description | 
| builderForValue | Builder | 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
setDisplayName(String value)
public Key.Builder setDisplayName(String value)Required. Human-readable display name of this key. Modifiable by user.
 string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description | 
| value | StringThe displayName to set. | 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | This builder for chaining. | 
setDisplayNameBytes(ByteString value)
public Key.Builder setDisplayNameBytes(ByteString value)Required. Human-readable display name of this key. Modifiable by user.
 string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description | 
| value | ByteStringThe bytes for displayName to set. | 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | This builder for chaining. | 
setExpressSettings(ExpressKeySettings value)
public Key.Builder setExpressSettings(ExpressKeySettings value)Settings for keys that can be used by reCAPTCHA Express.
 .google.cloud.recaptchaenterprise.v1.ExpressKeySettings express_settings = 11;
| Parameter | |
|---|---|
| Name | Description | 
| value | ExpressKeySettings | 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
setExpressSettings(ExpressKeySettings.Builder builderForValue)
public Key.Builder setExpressSettings(ExpressKeySettings.Builder builderForValue)Settings for keys that can be used by reCAPTCHA Express.
 .google.cloud.recaptchaenterprise.v1.ExpressKeySettings express_settings = 11;
| Parameter | |
|---|---|
| Name | Description | 
| builderForValue | ExpressKeySettings.Builder | 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
setField(Descriptors.FieldDescriptor field, Object value)
public Key.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| value | Object | 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
setIosSettings(IOSKeySettings value)
public Key.Builder setIosSettings(IOSKeySettings value)Settings for keys that can be used by iOS apps.
 .google.cloud.recaptchaenterprise.v1.IOSKeySettings ios_settings = 5;
| Parameter | |
|---|---|
| Name | Description | 
| value | IOSKeySettings | 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
setIosSettings(IOSKeySettings.Builder builderForValue)
public Key.Builder setIosSettings(IOSKeySettings.Builder builderForValue)Settings for keys that can be used by iOS apps.
 .google.cloud.recaptchaenterprise.v1.IOSKeySettings ios_settings = 5;
| Parameter | |
|---|---|
| Name | Description | 
| builderForValue | IOSKeySettings.Builder | 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
setName(String value)
public Key.Builder setName(String value) Identifier. The resource name for the Key in the format
 projects/{project}/keys/{key}.
 string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description | 
| value | StringThe name to set. | 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | This builder for chaining. | 
setNameBytes(ByteString value)
public Key.Builder setNameBytes(ByteString value) Identifier. The resource name for the Key in the format
 projects/{project}/keys/{key}.
 string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description | 
| value | ByteStringThe bytes for name to set. | 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | This builder for chaining. | 
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Key.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| index | int | 
| value | Object | 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
setTestingOptions(TestingOptions value)
public Key.Builder setTestingOptions(TestingOptions value)Optional. Options for user acceptance testing.
 
 .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL];
 
| Parameter | |
|---|---|
| Name | Description | 
| value | TestingOptions | 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
setTestingOptions(TestingOptions.Builder builderForValue)
public Key.Builder setTestingOptions(TestingOptions.Builder builderForValue)Optional. Options for user acceptance testing.
 
 .google.cloud.recaptchaenterprise.v1.TestingOptions testing_options = 9 [(.google.api.field_behavior) = OPTIONAL];
 
| Parameter | |
|---|---|
| Name | Description | 
| builderForValue | TestingOptions.Builder | 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
setUnknownFields(UnknownFieldSet unknownFields)
public final Key.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
| unknownFields | UnknownFieldSet | 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
setWafSettings(WafSettings value)
public Key.Builder setWafSettings(WafSettings value)Optional. Settings for WAF
 
 .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL];
 
| Parameter | |
|---|---|
| Name | Description | 
| value | WafSettings | 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
setWafSettings(WafSettings.Builder builderForValue)
public Key.Builder setWafSettings(WafSettings.Builder builderForValue)Optional. Settings for WAF
 
 .google.cloud.recaptchaenterprise.v1.WafSettings waf_settings = 10 [(.google.api.field_behavior) = OPTIONAL];
 
| Parameter | |
|---|---|
| Name | Description | 
| builderForValue | WafSettings.Builder | 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
setWebSettings(WebKeySettings value)
public Key.Builder setWebSettings(WebKeySettings value)Settings for keys that can be used by websites.
 .google.cloud.recaptchaenterprise.v1.WebKeySettings web_settings = 3;
| Parameter | |
|---|---|
| Name | Description | 
| value | WebKeySettings | 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |
setWebSettings(WebKeySettings.Builder builderForValue)
public Key.Builder setWebSettings(WebKeySettings.Builder builderForValue)Settings for keys that can be used by websites.
 .google.cloud.recaptchaenterprise.v1.WebKeySettings web_settings = 3;
| Parameter | |
|---|---|
| Name | Description | 
| builderForValue | WebKeySettings.Builder | 
| Returns | |
|---|---|
| Type | Description | 
| Key.Builder | |