Class BatchUpdateGenerativeQuestionConfigsRequest.Builder (2.54.0)

public static final class BatchUpdateGenerativeQuestionConfigsRequest.Builder extends GeneratedMessageV3.Builder<BatchUpdateGenerativeQuestionConfigsRequest.Builder> implements BatchUpdateGenerativeQuestionConfigsRequestOrBuilder

Request for BatchUpdateGenerativeQuestionConfig method.

Protobuf type google.cloud.retail.v2alpha.BatchUpdateGenerativeQuestionConfigsRequest

Static Methods

getDescriptor()

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

Methods

addAllRequests(Iterable<? extends UpdateGenerativeQuestionConfigRequest> values)

public BatchUpdateGenerativeQuestionConfigsRequest.Builder addAllRequests(Iterable<? extends UpdateGenerativeQuestionConfigRequest> values)

Required. The updates question configs.

repeated .google.cloud.retail.v2alpha.UpdateGenerativeQuestionConfigRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.retail.v2alpha.UpdateGenerativeQuestionConfigRequest>
Returns
Type Description
BatchUpdateGenerativeQuestionConfigsRequest.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRequests(UpdateGenerativeQuestionConfigRequest value)

public BatchUpdateGenerativeQuestionConfigsRequest.Builder addRequests(UpdateGenerativeQuestionConfigRequest value)

Required. The updates question configs.

repeated .google.cloud.retail.v2alpha.UpdateGenerativeQuestionConfigRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value UpdateGenerativeQuestionConfigRequest
Returns
Type Description
BatchUpdateGenerativeQuestionConfigsRequest.Builder

addRequests(UpdateGenerativeQuestionConfigRequest.Builder builderForValue)

public BatchUpdateGenerativeQuestionConfigsRequest.Builder addRequests(UpdateGenerativeQuestionConfigRequest.Builder builderForValue)

Required. The updates question configs.

repeated .google.cloud.retail.v2alpha.UpdateGenerativeQuestionConfigRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue UpdateGenerativeQuestionConfigRequest.Builder
Returns
Type Description
BatchUpdateGenerativeQuestionConfigsRequest.Builder

addRequests(int index, UpdateGenerativeQuestionConfigRequest value)

public BatchUpdateGenerativeQuestionConfigsRequest.Builder addRequests(int index, UpdateGenerativeQuestionConfigRequest value)

Required. The updates question configs.

repeated .google.cloud.retail.v2alpha.UpdateGenerativeQuestionConfigRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value UpdateGenerativeQuestionConfigRequest
Returns
Type Description
BatchUpdateGenerativeQuestionConfigsRequest.Builder

addRequests(int index, UpdateGenerativeQuestionConfigRequest.Builder builderForValue)

public BatchUpdateGenerativeQuestionConfigsRequest.Builder addRequests(int index, UpdateGenerativeQuestionConfigRequest.Builder builderForValue)

Required. The updates question configs.

repeated .google.cloud.retail.v2alpha.UpdateGenerativeQuestionConfigRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue UpdateGenerativeQuestionConfigRequest.Builder
Returns
Type Description
BatchUpdateGenerativeQuestionConfigsRequest.Builder

addRequestsBuilder()

public UpdateGenerativeQuestionConfigRequest.Builder addRequestsBuilder()

Required. The updates question configs.

repeated .google.cloud.retail.v2alpha.UpdateGenerativeQuestionConfigRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateGenerativeQuestionConfigRequest.Builder

addRequestsBuilder(int index)

public UpdateGenerativeQuestionConfigRequest.Builder addRequestsBuilder(int index)

Required. The updates question configs.

repeated .google.cloud.retail.v2alpha.UpdateGenerativeQuestionConfigRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
UpdateGenerativeQuestionConfigRequest.Builder

build()

public BatchUpdateGenerativeQuestionConfigsRequest build()
Returns
Type Description
BatchUpdateGenerativeQuestionConfigsRequest

buildPartial()

public BatchUpdateGenerativeQuestionConfigsRequest buildPartial()
Returns
Type Description
BatchUpdateGenerativeQuestionConfigsRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public BatchUpdateGenerativeQuestionConfigsRequest.Builder clearParent()

Optional. Resource name of the parent catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}

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

Returns
Type Description
BatchUpdateGenerativeQuestionConfigsRequest.Builder

This builder for chaining.

clearRequests()

public BatchUpdateGenerativeQuestionConfigsRequest.Builder clearRequests()

Required. The updates question configs.

repeated .google.cloud.retail.v2alpha.UpdateGenerativeQuestionConfigRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BatchUpdateGenerativeQuestionConfigsRequest.Builder

clone()

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

getDefaultInstanceForType()

public BatchUpdateGenerativeQuestionConfigsRequest getDefaultInstanceForType()
Returns
Type Description
BatchUpdateGenerativeQuestionConfigsRequest

getDescriptorForType()

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

getParent()

public String getParent()

Optional. Resource name of the parent catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Optional. Resource name of the parent catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}

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

Returns
Type Description
ByteString

The bytes for parent.

getRequests(int index)

public UpdateGenerativeQuestionConfigRequest getRequests(int index)

Required. The updates question configs.

repeated .google.cloud.retail.v2alpha.UpdateGenerativeQuestionConfigRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
UpdateGenerativeQuestionConfigRequest

getRequestsBuilder(int index)

public UpdateGenerativeQuestionConfigRequest.Builder getRequestsBuilder(int index)

Required. The updates question configs.

repeated .google.cloud.retail.v2alpha.UpdateGenerativeQuestionConfigRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
UpdateGenerativeQuestionConfigRequest.Builder

getRequestsBuilderList()

public List<UpdateGenerativeQuestionConfigRequest.Builder> getRequestsBuilderList()

Required. The updates question configs.

repeated .google.cloud.retail.v2alpha.UpdateGenerativeQuestionConfigRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getRequestsCount()

public int getRequestsCount()

Required. The updates question configs.

repeated .google.cloud.retail.v2alpha.UpdateGenerativeQuestionConfigRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getRequestsList()

public List<UpdateGenerativeQuestionConfigRequest> getRequestsList()

Required. The updates question configs.

repeated .google.cloud.retail.v2alpha.UpdateGenerativeQuestionConfigRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<UpdateGenerativeQuestionConfigRequest>

getRequestsOrBuilder(int index)

public UpdateGenerativeQuestionConfigRequestOrBuilder getRequestsOrBuilder(int index)

Required. The updates question configs.

repeated .google.cloud.retail.v2alpha.UpdateGenerativeQuestionConfigRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
UpdateGenerativeQuestionConfigRequestOrBuilder

getRequestsOrBuilderList()

public List<? extends UpdateGenerativeQuestionConfigRequestOrBuilder> getRequestsOrBuilderList()

Required. The updates question configs.

repeated .google.cloud.retail.v2alpha.UpdateGenerativeQuestionConfigRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.retail.v2alpha.UpdateGenerativeQuestionConfigRequestOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchUpdateGenerativeQuestionConfigsRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeRequests(int index)

public BatchUpdateGenerativeQuestionConfigsRequest.Builder removeRequests(int index)

Required. The updates question configs.

repeated .google.cloud.retail.v2alpha.UpdateGenerativeQuestionConfigRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
BatchUpdateGenerativeQuestionConfigsRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public BatchUpdateGenerativeQuestionConfigsRequest.Builder setParent(String value)

Optional. Resource name of the parent catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
BatchUpdateGenerativeQuestionConfigsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public BatchUpdateGenerativeQuestionConfigsRequest.Builder setParentBytes(ByteString value)

Optional. Resource name of the parent catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
BatchUpdateGenerativeQuestionConfigsRequest.Builder

This builder for chaining.

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

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

setRequests(int index, UpdateGenerativeQuestionConfigRequest value)

public BatchUpdateGenerativeQuestionConfigsRequest.Builder setRequests(int index, UpdateGenerativeQuestionConfigRequest value)

Required. The updates question configs.

repeated .google.cloud.retail.v2alpha.UpdateGenerativeQuestionConfigRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value UpdateGenerativeQuestionConfigRequest
Returns
Type Description
BatchUpdateGenerativeQuestionConfigsRequest.Builder

setRequests(int index, UpdateGenerativeQuestionConfigRequest.Builder builderForValue)

public BatchUpdateGenerativeQuestionConfigsRequest.Builder setRequests(int index, UpdateGenerativeQuestionConfigRequest.Builder builderForValue)

Required. The updates question configs.

repeated .google.cloud.retail.v2alpha.UpdateGenerativeQuestionConfigRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue UpdateGenerativeQuestionConfigRequest.Builder
Returns
Type Description
BatchUpdateGenerativeQuestionConfigsRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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