Class LogEntryOperation.Builder (3.21.0)

public static final class LogEntryOperation.Builder extends GeneratedMessageV3.Builder<LogEntryOperation.Builder> implements LogEntryOperationOrBuilder

Additional information about a potentially long-running operation with which a log entry is associated.

Protobuf type google.logging.v2.LogEntryOperation

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LogEntryOperation build()
Returns
Type Description
LogEntryOperation

buildPartial()

public LogEntryOperation buildPartial()
Returns
Type Description
LogEntryOperation

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFirst()

public LogEntryOperation.Builder clearFirst()

Optional. Set this to True if this is the first log entry in the operation.

bool first = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LogEntryOperation.Builder

This builder for chaining.

clearId()

public LogEntryOperation.Builder clearId()

Optional. An arbitrary operation identifier. Log entries with the same identifier are assumed to be part of the same operation.

string id = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LogEntryOperation.Builder

This builder for chaining.

clearLast()

public LogEntryOperation.Builder clearLast()

Optional. Set this to True if this is the last log entry in the operation.

bool last = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LogEntryOperation.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProducer()

public LogEntryOperation.Builder clearProducer()

Optional. An arbitrary producer identifier. The combination of id and producer must be globally unique. Examples for producer: "MyDivision.MyBigCompany.com", "github.com/MyProject/MyApplication".

string producer = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LogEntryOperation.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public LogEntryOperation getDefaultInstanceForType()
Returns
Type Description
LogEntryOperation

getDescriptorForType()

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

getFirst()

public boolean getFirst()

Optional. Set this to True if this is the first log entry in the operation.

bool first = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The first.

getId()

public String getId()

Optional. An arbitrary operation identifier. Log entries with the same identifier are assumed to be part of the same operation.

string id = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

Optional. An arbitrary operation identifier. Log entries with the same identifier are assumed to be part of the same operation.

string id = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for id.

getLast()

public boolean getLast()

Optional. Set this to True if this is the last log entry in the operation.

bool last = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The last.

getProducer()

public String getProducer()

Optional. An arbitrary producer identifier. The combination of id and producer must be globally unique. Examples for producer: "MyDivision.MyBigCompany.com", "github.com/MyProject/MyApplication".

string producer = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The producer.

getProducerBytes()

public ByteString getProducerBytes()

Optional. An arbitrary producer identifier. The combination of id and producer must be globally unique. Examples for producer: "MyDivision.MyBigCompany.com", "github.com/MyProject/MyApplication".

string producer = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for producer.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(LogEntryOperation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setFirst(boolean value)

public LogEntryOperation.Builder setFirst(boolean value)

Optional. Set this to True if this is the first log entry in the operation.

bool first = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The first to set.

Returns
Type Description
LogEntryOperation.Builder

This builder for chaining.

setId(String value)

public LogEntryOperation.Builder setId(String value)

Optional. An arbitrary operation identifier. Log entries with the same identifier are assumed to be part of the same operation.

string id = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The id to set.

Returns
Type Description
LogEntryOperation.Builder

This builder for chaining.

setIdBytes(ByteString value)

public LogEntryOperation.Builder setIdBytes(ByteString value)

Optional. An arbitrary operation identifier. Log entries with the same identifier are assumed to be part of the same operation.

string id = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
LogEntryOperation.Builder

This builder for chaining.

setLast(boolean value)

public LogEntryOperation.Builder setLast(boolean value)

Optional. Set this to True if this is the last log entry in the operation.

bool last = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The last to set.

Returns
Type Description
LogEntryOperation.Builder

This builder for chaining.

setProducer(String value)

public LogEntryOperation.Builder setProducer(String value)

Optional. An arbitrary producer identifier. The combination of id and producer must be globally unique. Examples for producer: "MyDivision.MyBigCompany.com", "github.com/MyProject/MyApplication".

string producer = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The producer to set.

Returns
Type Description
LogEntryOperation.Builder

This builder for chaining.

setProducerBytes(ByteString value)

public LogEntryOperation.Builder setProducerBytes(ByteString value)

Optional. An arbitrary producer identifier. The combination of id and producer must be globally unique. Examples for producer: "MyDivision.MyBigCompany.com", "github.com/MyProject/MyApplication".

string producer = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for producer to set.

Returns
Type Description
LogEntryOperation.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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