Class UpdateControlRequest.Builder (2.24.0)

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

Request for UpdateControl method.

Protobuf type google.cloud.retail.v2.UpdateControlRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateControlRequest build()
Returns
TypeDescription
UpdateControlRequest

buildPartial()

public UpdateControlRequest buildPartial()
Returns
TypeDescription
UpdateControlRequest

clear()

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

clearControl()

public UpdateControlRequest.Builder clearControl()

Required. The Control to update.

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

Returns
TypeDescription
UpdateControlRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateControlRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
UpdateControlRequest.Builder

clone()

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

getControl()

public Control getControl()

Required. The Control to update.

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

Returns
TypeDescription
Control

The control.

getControlBuilder()

public Control.Builder getControlBuilder()

Required. The Control to update.

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

Returns
TypeDescription
Control.Builder

getControlOrBuilder()

public ControlOrBuilder getControlOrBuilder()

Required. The Control to update.

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

Returns
TypeDescription
ControlOrBuilder

getDefaultInstanceForType()

public UpdateControlRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateControlRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
FieldMaskOrBuilder

hasControl()

public boolean hasControl()

Required. The Control to update.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeControl(Control value)

public UpdateControlRequest.Builder mergeControl(Control value)

Required. The Control to update.

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

Parameter
NameDescription
valueControl
Returns
TypeDescription
UpdateControlRequest.Builder

mergeFrom(UpdateControlRequest other)

public UpdateControlRequest.Builder mergeFrom(UpdateControlRequest other)
Parameter
NameDescription
otherUpdateControlRequest
Returns
TypeDescription
UpdateControlRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateControlRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateControlRequest.Builder

setControl(Control value)

public UpdateControlRequest.Builder setControl(Control value)

Required. The Control to update.

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

Parameter
NameDescription
valueControl
Returns
TypeDescription
UpdateControlRequest.Builder

setControl(Control.Builder builderForValue)

public UpdateControlRequest.Builder setControl(Control.Builder builderForValue)

Required. The Control to update.

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

Parameter
NameDescription
builderForValueControl.Builder
Returns
TypeDescription
UpdateControlRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateControlRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateControlRequest.Builder