Class CreateAdaptiveMtDatasetRequest.Builder (2.53.0)

public static final class CreateAdaptiveMtDatasetRequest.Builder extends GeneratedMessageV3.Builder<CreateAdaptiveMtDatasetRequest.Builder> implements CreateAdaptiveMtDatasetRequestOrBuilder

Request message for creating an AdaptiveMtDataset.

Protobuf type google.cloud.translation.v3.CreateAdaptiveMtDatasetRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateAdaptiveMtDatasetRequest build()
Returns
Type Description
CreateAdaptiveMtDatasetRequest

buildPartial()

public CreateAdaptiveMtDatasetRequest buildPartial()
Returns
Type Description
CreateAdaptiveMtDatasetRequest

clear()

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

clearAdaptiveMtDataset()

public CreateAdaptiveMtDatasetRequest.Builder clearAdaptiveMtDataset()

Required. The AdaptiveMtDataset to be created.

.google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_dataset = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateAdaptiveMtDatasetRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateAdaptiveMtDatasetRequest.Builder clearParent()

Required. Name of the parent project. In form of projects/{project-number-or-id}/locations/{location-id}

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

Returns
Type Description
CreateAdaptiveMtDatasetRequest.Builder

This builder for chaining.

clone()

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

getAdaptiveMtDataset()

public AdaptiveMtDataset getAdaptiveMtDataset()

Required. The AdaptiveMtDataset to be created.

.google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_dataset = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AdaptiveMtDataset

The adaptiveMtDataset.

getAdaptiveMtDatasetBuilder()

public AdaptiveMtDataset.Builder getAdaptiveMtDatasetBuilder()

Required. The AdaptiveMtDataset to be created.

.google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_dataset = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AdaptiveMtDataset.Builder

getAdaptiveMtDatasetOrBuilder()

public AdaptiveMtDatasetOrBuilder getAdaptiveMtDatasetOrBuilder()

Required. The AdaptiveMtDataset to be created.

.google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_dataset = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AdaptiveMtDatasetOrBuilder

getDefaultInstanceForType()

public CreateAdaptiveMtDatasetRequest getDefaultInstanceForType()
Returns
Type Description
CreateAdaptiveMtDatasetRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. Name of the parent project. In form of projects/{project-number-or-id}/locations/{location-id}

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Name of the parent project. In form of projects/{project-number-or-id}/locations/{location-id}

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

Returns
Type Description
ByteString

The bytes for parent.

hasAdaptiveMtDataset()

public boolean hasAdaptiveMtDataset()

Required. The AdaptiveMtDataset to be created.

.google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_dataset = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the adaptiveMtDataset field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAdaptiveMtDataset(AdaptiveMtDataset value)

public CreateAdaptiveMtDatasetRequest.Builder mergeAdaptiveMtDataset(AdaptiveMtDataset value)

Required. The AdaptiveMtDataset to be created.

.google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_dataset = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AdaptiveMtDataset
Returns
Type Description
CreateAdaptiveMtDatasetRequest.Builder

mergeFrom(CreateAdaptiveMtDatasetRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAdaptiveMtDataset(AdaptiveMtDataset value)

public CreateAdaptiveMtDatasetRequest.Builder setAdaptiveMtDataset(AdaptiveMtDataset value)

Required. The AdaptiveMtDataset to be created.

.google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_dataset = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AdaptiveMtDataset
Returns
Type Description
CreateAdaptiveMtDatasetRequest.Builder

setAdaptiveMtDataset(AdaptiveMtDataset.Builder builderForValue)

public CreateAdaptiveMtDatasetRequest.Builder setAdaptiveMtDataset(AdaptiveMtDataset.Builder builderForValue)

Required. The AdaptiveMtDataset to be created.

.google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_dataset = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue AdaptiveMtDataset.Builder
Returns
Type Description
CreateAdaptiveMtDatasetRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateAdaptiveMtDatasetRequest.Builder setParent(String value)

Required. Name of the parent project. In form of projects/{project-number-or-id}/locations/{location-id}

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateAdaptiveMtDatasetRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateAdaptiveMtDatasetRequest.Builder setParentBytes(ByteString value)

Required. Name of the parent project. In form of projects/{project-number-or-id}/locations/{location-id}

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

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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