Class LogRecord.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
-
- io.temporal.api.cloud.auditlog.v1.LogRecord.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,LogRecordOrBuilder,java.lang.Cloneable
- Enclosing class:
- LogRecord
public static final class LogRecord.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder> implements LogRecordOrBuilder
LogRecord represents an audit log entry from Temporal, structured for easy parsing and analysis.
Protobuf typetemporal.api.cloud.auditlog.v1.LogRecord
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LogRecord.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)LogRecordbuild()LogRecordbuildPartial()LogRecord.Builderclear()LogRecord.BuilderclearAsyncOperationId()The ID of the async operation.LogRecord.BuilderclearEmitTime()Time when the log was emitted.LogRecord.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)LogRecord.BuilderclearLogId()Unique ID for the log record.LogRecord.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)LogRecord.BuilderclearOperation()The operation performed.LogRecord.BuilderclearPrincipal()The principal that performed the operation.LogRecord.BuilderclearRawDetails()The raw details of the operation.LogRecord.BuilderclearStatus()The status of the operation.LogRecord.BuilderclearVersion()The internal version of the log message.LogRecord.BuilderclearXForwardedFor()The originating IP address of the request.LogRecord.Builderclone()java.lang.StringgetAsyncOperationId()The ID of the async operation.com.google.protobuf.ByteStringgetAsyncOperationIdBytes()The ID of the async operation.LogRecordgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.TimestampgetEmitTime()Time when the log was emitted.com.google.protobuf.Timestamp.BuildergetEmitTimeBuilder()Time when the log was emitted.com.google.protobuf.TimestampOrBuildergetEmitTimeOrBuilder()Time when the log was emitted.java.lang.StringgetLogId()Unique ID for the log record.com.google.protobuf.ByteStringgetLogIdBytes()Unique ID for the log record.java.lang.StringgetOperation()The operation performed.com.google.protobuf.ByteStringgetOperationBytes()The operation performed.PrincipalgetPrincipal()The principal that performed the operation.Principal.BuildergetPrincipalBuilder()The principal that performed the operation.PrincipalOrBuildergetPrincipalOrBuilder()The principal that performed the operation.com.google.protobuf.StructgetRawDetails()The raw details of the operation.com.google.protobuf.Struct.BuildergetRawDetailsBuilder()The raw details of the operation.com.google.protobuf.StructOrBuildergetRawDetailsOrBuilder()The raw details of the operation.java.lang.StringgetStatus()The status of the operation.com.google.protobuf.ByteStringgetStatusBytes()The status of the operation.intgetVersion()The internal version of the log message.java.lang.StringgetXForwardedFor()The originating IP address of the request.com.google.protobuf.ByteStringgetXForwardedForBytes()The originating IP address of the request.booleanhasEmitTime()Time when the log was emitted.booleanhasPrincipal()The principal that performed the operation.booleanhasRawDetails()The raw details of the operation.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()LogRecord.BuildermergeEmitTime(com.google.protobuf.Timestamp value)Time when the log was emitted.LogRecord.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)LogRecord.BuildermergeFrom(com.google.protobuf.Message other)LogRecord.BuildermergeFrom(LogRecord other)LogRecord.BuildermergePrincipal(Principal value)The principal that performed the operation.LogRecord.BuildermergeRawDetails(com.google.protobuf.Struct value)The raw details of the operation.LogRecord.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)LogRecord.BuildersetAsyncOperationId(java.lang.String value)The ID of the async operation.LogRecord.BuildersetAsyncOperationIdBytes(com.google.protobuf.ByteString value)The ID of the async operation.LogRecord.BuildersetEmitTime(com.google.protobuf.Timestamp value)Time when the log was emitted.LogRecord.BuildersetEmitTime(com.google.protobuf.Timestamp.Builder builderForValue)Time when the log was emitted.LogRecord.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)LogRecord.BuildersetLogId(java.lang.String value)Unique ID for the log record.LogRecord.BuildersetLogIdBytes(com.google.protobuf.ByteString value)Unique ID for the log record.LogRecord.BuildersetOperation(java.lang.String value)The operation performed.LogRecord.BuildersetOperationBytes(com.google.protobuf.ByteString value)The operation performed.LogRecord.BuildersetPrincipal(Principal value)The principal that performed the operation.LogRecord.BuildersetPrincipal(Principal.Builder builderForValue)The principal that performed the operation.LogRecord.BuildersetRawDetails(com.google.protobuf.Struct value)The raw details of the operation.LogRecord.BuildersetRawDetails(com.google.protobuf.Struct.Builder builderForValue)The raw details of the operation.LogRecord.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)LogRecord.BuildersetStatus(java.lang.String value)The status of the operation.LogRecord.BuildersetStatusBytes(com.google.protobuf.ByteString value)The status of the operation.LogRecord.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)LogRecord.BuildersetVersion(int value)The internal version of the log message.LogRecord.BuildersetXForwardedFor(java.lang.String value)The originating IP address of the request.LogRecord.BuildersetXForwardedForBytes(com.google.protobuf.ByteString value)The originating IP address of the request.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
-
clear
public LogRecord.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<LogRecord.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<LogRecord.Builder>
-
getDefaultInstanceForType
public LogRecord getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public LogRecord build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public LogRecord buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public LogRecord.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<LogRecord.Builder>
-
setField
public LogRecord.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
-
clearField
public LogRecord.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
-
clearOneof
public LogRecord.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
-
setRepeatedField
public LogRecord.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
-
addRepeatedField
public LogRecord.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
-
mergeFrom
public LogRecord.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LogRecord.Builder>
-
mergeFrom
public LogRecord.Builder mergeFrom(LogRecord other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
-
mergeFrom
public LogRecord.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LogRecord.Builder>- Throws:
java.io.IOException
-
hasEmitTime
public boolean hasEmitTime()
Time when the log was emitted.
.google.protobuf.Timestamp emit_time = 1;- Specified by:
hasEmitTimein interfaceLogRecordOrBuilder- Returns:
- Whether the emitTime field is set.
-
getEmitTime
public com.google.protobuf.Timestamp getEmitTime()
Time when the log was emitted.
.google.protobuf.Timestamp emit_time = 1;- Specified by:
getEmitTimein interfaceLogRecordOrBuilder- Returns:
- The emitTime.
-
setEmitTime
public LogRecord.Builder setEmitTime(com.google.protobuf.Timestamp value)
Time when the log was emitted.
.google.protobuf.Timestamp emit_time = 1;
-
setEmitTime
public LogRecord.Builder setEmitTime(com.google.protobuf.Timestamp.Builder builderForValue)
Time when the log was emitted.
.google.protobuf.Timestamp emit_time = 1;
-
mergeEmitTime
public LogRecord.Builder mergeEmitTime(com.google.protobuf.Timestamp value)
Time when the log was emitted.
.google.protobuf.Timestamp emit_time = 1;
-
clearEmitTime
public LogRecord.Builder clearEmitTime()
Time when the log was emitted.
.google.protobuf.Timestamp emit_time = 1;
-
getEmitTimeBuilder
public com.google.protobuf.Timestamp.Builder getEmitTimeBuilder()
Time when the log was emitted.
.google.protobuf.Timestamp emit_time = 1;
-
getEmitTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getEmitTimeOrBuilder()
Time when the log was emitted.
.google.protobuf.Timestamp emit_time = 1;- Specified by:
getEmitTimeOrBuilderin interfaceLogRecordOrBuilder
-
getOperation
public java.lang.String getOperation()
The operation performed.
string operation = 5;- Specified by:
getOperationin interfaceLogRecordOrBuilder- Returns:
- The operation.
-
getOperationBytes
public com.google.protobuf.ByteString getOperationBytes()
The operation performed.
string operation = 5;- Specified by:
getOperationBytesin interfaceLogRecordOrBuilder- Returns:
- The bytes for operation.
-
setOperation
public LogRecord.Builder setOperation(java.lang.String value)
The operation performed.
string operation = 5;- Parameters:
value- The operation to set.- Returns:
- This builder for chaining.
-
clearOperation
public LogRecord.Builder clearOperation()
The operation performed.
string operation = 5;- Returns:
- This builder for chaining.
-
setOperationBytes
public LogRecord.Builder setOperationBytes(com.google.protobuf.ByteString value)
The operation performed.
string operation = 5;- Parameters:
value- The bytes for operation to set.- Returns:
- This builder for chaining.
-
getStatus
public java.lang.String getStatus()
The status of the operation.
string status = 7;- Specified by:
getStatusin interfaceLogRecordOrBuilder- Returns:
- The status.
-
getStatusBytes
public com.google.protobuf.ByteString getStatusBytes()
The status of the operation.
string status = 7;- Specified by:
getStatusBytesin interfaceLogRecordOrBuilder- Returns:
- The bytes for status.
-
setStatus
public LogRecord.Builder setStatus(java.lang.String value)
The status of the operation.
string status = 7;- Parameters:
value- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
public LogRecord.Builder clearStatus()
The status of the operation.
string status = 7;- Returns:
- This builder for chaining.
-
setStatusBytes
public LogRecord.Builder setStatusBytes(com.google.protobuf.ByteString value)
The status of the operation.
string status = 7;- Parameters:
value- The bytes for status to set.- Returns:
- This builder for chaining.
-
getVersion
public int getVersion()
The internal version of the log message. Can be used in deduplication if needed.
int32 version = 9;- Specified by:
getVersionin interfaceLogRecordOrBuilder- Returns:
- The version.
-
setVersion
public LogRecord.Builder setVersion(int value)
The internal version of the log message. Can be used in deduplication if needed.
int32 version = 9;- Parameters:
value- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
public LogRecord.Builder clearVersion()
The internal version of the log message. Can be used in deduplication if needed.
int32 version = 9;- Returns:
- This builder for chaining.
-
getLogId
public java.lang.String getLogId()
Unique ID for the log record.
string log_id = 10;- Specified by:
getLogIdin interfaceLogRecordOrBuilder- Returns:
- The logId.
-
getLogIdBytes
public com.google.protobuf.ByteString getLogIdBytes()
Unique ID for the log record.
string log_id = 10;- Specified by:
getLogIdBytesin interfaceLogRecordOrBuilder- Returns:
- The bytes for logId.
-
setLogId
public LogRecord.Builder setLogId(java.lang.String value)
Unique ID for the log record.
string log_id = 10;- Parameters:
value- The logId to set.- Returns:
- This builder for chaining.
-
clearLogId
public LogRecord.Builder clearLogId()
Unique ID for the log record.
string log_id = 10;- Returns:
- This builder for chaining.
-
setLogIdBytes
public LogRecord.Builder setLogIdBytes(com.google.protobuf.ByteString value)
Unique ID for the log record.
string log_id = 10;- Parameters:
value- The bytes for logId to set.- Returns:
- This builder for chaining.
-
hasPrincipal
public boolean hasPrincipal()
The principal that performed the operation.
.temporal.api.cloud.auditlog.v1.Principal principal = 12;- Specified by:
hasPrincipalin interfaceLogRecordOrBuilder- Returns:
- Whether the principal field is set.
-
getPrincipal
public Principal getPrincipal()
The principal that performed the operation.
.temporal.api.cloud.auditlog.v1.Principal principal = 12;- Specified by:
getPrincipalin interfaceLogRecordOrBuilder- Returns:
- The principal.
-
setPrincipal
public LogRecord.Builder setPrincipal(Principal value)
The principal that performed the operation.
.temporal.api.cloud.auditlog.v1.Principal principal = 12;
-
setPrincipal
public LogRecord.Builder setPrincipal(Principal.Builder builderForValue)
The principal that performed the operation.
.temporal.api.cloud.auditlog.v1.Principal principal = 12;
-
mergePrincipal
public LogRecord.Builder mergePrincipal(Principal value)
The principal that performed the operation.
.temporal.api.cloud.auditlog.v1.Principal principal = 12;
-
clearPrincipal
public LogRecord.Builder clearPrincipal()
The principal that performed the operation.
.temporal.api.cloud.auditlog.v1.Principal principal = 12;
-
getPrincipalBuilder
public Principal.Builder getPrincipalBuilder()
The principal that performed the operation.
.temporal.api.cloud.auditlog.v1.Principal principal = 12;
-
getPrincipalOrBuilder
public PrincipalOrBuilder getPrincipalOrBuilder()
The principal that performed the operation.
.temporal.api.cloud.auditlog.v1.Principal principal = 12;- Specified by:
getPrincipalOrBuilderin interfaceLogRecordOrBuilder
-
hasRawDetails
public boolean hasRawDetails()
The raw details of the operation.
.google.protobuf.Struct raw_details = 13;- Specified by:
hasRawDetailsin interfaceLogRecordOrBuilder- Returns:
- Whether the rawDetails field is set.
-
getRawDetails
public com.google.protobuf.Struct getRawDetails()
The raw details of the operation.
.google.protobuf.Struct raw_details = 13;- Specified by:
getRawDetailsin interfaceLogRecordOrBuilder- Returns:
- The rawDetails.
-
setRawDetails
public LogRecord.Builder setRawDetails(com.google.protobuf.Struct value)
The raw details of the operation.
.google.protobuf.Struct raw_details = 13;
-
setRawDetails
public LogRecord.Builder setRawDetails(com.google.protobuf.Struct.Builder builderForValue)
The raw details of the operation.
.google.protobuf.Struct raw_details = 13;
-
mergeRawDetails
public LogRecord.Builder mergeRawDetails(com.google.protobuf.Struct value)
The raw details of the operation.
.google.protobuf.Struct raw_details = 13;
-
clearRawDetails
public LogRecord.Builder clearRawDetails()
The raw details of the operation.
.google.protobuf.Struct raw_details = 13;
-
getRawDetailsBuilder
public com.google.protobuf.Struct.Builder getRawDetailsBuilder()
The raw details of the operation.
.google.protobuf.Struct raw_details = 13;
-
getRawDetailsOrBuilder
public com.google.protobuf.StructOrBuilder getRawDetailsOrBuilder()
The raw details of the operation.
.google.protobuf.Struct raw_details = 13;- Specified by:
getRawDetailsOrBuilderin interfaceLogRecordOrBuilder
-
getXForwardedFor
public java.lang.String getXForwardedFor()
The originating IP address of the request.
string x_forwarded_for = 14;- Specified by:
getXForwardedForin interfaceLogRecordOrBuilder- Returns:
- The xForwardedFor.
-
getXForwardedForBytes
public com.google.protobuf.ByteString getXForwardedForBytes()
The originating IP address of the request.
string x_forwarded_for = 14;- Specified by:
getXForwardedForBytesin interfaceLogRecordOrBuilder- Returns:
- The bytes for xForwardedFor.
-
setXForwardedFor
public LogRecord.Builder setXForwardedFor(java.lang.String value)
The originating IP address of the request.
string x_forwarded_for = 14;- Parameters:
value- The xForwardedFor to set.- Returns:
- This builder for chaining.
-
clearXForwardedFor
public LogRecord.Builder clearXForwardedFor()
The originating IP address of the request.
string x_forwarded_for = 14;- Returns:
- This builder for chaining.
-
setXForwardedForBytes
public LogRecord.Builder setXForwardedForBytes(com.google.protobuf.ByteString value)
The originating IP address of the request.
string x_forwarded_for = 14;- Parameters:
value- The bytes for xForwardedFor to set.- Returns:
- This builder for chaining.
-
getAsyncOperationId
public java.lang.String getAsyncOperationId()
The ID of the async operation.
string async_operation_id = 15;- Specified by:
getAsyncOperationIdin interfaceLogRecordOrBuilder- Returns:
- The asyncOperationId.
-
getAsyncOperationIdBytes
public com.google.protobuf.ByteString getAsyncOperationIdBytes()
The ID of the async operation.
string async_operation_id = 15;- Specified by:
getAsyncOperationIdBytesin interfaceLogRecordOrBuilder- Returns:
- The bytes for asyncOperationId.
-
setAsyncOperationId
public LogRecord.Builder setAsyncOperationId(java.lang.String value)
The ID of the async operation.
string async_operation_id = 15;- Parameters:
value- The asyncOperationId to set.- Returns:
- This builder for chaining.
-
clearAsyncOperationId
public LogRecord.Builder clearAsyncOperationId()
The ID of the async operation.
string async_operation_id = 15;- Returns:
- This builder for chaining.
-
setAsyncOperationIdBytes
public LogRecord.Builder setAsyncOperationIdBytes(com.google.protobuf.ByteString value)
The ID of the async operation.
string async_operation_id = 15;- Parameters:
value- The bytes for asyncOperationId to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final LogRecord.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
-
mergeUnknownFields
public final LogRecord.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LogRecord.Builder>
-
-