Package com.authzed.api.v1alpha1
Class WatchresourcesService.WatchResourcesRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<WatchresourcesService.WatchResourcesRequest.Builder>
com.authzed.api.v1alpha1.WatchresourcesService.WatchResourcesRequest.Builder
- All Implemented Interfaces:
WatchresourcesService.WatchResourcesRequestOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- WatchresourcesService.WatchResourcesRequest
public static final class WatchresourcesService.WatchResourcesRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<WatchresourcesService.WatchResourcesRequest.Builder>
implements WatchresourcesService.WatchResourcesRequestOrBuilder
WatchResourcesRequest starts a watch for specific permission updates for the given resource and subject types.Protobuf type
authzed.api.v1alpha1.WatchResourcesRequest
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
clear()
.authzed.api.v1.ZedToken optional_start_cursor = 5;
optional_subject_relation allows you to specify a group of subjects to watch for a given subject type.permission is the name of the permission or relation for which we will watch for changes.resource_object_type is the type of resource object for which we will watch for changes.subject_object_type is the type of the subject resource for which we will watch for changes.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
.authzed.api.v1.ZedToken optional_start_cursor = 5;
.authzed.api.v1.ZedToken optional_start_cursor = 5;
.authzed.api.v1.ZedToken optional_start_cursor = 5;
optional_subject_relation allows you to specify a group of subjects to watch for a given subject type.com.google.protobuf.ByteString
optional_subject_relation allows you to specify a group of subjects to watch for a given subject type.permission is the name of the permission or relation for which we will watch for changes.com.google.protobuf.ByteString
permission is the name of the permission or relation for which we will watch for changes.resource_object_type is the type of resource object for which we will watch for changes.com.google.protobuf.ByteString
resource_object_type is the type of resource object for which we will watch for changes.subject_object_type is the type of the subject resource for which we will watch for changes.com.google.protobuf.ByteString
subject_object_type is the type of the subject resource for which we will watch for changes.boolean
.authzed.api.v1.ZedToken optional_start_cursor = 5;
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeOptionalStartCursor
(ZedToken value) .authzed.api.v1.ZedToken optional_start_cursor = 5;
setOptionalStartCursor
(ZedToken value) .authzed.api.v1.ZedToken optional_start_cursor = 5;
setOptionalStartCursor
(ZedToken.Builder builderForValue) .authzed.api.v1.ZedToken optional_start_cursor = 5;
setOptionalSubjectRelation
(String value) optional_subject_relation allows you to specify a group of subjects to watch for a given subject type.setOptionalSubjectRelationBytes
(com.google.protobuf.ByteString value) optional_subject_relation allows you to specify a group of subjects to watch for a given subject type.setPermission
(String value) permission is the name of the permission or relation for which we will watch for changes.setPermissionBytes
(com.google.protobuf.ByteString value) permission is the name of the permission or relation for which we will watch for changes.setResourceObjectType
(String value) resource_object_type is the type of resource object for which we will watch for changes.setResourceObjectTypeBytes
(com.google.protobuf.ByteString value) resource_object_type is the type of resource object for which we will watch for changes.setSubjectObjectType
(String value) subject_object_type is the type of the subject resource for which we will watch for changes.setSubjectObjectTypeBytes
(com.google.protobuf.ByteString value) subject_object_type is the type of the subject resource for which we will 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<WatchresourcesService.WatchResourcesRequest.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<WatchresourcesService.WatchResourcesRequest.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<WatchresourcesService.WatchResourcesRequest.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
public WatchresourcesService.WatchResourcesRequest.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<WatchresourcesService.WatchResourcesRequest.Builder>
-
mergeFrom
public WatchresourcesService.WatchResourcesRequest.Builder mergeFrom(WatchresourcesService.WatchResourcesRequest other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<WatchresourcesService.WatchResourcesRequest.Builder>
-
mergeFrom
public WatchresourcesService.WatchResourcesRequest.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<WatchresourcesService.WatchResourcesRequest.Builder>
- Throws:
IOException
-
getResourceObjectType
resource_object_type is the type of resource object for which we will watch for changes.
string resource_object_type = 1 [(.validate.rules) = { ... }
- Specified by:
getResourceObjectType
in interfaceWatchresourcesService.WatchResourcesRequestOrBuilder
- Returns:
- The resourceObjectType.
-
getResourceObjectTypeBytes
public com.google.protobuf.ByteString getResourceObjectTypeBytes()resource_object_type is the type of resource object for which we will watch for changes.
string resource_object_type = 1 [(.validate.rules) = { ... }
- Specified by:
getResourceObjectTypeBytes
in interfaceWatchresourcesService.WatchResourcesRequestOrBuilder
- Returns:
- The bytes for resourceObjectType.
-
setResourceObjectType
resource_object_type is the type of resource object for which we will watch for changes.
string resource_object_type = 1 [(.validate.rules) = { ... }
- Parameters:
value
- The resourceObjectType to set.- Returns:
- This builder for chaining.
-
clearResourceObjectType
resource_object_type is the type of resource object for which we will watch for changes.
string resource_object_type = 1 [(.validate.rules) = { ... }
- Returns:
- This builder for chaining.
-
setResourceObjectTypeBytes
public WatchresourcesService.WatchResourcesRequest.Builder setResourceObjectTypeBytes(com.google.protobuf.ByteString value) resource_object_type is the type of resource object for which we will watch for changes.
string resource_object_type = 1 [(.validate.rules) = { ... }
- Parameters:
value
- The bytes for resourceObjectType to set.- Returns:
- This builder for chaining.
-
getPermission
permission is the name of the permission or relation for which we will watch for changes.
string permission = 2 [(.validate.rules) = { ... }
- Specified by:
getPermission
in interfaceWatchresourcesService.WatchResourcesRequestOrBuilder
- Returns:
- The permission.
-
getPermissionBytes
public com.google.protobuf.ByteString getPermissionBytes()permission is the name of the permission or relation for which we will watch for changes.
string permission = 2 [(.validate.rules) = { ... }
- Specified by:
getPermissionBytes
in interfaceWatchresourcesService.WatchResourcesRequestOrBuilder
- Returns:
- The bytes for permission.
-
setPermission
permission is the name of the permission or relation for which we will watch for changes.
string permission = 2 [(.validate.rules) = { ... }
- Parameters:
value
- The permission to set.- Returns:
- This builder for chaining.
-
clearPermission
permission is the name of the permission or relation for which we will watch for changes.
string permission = 2 [(.validate.rules) = { ... }
- Returns:
- This builder for chaining.
-
setPermissionBytes
public WatchresourcesService.WatchResourcesRequest.Builder setPermissionBytes(com.google.protobuf.ByteString value) permission is the name of the permission or relation for which we will watch for changes.
string permission = 2 [(.validate.rules) = { ... }
- Parameters:
value
- The bytes for permission to set.- Returns:
- This builder for chaining.
-
getSubjectObjectType
subject_object_type is the type of the subject resource for which we will watch for changes.
string subject_object_type = 3;
- Specified by:
getSubjectObjectType
in interfaceWatchresourcesService.WatchResourcesRequestOrBuilder
- Returns:
- The subjectObjectType.
-
getSubjectObjectTypeBytes
public com.google.protobuf.ByteString getSubjectObjectTypeBytes()subject_object_type is the type of the subject resource for which we will watch for changes.
string subject_object_type = 3;
- Specified by:
getSubjectObjectTypeBytes
in interfaceWatchresourcesService.WatchResourcesRequestOrBuilder
- Returns:
- The bytes for subjectObjectType.
-
setSubjectObjectType
subject_object_type is the type of the subject resource for which we will watch for changes.
string subject_object_type = 3;
- Parameters:
value
- The subjectObjectType to set.- Returns:
- This builder for chaining.
-
clearSubjectObjectType
subject_object_type is the type of the subject resource for which we will watch for changes.
string subject_object_type = 3;
- Returns:
- This builder for chaining.
-
setSubjectObjectTypeBytes
public WatchresourcesService.WatchResourcesRequest.Builder setSubjectObjectTypeBytes(com.google.protobuf.ByteString value) subject_object_type is the type of the subject resource for which we will watch for changes.
string subject_object_type = 3;
- Parameters:
value
- The bytes for subjectObjectType to set.- Returns:
- This builder for chaining.
-
getOptionalSubjectRelation
optional_subject_relation allows you to specify a group of subjects to watch for a given subject type.
string optional_subject_relation = 4;
- Specified by:
getOptionalSubjectRelation
in interfaceWatchresourcesService.WatchResourcesRequestOrBuilder
- Returns:
- The optionalSubjectRelation.
-
getOptionalSubjectRelationBytes
public com.google.protobuf.ByteString getOptionalSubjectRelationBytes()optional_subject_relation allows you to specify a group of subjects to watch for a given subject type.
string optional_subject_relation = 4;
- Specified by:
getOptionalSubjectRelationBytes
in interfaceWatchresourcesService.WatchResourcesRequestOrBuilder
- Returns:
- The bytes for optionalSubjectRelation.
-
setOptionalSubjectRelation
optional_subject_relation allows you to specify a group of subjects to watch for a given subject type.
string optional_subject_relation = 4;
- Parameters:
value
- The optionalSubjectRelation to set.- Returns:
- This builder for chaining.
-
clearOptionalSubjectRelation
optional_subject_relation allows you to specify a group of subjects to watch for a given subject type.
string optional_subject_relation = 4;
- Returns:
- This builder for chaining.
-
setOptionalSubjectRelationBytes
public WatchresourcesService.WatchResourcesRequest.Builder setOptionalSubjectRelationBytes(com.google.protobuf.ByteString value) optional_subject_relation allows you to specify a group of subjects to watch for a given subject type.
string optional_subject_relation = 4;
- Parameters:
value
- The bytes for optionalSubjectRelation to set.- Returns:
- This builder for chaining.
-
hasOptionalStartCursor
public boolean hasOptionalStartCursor().authzed.api.v1.ZedToken optional_start_cursor = 5;
- Specified by:
hasOptionalStartCursor
in interfaceWatchresourcesService.WatchResourcesRequestOrBuilder
- Returns:
- Whether the optionalStartCursor field is set.
-
getOptionalStartCursor
.authzed.api.v1.ZedToken optional_start_cursor = 5;
- Specified by:
getOptionalStartCursor
in interfaceWatchresourcesService.WatchResourcesRequestOrBuilder
- Returns:
- The optionalStartCursor.
-
setOptionalStartCursor
.authzed.api.v1.ZedToken optional_start_cursor = 5;
-
setOptionalStartCursor
public WatchresourcesService.WatchResourcesRequest.Builder setOptionalStartCursor(ZedToken.Builder builderForValue) .authzed.api.v1.ZedToken optional_start_cursor = 5;
-
mergeOptionalStartCursor
.authzed.api.v1.ZedToken optional_start_cursor = 5;
-
clearOptionalStartCursor
.authzed.api.v1.ZedToken optional_start_cursor = 5;
-
getOptionalStartCursorBuilder
.authzed.api.v1.ZedToken optional_start_cursor = 5;
-
getOptionalStartCursorOrBuilder
.authzed.api.v1.ZedToken optional_start_cursor = 5;
- Specified by:
getOptionalStartCursorOrBuilder
in interfaceWatchresourcesService.WatchResourcesRequestOrBuilder
-