Class DeleteGlossaryMetadata.Builder (2.15.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.v3beta1.DeleteGlossaryMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DeleteGlossaryMetadata build()
Returns
TypeDescription
DeleteGlossaryMetadata

buildPartial()

public DeleteGlossaryMetadata buildPartial()
Returns
TypeDescription
DeleteGlossaryMetadata

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public DeleteGlossaryMetadata.Builder clearName()

The name of the glossary that is being deleted.

string name = 1;

Returns
TypeDescription
DeleteGlossaryMetadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public DeleteGlossaryMetadata.Builder clearState()

The current state of the glossary deletion operation.

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

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

clone()

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

getDefaultInstanceForType()

public DeleteGlossaryMetadata getDefaultInstanceForType()
Returns
TypeDescription
DeleteGlossaryMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

The name of the glossary that is being deleted.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the glossary that is being deleted.

string name = 1;

Returns
TypeDescription
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
TypeDescription
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
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 operation was submitted to the server.

.google.protobuf.Timestamp submit_time = 3;

Returns
TypeDescription
Builder

getSubmitTimeOrBuilder()

public TimestampOrBuilder getSubmitTimeOrBuilder()

The time when the operation was submitted to the server.

.google.protobuf.Timestamp submit_time = 3;

Returns
TypeDescription
TimestampOrBuilder

hasSubmitTime()

public boolean hasSubmitTime()

The time when the operation was submitted to the server.

.google.protobuf.Timestamp submit_time = 3;

Returns
TypeDescription
boolean

Whether the submitTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DeleteGlossaryMetadata other)

public DeleteGlossaryMetadata.Builder mergeFrom(DeleteGlossaryMetadata other)
Parameter
NameDescription
otherDeleteGlossaryMetadata
Returns
TypeDescription
DeleteGlossaryMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DeleteGlossaryMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DeleteGlossaryMetadata.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DeleteGlossaryMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
DeleteGlossaryMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DeleteGlossaryMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DeleteGlossaryMetadata.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public DeleteGlossaryMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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.v3beta1.DeleteGlossaryMetadata.State state = 2;

Parameter
NameDescription
valueDeleteGlossaryMetadata.State

The state to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
DeleteGlossaryMetadata.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final DeleteGlossaryMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DeleteGlossaryMetadata.Builder
Overrides