Class ListAdaptiveMtDatasetsResponse.Builder (2.40.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
TypeDescription
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
NameDescription
valueAdaptiveMtDataset
Returns
TypeDescription
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
NameDescription
builderForValueAdaptiveMtDataset.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueAdaptiveMtDataset
Returns
TypeDescription
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
NameDescription
indexint
builderForValueAdaptiveMtDataset.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.translate.v3.AdaptiveMtDataset>
Returns
TypeDescription
ListAdaptiveMtDatasetsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListAdaptiveMtDatasetsResponse build()
Returns
TypeDescription
ListAdaptiveMtDatasetsResponse

buildPartial()

public ListAdaptiveMtDatasetsResponse buildPartial()
Returns
TypeDescription
ListAdaptiveMtDatasetsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListAdaptiveMtDatasetsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ListAdaptiveMtDatasetsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListAdaptiveMtDatasetsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ListAdaptiveMtDatasetsResponse.Builder
Overrides

clone()

public ListAdaptiveMtDatasetsResponse.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.translate.v3.AdaptiveMtDatasetOrBuilder>

getDefaultInstanceForType()

public ListAdaptiveMtDatasetsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListAdaptiveMtDatasetsResponse

getDescriptorForType()

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

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListAdaptiveMtDatasetsResponse other)

public ListAdaptiveMtDatasetsResponse.Builder mergeFrom(ListAdaptiveMtDatasetsResponse other)
Parameter
NameDescription
otherListAdaptiveMtDatasetsResponse
Returns
TypeDescription
ListAdaptiveMtDatasetsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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