Package dev.cerbos.api.v1.policy
Class PolicyOuterClass.Metadata
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessage
-
- dev.cerbos.api.v1.policy.PolicyOuterClass.Metadata
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,PolicyOuterClass.MetadataOrBuilder,java.io.Serializable
- Enclosing class:
- PolicyOuterClass
public static final class PolicyOuterClass.Metadata extends com.google.protobuf.GeneratedMessage implements PolicyOuterClass.MetadataOrBuilder
Protobuf typecerbos.policy.v1.Metadata- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPolicyOuterClass.Metadata.BuilderProtobuf typecerbos.policy.v1.Metadata-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends java.lang.Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intANNOTATIONS_FIELD_NUMBERstatic intHASH_FIELD_NUMBERstatic intSOURCE_ATTRIBUTES_FIELD_NUMBERstatic intSOURCE_FILE_FIELD_NUMBERstatic intSTORE_IDENTIFER_FIELD_NUMBERstatic intSTORE_IDENTIFIER_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsAnnotations(java.lang.String key)map<string, string> annotations = 2;booleanequals(java.lang.Object obj)java.util.Map<java.lang.String,java.lang.String>getAnnotations()Deprecated.intgetAnnotationsCount()map<string, string> annotations = 2;java.util.Map<java.lang.String,java.lang.String>getAnnotationsMap()map<string, string> annotations = 2;java.lang.StringgetAnnotationsOrDefault(java.lang.String key, java.lang.String defaultValue)map<string, string> annotations = 2;java.lang.StringgetAnnotationsOrThrow(java.lang.String key)map<string, string> annotations = 2;static PolicyOuterClass.MetadatagetDefaultInstance()PolicyOuterClass.MetadatagetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.UInt64ValuegetHash().google.protobuf.UInt64Value hash = 3;com.google.protobuf.UInt64ValueOrBuildergetHashOrBuilder().google.protobuf.UInt64Value hash = 3;com.google.protobuf.Parser<PolicyOuterClass.Metadata>getParserForType()intgetSerializedSize()PolicyOuterClass.SourceAttributesgetSourceAttributes().cerbos.policy.v1.SourceAttributes source_attributes = 6;PolicyOuterClass.SourceAttributesOrBuildergetSourceAttributesOrBuilder().cerbos.policy.v1.SourceAttributes source_attributes = 6;java.lang.StringgetSourceFile()string source_file = 1;com.google.protobuf.ByteStringgetSourceFileBytes()string source_file = 1;java.lang.StringgetStoreIdentifer()Deprecated.cerbos.policy.v1.Metadata.store_identifer is deprecated.com.google.protobuf.ByteStringgetStoreIdentiferBytes()Deprecated.cerbos.policy.v1.Metadata.store_identifer is deprecated.java.lang.StringgetStoreIdentifier()string store_identifier = 5;com.google.protobuf.ByteStringgetStoreIdentifierBytes()string store_identifier = 5;booleanhasHash().google.protobuf.UInt64Value hash = 3;inthashCode()booleanhasSourceAttributes().cerbos.policy.v1.SourceAttributes source_attributes = 6;protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number)booleanisInitialized()static PolicyOuterClass.Metadata.BuildernewBuilder()static PolicyOuterClass.Metadata.BuildernewBuilder(PolicyOuterClass.Metadata prototype)PolicyOuterClass.Metadata.BuildernewBuilderForType()protected PolicyOuterClass.Metadata.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)static PolicyOuterClass.MetadataparseDelimitedFrom(java.io.InputStream input)static PolicyOuterClass.MetadataparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PolicyOuterClass.MetadataparseFrom(byte[] data)static PolicyOuterClass.MetadataparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PolicyOuterClass.MetadataparseFrom(com.google.protobuf.ByteString data)static PolicyOuterClass.MetadataparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PolicyOuterClass.MetadataparseFrom(com.google.protobuf.CodedInputStream input)static PolicyOuterClass.MetadataparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PolicyOuterClass.MetadataparseFrom(java.io.InputStream input)static PolicyOuterClass.MetadataparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PolicyOuterClass.MetadataparseFrom(java.nio.ByteBuffer data)static PolicyOuterClass.MetadataparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<PolicyOuterClass.Metadata>parser()PolicyOuterClass.Metadata.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, 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, hashFields, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
SOURCE_FILE_FIELD_NUMBER
public static final int SOURCE_FILE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ANNOTATIONS_FIELD_NUMBER
public static final int ANNOTATIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HASH_FIELD_NUMBER
public static final int HASH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STORE_IDENTIFER_FIELD_NUMBER
public static final int STORE_IDENTIFER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STORE_IDENTIFIER_FIELD_NUMBER
public static final int STORE_IDENTIFIER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SOURCE_ATTRIBUTES_FIELD_NUMBER
public static final int SOURCE_ATTRIBUTES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
- Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getSourceFile
public java.lang.String getSourceFile()
string source_file = 1;- Specified by:
getSourceFilein interfacePolicyOuterClass.MetadataOrBuilder- Returns:
- The sourceFile.
-
getSourceFileBytes
public com.google.protobuf.ByteString getSourceFileBytes()
string source_file = 1;- Specified by:
getSourceFileBytesin interfacePolicyOuterClass.MetadataOrBuilder- Returns:
- The bytes for sourceFile.
-
getAnnotationsCount
public int getAnnotationsCount()
Description copied from interface:PolicyOuterClass.MetadataOrBuildermap<string, string> annotations = 2;- Specified by:
getAnnotationsCountin interfacePolicyOuterClass.MetadataOrBuilder
-
containsAnnotations
public boolean containsAnnotations(java.lang.String key)
map<string, string> annotations = 2;- Specified by:
containsAnnotationsin interfacePolicyOuterClass.MetadataOrBuilder
-
getAnnotations
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getAnnotations()
Deprecated.UsegetAnnotationsMap()instead.- Specified by:
getAnnotationsin interfacePolicyOuterClass.MetadataOrBuilder
-
getAnnotationsMap
public java.util.Map<java.lang.String,java.lang.String> getAnnotationsMap()
map<string, string> annotations = 2;- Specified by:
getAnnotationsMapin interfacePolicyOuterClass.MetadataOrBuilder
-
getAnnotationsOrDefault
public java.lang.String getAnnotationsOrDefault(java.lang.String key, java.lang.String defaultValue)map<string, string> annotations = 2;- Specified by:
getAnnotationsOrDefaultin interfacePolicyOuterClass.MetadataOrBuilder
-
getAnnotationsOrThrow
public java.lang.String getAnnotationsOrThrow(java.lang.String key)
map<string, string> annotations = 2;- Specified by:
getAnnotationsOrThrowin interfacePolicyOuterClass.MetadataOrBuilder
-
hasHash
public boolean hasHash()
.google.protobuf.UInt64Value hash = 3;- Specified by:
hasHashin interfacePolicyOuterClass.MetadataOrBuilder- Returns:
- Whether the hash field is set.
-
getHash
public com.google.protobuf.UInt64Value getHash()
.google.protobuf.UInt64Value hash = 3;- Specified by:
getHashin interfacePolicyOuterClass.MetadataOrBuilder- Returns:
- The hash.
-
getHashOrBuilder
public com.google.protobuf.UInt64ValueOrBuilder getHashOrBuilder()
.google.protobuf.UInt64Value hash = 3;- Specified by:
getHashOrBuilderin interfacePolicyOuterClass.MetadataOrBuilder
-
getStoreIdentifer
@Deprecated public java.lang.String getStoreIdentifer()
Deprecated.cerbos.policy.v1.Metadata.store_identifer is deprecated. See cerbos/policy/v1/policy.proto;l=45string store_identifer = 4 [deprecated = true];- Specified by:
getStoreIdentiferin interfacePolicyOuterClass.MetadataOrBuilder- Returns:
- The storeIdentifer.
-
getStoreIdentiferBytes
@Deprecated public com.google.protobuf.ByteString getStoreIdentiferBytes()
Deprecated.cerbos.policy.v1.Metadata.store_identifer is deprecated. See cerbos/policy/v1/policy.proto;l=45string store_identifer = 4 [deprecated = true];- Specified by:
getStoreIdentiferBytesin interfacePolicyOuterClass.MetadataOrBuilder- Returns:
- The bytes for storeIdentifer.
-
getStoreIdentifier
public java.lang.String getStoreIdentifier()
string store_identifier = 5;- Specified by:
getStoreIdentifierin interfacePolicyOuterClass.MetadataOrBuilder- Returns:
- The storeIdentifier.
-
getStoreIdentifierBytes
public com.google.protobuf.ByteString getStoreIdentifierBytes()
string store_identifier = 5;- Specified by:
getStoreIdentifierBytesin interfacePolicyOuterClass.MetadataOrBuilder- Returns:
- The bytes for storeIdentifier.
-
hasSourceAttributes
public boolean hasSourceAttributes()
.cerbos.policy.v1.SourceAttributes source_attributes = 6;- Specified by:
hasSourceAttributesin interfacePolicyOuterClass.MetadataOrBuilder- Returns:
- Whether the sourceAttributes field is set.
-
getSourceAttributes
public PolicyOuterClass.SourceAttributes getSourceAttributes()
.cerbos.policy.v1.SourceAttributes source_attributes = 6;- Specified by:
getSourceAttributesin interfacePolicyOuterClass.MetadataOrBuilder- Returns:
- The sourceAttributes.
-
getSourceAttributesOrBuilder
public PolicyOuterClass.SourceAttributesOrBuilder getSourceAttributesOrBuilder()
.cerbos.policy.v1.SourceAttributes source_attributes = 6;- Specified by:
getSourceAttributesOrBuilderin interfacePolicyOuterClass.MetadataOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
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.GeneratedMessage- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
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 PolicyOuterClass.Metadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PolicyOuterClass.Metadata parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PolicyOuterClass.Metadata parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PolicyOuterClass.Metadata parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PolicyOuterClass.Metadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PolicyOuterClass.Metadata parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PolicyOuterClass.Metadata parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static PolicyOuterClass.Metadata parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static PolicyOuterClass.Metadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static PolicyOuterClass.Metadata parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static PolicyOuterClass.Metadata parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static PolicyOuterClass.Metadata parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public PolicyOuterClass.Metadata.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static PolicyOuterClass.Metadata.Builder newBuilder()
-
newBuilder
public static PolicyOuterClass.Metadata.Builder newBuilder(PolicyOuterClass.Metadata prototype)
-
toBuilder
public PolicyOuterClass.Metadata.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected PolicyOuterClass.Metadata.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
- Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
public static PolicyOuterClass.Metadata getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<PolicyOuterClass.Metadata> parser()
-
getParserForType
public com.google.protobuf.Parser<PolicyOuterClass.Metadata> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
public PolicyOuterClass.Metadata getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-