public final class CompleteQueryRequest extends GeneratedMessageV3 implements CompleteQueryRequestOrBuilder
Auto-complete parameters.Protobuf type
google.cloud.talent.v4.CompleteQueryRequest
Modifier and Type | Class and Description |
---|---|
static class |
CompleteQueryRequest.Builder
Auto-complete parameters.
|
static class |
CompleteQueryRequest.CompletionScope
Enum to specify the scope of completion.
|
static class |
CompleteQueryRequest.CompletionType
Enum to specify auto-completion topics.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
COMPANY_FIELD_NUMBER |
static int |
LANGUAGE_CODES_FIELD_NUMBER |
static int |
PAGE_SIZE_FIELD_NUMBER |
static int |
QUERY_FIELD_NUMBER |
static int |
SCOPE_FIELD_NUMBER |
static int |
TENANT_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int TENANT_FIELD_NUMBER
public static final int QUERY_FIELD_NUMBER
public static final int LANGUAGE_CODES_FIELD_NUMBER
public static final int PAGE_SIZE_FIELD_NUMBER
public static final int COMPANY_FIELD_NUMBER
public static final int SCOPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public String getTenant()
Required. Resource name of tenant the completion is performed within. The format is "projects/{project_id}/tenants/{tenant_id}", for example, "projects/foo/tenants/bar".
string tenant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getTenant
in interface CompleteQueryRequestOrBuilder
public ByteString getTenantBytes()
Required. Resource name of tenant the completion is performed within. The format is "projects/{project_id}/tenants/{tenant_id}", for example, "projects/foo/tenants/bar".
string tenant = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getTenantBytes
in interface CompleteQueryRequestOrBuilder
public String getQuery()
Required. The query used to generate suggestions. The maximum number of allowed characters is 255.
string query = 2 [(.google.api.field_behavior) = REQUIRED];
getQuery
in interface CompleteQueryRequestOrBuilder
public ByteString getQueryBytes()
Required. The query used to generate suggestions. The maximum number of allowed characters is 255.
string query = 2 [(.google.api.field_behavior) = REQUIRED];
getQueryBytes
in interface CompleteQueryRequestOrBuilder
public ProtocolStringList getLanguageCodesList()
The list of languages of the query. This is the BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). The maximum number of allowed characters is 255.
repeated string language_codes = 3;
getLanguageCodesList
in interface CompleteQueryRequestOrBuilder
public int getLanguageCodesCount()
The list of languages of the query. This is the BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). The maximum number of allowed characters is 255.
repeated string language_codes = 3;
getLanguageCodesCount
in interface CompleteQueryRequestOrBuilder
public String getLanguageCodes(int index)
The list of languages of the query. This is the BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). The maximum number of allowed characters is 255.
repeated string language_codes = 3;
getLanguageCodes
in interface CompleteQueryRequestOrBuilder
index
- The index of the element to return.public ByteString getLanguageCodesBytes(int index)
The list of languages of the query. This is the BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). The maximum number of allowed characters is 255.
repeated string language_codes = 3;
getLanguageCodesBytes
in interface CompleteQueryRequestOrBuilder
index
- The index of the value to return.public int getPageSize()
Required. Completion result count. The maximum allowed page size is 10.
int32 page_size = 4 [(.google.api.field_behavior) = REQUIRED];
getPageSize
in interface CompleteQueryRequestOrBuilder
public String getCompany()
If provided, restricts completion to specified company. The format is "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for example, "projects/foo/tenants/bar/companies/baz".
string company = 5 [(.google.api.resource_reference) = { ... }
getCompany
in interface CompleteQueryRequestOrBuilder
public ByteString getCompanyBytes()
If provided, restricts completion to specified company. The format is "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for example, "projects/foo/tenants/bar/companies/baz".
string company = 5 [(.google.api.resource_reference) = { ... }
getCompanyBytes
in interface CompleteQueryRequestOrBuilder
public int getScopeValue()
The scope of the completion. The defaults is [CompletionScope.PUBLIC][google.cloud.talent.v4.CompleteQueryRequest.CompletionScope.PUBLIC].
.google.cloud.talent.v4.CompleteQueryRequest.CompletionScope scope = 6;
getScopeValue
in interface CompleteQueryRequestOrBuilder
public CompleteQueryRequest.CompletionScope getScope()
The scope of the completion. The defaults is [CompletionScope.PUBLIC][google.cloud.talent.v4.CompleteQueryRequest.CompletionScope.PUBLIC].
.google.cloud.talent.v4.CompleteQueryRequest.CompletionScope scope = 6;
getScope
in interface CompleteQueryRequestOrBuilder
public int getTypeValue()
The completion topic. The default is [CompletionType.COMBINED][google.cloud.talent.v4.CompleteQueryRequest.CompletionType.COMBINED].
.google.cloud.talent.v4.CompleteQueryRequest.CompletionType type = 7;
getTypeValue
in interface CompleteQueryRequestOrBuilder
public CompleteQueryRequest.CompletionType getType()
The completion topic. The default is [CompletionType.COMBINED][google.cloud.talent.v4.CompleteQueryRequest.CompletionType.COMBINED].
.google.cloud.talent.v4.CompleteQueryRequest.CompletionType type = 7;
getType
in interface CompleteQueryRequestOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static CompleteQueryRequest parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static CompleteQueryRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static CompleteQueryRequest parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static CompleteQueryRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static CompleteQueryRequest parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static CompleteQueryRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static CompleteQueryRequest parseFrom(InputStream input) throws IOException
IOException
public static CompleteQueryRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static CompleteQueryRequest parseDelimitedFrom(InputStream input) throws IOException
IOException
public static CompleteQueryRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static CompleteQueryRequest parseFrom(CodedInputStream input) throws IOException
IOException
public static CompleteQueryRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public CompleteQueryRequest.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static CompleteQueryRequest.Builder newBuilder()
public static CompleteQueryRequest.Builder newBuilder(CompleteQueryRequest prototype)
public CompleteQueryRequest.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected CompleteQueryRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static CompleteQueryRequest getDefaultInstance()
public static Parser<CompleteQueryRequest> parser()
public Parser<CompleteQueryRequest> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public CompleteQueryRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.