Package com.google.api.servicecontrol.v1
Class LogEntry.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
-
- com.google.api.servicecontrol.v1.LogEntry.Builder
-
- All Implemented Interfaces:
LogEntryOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- LogEntry
public static final class LogEntry.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder> implements LogEntryOrBuilder
An individual log entry.
Protobuf typegoogle.api.servicecontrol.v1.LogEntry
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description LogEntry.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)LogEntrybuild()LogEntrybuildPartial()LogEntry.Builderclear()LogEntry.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)LogEntry.BuilderclearHttpRequest()Optional.LogEntry.BuilderclearInsertId()A unique ID for the log entry used for deduplication.LogEntry.BuilderclearLabels()LogEntry.BuilderclearName()Required.LogEntry.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)LogEntry.BuilderclearOperation()Optional.LogEntry.BuilderclearPayload()LogEntry.BuilderclearProtoPayload()The log entry payload, represented as a protocol buffer that is expressed as a JSON object.LogEntry.BuilderclearSeverity()The severity of the log entry.LogEntry.BuilderclearSourceLocation()Optional.LogEntry.BuilderclearStructPayload()The log entry payload, represented as a structure that is expressed as a JSON object.LogEntry.BuilderclearTextPayload()The log entry payload, represented as a Unicode string (UTF-8).LogEntry.BuilderclearTimestamp()The time the event described by the log entry occurred.LogEntry.BuilderclearTrace()Optional.LogEntry.Builderclone()booleancontainsLabels(String key)A set of user-defined (key, value) data that provides additional information about the log entry.LogEntrygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()HttpRequestgetHttpRequest()Optional.HttpRequest.BuildergetHttpRequestBuilder()Optional.HttpRequestOrBuildergetHttpRequestOrBuilder()Optional.StringgetInsertId()A unique ID for the log entry used for deduplication.com.google.protobuf.ByteStringgetInsertIdBytes()A unique ID for the log entry used for deduplication.Map<String,String>getLabels()Deprecated.intgetLabelsCount()A set of user-defined (key, value) data that provides additional information about the log entry.Map<String,String>getLabelsMap()A set of user-defined (key, value) data that provides additional information about the log entry.StringgetLabelsOrDefault(String key, String defaultValue)A set of user-defined (key, value) data that provides additional information about the log entry.StringgetLabelsOrThrow(String key)A set of user-defined (key, value) data that provides additional information about the log entry.Map<String,String>getMutableLabels()Deprecated.StringgetName()Required.com.google.protobuf.ByteStringgetNameBytes()Required.LogEntryOperationgetOperation()Optional.LogEntryOperation.BuildergetOperationBuilder()Optional.LogEntryOperationOrBuildergetOperationOrBuilder()Optional.LogEntry.PayloadCasegetPayloadCase()com.google.protobuf.AnygetProtoPayload()The log entry payload, represented as a protocol buffer that is expressed as a JSON object.com.google.protobuf.Any.BuildergetProtoPayloadBuilder()The log entry payload, represented as a protocol buffer that is expressed as a JSON object.com.google.protobuf.AnyOrBuildergetProtoPayloadOrBuilder()The log entry payload, represented as a protocol buffer that is expressed as a JSON object.com.google.logging.type.LogSeveritygetSeverity()The severity of the log entry.intgetSeverityValue()The severity of the log entry.LogEntrySourceLocationgetSourceLocation()Optional.LogEntrySourceLocation.BuildergetSourceLocationBuilder()Optional.LogEntrySourceLocationOrBuildergetSourceLocationOrBuilder()Optional.com.google.protobuf.StructgetStructPayload()The log entry payload, represented as a structure that is expressed as a JSON object.com.google.protobuf.Struct.BuildergetStructPayloadBuilder()The log entry payload, represented as a structure that is expressed as a JSON object.com.google.protobuf.StructOrBuildergetStructPayloadOrBuilder()The log entry payload, represented as a structure that is expressed as a JSON object.StringgetTextPayload()The log entry payload, represented as a Unicode string (UTF-8).com.google.protobuf.ByteStringgetTextPayloadBytes()The log entry payload, represented as a Unicode string (UTF-8).com.google.protobuf.TimestampgetTimestamp()The time the event described by the log entry occurred.com.google.protobuf.Timestamp.BuildergetTimestampBuilder()The time the event described by the log entry occurred.com.google.protobuf.TimestampOrBuildergetTimestampOrBuilder()The time the event described by the log entry occurred.StringgetTrace()Optional.com.google.protobuf.ByteStringgetTraceBytes()Optional.booleanhasHttpRequest()Optional.booleanhasOperation()Optional.booleanhasProtoPayload()The log entry payload, represented as a protocol buffer that is expressed as a JSON object.booleanhasSourceLocation()Optional.booleanhasStructPayload()The log entry payload, represented as a structure that is expressed as a JSON object.booleanhasTextPayload()The log entry payload, represented as a Unicode string (UTF-8).booleanhasTimestamp()The time the event described by the log entry occurred.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()LogEntry.BuildermergeFrom(LogEntry other)LogEntry.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)LogEntry.BuildermergeFrom(com.google.protobuf.Message other)LogEntry.BuildermergeHttpRequest(HttpRequest value)Optional.LogEntry.BuildermergeOperation(LogEntryOperation value)Optional.LogEntry.BuildermergeProtoPayload(com.google.protobuf.Any value)The log entry payload, represented as a protocol buffer that is expressed as a JSON object.LogEntry.BuildermergeSourceLocation(LogEntrySourceLocation value)Optional.LogEntry.BuildermergeStructPayload(com.google.protobuf.Struct value)The log entry payload, represented as a structure that is expressed as a JSON object.LogEntry.BuildermergeTimestamp(com.google.protobuf.Timestamp value)The time the event described by the log entry occurred.LogEntry.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)LogEntry.BuilderputAllLabels(Map<String,String> values)A set of user-defined (key, value) data that provides additional information about the log entry.LogEntry.BuilderputLabels(String key, String value)A set of user-defined (key, value) data that provides additional information about the log entry.LogEntry.BuilderremoveLabels(String key)A set of user-defined (key, value) data that provides additional information about the log entry.LogEntry.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)LogEntry.BuildersetHttpRequest(HttpRequest value)Optional.LogEntry.BuildersetHttpRequest(HttpRequest.Builder builderForValue)Optional.LogEntry.BuildersetInsertId(String value)A unique ID for the log entry used for deduplication.LogEntry.BuildersetInsertIdBytes(com.google.protobuf.ByteString value)A unique ID for the log entry used for deduplication.LogEntry.BuildersetName(String value)Required.LogEntry.BuildersetNameBytes(com.google.protobuf.ByteString value)Required.LogEntry.BuildersetOperation(LogEntryOperation value)Optional.LogEntry.BuildersetOperation(LogEntryOperation.Builder builderForValue)Optional.LogEntry.BuildersetProtoPayload(com.google.protobuf.Any value)The log entry payload, represented as a protocol buffer that is expressed as a JSON object.LogEntry.BuildersetProtoPayload(com.google.protobuf.Any.Builder builderForValue)The log entry payload, represented as a protocol buffer that is expressed as a JSON object.LogEntry.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)LogEntry.BuildersetSeverity(com.google.logging.type.LogSeverity value)The severity of the log entry.LogEntry.BuildersetSeverityValue(int value)The severity of the log entry.LogEntry.BuildersetSourceLocation(LogEntrySourceLocation value)Optional.LogEntry.BuildersetSourceLocation(LogEntrySourceLocation.Builder builderForValue)Optional.LogEntry.BuildersetStructPayload(com.google.protobuf.Struct value)The log entry payload, represented as a structure that is expressed as a JSON object.LogEntry.BuildersetStructPayload(com.google.protobuf.Struct.Builder builderForValue)The log entry payload, represented as a structure that is expressed as a JSON object.LogEntry.BuildersetTextPayload(String value)The log entry payload, represented as a Unicode string (UTF-8).LogEntry.BuildersetTextPayloadBytes(com.google.protobuf.ByteString value)The log entry payload, represented as a Unicode string (UTF-8).LogEntry.BuildersetTimestamp(com.google.protobuf.Timestamp value)The time the event described by the log entry occurred.LogEntry.BuildersetTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)The time the event described by the log entry occurred.LogEntry.BuildersetTrace(String value)Optional.LogEntry.BuildersetTraceBytes(com.google.protobuf.ByteString value)Optional.LogEntry.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
-
clear
public LogEntry.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
-
getDefaultInstanceForType
public LogEntry getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public LogEntry build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public LogEntry buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public LogEntry.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
-
setField
public LogEntry.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
-
clearField
public LogEntry.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
-
clearOneof
public LogEntry.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
-
setRepeatedField
public LogEntry.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
-
addRepeatedField
public LogEntry.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
-
mergeFrom
public LogEntry.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LogEntry.Builder>
-
mergeFrom
public LogEntry.Builder mergeFrom(LogEntry other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
-
mergeFrom
public LogEntry.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LogEntry.Builder>- Throws:
IOException
-
getPayloadCase
public LogEntry.PayloadCase getPayloadCase()
- Specified by:
getPayloadCasein interfaceLogEntryOrBuilder
-
clearPayload
public LogEntry.Builder clearPayload()
-
getName
public String getName()
Required. The log to which this log entry belongs. Examples: `"syslog"`, `"book_log"`.
string name = 10;- Specified by:
getNamein interfaceLogEntryOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Required. The log to which this log entry belongs. Examples: `"syslog"`, `"book_log"`.
string name = 10;- Specified by:
getNameBytesin interfaceLogEntryOrBuilder- Returns:
- The bytes for name.
-
setName
public LogEntry.Builder setName(String value)
Required. The log to which this log entry belongs. Examples: `"syslog"`, `"book_log"`.
string name = 10;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public LogEntry.Builder clearName()
Required. The log to which this log entry belongs. Examples: `"syslog"`, `"book_log"`.
string name = 10;- Returns:
- This builder for chaining.
-
setNameBytes
public LogEntry.Builder setNameBytes(com.google.protobuf.ByteString value)
Required. The log to which this log entry belongs. Examples: `"syslog"`, `"book_log"`.
string name = 10;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasTimestampin interfaceLogEntryOrBuilder- Returns:
- Whether the timestamp field is set.
-
getTimestamp
public com.google.protobuf.Timestamp getTimestamp()
The time the event described by the log entry occurred. If omitted, defaults to operation start time.
.google.protobuf.Timestamp timestamp = 11;- Specified by:
getTimestampin interfaceLogEntryOrBuilder- Returns:
- The timestamp.
-
setTimestamp
public LogEntry.Builder setTimestamp(com.google.protobuf.Timestamp value)
The time the event described by the log entry occurred. If omitted, defaults to operation start time.
.google.protobuf.Timestamp timestamp = 11;
-
setTimestamp
public LogEntry.Builder setTimestamp(com.google.protobuf.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;
-
mergeTimestamp
public LogEntry.Builder mergeTimestamp(com.google.protobuf.Timestamp value)
The time the event described by the log entry occurred. If omitted, defaults to operation start time.
.google.protobuf.Timestamp timestamp = 11;
-
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;
-
getTimestampBuilder
public com.google.protobuf.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;
-
getTimestampOrBuilder
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder()
The time the event described by the log entry occurred. If omitted, defaults to operation start time.
.google.protobuf.Timestamp timestamp = 11;- Specified by:
getTimestampOrBuilderin interfaceLogEntryOrBuilder
-
getSeverityValue
public int getSeverityValue()
The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
.google.logging.type.LogSeverity severity = 12;- Specified by:
getSeverityValuein interfaceLogEntryOrBuilder- Returns:
- The enum numeric value on the wire for severity.
-
setSeverityValue
public LogEntry.Builder setSeverityValue(int value)
The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
.google.logging.type.LogSeverity severity = 12;- Parameters:
value- The enum numeric value on the wire for severity to set.- Returns:
- This builder for chaining.
-
getSeverity
public com.google.logging.type.LogSeverity getSeverity()
The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
.google.logging.type.LogSeverity severity = 12;- Specified by:
getSeverityin interfaceLogEntryOrBuilder- Returns:
- The severity.
-
setSeverity
public LogEntry.Builder setSeverity(com.google.logging.type.LogSeverity value)
The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
.google.logging.type.LogSeverity severity = 12;- Parameters:
value- The severity to set.- Returns:
- This builder for chaining.
-
clearSeverity
public LogEntry.Builder clearSeverity()
The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
.google.logging.type.LogSeverity severity = 12;- Returns:
- This builder for chaining.
-
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;- Specified by:
hasHttpRequestin interfaceLogEntryOrBuilder- Returns:
- Whether the httpRequest field is set.
-
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;- Specified by:
getHttpRequestin interfaceLogEntryOrBuilder- Returns:
- The httpRequest.
-
setHttpRequest
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;
-
setHttpRequest
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;
-
mergeHttpRequest
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;
-
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;
-
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;
-
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;- Specified by:
getHttpRequestOrBuilderin interfaceLogEntryOrBuilder
-
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;- Specified by:
getTracein interfaceLogEntryOrBuilder- Returns:
- The trace.
-
getTraceBytes
public com.google.protobuf.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;- Specified by:
getTraceBytesin interfaceLogEntryOrBuilder- Returns:
- The bytes for trace.
-
setTrace
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;- Parameters:
value- The trace to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setTraceBytes
public LogEntry.Builder setTraceBytes(com.google.protobuf.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;- Parameters:
value- The bytes for trace to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getInsertIdin interfaceLogEntryOrBuilder- Returns:
- The insertId.
-
getInsertIdBytes
public com.google.protobuf.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;- Specified by:
getInsertIdBytesin interfaceLogEntryOrBuilder- Returns:
- The bytes for insertId.
-
setInsertId
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;- Parameters:
value- The insertId to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setInsertIdBytes
public LogEntry.Builder setInsertIdBytes(com.google.protobuf.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;- Parameters:
value- The bytes for insertId to set.- Returns:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:LogEntryOrBuilderA set of user-defined (key, value) data that provides additional information about the log entry.
map<string, string> labels = 13;- Specified by:
getLabelsCountin interfaceLogEntryOrBuilder
-
containsLabels
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;- Specified by:
containsLabelsin interfaceLogEntryOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceLogEntryOrBuilder
-
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;- Specified by:
getLabelsMapin interfaceLogEntryOrBuilder
-
getLabelsOrDefault
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;- Specified by:
getLabelsOrDefaultin interfaceLogEntryOrBuilder
-
getLabelsOrThrow
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;- Specified by:
getLabelsOrThrowin interfaceLogEntryOrBuilder
-
clearLabels
public LogEntry.Builder clearLabels()
-
removeLabels
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;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
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;
-
putAllLabels
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;
-
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.cloud.audit.AuditLog].
.google.protobuf.Any proto_payload = 2;- Specified by:
hasProtoPayloadin interfaceLogEntryOrBuilder- Returns:
- Whether the protoPayload field is set.
-
getProtoPayload
public com.google.protobuf.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.cloud.audit.AuditLog].
.google.protobuf.Any proto_payload = 2;- Specified by:
getProtoPayloadin interfaceLogEntryOrBuilder- Returns:
- The protoPayload.
-
setProtoPayload
public LogEntry.Builder setProtoPayload(com.google.protobuf.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.cloud.audit.AuditLog].
.google.protobuf.Any proto_payload = 2;
-
setProtoPayload
public LogEntry.Builder setProtoPayload(com.google.protobuf.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.cloud.audit.AuditLog].
.google.protobuf.Any proto_payload = 2;
-
mergeProtoPayload
public LogEntry.Builder mergeProtoPayload(com.google.protobuf.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.cloud.audit.AuditLog].
.google.protobuf.Any proto_payload = 2;
-
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.cloud.audit.AuditLog].
.google.protobuf.Any proto_payload = 2;
-
getProtoPayloadBuilder
public com.google.protobuf.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.cloud.audit.AuditLog].
.google.protobuf.Any proto_payload = 2;
-
getProtoPayloadOrBuilder
public com.google.protobuf.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.cloud.audit.AuditLog].
.google.protobuf.Any proto_payload = 2;- Specified by:
getProtoPayloadOrBuilderin interfaceLogEntryOrBuilder
-
hasTextPayload
public boolean hasTextPayload()
The log entry payload, represented as a Unicode string (UTF-8).
string text_payload = 3;- Specified by:
hasTextPayloadin interfaceLogEntryOrBuilder- Returns:
- Whether the textPayload field is set.
-
getTextPayload
public String getTextPayload()
The log entry payload, represented as a Unicode string (UTF-8).
string text_payload = 3;- Specified by:
getTextPayloadin interfaceLogEntryOrBuilder- Returns:
- The textPayload.
-
getTextPayloadBytes
public com.google.protobuf.ByteString getTextPayloadBytes()
The log entry payload, represented as a Unicode string (UTF-8).
string text_payload = 3;- Specified by:
getTextPayloadBytesin interfaceLogEntryOrBuilder- Returns:
- The bytes for textPayload.
-
setTextPayload
public LogEntry.Builder setTextPayload(String value)
The log entry payload, represented as a Unicode string (UTF-8).
string text_payload = 3;- Parameters:
value- The textPayload to set.- Returns:
- This builder for chaining.
-
clearTextPayload
public LogEntry.Builder clearTextPayload()
The log entry payload, represented as a Unicode string (UTF-8).
string text_payload = 3;- Returns:
- This builder for chaining.
-
setTextPayloadBytes
public LogEntry.Builder setTextPayloadBytes(com.google.protobuf.ByteString value)
The log entry payload, represented as a Unicode string (UTF-8).
string text_payload = 3;- Parameters:
value- The bytes for textPayload to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasStructPayloadin interfaceLogEntryOrBuilder- Returns:
- Whether the structPayload field is set.
-
getStructPayload
public com.google.protobuf.Struct getStructPayload()
The log entry payload, represented as a structure that is expressed as a JSON object.
.google.protobuf.Struct struct_payload = 6;- Specified by:
getStructPayloadin interfaceLogEntryOrBuilder- Returns:
- The structPayload.
-
setStructPayload
public LogEntry.Builder setStructPayload(com.google.protobuf.Struct value)
The log entry payload, represented as a structure that is expressed as a JSON object.
.google.protobuf.Struct struct_payload = 6;
-
setStructPayload
public LogEntry.Builder setStructPayload(com.google.protobuf.Struct.Builder builderForValue)
The log entry payload, represented as a structure that is expressed as a JSON object.
.google.protobuf.Struct struct_payload = 6;
-
mergeStructPayload
public LogEntry.Builder mergeStructPayload(com.google.protobuf.Struct value)
The log entry payload, represented as a structure that is expressed as a JSON object.
.google.protobuf.Struct struct_payload = 6;
-
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;
-
getStructPayloadBuilder
public com.google.protobuf.Struct.Builder getStructPayloadBuilder()
The log entry payload, represented as a structure that is expressed as a JSON object.
.google.protobuf.Struct struct_payload = 6;
-
getStructPayloadOrBuilder
public com.google.protobuf.StructOrBuilder getStructPayloadOrBuilder()
The log entry payload, represented as a structure that is expressed as a JSON object.
.google.protobuf.Struct struct_payload = 6;- Specified by:
getStructPayloadOrBuilderin interfaceLogEntryOrBuilder
-
hasOperation
public boolean hasOperation()
Optional. Information about an operation associated with the log entry, if applicable.
.google.api.servicecontrol.v1.LogEntryOperation operation = 16;- Specified by:
hasOperationin interfaceLogEntryOrBuilder- Returns:
- Whether the operation field is set.
-
getOperation
public LogEntryOperation getOperation()
Optional. Information about an operation associated with the log entry, if applicable.
.google.api.servicecontrol.v1.LogEntryOperation operation = 16;- Specified by:
getOperationin interfaceLogEntryOrBuilder- Returns:
- The operation.
-
setOperation
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;
-
setOperation
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;
-
mergeOperation
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;
-
clearOperation
public LogEntry.Builder clearOperation()
Optional. Information about an operation associated with the log entry, if applicable.
.google.api.servicecontrol.v1.LogEntryOperation operation = 16;
-
getOperationBuilder
public LogEntryOperation.Builder getOperationBuilder()
Optional. Information about an operation associated with the log entry, if applicable.
.google.api.servicecontrol.v1.LogEntryOperation operation = 16;
-
getOperationOrBuilder
public LogEntryOperationOrBuilder getOperationOrBuilder()
Optional. Information about an operation associated with the log entry, if applicable.
.google.api.servicecontrol.v1.LogEntryOperation operation = 16;- Specified by:
getOperationOrBuilderin interfaceLogEntryOrBuilder
-
hasSourceLocation
public boolean hasSourceLocation()
Optional. Source code location information associated with the log entry, if any.
.google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;- Specified by:
hasSourceLocationin interfaceLogEntryOrBuilder- Returns:
- Whether the sourceLocation field is set.
-
getSourceLocation
public LogEntrySourceLocation getSourceLocation()
Optional. Source code location information associated with the log entry, if any.
.google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;- Specified by:
getSourceLocationin interfaceLogEntryOrBuilder- Returns:
- The sourceLocation.
-
setSourceLocation
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;
-
setSourceLocation
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;
-
mergeSourceLocation
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;
-
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;
-
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;
-
getSourceLocationOrBuilder
public LogEntrySourceLocationOrBuilder getSourceLocationOrBuilder()
Optional. Source code location information associated with the log entry, if any.
.google.api.servicecontrol.v1.LogEntrySourceLocation source_location = 17;- Specified by:
getSourceLocationOrBuilderin interfaceLogEntryOrBuilder
-
setUnknownFields
public final LogEntry.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
-
mergeUnknownFields
public final LogEntry.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LogEntry.Builder>
-
-