Send feedback
Class CreateKeyRequest.Builder (2.4.10)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.4.10 keyboard_arrow_down
public static final class CreateKeyRequest . Builder extends GeneratedMessageV3 . Builder<CreateKeyRequest . Builder > implements CreateKeyRequestOrBuilder
The create key request message.
Protobuf type google.cloud.recaptchaenterprise.v1.CreateKeyRequest
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateKeyRequest . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public CreateKeyRequest build ()
Returns
buildPartial()
public CreateKeyRequest buildPartial ()
Returns
clear()
public CreateKeyRequest . Builder clear ()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateKeyRequest . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearKey()
public CreateKeyRequest . Builder clearKey ()
Required. Information to create a reCAPTCHA Enterprise key.
.google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateKeyRequest . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearParent()
public CreateKeyRequest . Builder clearParent ()
Required. The name of the project in which the key will be created, in the
format "projects/{project}".
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
clone()
public CreateKeyRequest . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public CreateKeyRequest getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getKey()
Required. Information to create a reCAPTCHA Enterprise key.
.google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type Description Key The key.
getKeyBuilder()
public Key . Builder getKeyBuilder ()
Required. Information to create a reCAPTCHA Enterprise key.
.google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getKeyOrBuilder()
public KeyOrBuilder getKeyOrBuilder ()
Required. Information to create a reCAPTCHA Enterprise key.
.google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getParent()
public String getParent ()
Required. The name of the project in which the key will be created, in the
format "projects/{project}".
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type Description String The parent.
getParentBytes()
public ByteString getParentBytes ()
Required. The name of the project in which the key will be created, in the
format "projects/{project}".
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
hasKey()
Required. Information to create a reCAPTCHA Enterprise key.
.google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type Description boolean Whether the key field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
public CreateKeyRequest . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CreateKeyRequest . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeFrom(CreateKeyRequest other)
public CreateKeyRequest . Builder mergeFrom ( CreateKeyRequest other )
Parameter
Returns
mergeKey(Key value)
public CreateKeyRequest . Builder mergeKey ( Key value )
Required. Information to create a reCAPTCHA Enterprise key.
.google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateKeyRequest . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateKeyRequest . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setKey(Key value)
public CreateKeyRequest . Builder setKey ( Key value )
Required. Information to create a reCAPTCHA Enterprise key.
.google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setKey(Key.Builder builderForValue)
public CreateKeyRequest . Builder setKey ( Key . Builder builderForValue )
Required. Information to create a reCAPTCHA Enterprise key.
.google.cloud.recaptchaenterprise.v1.Key key = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setParent(String value)
public CreateKeyRequest . Builder setParent ( String value )
Required. The name of the project in which the key will be created, in the
format "projects/{project}".
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name Description value String
The parent to set.
Returns
setParentBytes(ByteString value)
public CreateKeyRequest . Builder setParentBytes ( ByteString value )
Required. The name of the project in which the key will be created, in the
format "projects/{project}".
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name Description value ByteString
The bytes for parent to set.
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateKeyRequest . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateKeyRequest . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]