Class ReplaceCatalogAttributeRequest (2.14.0)

public final class ReplaceCatalogAttributeRequest extends GeneratedMessageV3 implements ReplaceCatalogAttributeRequestOrBuilder

Request for CatalogService.ReplaceCatalogAttribute method.

Protobuf type google.cloud.retail.v2.ReplaceCatalogAttributeRequest

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ReplaceCatalogAttributeRequest

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

UPDATE_MASK_FIELD_NUMBER

public static final int UPDATE_MASK_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ReplaceCatalogAttributeRequest getDefaultInstance()
Returns
TypeDescription
ReplaceCatalogAttributeRequest

getDescriptor()

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

newBuilder()

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

newBuilder(ReplaceCatalogAttributeRequest prototype)

public static ReplaceCatalogAttributeRequest.Builder newBuilder(ReplaceCatalogAttributeRequest prototype)
Parameter
NameDescription
prototypeReplaceCatalogAttributeRequest
Returns
TypeDescription
ReplaceCatalogAttributeRequest.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

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 updated CatalogAttribute.

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

Returns
TypeDescription
CatalogAttribute

The catalogAttribute.

getCatalogAttributeOrBuilder()

public CatalogAttributeOrBuilder getCatalogAttributeOrBuilder()

Required. The updated CatalogAttribute.

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

Returns
TypeDescription
CatalogAttributeOrBuilder

getDefaultInstanceForType()

public ReplaceCatalogAttributeRequest getDefaultInstanceForType()
Returns
TypeDescription
ReplaceCatalogAttributeRequest

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getUpdateMask()

public FieldMask getUpdateMask()

Indicates which fields in the provided CatalogAttribute to update. The following are NOT supported:

  • CatalogAttribute.key If not set, all supported fields are updated.

.google.protobuf.FieldMask update_mask = 3;

Returns
TypeDescription
FieldMask

The updateMask.

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Indicates which fields in the provided CatalogAttribute to update. The following are NOT supported:

  • CatalogAttribute.key If not set, all supported fields are updated.

.google.protobuf.FieldMask update_mask = 3;

Returns
TypeDescription
FieldMaskOrBuilder

hasCatalogAttribute()

public boolean hasCatalogAttribute()

Required. The updated CatalogAttribute.

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

Returns
TypeDescription
boolean

Whether the catalogAttribute field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Indicates which fields in the provided CatalogAttribute to update. The following are NOT supported:

  • CatalogAttribute.key If not set, all supported fields are updated.

.google.protobuf.FieldMask update_mask = 3;

Returns
TypeDescription
boolean

Whether the updateMask 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 ReplaceCatalogAttributeRequest.Builder newBuilderForType()
Returns
TypeDescription
ReplaceCatalogAttributeRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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