public static final class UpdateGlossaryMetadata.Builder extends GeneratedMessage.Builder<UpdateGlossaryMetadata.Builder> implements UpdateGlossaryMetadataOrBuilderStored in the google.longrunning.Operation.metadata field returned by UpdateGlossary.
Protobuf type google.cloud.translation.v3.UpdateGlossaryMetadata
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > UpdateGlossaryMetadata.BuilderImplements
UpdateGlossaryMetadataOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
clearGlossary()
public UpdateGlossaryMetadata.Builder clearGlossary()The updated glossary object.
.google.cloud.translation.v3.Glossary glossary = 1;
| Returns | |
|---|---|
| Type | Description |
UpdateGlossaryMetadata.Builder |
|
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 |
|
getDefaultInstanceForType()
public UpdateGlossaryMetadata getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
UpdateGlossaryMetadata |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public UpdateGlossaryMetadata.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
UpdateGlossaryMetadata.Builder |
|
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 |
|
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 |
|
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.StateThe 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 |
intThe 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 |
|