Class BatchUpdateGenerativeQuestionConfigsRequest.Builder (2.85.0)

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

Request for BatchUpdateGenerativeQuestionConfig method.

Protobuf type google.cloud.retail.v2.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.v2.UpdateGenerativeQuestionConfigRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

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

addRequests(UpdateGenerativeQuestionConfigRequest value)

public BatchUpdateGenerativeQuestionConfigsRequest.Builder addRequests(UpdateGenerativeQuestionConfigRequest value)

Required. The updates question configs.

repeated .google.cloud.retail.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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

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.v2.UpdateGenerativeQuestionConfigRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BatchUpdateGenerativeQuestionConfigsRequest.Builder

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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.UpdateGenerativeQuestionConfigRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

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

internalGetFieldAccessorTable()

protected GeneratedMessage.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

removeRequests(int index)

public BatchUpdateGenerativeQuestionConfigsRequest.Builder removeRequests(int index)

Required. The updates question configs.

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

Parameter
Name Description
index int
Returns
Type Description
BatchUpdateGenerativeQuestionConfigsRequest.Builder

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.

setRequests(int index, UpdateGenerativeQuestionConfigRequest value)

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

Required. The updates question configs.

repeated .google.cloud.retail.v2.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.v2.UpdateGenerativeQuestionConfigRequest requests = 2 [(.google.api.field_behavior) = REQUIRED];

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