Class Model.ServingConfigList (2.32.0)

public static final class Model.ServingConfigList extends GeneratedMessageV3 implements Model.ServingConfigListOrBuilder

Represents an ordered combination of valid serving configs, which can be used for PAGE_OPTIMIZATION recommendations.

Protobuf type google.cloud.retail.v2.Model.ServingConfigList

Static Fields

SERVING_CONFIG_IDS_FIELD_NUMBER

public static final int SERVING_CONFIG_IDS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Model.ServingConfigList getDefaultInstance()
Returns
TypeDescription
Model.ServingConfigList

getDescriptor()

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

newBuilder()

public static Model.ServingConfigList.Builder newBuilder()
Returns
TypeDescription
Model.ServingConfigList.Builder

newBuilder(Model.ServingConfigList prototype)

public static Model.ServingConfigList.Builder newBuilder(Model.ServingConfigList prototype)
Parameter
NameDescription
prototypeModel.ServingConfigList
Returns
TypeDescription
Model.ServingConfigList.Builder

parseDelimitedFrom(InputStream input)

public static Model.ServingConfigList parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Model.ServingConfigList
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static Model.ServingConfigList parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Model.ServingConfigList
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static Model.ServingConfigList parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Model.ServingConfigList
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static Model.ServingConfigList parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Model.ServingConfigList
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static Model.ServingConfigList parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Model.ServingConfigList
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<Model.ServingConfigList> parser()
Returns
TypeDescription
Parser<ServingConfigList>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public Model.ServingConfigList getDefaultInstanceForType()
Returns
TypeDescription
Model.ServingConfigList

getParserForType()

public Parser<Model.ServingConfigList> getParserForType()
Returns
TypeDescription
Parser<ServingConfigList>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getServingConfigIds(int index)

public String getServingConfigIds(int index)

Optional. A set of valid serving configs that may be used for PAGE_OPTIMIZATION.

repeated string serving_config_ids = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The servingConfigIds at the given index.

getServingConfigIdsBytes(int index)

public ByteString getServingConfigIdsBytes(int index)

Optional. A set of valid serving configs that may be used for PAGE_OPTIMIZATION.

repeated string serving_config_ids = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the servingConfigIds at the given index.

getServingConfigIdsCount()

public int getServingConfigIdsCount()

Optional. A set of valid serving configs that may be used for PAGE_OPTIMIZATION.

repeated string serving_config_ids = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The count of servingConfigIds.

getServingConfigIdsList()

public ProtocolStringList getServingConfigIdsList()

Optional. A set of valid serving configs that may be used for PAGE_OPTIMIZATION.

repeated string serving_config_ids = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ProtocolStringList

A list containing the servingConfigIds.

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 Model.ServingConfigList.Builder newBuilderForType()
Returns
TypeDescription
Model.ServingConfigList.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public Model.ServingConfigList.Builder toBuilder()
Returns
TypeDescription
Model.ServingConfigList.Builder

writeTo(CodedOutputStream output)

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