Class UpdateControlRequest.Builder (2.53.0)

public static final class UpdateControlRequest.Builder extends GeneratedMessageV3.Builder<UpdateControlRequest.Builder> implements UpdateControlRequestOrBuilder

Request for UpdateControl method.

Protobuf type google.cloud.retail.v2alpha.UpdateControlRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateControlRequest build()
Returns
Type Description
UpdateControlRequest

buildPartial()

public UpdateControlRequest buildPartial()
Returns
Type Description
UpdateControlRequest

clear()

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

clearControl()

public UpdateControlRequest.Builder clearControl()

Required. The Control to update.

.google.cloud.retail.v2alpha.Control control = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateControlRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateMask()

public UpdateControlRequest.Builder clearUpdateMask()

Indicates which fields in the provided Control to update. The following are NOT supported:

  • Control.name

    If not set or empty, all supported fields are updated.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
UpdateControlRequest.Builder

clone()

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

getControl()

public Control getControl()

Required. The Control to update.

.google.cloud.retail.v2alpha.Control control = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Control

The control.

getControlBuilder()

public Control.Builder getControlBuilder()

Required. The Control to update.

.google.cloud.retail.v2alpha.Control control = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Control.Builder

getControlOrBuilder()

public ControlOrBuilder getControlOrBuilder()

Required. The Control to update.

.google.cloud.retail.v2alpha.Control control = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ControlOrBuilder

getDefaultInstanceForType()

public UpdateControlRequest getDefaultInstanceForType()
Returns
Type Description
UpdateControlRequest

getDescriptorForType()

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

getUpdateMask()

public FieldMask getUpdateMask()

Indicates which fields in the provided Control to update. The following are NOT supported:

  • Control.name

    If not set or empty, all supported fields are updated.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Indicates which fields in the provided Control to update. The following are NOT supported:

  • Control.name

    If not set or empty, all supported fields are updated.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Indicates which fields in the provided Control to update. The following are NOT supported:

  • Control.name

    If not set or empty, all supported fields are updated.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMaskOrBuilder

hasControl()

public boolean hasControl()

Required. The Control to update.

.google.cloud.retail.v2alpha.Control control = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the control field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Indicates which fields in the provided Control to update. The following are NOT supported:

  • Control.name

    If not set or empty, all supported fields are updated.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeControl(Control value)

public UpdateControlRequest.Builder mergeControl(Control value)

Required. The Control to update.

.google.cloud.retail.v2alpha.Control control = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Control
Returns
Type Description
UpdateControlRequest.Builder

mergeFrom(UpdateControlRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateControlRequest.Builder mergeUpdateMask(FieldMask value)

Indicates which fields in the provided Control to update. The following are NOT supported:

  • Control.name

    If not set or empty, all supported fields are updated.

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateControlRequest.Builder

setControl(Control value)

public UpdateControlRequest.Builder setControl(Control value)

Required. The Control to update.

.google.cloud.retail.v2alpha.Control control = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Control
Returns
Type Description
UpdateControlRequest.Builder

setControl(Control.Builder builderForValue)

public UpdateControlRequest.Builder setControl(Control.Builder builderForValue)

Required. The Control to update.

.google.cloud.retail.v2alpha.Control control = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Control.Builder
Returns
Type Description
UpdateControlRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateControlRequest.Builder setUpdateMask(FieldMask value)

Indicates which fields in the provided Control to update. The following are NOT supported:

  • Control.name

    If not set or empty, all supported fields are updated.

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateControlRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateControlRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Indicates which fields in the provided Control to update. The following are NOT supported:

  • Control.name

    If not set or empty, all supported fields are updated.

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateControlRequest.Builder