Class CreateCatalogItemRequest.Builder (0.52.0)

public static final class CreateCatalogItemRequest.Builder extends GeneratedMessageV3.Builder<CreateCatalogItemRequest.Builder> implements CreateCatalogItemRequestOrBuilder

Request message for CreateCatalogItem method.

Protobuf type google.cloud.recommendationengine.v1beta1.CreateCatalogItemRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateCatalogItemRequest build()
Returns
Type Description
CreateCatalogItemRequest

buildPartial()

public CreateCatalogItemRequest buildPartial()
Returns
Type Description
CreateCatalogItemRequest

clear()

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

clearCatalogItem()

public CreateCatalogItemRequest.Builder clearCatalogItem()

Required. The catalog item to create.

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

Returns
Type Description
CreateCatalogItemRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateCatalogItemRequest.Builder clearParent()

Required. The parent catalog resource name, such as projects/*/locations/global/catalogs/default_catalog.

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

Returns
Type Description
CreateCatalogItemRequest.Builder

This builder for chaining.

clone()

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

getCatalogItem()

public CatalogItem getCatalogItem()

Required. The catalog item to create.

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

Returns
Type Description
CatalogItem

The catalogItem.

getCatalogItemBuilder()

public CatalogItem.Builder getCatalogItemBuilder()

Required. The catalog item to create.

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

Returns
Type Description
CatalogItem.Builder

getCatalogItemOrBuilder()

public CatalogItemOrBuilder getCatalogItemOrBuilder()

Required. The catalog item to create.

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

Returns
Type Description
CatalogItemOrBuilder

getDefaultInstanceForType()

public CreateCatalogItemRequest getDefaultInstanceForType()
Returns
Type Description
CreateCatalogItemRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The parent catalog resource name, such as projects/*/locations/global/catalogs/default_catalog.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent catalog resource name, such as projects/*/locations/global/catalogs/default_catalog.

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

Returns
Type Description
ByteString

The bytes for parent.

hasCatalogItem()

public boolean hasCatalogItem()

Required. The catalog item to create.

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

Returns
Type Description
boolean

Whether the catalogItem field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCatalogItem(CatalogItem value)

public CreateCatalogItemRequest.Builder mergeCatalogItem(CatalogItem value)

Required. The catalog item to create.

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

Parameter
Name Description
value CatalogItem
Returns
Type Description
CreateCatalogItemRequest.Builder

mergeFrom(CreateCatalogItemRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCatalogItem(CatalogItem value)

public CreateCatalogItemRequest.Builder setCatalogItem(CatalogItem value)

Required. The catalog item to create.

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

Parameter
Name Description
value CatalogItem
Returns
Type Description
CreateCatalogItemRequest.Builder

setCatalogItem(CatalogItem.Builder builderForValue)

public CreateCatalogItemRequest.Builder setCatalogItem(CatalogItem.Builder builderForValue)

Required. The catalog item to create.

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

Parameter
Name Description
builderForValue CatalogItem.Builder
Returns
Type Description
CreateCatalogItemRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateCatalogItemRequest.Builder setParent(String value)

Required. The parent catalog resource name, such as projects/*/locations/global/catalogs/default_catalog.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateCatalogItemRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateCatalogItemRequest.Builder setParentBytes(ByteString value)

Required. The parent catalog resource name, such as projects/*/locations/global/catalogs/default_catalog.

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateCatalogItemRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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