Class ErrorSummary.Builder (0.2.0)

public static final class ErrorSummary.Builder extends GeneratedMessageV3.Builder<ErrorSummary.Builder> implements ErrorSummaryOrBuilder

A summary of errors by error code, plus a count and sample error log entries.

Protobuf type google.cloud.lustre.v1.ErrorSummary

Static Methods

getDescriptor()

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

Methods

addAllErrorLogEntries(Iterable<? extends ErrorLogEntry> values)

public ErrorSummary.Builder addAllErrorLogEntries(Iterable<? extends ErrorLogEntry> values)

Error samples.

At most 5 error log entries are recorded for a given error code for a single transfer operation.

repeated .google.cloud.lustre.v1.ErrorLogEntry error_log_entries = 3;

Parameter
Name Description
values Iterable<? extends com.google.cloud.lustre.v1.ErrorLogEntry>
Returns
Type Description
ErrorSummary.Builder

addErrorLogEntries(ErrorLogEntry value)

public ErrorSummary.Builder addErrorLogEntries(ErrorLogEntry value)

Error samples.

At most 5 error log entries are recorded for a given error code for a single transfer operation.

repeated .google.cloud.lustre.v1.ErrorLogEntry error_log_entries = 3;

Parameter
Name Description
value ErrorLogEntry
Returns
Type Description
ErrorSummary.Builder

addErrorLogEntries(ErrorLogEntry.Builder builderForValue)

public ErrorSummary.Builder addErrorLogEntries(ErrorLogEntry.Builder builderForValue)

Error samples.

At most 5 error log entries are recorded for a given error code for a single transfer operation.

repeated .google.cloud.lustre.v1.ErrorLogEntry error_log_entries = 3;

Parameter
Name Description
builderForValue ErrorLogEntry.Builder
Returns
Type Description
ErrorSummary.Builder

addErrorLogEntries(int index, ErrorLogEntry value)

public ErrorSummary.Builder addErrorLogEntries(int index, ErrorLogEntry value)

Error samples.

At most 5 error log entries are recorded for a given error code for a single transfer operation.

repeated .google.cloud.lustre.v1.ErrorLogEntry error_log_entries = 3;

Parameters
Name Description
index int
value ErrorLogEntry
Returns
Type Description
ErrorSummary.Builder

addErrorLogEntries(int index, ErrorLogEntry.Builder builderForValue)

public ErrorSummary.Builder addErrorLogEntries(int index, ErrorLogEntry.Builder builderForValue)

Error samples.

At most 5 error log entries are recorded for a given error code for a single transfer operation.

repeated .google.cloud.lustre.v1.ErrorLogEntry error_log_entries = 3;

Parameters
Name Description
index int
builderForValue ErrorLogEntry.Builder
Returns
Type Description
ErrorSummary.Builder

addErrorLogEntriesBuilder()

public ErrorLogEntry.Builder addErrorLogEntriesBuilder()

Error samples.

At most 5 error log entries are recorded for a given error code for a single transfer operation.

repeated .google.cloud.lustre.v1.ErrorLogEntry error_log_entries = 3;

Returns
Type Description
ErrorLogEntry.Builder

addErrorLogEntriesBuilder(int index)

public ErrorLogEntry.Builder addErrorLogEntriesBuilder(int index)

Error samples.

At most 5 error log entries are recorded for a given error code for a single transfer operation.

repeated .google.cloud.lustre.v1.ErrorLogEntry error_log_entries = 3;

Parameter
Name Description
index int
Returns
Type Description
ErrorLogEntry.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ErrorSummary build()
Returns
Type Description
ErrorSummary

buildPartial()

public ErrorSummary buildPartial()
Returns
Type Description
ErrorSummary

clear()

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

clearErrorCode()

public ErrorSummary.Builder clearErrorCode()

Required.

.google.rpc.Code error_code = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ErrorSummary.Builder

This builder for chaining.

clearErrorCount()

public ErrorSummary.Builder clearErrorCount()

Required. Count of this type of error.

int64 error_count = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ErrorSummary.Builder

This builder for chaining.

clearErrorLogEntries()

public ErrorSummary.Builder clearErrorLogEntries()

Error samples.

At most 5 error log entries are recorded for a given error code for a single transfer operation.

repeated .google.cloud.lustre.v1.ErrorLogEntry error_log_entries = 3;

Returns
Type Description
ErrorSummary.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ErrorSummary getDefaultInstanceForType()
Returns
Type Description
ErrorSummary

getDescriptorForType()

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

getErrorCode()

public Code getErrorCode()

Required.

.google.rpc.Code error_code = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.rpc.Code

The errorCode.

getErrorCodeValue()

public int getErrorCodeValue()

Required.

.google.rpc.Code error_code = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for errorCode.

getErrorCount()

public long getErrorCount()

Required. Count of this type of error.

int64 error_count = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
long

The errorCount.

getErrorLogEntries(int index)

public ErrorLogEntry getErrorLogEntries(int index)

Error samples.

At most 5 error log entries are recorded for a given error code for a single transfer operation.

repeated .google.cloud.lustre.v1.ErrorLogEntry error_log_entries = 3;

Parameter
Name Description
index int
Returns
Type Description
ErrorLogEntry

getErrorLogEntriesBuilder(int index)

public ErrorLogEntry.Builder getErrorLogEntriesBuilder(int index)

Error samples.

At most 5 error log entries are recorded for a given error code for a single transfer operation.

repeated .google.cloud.lustre.v1.ErrorLogEntry error_log_entries = 3;

Parameter
Name Description
index int
Returns
Type Description
ErrorLogEntry.Builder

getErrorLogEntriesBuilderList()

public List<ErrorLogEntry.Builder> getErrorLogEntriesBuilderList()

Error samples.

At most 5 error log entries are recorded for a given error code for a single transfer operation.

repeated .google.cloud.lustre.v1.ErrorLogEntry error_log_entries = 3;

Returns
Type Description
List<Builder>

getErrorLogEntriesCount()

public int getErrorLogEntriesCount()

Error samples.

At most 5 error log entries are recorded for a given error code for a single transfer operation.

repeated .google.cloud.lustre.v1.ErrorLogEntry error_log_entries = 3;

Returns
Type Description
int

getErrorLogEntriesList()

public List<ErrorLogEntry> getErrorLogEntriesList()

Error samples.

At most 5 error log entries are recorded for a given error code for a single transfer operation.

repeated .google.cloud.lustre.v1.ErrorLogEntry error_log_entries = 3;

Returns
Type Description
List<ErrorLogEntry>

getErrorLogEntriesOrBuilder(int index)

public ErrorLogEntryOrBuilder getErrorLogEntriesOrBuilder(int index)

Error samples.

At most 5 error log entries are recorded for a given error code for a single transfer operation.

repeated .google.cloud.lustre.v1.ErrorLogEntry error_log_entries = 3;

Parameter
Name Description
index int
Returns
Type Description
ErrorLogEntryOrBuilder

getErrorLogEntriesOrBuilderList()

public List<? extends ErrorLogEntryOrBuilder> getErrorLogEntriesOrBuilderList()

Error samples.

At most 5 error log entries are recorded for a given error code for a single transfer operation.

repeated .google.cloud.lustre.v1.ErrorLogEntry error_log_entries = 3;

Returns
Type Description
List<? extends com.google.cloud.lustre.v1.ErrorLogEntryOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ErrorSummary other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeErrorLogEntries(int index)

public ErrorSummary.Builder removeErrorLogEntries(int index)

Error samples.

At most 5 error log entries are recorded for a given error code for a single transfer operation.

repeated .google.cloud.lustre.v1.ErrorLogEntry error_log_entries = 3;

Parameter
Name Description
index int
Returns
Type Description
ErrorSummary.Builder

setErrorCode(Code value)

public ErrorSummary.Builder setErrorCode(Code value)

Required.

.google.rpc.Code error_code = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value com.google.rpc.Code

The errorCode to set.

Returns
Type Description
ErrorSummary.Builder

This builder for chaining.

setErrorCodeValue(int value)

public ErrorSummary.Builder setErrorCodeValue(int value)

Required.

.google.rpc.Code error_code = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for errorCode to set.

Returns
Type Description
ErrorSummary.Builder

This builder for chaining.

setErrorCount(long value)

public ErrorSummary.Builder setErrorCount(long value)

Required. Count of this type of error.

int64 error_count = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value long

The errorCount to set.

Returns
Type Description
ErrorSummary.Builder

This builder for chaining.

setErrorLogEntries(int index, ErrorLogEntry value)

public ErrorSummary.Builder setErrorLogEntries(int index, ErrorLogEntry value)

Error samples.

At most 5 error log entries are recorded for a given error code for a single transfer operation.

repeated .google.cloud.lustre.v1.ErrorLogEntry error_log_entries = 3;

Parameters
Name Description
index int
value ErrorLogEntry
Returns
Type Description
ErrorSummary.Builder

setErrorLogEntries(int index, ErrorLogEntry.Builder builderForValue)

public ErrorSummary.Builder setErrorLogEntries(int index, ErrorLogEntry.Builder builderForValue)

Error samples.

At most 5 error log entries are recorded for a given error code for a single transfer operation.

repeated .google.cloud.lustre.v1.ErrorLogEntry error_log_entries = 3;

Parameters
Name Description
index int
builderForValue ErrorLogEntry.Builder
Returns
Type Description
ErrorSummary.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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