Class LogEntry.Builder (1.6.0)

public static final class LogEntry.Builder extends GeneratedMessageV3.Builder<LogEntry.Builder> implements LogEntryOrBuilder

An individual log entry.

Protobuf type google.api.servicecontrol.v1.LogEntry

Implements

LogEntryOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LogEntry build()
Returns
TypeDescription
LogEntry

buildPartial()

public LogEntry buildPartial()
Returns
TypeDescription
LogEntry

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearHttpRequest()

public LogEntry.Builder clearHttpRequest()

Optional. Information about the HTTP request associated with this log entry, if applicable.

.google.api.servicecontrol.v1.HttpRequest http_request = 14;

Returns
TypeDescription
LogEntry.Builder

clearInsertId()

public LogEntry.Builder clearInsertId()

A unique ID for the log entry used for deduplication. If omitted, the implementation will generate one based on operation_id.

string insert_id = 4;

Returns
TypeDescription
LogEntry.Builder

This builder for chaining.

clearLabels()

public LogEntry.Builder clearLabels()
Returns
TypeDescription
LogEntry.Builder

clearName()

public LogEntry.Builder clearName()

Required. The log to which this log entry belongs. Examples: "syslog", "book_log".

string name = 10;

Returns
TypeDescription
LogEntry.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOperation()

public LogEntry.Builder clearOperation()

Optional. Information about an operation associated with the log entry, if applicable.

.google.api.servicecontrol.v1.LogEntryOperation operation = 16;

Returns
TypeDescription
LogEntry.Builder

clearPayload()

public LogEntry.Builder clearPayload()
Returns
TypeDescription
LogEntry.Builder

clearProtoPayload()

public LogEntry.Builder clearProtoPayload()

The log entry payload, represented as a protocol buffer that is expressed as a JSON object. The only accepted type currently is AuditLog.

.google.protobuf.Any proto_payload = 2;

Returns
TypeDescription
LogEntry.Builder

clearSeverity()

public LogEntry.Builder clearSeverity()

The severity of the log entry. The default value is LogSeverity.DEFAULT.

.google.logging.type.LogSeverity severity = 12;

Returns
TypeDescription
LogEntry.Builder

This builder for chaining.

clearSourceLocation()

public LogEntry.Builder clearSourceLocation()

Optional. Source code location information associated with the log entry, if any.

.google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;

Returns
TypeDescription
LogEntry.Builder

clearStructPayload()

public LogEntry.Builder clearStructPayload()

The log entry payload, represented as a structure that is expressed as a JSON object.

.google.protobuf.Struct struct_payload = 6;

Returns
TypeDescription
LogEntry.Builder

clearTextPayload()

public LogEntry.Builder clearTextPayload()

The log entry payload, represented as a Unicode string (UTF-8).

string text_payload = 3;

Returns
TypeDescription
LogEntry.Builder

This builder for chaining.

clearTimestamp()

public LogEntry.Builder clearTimestamp()

The time the event described by the log entry occurred. If omitted, defaults to operation start time.

.google.protobuf.Timestamp timestamp = 11;

Returns
TypeDescription
LogEntry.Builder

clearTrace()

public LogEntry.Builder clearTrace()

Optional. Resource name of the trace associated with the log entry, if any. If this field contains a relative resource name, you can assume the name is relative to //tracing.googleapis.com. Example: projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824

string trace = 15;

Returns
TypeDescription
LogEntry.Builder

This builder for chaining.

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

A set of user-defined (key, value) data that provides additional information about the log entry.

map<string, string> labels = 13;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public LogEntry getDefaultInstanceForType()
Returns
TypeDescription
LogEntry

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHttpRequest()

public HttpRequest getHttpRequest()

Optional. Information about the HTTP request associated with this log entry, if applicable.

.google.api.servicecontrol.v1.HttpRequest http_request = 14;

Returns
TypeDescription
HttpRequest

The httpRequest.

getHttpRequestBuilder()

public HttpRequest.Builder getHttpRequestBuilder()

Optional. Information about the HTTP request associated with this log entry, if applicable.

.google.api.servicecontrol.v1.HttpRequest http_request = 14;

Returns
TypeDescription
HttpRequest.Builder

getHttpRequestOrBuilder()

public HttpRequestOrBuilder getHttpRequestOrBuilder()

Optional. Information about the HTTP request associated with this log entry, if applicable.

.google.api.servicecontrol.v1.HttpRequest http_request = 14;

Returns
TypeDescription
HttpRequestOrBuilder

getInsertId()

public String getInsertId()

A unique ID for the log entry used for deduplication. If omitted, the implementation will generate one based on operation_id.

string insert_id = 4;

Returns
TypeDescription
String

The insertId.

getInsertIdBytes()

public ByteString getInsertIdBytes()

A unique ID for the log entry used for deduplication. If omitted, the implementation will generate one based on operation_id.

string insert_id = 4;

Returns
TypeDescription
ByteString

The bytes for insertId.

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

A set of user-defined (key, value) data that provides additional information about the log entry.

map<string, string> labels = 13;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

A set of user-defined (key, value) data that provides additional information about the log entry.

map<string, string> labels = 13;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

A set of user-defined (key, value) data that provides additional information about the log entry.

map<string, string> labels = 13;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

A set of user-defined (key, value) data that provides additional information about the log entry.

map<string, string> labels = 13;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Required. The log to which this log entry belongs. Examples: "syslog", "book_log".

string name = 10;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The log to which this log entry belongs. Examples: "syslog", "book_log".

string name = 10;

Returns
TypeDescription
ByteString

The bytes for name.

getOperation()

public LogEntryOperation getOperation()

Optional. Information about an operation associated with the log entry, if applicable.

.google.api.servicecontrol.v1.LogEntryOperation operation = 16;

Returns
TypeDescription
LogEntryOperation

The operation.

getOperationBuilder()

public LogEntryOperation.Builder getOperationBuilder()

Optional. Information about an operation associated with the log entry, if applicable.

.google.api.servicecontrol.v1.LogEntryOperation operation = 16;

Returns
TypeDescription
LogEntryOperation.Builder

getOperationOrBuilder()

public LogEntryOperationOrBuilder getOperationOrBuilder()

Optional. Information about an operation associated with the log entry, if applicable.

.google.api.servicecontrol.v1.LogEntryOperation operation = 16;

Returns
TypeDescription
LogEntryOperationOrBuilder

getPayloadCase()

public LogEntry.PayloadCase getPayloadCase()
Returns
TypeDescription
LogEntry.PayloadCase

getProtoPayload()

public Any getProtoPayload()

The log entry payload, represented as a protocol buffer that is expressed as a JSON object. The only accepted type currently is AuditLog.

.google.protobuf.Any proto_payload = 2;

Returns
TypeDescription
Any

The protoPayload.

getProtoPayloadBuilder()

public Any.Builder getProtoPayloadBuilder()

The log entry payload, represented as a protocol buffer that is expressed as a JSON object. The only accepted type currently is AuditLog.

.google.protobuf.Any proto_payload = 2;

Returns
TypeDescription
Builder

getProtoPayloadOrBuilder()

public AnyOrBuilder getProtoPayloadOrBuilder()

The log entry payload, represented as a protocol buffer that is expressed as a JSON object. The only accepted type currently is AuditLog.

.google.protobuf.Any proto_payload = 2;

Returns
TypeDescription
AnyOrBuilder

getSeverity()

public LogSeverity getSeverity()

The severity of the log entry. The default value is LogSeverity.DEFAULT.

.google.logging.type.LogSeverity severity = 12;

Returns
TypeDescription
com.google.logging.type.LogSeverity

The severity.

getSeverityValue()

public int getSeverityValue()

The severity of the log entry. The default value is LogSeverity.DEFAULT.

.google.logging.type.LogSeverity severity = 12;

Returns
TypeDescription
int

The enum numeric value on the wire for severity.

getSourceLocation()

public LogEntrySourceLocation getSourceLocation()

Optional. Source code location information associated with the log entry, if any.

.google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;

Returns
TypeDescription
LogEntrySourceLocation

The sourceLocation.

getSourceLocationBuilder()

public LogEntrySourceLocation.Builder getSourceLocationBuilder()

Optional. Source code location information associated with the log entry, if any.

.google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;

Returns
TypeDescription
LogEntrySourceLocation.Builder

getSourceLocationOrBuilder()

public LogEntrySourceLocationOrBuilder getSourceLocationOrBuilder()

Optional. Source code location information associated with the log entry, if any.

.google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;

Returns
TypeDescription
LogEntrySourceLocationOrBuilder

getStructPayload()

public Struct getStructPayload()

The log entry payload, represented as a structure that is expressed as a JSON object.

.google.protobuf.Struct struct_payload = 6;

Returns
TypeDescription
Struct

The structPayload.

getStructPayloadBuilder()

public Struct.Builder getStructPayloadBuilder()

The log entry payload, represented as a structure that is expressed as a JSON object.

.google.protobuf.Struct struct_payload = 6;

Returns
TypeDescription
Builder

getStructPayloadOrBuilder()

public StructOrBuilder getStructPayloadOrBuilder()

The log entry payload, represented as a structure that is expressed as a JSON object.

.google.protobuf.Struct struct_payload = 6;

Returns
TypeDescription
StructOrBuilder

getTextPayload()

public String getTextPayload()

The log entry payload, represented as a Unicode string (UTF-8).

string text_payload = 3;

Returns
TypeDescription
String

The textPayload.

getTextPayloadBytes()

public ByteString getTextPayloadBytes()

The log entry payload, represented as a Unicode string (UTF-8).

string text_payload = 3;

Returns
TypeDescription
ByteString

The bytes for textPayload.

getTimestamp()

public Timestamp getTimestamp()

The time the event described by the log entry occurred. If omitted, defaults to operation start time.

.google.protobuf.Timestamp timestamp = 11;

Returns
TypeDescription
Timestamp

The timestamp.

getTimestampBuilder()

public Timestamp.Builder getTimestampBuilder()

The time the event described by the log entry occurred. If omitted, defaults to operation start time.

.google.protobuf.Timestamp timestamp = 11;

Returns
TypeDescription
Builder

getTimestampOrBuilder()

public TimestampOrBuilder getTimestampOrBuilder()

The time the event described by the log entry occurred. If omitted, defaults to operation start time.

.google.protobuf.Timestamp timestamp = 11;

Returns
TypeDescription
TimestampOrBuilder

getTrace()

public String getTrace()

Optional. Resource name of the trace associated with the log entry, if any. If this field contains a relative resource name, you can assume the name is relative to //tracing.googleapis.com. Example: projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824

string trace = 15;

Returns
TypeDescription
String

The trace.

getTraceBytes()

public ByteString getTraceBytes()

Optional. Resource name of the trace associated with the log entry, if any. If this field contains a relative resource name, you can assume the name is relative to //tracing.googleapis.com. Example: projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824

string trace = 15;

Returns
TypeDescription
ByteString

The bytes for trace.

hasHttpRequest()

public boolean hasHttpRequest()

Optional. Information about the HTTP request associated with this log entry, if applicable.

.google.api.servicecontrol.v1.HttpRequest http_request = 14;

Returns
TypeDescription
boolean

Whether the httpRequest field is set.

hasOperation()

public boolean hasOperation()

Optional. Information about an operation associated with the log entry, if applicable.

.google.api.servicecontrol.v1.LogEntryOperation operation = 16;

Returns
TypeDescription
boolean

Whether the operation field is set.

hasProtoPayload()

public boolean hasProtoPayload()

The log entry payload, represented as a protocol buffer that is expressed as a JSON object. The only accepted type currently is AuditLog.

.google.protobuf.Any proto_payload = 2;

Returns
TypeDescription
boolean

Whether the protoPayload field is set.

hasSourceLocation()

public boolean hasSourceLocation()

Optional. Source code location information associated with the log entry, if any.

.google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;

Returns
TypeDescription
boolean

Whether the sourceLocation field is set.

hasStructPayload()

public boolean hasStructPayload()

The log entry payload, represented as a structure that is expressed as a JSON object.

.google.protobuf.Struct struct_payload = 6;

Returns
TypeDescription
boolean

Whether the structPayload field is set.

hasTextPayload()

public boolean hasTextPayload()

The log entry payload, represented as a Unicode string (UTF-8).

string text_payload = 3;

Returns
TypeDescription
boolean

Whether the textPayload field is set.

hasTimestamp()

public boolean hasTimestamp()

The time the event described by the log entry occurred. If omitted, defaults to operation start time.

.google.protobuf.Timestamp timestamp = 11;

Returns
TypeDescription
boolean

Whether the timestamp field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(LogEntry other)

public LogEntry.Builder mergeFrom(LogEntry other)
Parameter
NameDescription
otherLogEntry
Returns
TypeDescription
LogEntry.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeHttpRequest(HttpRequest value)

public LogEntry.Builder mergeHttpRequest(HttpRequest value)

Optional. Information about the HTTP request associated with this log entry, if applicable.

.google.api.servicecontrol.v1.HttpRequest http_request = 14;

Parameter
NameDescription
valueHttpRequest
Returns
TypeDescription
LogEntry.Builder

mergeOperation(LogEntryOperation value)

public LogEntry.Builder mergeOperation(LogEntryOperation value)

Optional. Information about an operation associated with the log entry, if applicable.

.google.api.servicecontrol.v1.LogEntryOperation operation = 16;

Parameter
NameDescription
valueLogEntryOperation
Returns
TypeDescription
LogEntry.Builder

mergeProtoPayload(Any value)

public LogEntry.Builder mergeProtoPayload(Any value)

The log entry payload, represented as a protocol buffer that is expressed as a JSON object. The only accepted type currently is AuditLog.

.google.protobuf.Any proto_payload = 2;

Parameter
NameDescription
valueAny
Returns
TypeDescription
LogEntry.Builder

mergeSourceLocation(LogEntrySourceLocation value)

public LogEntry.Builder mergeSourceLocation(LogEntrySourceLocation value)

Optional. Source code location information associated with the log entry, if any.

.google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;

Parameter
NameDescription
valueLogEntrySourceLocation
Returns
TypeDescription
LogEntry.Builder

mergeStructPayload(Struct value)

public LogEntry.Builder mergeStructPayload(Struct value)

The log entry payload, represented as a structure that is expressed as a JSON object.

.google.protobuf.Struct struct_payload = 6;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
LogEntry.Builder

mergeTimestamp(Timestamp value)

public LogEntry.Builder mergeTimestamp(Timestamp value)

The time the event described by the log entry occurred. If omitted, defaults to operation start time.

.google.protobuf.Timestamp timestamp = 11;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
LogEntry.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllLabels(Map<String,String> values)

public LogEntry.Builder putAllLabels(Map<String,String> values)

A set of user-defined (key, value) data that provides additional information about the log entry.

map<string, string> labels = 13;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
LogEntry.Builder

putLabels(String key, String value)

public LogEntry.Builder putLabels(String key, String value)

A set of user-defined (key, value) data that provides additional information about the log entry.

map<string, string> labels = 13;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
LogEntry.Builder

removeLabels(String key)

public LogEntry.Builder removeLabels(String key)

A set of user-defined (key, value) data that provides additional information about the log entry.

map<string, string> labels = 13;

Parameter
NameDescription
keyString
Returns
TypeDescription
LogEntry.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setHttpRequest(HttpRequest value)

public LogEntry.Builder setHttpRequest(HttpRequest value)

Optional. Information about the HTTP request associated with this log entry, if applicable.

.google.api.servicecontrol.v1.HttpRequest http_request = 14;

Parameter
NameDescription
valueHttpRequest
Returns
TypeDescription
LogEntry.Builder

setHttpRequest(HttpRequest.Builder builderForValue)

public LogEntry.Builder setHttpRequest(HttpRequest.Builder builderForValue)

Optional. Information about the HTTP request associated with this log entry, if applicable.

.google.api.servicecontrol.v1.HttpRequest http_request = 14;

Parameter
NameDescription
builderForValueHttpRequest.Builder
Returns
TypeDescription
LogEntry.Builder

setInsertId(String value)

public LogEntry.Builder setInsertId(String value)

A unique ID for the log entry used for deduplication. If omitted, the implementation will generate one based on operation_id.

string insert_id = 4;

Parameter
NameDescription
valueString

The insertId to set.

Returns
TypeDescription
LogEntry.Builder

This builder for chaining.

setInsertIdBytes(ByteString value)

public LogEntry.Builder setInsertIdBytes(ByteString value)

A unique ID for the log entry used for deduplication. If omitted, the implementation will generate one based on operation_id.

string insert_id = 4;

Parameter
NameDescription
valueByteString

The bytes for insertId to set.

Returns
TypeDescription
LogEntry.Builder

This builder for chaining.

setName(String value)

public LogEntry.Builder setName(String value)

Required. The log to which this log entry belongs. Examples: "syslog", "book_log".

string name = 10;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
LogEntry.Builder

This builder for chaining.

setNameBytes(ByteString value)

public LogEntry.Builder setNameBytes(ByteString value)

Required. The log to which this log entry belongs. Examples: "syslog", "book_log".

string name = 10;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
LogEntry.Builder

This builder for chaining.

setOperation(LogEntryOperation value)

public LogEntry.Builder setOperation(LogEntryOperation value)

Optional. Information about an operation associated with the log entry, if applicable.

.google.api.servicecontrol.v1.LogEntryOperation operation = 16;

Parameter
NameDescription
valueLogEntryOperation
Returns
TypeDescription
LogEntry.Builder

setOperation(LogEntryOperation.Builder builderForValue)

public LogEntry.Builder setOperation(LogEntryOperation.Builder builderForValue)

Optional. Information about an operation associated with the log entry, if applicable.

.google.api.servicecontrol.v1.LogEntryOperation operation = 16;

Parameter
NameDescription
builderForValueLogEntryOperation.Builder
Returns
TypeDescription
LogEntry.Builder

setProtoPayload(Any value)

public LogEntry.Builder setProtoPayload(Any value)

The log entry payload, represented as a protocol buffer that is expressed as a JSON object. The only accepted type currently is AuditLog.

.google.protobuf.Any proto_payload = 2;

Parameter
NameDescription
valueAny
Returns
TypeDescription
LogEntry.Builder

setProtoPayload(Any.Builder builderForValue)

public LogEntry.Builder setProtoPayload(Any.Builder builderForValue)

The log entry payload, represented as a protocol buffer that is expressed as a JSON object. The only accepted type currently is AuditLog.

.google.protobuf.Any proto_payload = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
LogEntry.Builder

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

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

setSeverity(LogSeverity value)

public LogEntry.Builder setSeverity(LogSeverity value)

The severity of the log entry. The default value is LogSeverity.DEFAULT.

.google.logging.type.LogSeverity severity = 12;

Parameter
NameDescription
valuecom.google.logging.type.LogSeverity

The severity to set.

Returns
TypeDescription
LogEntry.Builder

This builder for chaining.

setSeverityValue(int value)

public LogEntry.Builder setSeverityValue(int value)

The severity of the log entry. The default value is LogSeverity.DEFAULT.

.google.logging.type.LogSeverity severity = 12;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
LogEntry.Builder

This builder for chaining.

setSourceLocation(LogEntrySourceLocation value)

public LogEntry.Builder setSourceLocation(LogEntrySourceLocation value)

Optional. Source code location information associated with the log entry, if any.

.google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;

Parameter
NameDescription
valueLogEntrySourceLocation
Returns
TypeDescription
LogEntry.Builder

setSourceLocation(LogEntrySourceLocation.Builder builderForValue)

public LogEntry.Builder setSourceLocation(LogEntrySourceLocation.Builder builderForValue)

Optional. Source code location information associated with the log entry, if any.

.google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;

Parameter
NameDescription
builderForValueLogEntrySourceLocation.Builder
Returns
TypeDescription
LogEntry.Builder

setStructPayload(Struct value)

public LogEntry.Builder setStructPayload(Struct value)

The log entry payload, represented as a structure that is expressed as a JSON object.

.google.protobuf.Struct struct_payload = 6;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
LogEntry.Builder

setStructPayload(Struct.Builder builderForValue)

public LogEntry.Builder setStructPayload(Struct.Builder builderForValue)

The log entry payload, represented as a structure that is expressed as a JSON object.

.google.protobuf.Struct struct_payload = 6;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
LogEntry.Builder

setTextPayload(String value)

public LogEntry.Builder setTextPayload(String value)

The log entry payload, represented as a Unicode string (UTF-8).

string text_payload = 3;

Parameter
NameDescription
valueString

The textPayload to set.

Returns
TypeDescription
LogEntry.Builder

This builder for chaining.

setTextPayloadBytes(ByteString value)

public LogEntry.Builder setTextPayloadBytes(ByteString value)

The log entry payload, represented as a Unicode string (UTF-8).

string text_payload = 3;

Parameter
NameDescription
valueByteString

The bytes for textPayload to set.

Returns
TypeDescription
LogEntry.Builder

This builder for chaining.

setTimestamp(Timestamp value)

public LogEntry.Builder setTimestamp(Timestamp value)

The time the event described by the log entry occurred. If omitted, defaults to operation start time.

.google.protobuf.Timestamp timestamp = 11;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
LogEntry.Builder

setTimestamp(Timestamp.Builder builderForValue)

public LogEntry.Builder setTimestamp(Timestamp.Builder builderForValue)

The time the event described by the log entry occurred. If omitted, defaults to operation start time.

.google.protobuf.Timestamp timestamp = 11;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
LogEntry.Builder

setTrace(String value)

public LogEntry.Builder setTrace(String value)

Optional. Resource name of the trace associated with the log entry, if any. If this field contains a relative resource name, you can assume the name is relative to //tracing.googleapis.com. Example: projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824

string trace = 15;

Parameter
NameDescription
valueString

The trace to set.

Returns
TypeDescription
LogEntry.Builder

This builder for chaining.

setTraceBytes(ByteString value)

public LogEntry.Builder setTraceBytes(ByteString value)

Optional. Resource name of the trace associated with the log entry, if any. If this field contains a relative resource name, you can assume the name is relative to //tracing.googleapis.com. Example: projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824

string trace = 15;

Parameter
NameDescription
valueByteString

The bytes for trace to set.

Returns
TypeDescription
LogEntry.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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