Class DeleteGlossaryMetadata.Builder (2.55.0)

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

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

Protobuf type google.cloud.translation.v3.DeleteGlossaryMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

public DeleteGlossaryMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public DeleteGlossaryMetadata.Builder clearState()

The current state of the glossary deletion operation.

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

clone()

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

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.v3.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.v3.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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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.

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

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

setState(DeleteGlossaryMetadata.State value)

public DeleteGlossaryMetadata.Builder setState(DeleteGlossaryMetadata.State value)

The current state of the glossary deletion operation.

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

setUnknownFields(UnknownFieldSet unknownFields)

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