Class DeleteGlossaryMetadata.Builder (2.83.0)

public static final class DeleteGlossaryMetadata.Builder extends GeneratedMessage.Builder<DeleteGlossaryMetadata.Builder> implements DeleteGlossaryMetadataOrBuilder

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

Protobuf type google.cloud.translation.v3beta1.DeleteGlossaryMetadata

Static Methods

getDescriptor()

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

Methods

build()

public DeleteGlossaryMetadata build()
Returns
Type Description
DeleteGlossaryMetadata

buildPartial()

public DeleteGlossaryMetadata buildPartial()
Returns
Type Description
DeleteGlossaryMetadata

clear()

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

clearName()

public DeleteGlossaryMetadata.Builder clearName()

The name of the glossary that is being deleted.

string name = 1;

Returns
Type Description
DeleteGlossaryMetadata.Builder

This builder for chaining.

clearState()

public DeleteGlossaryMetadata.Builder clearState()

The current state of the glossary deletion operation.

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

Returns
Type Description
DeleteGlossaryMetadata.Builder

This builder for chaining.

clearSubmitTime()

public DeleteGlossaryMetadata.Builder clearSubmitTime()

The time when the operation was submitted to the server.

.google.protobuf.Timestamp submit_time = 3;

Returns
Type Description
DeleteGlossaryMetadata.Builder

getDefaultInstanceForType()

public DeleteGlossaryMetadata getDefaultInstanceForType()
Returns
Type Description
DeleteGlossaryMetadata

getDescriptorForType()

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

getName()

public String getName()

The name of the glossary that is being deleted.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the glossary that is being deleted.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getState()

public DeleteGlossaryMetadata.State getState()

The current state of the glossary deletion operation.

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

Returns
Type Description
DeleteGlossaryMetadata.State

The state.

getStateValue()

public int getStateValue()

The current state of the glossary deletion operation.

.google.cloud.translation.v3beta1.DeleteGlossaryMetadata.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(DeleteGlossaryMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSubmitTime(Timestamp value)

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

setName(String value)

public DeleteGlossaryMetadata.Builder setName(String value)

The name of the glossary that is being deleted.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
DeleteGlossaryMetadata.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DeleteGlossaryMetadata.Builder setNameBytes(ByteString value)

The name of the glossary that is being deleted.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
DeleteGlossaryMetadata.Builder

This builder for chaining.

setState(DeleteGlossaryMetadata.State value)

public DeleteGlossaryMetadata.Builder setState(DeleteGlossaryMetadata.State value)

The current state of the glossary deletion operation.

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

Parameter
Name Description
value DeleteGlossaryMetadata.State

The state to set.

Returns
Type Description
DeleteGlossaryMetadata.Builder

This builder for chaining.

setStateValue(int value)

public DeleteGlossaryMetadata.Builder setStateValue(int value)

The current state of the glossary deletion operation.

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

Parameter
Name Description
value int

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

Returns
Type Description
DeleteGlossaryMetadata.Builder

This builder for chaining.

setSubmitTime(Timestamp value)

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

setSubmitTime(Timestamp.Builder builderForValue)

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