Class SearchRequest.PersonalizationSpec (2.2.0)

public static final class SearchRequest.PersonalizationSpec extends GeneratedMessageV3 implements SearchRequest.PersonalizationSpecOrBuilder

The specification for personalization.

Protobuf type google.cloud.retail.v2.SearchRequest.PersonalizationSpec

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > SearchRequest.PersonalizationSpec

Static Fields

MODE_FIELD_NUMBER

public static final int MODE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SearchRequest.PersonalizationSpec getDefaultInstance()
Returns
TypeDescription
SearchRequest.PersonalizationSpec

getDescriptor()

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

newBuilder()

public static SearchRequest.PersonalizationSpec.Builder newBuilder()
Returns
TypeDescription
SearchRequest.PersonalizationSpec.Builder

newBuilder(SearchRequest.PersonalizationSpec prototype)

public static SearchRequest.PersonalizationSpec.Builder newBuilder(SearchRequest.PersonalizationSpec prototype)
Parameter
NameDescription
prototypeSearchRequest.PersonalizationSpec
Returns
TypeDescription
SearchRequest.PersonalizationSpec.Builder

parseDelimitedFrom(InputStream input)

public static SearchRequest.PersonalizationSpec parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SearchRequest.PersonalizationSpec
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static SearchRequest.PersonalizationSpec parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SearchRequest.PersonalizationSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static SearchRequest.PersonalizationSpec parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SearchRequest.PersonalizationSpec
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static SearchRequest.PersonalizationSpec parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SearchRequest.PersonalizationSpec
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static SearchRequest.PersonalizationSpec parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SearchRequest.PersonalizationSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<SearchRequest.PersonalizationSpec> parser()
Returns
TypeDescription
Parser<PersonalizationSpec>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public SearchRequest.PersonalizationSpec getDefaultInstanceForType()
Returns
TypeDescription
SearchRequest.PersonalizationSpec

getMode()

public SearchRequest.PersonalizationSpec.Mode getMode()

Defaults to Mode.AUTO.

.google.cloud.retail.v2.SearchRequest.PersonalizationSpec.Mode mode = 1;

Returns
TypeDescription
SearchRequest.PersonalizationSpec.Mode

The mode.

getModeValue()

public int getModeValue()

Defaults to Mode.AUTO.

.google.cloud.retail.v2.SearchRequest.PersonalizationSpec.Mode mode = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for mode.

getParserForType()

public Parser<SearchRequest.PersonalizationSpec> getParserForType()
Returns
TypeDescription
Parser<PersonalizationSpec>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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 SearchRequest.PersonalizationSpec.Builder newBuilderForType()
Returns
TypeDescription
SearchRequest.PersonalizationSpec.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public SearchRequest.PersonalizationSpec.Builder toBuilder()
Returns
TypeDescription
SearchRequest.PersonalizationSpec.Builder

writeTo(CodedOutputStream output)

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