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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateCatalogItemRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public CreateCatalogItemRequest build()
Returns
buildPartial()
public CreateCatalogItemRequest buildPartial()
Returns
clear()
public CreateCatalogItemRequest.Builder clear()
Returns
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
clearField(Descriptors.FieldDescriptor field)
public CreateCatalogItemRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateCatalogItemRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clone()
public CreateCatalogItemRequest.Builder clone()
Returns
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
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
getCatalogItemOrBuilder()
public CatalogItemOrBuilder getCatalogItemOrBuilder()
Required. The catalog item to create.
.google.cloud.recommendationengine.v1beta1.CatalogItem catalog_item = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getDefaultInstanceForType()
public CreateCatalogItemRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
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
Returns
mergeFrom(CreateCatalogItemRequest other)
public CreateCatalogItemRequest.Builder mergeFrom(CreateCatalogItemRequest other)
Parameter
Returns
public CreateCatalogItemRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CreateCatalogItemRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateCatalogItemRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public CreateCatalogItemRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateCatalogItemRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateCatalogItemRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides