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.Descriptor
com.google.protobuf.Descriptors.Descriptor
optional_subject_relation is the relation on the subject to watch for changes.com.google.protobuf.ByteString
optional_subject_relation is the relation on the subject to watch for changes.permission is the permission to watch for changes.com.google.protobuf.ByteString
permission is the permission to watch for changes.resource_type is the type of the resource to watch for changes.com.google.protobuf.ByteString
resource_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.ByteString
subject_type is the type of the subject to watch for changes.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(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, 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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<WatchedPermission.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<WatchedPermission.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<WatchedPermission.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<WatchedPermission.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getResourceType
in 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:
getResourceTypeBytes
in 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:
getPermission
in interfaceWatchedPermissionOrBuilder
- Returns:
- The permission.
-
getPermissionBytes
public com.google.protobuf.ByteString getPermissionBytes()permission is the permission to watch for changes.
string permission = 2;
- Specified by:
getPermissionBytes
in 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:
getSubjectType
in 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:
getSubjectTypeBytes
in 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:
getOptionalSubjectRelation
in 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:
getOptionalSubjectRelationBytes
in 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.
-