public static final class CreateAssessmentRequest.Builder extends GeneratedMessageV3.Builder<CreateAssessmentRequest.Builder> implements CreateAssessmentRequestOrBuilder
The create assessment request message.
Protobuf type google.cloud.recaptchaenterprise.v1beta1.CreateAssessmentRequest
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateAssessmentRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public CreateAssessmentRequest build()
Returns
buildPartial()
public CreateAssessmentRequest buildPartial()
Returns
clear()
public CreateAssessmentRequest.Builder clear()
Returns
Overrides
clearAssessment()
public CreateAssessmentRequest.Builder clearAssessment()
Required. The assessment details.
.google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
clearField(Descriptors.FieldDescriptor field)
public CreateAssessmentRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateAssessmentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearParent()
public CreateAssessmentRequest.Builder clearParent()
Required. The name of the project in which the assessment will be created,
in the format "projects/{project_number}".
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
clone()
public CreateAssessmentRequest.Builder clone()
Returns
Overrides
getAssessment()
public Assessment getAssessment()
Required. The assessment details.
.google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getAssessmentBuilder()
public Assessment.Builder getAssessmentBuilder()
Required. The assessment details.
.google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getAssessmentOrBuilder()
public AssessmentOrBuilder getAssessmentOrBuilder()
Required. The assessment details.
.google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getDefaultInstanceForType()
public CreateAssessmentRequest getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getParent()
public String getParent()
Required. The name of the project in which the assessment 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 assessment will be created,
in the format "projects/{project_number}".
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
hasAssessment()
public boolean hasAssessment()
Required. The assessment details.
.google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
boolean | Whether the assessment field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeAssessment(Assessment value)
public CreateAssessmentRequest.Builder mergeAssessment(Assessment value)
Required. The assessment details.
.google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
public CreateAssessmentRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CreateAssessmentRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(CreateAssessmentRequest other)
public CreateAssessmentRequest.Builder mergeFrom(CreateAssessmentRequest other)
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateAssessmentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setAssessment(Assessment value)
public CreateAssessmentRequest.Builder setAssessment(Assessment value)
Required. The assessment details.
.google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setAssessment(Assessment.Builder builderForValue)
public CreateAssessmentRequest.Builder setAssessment(Assessment.Builder builderForValue)
Required. The assessment details.
.google.cloud.recaptchaenterprise.v1beta1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public CreateAssessmentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setParent(String value)
public CreateAssessmentRequest.Builder setParent(String value)
Required. The name of the project in which the assessment 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 CreateAssessmentRequest.Builder setParentBytes(ByteString value)
Required. The name of the project in which the assessment 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 CreateAssessmentRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateAssessmentRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides