Class ListAdaptiveMtFilesResponse.Builder (2.33.0)

public static final class ListAdaptiveMtFilesResponse.Builder extends GeneratedMessageV3.Builder<ListAdaptiveMtFilesResponse.Builder> implements ListAdaptiveMtFilesResponseOrBuilder

The response for listing all AdaptiveMt files under a given dataset.

Protobuf type google.cloud.translation.v3.ListAdaptiveMtFilesResponse

Static Methods

getDescriptor()

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

Methods

addAdaptiveMtFiles(AdaptiveMtFile value)

public ListAdaptiveMtFilesResponse.Builder addAdaptiveMtFiles(AdaptiveMtFile value)

Output only. The Adaptive MT files.

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

Parameter
NameDescription
valueAdaptiveMtFile
Returns
TypeDescription
ListAdaptiveMtFilesResponse.Builder

addAdaptiveMtFiles(AdaptiveMtFile.Builder builderForValue)

public ListAdaptiveMtFilesResponse.Builder addAdaptiveMtFiles(AdaptiveMtFile.Builder builderForValue)

Output only. The Adaptive MT files.

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

Parameter
NameDescription
builderForValueAdaptiveMtFile.Builder
Returns
TypeDescription
ListAdaptiveMtFilesResponse.Builder

addAdaptiveMtFiles(int index, AdaptiveMtFile value)

public ListAdaptiveMtFilesResponse.Builder addAdaptiveMtFiles(int index, AdaptiveMtFile value)

Output only. The Adaptive MT files.

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

Parameters
NameDescription
indexint
valueAdaptiveMtFile
Returns
TypeDescription
ListAdaptiveMtFilesResponse.Builder

addAdaptiveMtFiles(int index, AdaptiveMtFile.Builder builderForValue)

public ListAdaptiveMtFilesResponse.Builder addAdaptiveMtFiles(int index, AdaptiveMtFile.Builder builderForValue)

Output only. The Adaptive MT files.

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

Parameters
NameDescription
indexint
builderForValueAdaptiveMtFile.Builder
Returns
TypeDescription
ListAdaptiveMtFilesResponse.Builder

addAdaptiveMtFilesBuilder()

public AdaptiveMtFile.Builder addAdaptiveMtFilesBuilder()

Output only. The Adaptive MT files.

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

Returns
TypeDescription
AdaptiveMtFile.Builder

addAdaptiveMtFilesBuilder(int index)

public AdaptiveMtFile.Builder addAdaptiveMtFilesBuilder(int index)

Output only. The Adaptive MT files.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AdaptiveMtFile.Builder

addAllAdaptiveMtFiles(Iterable<? extends AdaptiveMtFile> values)

public ListAdaptiveMtFilesResponse.Builder addAllAdaptiveMtFiles(Iterable<? extends AdaptiveMtFile> values)

Output only. The Adaptive MT files.

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.translate.v3.AdaptiveMtFile>
Returns
TypeDescription
ListAdaptiveMtFilesResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListAdaptiveMtFilesResponse build()
Returns
TypeDescription
ListAdaptiveMtFilesResponse

buildPartial()

public ListAdaptiveMtFilesResponse buildPartial()
Returns
TypeDescription
ListAdaptiveMtFilesResponse

clear()

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

clearAdaptiveMtFiles()

public ListAdaptiveMtFilesResponse.Builder clearAdaptiveMtFiles()

Output only. The Adaptive MT files.

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

Returns
TypeDescription
ListAdaptiveMtFilesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListAdaptiveMtFilesResponse.Builder clearNextPageToken()

Optional. A token to retrieve a page of results. Pass this value in the ListAdaptiveMtFilesRequest.page_token field in the subsequent call to ListAdaptiveMtFiles method to retrieve the next page of results.

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

Returns
TypeDescription
ListAdaptiveMtFilesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAdaptiveMtFiles(int index)

public AdaptiveMtFile getAdaptiveMtFiles(int index)

Output only. The Adaptive MT files.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AdaptiveMtFile

getAdaptiveMtFilesBuilder(int index)

public AdaptiveMtFile.Builder getAdaptiveMtFilesBuilder(int index)

Output only. The Adaptive MT files.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AdaptiveMtFile.Builder

getAdaptiveMtFilesBuilderList()

public List<AdaptiveMtFile.Builder> getAdaptiveMtFilesBuilderList()

Output only. The Adaptive MT files.

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

Returns
TypeDescription
List<Builder>

getAdaptiveMtFilesCount()

public int getAdaptiveMtFilesCount()

Output only. The Adaptive MT files.

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

Returns
TypeDescription
int

getAdaptiveMtFilesList()

public List<AdaptiveMtFile> getAdaptiveMtFilesList()

Output only. The Adaptive MT files.

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

Returns
TypeDescription
List<AdaptiveMtFile>

getAdaptiveMtFilesOrBuilder(int index)

public AdaptiveMtFileOrBuilder getAdaptiveMtFilesOrBuilder(int index)

Output only. The Adaptive MT files.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AdaptiveMtFileOrBuilder

getAdaptiveMtFilesOrBuilderList()

public List<? extends AdaptiveMtFileOrBuilder> getAdaptiveMtFilesOrBuilderList()

Output only. The Adaptive MT files.

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

Returns
TypeDescription
List<? extends com.google.cloud.translate.v3.AdaptiveMtFileOrBuilder>

getDefaultInstanceForType()

public ListAdaptiveMtFilesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListAdaptiveMtFilesResponse

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 ListAdaptiveMtFilesRequest.page_token field in the subsequent call to ListAdaptiveMtFiles method to retrieve the next page of results.

string next_page_token = 3 [(.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 ListAdaptiveMtFilesRequest.page_token field in the subsequent call to ListAdaptiveMtFiles method to retrieve the next page of results.

string next_page_token = 3 [(.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(ListAdaptiveMtFilesResponse other)

public ListAdaptiveMtFilesResponse.Builder mergeFrom(ListAdaptiveMtFilesResponse other)
Parameter
NameDescription
otherListAdaptiveMtFilesResponse
Returns
TypeDescription
ListAdaptiveMtFilesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeAdaptiveMtFiles(int index)

public ListAdaptiveMtFilesResponse.Builder removeAdaptiveMtFiles(int index)

Output only. The Adaptive MT files.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ListAdaptiveMtFilesResponse.Builder

setAdaptiveMtFiles(int index, AdaptiveMtFile value)

public ListAdaptiveMtFilesResponse.Builder setAdaptiveMtFiles(int index, AdaptiveMtFile value)

Output only. The Adaptive MT files.

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

Parameters
NameDescription
indexint
valueAdaptiveMtFile
Returns
TypeDescription
ListAdaptiveMtFilesResponse.Builder

setAdaptiveMtFiles(int index, AdaptiveMtFile.Builder builderForValue)

public ListAdaptiveMtFilesResponse.Builder setAdaptiveMtFiles(int index, AdaptiveMtFile.Builder builderForValue)

Output only. The Adaptive MT files.

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

Parameters
NameDescription
indexint
builderForValueAdaptiveMtFile.Builder
Returns
TypeDescription
ListAdaptiveMtFilesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListAdaptiveMtFilesResponse.Builder setNextPageToken(String value)

Optional. A token to retrieve a page of results. Pass this value in the ListAdaptiveMtFilesRequest.page_token field in the subsequent call to ListAdaptiveMtFiles method to retrieve the next page of results.

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

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListAdaptiveMtFilesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListAdaptiveMtFilesResponse.Builder setNextPageTokenBytes(ByteString value)

Optional. A token to retrieve a page of results. Pass this value in the ListAdaptiveMtFilesRequest.page_token field in the subsequent call to ListAdaptiveMtFiles method to retrieve the next page of results.

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

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListAdaptiveMtFilesResponse.Builder

This builder for chaining.

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

public ListAdaptiveMtFilesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListAdaptiveMtFilesResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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