public static final class CompleteQueryRequest.Builder extends GeneratedMessageV3.Builder<CompleteQueryRequest.Builder> implements CompleteQueryRequestOrBuilder
Auto-complete parameters.Protobuf type
google.cloud.talent.v4.CompleteQueryRequest
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<CompleteQueryRequest.Builder>
public CompleteQueryRequest.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<CompleteQueryRequest.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<CompleteQueryRequest.Builder>
public CompleteQueryRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public CompleteQueryRequest build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public CompleteQueryRequest buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public CompleteQueryRequest.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<CompleteQueryRequest.Builder>
public CompleteQueryRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<CompleteQueryRequest.Builder>
public CompleteQueryRequest.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<CompleteQueryRequest.Builder>
public CompleteQueryRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<CompleteQueryRequest.Builder>
public CompleteQueryRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<CompleteQueryRequest.Builder>
public CompleteQueryRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<CompleteQueryRequest.Builder>
public CompleteQueryRequest.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<CompleteQueryRequest.Builder>
public CompleteQueryRequest.Builder mergeFrom(CompleteQueryRequest other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<CompleteQueryRequest.Builder>
public CompleteQueryRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<CompleteQueryRequest.Builder>
IOException
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 CompleteQueryRequest.Builder setTenant(String value)
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) = { ... }
value
- The tenant to set.public CompleteQueryRequest.Builder clearTenant()
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) = { ... }
public CompleteQueryRequest.Builder setTenantBytes(ByteString value)
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) = { ... }
value
- The bytes for tenant to set.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 CompleteQueryRequest.Builder setQuery(String value)
Required. The query used to generate suggestions. The maximum number of allowed characters is 255.
string query = 2 [(.google.api.field_behavior) = REQUIRED];
value
- The query to set.public CompleteQueryRequest.Builder clearQuery()
Required. The query used to generate suggestions. The maximum number of allowed characters is 255.
string query = 2 [(.google.api.field_behavior) = REQUIRED];
public CompleteQueryRequest.Builder setQueryBytes(ByteString value)
Required. The query used to generate suggestions. The maximum number of allowed characters is 255.
string query = 2 [(.google.api.field_behavior) = REQUIRED];
value
- The bytes for query to set.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 CompleteQueryRequest.Builder setLanguageCodes(int index, String value)
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;
index
- The index to set the value at.value
- The languageCodes to set.public CompleteQueryRequest.Builder addLanguageCodes(String value)
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;
value
- The languageCodes to add.public CompleteQueryRequest.Builder addAllLanguageCodes(Iterable<String> values)
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;
values
- The languageCodes to add.public CompleteQueryRequest.Builder clearLanguageCodes()
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;
public CompleteQueryRequest.Builder addLanguageCodesBytes(ByteString value)
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;
value
- The bytes of the languageCodes to add.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 CompleteQueryRequest.Builder setPageSize(int value)
Required. Completion result count. The maximum allowed page size is 10.
int32 page_size = 4 [(.google.api.field_behavior) = REQUIRED];
value
- The pageSize to set.public CompleteQueryRequest.Builder clearPageSize()
Required. Completion result count. The maximum allowed page size is 10.
int32 page_size = 4 [(.google.api.field_behavior) = REQUIRED];
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 CompleteQueryRequest.Builder setCompany(String value)
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) = { ... }
value
- The company to set.public CompleteQueryRequest.Builder clearCompany()
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) = { ... }
public CompleteQueryRequest.Builder setCompanyBytes(ByteString value)
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) = { ... }
value
- The bytes for company to set.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.Builder setScopeValue(int value)
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;
value
- The enum numeric value on the wire for scope to set.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 CompleteQueryRequest.Builder setScope(CompleteQueryRequest.CompletionScope value)
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;
value
- The scope to set.public CompleteQueryRequest.Builder clearScope()
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;
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.Builder setTypeValue(int value)
The completion topic. The default is [CompletionType.COMBINED][google.cloud.talent.v4.CompleteQueryRequest.CompletionType.COMBINED].
.google.cloud.talent.v4.CompleteQueryRequest.CompletionType type = 7;
value
- The enum numeric value on the wire for type to set.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 CompleteQueryRequest.Builder setType(CompleteQueryRequest.CompletionType value)
The completion topic. The default is [CompletionType.COMBINED][google.cloud.talent.v4.CompleteQueryRequest.CompletionType.COMBINED].
.google.cloud.talent.v4.CompleteQueryRequest.CompletionType type = 7;
value
- The type to set.public CompleteQueryRequest.Builder clearType()
The completion topic. The default is [CompletionType.COMBINED][google.cloud.talent.v4.CompleteQueryRequest.CompletionType.COMBINED].
.google.cloud.talent.v4.CompleteQueryRequest.CompletionType type = 7;
public final CompleteQueryRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<CompleteQueryRequest.Builder>
public final CompleteQueryRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<CompleteQueryRequest.Builder>
Copyright © 2022 Google LLC. All rights reserved.