Class ErrorLogEntry.Builder (0.2.0)

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

An entry describing an error that has occurred.

Protobuf type google.cloud.lustre.v1.ErrorLogEntry

Static Methods

getDescriptor()

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

Methods

addAllErrorDetails(Iterable<String> values)

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

A list of messages that carry the error details.

repeated string error_details = 2;

Parameter
Name Description
values Iterable<String>

The errorDetails to add.

Returns
Type Description
ErrorLogEntry.Builder

This builder for chaining.

addErrorDetails(String value)

public ErrorLogEntry.Builder addErrorDetails(String value)

A list of messages that carry the error details.

repeated string error_details = 2;

Parameter
Name Description
value String

The errorDetails to add.

Returns
Type Description
ErrorLogEntry.Builder

This builder for chaining.

addErrorDetailsBytes(ByteString value)

public ErrorLogEntry.Builder addErrorDetailsBytes(ByteString value)

A list of messages that carry the error details.

repeated string error_details = 2;

Parameter
Name Description
value ByteString

The bytes of the errorDetails to add.

Returns
Type Description
ErrorLogEntry.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ErrorLogEntry build()
Returns
Type Description
ErrorLogEntry

buildPartial()

public ErrorLogEntry buildPartial()
Returns
Type Description
ErrorLogEntry

clear()

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

clearErrorDetails()

public ErrorLogEntry.Builder clearErrorDetails()

A list of messages that carry the error details.

repeated string error_details = 2;

Returns
Type Description
ErrorLogEntry.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUri()

public ErrorLogEntry.Builder clearUri()

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

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

Returns
Type Description
ErrorLogEntry.Builder

This builder for chaining.

clone()

public ErrorLogEntry.Builder clone()
Returns
Type Description
ErrorLogEntry.Builder
Overrides

getDefaultInstanceForType()

public ErrorLogEntry getDefaultInstanceForType()
Returns
Type Description
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 = 2;

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 = 2;

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 = 2;

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 = 2;

Returns
Type Description
ProtocolStringList

A list containing the errorDetails.

getUri()

public String getUri()

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

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

Returns
Type Description
String

The uri.

getUriBytes()

public ByteString getUriBytes()

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

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

Returns
Type Description
ByteString

The bytes for uri.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ErrorLogEntry other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ErrorLogEntry.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ErrorLogEntry.Builder
Overrides

setErrorDetails(int index, String value)

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

A list of messages that carry the error details.

repeated string error_details = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The errorDetails to set.

Returns
Type Description
ErrorLogEntry.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public ErrorLogEntry.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ErrorLogEntry.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setUri(String value)

public ErrorLogEntry.Builder setUri(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 uri = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
ErrorLogEntry.Builder

This builder for chaining.

setUriBytes(ByteString value)

public ErrorLogEntry.Builder setUriBytes(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 uri = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
ErrorLogEntry.Builder

This builder for chaining.