Package com.authzed.api.materialize.v0
Class WatchedPermission.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<WatchedPermission.Builder>
com.authzed.api.materialize.v0.WatchedPermission.Builder
- All Implemented Interfaces:
WatchedPermissionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- WatchedPermission
public static final class WatchedPermission.Builder
extends com.google.protobuf.GeneratedMessage.Builder<WatchedPermission.Builder>
implements WatchedPermissionOrBuilder
Protobuf type
authzed.api.materialize.v0.WatchedPermission-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()optional_subject_relation is the relation on the subject to watch for changes.permission is the permission to watch for changes.resource_type is the type of the resource to watch for changes.subject_type is the type of the subject to watch for changes.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptoroptional_subject_relation is the relation on the subject to watch for changes.com.google.protobuf.ByteStringoptional_subject_relation is the relation on the subject to watch for changes.permission is the permission to watch for changes.com.google.protobuf.ByteStringpermission is the permission to watch for changes.resource_type is the type of the resource to watch for changes.com.google.protobuf.ByteStringresource_type is the type of the resource to watch for changes.subject_type is the type of the subject to watch for changes.com.google.protobuf.ByteStringsubject_type is the type of the subject to watch for changes.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(WatchedPermission other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setOptionalSubjectRelation(String value) optional_subject_relation is the relation on the subject to watch for changes.setOptionalSubjectRelationBytes(com.google.protobuf.ByteString value) optional_subject_relation is the relation on the subject to watch for changes.setPermission(String value) permission is the permission to watch for changes.setPermissionBytes(com.google.protobuf.ByteString value) permission is the permission to watch for changes.setResourceType(String value) resource_type is the type of the resource to watch for changes.setResourceTypeBytes(com.google.protobuf.ByteString value) resource_type is the type of the resource to watch for changes.setSubjectType(String value) subject_type is the type of the subject to watch for changes.setSubjectTypeBytes(com.google.protobuf.ByteString value) subject_type is the type of the subject to watch for changes.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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<WatchedPermission.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<WatchedPermission.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<WatchedPermission.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<WatchedPermission.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<WatchedPermission.Builder>
-
mergeFrom
public WatchedPermission.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<WatchedPermission.Builder>- Throws:
IOException
-
getResourceType
resource_type is the type of the resource to watch for changes.
string resource_type = 1;- Specified by:
getResourceTypein interfaceWatchedPermissionOrBuilder- Returns:
- The resourceType.
-
getResourceTypeBytes
public com.google.protobuf.ByteString getResourceTypeBytes()resource_type is the type of the resource to watch for changes.
string resource_type = 1;- Specified by:
getResourceTypeBytesin interfaceWatchedPermissionOrBuilder- Returns:
- The bytes for resourceType.
-
setResourceType
resource_type is the type of the resource to watch for changes.
string resource_type = 1;- Parameters:
value- The resourceType to set.- Returns:
- This builder for chaining.
-
clearResourceType
resource_type is the type of the resource to watch for changes.
string resource_type = 1;- Returns:
- This builder for chaining.
-
setResourceTypeBytes
resource_type is the type of the resource to watch for changes.
string resource_type = 1;- Parameters:
value- The bytes for resourceType to set.- Returns:
- This builder for chaining.
-
getPermission
permission is the permission to watch for changes.
string permission = 2;- Specified by:
getPermissionin interfaceWatchedPermissionOrBuilder- Returns:
- The permission.
-
getPermissionBytes
public com.google.protobuf.ByteString getPermissionBytes()permission is the permission to watch for changes.
string permission = 2;- Specified by:
getPermissionBytesin interfaceWatchedPermissionOrBuilder- Returns:
- The bytes for permission.
-
setPermission
permission is the permission to watch for changes.
string permission = 2;- Parameters:
value- The permission to set.- Returns:
- This builder for chaining.
-
clearPermission
permission is the permission to watch for changes.
string permission = 2;- Returns:
- This builder for chaining.
-
setPermissionBytes
permission is the permission to watch for changes.
string permission = 2;- Parameters:
value- The bytes for permission to set.- Returns:
- This builder for chaining.
-
getSubjectType
subject_type is the type of the subject to watch for changes.
string subject_type = 3;- Specified by:
getSubjectTypein interfaceWatchedPermissionOrBuilder- Returns:
- The subjectType.
-
getSubjectTypeBytes
public com.google.protobuf.ByteString getSubjectTypeBytes()subject_type is the type of the subject to watch for changes.
string subject_type = 3;- Specified by:
getSubjectTypeBytesin interfaceWatchedPermissionOrBuilder- Returns:
- The bytes for subjectType.
-
setSubjectType
subject_type is the type of the subject to watch for changes.
string subject_type = 3;- Parameters:
value- The subjectType to set.- Returns:
- This builder for chaining.
-
clearSubjectType
subject_type is the type of the subject to watch for changes.
string subject_type = 3;- Returns:
- This builder for chaining.
-
setSubjectTypeBytes
subject_type is the type of the subject to watch for changes.
string subject_type = 3;- Parameters:
value- The bytes for subjectType to set.- Returns:
- This builder for chaining.
-
getOptionalSubjectRelation
optional_subject_relation is the relation on the subject to watch for changes.
string optional_subject_relation = 4;- Specified by:
getOptionalSubjectRelationin interfaceWatchedPermissionOrBuilder- Returns:
- The optionalSubjectRelation.
-
getOptionalSubjectRelationBytes
public com.google.protobuf.ByteString getOptionalSubjectRelationBytes()optional_subject_relation is the relation on the subject to watch for changes.
string optional_subject_relation = 4;- Specified by:
getOptionalSubjectRelationBytesin interfaceWatchedPermissionOrBuilder- Returns:
- The bytes for optionalSubjectRelation.
-
setOptionalSubjectRelation
optional_subject_relation is the relation on the subject to watch for changes.
string optional_subject_relation = 4;- Parameters:
value- The optionalSubjectRelation to set.- Returns:
- This builder for chaining.
-
clearOptionalSubjectRelation
optional_subject_relation is the relation on the subject to watch for changes.
string optional_subject_relation = 4;- Returns:
- This builder for chaining.
-
setOptionalSubjectRelationBytes
public WatchedPermission.Builder setOptionalSubjectRelationBytes(com.google.protobuf.ByteString value) optional_subject_relation is the relation on the subject to watch for changes.
string optional_subject_relation = 4;- Parameters:
value- The bytes for optionalSubjectRelation to set.- Returns:
- This builder for chaining.
-