Class AddCatalogAttributeRequest (2.3.0)

public final class AddCatalogAttributeRequest extends GeneratedMessageV3 implements AddCatalogAttributeRequestOrBuilder

Request for CatalogService.AddCatalogAttribute method.

Protobuf type google.cloud.retail.v2alpha.AddCatalogAttributeRequest

Static Fields

ATTRIBUTES_CONFIG_FIELD_NUMBER

public static final int ATTRIBUTES_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

CATALOG_ATTRIBUTE_FIELD_NUMBER

public static final int CATALOG_ATTRIBUTE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AddCatalogAttributeRequest getDefaultInstance()
Returns
TypeDescription
AddCatalogAttributeRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static AddCatalogAttributeRequest.Builder newBuilder()
Returns
TypeDescription
AddCatalogAttributeRequest.Builder

newBuilder(AddCatalogAttributeRequest prototype)

public static AddCatalogAttributeRequest.Builder newBuilder(AddCatalogAttributeRequest prototype)
Parameter
NameDescription
prototypeAddCatalogAttributeRequest
Returns
TypeDescription
AddCatalogAttributeRequest.Builder

parseDelimitedFrom(InputStream input)

public static AddCatalogAttributeRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AddCatalogAttributeRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AddCatalogAttributeRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AddCatalogAttributeRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static AddCatalogAttributeRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AddCatalogAttributeRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AddCatalogAttributeRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AddCatalogAttributeRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AddCatalogAttributeRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AddCatalogAttributeRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AddCatalogAttributeRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AddCatalogAttributeRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AddCatalogAttributeRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AddCatalogAttributeRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AddCatalogAttributeRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AddCatalogAttributeRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static AddCatalogAttributeRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AddCatalogAttributeRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AddCatalogAttributeRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AddCatalogAttributeRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static AddCatalogAttributeRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AddCatalogAttributeRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AddCatalogAttributeRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AddCatalogAttributeRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<AddCatalogAttributeRequest> parser()
Returns
TypeDescription
Parser<AddCatalogAttributeRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAttributesConfig()

public String getAttributesConfig()

Required. Full AttributesConfig resource name. Format: projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig

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

Returns
TypeDescription
String

The attributesConfig.

getAttributesConfigBytes()

public ByteString getAttributesConfigBytes()

Required. Full AttributesConfig resource name. Format: projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig

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

Returns
TypeDescription
ByteString

The bytes for attributesConfig.

getCatalogAttribute()

public CatalogAttribute getCatalogAttribute()

Required. The CatalogAttribute to add.

.google.cloud.retail.v2alpha.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CatalogAttribute

The catalogAttribute.

getCatalogAttributeOrBuilder()

public CatalogAttributeOrBuilder getCatalogAttributeOrBuilder()

Required. The CatalogAttribute to add.

.google.cloud.retail.v2alpha.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CatalogAttributeOrBuilder

getDefaultInstanceForType()

public AddCatalogAttributeRequest getDefaultInstanceForType()
Returns
TypeDescription
AddCatalogAttributeRequest

getParserForType()

public Parser<AddCatalogAttributeRequest> getParserForType()
Returns
TypeDescription
Parser<AddCatalogAttributeRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasCatalogAttribute()

public boolean hasCatalogAttribute()

Required. The CatalogAttribute to add.

.google.cloud.retail.v2alpha.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the catalogAttribute field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public AddCatalogAttributeRequest.Builder newBuilderForType()
Returns
TypeDescription
AddCatalogAttributeRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AddCatalogAttributeRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AddCatalogAttributeRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public AddCatalogAttributeRequest.Builder toBuilder()
Returns
TypeDescription
AddCatalogAttributeRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException