public static final class LogEntry.Builder extends GeneratedMessageV3.Builder<LogEntry.Builder> implements LogEntryOrBuilder
An individual entry in a log.Protobuf type
google.logging.v2.LogEntry
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3.Builder<LogEntry.Builder>
protected MapField internalGetMutableMapField(int number)
internalGetMutableMapField
in class GeneratedMessageV3.Builder<LogEntry.Builder>
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<LogEntry.Builder>
public LogEntry.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<LogEntry.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<LogEntry.Builder>
public LogEntry getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public LogEntry build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public LogEntry buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public LogEntry.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<LogEntry.Builder>
public LogEntry.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<LogEntry.Builder>
public LogEntry.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<LogEntry.Builder>
public LogEntry.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<LogEntry.Builder>
public LogEntry.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<LogEntry.Builder>
public LogEntry.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<LogEntry.Builder>
public LogEntry.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<LogEntry.Builder>
public LogEntry.Builder mergeFrom(LogEntry other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<LogEntry.Builder>
public LogEntry.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<LogEntry.Builder>
java.io.IOException
public LogEntry.PayloadCase getPayloadCase()
getPayloadCase
in interface LogEntryOrBuilder
public LogEntry.Builder clearPayload()
public java.lang.String getLogName()
Required. The resource name of the log to which this log entry belongs: "projects/[PROJECT_ID]/logs/[LOG_ID]" "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" "folders/[FOLDER_ID]/logs/[LOG_ID]" A project number may optionally be used in place of PROJECT_ID. The project number is translated to its corresponding PROJECT_ID internally and the `log_name` field will contain PROJECT_ID in queries and exports. `[LOG_ID]` must be URL-encoded within `log_name`. Example: `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`. `[LOG_ID]` must be less than 512 characters long and can only include the following characters: upper and lower case alphanumeric characters, forward-slash, underscore, hyphen, and period. For backward compatibility, if `log_name` begins with a forward-slash, such as `/projects/...`, then the log entry is ingested as usual but the forward-slash is removed. Listing the log entry will not show the leading slash and filtering for a log name with a leading slash will never return any results.
string log_name = 12;
getLogName
in interface LogEntryOrBuilder
public ByteString getLogNameBytes()
Required. The resource name of the log to which this log entry belongs: "projects/[PROJECT_ID]/logs/[LOG_ID]" "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" "folders/[FOLDER_ID]/logs/[LOG_ID]" A project number may optionally be used in place of PROJECT_ID. The project number is translated to its corresponding PROJECT_ID internally and the `log_name` field will contain PROJECT_ID in queries and exports. `[LOG_ID]` must be URL-encoded within `log_name`. Example: `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`. `[LOG_ID]` must be less than 512 characters long and can only include the following characters: upper and lower case alphanumeric characters, forward-slash, underscore, hyphen, and period. For backward compatibility, if `log_name` begins with a forward-slash, such as `/projects/...`, then the log entry is ingested as usual but the forward-slash is removed. Listing the log entry will not show the leading slash and filtering for a log name with a leading slash will never return any results.
string log_name = 12;
getLogNameBytes
in interface LogEntryOrBuilder
public LogEntry.Builder setLogName(java.lang.String value)
Required. The resource name of the log to which this log entry belongs: "projects/[PROJECT_ID]/logs/[LOG_ID]" "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" "folders/[FOLDER_ID]/logs/[LOG_ID]" A project number may optionally be used in place of PROJECT_ID. The project number is translated to its corresponding PROJECT_ID internally and the `log_name` field will contain PROJECT_ID in queries and exports. `[LOG_ID]` must be URL-encoded within `log_name`. Example: `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`. `[LOG_ID]` must be less than 512 characters long and can only include the following characters: upper and lower case alphanumeric characters, forward-slash, underscore, hyphen, and period. For backward compatibility, if `log_name` begins with a forward-slash, such as `/projects/...`, then the log entry is ingested as usual but the forward-slash is removed. Listing the log entry will not show the leading slash and filtering for a log name with a leading slash will never return any results.
string log_name = 12;
public LogEntry.Builder clearLogName()
Required. The resource name of the log to which this log entry belongs: "projects/[PROJECT_ID]/logs/[LOG_ID]" "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" "folders/[FOLDER_ID]/logs/[LOG_ID]" A project number may optionally be used in place of PROJECT_ID. The project number is translated to its corresponding PROJECT_ID internally and the `log_name` field will contain PROJECT_ID in queries and exports. `[LOG_ID]` must be URL-encoded within `log_name`. Example: `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`. `[LOG_ID]` must be less than 512 characters long and can only include the following characters: upper and lower case alphanumeric characters, forward-slash, underscore, hyphen, and period. For backward compatibility, if `log_name` begins with a forward-slash, such as `/projects/...`, then the log entry is ingested as usual but the forward-slash is removed. Listing the log entry will not show the leading slash and filtering for a log name with a leading slash will never return any results.
string log_name = 12;
public LogEntry.Builder setLogNameBytes(ByteString value)
Required. The resource name of the log to which this log entry belongs: "projects/[PROJECT_ID]/logs/[LOG_ID]" "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" "folders/[FOLDER_ID]/logs/[LOG_ID]" A project number may optionally be used in place of PROJECT_ID. The project number is translated to its corresponding PROJECT_ID internally and the `log_name` field will contain PROJECT_ID in queries and exports. `[LOG_ID]` must be URL-encoded within `log_name`. Example: `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`. `[LOG_ID]` must be less than 512 characters long and can only include the following characters: upper and lower case alphanumeric characters, forward-slash, underscore, hyphen, and period. For backward compatibility, if `log_name` begins with a forward-slash, such as `/projects/...`, then the log entry is ingested as usual but the forward-slash is removed. Listing the log entry will not show the leading slash and filtering for a log name with a leading slash will never return any results.
string log_name = 12;
public boolean hasResource()
Required. The monitored resource associated with this log entry. Example: a log entry that reports a database error would be associated with the monitored resource designating the particular database that reported the error.
.google.api.MonitoredResource resource = 8;
hasResource
in interface LogEntryOrBuilder
public MonitoredResource getResource()
Required. The monitored resource associated with this log entry. Example: a log entry that reports a database error would be associated with the monitored resource designating the particular database that reported the error.
.google.api.MonitoredResource resource = 8;
getResource
in interface LogEntryOrBuilder
public LogEntry.Builder setResource(MonitoredResource value)
Required. The monitored resource associated with this log entry. Example: a log entry that reports a database error would be associated with the monitored resource designating the particular database that reported the error.
.google.api.MonitoredResource resource = 8;
public LogEntry.Builder setResource(MonitoredResource.Builder builderForValue)
Required. The monitored resource associated with this log entry. Example: a log entry that reports a database error would be associated with the monitored resource designating the particular database that reported the error.
.google.api.MonitoredResource resource = 8;
public LogEntry.Builder mergeResource(MonitoredResource value)
Required. The monitored resource associated with this log entry. Example: a log entry that reports a database error would be associated with the monitored resource designating the particular database that reported the error.
.google.api.MonitoredResource resource = 8;
public LogEntry.Builder clearResource()
Required. The monitored resource associated with this log entry. Example: a log entry that reports a database error would be associated with the monitored resource designating the particular database that reported the error.
.google.api.MonitoredResource resource = 8;
public MonitoredResource.Builder getResourceBuilder()
Required. The monitored resource associated with this log entry. Example: a log entry that reports a database error would be associated with the monitored resource designating the particular database that reported the error.
.google.api.MonitoredResource resource = 8;
public MonitoredResourceOrBuilder getResourceOrBuilder()
Required. The monitored resource associated with this log entry. Example: a log entry that reports a database error would be associated with the monitored resource designating the particular database that reported the error.
.google.api.MonitoredResource resource = 8;
getResourceOrBuilder
in interface LogEntryOrBuilder
public boolean hasProtoPayload()
The log entry payload, represented as a protocol buffer. Some Google Cloud Platform services use this field for their log entry payloads.
.google.protobuf.Any proto_payload = 2;
hasProtoPayload
in interface LogEntryOrBuilder
public Any getProtoPayload()
The log entry payload, represented as a protocol buffer. Some Google Cloud Platform services use this field for their log entry payloads.
.google.protobuf.Any proto_payload = 2;
getProtoPayload
in interface LogEntryOrBuilder
public LogEntry.Builder setProtoPayload(Any value)
The log entry payload, represented as a protocol buffer. Some Google Cloud Platform services use this field for their log entry payloads.
.google.protobuf.Any proto_payload = 2;
public LogEntry.Builder setProtoPayload(Any.Builder builderForValue)
The log entry payload, represented as a protocol buffer. Some Google Cloud Platform services use this field for their log entry payloads.
.google.protobuf.Any proto_payload = 2;
public LogEntry.Builder mergeProtoPayload(Any value)
The log entry payload, represented as a protocol buffer. Some Google Cloud Platform services use this field for their log entry payloads.
.google.protobuf.Any proto_payload = 2;
public LogEntry.Builder clearProtoPayload()
The log entry payload, represented as a protocol buffer. Some Google Cloud Platform services use this field for their log entry payloads.
.google.protobuf.Any proto_payload = 2;
public Any.Builder getProtoPayloadBuilder()
The log entry payload, represented as a protocol buffer. Some Google Cloud Platform services use this field for their log entry payloads.
.google.protobuf.Any proto_payload = 2;
public AnyOrBuilder getProtoPayloadOrBuilder()
The log entry payload, represented as a protocol buffer. Some Google Cloud Platform services use this field for their log entry payloads.
.google.protobuf.Any proto_payload = 2;
getProtoPayloadOrBuilder
in interface LogEntryOrBuilder
public java.lang.String getTextPayload()
The log entry payload, represented as a Unicode string (UTF-8).
string text_payload = 3;
getTextPayload
in interface LogEntryOrBuilder
public ByteString getTextPayloadBytes()
The log entry payload, represented as a Unicode string (UTF-8).
string text_payload = 3;
getTextPayloadBytes
in interface LogEntryOrBuilder
public LogEntry.Builder setTextPayload(java.lang.String value)
The log entry payload, represented as a Unicode string (UTF-8).
string text_payload = 3;
public LogEntry.Builder clearTextPayload()
The log entry payload, represented as a Unicode string (UTF-8).
string text_payload = 3;
public LogEntry.Builder setTextPayloadBytes(ByteString value)
The log entry payload, represented as a Unicode string (UTF-8).
string text_payload = 3;
public boolean hasJsonPayload()
The log entry payload, represented as a structure that is expressed as a JSON object.
.google.protobuf.Struct json_payload = 6;
hasJsonPayload
in interface LogEntryOrBuilder
public Struct getJsonPayload()
The log entry payload, represented as a structure that is expressed as a JSON object.
.google.protobuf.Struct json_payload = 6;
getJsonPayload
in interface LogEntryOrBuilder
public LogEntry.Builder setJsonPayload(Struct value)
The log entry payload, represented as a structure that is expressed as a JSON object.
.google.protobuf.Struct json_payload = 6;
public LogEntry.Builder setJsonPayload(Struct.Builder builderForValue)
The log entry payload, represented as a structure that is expressed as a JSON object.
.google.protobuf.Struct json_payload = 6;
public LogEntry.Builder mergeJsonPayload(Struct value)
The log entry payload, represented as a structure that is expressed as a JSON object.
.google.protobuf.Struct json_payload = 6;
public LogEntry.Builder clearJsonPayload()
The log entry payload, represented as a structure that is expressed as a JSON object.
.google.protobuf.Struct json_payload = 6;
public Struct.Builder getJsonPayloadBuilder()
The log entry payload, represented as a structure that is expressed as a JSON object.
.google.protobuf.Struct json_payload = 6;
public StructOrBuilder getJsonPayloadOrBuilder()
The log entry payload, represented as a structure that is expressed as a JSON object.
.google.protobuf.Struct json_payload = 6;
getJsonPayloadOrBuilder
in interface LogEntryOrBuilder
public boolean hasTimestamp()
Optional. The time the event described by the log entry occurred. This time is used to compute the log entry's age and to enforce the logs retention period. If this field is omitted in a new log entry, then Stackdriver Logging assigns it the current time. Incoming log entries should have timestamps that are no more than the [logs retention period](/logging/quota-policy) in the past, and no more than 24 hours in the future. See the `entries.write` API method for more information.
.google.protobuf.Timestamp timestamp = 9;
hasTimestamp
in interface LogEntryOrBuilder
public Timestamp getTimestamp()
Optional. The time the event described by the log entry occurred. This time is used to compute the log entry's age and to enforce the logs retention period. If this field is omitted in a new log entry, then Stackdriver Logging assigns it the current time. Incoming log entries should have timestamps that are no more than the [logs retention period](/logging/quota-policy) in the past, and no more than 24 hours in the future. See the `entries.write` API method for more information.
.google.protobuf.Timestamp timestamp = 9;
getTimestamp
in interface LogEntryOrBuilder
public LogEntry.Builder setTimestamp(Timestamp value)
Optional. The time the event described by the log entry occurred. This time is used to compute the log entry's age and to enforce the logs retention period. If this field is omitted in a new log entry, then Stackdriver Logging assigns it the current time. Incoming log entries should have timestamps that are no more than the [logs retention period](/logging/quota-policy) in the past, and no more than 24 hours in the future. See the `entries.write` API method for more information.
.google.protobuf.Timestamp timestamp = 9;
public LogEntry.Builder setTimestamp(Timestamp.Builder builderForValue)
Optional. The time the event described by the log entry occurred. This time is used to compute the log entry's age and to enforce the logs retention period. If this field is omitted in a new log entry, then Stackdriver Logging assigns it the current time. Incoming log entries should have timestamps that are no more than the [logs retention period](/logging/quota-policy) in the past, and no more than 24 hours in the future. See the `entries.write` API method for more information.
.google.protobuf.Timestamp timestamp = 9;
public LogEntry.Builder mergeTimestamp(Timestamp value)
Optional. The time the event described by the log entry occurred. This time is used to compute the log entry's age and to enforce the logs retention period. If this field is omitted in a new log entry, then Stackdriver Logging assigns it the current time. Incoming log entries should have timestamps that are no more than the [logs retention period](/logging/quota-policy) in the past, and no more than 24 hours in the future. See the `entries.write` API method for more information.
.google.protobuf.Timestamp timestamp = 9;
public LogEntry.Builder clearTimestamp()
Optional. The time the event described by the log entry occurred. This time is used to compute the log entry's age and to enforce the logs retention period. If this field is omitted in a new log entry, then Stackdriver Logging assigns it the current time. Incoming log entries should have timestamps that are no more than the [logs retention period](/logging/quota-policy) in the past, and no more than 24 hours in the future. See the `entries.write` API method for more information.
.google.protobuf.Timestamp timestamp = 9;
public Timestamp.Builder getTimestampBuilder()
Optional. The time the event described by the log entry occurred. This time is used to compute the log entry's age and to enforce the logs retention period. If this field is omitted in a new log entry, then Stackdriver Logging assigns it the current time. Incoming log entries should have timestamps that are no more than the [logs retention period](/logging/quota-policy) in the past, and no more than 24 hours in the future. See the `entries.write` API method for more information.
.google.protobuf.Timestamp timestamp = 9;
public TimestampOrBuilder getTimestampOrBuilder()
Optional. The time the event described by the log entry occurred. This time is used to compute the log entry's age and to enforce the logs retention period. If this field is omitted in a new log entry, then Stackdriver Logging assigns it the current time. Incoming log entries should have timestamps that are no more than the [logs retention period](/logging/quota-policy) in the past, and no more than 24 hours in the future. See the `entries.write` API method for more information.
.google.protobuf.Timestamp timestamp = 9;
getTimestampOrBuilder
in interface LogEntryOrBuilder
public boolean hasReceiveTimestamp()
Output only. The time the log entry was received by Stackdriver Logging.
.google.protobuf.Timestamp receive_timestamp = 24;
hasReceiveTimestamp
in interface LogEntryOrBuilder
public Timestamp getReceiveTimestamp()
Output only. The time the log entry was received by Stackdriver Logging.
.google.protobuf.Timestamp receive_timestamp = 24;
getReceiveTimestamp
in interface LogEntryOrBuilder
public LogEntry.Builder setReceiveTimestamp(Timestamp value)
Output only. The time the log entry was received by Stackdriver Logging.
.google.protobuf.Timestamp receive_timestamp = 24;
public LogEntry.Builder setReceiveTimestamp(Timestamp.Builder builderForValue)
Output only. The time the log entry was received by Stackdriver Logging.
.google.protobuf.Timestamp receive_timestamp = 24;
public LogEntry.Builder mergeReceiveTimestamp(Timestamp value)
Output only. The time the log entry was received by Stackdriver Logging.
.google.protobuf.Timestamp receive_timestamp = 24;
public LogEntry.Builder clearReceiveTimestamp()
Output only. The time the log entry was received by Stackdriver Logging.
.google.protobuf.Timestamp receive_timestamp = 24;
public Timestamp.Builder getReceiveTimestampBuilder()
Output only. The time the log entry was received by Stackdriver Logging.
.google.protobuf.Timestamp receive_timestamp = 24;
public TimestampOrBuilder getReceiveTimestampOrBuilder()
Output only. The time the log entry was received by Stackdriver Logging.
.google.protobuf.Timestamp receive_timestamp = 24;
getReceiveTimestampOrBuilder
in interface LogEntryOrBuilder
public int getSeverityValue()
Optional. The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
.google.logging.type.LogSeverity severity = 10;
getSeverityValue
in interface LogEntryOrBuilder
public LogEntry.Builder setSeverityValue(int value)
Optional. The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
.google.logging.type.LogSeverity severity = 10;
public LogSeverity getSeverity()
Optional. The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
.google.logging.type.LogSeverity severity = 10;
getSeverity
in interface LogEntryOrBuilder
public LogEntry.Builder setSeverity(LogSeverity value)
Optional. The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
.google.logging.type.LogSeverity severity = 10;
public LogEntry.Builder clearSeverity()
Optional. The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
.google.logging.type.LogSeverity severity = 10;
public java.lang.String getInsertId()
Optional. A unique identifier for the log entry. If you provide a value, then Stackdriver Logging considers other log entries in the same project, with the same `timestamp`, and with the same `insert_id` to be duplicates which can be removed. If omitted in new log entries, then Stackdriver Logging assigns its own unique identifier. The `insert_id` is also used to order log entries that have the same `timestamp` value.
string insert_id = 4;
getInsertId
in interface LogEntryOrBuilder
public ByteString getInsertIdBytes()
Optional. A unique identifier for the log entry. If you provide a value, then Stackdriver Logging considers other log entries in the same project, with the same `timestamp`, and with the same `insert_id` to be duplicates which can be removed. If omitted in new log entries, then Stackdriver Logging assigns its own unique identifier. The `insert_id` is also used to order log entries that have the same `timestamp` value.
string insert_id = 4;
getInsertIdBytes
in interface LogEntryOrBuilder
public LogEntry.Builder setInsertId(java.lang.String value)
Optional. A unique identifier for the log entry. If you provide a value, then Stackdriver Logging considers other log entries in the same project, with the same `timestamp`, and with the same `insert_id` to be duplicates which can be removed. If omitted in new log entries, then Stackdriver Logging assigns its own unique identifier. The `insert_id` is also used to order log entries that have the same `timestamp` value.
string insert_id = 4;
public LogEntry.Builder clearInsertId()
Optional. A unique identifier for the log entry. If you provide a value, then Stackdriver Logging considers other log entries in the same project, with the same `timestamp`, and with the same `insert_id` to be duplicates which can be removed. If omitted in new log entries, then Stackdriver Logging assigns its own unique identifier. The `insert_id` is also used to order log entries that have the same `timestamp` value.
string insert_id = 4;
public LogEntry.Builder setInsertIdBytes(ByteString value)
Optional. A unique identifier for the log entry. If you provide a value, then Stackdriver Logging considers other log entries in the same project, with the same `timestamp`, and with the same `insert_id` to be duplicates which can be removed. If omitted in new log entries, then Stackdriver Logging assigns its own unique identifier. The `insert_id` is also used to order log entries that have the same `timestamp` value.
string insert_id = 4;
public boolean hasHttpRequest()
Optional. Information about the HTTP request associated with this log entry, if applicable.
.google.logging.type.HttpRequest http_request = 7;
hasHttpRequest
in interface LogEntryOrBuilder
public HttpRequest getHttpRequest()
Optional. Information about the HTTP request associated with this log entry, if applicable.
.google.logging.type.HttpRequest http_request = 7;
getHttpRequest
in interface LogEntryOrBuilder
public LogEntry.Builder setHttpRequest(HttpRequest value)
Optional. Information about the HTTP request associated with this log entry, if applicable.
.google.logging.type.HttpRequest http_request = 7;
public LogEntry.Builder setHttpRequest(HttpRequest.Builder builderForValue)
Optional. Information about the HTTP request associated with this log entry, if applicable.
.google.logging.type.HttpRequest http_request = 7;
public LogEntry.Builder mergeHttpRequest(HttpRequest value)
Optional. Information about the HTTP request associated with this log entry, if applicable.
.google.logging.type.HttpRequest http_request = 7;
public LogEntry.Builder clearHttpRequest()
Optional. Information about the HTTP request associated with this log entry, if applicable.
.google.logging.type.HttpRequest http_request = 7;
public HttpRequest.Builder getHttpRequestBuilder()
Optional. Information about the HTTP request associated with this log entry, if applicable.
.google.logging.type.HttpRequest http_request = 7;
public HttpRequestOrBuilder getHttpRequestOrBuilder()
Optional. Information about the HTTP request associated with this log entry, if applicable.
.google.logging.type.HttpRequest http_request = 7;
getHttpRequestOrBuilder
in interface LogEntryOrBuilder
public int getLabelsCount()
LogEntryOrBuilder
Optional. A set of user-defined (key, value) data that provides additional information about the log entry.
map<string, string> labels = 11;
getLabelsCount
in interface LogEntryOrBuilder
public boolean containsLabels(java.lang.String key)
Optional. A set of user-defined (key, value) data that provides additional information about the log entry.
map<string, string> labels = 11;
containsLabels
in interface LogEntryOrBuilder
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getLabels()
getLabelsMap()
instead.getLabels
in interface LogEntryOrBuilder
public java.util.Map<java.lang.String,java.lang.String> getLabelsMap()
Optional. A set of user-defined (key, value) data that provides additional information about the log entry.
map<string, string> labels = 11;
getLabelsMap
in interface LogEntryOrBuilder
public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue)
Optional. A set of user-defined (key, value) data that provides additional information about the log entry.
map<string, string> labels = 11;
getLabelsOrDefault
in interface LogEntryOrBuilder
public java.lang.String getLabelsOrThrow(java.lang.String key)
Optional. A set of user-defined (key, value) data that provides additional information about the log entry.
map<string, string> labels = 11;
getLabelsOrThrow
in interface LogEntryOrBuilder
public LogEntry.Builder clearLabels()
public LogEntry.Builder removeLabels(java.lang.String key)
Optional. A set of user-defined (key, value) data that provides additional information about the log entry.
map<string, string> labels = 11;
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMutableLabels()
public LogEntry.Builder putLabels(java.lang.String key, java.lang.String value)
Optional. A set of user-defined (key, value) data that provides additional information about the log entry.
map<string, string> labels = 11;
public LogEntry.Builder putAllLabels(java.util.Map<java.lang.String,java.lang.String> values)
Optional. A set of user-defined (key, value) data that provides additional information about the log entry.
map<string, string> labels = 11;
public boolean hasOperation()
Optional. Information about an operation associated with the log entry, if applicable.
.google.logging.v2.LogEntryOperation operation = 15;
hasOperation
in interface LogEntryOrBuilder
public LogEntryOperation getOperation()
Optional. Information about an operation associated with the log entry, if applicable.
.google.logging.v2.LogEntryOperation operation = 15;
getOperation
in interface LogEntryOrBuilder
public LogEntry.Builder setOperation(LogEntryOperation value)
Optional. Information about an operation associated with the log entry, if applicable.
.google.logging.v2.LogEntryOperation operation = 15;
public LogEntry.Builder setOperation(LogEntryOperation.Builder builderForValue)
Optional. Information about an operation associated with the log entry, if applicable.
.google.logging.v2.LogEntryOperation operation = 15;
public LogEntry.Builder mergeOperation(LogEntryOperation value)
Optional. Information about an operation associated with the log entry, if applicable.
.google.logging.v2.LogEntryOperation operation = 15;
public LogEntry.Builder clearOperation()
Optional. Information about an operation associated with the log entry, if applicable.
.google.logging.v2.LogEntryOperation operation = 15;
public LogEntryOperation.Builder getOperationBuilder()
Optional. Information about an operation associated with the log entry, if applicable.
.google.logging.v2.LogEntryOperation operation = 15;
public LogEntryOperationOrBuilder getOperationOrBuilder()
Optional. Information about an operation associated with the log entry, if applicable.
.google.logging.v2.LogEntryOperation operation = 15;
getOperationOrBuilder
in interface LogEntryOrBuilder
public java.lang.String getTrace()
Optional. Resource name of the trace associated with the log entry, if any. If it contains a relative resource name, the name is assumed to be relative to `//tracing.googleapis.com`. Example: `projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824`
string trace = 22;
getTrace
in interface LogEntryOrBuilder
public ByteString getTraceBytes()
Optional. Resource name of the trace associated with the log entry, if any. If it contains a relative resource name, the name is assumed to be relative to `//tracing.googleapis.com`. Example: `projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824`
string trace = 22;
getTraceBytes
in interface LogEntryOrBuilder
public LogEntry.Builder setTrace(java.lang.String value)
Optional. Resource name of the trace associated with the log entry, if any. If it contains a relative resource name, the name is assumed to be relative to `//tracing.googleapis.com`. Example: `projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824`
string trace = 22;
public LogEntry.Builder clearTrace()
Optional. Resource name of the trace associated with the log entry, if any. If it contains a relative resource name, the name is assumed to be relative to `//tracing.googleapis.com`. Example: `projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824`
string trace = 22;
public LogEntry.Builder setTraceBytes(ByteString value)
Optional. Resource name of the trace associated with the log entry, if any. If it contains a relative resource name, the name is assumed to be relative to `//tracing.googleapis.com`. Example: `projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824`
string trace = 22;
public java.lang.String getSpanId()
Optional. Id of the span within the trace associated with the log entry. e.g. "0000000000000042" For Stackdriver trace spans, this is the same format that the Stackdriver trace API uses. The ID is a 16-character hexadecimal encoding of an 8-byte array.
string span_id = 27;
getSpanId
in interface LogEntryOrBuilder
public ByteString getSpanIdBytes()
Optional. Id of the span within the trace associated with the log entry. e.g. "0000000000000042" For Stackdriver trace spans, this is the same format that the Stackdriver trace API uses. The ID is a 16-character hexadecimal encoding of an 8-byte array.
string span_id = 27;
getSpanIdBytes
in interface LogEntryOrBuilder
public LogEntry.Builder setSpanId(java.lang.String value)
Optional. Id of the span within the trace associated with the log entry. e.g. "0000000000000042" For Stackdriver trace spans, this is the same format that the Stackdriver trace API uses. The ID is a 16-character hexadecimal encoding of an 8-byte array.
string span_id = 27;
public LogEntry.Builder clearSpanId()
Optional. Id of the span within the trace associated with the log entry. e.g. "0000000000000042" For Stackdriver trace spans, this is the same format that the Stackdriver trace API uses. The ID is a 16-character hexadecimal encoding of an 8-byte array.
string span_id = 27;
public LogEntry.Builder setSpanIdBytes(ByteString value)
Optional. Id of the span within the trace associated with the log entry. e.g. "0000000000000042" For Stackdriver trace spans, this is the same format that the Stackdriver trace API uses. The ID is a 16-character hexadecimal encoding of an 8-byte array.
string span_id = 27;
public boolean hasSourceLocation()
Optional. Source code location information associated with the log entry, if any.
.google.logging.v2.LogEntrySourceLocation source_location = 23;
hasSourceLocation
in interface LogEntryOrBuilder
public LogEntrySourceLocation getSourceLocation()
Optional. Source code location information associated with the log entry, if any.
.google.logging.v2.LogEntrySourceLocation source_location = 23;
getSourceLocation
in interface LogEntryOrBuilder
public LogEntry.Builder setSourceLocation(LogEntrySourceLocation value)
Optional. Source code location information associated with the log entry, if any.
.google.logging.v2.LogEntrySourceLocation source_location = 23;
public LogEntry.Builder setSourceLocation(LogEntrySourceLocation.Builder builderForValue)
Optional. Source code location information associated with the log entry, if any.
.google.logging.v2.LogEntrySourceLocation source_location = 23;
public LogEntry.Builder mergeSourceLocation(LogEntrySourceLocation value)
Optional. Source code location information associated with the log entry, if any.
.google.logging.v2.LogEntrySourceLocation source_location = 23;
public LogEntry.Builder clearSourceLocation()
Optional. Source code location information associated with the log entry, if any.
.google.logging.v2.LogEntrySourceLocation source_location = 23;
public LogEntrySourceLocation.Builder getSourceLocationBuilder()
Optional. Source code location information associated with the log entry, if any.
.google.logging.v2.LogEntrySourceLocation source_location = 23;
public LogEntrySourceLocationOrBuilder getSourceLocationOrBuilder()
Optional. Source code location information associated with the log entry, if any.
.google.logging.v2.LogEntrySourceLocation source_location = 23;
getSourceLocationOrBuilder
in interface LogEntryOrBuilder
public final LogEntry.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<LogEntry.Builder>
public final LogEntry.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<LogEntry.Builder>