Class CreateAssessmentRequest.Builder (3.9.0)

public static final class CreateAssessmentRequest.Builder extends GeneratedMessageV3.Builder<CreateAssessmentRequest.Builder> implements CreateAssessmentRequestOrBuilder

The create assessment request message.

Protobuf type google.cloud.recaptchaenterprise.v1.CreateAssessmentRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateAssessmentRequest build()
Returns
TypeDescription
CreateAssessmentRequest

buildPartial()

public CreateAssessmentRequest buildPartial()
Returns
TypeDescription
CreateAssessmentRequest

clear()

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

clearAssessment()

public CreateAssessmentRequest.Builder clearAssessment()

Required. The assessment details.

.google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateAssessmentRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateAssessmentRequest.Builder clearParent()

Required. The name of the project in which the assessment will be created, in the format "projects/{project}".

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
CreateAssessmentRequest.Builder

This builder for chaining.

clone()

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

getAssessment()

public Assessment getAssessment()

Required. The assessment details.

.google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Assessment

The assessment.

getAssessmentBuilder()

public Assessment.Builder getAssessmentBuilder()

Required. The assessment details.

.google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Assessment.Builder

getAssessmentOrBuilder()

public AssessmentOrBuilder getAssessmentOrBuilder()

Required. The assessment details.

.google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AssessmentOrBuilder

getDefaultInstanceForType()

public CreateAssessmentRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateAssessmentRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. The name of the project in which the assessment will be created, in the format "projects/{project}".

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
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}".

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

hasAssessment()

public boolean hasAssessment()

Required. The assessment details.

.google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the assessment field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAssessment(Assessment value)

public CreateAssessmentRequest.Builder mergeAssessment(Assessment value)

Required. The assessment details.

.google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueAssessment
Returns
TypeDescription
CreateAssessmentRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(CreateAssessmentRequest other)

public CreateAssessmentRequest.Builder mergeFrom(CreateAssessmentRequest other)
Parameter
NameDescription
otherCreateAssessmentRequest
Returns
TypeDescription
CreateAssessmentRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAssessment(Assessment value)

public CreateAssessmentRequest.Builder setAssessment(Assessment value)

Required. The assessment details.

.google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueAssessment
Returns
TypeDescription
CreateAssessmentRequest.Builder

setAssessment(Assessment.Builder builderForValue)

public CreateAssessmentRequest.Builder setAssessment(Assessment.Builder builderForValue)

Required. The assessment details.

.google.cloud.recaptchaenterprise.v1.Assessment assessment = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueAssessment.Builder
Returns
TypeDescription
CreateAssessmentRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CreateAssessmentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateAssessmentRequest.Builder
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}".

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateAssessmentRequest.Builder

This builder for chaining.

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}".

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateAssessmentRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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