Class LogSplit.Builder (0.14.1)

public static final class LogSplit.Builder extends GeneratedMessageV3.Builder<LogSplit.Builder> implements LogSplitOrBuilder

Additional information used to correlate multiple LogEntries. Used when a single LogEntry would exceed the Google Cloud Logging size limit and is split across multiple entries.

Protobuf type google.events.cloud.audit.v1.LogSplit

Implements

LogSplitOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LogSplit build()
Returns
TypeDescription
LogSplit

buildPartial()

public LogSplit buildPartial()
Returns
TypeDescription
LogSplit

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearIndex()

public LogSplit.Builder clearIndex()

The index of this LogEntry in the sequence of split logs. LogEntries are given |index| values 0, 1, ..., n-1 for a sequence of n entries.

int32 index = 2;

Returns
TypeDescription
LogSplit.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTotalSplits()

public LogSplit.Builder clearTotalSplits()

The total number of logs that the original LogEntry was split into.

int32 total_splits = 3;

Returns
TypeDescription
LogSplit.Builder

This builder for chaining.

clearUid()

public LogSplit.Builder clearUid()

A globally unique identifier for all LogEntries in a sequence of split logs. All LogEntries with the same |LogSplit.uid| are assumed to be part of the same sequence of split logs.

string uid = 1;

Returns
TypeDescription
LogSplit.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public LogSplit getDefaultInstanceForType()
Returns
TypeDescription
LogSplit

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIndex()

public int getIndex()

The index of this LogEntry in the sequence of split logs. LogEntries are given |index| values 0, 1, ..., n-1 for a sequence of n entries.

int32 index = 2;

Returns
TypeDescription
int

The index.

getTotalSplits()

public int getTotalSplits()

The total number of logs that the original LogEntry was split into.

int32 total_splits = 3;

Returns
TypeDescription
int

The totalSplits.

getUid()

public String getUid()

A globally unique identifier for all LogEntries in a sequence of split logs. All LogEntries with the same |LogSplit.uid| are assumed to be part of the same sequence of split logs.

string uid = 1;

Returns
TypeDescription
String

The uid.

getUidBytes()

public ByteString getUidBytes()

A globally unique identifier for all LogEntries in a sequence of split logs. All LogEntries with the same |LogSplit.uid| are assumed to be part of the same sequence of split logs.

string uid = 1;

Returns
TypeDescription
ByteString

The bytes for uid.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(LogSplit other)

public LogSplit.Builder mergeFrom(LogSplit other)
Parameter
NameDescription
otherLogSplit
Returns
TypeDescription
LogSplit.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setIndex(int value)

public LogSplit.Builder setIndex(int value)

The index of this LogEntry in the sequence of split logs. LogEntries are given |index| values 0, 1, ..., n-1 for a sequence of n entries.

int32 index = 2;

Parameter
NameDescription
valueint

The index to set.

Returns
TypeDescription
LogSplit.Builder

This builder for chaining.

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

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

setTotalSplits(int value)

public LogSplit.Builder setTotalSplits(int value)

The total number of logs that the original LogEntry was split into.

int32 total_splits = 3;

Parameter
NameDescription
valueint

The totalSplits to set.

Returns
TypeDescription
LogSplit.Builder

This builder for chaining.

setUid(String value)

public LogSplit.Builder setUid(String value)

A globally unique identifier for all LogEntries in a sequence of split logs. All LogEntries with the same |LogSplit.uid| are assumed to be part of the same sequence of split logs.

string uid = 1;

Parameter
NameDescription
valueString

The uid to set.

Returns
TypeDescription
LogSplit.Builder

This builder for chaining.

setUidBytes(ByteString value)

public LogSplit.Builder setUidBytes(ByteString value)

A globally unique identifier for all LogEntries in a sequence of split logs. All LogEntries with the same |LogSplit.uid| are assumed to be part of the same sequence of split logs.

string uid = 1;

Parameter
NameDescription
valueByteString

The bytes for uid to set.

Returns
TypeDescription
LogSplit.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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