Class CreateGlossaryMetadata.Builder (2.83.0)

public static final class CreateGlossaryMetadata.Builder extends GeneratedMessage.Builder<CreateGlossaryMetadata.Builder> implements CreateGlossaryMetadataOrBuilder

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

Protobuf type google.cloud.translation.v3beta1.CreateGlossaryMetadata

Static Methods

getDescriptor()

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

Methods

build()

public CreateGlossaryMetadata build()
Returns
Type Description
CreateGlossaryMetadata

buildPartial()

public CreateGlossaryMetadata buildPartial()
Returns
Type Description
CreateGlossaryMetadata

clear()

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

clearName()

public CreateGlossaryMetadata.Builder clearName()

The name of the glossary that is being created.

string name = 1;

Returns
Type Description
CreateGlossaryMetadata.Builder

This builder for chaining.

clearState()

public CreateGlossaryMetadata.Builder clearState()

The current state of the glossary creation operation.

.google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2;

Returns
Type Description
CreateGlossaryMetadata.Builder

This builder for chaining.

clearSubmitTime()

public CreateGlossaryMetadata.Builder clearSubmitTime()

The time when the operation was submitted to the server.

.google.protobuf.Timestamp submit_time = 3;

Returns
Type Description
CreateGlossaryMetadata.Builder

getDefaultInstanceForType()

public CreateGlossaryMetadata getDefaultInstanceForType()
Returns
Type Description
CreateGlossaryMetadata

getDescriptorForType()

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

getName()

public String getName()

The name of the glossary that is being created.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the glossary that is being created.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getState()

public CreateGlossaryMetadata.State getState()

The current state of the glossary creation operation.

.google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2;

Returns
Type Description
CreateGlossaryMetadata.State

The state.

getStateValue()

public int getStateValue()

The current state of the glossary creation operation.

.google.cloud.translation.v3beta1.CreateGlossaryMetadata.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

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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateGlossaryMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSubmitTime(Timestamp value)

public CreateGlossaryMetadata.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
CreateGlossaryMetadata.Builder

setName(String value)

public CreateGlossaryMetadata.Builder setName(String value)

The name of the glossary that is being created.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
CreateGlossaryMetadata.Builder

This builder for chaining.

setNameBytes(ByteString value)

public CreateGlossaryMetadata.Builder setNameBytes(ByteString value)

The name of the glossary that is being created.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
CreateGlossaryMetadata.Builder

This builder for chaining.

setState(CreateGlossaryMetadata.State value)

public CreateGlossaryMetadata.Builder setState(CreateGlossaryMetadata.State value)

The current state of the glossary creation operation.

.google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2;

Parameter
Name Description
value CreateGlossaryMetadata.State

The state to set.

Returns
Type Description
CreateGlossaryMetadata.Builder

This builder for chaining.

setStateValue(int value)

public CreateGlossaryMetadata.Builder setStateValue(int value)

The current state of the glossary creation operation.

.google.cloud.translation.v3beta1.CreateGlossaryMetadata.State state = 2;

Parameter
Name Description
value int

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

Returns
Type Description
CreateGlossaryMetadata.Builder

This builder for chaining.

setSubmitTime(Timestamp value)

public CreateGlossaryMetadata.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
CreateGlossaryMetadata.Builder

setSubmitTime(Timestamp.Builder builderForValue)

public CreateGlossaryMetadata.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
CreateGlossaryMetadata.Builder