Class UpdateSearchHypernymRequest.Builder (0.12.0)

public static final class UpdateSearchHypernymRequest.Builder extends GeneratedMessageV3.Builder<UpdateSearchHypernymRequest.Builder> implements UpdateSearchHypernymRequestOrBuilder

Request message for updating SearchHypernym.

Protobuf type google.cloud.visionai.v1.UpdateSearchHypernymRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateSearchHypernymRequest build()
Returns
Type Description
UpdateSearchHypernymRequest

buildPartial()

public UpdateSearchHypernymRequest buildPartial()
Returns
Type Description
UpdateSearchHypernymRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSearchHypernym()

public UpdateSearchHypernymRequest.Builder clearSearchHypernym()

Required. The SearchHypernym to update. The search hypernym's name field is used to identify the search hypernym to be updated. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/searchHypernyms/{search_hypernym}

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

Returns
Type Description
UpdateSearchHypernymRequest.Builder

clearUpdateMask()

public UpdateSearchHypernymRequest.Builder clearUpdateMask()

The list of fields to be updated. If left unset, all field paths will be updated/overwritten.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
UpdateSearchHypernymRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateSearchHypernymRequest getDefaultInstanceForType()
Returns
Type Description
UpdateSearchHypernymRequest

getDescriptorForType()

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

getSearchHypernym()

public SearchHypernym getSearchHypernym()

Required. The SearchHypernym to update. The search hypernym's name field is used to identify the search hypernym to be updated. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/searchHypernyms/{search_hypernym}

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

Returns
Type Description
SearchHypernym

The searchHypernym.

getSearchHypernymBuilder()

public SearchHypernym.Builder getSearchHypernymBuilder()

Required. The SearchHypernym to update. The search hypernym's name field is used to identify the search hypernym to be updated. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/searchHypernyms/{search_hypernym}

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

Returns
Type Description
SearchHypernym.Builder

getSearchHypernymOrBuilder()

public SearchHypernymOrBuilder getSearchHypernymOrBuilder()

Required. The SearchHypernym to update. The search hypernym's name field is used to identify the search hypernym to be updated. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/searchHypernyms/{search_hypernym}

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

Returns
Type Description
SearchHypernymOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

The list of fields to be updated. If left unset, all field paths will be updated/overwritten.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

The list of fields to be updated. If left unset, all field paths will be updated/overwritten.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

The list of fields to be updated. If left unset, all field paths will be updated/overwritten.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMaskOrBuilder

hasSearchHypernym()

public boolean hasSearchHypernym()

Required. The SearchHypernym to update. The search hypernym's name field is used to identify the search hypernym to be updated. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/searchHypernyms/{search_hypernym}

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

Returns
Type Description
boolean

Whether the searchHypernym field is set.

hasUpdateMask()

public boolean hasUpdateMask()

The list of fields to be updated. If left unset, all field paths will be updated/overwritten.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UpdateSearchHypernymRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSearchHypernym(SearchHypernym value)

public UpdateSearchHypernymRequest.Builder mergeSearchHypernym(SearchHypernym value)

Required. The SearchHypernym to update. The search hypernym's name field is used to identify the search hypernym to be updated. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/searchHypernyms/{search_hypernym}

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

Parameter
Name Description
value SearchHypernym
Returns
Type Description
UpdateSearchHypernymRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateSearchHypernymRequest.Builder mergeUpdateMask(FieldMask value)

The list of fields to be updated. If left unset, all field paths will be updated/overwritten.

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateSearchHypernymRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSearchHypernym(SearchHypernym value)

public UpdateSearchHypernymRequest.Builder setSearchHypernym(SearchHypernym value)

Required. The SearchHypernym to update. The search hypernym's name field is used to identify the search hypernym to be updated. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/searchHypernyms/{search_hypernym}

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

Parameter
Name Description
value SearchHypernym
Returns
Type Description
UpdateSearchHypernymRequest.Builder

setSearchHypernym(SearchHypernym.Builder builderForValue)

public UpdateSearchHypernymRequest.Builder setSearchHypernym(SearchHypernym.Builder builderForValue)

Required. The SearchHypernym to update. The search hypernym's name field is used to identify the search hypernym to be updated. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/searchHypernyms/{search_hypernym}

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateSearchHypernymRequest.Builder setUpdateMask(FieldMask value)

The list of fields to be updated. If left unset, all field paths will be updated/overwritten.

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateSearchHypernymRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateSearchHypernymRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

The list of fields to be updated. If left unset, all field paths will be updated/overwritten.

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateSearchHypernymRequest.Builder