Class Rule.ForceReturnFacetAction.FacetPositionAdjustment (2.55.0)

public static final class Rule.ForceReturnFacetAction.FacetPositionAdjustment extends GeneratedMessageV3 implements Rule.ForceReturnFacetAction.FacetPositionAdjustmentOrBuilder

Each facet position adjustment consists of a single attribute name (i.e. facet key) along with a specified position.

Protobuf type google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > Rule.ForceReturnFacetAction.FacetPositionAdjustment

Static Fields

ATTRIBUTE_NAME_FIELD_NUMBER

public static final int ATTRIBUTE_NAME_FIELD_NUMBER
Field Value
Type Description
int

POSITION_FIELD_NUMBER

public static final int POSITION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Rule.ForceReturnFacetAction.FacetPositionAdjustment getDefaultInstance()
Returns
Type Description
Rule.ForceReturnFacetAction.FacetPositionAdjustment

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Rule.ForceReturnFacetAction.FacetPositionAdjustment.Builder newBuilder()
Returns
Type Description
Rule.ForceReturnFacetAction.FacetPositionAdjustment.Builder

newBuilder(Rule.ForceReturnFacetAction.FacetPositionAdjustment prototype)

public static Rule.ForceReturnFacetAction.FacetPositionAdjustment.Builder newBuilder(Rule.ForceReturnFacetAction.FacetPositionAdjustment prototype)
Parameter
Name Description
prototype Rule.ForceReturnFacetAction.FacetPositionAdjustment
Returns
Type Description
Rule.ForceReturnFacetAction.FacetPositionAdjustment.Builder

parseDelimitedFrom(InputStream input)

public static Rule.ForceReturnFacetAction.FacetPositionAdjustment parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Rule.ForceReturnFacetAction.FacetPositionAdjustment
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Rule.ForceReturnFacetAction.FacetPositionAdjustment parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Rule.ForceReturnFacetAction.FacetPositionAdjustment
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Rule.ForceReturnFacetAction.FacetPositionAdjustment parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Rule.ForceReturnFacetAction.FacetPositionAdjustment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Rule.ForceReturnFacetAction.FacetPositionAdjustment parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Rule.ForceReturnFacetAction.FacetPositionAdjustment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Rule.ForceReturnFacetAction.FacetPositionAdjustment parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Rule.ForceReturnFacetAction.FacetPositionAdjustment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Rule.ForceReturnFacetAction.FacetPositionAdjustment parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Rule.ForceReturnFacetAction.FacetPositionAdjustment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Rule.ForceReturnFacetAction.FacetPositionAdjustment parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Rule.ForceReturnFacetAction.FacetPositionAdjustment
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Rule.ForceReturnFacetAction.FacetPositionAdjustment parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Rule.ForceReturnFacetAction.FacetPositionAdjustment
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Rule.ForceReturnFacetAction.FacetPositionAdjustment parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Rule.ForceReturnFacetAction.FacetPositionAdjustment
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Rule.ForceReturnFacetAction.FacetPositionAdjustment parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Rule.ForceReturnFacetAction.FacetPositionAdjustment
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Rule.ForceReturnFacetAction.FacetPositionAdjustment parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Rule.ForceReturnFacetAction.FacetPositionAdjustment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Rule.ForceReturnFacetAction.FacetPositionAdjustment parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Rule.ForceReturnFacetAction.FacetPositionAdjustment
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Rule.ForceReturnFacetAction.FacetPositionAdjustment> parser()
Returns
Type Description
Parser<FacetPositionAdjustment>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAttributeName()

public String getAttributeName()

The attribute name to force return as a facet. Each attribute name should be a valid attribute name, be non-empty and contain at most 80 characters long.

string attribute_name = 1;

Returns
Type Description
String

The attributeName.

getAttributeNameBytes()

public ByteString getAttributeNameBytes()

The attribute name to force return as a facet. Each attribute name should be a valid attribute name, be non-empty and contain at most 80 characters long.

string attribute_name = 1;

Returns
Type Description
ByteString

The bytes for attributeName.

getDefaultInstanceForType()

public Rule.ForceReturnFacetAction.FacetPositionAdjustment getDefaultInstanceForType()
Returns
Type Description
Rule.ForceReturnFacetAction.FacetPositionAdjustment

getParserForType()

public Parser<Rule.ForceReturnFacetAction.FacetPositionAdjustment> getParserForType()
Returns
Type Description
Parser<FacetPositionAdjustment>
Overrides

getPosition()

public int getPosition()

This is the position in the request as explained above. It should be strictly positive be at most 100.

int32 position = 2;

Returns
Type Description
int

The position.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Rule.ForceReturnFacetAction.FacetPositionAdjustment.Builder newBuilderForType()
Returns
Type Description
Rule.ForceReturnFacetAction.FacetPositionAdjustment.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Rule.ForceReturnFacetAction.FacetPositionAdjustment.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Rule.ForceReturnFacetAction.FacetPositionAdjustment.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Rule.ForceReturnFacetAction.FacetPositionAdjustment.Builder toBuilder()
Returns
Type Description
Rule.ForceReturnFacetAction.FacetPositionAdjustment.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException