Class ListAdaptiveMtDatasetsResponse.Builder (2.46.0)

public static final class ListAdaptiveMtDatasetsResponse.Builder extends GeneratedMessageV3.Builder<ListAdaptiveMtDatasetsResponse.Builder> implements ListAdaptiveMtDatasetsResponseOrBuilder

A list of AdaptiveMtDatasets.

Protobuf type google.cloud.translation.v3.ListAdaptiveMtDatasetsResponse

Static Methods

getDescriptor()

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

Methods

addAdaptiveMtDatasets(AdaptiveMtDataset value)

public ListAdaptiveMtDatasetsResponse.Builder addAdaptiveMtDatasets(AdaptiveMtDataset value)

Output only. A list of Adaptive MT datasets.

repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value AdaptiveMtDataset
Returns
Type Description
ListAdaptiveMtDatasetsResponse.Builder

addAdaptiveMtDatasets(AdaptiveMtDataset.Builder builderForValue)

public ListAdaptiveMtDatasetsResponse.Builder addAdaptiveMtDatasets(AdaptiveMtDataset.Builder builderForValue)

Output only. A list of Adaptive MT datasets.

repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

addAdaptiveMtDatasets(int index, AdaptiveMtDataset value)

public ListAdaptiveMtDatasetsResponse.Builder addAdaptiveMtDatasets(int index, AdaptiveMtDataset value)

Output only. A list of Adaptive MT datasets.

repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value AdaptiveMtDataset
Returns
Type Description
ListAdaptiveMtDatasetsResponse.Builder

addAdaptiveMtDatasets(int index, AdaptiveMtDataset.Builder builderForValue)

public ListAdaptiveMtDatasetsResponse.Builder addAdaptiveMtDatasets(int index, AdaptiveMtDataset.Builder builderForValue)

Output only. A list of Adaptive MT datasets.

repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue AdaptiveMtDataset.Builder
Returns
Type Description
ListAdaptiveMtDatasetsResponse.Builder

addAdaptiveMtDatasetsBuilder()

public AdaptiveMtDataset.Builder addAdaptiveMtDatasetsBuilder()

Output only. A list of Adaptive MT datasets.

repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AdaptiveMtDataset.Builder

addAdaptiveMtDatasetsBuilder(int index)

public AdaptiveMtDataset.Builder addAdaptiveMtDatasetsBuilder(int index)

Output only. A list of Adaptive MT datasets.

repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
AdaptiveMtDataset.Builder

addAllAdaptiveMtDatasets(Iterable<? extends AdaptiveMtDataset> values)

public ListAdaptiveMtDatasetsResponse.Builder addAllAdaptiveMtDatasets(Iterable<? extends AdaptiveMtDataset> values)

Output only. A list of Adaptive MT datasets.

repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.translate.v3.AdaptiveMtDataset>
Returns
Type Description
ListAdaptiveMtDatasetsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListAdaptiveMtDatasetsResponse build()
Returns
Type Description
ListAdaptiveMtDatasetsResponse

buildPartial()

public ListAdaptiveMtDatasetsResponse buildPartial()
Returns
Type Description
ListAdaptiveMtDatasetsResponse

clear()

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

clearAdaptiveMtDatasets()

public ListAdaptiveMtDatasetsResponse.Builder clearAdaptiveMtDatasets()

Output only. A list of Adaptive MT datasets.

repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ListAdaptiveMtDatasetsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListAdaptiveMtDatasetsResponse.Builder clearNextPageToken()

Optional. A token to retrieve a page of results. Pass this value in the [ListAdaptiveMtDatasetsRequest.page_token] field in the subsequent call to ListAdaptiveMtDatasets method to retrieve the next page of results.

string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ListAdaptiveMtDatasetsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAdaptiveMtDatasets(int index)

public AdaptiveMtDataset getAdaptiveMtDatasets(int index)

Output only. A list of Adaptive MT datasets.

repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
AdaptiveMtDataset

getAdaptiveMtDatasetsBuilder(int index)

public AdaptiveMtDataset.Builder getAdaptiveMtDatasetsBuilder(int index)

Output only. A list of Adaptive MT datasets.

repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
AdaptiveMtDataset.Builder

getAdaptiveMtDatasetsBuilderList()

public List<AdaptiveMtDataset.Builder> getAdaptiveMtDatasetsBuilderList()

Output only. A list of Adaptive MT datasets.

repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getAdaptiveMtDatasetsCount()

public int getAdaptiveMtDatasetsCount()

Output only. A list of Adaptive MT datasets.

repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getAdaptiveMtDatasetsList()

public List<AdaptiveMtDataset> getAdaptiveMtDatasetsList()

Output only. A list of Adaptive MT datasets.

repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<AdaptiveMtDataset>

getAdaptiveMtDatasetsOrBuilder(int index)

public AdaptiveMtDatasetOrBuilder getAdaptiveMtDatasetsOrBuilder(int index)

Output only. A list of Adaptive MT datasets.

repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
AdaptiveMtDatasetOrBuilder

getAdaptiveMtDatasetsOrBuilderList()

public List<? extends AdaptiveMtDatasetOrBuilder> getAdaptiveMtDatasetsOrBuilderList()

Output only. A list of Adaptive MT datasets.

repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.translate.v3.AdaptiveMtDatasetOrBuilder>

getDefaultInstanceForType()

public ListAdaptiveMtDatasetsResponse getDefaultInstanceForType()
Returns
Type Description
ListAdaptiveMtDatasetsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

Optional. A token to retrieve a page of results. Pass this value in the [ListAdaptiveMtDatasetsRequest.page_token] field in the subsequent call to ListAdaptiveMtDatasets method to retrieve the next page of results.

string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Optional. A token to retrieve a page of results. Pass this value in the [ListAdaptiveMtDatasetsRequest.page_token] field in the subsequent call to ListAdaptiveMtDatasets method to retrieve the next page of results.

string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListAdaptiveMtDatasetsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeAdaptiveMtDatasets(int index)

public ListAdaptiveMtDatasetsResponse.Builder removeAdaptiveMtDatasets(int index)

Output only. A list of Adaptive MT datasets.

repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ListAdaptiveMtDatasetsResponse.Builder

setAdaptiveMtDatasets(int index, AdaptiveMtDataset value)

public ListAdaptiveMtDatasetsResponse.Builder setAdaptiveMtDatasets(int index, AdaptiveMtDataset value)

Output only. A list of Adaptive MT datasets.

repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value AdaptiveMtDataset
Returns
Type Description
ListAdaptiveMtDatasetsResponse.Builder

setAdaptiveMtDatasets(int index, AdaptiveMtDataset.Builder builderForValue)

public ListAdaptiveMtDatasetsResponse.Builder setAdaptiveMtDatasets(int index, AdaptiveMtDataset.Builder builderForValue)

Output only. A list of Adaptive MT datasets.

repeated .google.cloud.translation.v3.AdaptiveMtDataset adaptive_mt_datasets = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue AdaptiveMtDataset.Builder
Returns
Type Description
ListAdaptiveMtDatasetsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListAdaptiveMtDatasetsResponse.Builder setNextPageToken(String value)

Optional. A token to retrieve a page of results. Pass this value in the [ListAdaptiveMtDatasetsRequest.page_token] field in the subsequent call to ListAdaptiveMtDatasets method to retrieve the next page of results.

string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListAdaptiveMtDatasetsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListAdaptiveMtDatasetsResponse.Builder setNextPageTokenBytes(ByteString value)

Optional. A token to retrieve a page of results. Pass this value in the [ListAdaptiveMtDatasetsRequest.page_token] field in the subsequent call to ListAdaptiveMtDatasets method to retrieve the next page of results.

string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListAdaptiveMtDatasetsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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