Class CreateAdaptiveMtDatasetRequest.Builder (2.34.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateAdaptiveMtDatasetRequest build()
Returns
TypeDescription
CreateAdaptiveMtDatasetRequest

buildPartial()

public CreateAdaptiveMtDatasetRequest buildPartial()
Returns
TypeDescription
CreateAdaptiveMtDatasetRequest

clear()

public CreateAdaptiveMtDatasetRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
CreateAdaptiveMtDatasetRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

public CreateAdaptiveMtDatasetRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
AdaptiveMtDatasetOrBuilder

getDefaultInstanceForType()

public CreateAdaptiveMtDatasetRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateAdaptiveMtDatasetRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the adaptiveMtDataset field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueAdaptiveMtDataset
Returns
TypeDescription
CreateAdaptiveMtDatasetRequest.Builder

mergeFrom(CreateAdaptiveMtDatasetRequest other)

public CreateAdaptiveMtDatasetRequest.Builder mergeFrom(CreateAdaptiveMtDatasetRequest other)
Parameter
NameDescription
otherCreateAdaptiveMtDatasetRequest
Returns
TypeDescription
CreateAdaptiveMtDatasetRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateAdaptiveMtDatasetRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueAdaptiveMtDataset
Returns
TypeDescription
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
NameDescription
builderForValueAdaptiveMtDataset.Builder
Returns
TypeDescription
CreateAdaptiveMtDatasetRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CreateAdaptiveMtDatasetRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

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

The bytes for parent to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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