public static final class CreateSearchConfigRequest.Builder extends GeneratedMessageV3.Builder<CreateSearchConfigRequest.Builder> implements CreateSearchConfigRequestOrBuilder
Request message for CreateSearchConfig.
Protobuf type google.cloud.visionai.v1.CreateSearchConfigRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateSearchConfigRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CreateSearchConfigRequest build()
buildPartial()
public CreateSearchConfigRequest buildPartial()
clear()
public CreateSearchConfigRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateSearchConfigRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateSearchConfigRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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) = { ... }
clearSearchConfig()
public CreateSearchConfigRequest.Builder clearSearchConfig()
Required. The search config to create.
.google.cloud.visionai.v1.SearchConfig search_config = 2 [(.google.api.field_behavior) = REQUIRED];
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];
clone()
public CreateSearchConfigRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public CreateSearchConfigRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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];
getSearchConfigBuilder()
public SearchConfig.Builder getSearchConfigBuilder()
Required. The search config to create.
.google.cloud.visionai.v1.SearchConfig search_config = 2 [(.google.api.field_behavior) = REQUIRED];
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];
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(CreateSearchConfigRequest other)
public CreateSearchConfigRequest.Builder mergeFrom(CreateSearchConfigRequest other)
public CreateSearchConfigRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CreateSearchConfigRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
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];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateSearchConfigRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateSearchConfigRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateSearchConfigRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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];
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];
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.
|
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateSearchConfigRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides