Class CreateGlossaryRequest.Builder (2.54.0)

public static final class CreateGlossaryRequest.Builder extends GeneratedMessageV3.Builder<CreateGlossaryRequest.Builder> implements CreateGlossaryRequestOrBuilder

Request message for CreateGlossary.

Protobuf type google.cloud.translation.v3.CreateGlossaryRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateGlossaryRequest build()
Returns
Type Description
CreateGlossaryRequest

buildPartial()

public CreateGlossaryRequest buildPartial()
Returns
Type Description
CreateGlossaryRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearGlossary()

public CreateGlossaryRequest.Builder clearGlossary()

Required. The glossary to create.

.google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateGlossaryRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateGlossaryRequest.Builder clearParent()

Required. The project name.

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

Returns
Type Description
CreateGlossaryRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateGlossaryRequest getDefaultInstanceForType()
Returns
Type Description
CreateGlossaryRequest

getDescriptorForType()

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

getGlossary()

public Glossary getGlossary()

Required. The glossary to create.

.google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Glossary

The glossary.

getGlossaryBuilder()

public Glossary.Builder getGlossaryBuilder()

Required. The glossary to create.

.google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Glossary.Builder

getGlossaryOrBuilder()

public GlossaryOrBuilder getGlossaryOrBuilder()

Required. The glossary to create.

.google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GlossaryOrBuilder

getParent()

public String getParent()

Required. The project name.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The project name.

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

Returns
Type Description
ByteString

The bytes for parent.

hasGlossary()

public boolean hasGlossary()

Required. The glossary to create.

.google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the glossary field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateGlossaryRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGlossary(Glossary value)

public CreateGlossaryRequest.Builder mergeGlossary(Glossary value)

Required. The glossary to create.

.google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Glossary
Returns
Type Description
CreateGlossaryRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setGlossary(Glossary value)

public CreateGlossaryRequest.Builder setGlossary(Glossary value)

Required. The glossary to create.

.google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Glossary
Returns
Type Description
CreateGlossaryRequest.Builder

setGlossary(Glossary.Builder builderForValue)

public CreateGlossaryRequest.Builder setGlossary(Glossary.Builder builderForValue)

Required. The glossary to create.

.google.cloud.translation.v3.Glossary glossary = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Glossary.Builder
Returns
Type Description
CreateGlossaryRequest.Builder

setParent(String value)

public CreateGlossaryRequest.Builder setParent(String value)

Required. The project name.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateGlossaryRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateGlossaryRequest.Builder setParentBytes(ByteString value)

Required. The project name.

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
CreateGlossaryRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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