Class WriteLogEntriesPartialErrors.Builder (3.16.2)

public static final class WriteLogEntriesPartialErrors.Builder extends GeneratedMessageV3.Builder<WriteLogEntriesPartialErrors.Builder> implements WriteLogEntriesPartialErrorsOrBuilder

Error details for WriteLogEntries with partial success.

Protobuf type google.logging.v2.WriteLogEntriesPartialErrors

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public WriteLogEntriesPartialErrors build()
Returns
TypeDescription
WriteLogEntriesPartialErrors

buildPartial()

public WriteLogEntriesPartialErrors buildPartial()
Returns
TypeDescription
WriteLogEntriesPartialErrors

clear()

public WriteLogEntriesPartialErrors.Builder clear()
Returns
TypeDescription
WriteLogEntriesPartialErrors.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearLogEntryErrors()

public WriteLogEntriesPartialErrors.Builder clearLogEntryErrors()
Returns
TypeDescription
WriteLogEntriesPartialErrors.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public WriteLogEntriesPartialErrors.Builder clone()
Returns
TypeDescription
WriteLogEntriesPartialErrors.Builder
Overrides

containsLogEntryErrors(int key)

public boolean containsLogEntryErrors(int key)

When WriteLogEntriesRequest.partial_success is true, records the error status for entries that were not written due to a permanent error, keyed by the entry's zero-based index in WriteLogEntriesRequest.entries.

Failed requests for which no entries are written will not include per-entry errors.

map<int32, .google.rpc.Status> log_entry_errors = 1;

Parameter
NameDescription
keyint
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public WriteLogEntriesPartialErrors getDefaultInstanceForType()
Returns
TypeDescription
WriteLogEntriesPartialErrors

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLogEntryErrors()

public Map<Integer,Status> getLogEntryErrors()
Returns
TypeDescription
Map<Integer,com.google.rpc.Status>

getLogEntryErrorsCount()

public int getLogEntryErrorsCount()

When WriteLogEntriesRequest.partial_success is true, records the error status for entries that were not written due to a permanent error, keyed by the entry's zero-based index in WriteLogEntriesRequest.entries.

Failed requests for which no entries are written will not include per-entry errors.

map<int32, .google.rpc.Status> log_entry_errors = 1;

Returns
TypeDescription
int

getLogEntryErrorsMap()

public Map<Integer,Status> getLogEntryErrorsMap()

When WriteLogEntriesRequest.partial_success is true, records the error status for entries that were not written due to a permanent error, keyed by the entry's zero-based index in WriteLogEntriesRequest.entries.

Failed requests for which no entries are written will not include per-entry errors.

map<int32, .google.rpc.Status> log_entry_errors = 1;

Returns
TypeDescription
Map<Integer,com.google.rpc.Status>

getLogEntryErrorsOrDefault(int key, Status defaultValue)

public Status getLogEntryErrorsOrDefault(int key, Status defaultValue)

When WriteLogEntriesRequest.partial_success is true, records the error status for entries that were not written due to a permanent error, keyed by the entry's zero-based index in WriteLogEntriesRequest.entries.

Failed requests for which no entries are written will not include per-entry errors.

map<int32, .google.rpc.Status> log_entry_errors = 1;

Parameters
NameDescription
keyint
defaultValuecom.google.rpc.Status
Returns
TypeDescription
com.google.rpc.Status

getLogEntryErrorsOrThrow(int key)

public Status getLogEntryErrorsOrThrow(int key)

When WriteLogEntriesRequest.partial_success is true, records the error status for entries that were not written due to a permanent error, keyed by the entry's zero-based index in WriteLogEntriesRequest.entries.

Failed requests for which no entries are written will not include per-entry errors.

map<int32, .google.rpc.Status> log_entry_errors = 1;

Parameter
NameDescription
keyint
Returns
TypeDescription
com.google.rpc.Status

getMutableLogEntryErrors()

public Map<Integer,Status> getMutableLogEntryErrors()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<Integer,com.google.rpc.Status>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(WriteLogEntriesPartialErrors other)

public WriteLogEntriesPartialErrors.Builder mergeFrom(WriteLogEntriesPartialErrors other)
Parameter
NameDescription
otherWriteLogEntriesPartialErrors
Returns
TypeDescription
WriteLogEntriesPartialErrors.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllLogEntryErrors(Map<Integer,Status> values)

public WriteLogEntriesPartialErrors.Builder putAllLogEntryErrors(Map<Integer,Status> values)

When WriteLogEntriesRequest.partial_success is true, records the error status for entries that were not written due to a permanent error, keyed by the entry's zero-based index in WriteLogEntriesRequest.entries.

Failed requests for which no entries are written will not include per-entry errors.

map<int32, .google.rpc.Status> log_entry_errors = 1;

Parameter
NameDescription
valuesMap<Integer,com.google.rpc.Status>
Returns
TypeDescription
WriteLogEntriesPartialErrors.Builder

putLogEntryErrors(int key, Status value)

public WriteLogEntriesPartialErrors.Builder putLogEntryErrors(int key, Status value)

When WriteLogEntriesRequest.partial_success is true, records the error status for entries that were not written due to a permanent error, keyed by the entry's zero-based index in WriteLogEntriesRequest.entries.

Failed requests for which no entries are written will not include per-entry errors.

map<int32, .google.rpc.Status> log_entry_errors = 1;

Parameters
NameDescription
keyint
valuecom.google.rpc.Status
Returns
TypeDescription
WriteLogEntriesPartialErrors.Builder

putLogEntryErrorsBuilderIfAbsent(int key)

public Status.Builder putLogEntryErrorsBuilderIfAbsent(int key)

When WriteLogEntriesRequest.partial_success is true, records the error status for entries that were not written due to a permanent error, keyed by the entry's zero-based index in WriteLogEntriesRequest.entries.

Failed requests for which no entries are written will not include per-entry errors.

map<int32, .google.rpc.Status> log_entry_errors = 1;

Parameter
NameDescription
keyint
Returns
TypeDescription
com.google.rpc.Status.Builder

removeLogEntryErrors(int key)

public WriteLogEntriesPartialErrors.Builder removeLogEntryErrors(int key)

When WriteLogEntriesRequest.partial_success is true, records the error status for entries that were not written due to a permanent error, keyed by the entry's zero-based index in WriteLogEntriesRequest.entries.

Failed requests for which no entries are written will not include per-entry errors.

map<int32, .google.rpc.Status> log_entry_errors = 1;

Parameter
NameDescription
keyint
Returns
TypeDescription
WriteLogEntriesPartialErrors.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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