Class CreateCatalogItemRequest.Builder (0.23.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateCatalogItemRequest build()
Returns
TypeDescription
CreateCatalogItemRequest

buildPartial()

public CreateCatalogItemRequest buildPartial()
Returns
TypeDescription
CreateCatalogItemRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateCatalogItemRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CreateCatalogItemRequest.Builder

This builder for chaining.

clone()

public CreateCatalogItemRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CatalogItemOrBuilder

getDefaultInstanceForType()

public CreateCatalogItemRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateCatalogItemRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the catalogItem 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 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
NameDescription
valueCatalogItem
Returns
TypeDescription
CreateCatalogItemRequest.Builder

mergeFrom(CreateCatalogItemRequest other)

public CreateCatalogItemRequest.Builder mergeFrom(CreateCatalogItemRequest other)
Parameter
NameDescription
otherCreateCatalogItemRequest
Returns
TypeDescription
CreateCatalogItemRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public CreateCatalogItemRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateCatalogItemRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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