Class TransferTypes.ErrorLogEntry.Builder (1.83.0)

public static final class TransferTypes.ErrorLogEntry.Builder extends GeneratedMessage.Builder<TransferTypes.ErrorLogEntry.Builder> implements TransferTypes.ErrorLogEntryOrBuilder

An entry describing an error that has occurred.

Protobuf type google.storagetransfer.v1.ErrorLogEntry

Static Methods

getDescriptor()

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

Methods

addAllErrorDetails(Iterable<String> values)

public TransferTypes.ErrorLogEntry.Builder addAllErrorDetails(Iterable<String> values)

A list of messages that carry the error details.

repeated string error_details = 3;

Parameter
Name Description
values Iterable<String>

The errorDetails to add.

Returns
Type Description
TransferTypes.ErrorLogEntry.Builder

This builder for chaining.

addErrorDetails(String value)

public TransferTypes.ErrorLogEntry.Builder addErrorDetails(String value)

A list of messages that carry the error details.

repeated string error_details = 3;

Parameter
Name Description
value String

The errorDetails to add.

Returns
Type Description
TransferTypes.ErrorLogEntry.Builder

This builder for chaining.

addErrorDetailsBytes(ByteString value)

public TransferTypes.ErrorLogEntry.Builder addErrorDetailsBytes(ByteString value)

A list of messages that carry the error details.

repeated string error_details = 3;

Parameter
Name Description
value ByteString

The bytes of the errorDetails to add.

Returns
Type Description
TransferTypes.ErrorLogEntry.Builder

This builder for chaining.

build()

public TransferTypes.ErrorLogEntry build()
Returns
Type Description
TransferTypes.ErrorLogEntry

buildPartial()

public TransferTypes.ErrorLogEntry buildPartial()
Returns
Type Description
TransferTypes.ErrorLogEntry

clear()

public TransferTypes.ErrorLogEntry.Builder clear()
Returns
Type Description
TransferTypes.ErrorLogEntry.Builder
Overrides

clearErrorDetails()

public TransferTypes.ErrorLogEntry.Builder clearErrorDetails()

A list of messages that carry the error details.

repeated string error_details = 3;

Returns
Type Description
TransferTypes.ErrorLogEntry.Builder

This builder for chaining.

clearUrl()

public TransferTypes.ErrorLogEntry.Builder clearUrl()

Required. A URL that refers to the target (a data source, a data sink, or an object) with which the error is associated.

string url = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TransferTypes.ErrorLogEntry.Builder

This builder for chaining.

getDefaultInstanceForType()

public TransferTypes.ErrorLogEntry getDefaultInstanceForType()
Returns
Type Description
TransferTypes.ErrorLogEntry

getDescriptorForType()

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

getErrorDetails(int index)

public String getErrorDetails(int index)

A list of messages that carry the error details.

repeated string error_details = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The errorDetails at the given index.

getErrorDetailsBytes(int index)

public ByteString getErrorDetailsBytes(int index)

A list of messages that carry the error details.

repeated string error_details = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the errorDetails at the given index.

getErrorDetailsCount()

public int getErrorDetailsCount()

A list of messages that carry the error details.

repeated string error_details = 3;

Returns
Type Description
int

The count of errorDetails.

getErrorDetailsList()

public ProtocolStringList getErrorDetailsList()

A list of messages that carry the error details.

repeated string error_details = 3;

Returns
Type Description
ProtocolStringList

A list containing the errorDetails.

getUrl()

public String getUrl()

Required. A URL that refers to the target (a data source, a data sink, or an object) with which the error is associated.

string url = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The url.

getUrlBytes()

public ByteString getUrlBytes()

Required. A URL that refers to the target (a data source, a data sink, or an object) with which the error is associated.

string url = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for url.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(TransferTypes.ErrorLogEntry other)

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

setErrorDetails(int index, String value)

public TransferTypes.ErrorLogEntry.Builder setErrorDetails(int index, String value)

A list of messages that carry the error details.

repeated string error_details = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The errorDetails to set.

Returns
Type Description
TransferTypes.ErrorLogEntry.Builder

This builder for chaining.

setUrl(String value)

public TransferTypes.ErrorLogEntry.Builder setUrl(String value)

Required. A URL that refers to the target (a data source, a data sink, or an object) with which the error is associated.

string url = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The url to set.

Returns
Type Description
TransferTypes.ErrorLogEntry.Builder

This builder for chaining.

setUrlBytes(ByteString value)

public TransferTypes.ErrorLogEntry.Builder setUrlBytes(ByteString value)

Required. A URL that refers to the target (a data source, a data sink, or an object) with which the error is associated.

string url = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for url to set.

Returns
Type Description
TransferTypes.ErrorLogEntry.Builder

This builder for chaining.