Class BatchTransferResourcesResponse.TransferResourceResponse.Builder (2.54.0)

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

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > BatchTransferResourcesResponse.TransferResourceResponse.Builder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchTransferResourcesResponse.TransferResourceResponse build()
Returns
Type Description
BatchTransferResourcesResponse.TransferResourceResponse

buildPartial()

public BatchTransferResourcesResponse.TransferResourceResponse buildPartial()
Returns
Type Description
BatchTransferResourcesResponse.TransferResourceResponse

clear()

public BatchTransferResourcesResponse.TransferResourceResponse.Builder clear()
Returns
Type Description
BatchTransferResourcesResponse.TransferResourceResponse.Builder
Overrides

clearError()

public BatchTransferResourcesResponse.TransferResourceResponse.Builder clearError()

The error result in case of failure.

.google.rpc.Status error = 3;

Returns
Type Description
BatchTransferResourcesResponse.TransferResourceResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSource()

public BatchTransferResourcesResponse.TransferResourceResponse.Builder clearSource()

Full name of the resource to transfer as specified in the request.

string source = 1;

Returns
Type Description
BatchTransferResourcesResponse.TransferResourceResponse.Builder

This builder for chaining.

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;

Returns
Type Description
BatchTransferResourcesResponse.TransferResourceResponse.Builder

This builder for chaining.

clone()

public BatchTransferResourcesResponse.TransferResourceResponse.Builder clone()
Returns
Type Description
BatchTransferResourcesResponse.TransferResourceResponse.Builder
Overrides

getDefaultInstanceForType()

public BatchTransferResourcesResponse.TransferResourceResponse getDefaultInstanceForType()
Returns
Type Description
BatchTransferResourcesResponse.TransferResourceResponse

getDescriptorForType()

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

getError()

public Status 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()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
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
Returns
Type Description
BatchTransferResourcesResponse.TransferResourceResponse.Builder

mergeFrom(BatchTransferResourcesResponse.TransferResourceResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchTransferResourcesResponse.TransferResourceResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BatchTransferResourcesResponse.TransferResourceResponse.Builder
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
Returns
Type Description
BatchTransferResourcesResponse.TransferResourceResponse.Builder

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
Returns
Type Description
BatchTransferResourcesResponse.TransferResourceResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public BatchTransferResourcesResponse.TransferResourceResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BatchTransferResourcesResponse.TransferResourceResponse.Builder
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.

Returns
Type Description
BatchTransferResourcesResponse.TransferResourceResponse.Builder

This builder for chaining.

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.

Returns
Type Description
BatchTransferResourcesResponse.TransferResourceResponse.Builder

This builder for chaining.

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.

Returns
Type Description
BatchTransferResourcesResponse.TransferResourceResponse.Builder

This builder for chaining.

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.

Returns
Type Description
BatchTransferResourcesResponse.TransferResourceResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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