Class UpdateGlossaryMetadata (2.49.0)

public final class UpdateGlossaryMetadata extends GeneratedMessageV3 implements UpdateGlossaryMetadataOrBuilder

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

Protobuf type google.cloud.translation.v3.UpdateGlossaryMetadata

Static Fields

GLOSSARY_FIELD_NUMBER

public static final int GLOSSARY_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

SUBMIT_TIME_FIELD_NUMBER

public static final int SUBMIT_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static UpdateGlossaryMetadata getDefaultInstance()
Returns
Type Description
UpdateGlossaryMetadata

getDescriptor()

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

newBuilder()

public static UpdateGlossaryMetadata.Builder newBuilder()
Returns
Type Description
UpdateGlossaryMetadata.Builder

newBuilder(UpdateGlossaryMetadata prototype)

public static UpdateGlossaryMetadata.Builder newBuilder(UpdateGlossaryMetadata prototype)
Parameter
Name Description
prototype UpdateGlossaryMetadata
Returns
Type Description
UpdateGlossaryMetadata.Builder

parseDelimitedFrom(InputStream input)

public static UpdateGlossaryMetadata parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
UpdateGlossaryMetadata
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UpdateGlossaryMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateGlossaryMetadata
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static UpdateGlossaryMetadata parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
UpdateGlossaryMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static UpdateGlossaryMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateGlossaryMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static UpdateGlossaryMetadata parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
UpdateGlossaryMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static UpdateGlossaryMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateGlossaryMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static UpdateGlossaryMetadata parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
UpdateGlossaryMetadata
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static UpdateGlossaryMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateGlossaryMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static UpdateGlossaryMetadata parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
UpdateGlossaryMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UpdateGlossaryMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateGlossaryMetadata
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static UpdateGlossaryMetadata parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
UpdateGlossaryMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static UpdateGlossaryMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateGlossaryMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<UpdateGlossaryMetadata> parser()
Returns
Type Description
Parser<UpdateGlossaryMetadata>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public UpdateGlossaryMetadata getDefaultInstanceForType()
Returns
Type Description
UpdateGlossaryMetadata

getGlossary()

public Glossary getGlossary()

The updated glossary object.

.google.cloud.translation.v3.Glossary glossary = 1;

Returns
Type Description
Glossary

The glossary.

getGlossaryOrBuilder()

public GlossaryOrBuilder getGlossaryOrBuilder()

The updated glossary object.

.google.cloud.translation.v3.Glossary glossary = 1;

Returns
Type Description
GlossaryOrBuilder

getParserForType()

public Parser<UpdateGlossaryMetadata> getParserForType()
Returns
Type Description
Parser<UpdateGlossaryMetadata>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getState()

public UpdateGlossaryMetadata.State getState()

The current state of the glossary update operation. If the glossary input file was not updated this will be completed immediately

.google.cloud.translation.v3.UpdateGlossaryMetadata.State state = 2;

Returns
Type Description
UpdateGlossaryMetadata.State

The state.

getStateValue()

public int getStateValue()

The current state of the glossary update operation. If the glossary input file was not updated this will be completed immediately

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

getSubmitTimeOrBuilder()

public TimestampOrBuilder getSubmitTimeOrBuilder()

The time when the operation was submitted to the server.

.google.protobuf.Timestamp submit_time = 3;

Returns
Type Description
TimestampOrBuilder

hasGlossary()

public boolean hasGlossary()

The updated glossary object.

.google.cloud.translation.v3.Glossary glossary = 1;

Returns
Type Description
boolean

Whether the glossary field is set.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public UpdateGlossaryMetadata.Builder newBuilderForType()
Returns
Type Description
UpdateGlossaryMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected UpdateGlossaryMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
UpdateGlossaryMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public UpdateGlossaryMetadata.Builder toBuilder()
Returns
Type Description
UpdateGlossaryMetadata.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException