Class CreateGlossaryMetadata.Builder (2.46.0)

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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateGlossaryMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
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

clone()

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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.

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

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

setState(CreateGlossaryMetadata.State value)

public CreateGlossaryMetadata.Builder setState(CreateGlossaryMetadata.State value)

The current state of the glossary creation operation.

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

setUnknownFields(UnknownFieldSet unknownFields)

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