Class CreateSearchHypernymRequest.Builder (0.10.0)

public static final class CreateSearchHypernymRequest.Builder extends GeneratedMessageV3.Builder<CreateSearchHypernymRequest.Builder> implements CreateSearchHypernymRequestOrBuilder

Request message for creating SearchHypernym.

Protobuf type google.cloud.visionai.v1.CreateSearchHypernymRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateSearchHypernymRequest build()
Returns
Type Description
CreateSearchHypernymRequest

buildPartial()

public CreateSearchHypernymRequest buildPartial()
Returns
Type Description
CreateSearchHypernymRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateSearchHypernymRequest.Builder clearParent()

Required. The parent resource where this SearchHypernym will be created. Format: projects/{project_number}/locations/{location}/corpora/{corpus}

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

Returns
Type Description
CreateSearchHypernymRequest.Builder

This builder for chaining.

clearSearchHypernym()

public CreateSearchHypernymRequest.Builder clearSearchHypernym()

Required. The SearchHypernym to create.

.google.cloud.visionai.v1.SearchHypernym search_hypernym = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateSearchHypernymRequest.Builder

clearSearchHypernymId()

public CreateSearchHypernymRequest.Builder clearSearchHypernymId()

Optional. The search hypernym id. If omitted, a random UUID will be generated.

optional string search_hypernym_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CreateSearchHypernymRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateSearchHypernymRequest getDefaultInstanceForType()
Returns
Type Description
CreateSearchHypernymRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The parent resource where this SearchHypernym will be created. Format: projects/{project_number}/locations/{location}/corpora/{corpus}

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 SearchHypernym will be created. Format: projects/{project_number}/locations/{location}/corpora/{corpus}

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

Returns
Type Description
ByteString

The bytes for parent.

getSearchHypernym()

public SearchHypernym getSearchHypernym()

Required. The SearchHypernym to create.

.google.cloud.visionai.v1.SearchHypernym search_hypernym = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SearchHypernym

The searchHypernym.

getSearchHypernymBuilder()

public SearchHypernym.Builder getSearchHypernymBuilder()

Required. The SearchHypernym to create.

.google.cloud.visionai.v1.SearchHypernym search_hypernym = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SearchHypernym.Builder

getSearchHypernymId()

public String getSearchHypernymId()

Optional. The search hypernym id. If omitted, a random UUID will be generated.

optional string search_hypernym_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The searchHypernymId.

getSearchHypernymIdBytes()

public ByteString getSearchHypernymIdBytes()

Optional. The search hypernym id. If omitted, a random UUID will be generated.

optional string search_hypernym_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for searchHypernymId.

getSearchHypernymOrBuilder()

public SearchHypernymOrBuilder getSearchHypernymOrBuilder()

Required. The SearchHypernym to create.

.google.cloud.visionai.v1.SearchHypernym search_hypernym = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SearchHypernymOrBuilder

hasSearchHypernym()

public boolean hasSearchHypernym()

Required. The SearchHypernym to create.

.google.cloud.visionai.v1.SearchHypernym search_hypernym = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the searchHypernym field is set.

hasSearchHypernymId()

public boolean hasSearchHypernymId()

Optional. The search hypernym id. If omitted, a random UUID will be generated.

optional string search_hypernym_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the searchHypernymId field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateSearchHypernymRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSearchHypernym(SearchHypernym value)

public CreateSearchHypernymRequest.Builder mergeSearchHypernym(SearchHypernym value)

Required. The SearchHypernym to create.

.google.cloud.visionai.v1.SearchHypernym search_hypernym = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value SearchHypernym
Returns
Type Description
CreateSearchHypernymRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateSearchHypernymRequest.Builder setParent(String value)

Required. The parent resource where this SearchHypernym will be created. Format: projects/{project_number}/locations/{location}/corpora/{corpus}

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateSearchHypernymRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateSearchHypernymRequest.Builder setParentBytes(ByteString value)

Required. The parent resource where this SearchHypernym will be created. Format: projects/{project_number}/locations/{location}/corpora/{corpus}

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
CreateSearchHypernymRequest.Builder

This builder for chaining.

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

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

setSearchHypernym(SearchHypernym value)

public CreateSearchHypernymRequest.Builder setSearchHypernym(SearchHypernym value)

Required. The SearchHypernym to create.

.google.cloud.visionai.v1.SearchHypernym search_hypernym = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value SearchHypernym
Returns
Type Description
CreateSearchHypernymRequest.Builder

setSearchHypernym(SearchHypernym.Builder builderForValue)

public CreateSearchHypernymRequest.Builder setSearchHypernym(SearchHypernym.Builder builderForValue)

Required. The SearchHypernym to create.

.google.cloud.visionai.v1.SearchHypernym search_hypernym = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue SearchHypernym.Builder
Returns
Type Description
CreateSearchHypernymRequest.Builder

setSearchHypernymId(String value)

public CreateSearchHypernymRequest.Builder setSearchHypernymId(String value)

Optional. The search hypernym id. If omitted, a random UUID will be generated.

optional string search_hypernym_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The searchHypernymId to set.

Returns
Type Description
CreateSearchHypernymRequest.Builder

This builder for chaining.

setSearchHypernymIdBytes(ByteString value)

public CreateSearchHypernymRequest.Builder setSearchHypernymIdBytes(ByteString value)

Optional. The search hypernym id. If omitted, a random UUID will be generated.

optional string search_hypernym_id = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for searchHypernymId to set.

Returns
Type Description
CreateSearchHypernymRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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