Class UpdateGlossaryMetadata.Builder (2.52.0)

public static final class UpdateGlossaryMetadata.Builder extends GeneratedMessageV3.Builder<UpdateGlossaryMetadata.Builder> implements UpdateGlossaryMetadataOrBuilder

Stored in the google.longrunning.Operation.metadata field returned by UpdateGlossary.

Protobuf type google.cloud.translation.v3.UpdateGlossaryMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateGlossaryMetadata build()
Returns
Type Description
UpdateGlossaryMetadata

buildPartial()

public UpdateGlossaryMetadata buildPartial()
Returns
Type Description
UpdateGlossaryMetadata

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearGlossary()

public UpdateGlossaryMetadata.Builder clearGlossary()

The updated glossary object.

.google.cloud.translation.v3.Glossary glossary = 1;

Returns
Type Description
UpdateGlossaryMetadata.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public UpdateGlossaryMetadata.Builder clearState()

The current state of the glossary update operation. If the glossary input file was not updated this will be completed immediately

.google.cloud.translation.v3.UpdateGlossaryMetadata.State state = 2;

Returns
Type Description
UpdateGlossaryMetadata.Builder

This builder for chaining.

clearSubmitTime()

public UpdateGlossaryMetadata.Builder clearSubmitTime()

The time when the operation was submitted to the server.

.google.protobuf.Timestamp submit_time = 3;

Returns
Type Description
UpdateGlossaryMetadata.Builder

clone()

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

getDefaultInstanceForType()

public UpdateGlossaryMetadata getDefaultInstanceForType()
Returns
Type Description
UpdateGlossaryMetadata

getDescriptorForType()

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

getGlossary()

public Glossary getGlossary()

The updated glossary object.

.google.cloud.translation.v3.Glossary glossary = 1;

Returns
Type Description
Glossary

The glossary.

getGlossaryBuilder()

public Glossary.Builder getGlossaryBuilder()

The updated glossary object.

.google.cloud.translation.v3.Glossary glossary = 1;

Returns
Type Description
Glossary.Builder

getGlossaryOrBuilder()

public GlossaryOrBuilder getGlossaryOrBuilder()

The updated glossary object.

.google.cloud.translation.v3.Glossary glossary = 1;

Returns
Type Description
GlossaryOrBuilder

getState()

public UpdateGlossaryMetadata.State getState()

The current state of the glossary update operation. If the glossary input file was not updated this will be completed immediately

.google.cloud.translation.v3.UpdateGlossaryMetadata.State state = 2;

Returns
Type Description
UpdateGlossaryMetadata.State

The state.

getStateValue()

public int getStateValue()

The current state of the glossary update operation. If the glossary input file was not updated this will be completed immediately

.google.cloud.translation.v3.UpdateGlossaryMetadata.State state = 2;

Returns
Type Description
int

The enum numeric value on the wire for state.

getSubmitTime()

public Timestamp getSubmitTime()

The time when the operation was submitted to the server.

.google.protobuf.Timestamp submit_time = 3;

Returns
Type Description
Timestamp

The submitTime.

getSubmitTimeBuilder()

public Timestamp.Builder getSubmitTimeBuilder()

The time when the operation was submitted to the server.

.google.protobuf.Timestamp submit_time = 3;

Returns
Type Description
Builder

getSubmitTimeOrBuilder()

public TimestampOrBuilder getSubmitTimeOrBuilder()

The time when the operation was submitted to the server.

.google.protobuf.Timestamp submit_time = 3;

Returns
Type Description
TimestampOrBuilder

hasGlossary()

public boolean hasGlossary()

The updated glossary object.

.google.cloud.translation.v3.Glossary glossary = 1;

Returns
Type Description
boolean

Whether the glossary field is set.

hasSubmitTime()

public boolean hasSubmitTime()

The time when the operation was submitted to the server.

.google.protobuf.Timestamp submit_time = 3;

Returns
Type Description
boolean

Whether the submitTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UpdateGlossaryMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGlossary(Glossary value)

public UpdateGlossaryMetadata.Builder mergeGlossary(Glossary value)

The updated glossary object.

.google.cloud.translation.v3.Glossary glossary = 1;

Parameter
Name Description
value Glossary
Returns
Type Description
UpdateGlossaryMetadata.Builder

mergeSubmitTime(Timestamp value)

public UpdateGlossaryMetadata.Builder mergeSubmitTime(Timestamp value)

The time when the operation was submitted to the server.

.google.protobuf.Timestamp submit_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
UpdateGlossaryMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setGlossary(Glossary value)

public UpdateGlossaryMetadata.Builder setGlossary(Glossary value)

The updated glossary object.

.google.cloud.translation.v3.Glossary glossary = 1;

Parameter
Name Description
value Glossary
Returns
Type Description
UpdateGlossaryMetadata.Builder

setGlossary(Glossary.Builder builderForValue)

public UpdateGlossaryMetadata.Builder setGlossary(Glossary.Builder builderForValue)

The updated glossary object.

.google.cloud.translation.v3.Glossary glossary = 1;

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

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

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

setState(UpdateGlossaryMetadata.State value)

public UpdateGlossaryMetadata.Builder setState(UpdateGlossaryMetadata.State value)

The current state of the glossary update operation. If the glossary input file was not updated this will be completed immediately

.google.cloud.translation.v3.UpdateGlossaryMetadata.State state = 2;

Parameter
Name Description
value UpdateGlossaryMetadata.State

The state to set.

Returns
Type Description
UpdateGlossaryMetadata.Builder

This builder for chaining.

setStateValue(int value)

public UpdateGlossaryMetadata.Builder setStateValue(int value)

The current state of the glossary update operation. If the glossary input file was not updated this will be completed immediately

.google.cloud.translation.v3.UpdateGlossaryMetadata.State state = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
UpdateGlossaryMetadata.Builder

This builder for chaining.

setSubmitTime(Timestamp value)

public UpdateGlossaryMetadata.Builder setSubmitTime(Timestamp value)

The time when the operation was submitted to the server.

.google.protobuf.Timestamp submit_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
UpdateGlossaryMetadata.Builder

setSubmitTime(Timestamp.Builder builderForValue)

public UpdateGlossaryMetadata.Builder setSubmitTime(Timestamp.Builder builderForValue)

The time when the operation was submitted to the server.

.google.protobuf.Timestamp submit_time = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateGlossaryMetadata.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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