Class CatalogInlineSource.Builder (0.11.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.recommendationengine.v1beta1.CatalogItem>
Returns
TypeDescription
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
NameDescription
valueCatalogItem
Returns
TypeDescription
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
NameDescription
builderForValueCatalogItem.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueCatalogItem
Returns
TypeDescription
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
NameDescription
indexint
builderForValueCatalogItem.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
CatalogItem.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CatalogInlineSource build()
Returns
TypeDescription
CatalogInlineSource

buildPartial()

public CatalogInlineSource buildPartial()
Returns
TypeDescription
CatalogInlineSource

clear()

public CatalogInlineSource.Builder clear()
Returns
TypeDescription
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
TypeDescription
CatalogInlineSource.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public CatalogInlineSource.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder>

getDefaultInstanceForType()

public CatalogInlineSource getDefaultInstanceForType()
Returns
TypeDescription
CatalogInlineSource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CatalogInlineSource other)

public CatalogInlineSource.Builder mergeFrom(CatalogInlineSource other)
Parameter
NameDescription
otherCatalogInlineSource
Returns
TypeDescription
CatalogInlineSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CatalogInlineSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueCatalogItem
Returns
TypeDescription
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
NameDescription
indexint
builderForValueCatalogItem.Builder
Returns
TypeDescription
CatalogInlineSource.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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