Class CreateGlossaryMetadata.Builder (2.27.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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 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(CreateGlossaryMetadata other)

public CreateGlossaryMetadata.Builder mergeFrom(CreateGlossaryMetadata other)
Parameter
NameDescription
otherCreateGlossaryMetadata
Returns
TypeDescription
CreateGlossaryMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The name to set.

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

The bytes for name to set.

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

Parameter
NameDescription
valueCreateGlossaryMetadata.State

The state to set.

Returns
TypeDescription
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.v3beta1.CreateGlossaryMetadata.State state = 2;

Parameter
NameDescription
valueint

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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