Class CatalogInlineSource.Builder (0.60.0)

public static final class CatalogInlineSource.Builder extends GeneratedMessageV3.Builder<CatalogInlineSource.Builder> implements CatalogInlineSourceOrBuilder

The inline source for the input config for ImportCatalogItems method.

Protobuf type google.cloud.recommendationengine.v1beta1.CatalogInlineSource

Static Methods

getDescriptor()

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

Methods

addAllCatalogItems(Iterable<? extends CatalogItem> values)

public CatalogInlineSource.Builder addAllCatalogItems(Iterable<? extends CatalogItem> values)

Optional. A list of catalog items to update/create. Recommended max of 10k items.

repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.recommendationengine.v1beta1.CatalogItem>
Returns
Type Description
CatalogInlineSource.Builder

addCatalogItems(CatalogItem value)

public CatalogInlineSource.Builder addCatalogItems(CatalogItem value)

Optional. A list of catalog items to update/create. Recommended max of 10k items.

repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value CatalogItem
Returns
Type Description
CatalogInlineSource.Builder

addCatalogItems(CatalogItem.Builder builderForValue)

public CatalogInlineSource.Builder addCatalogItems(CatalogItem.Builder builderForValue)

Optional. A list of catalog items to update/create. Recommended max of 10k items.

repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL];

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

addCatalogItems(int index, CatalogItem value)

public CatalogInlineSource.Builder addCatalogItems(int index, CatalogItem value)

Optional. A list of catalog items to update/create. Recommended max of 10k items.

repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value CatalogItem
Returns
Type Description
CatalogInlineSource.Builder

addCatalogItems(int index, CatalogItem.Builder builderForValue)

public CatalogInlineSource.Builder addCatalogItems(int index, CatalogItem.Builder builderForValue)

Optional. A list of catalog items to update/create. Recommended max of 10k items.

repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue CatalogItem.Builder
Returns
Type Description
CatalogInlineSource.Builder

addCatalogItemsBuilder()

public CatalogItem.Builder addCatalogItemsBuilder()

Optional. A list of catalog items to update/create. Recommended max of 10k items.

repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CatalogItem.Builder

addCatalogItemsBuilder(int index)

public CatalogItem.Builder addCatalogItemsBuilder(int index)

Optional. A list of catalog items to update/create. Recommended max of 10k items.

repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
CatalogItem.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CatalogInlineSource build()
Returns
Type Description
CatalogInlineSource

buildPartial()

public CatalogInlineSource buildPartial()
Returns
Type Description
CatalogInlineSource

clear()

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

clearCatalogItems()

public CatalogInlineSource.Builder clearCatalogItems()

Optional. A list of catalog items to update/create. Recommended max of 10k items.

repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CatalogInlineSource.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCatalogItems(int index)

public CatalogItem getCatalogItems(int index)

Optional. A list of catalog items to update/create. Recommended max of 10k items.

repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
CatalogItem

getCatalogItemsBuilder(int index)

public CatalogItem.Builder getCatalogItemsBuilder(int index)

Optional. A list of catalog items to update/create. Recommended max of 10k items.

repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
CatalogItem.Builder

getCatalogItemsBuilderList()

public List<CatalogItem.Builder> getCatalogItemsBuilderList()

Optional. A list of catalog items to update/create. Recommended max of 10k items.

repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getCatalogItemsCount()

public int getCatalogItemsCount()

Optional. A list of catalog items to update/create. Recommended max of 10k items.

repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getCatalogItemsList()

public List<CatalogItem> getCatalogItemsList()

Optional. A list of catalog items to update/create. Recommended max of 10k items.

repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<CatalogItem>

getCatalogItemsOrBuilder(int index)

public CatalogItemOrBuilder getCatalogItemsOrBuilder(int index)

Optional. A list of catalog items to update/create. Recommended max of 10k items.

repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
CatalogItemOrBuilder

getCatalogItemsOrBuilderList()

public List<? extends CatalogItemOrBuilder> getCatalogItemsOrBuilderList()

Optional. A list of catalog items to update/create. Recommended max of 10k items.

repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder>

getDefaultInstanceForType()

public CatalogInlineSource getDefaultInstanceForType()
Returns
Type Description
CatalogInlineSource

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CatalogInlineSource other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeCatalogItems(int index)

public CatalogInlineSource.Builder removeCatalogItems(int index)

Optional. A list of catalog items to update/create. Recommended max of 10k items.

repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
CatalogInlineSource.Builder

setCatalogItems(int index, CatalogItem value)

public CatalogInlineSource.Builder setCatalogItems(int index, CatalogItem value)

Optional. A list of catalog items to update/create. Recommended max of 10k items.

repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value CatalogItem
Returns
Type Description
CatalogInlineSource.Builder

setCatalogItems(int index, CatalogItem.Builder builderForValue)

public CatalogInlineSource.Builder setCatalogItems(int index, CatalogItem.Builder builderForValue)

Optional. A list of catalog items to update/create. Recommended max of 10k items.

repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue CatalogItem.Builder
Returns
Type Description
CatalogInlineSource.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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