Class UpdateCatalogItemRequest.Builder (0.36.0)

public static final class UpdateCatalogItemRequest.Builder extends GeneratedMessageV3.Builder<UpdateCatalogItemRequest.Builder> implements UpdateCatalogItemRequestOrBuilder

Request message for UpdateCatalogItem method.

Protobuf type google.cloud.recommendationengine.v1beta1.UpdateCatalogItemRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateCatalogItemRequest build()
Returns
TypeDescription
UpdateCatalogItemRequest

buildPartial()

public UpdateCatalogItemRequest buildPartial()
Returns
TypeDescription
UpdateCatalogItemRequest

clear()

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

clearCatalogItem()

public UpdateCatalogItemRequest.Builder clearCatalogItem()

Required. The catalog item to update/create. The 'catalog_item_id' field has to match that in the 'name'.

.google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UpdateCatalogItemRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public UpdateCatalogItemRequest.Builder clearName()

Required. Full resource name of catalog item, such as projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
UpdateCatalogItemRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateCatalogItemRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
UpdateCatalogItemRequest.Builder
Overrides

clearUpdateMask()

public UpdateCatalogItemRequest.Builder clearUpdateMask()

Optional. Indicates which fields in the provided 'item' to update. If not set, will by default update all fields.

.google.protobuf.FieldMask update_mask = 3;

Returns
TypeDescription
UpdateCatalogItemRequest.Builder

clone()

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

getCatalogItem()

public CatalogItem getCatalogItem()

Required. The catalog item to update/create. The 'catalog_item_id' field has to match that in the 'name'.

.google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CatalogItem

The catalogItem.

getCatalogItemBuilder()

public CatalogItem.Builder getCatalogItemBuilder()

Required. The catalog item to update/create. The 'catalog_item_id' field has to match that in the 'name'.

.google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CatalogItem.Builder

getCatalogItemOrBuilder()

public CatalogItemOrBuilder getCatalogItemOrBuilder()

Required. The catalog item to update/create. The 'catalog_item_id' field has to match that in the 'name'.

.google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CatalogItemOrBuilder

getDefaultInstanceForType()

public UpdateCatalogItemRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateCatalogItemRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. Full resource name of catalog item, such as projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Full resource name of catalog item, such as projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for name.

getUpdateMask()

public FieldMask getUpdateMask()

Optional. Indicates which fields in the provided 'item' to update. If not set, will by default update all fields.

.google.protobuf.FieldMask update_mask = 3;

Returns
TypeDescription
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Optional. Indicates which fields in the provided 'item' to update. If not set, will by default update all fields.

.google.protobuf.FieldMask update_mask = 3;

Returns
TypeDescription
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Optional. Indicates which fields in the provided 'item' to update. If not set, will by default update all fields.

.google.protobuf.FieldMask update_mask = 3;

Returns
TypeDescription
FieldMaskOrBuilder

hasCatalogItem()

public boolean hasCatalogItem()

Required. The catalog item to update/create. The 'catalog_item_id' field has to match that in the 'name'.

.google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the catalogItem field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Optional. Indicates which fields in the provided 'item' to update. If not set, will by default update all fields.

.google.protobuf.FieldMask update_mask = 3;

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

mergeCatalogItem(CatalogItem value)

public UpdateCatalogItemRequest.Builder mergeCatalogItem(CatalogItem value)

Required. The catalog item to update/create. The 'catalog_item_id' field has to match that in the 'name'.

.google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueCatalogItem
Returns
TypeDescription
UpdateCatalogItemRequest.Builder

mergeFrom(UpdateCatalogItemRequest other)

public UpdateCatalogItemRequest.Builder mergeFrom(UpdateCatalogItemRequest other)
Parameter
NameDescription
otherUpdateCatalogItemRequest
Returns
TypeDescription
UpdateCatalogItemRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateCatalogItemRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UpdateCatalogItemRequest.Builder
Overrides

mergeUpdateMask(FieldMask value)

public UpdateCatalogItemRequest.Builder mergeUpdateMask(FieldMask value)

Optional. Indicates which fields in the provided 'item' to update. If not set, will by default update all fields.

.google.protobuf.FieldMask update_mask = 3;

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateCatalogItemRequest.Builder

setCatalogItem(CatalogItem value)

public UpdateCatalogItemRequest.Builder setCatalogItem(CatalogItem value)

Required. The catalog item to update/create. The 'catalog_item_id' field has to match that in the 'name'.

.google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueCatalogItem
Returns
TypeDescription
UpdateCatalogItemRequest.Builder

setCatalogItem(CatalogItem.Builder builderForValue)

public UpdateCatalogItemRequest.Builder setCatalogItem(CatalogItem.Builder builderForValue)

Required. The catalog item to update/create. The 'catalog_item_id' field has to match that in the 'name'.

.google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueCatalogItem.Builder
Returns
TypeDescription
UpdateCatalogItemRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public UpdateCatalogItemRequest.Builder setName(String value)

Required. Full resource name of catalog item, such as projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
UpdateCatalogItemRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public UpdateCatalogItemRequest.Builder setNameBytes(ByteString value)

Required. Full resource name of catalog item, such as projects/*/locations/global/catalogs/default_catalog/catalogItems/some_catalog_item_id.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
UpdateCatalogItemRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateCatalogItemRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UpdateCatalogItemRequest.Builder
Overrides

setUpdateMask(FieldMask value)

public UpdateCatalogItemRequest.Builder setUpdateMask(FieldMask value)

Optional. Indicates which fields in the provided 'item' to update. If not set, will by default update all fields.

.google.protobuf.FieldMask update_mask = 3;

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateCatalogItemRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateCatalogItemRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Optional. Indicates which fields in the provided 'item' to update. If not set, will by default update all fields.

.google.protobuf.FieldMask update_mask = 3;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateCatalogItemRequest.Builder