Package dev.cerbos.api.v1.audit
Class Audit.AccessLogEntry
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- dev.cerbos.api.v1.audit.Audit.AccessLogEntry
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Audit.AccessLogEntryOrBuilder,java.io.Serializable
- Enclosing class:
- Audit
public static final class Audit.AccessLogEntry extends com.google.protobuf.GeneratedMessageV3 implements Audit.AccessLogEntryOrBuilder
Protobuf typecerbos.audit.v1.AccessLogEntry- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAudit.AccessLogEntry.BuilderProtobuf typecerbos.audit.v1.AccessLogEntry-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCALL_ID_FIELD_NUMBERstatic intMETADATA_FIELD_NUMBERstatic intMETHOD_FIELD_NUMBERstatic intPEER_FIELD_NUMBERstatic intSTATUS_CODE_FIELD_NUMBERstatic intTIMESTAMP_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsMetadata(java.lang.String key)map<string, .cerbos.audit.v1.MetaValues> metadata = 4;booleanequals(java.lang.Object obj)java.lang.StringgetCallId()string call_id = 1;com.google.protobuf.ByteStringgetCallIdBytes()string call_id = 1;static Audit.AccessLogEntrygetDefaultInstance()Audit.AccessLogEntrygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()java.util.Map<java.lang.String,Audit.MetaValues>getMetadata()Deprecated.intgetMetadataCount()map<string, .cerbos.audit.v1.MetaValues> metadata = 4;java.util.Map<java.lang.String,Audit.MetaValues>getMetadataMap()map<string, .cerbos.audit.v1.MetaValues> metadata = 4;Audit.MetaValuesgetMetadataOrDefault(java.lang.String key, Audit.MetaValues defaultValue)map<string, .cerbos.audit.v1.MetaValues> metadata = 4;Audit.MetaValuesgetMetadataOrThrow(java.lang.String key)map<string, .cerbos.audit.v1.MetaValues> metadata = 4;java.lang.StringgetMethod()string method = 5;com.google.protobuf.ByteStringgetMethodBytes()string method = 5;com.google.protobuf.Parser<Audit.AccessLogEntry>getParserForType()Audit.PeergetPeer().cerbos.audit.v1.Peer peer = 3;Audit.PeerOrBuildergetPeerOrBuilder().cerbos.audit.v1.Peer peer = 3;intgetSerializedSize()intgetStatusCode()uint32 status_code = 6;com.google.protobuf.TimestampgetTimestamp().google.protobuf.Timestamp timestamp = 2;com.google.protobuf.TimestampOrBuildergetTimestampOrBuilder().google.protobuf.Timestamp timestamp = 2;inthashCode()booleanhasPeer().cerbos.audit.v1.Peer peer = 3;booleanhasTimestamp().google.protobuf.Timestamp timestamp = 2;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number)booleanisInitialized()static Audit.AccessLogEntry.BuildernewBuilder()static Audit.AccessLogEntry.BuildernewBuilder(Audit.AccessLogEntry prototype)Audit.AccessLogEntry.BuildernewBuilderForType()protected Audit.AccessLogEntry.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Audit.AccessLogEntryparseDelimitedFrom(java.io.InputStream input)static Audit.AccessLogEntryparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Audit.AccessLogEntryparseFrom(byte[] data)static Audit.AccessLogEntryparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Audit.AccessLogEntryparseFrom(com.google.protobuf.ByteString data)static Audit.AccessLogEntryparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Audit.AccessLogEntryparseFrom(com.google.protobuf.CodedInputStream input)static Audit.AccessLogEntryparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Audit.AccessLogEntryparseFrom(java.io.InputStream input)static Audit.AccessLogEntryparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Audit.AccessLogEntryparseFrom(java.nio.ByteBuffer data)static Audit.AccessLogEntryparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Audit.AccessLogEntry>parser()Audit.AccessLogEntry.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
CALL_ID_FIELD_NUMBER
public static final int CALL_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TIMESTAMP_FIELD_NUMBER
public static final int TIMESTAMP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PEER_FIELD_NUMBER
public static final int PEER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
METHOD_FIELD_NUMBER
public static final int METHOD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATUS_CODE_FIELD_NUMBER
public static final int STATUS_CODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
- Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getCallId
public java.lang.String getCallId()
string call_id = 1;- Specified by:
getCallIdin interfaceAudit.AccessLogEntryOrBuilder- Returns:
- The callId.
-
getCallIdBytes
public com.google.protobuf.ByteString getCallIdBytes()
string call_id = 1;- Specified by:
getCallIdBytesin interfaceAudit.AccessLogEntryOrBuilder- Returns:
- The bytes for callId.
-
hasTimestamp
public boolean hasTimestamp()
.google.protobuf.Timestamp timestamp = 2;- Specified by:
hasTimestampin interfaceAudit.AccessLogEntryOrBuilder- Returns:
- Whether the timestamp field is set.
-
getTimestamp
public com.google.protobuf.Timestamp getTimestamp()
.google.protobuf.Timestamp timestamp = 2;- Specified by:
getTimestampin interfaceAudit.AccessLogEntryOrBuilder- Returns:
- The timestamp.
-
getTimestampOrBuilder
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder()
.google.protobuf.Timestamp timestamp = 2;- Specified by:
getTimestampOrBuilderin interfaceAudit.AccessLogEntryOrBuilder
-
hasPeer
public boolean hasPeer()
.cerbos.audit.v1.Peer peer = 3;- Specified by:
hasPeerin interfaceAudit.AccessLogEntryOrBuilder- Returns:
- Whether the peer field is set.
-
getPeer
public Audit.Peer getPeer()
.cerbos.audit.v1.Peer peer = 3;- Specified by:
getPeerin interfaceAudit.AccessLogEntryOrBuilder- Returns:
- The peer.
-
getPeerOrBuilder
public Audit.PeerOrBuilder getPeerOrBuilder()
.cerbos.audit.v1.Peer peer = 3;- Specified by:
getPeerOrBuilderin interfaceAudit.AccessLogEntryOrBuilder
-
getMetadataCount
public int getMetadataCount()
Description copied from interface:Audit.AccessLogEntryOrBuildermap<string, .cerbos.audit.v1.MetaValues> metadata = 4;- Specified by:
getMetadataCountin interfaceAudit.AccessLogEntryOrBuilder
-
containsMetadata
public boolean containsMetadata(java.lang.String key)
map<string, .cerbos.audit.v1.MetaValues> metadata = 4;- Specified by:
containsMetadatain interfaceAudit.AccessLogEntryOrBuilder
-
getMetadata
@Deprecated public java.util.Map<java.lang.String,Audit.MetaValues> getMetadata()
Deprecated.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceAudit.AccessLogEntryOrBuilder
-
getMetadataMap
public java.util.Map<java.lang.String,Audit.MetaValues> getMetadataMap()
map<string, .cerbos.audit.v1.MetaValues> metadata = 4;- Specified by:
getMetadataMapin interfaceAudit.AccessLogEntryOrBuilder
-
getMetadataOrDefault
public Audit.MetaValues getMetadataOrDefault(java.lang.String key, Audit.MetaValues defaultValue)
map<string, .cerbos.audit.v1.MetaValues> metadata = 4;- Specified by:
getMetadataOrDefaultin interfaceAudit.AccessLogEntryOrBuilder
-
getMetadataOrThrow
public Audit.MetaValues getMetadataOrThrow(java.lang.String key)
map<string, .cerbos.audit.v1.MetaValues> metadata = 4;- Specified by:
getMetadataOrThrowin interfaceAudit.AccessLogEntryOrBuilder
-
getMethod
public java.lang.String getMethod()
string method = 5;- Specified by:
getMethodin interfaceAudit.AccessLogEntryOrBuilder- Returns:
- The method.
-
getMethodBytes
public com.google.protobuf.ByteString getMethodBytes()
string method = 5;- Specified by:
getMethodBytesin interfaceAudit.AccessLogEntryOrBuilder- Returns:
- The bytes for method.
-
getStatusCode
public int getStatusCode()
uint32 status_code = 6;- Specified by:
getStatusCodein interfaceAudit.AccessLogEntryOrBuilder- Returns:
- The statusCode.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Audit.AccessLogEntry parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Audit.AccessLogEntry parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Audit.AccessLogEntry parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Audit.AccessLogEntry parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Audit.AccessLogEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Audit.AccessLogEntry parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Audit.AccessLogEntry parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Audit.AccessLogEntry parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Audit.AccessLogEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Audit.AccessLogEntry parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Audit.AccessLogEntry parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Audit.AccessLogEntry parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public Audit.AccessLogEntry.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Audit.AccessLogEntry.Builder newBuilder()
-
newBuilder
public static Audit.AccessLogEntry.Builder newBuilder(Audit.AccessLogEntry prototype)
-
toBuilder
public Audit.AccessLogEntry.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Audit.AccessLogEntry.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Audit.AccessLogEntry getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Audit.AccessLogEntry> parser()
-
getParserForType
public com.google.protobuf.Parser<Audit.AccessLogEntry> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Audit.AccessLogEntry getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-