Class CreateQaQuestionRequest.Builder (2.54.0)

public static final class CreateQaQuestionRequest.Builder extends GeneratedMessageV3.Builder<CreateQaQuestionRequest.Builder> implements CreateQaQuestionRequestOrBuilder

The request for creating a QaQuestion.

Protobuf type google.cloud.contactcenterinsights.v1.CreateQaQuestionRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateQaQuestionRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateQaQuestionRequest.Builder
Overrides

build()

public CreateQaQuestionRequest build()
Returns
Type Description
CreateQaQuestionRequest

buildPartial()

public CreateQaQuestionRequest buildPartial()
Returns
Type Description
CreateQaQuestionRequest

clear()

public CreateQaQuestionRequest.Builder clear()
Returns
Type Description
CreateQaQuestionRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateQaQuestionRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateQaQuestionRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateQaQuestionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateQaQuestionRequest.Builder
Overrides

clearParent()

public CreateQaQuestionRequest.Builder clearParent()

Required. The parent resource of the QaQuestion.

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

Returns
Type Description
CreateQaQuestionRequest.Builder

This builder for chaining.

clearQaQuestion()

public CreateQaQuestionRequest.Builder clearQaQuestion()

Required. The QaQuestion to create.

.google.cloud.contactcenterinsights.v1.QaQuestion qa_question = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateQaQuestionRequest.Builder

clearQaQuestionId()

public CreateQaQuestionRequest.Builder clearQaQuestionId()

Optional. A unique ID for the new question. This ID will become the final component of the question's resource name. If no ID is specified, a server-generated ID will be used.

This value should be 4-64 characters and must match the regular expression ^[a-z0-9-]{4,64}$. Valid characters are a-z-.

string qa_question_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CreateQaQuestionRequest.Builder

This builder for chaining.

clone()

public CreateQaQuestionRequest.Builder clone()
Returns
Type Description
CreateQaQuestionRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateQaQuestionRequest getDefaultInstanceForType()
Returns
Type Description
CreateQaQuestionRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getParent()

public String getParent()

Required. The parent resource of the QaQuestion.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent resource of the QaQuestion.

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

Returns
Type Description
ByteString

The bytes for parent.

getQaQuestion()

public QaQuestion getQaQuestion()

Required. The QaQuestion to create.

.google.cloud.contactcenterinsights.v1.QaQuestion qa_question = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
QaQuestion

The qaQuestion.

getQaQuestionBuilder()

public QaQuestion.Builder getQaQuestionBuilder()

Required. The QaQuestion to create.

.google.cloud.contactcenterinsights.v1.QaQuestion qa_question = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
QaQuestion.Builder

getQaQuestionId()

public String getQaQuestionId()

Optional. A unique ID for the new question. This ID will become the final component of the question's resource name. If no ID is specified, a server-generated ID will be used.

This value should be 4-64 characters and must match the regular expression ^[a-z0-9-]{4,64}$. Valid characters are a-z-.

string qa_question_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The qaQuestionId.

getQaQuestionIdBytes()

public ByteString getQaQuestionIdBytes()

Optional. A unique ID for the new question. This ID will become the final component of the question's resource name. If no ID is specified, a server-generated ID will be used.

This value should be 4-64 characters and must match the regular expression ^[a-z0-9-]{4,64}$. Valid characters are a-z-.

string qa_question_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for qaQuestionId.

getQaQuestionOrBuilder()

public QaQuestionOrBuilder getQaQuestionOrBuilder()

Required. The QaQuestion to create.

.google.cloud.contactcenterinsights.v1.QaQuestion qa_question = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
QaQuestionOrBuilder

hasQaQuestion()

public boolean hasQaQuestion()

Required. The QaQuestion to create.

.google.cloud.contactcenterinsights.v1.QaQuestion qa_question = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the qaQuestion field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateQaQuestionRequest other)

public CreateQaQuestionRequest.Builder mergeFrom(CreateQaQuestionRequest other)
Parameter
Name Description
other CreateQaQuestionRequest
Returns
Type Description
CreateQaQuestionRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateQaQuestionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateQaQuestionRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateQaQuestionRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateQaQuestionRequest.Builder
Overrides

mergeQaQuestion(QaQuestion value)

public CreateQaQuestionRequest.Builder mergeQaQuestion(QaQuestion value)

Required. The QaQuestion to create.

.google.cloud.contactcenterinsights.v1.QaQuestion qa_question = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value QaQuestion
Returns
Type Description
CreateQaQuestionRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateQaQuestionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateQaQuestionRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateQaQuestionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateQaQuestionRequest.Builder
Overrides

setParent(String value)

public CreateQaQuestionRequest.Builder setParent(String value)

Required. The parent resource of the QaQuestion.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateQaQuestionRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateQaQuestionRequest.Builder setParentBytes(ByteString value)

Required. The parent resource of the QaQuestion.

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateQaQuestionRequest.Builder

This builder for chaining.

setQaQuestion(QaQuestion value)

public CreateQaQuestionRequest.Builder setQaQuestion(QaQuestion value)

Required. The QaQuestion to create.

.google.cloud.contactcenterinsights.v1.QaQuestion qa_question = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value QaQuestion
Returns
Type Description
CreateQaQuestionRequest.Builder

setQaQuestion(QaQuestion.Builder builderForValue)

public CreateQaQuestionRequest.Builder setQaQuestion(QaQuestion.Builder builderForValue)

Required. The QaQuestion to create.

.google.cloud.contactcenterinsights.v1.QaQuestion qa_question = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue QaQuestion.Builder
Returns
Type Description
CreateQaQuestionRequest.Builder

setQaQuestionId(String value)

public CreateQaQuestionRequest.Builder setQaQuestionId(String value)

Optional. A unique ID for the new question. This ID will become the final component of the question's resource name. If no ID is specified, a server-generated ID will be used.

This value should be 4-64 characters and must match the regular expression ^[a-z0-9-]{4,64}$. Valid characters are a-z-.

string qa_question_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The qaQuestionId to set.

Returns
Type Description
CreateQaQuestionRequest.Builder

This builder for chaining.

setQaQuestionIdBytes(ByteString value)

public CreateQaQuestionRequest.Builder setQaQuestionIdBytes(ByteString value)

Optional. A unique ID for the new question. This ID will become the final component of the question's resource name. If no ID is specified, a server-generated ID will be used.

This value should be 4-64 characters and must match the regular expression ^[a-z0-9-]{4,64}$. Valid characters are a-z-.

string qa_question_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for qaQuestionId to set.

Returns
Type Description
CreateQaQuestionRequest.Builder

This builder for chaining.

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

public CreateQaQuestionRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateQaQuestionRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateQaQuestionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateQaQuestionRequest.Builder
Overrides