Package dev.cerbos.api.v1.policy
Class PolicyOuterClass.Metadata.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<PolicyOuterClass.Metadata.Builder>
-
- dev.cerbos.api.v1.policy.PolicyOuterClass.Metadata.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,PolicyOuterClass.MetadataOrBuilder,java.lang.Cloneable
- Enclosing class:
- PolicyOuterClass.Metadata
public static final class PolicyOuterClass.Metadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<PolicyOuterClass.Metadata.Builder> implements PolicyOuterClass.MetadataOrBuilder
Protobuf typecerbos.policy.v1.Metadata
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description PolicyOuterClass.Metadatabuild()PolicyOuterClass.MetadatabuildPartial()PolicyOuterClass.Metadata.Builderclear()PolicyOuterClass.Metadata.BuilderclearAnnotations()PolicyOuterClass.Metadata.BuilderclearHash().google.protobuf.UInt64Value hash = 3;PolicyOuterClass.Metadata.BuilderclearSourceAttributes().cerbos.policy.v1.SourceAttributes source_attributes = 6;PolicyOuterClass.Metadata.BuilderclearSourceFile()string source_file = 1;PolicyOuterClass.Metadata.BuilderclearStoreIdentifer()Deprecated.cerbos.policy.v1.Metadata.store_identifer is deprecated.PolicyOuterClass.Metadata.BuilderclearStoreIdentifier()string store_identifier = 5;booleancontainsAnnotations(java.lang.String key)map<string, string> annotations = 2;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;PolicyOuterClass.MetadatagetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.UInt64ValuegetHash().google.protobuf.UInt64Value hash = 3;com.google.protobuf.UInt64Value.BuildergetHashBuilder().google.protobuf.UInt64Value hash = 3;com.google.protobuf.UInt64ValueOrBuildergetHashOrBuilder().google.protobuf.UInt64Value hash = 3;java.util.Map<java.lang.String,java.lang.String>getMutableAnnotations()Deprecated.PolicyOuterClass.SourceAttributesgetSourceAttributes().cerbos.policy.v1.SourceAttributes source_attributes = 6;PolicyOuterClass.SourceAttributes.BuildergetSourceAttributesBuilder().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;booleanhasSourceAttributes().cerbos.policy.v1.SourceAttributes source_attributes = 6;protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number)protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number)booleanisInitialized()PolicyOuterClass.Metadata.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)PolicyOuterClass.Metadata.BuildermergeFrom(com.google.protobuf.Message other)PolicyOuterClass.Metadata.BuildermergeFrom(PolicyOuterClass.Metadata other)PolicyOuterClass.Metadata.BuildermergeHash(com.google.protobuf.UInt64Value value).google.protobuf.UInt64Value hash = 3;PolicyOuterClass.Metadata.BuildermergeSourceAttributes(PolicyOuterClass.SourceAttributes value).cerbos.policy.v1.SourceAttributes source_attributes = 6;PolicyOuterClass.Metadata.BuilderputAllAnnotations(java.util.Map<java.lang.String,java.lang.String> values)map<string, string> annotations = 2;PolicyOuterClass.Metadata.BuilderputAnnotations(java.lang.String key, java.lang.String value)map<string, string> annotations = 2;PolicyOuterClass.Metadata.BuilderremoveAnnotations(java.lang.String key)map<string, string> annotations = 2;PolicyOuterClass.Metadata.BuildersetHash(com.google.protobuf.UInt64Value value).google.protobuf.UInt64Value hash = 3;PolicyOuterClass.Metadata.BuildersetHash(com.google.protobuf.UInt64Value.Builder builderForValue).google.protobuf.UInt64Value hash = 3;PolicyOuterClass.Metadata.BuildersetSourceAttributes(PolicyOuterClass.SourceAttributes value).cerbos.policy.v1.SourceAttributes source_attributes = 6;PolicyOuterClass.Metadata.BuildersetSourceAttributes(PolicyOuterClass.SourceAttributes.Builder builderForValue).cerbos.policy.v1.SourceAttributes source_attributes = 6;PolicyOuterClass.Metadata.BuildersetSourceFile(java.lang.String value)string source_file = 1;PolicyOuterClass.Metadata.BuildersetSourceFileBytes(com.google.protobuf.ByteString value)string source_file = 1;PolicyOuterClass.Metadata.BuildersetStoreIdentifer(java.lang.String value)Deprecated.cerbos.policy.v1.Metadata.store_identifer is deprecated.PolicyOuterClass.Metadata.BuildersetStoreIdentiferBytes(com.google.protobuf.ByteString value)Deprecated.cerbos.policy.v1.Metadata.store_identifer is deprecated.PolicyOuterClass.Metadata.BuildersetStoreIdentifier(java.lang.String value)string store_identifier = 5;PolicyOuterClass.Metadata.BuildersetStoreIdentifierBytes(com.google.protobuf.ByteString value)string store_identifier = 5;-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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()
-
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
- Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<PolicyOuterClass.Metadata.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
- Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<PolicyOuterClass.Metadata.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<PolicyOuterClass.Metadata.Builder>
-
clear
public PolicyOuterClass.Metadata.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<PolicyOuterClass.Metadata.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.GeneratedMessage.Builder<PolicyOuterClass.Metadata.Builder>
-
getDefaultInstanceForType
public PolicyOuterClass.Metadata getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public PolicyOuterClass.Metadata build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PolicyOuterClass.Metadata buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public PolicyOuterClass.Metadata.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PolicyOuterClass.Metadata.Builder>
-
mergeFrom
public PolicyOuterClass.Metadata.Builder mergeFrom(PolicyOuterClass.Metadata other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PolicyOuterClass.Metadata.Builder>
-
mergeFrom
public PolicyOuterClass.Metadata.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<PolicyOuterClass.Metadata.Builder>- Throws:
java.io.IOException
-
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.
-
setSourceFile
public PolicyOuterClass.Metadata.Builder setSourceFile(java.lang.String value)
string source_file = 1;- Parameters:
value- The sourceFile to set.- Returns:
- This builder for chaining.
-
clearSourceFile
public PolicyOuterClass.Metadata.Builder clearSourceFile()
string source_file = 1;- Returns:
- This builder for chaining.
-
setSourceFileBytes
public PolicyOuterClass.Metadata.Builder setSourceFileBytes(com.google.protobuf.ByteString value)
string source_file = 1;- Parameters:
value- The bytes for sourceFile to set.- Returns:
- This builder for chaining.
-
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
-
clearAnnotations
public PolicyOuterClass.Metadata.Builder clearAnnotations()
-
removeAnnotations
public PolicyOuterClass.Metadata.Builder removeAnnotations(java.lang.String key)
map<string, string> annotations = 2;
-
getMutableAnnotations
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMutableAnnotations()
Deprecated.Use alternate mutation accessors instead.
-
putAnnotations
public PolicyOuterClass.Metadata.Builder putAnnotations(java.lang.String key, java.lang.String value)
map<string, string> annotations = 2;
-
putAllAnnotations
public PolicyOuterClass.Metadata.Builder putAllAnnotations(java.util.Map<java.lang.String,java.lang.String> values)
map<string, string> annotations = 2;
-
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.
-
setHash
public PolicyOuterClass.Metadata.Builder setHash(com.google.protobuf.UInt64Value value)
.google.protobuf.UInt64Value hash = 3;
-
setHash
public PolicyOuterClass.Metadata.Builder setHash(com.google.protobuf.UInt64Value.Builder builderForValue)
.google.protobuf.UInt64Value hash = 3;
-
mergeHash
public PolicyOuterClass.Metadata.Builder mergeHash(com.google.protobuf.UInt64Value value)
.google.protobuf.UInt64Value hash = 3;
-
clearHash
public PolicyOuterClass.Metadata.Builder clearHash()
.google.protobuf.UInt64Value hash = 3;
-
getHashBuilder
public com.google.protobuf.UInt64Value.Builder getHashBuilder()
.google.protobuf.UInt64Value hash = 3;
-
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.
-
setStoreIdentifer
@Deprecated public PolicyOuterClass.Metadata.Builder setStoreIdentifer(java.lang.String value)
Deprecated.cerbos.policy.v1.Metadata.store_identifer is deprecated. See cerbos/policy/v1/policy.proto;l=45string store_identifer = 4 [deprecated = true];- Parameters:
value- The storeIdentifer to set.- Returns:
- This builder for chaining.
-
clearStoreIdentifer
@Deprecated public PolicyOuterClass.Metadata.Builder clearStoreIdentifer()
Deprecated.cerbos.policy.v1.Metadata.store_identifer is deprecated. See cerbos/policy/v1/policy.proto;l=45string store_identifer = 4 [deprecated = true];- Returns:
- This builder for chaining.
-
setStoreIdentiferBytes
@Deprecated public PolicyOuterClass.Metadata.Builder setStoreIdentiferBytes(com.google.protobuf.ByteString value)
Deprecated.cerbos.policy.v1.Metadata.store_identifer is deprecated. See cerbos/policy/v1/policy.proto;l=45string store_identifer = 4 [deprecated = true];- Parameters:
value- The bytes for storeIdentifer to set.- Returns:
- This builder for chaining.
-
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.
-
setStoreIdentifier
public PolicyOuterClass.Metadata.Builder setStoreIdentifier(java.lang.String value)
string store_identifier = 5;- Parameters:
value- The storeIdentifier to set.- Returns:
- This builder for chaining.
-
clearStoreIdentifier
public PolicyOuterClass.Metadata.Builder clearStoreIdentifier()
string store_identifier = 5;- Returns:
- This builder for chaining.
-
setStoreIdentifierBytes
public PolicyOuterClass.Metadata.Builder setStoreIdentifierBytes(com.google.protobuf.ByteString value)
string store_identifier = 5;- Parameters:
value- The bytes for storeIdentifier to set.- Returns:
- This builder for chaining.
-
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.
-
setSourceAttributes
public PolicyOuterClass.Metadata.Builder setSourceAttributes(PolicyOuterClass.SourceAttributes value)
.cerbos.policy.v1.SourceAttributes source_attributes = 6;
-
setSourceAttributes
public PolicyOuterClass.Metadata.Builder setSourceAttributes(PolicyOuterClass.SourceAttributes.Builder builderForValue)
.cerbos.policy.v1.SourceAttributes source_attributes = 6;
-
mergeSourceAttributes
public PolicyOuterClass.Metadata.Builder mergeSourceAttributes(PolicyOuterClass.SourceAttributes value)
.cerbos.policy.v1.SourceAttributes source_attributes = 6;
-
clearSourceAttributes
public PolicyOuterClass.Metadata.Builder clearSourceAttributes()
.cerbos.policy.v1.SourceAttributes source_attributes = 6;
-
getSourceAttributesBuilder
public PolicyOuterClass.SourceAttributes.Builder getSourceAttributesBuilder()
.cerbos.policy.v1.SourceAttributes source_attributes = 6;
-
getSourceAttributesOrBuilder
public PolicyOuterClass.SourceAttributesOrBuilder getSourceAttributesOrBuilder()
.cerbos.policy.v1.SourceAttributes source_attributes = 6;- Specified by:
getSourceAttributesOrBuilderin interfacePolicyOuterClass.MetadataOrBuilder
-
-