Class UpdateWidgetConfigRequest.Builder (0.99.0)

public static final class UpdateWidgetConfigRequest.Builder extends GeneratedMessage.Builder<UpdateWidgetConfigRequest.Builder> implements UpdateWidgetConfigRequestOrBuilder

Request for WidgetConfigService.UpdateWidgetConfig method.

Protobuf type google.cloud.discoveryengine.v1.UpdateWidgetConfigRequest

Static Methods

getDescriptor()

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

Methods

build()

public UpdateWidgetConfigRequest build()
Returns
Type Description
UpdateWidgetConfigRequest

buildPartial()

public UpdateWidgetConfigRequest buildPartial()
Returns
Type Description
UpdateWidgetConfigRequest

clear()

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

clearUpdateMask()

public UpdateWidgetConfigRequest.Builder clearUpdateMask()

Indicates which fields in the provided WidgetConfig to update. The following are the only supported fields:

  • WidgetConfig.enable_autocomplete

    If not set, all supported fields are updated.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
UpdateWidgetConfigRequest.Builder

clearWidgetConfig()

public UpdateWidgetConfigRequest.Builder clearWidgetConfig()

Required. The WidgetConfig to update.

If the caller does not have permission to update the WidgetConfig, then a PERMISSION_DENIED error is returned.

If the WidgetConfig to update does not exist, a NOT_FOUND error is returned.

.google.cloud.discoveryengine.v1.WidgetConfig widget_config = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateWidgetConfigRequest.Builder

getDefaultInstanceForType()

public UpdateWidgetConfigRequest getDefaultInstanceForType()
Returns
Type Description
UpdateWidgetConfigRequest

getDescriptorForType()

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

getUpdateMask()

public FieldMask getUpdateMask()

Indicates which fields in the provided WidgetConfig to update. The following are the only supported fields:

  • WidgetConfig.enable_autocomplete

    If not set, 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 WidgetConfig to update. The following are the only supported fields:

  • WidgetConfig.enable_autocomplete

    If not set, 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 WidgetConfig to update. The following are the only supported fields:

  • WidgetConfig.enable_autocomplete

    If not set, all supported fields are updated.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMaskOrBuilder

getWidgetConfig()

public WidgetConfig getWidgetConfig()

Required. The WidgetConfig to update.

If the caller does not have permission to update the WidgetConfig, then a PERMISSION_DENIED error is returned.

If the WidgetConfig to update does not exist, a NOT_FOUND error is returned.

.google.cloud.discoveryengine.v1.WidgetConfig widget_config = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
WidgetConfig

The widgetConfig.

getWidgetConfigBuilder()

public WidgetConfig.Builder getWidgetConfigBuilder()

Required. The WidgetConfig to update.

If the caller does not have permission to update the WidgetConfig, then a PERMISSION_DENIED error is returned.

If the WidgetConfig to update does not exist, a NOT_FOUND error is returned.

.google.cloud.discoveryengine.v1.WidgetConfig widget_config = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
WidgetConfig.Builder

getWidgetConfigOrBuilder()

public WidgetConfigOrBuilder getWidgetConfigOrBuilder()

Required. The WidgetConfig to update.

If the caller does not have permission to update the WidgetConfig, then a PERMISSION_DENIED error is returned.

If the WidgetConfig to update does not exist, a NOT_FOUND error is returned.

.google.cloud.discoveryengine.v1.WidgetConfig widget_config = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
WidgetConfigOrBuilder

hasUpdateMask()

public boolean hasUpdateMask()

Indicates which fields in the provided WidgetConfig to update. The following are the only supported fields:

  • WidgetConfig.enable_autocomplete

    If not set, all supported fields are updated.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
boolean

Whether the updateMask field is set.

hasWidgetConfig()

public boolean hasWidgetConfig()

Required. The WidgetConfig to update.

If the caller does not have permission to update the WidgetConfig, then a PERMISSION_DENIED error is returned.

If the WidgetConfig to update does not exist, a NOT_FOUND error is returned.

.google.cloud.discoveryengine.v1.WidgetConfig widget_config = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the widgetConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UpdateWidgetConfigRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUpdateMask(FieldMask value)

public UpdateWidgetConfigRequest.Builder mergeUpdateMask(FieldMask value)

Indicates which fields in the provided WidgetConfig to update. The following are the only supported fields:

  • WidgetConfig.enable_autocomplete

    If not set, all supported fields are updated.

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateWidgetConfigRequest.Builder

mergeWidgetConfig(WidgetConfig value)

public UpdateWidgetConfigRequest.Builder mergeWidgetConfig(WidgetConfig value)

Required. The WidgetConfig to update.

If the caller does not have permission to update the WidgetConfig, then a PERMISSION_DENIED error is returned.

If the WidgetConfig to update does not exist, a NOT_FOUND error is returned.

.google.cloud.discoveryengine.v1.WidgetConfig widget_config = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value WidgetConfig
Returns
Type Description
UpdateWidgetConfigRequest.Builder

setUpdateMask(FieldMask value)

public UpdateWidgetConfigRequest.Builder setUpdateMask(FieldMask value)

Indicates which fields in the provided WidgetConfig to update. The following are the only supported fields:

  • WidgetConfig.enable_autocomplete

    If not set, all supported fields are updated.

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateWidgetConfigRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateWidgetConfigRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Indicates which fields in the provided WidgetConfig to update. The following are the only supported fields:

  • WidgetConfig.enable_autocomplete

    If not set, all supported fields are updated.

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateWidgetConfigRequest.Builder

setWidgetConfig(WidgetConfig value)

public UpdateWidgetConfigRequest.Builder setWidgetConfig(WidgetConfig value)

Required. The WidgetConfig to update.

If the caller does not have permission to update the WidgetConfig, then a PERMISSION_DENIED error is returned.

If the WidgetConfig to update does not exist, a NOT_FOUND error is returned.

.google.cloud.discoveryengine.v1.WidgetConfig widget_config = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value WidgetConfig
Returns
Type Description
UpdateWidgetConfigRequest.Builder

setWidgetConfig(WidgetConfig.Builder builderForValue)

public UpdateWidgetConfigRequest.Builder setWidgetConfig(WidgetConfig.Builder builderForValue)

Required. The WidgetConfig to update.

If the caller does not have permission to update the WidgetConfig, then a PERMISSION_DENIED error is returned.

If the WidgetConfig to update does not exist, a NOT_FOUND error is returned.

.google.cloud.discoveryengine.v1.WidgetConfig widget_config = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue WidgetConfig.Builder
Returns
Type Description
UpdateWidgetConfigRequest.Builder