Class CreateGlossaryRequest.Builder (2.9.0)

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

Request message for CreateGlossary.

Protobuf type google.cloud.translation.v3beta1.CreateGlossaryRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateGlossaryRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateGlossaryRequest.Builder
Overrides

build()

public CreateGlossaryRequest build()
Returns
TypeDescription
CreateGlossaryRequest

buildPartial()

public CreateGlossaryRequest buildPartial()
Returns
TypeDescription
CreateGlossaryRequest

clear()

public CreateGlossaryRequest.Builder clear()
Returns
TypeDescription
CreateGlossaryRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateGlossaryRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateGlossaryRequest.Builder
Overrides

clearGlossary()

public CreateGlossaryRequest.Builder clearGlossary()

Required. The glossary to create.

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

Returns
TypeDescription
CreateGlossaryRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateGlossaryRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CreateGlossaryRequest.Builder

This builder for chaining.

clone()

public CreateGlossaryRequest.Builder clone()
Returns
TypeDescription
CreateGlossaryRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateGlossaryRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateGlossaryRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGlossary()

public Glossary getGlossary()

Required. The glossary to create.

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

Returns
TypeDescription
Glossary

The glossary.

getGlossaryBuilder()

public Glossary.Builder getGlossaryBuilder()

Required. The glossary to create.

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

Returns
TypeDescription
Glossary.Builder

getGlossaryOrBuilder()

public GlossaryOrBuilder getGlossaryOrBuilder()

Required. The glossary to create.

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

Returns
TypeDescription
GlossaryOrBuilder

getParent()

public String getParent()

Required. The project name.

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The project name.

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

Returns
TypeDescription
ByteString

The bytes for parent.

hasGlossary()

public boolean hasGlossary()

Required. The glossary to create.

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

Returns
TypeDescription
boolean

Whether the glossary field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateGlossaryRequest other)

public CreateGlossaryRequest.Builder mergeFrom(CreateGlossaryRequest other)
Parameter
NameDescription
otherCreateGlossaryRequest
Returns
TypeDescription
CreateGlossaryRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CreateGlossaryRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CreateGlossaryRequest.Builder
Overrides

mergeGlossary(Glossary value)

public CreateGlossaryRequest.Builder mergeGlossary(Glossary value)

Required. The glossary to create.

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

Parameter
NameDescription
valueGlossary
Returns
TypeDescription
CreateGlossaryRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public CreateGlossaryRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateGlossaryRequest.Builder
Overrides

setGlossary(Glossary value)

public CreateGlossaryRequest.Builder setGlossary(Glossary value)

Required. The glossary to create.

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

Parameter
NameDescription
valueGlossary
Returns
TypeDescription
CreateGlossaryRequest.Builder

setGlossary(Glossary.Builder builderForValue)

public CreateGlossaryRequest.Builder setGlossary(Glossary.Builder builderForValue)

Required. The glossary to create.

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

Parameter
NameDescription
builderForValueGlossary.Builder
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

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

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateGlossaryRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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