Class ServingConfig.GenericConfig (0.36.0)

public static final class ServingConfig.GenericConfig extends GeneratedMessageV3 implements ServingConfig.GenericConfigOrBuilder

Specifies the configurations needed for Generic Discovery.Currently we support:

  • content_search_spec: configuration for generic content search.

Protobuf type google.cloud.discoveryengine.v1beta.ServingConfig.GenericConfig

Static Fields

CONTENT_SEARCH_SPEC_FIELD_NUMBER

public static final int CONTENT_SEARCH_SPEC_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ServingConfig.GenericConfig getDefaultInstance()
Returns
TypeDescription
ServingConfig.GenericConfig

getDescriptor()

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

newBuilder()

public static ServingConfig.GenericConfig.Builder newBuilder()
Returns
TypeDescription
ServingConfig.GenericConfig.Builder

newBuilder(ServingConfig.GenericConfig prototype)

public static ServingConfig.GenericConfig.Builder newBuilder(ServingConfig.GenericConfig prototype)
Parameter
NameDescription
prototypeServingConfig.GenericConfig
Returns
TypeDescription
ServingConfig.GenericConfig.Builder

parseDelimitedFrom(InputStream input)

public static ServingConfig.GenericConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ServingConfig.GenericConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static ServingConfig.GenericConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ServingConfig.GenericConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static ServingConfig.GenericConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ServingConfig.GenericConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static ServingConfig.GenericConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ServingConfig.GenericConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static ServingConfig.GenericConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ServingConfig.GenericConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<ServingConfig.GenericConfig> parser()
Returns
TypeDescription
Parser<GenericConfig>

Methods

equals(Object obj)

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

getContentSearchSpec()

public SearchRequest.ContentSearchSpec getContentSearchSpec()

Specifies the expected behavior of content search. Only valid for content-search enabled data store.

.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 1;

Returns
TypeDescription
SearchRequest.ContentSearchSpec

The contentSearchSpec.

getContentSearchSpecOrBuilder()

public SearchRequest.ContentSearchSpecOrBuilder getContentSearchSpecOrBuilder()

Specifies the expected behavior of content search. Only valid for content-search enabled data store.

.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 1;

Returns
TypeDescription
SearchRequest.ContentSearchSpecOrBuilder

getDefaultInstanceForType()

public ServingConfig.GenericConfig getDefaultInstanceForType()
Returns
TypeDescription
ServingConfig.GenericConfig

getParserForType()

public Parser<ServingConfig.GenericConfig> getParserForType()
Returns
TypeDescription
Parser<GenericConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasContentSearchSpec()

public boolean hasContentSearchSpec()

Specifies the expected behavior of content search. Only valid for content-search enabled data store.

.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 1;

Returns
TypeDescription
boolean

Whether the contentSearchSpec 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 ServingConfig.GenericConfig.Builder newBuilderForType()
Returns
TypeDescription
ServingConfig.GenericConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public ServingConfig.GenericConfig.Builder toBuilder()
Returns
TypeDescription
ServingConfig.GenericConfig.Builder

writeTo(CodedOutputStream output)

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