Class UpdateGlossaryRequest.Builder (2.53.0)

public static final class UpdateGlossaryRequest.Builder extends GeneratedMessageV3.Builder<UpdateGlossaryRequest.Builder> implements UpdateGlossaryRequestOrBuilder

Request message for the update glossary flow

Protobuf type google.cloud.translation.v3.UpdateGlossaryRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateGlossaryRequest build()
Returns
Type Description
UpdateGlossaryRequest

buildPartial()

public UpdateGlossaryRequest buildPartial()
Returns
Type Description
UpdateGlossaryRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearGlossary()

public UpdateGlossaryRequest.Builder clearGlossary()

Required. The glossary entry to update.

.google.cloud.translation.v3.Glossary glossary = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateGlossaryRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateMask()

public UpdateGlossaryRequest.Builder clearUpdateMask()

The list of fields to be updated. Currently only display_name and 'input_config'

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
UpdateGlossaryRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateGlossaryRequest getDefaultInstanceForType()
Returns
Type Description
UpdateGlossaryRequest

getDescriptorForType()

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

getGlossary()

public Glossary getGlossary()

Required. The glossary entry to update.

.google.cloud.translation.v3.Glossary glossary = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Glossary

The glossary.

getGlossaryBuilder()

public Glossary.Builder getGlossaryBuilder()

Required. The glossary entry to update.

.google.cloud.translation.v3.Glossary glossary = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Glossary.Builder

getGlossaryOrBuilder()

public GlossaryOrBuilder getGlossaryOrBuilder()

Required. The glossary entry to update.

.google.cloud.translation.v3.Glossary glossary = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GlossaryOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

The list of fields to be updated. Currently only display_name and 'input_config'

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

The list of fields to be updated. Currently only display_name and 'input_config'

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

The list of fields to be updated. Currently only display_name and 'input_config'

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMaskOrBuilder

hasGlossary()

public boolean hasGlossary()

Required. The glossary entry to update.

.google.cloud.translation.v3.Glossary glossary = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the glossary field is set.

hasUpdateMask()

public boolean hasUpdateMask()

The list of fields to be updated. Currently only display_name and 'input_config'

.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(UpdateGlossaryRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGlossary(Glossary value)

public UpdateGlossaryRequest.Builder mergeGlossary(Glossary value)

Required. The glossary entry to update.

.google.cloud.translation.v3.Glossary glossary = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Glossary
Returns
Type Description
UpdateGlossaryRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateGlossaryRequest.Builder mergeUpdateMask(FieldMask value)

The list of fields to be updated. Currently only display_name and 'input_config'

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateGlossaryRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setGlossary(Glossary value)

public UpdateGlossaryRequest.Builder setGlossary(Glossary value)

Required. The glossary entry to update.

.google.cloud.translation.v3.Glossary glossary = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Glossary
Returns
Type Description
UpdateGlossaryRequest.Builder

setGlossary(Glossary.Builder builderForValue)

public UpdateGlossaryRequest.Builder setGlossary(Glossary.Builder builderForValue)

Required. The glossary entry to update.

.google.cloud.translation.v3.Glossary glossary = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Glossary.Builder
Returns
Type Description
UpdateGlossaryRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateGlossaryRequest.Builder setUpdateMask(FieldMask value)

The list of fields to be updated. Currently only display_name and 'input_config'

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateGlossaryRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateGlossaryRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

The list of fields to be updated. Currently only display_name and 'input_config'

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateGlossaryRequest.Builder