Class CreateGlossaryMetadata.Builder (2.9.0)

Stay organized with collections Save and categorize content based on your preferences.
public static final class CreateGlossaryMetadata.Builder extends GeneratedMessageV3.Builder<CreateGlossaryMetadata.Builder> implements CreateGlossaryMetadataOrBuilder

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

Protobuf type google.cloud.translation.v3.CreateGlossaryMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateGlossaryMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateGlossaryMetadata.Builder
Overrides

build()

public CreateGlossaryMetadata build()
Returns
TypeDescription
CreateGlossaryMetadata

buildPartial()

public CreateGlossaryMetadata buildPartial()
Returns
TypeDescription
CreateGlossaryMetadata

clear()

public CreateGlossaryMetadata.Builder clear()
Returns
TypeDescription
CreateGlossaryMetadata.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateGlossaryMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateGlossaryMetadata.Builder
Overrides

clearName()

public CreateGlossaryMetadata.Builder clearName()

The name of the glossary that is being created.

string name = 1;

Returns
TypeDescription
CreateGlossaryMetadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateGlossaryMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CreateGlossaryMetadata.Builder
Overrides

clearState()

public CreateGlossaryMetadata.Builder clearState()

The current state of the glossary creation operation.

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

Returns
TypeDescription
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
TypeDescription
CreateGlossaryMetadata.Builder

clone()

public CreateGlossaryMetadata.Builder clone()
Returns
TypeDescription
CreateGlossaryMetadata.Builder
Overrides

getDefaultInstanceForType()

public CreateGlossaryMetadata getDefaultInstanceForType()
Returns
TypeDescription
CreateGlossaryMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

The name of the glossary that is being created.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the glossary that is being created.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getState()

public CreateGlossaryMetadata.State getState()

The current state of the glossary creation operation.

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

Returns
TypeDescription
CreateGlossaryMetadata.State

The state.

getStateValue()

public int getStateValue()

The current state of the glossary creation operation.

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

Returns
TypeDescription
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
TypeDescription
Timestamp

The submitTime.

getSubmitTimeBuilder()

public Timestamp.Builder getSubmitTimeBuilder()

The time when the operatio