Class TransferTypes.ErrorLogEntry.Builder (1.18.0)

public static final class TransferTypes.ErrorLogEntry.Builder extends GeneratedMessageV3.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
TypeDescription
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
NameDescription
valuesIterable<String>

The errorDetails to add.

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

The errorDetails to add.

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

The bytes of the errorDetails to add.

Returns
TypeDescription
TransferTypes.ErrorLogEntry.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TransferTypes.ErrorLogEntry build()
Returns
TypeDescription
TransferTypes.ErrorLogEntry

buildPartial()

public TransferTypes.ErrorLogEntry buildPartial()
Returns
TypeDescription
TransferTypes.ErrorLogEntry

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

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
TypeDescription
TransferTypes.ErrorLogEntry.Builder

This builder for chaining.

clone()

public TransferTypes.ErrorLogEntry.Builder clone()
Returns
TypeDescription
TransferTypes.ErrorLogEntry.Builder
Overrides

getDefaultInstanceForType()

public TransferTypes.ErrorLogEntry getDefaultInstanceForType()
Returns
TypeDescription
TransferTypes.ErrorLogEntry

getDescriptorForType()

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

The index of the element to return.

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

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
int

The count of errorDetails.

getErrorDetailsList()

public ProtocolStringList getErrorDetailsList()

A list of messages that carry the error details.

repeated string error_details = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for url.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(TransferTypes.ErrorLogEntry other)

public TransferTypes.ErrorLogEntry.Builder mergeFrom(TransferTypes.ErrorLogEntry other)
Parameter
NameDescription
otherTransferTypes.ErrorLogEntry
Returns
TypeDescription
TransferTypes.ErrorLogEntry.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

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
NameDescription
indexint

The index to set the value at.

valueString

The errorDetails to set.

Returns
TypeDescription
TransferTypes.ErrorLogEntry.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

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
NameDescription
valueString

The url to set.

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

The bytes for url to set.

Returns
TypeDescription
TransferTypes.ErrorLogEntry.Builder

This builder for chaining.