public static final class CreateKeyRequest.Builder extends GeneratedMessageV3.Builder<CreateKeyRequest.Builder> implements CreateKeyRequestOrBuilder
The create key request message.
Protobuf type google.cloud.recaptchaenterprise.v1beta1.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.v1beta1.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_number}".
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.v1beta1.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.v1beta1.Key key = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getKeyOrBuilder()
public KeyOrBuilder getKeyOrBuilder()
Required. Information to create a reCAPTCHA Enterprise key.
.google.cloud.recaptchaenterprise.v1beta1.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_number}".
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_number}".
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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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_number}".
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_number}".
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