Class CreateGlossaryEntryRequest.Builder (2.52.0)

public static final class CreateGlossaryEntryRequest.Builder extends GeneratedMessageV3.Builder<CreateGlossaryEntryRequest.Builder> implements CreateGlossaryEntryRequestOrBuilder

Request message for CreateGlossaryEntry

Protobuf type google.cloud.translation.v3.CreateGlossaryEntryRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateGlossaryEntryRequest build()
Returns
Type Description
CreateGlossaryEntryRequest

buildPartial()

public CreateGlossaryEntryRequest buildPartial()
Returns
Type Description
CreateGlossaryEntryRequest

clear()

public CreateGlossaryEntryRequest.Builder clear()
Returns
Type Description
CreateGlossaryEntryRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateGlossaryEntryRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateGlossaryEntryRequest.Builder
Overrides

clearGlossaryEntry()

public CreateGlossaryEntryRequest.Builder clearGlossaryEntry()

Required. The glossary entry to create

.google.cloud.translation.v3.GlossaryEntry glossary_entry = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateGlossaryEntryRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateGlossaryEntryRequest.Builder clearParent()

Required. The resource name of the glossary to create the entry under.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateGlossaryEntryRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateGlossaryEntryRequest getDefaultInstanceForType()
Returns
Type Description
CreateGlossaryEntryRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGlossaryEntry()

public GlossaryEntry getGlossaryEntry()

Required. The glossary entry to create

.google.cloud.translation.v3.GlossaryEntry glossary_entry = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GlossaryEntry

The glossaryEntry.

getGlossaryEntryBuilder()

public GlossaryEntry.Builder getGlossaryEntryBuilder()

Required. The glossary entry to create

.google.cloud.translation.v3.GlossaryEntry glossary_entry = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GlossaryEntry.Builder

getGlossaryEntryOrBuilder()

public GlossaryEntryOrBuilder getGlossaryEntryOrBuilder()

Required. The glossary entry to create

.google.cloud.translation.v3.GlossaryEntry glossary_entry = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GlossaryEntryOrBuilder

getParent()

public String getParent()

Required. The resource name of the glossary to create the entry under.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The resource name of the glossary to create the entry under.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasGlossaryEntry()

public boolean hasGlossaryEntry()

Required. The glossary entry to create

.google.cloud.translation.v3.GlossaryEntry glossary_entry = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the glossaryEntry field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateGlossaryEntryRequest other)

public CreateGlossaryEntryRequest.Builder mergeFrom(CreateGlossaryEntryRequest other)
Parameter
Name Description
other CreateGlossaryEntryRequest
Returns
Type Description
CreateGlossaryEntryRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateGlossaryEntryRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateGlossaryEntryRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateGlossaryEntryRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateGlossaryEntryRequest.Builder
Overrides

mergeGlossaryEntry(GlossaryEntry value)

public CreateGlossaryEntryRequest.Builder mergeGlossaryEntry(GlossaryEntry value)

Required. The glossary entry to create

.google.cloud.translation.v3.GlossaryEntry glossary_entry = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value GlossaryEntry
Returns
Type Description
CreateGlossaryEntryRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setGlossaryEntry(GlossaryEntry value)

public CreateGlossaryEntryRequest.Builder setGlossaryEntry(GlossaryEntry value)

Required. The glossary entry to create

.google.cloud.translation.v3.GlossaryEntry glossary_entry = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value GlossaryEntry
Returns
Type Description
CreateGlossaryEntryRequest.Builder

setGlossaryEntry(GlossaryEntry.Builder builderForValue)

public CreateGlossaryEntryRequest.Builder setGlossaryEntry(GlossaryEntry.Builder builderForValue)

Required. The glossary entry to create

.google.cloud.translation.v3.GlossaryEntry glossary_entry = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue GlossaryEntry.Builder
Returns
Type Description
CreateGlossaryEntryRequest.Builder

setParent(String value)

public CreateGlossaryEntryRequest.Builder setParent(String value)

Required. The resource name of the glossary to create the entry under.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateGlossaryEntryRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateGlossaryEntryRequest.Builder setParentBytes(ByteString value)

Required. The resource name of the glossary to create the entry under.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateGlossaryEntryRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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