Send feedback
Class BatchTransferResourcesResponse.TransferResourceResponse.Builder (2.53.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.53.0 keyboard_arrow_down
public static final class BatchTransferResourcesResponse . TransferResourceResponse . Builder extends GeneratedMessageV3 . Builder<BatchTransferResourcesResponse . TransferResourceResponse . Builder > implements BatchTransferResourcesResponse . TransferResourceResponseOrBuilder
Transfer response for a single resource.
Protobuf type
google.cloud.translation.v3.BatchTransferResourcesResponse.TransferResourceResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BatchTransferResourcesResponse . TransferResourceResponse . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public BatchTransferResourcesResponse . TransferResourceResponse build ()
buildPartial()
public BatchTransferResourcesResponse . TransferResourceResponse buildPartial ()
clear()
public BatchTransferResourcesResponse . TransferResourceResponse . Builder clear ()
Overrides
clearError()
public BatchTransferResourcesResponse . TransferResourceResponse . Builder clearError ()
The error result in case of failure.
.google.rpc.Status error = 3;
clearField(Descriptors.FieldDescriptor field)
public BatchTransferResourcesResponse . TransferResourceResponse . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public BatchTransferResourcesResponse . TransferResourceResponse . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearSource()
public BatchTransferResourcesResponse . TransferResourceResponse . Builder clearSource ()
Full name of the resource to transfer as specified in the request.
string source = 1;
clearTarget()
public BatchTransferResourcesResponse . TransferResourceResponse . Builder clearTarget ()
Full name of the new resource successfully transferred from the source
hosted by Translation API. Target will be empty if the transfer failed.
string target = 2;
clone()
public BatchTransferResourcesResponse . TransferResourceResponse . Builder clone ()
Overrides
getDefaultInstanceForType()
public BatchTransferResourcesResponse . TransferResourceResponse getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getError()
The error result in case of failure.
.google.rpc.Status error = 3;
Returns
Type
Description
com.google.rpc.Status
The error.
getErrorBuilder()
public Status . Builder getErrorBuilder ()
The error result in case of failure.
.google.rpc.Status error = 3;
Returns
Type
Description
com.google.rpc.Status.Builder
getErrorOrBuilder()
public StatusOrBuilder getErrorOrBuilder ()
The error result in case of failure.
.google.rpc.Status error = 3;
Returns
Type
Description
com.google.rpc.StatusOrBuilder
getSource()
public String getSource ()
Full name of the resource to transfer as specified in the request.
string source = 1;
Returns
Type
Description
String
The source.
getSourceBytes()
public ByteString getSourceBytes ()
Full name of the resource to transfer as specified in the request.
string source = 1;
Returns
Type
Description
ByteString
The bytes for source.
getTarget()
public String getTarget ()
Full name of the new resource successfully transferred from the source
hosted by Translation API. Target will be empty if the transfer failed.
string target = 2;
Returns
Type
Description
String
The target.
getTargetBytes()
public ByteString getTargetBytes ()
Full name of the new resource successfully transferred from the source
hosted by Translation API. Target will be empty if the transfer failed.
string target = 2;
Returns
Type
Description
ByteString
The bytes for target.
hasError()
public boolean hasError ()
The error result in case of failure.
.google.rpc.Status error = 3;
Returns
Type
Description
boolean
Whether the error field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeError(Status value)
public BatchTransferResourcesResponse . TransferResourceResponse . Builder mergeError ( Status value )
The error result in case of failure.
.google.rpc.Status error = 3;
Parameter
Name
Description
value
com.google.rpc.Status
mergeFrom(BatchTransferResourcesResponse.TransferResourceResponse other)
public BatchTransferResourcesResponse . TransferResourceResponse . Builder mergeFrom ( BatchTransferResourcesResponse . TransferResourceResponse other )
public BatchTransferResourcesResponse . TransferResourceResponse . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public BatchTransferResourcesResponse . TransferResourceResponse . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BatchTransferResourcesResponse . TransferResourceResponse . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setError(Status value)
public BatchTransferResourcesResponse . TransferResourceResponse . Builder setError ( Status value )
The error result in case of failure.
.google.rpc.Status error = 3;
Parameter
Name
Description
value
com.google.rpc.Status
setError(Status.Builder builderForValue)
public BatchTransferResourcesResponse . TransferResourceResponse . Builder setError ( Status . Builder builderForValue )
The error result in case of failure.
.google.rpc.Status error = 3;
Parameter
Name
Description
builderForValue
com.google.rpc.Status.Builder
setField(Descriptors.FieldDescriptor field, Object value)
public BatchTransferResourcesResponse . TransferResourceResponse . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BatchTransferResourcesResponse . TransferResourceResponse . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setSource(String value)
public BatchTransferResourcesResponse . TransferResourceResponse . Builder setSource ( String value )
Full name of the resource to transfer as specified in the request.
string source = 1;
Parameter
Name
Description
value
String
The source to set.
setSourceBytes(ByteString value)
public BatchTransferResourcesResponse . TransferResourceResponse . Builder setSourceBytes ( ByteString value )
Full name of the resource to transfer as specified in the request.
string source = 1;
Parameter
Name
Description
value
ByteString
The bytes for source to set.
setTarget(String value)
public BatchTransferResourcesResponse . TransferResourceResponse . Builder setTarget ( String value )
Full name of the new resource successfully transferred from the source
hosted by Translation API. Target will be empty if the transfer failed.
string target = 2;
Parameter
Name
Description
value
String
The target to set.
setTargetBytes(ByteString value)
public BatchTransferResourcesResponse . TransferResourceResponse . Builder setTargetBytes ( ByteString value )
Full name of the new resource successfully transferred from the source
hosted by Translation API. Target will be empty if the transfer failed.
string target = 2;
Parameter
Name
Description
value
ByteString
The bytes for target to set.
setUnknownFields(UnknownFieldSet unknownFields)
public final BatchTransferResourcesResponse . TransferResourceResponse . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]