Class CreateSearchConfigRequest.Builder (0.11.0)

public static final class CreateSearchConfigRequest.Builder extends GeneratedMessageV3.Builder<CreateSearchConfigRequest.Builder> implements CreateSearchConfigRequestOrBuilder

Request message for CreateSearchConfig.

Protobuf type google.cloud.visionai.v1.CreateSearchConfigRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateSearchConfigRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateSearchConfigRequest.Builder
Overrides

build()

public CreateSearchConfigRequest build()
Returns
Type Description
CreateSearchConfigRequest

buildPartial()

public CreateSearchConfigRequest buildPartial()
Returns
Type Description
CreateSearchConfigRequest

clear()

public CreateSearchConfigRequest.Builder clear()
Returns
Type Description
CreateSearchConfigRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateSearchConfigRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateSearchConfigRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateSearchConfigRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateSearchConfigRequest.Builder
Overrides

clearParent()

public CreateSearchConfigRequest.Builder clearParent()

Required. The parent resource where this search configuration will be created. Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateSearchConfigRequest.Builder

This builder for chaining.

clearSearchConfig()

public CreateSearchConfigRequest.Builder clearSearchConfig()

Required. The search config to create.

.google.cloud.visionai.v1.SearchConfig search_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateSearchConfigRequest.Builder

clearSearchConfigId()

public CreateSearchConfigRequest.Builder clearSearchConfigId()

Required. ID to use for the new search config. Will become the final component of the SearchConfig's resource name. This value should be up to 63 characters, and valid characters are /a-z-_/. The first character must be a letter, the last could be a letter or a number.

string search_config_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateSearchConfigRequest.Builder

This builder for chaining.

clone()

public CreateSearchConfigRequest.Builder clone()
Returns
Type Description
CreateSearchConfigRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateSearchConfigRequest getDefaultInstanceForType()
Returns
Type Description
CreateSearchConfigRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getParent()

public String getParent()

Required. The parent resource where this search configuration will be created. Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent resource where this search configuration will be created. Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getSearchConfig()

public SearchConfig getSearchConfig()

Required. The search config to create.

.google.cloud.visionai.v1.SearchConfig search_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SearchConfig

The searchConfig.

getSearchConfigBuilder()

public SearchConfig.Builder getSearchConfigBuilder()

Required. The search config to create.

.google.cloud.visionai.v1.SearchConfig search_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SearchConfig.Builder

getSearchConfigId()

public String getSearchConfigId()

Required. ID to use for the new search config. Will become the final component of the SearchConfig's resource name. This value should be up to 63 characters, and valid characters are /a-z-_/. The first character must be a letter, the last could be a letter or a number.

string search_config_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The searchConfigId.

getSearchConfigIdBytes()

public ByteString getSearchConfigIdBytes()

Required. ID to use for the new search config. Will become the final component of the SearchConfig's resource name. This value should be up to 63 characters, and valid characters are /a-z-_/. The first character must be a letter, the last could be a letter or a number.

string search_config_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for searchConfigId.

getSearchConfigOrBuilder()

public SearchConfigOrBuilder getSearchConfigOrBuilder()

Required. The search config to create.

.google.cloud.visionai.v1.SearchConfig search_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SearchConfigOrBuilder

hasSearchConfig()

public boolean hasSearchConfig()

Required. The search config to create.

.google.cloud.visionai.v1.SearchConfig search_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the searchConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateSearchConfigRequest other)

public CreateSearchConfigRequest.Builder mergeFrom(CreateSearchConfigRequest other)
Parameter
Name Description
other CreateSearchConfigRequest
Returns
Type Description
CreateSearchConfigRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateSearchConfigRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateSearchConfigRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateSearchConfigRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateSearchConfigRequest.Builder
Overrides

mergeSearchConfig(SearchConfig value)

public CreateSearchConfigRequest.Builder mergeSearchConfig(SearchConfig value)

Required. The search config to create.

.google.cloud.visionai.v1.SearchConfig search_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value SearchConfig
Returns
Type Description
CreateSearchConfigRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateSearchConfigRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateSearchConfigRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateSearchConfigRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateSearchConfigRequest.Builder
Overrides

setParent(String value)

public CreateSearchConfigRequest.Builder setParent(String value)

Required. The parent resource where this search configuration will be created. Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateSearchConfigRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateSearchConfigRequest.Builder setParentBytes(ByteString value)

Required. The parent resource where this search configuration will be created. Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateSearchConfigRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CreateSearchConfigRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateSearchConfigRequest.Builder
Overrides

setSearchConfig(SearchConfig value)

public CreateSearchConfigRequest.Builder setSearchConfig(SearchConfig value)

Required. The search config to create.

.google.cloud.visionai.v1.SearchConfig search_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value SearchConfig
Returns
Type Description
CreateSearchConfigRequest.Builder

setSearchConfig(SearchConfig.Builder builderForValue)

public CreateSearchConfigRequest.Builder setSearchConfig(SearchConfig.Builder builderForValue)

Required. The search config to create.

.google.cloud.visionai.v1.SearchConfig search_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue SearchConfig.Builder
Returns
Type Description
CreateSearchConfigRequest.Builder

setSearchConfigId(String value)

public CreateSearchConfigRequest.Builder setSearchConfigId(String value)

Required. ID to use for the new search config. Will become the final component of the SearchConfig's resource name. This value should be up to 63 characters, and valid characters are /a-z-_/. The first character must be a letter, the last could be a letter or a number.

string search_config_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The searchConfigId to set.

Returns
Type Description
CreateSearchConfigRequest.Builder

This builder for chaining.

setSearchConfigIdBytes(ByteString value)

public CreateSearchConfigRequest.Builder setSearchConfigIdBytes(ByteString value)

Required. ID to use for the new search config. Will become the final component of the SearchConfig's resource name. This value should be up to 63 characters, and valid characters are /a-z-_/. The first character must be a letter, the last could be a letter or a number.

string search_config_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for searchConfigId to set.

Returns
Type Description
CreateSearchConfigRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateSearchConfigRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateSearchConfigRequest.Builder
Overrides