Package com.authzed.api.v1
Class WatchRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<WatchRequest.Builder>
com.authzed.api.v1.WatchRequest.Builder
- All Implemented Interfaces:
WatchRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- WatchRequest
public static final class WatchRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<WatchRequest.Builder>
implements WatchRequestOrBuilder
WatchRequest specifies what mutations to watch for, and an optional start point for when to start watching.Protobuf type
authzed.api.v1.WatchRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllOptionalObjectTypes(Iterable<String> values) optional_object_types is a filter of resource object types to watch for relationship changes.addAllOptionalRelationshipFilters(Iterable<? extends RelationshipFilter> values) optional_relationship_filters, if specified, indicates the filter(s) to apply to each relationship to be returned by watch.addAllOptionalUpdateKinds(Iterable<? extends WatchKind> values) optional_update_kinds, if specified, indicates what kinds of mutations to include.optional_update_kinds, if specified, indicates what kinds of mutations to include.addOptionalObjectTypes(String value) optional_object_types is a filter of resource object types to watch for relationship changes.addOptionalObjectTypesBytes(com.google.protobuf.ByteString value) optional_object_types is a filter of resource object types to watch for relationship changes.addOptionalRelationshipFilters(int index, RelationshipFilter value) optional_relationship_filters, if specified, indicates the filter(s) to apply to each relationship to be returned by watch.addOptionalRelationshipFilters(int index, RelationshipFilter.Builder builderForValue) optional_relationship_filters, if specified, indicates the filter(s) to apply to each relationship to be returned by watch.optional_relationship_filters, if specified, indicates the filter(s) to apply to each relationship to be returned by watch.addOptionalRelationshipFilters(RelationshipFilter.Builder builderForValue) optional_relationship_filters, if specified, indicates the filter(s) to apply to each relationship to be returned by watch.optional_relationship_filters, if specified, indicates the filter(s) to apply to each relationship to be returned by watch.addOptionalRelationshipFiltersBuilder(int index) optional_relationship_filters, if specified, indicates the filter(s) to apply to each relationship to be returned by watch.addOptionalUpdateKinds(WatchKind value) optional_update_kinds, if specified, indicates what kinds of mutations to include.addOptionalUpdateKindsValue(int value) optional_update_kinds, if specified, indicates what kinds of mutations to include.build()clear()optional_object_types is a filter of resource object types to watch for relationship changes.optional_relationship_filters, if specified, indicates the filter(s) to apply to each relationship to be returned by watch.optional_start_cursor is the ZedToken holding the point-in-time at which to start watching for changes.optional_update_kinds, if specified, indicates what kinds of mutations to include.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetOptionalObjectTypes(int index) optional_object_types is a filter of resource object types to watch for relationship changes.com.google.protobuf.ByteStringgetOptionalObjectTypesBytes(int index) optional_object_types is a filter of resource object types to watch for relationship changes.intoptional_object_types is a filter of resource object types to watch for relationship changes.com.google.protobuf.ProtocolStringListoptional_object_types is a filter of resource object types to watch for relationship changes.getOptionalRelationshipFilters(int index) optional_relationship_filters, if specified, indicates the filter(s) to apply to each relationship to be returned by watch.getOptionalRelationshipFiltersBuilder(int index) optional_relationship_filters, if specified, indicates the filter(s) to apply to each relationship to be returned by watch.optional_relationship_filters, if specified, indicates the filter(s) to apply to each relationship to be returned by watch.intoptional_relationship_filters, if specified, indicates the filter(s) to apply to each relationship to be returned by watch.optional_relationship_filters, if specified, indicates the filter(s) to apply to each relationship to be returned by watch.getOptionalRelationshipFiltersOrBuilder(int index) optional_relationship_filters, if specified, indicates the filter(s) to apply to each relationship to be returned by watch.List<? extends RelationshipFilterOrBuilder>optional_relationship_filters, if specified, indicates the filter(s) to apply to each relationship to be returned by watch.optional_start_cursor is the ZedToken holding the point-in-time at which to start watching for changes.optional_start_cursor is the ZedToken holding the point-in-time at which to start watching for changes.optional_start_cursor is the ZedToken holding the point-in-time at which to start watching for changes.getOptionalUpdateKinds(int index) optional_update_kinds, if specified, indicates what kinds of mutations to include.intoptional_update_kinds, if specified, indicates what kinds of mutations to include.optional_update_kinds, if specified, indicates what kinds of mutations to include.intgetOptionalUpdateKindsValue(int index) optional_update_kinds, if specified, indicates what kinds of mutations to include.optional_update_kinds, if specified, indicates what kinds of mutations to include.booleanoptional_start_cursor is the ZedToken holding the point-in-time at which to start watching for changes.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(WatchRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeOptionalStartCursor(ZedToken value) optional_start_cursor is the ZedToken holding the point-in-time at which to start watching for changes.removeOptionalRelationshipFilters(int index) optional_relationship_filters, if specified, indicates the filter(s) to apply to each relationship to be returned by watch.setOptionalObjectTypes(int index, String value) optional_object_types is a filter of resource object types to watch for relationship changes.setOptionalRelationshipFilters(int index, RelationshipFilter value) optional_relationship_filters, if specified, indicates the filter(s) to apply to each relationship to be returned by watch.setOptionalRelationshipFilters(int index, RelationshipFilter.Builder builderForValue) optional_relationship_filters, if specified, indicates the filter(s) to apply to each relationship to be returned by watch.setOptionalStartCursor(ZedToken value) optional_start_cursor is the ZedToken holding the point-in-time at which to start watching for changes.setOptionalStartCursor(ZedToken.Builder builderForValue) optional_start_cursor is the ZedToken holding the point-in-time at which to start watching for changes.setOptionalUpdateKinds(int index, WatchKind value) optional_update_kinds, if specified, indicates what kinds of mutations to include.setOptionalUpdateKindsValue(int index, int value) optional_update_kinds, if specified, indicates what kinds of mutations to include.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<WatchRequest.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<WatchRequest.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<WatchRequest.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<WatchRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<WatchRequest.Builder>
-
mergeFrom
public WatchRequest.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<WatchRequest.Builder>- Throws:
IOException
-
getOptionalObjectTypesList
public com.google.protobuf.ProtocolStringList getOptionalObjectTypesList()optional_object_types is a filter of resource object types to watch for relationship changes. If specified, only changes to the specified object types will be returned and optional_relationship_filters cannot be used.
repeated string optional_object_types = 1 [(.validate.rules) = { ... }- Specified by:
getOptionalObjectTypesListin interfaceWatchRequestOrBuilder- Returns:
- A list containing the optionalObjectTypes.
-
getOptionalObjectTypesCount
public int getOptionalObjectTypesCount()optional_object_types is a filter of resource object types to watch for relationship changes. If specified, only changes to the specified object types will be returned and optional_relationship_filters cannot be used.
repeated string optional_object_types = 1 [(.validate.rules) = { ... }- Specified by:
getOptionalObjectTypesCountin interfaceWatchRequestOrBuilder- Returns:
- The count of optionalObjectTypes.
-
getOptionalObjectTypes
optional_object_types is a filter of resource object types to watch for relationship changes. If specified, only changes to the specified object types will be returned and optional_relationship_filters cannot be used.
repeated string optional_object_types = 1 [(.validate.rules) = { ... }- Specified by:
getOptionalObjectTypesin interfaceWatchRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The optionalObjectTypes at the given index.
-
getOptionalObjectTypesBytes
public com.google.protobuf.ByteString getOptionalObjectTypesBytes(int index) optional_object_types is a filter of resource object types to watch for relationship changes. If specified, only changes to the specified object types will be returned and optional_relationship_filters cannot be used.
repeated string optional_object_types = 1 [(.validate.rules) = { ... }- Specified by:
getOptionalObjectTypesBytesin interfaceWatchRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the optionalObjectTypes at the given index.
-
setOptionalObjectTypes
optional_object_types is a filter of resource object types to watch for relationship changes. If specified, only changes to the specified object types will be returned and optional_relationship_filters cannot be used.
repeated string optional_object_types = 1 [(.validate.rules) = { ... }- Parameters:
index- The index to set the value at.value- The optionalObjectTypes to set.- Returns:
- This builder for chaining.
-
addOptionalObjectTypes
optional_object_types is a filter of resource object types to watch for relationship changes. If specified, only changes to the specified object types will be returned and optional_relationship_filters cannot be used.
repeated string optional_object_types = 1 [(.validate.rules) = { ... }- Parameters:
value- The optionalObjectTypes to add.- Returns:
- This builder for chaining.
-
addAllOptionalObjectTypes
optional_object_types is a filter of resource object types to watch for relationship changes. If specified, only changes to the specified object types will be returned and optional_relationship_filters cannot be used.
repeated string optional_object_types = 1 [(.validate.rules) = { ... }- Parameters:
values- The optionalObjectTypes to add.- Returns:
- This builder for chaining.
-
clearOptionalObjectTypes
optional_object_types is a filter of resource object types to watch for relationship changes. If specified, only changes to the specified object types will be returned and optional_relationship_filters cannot be used.
repeated string optional_object_types = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
addOptionalObjectTypesBytes
optional_object_types is a filter of resource object types to watch for relationship changes. If specified, only changes to the specified object types will be returned and optional_relationship_filters cannot be used.
repeated string optional_object_types = 1 [(.validate.rules) = { ... }- Parameters:
value- The bytes of the optionalObjectTypes to add.- Returns:
- This builder for chaining.
-
hasOptionalStartCursor
public boolean hasOptionalStartCursor()optional_start_cursor is the ZedToken holding the point-in-time at which to start watching for changes. If not specified, the watch will start from the current SpiceDB revision time of the request ("head revision"). Note that if this cursor references a point-in-time containing data that has been garbage collected, an error will be returned..authzed.api.v1.ZedToken optional_start_cursor = 2;- Specified by:
hasOptionalStartCursorin interfaceWatchRequestOrBuilder- Returns:
- Whether the optionalStartCursor field is set.
-
getOptionalStartCursor
optional_start_cursor is the ZedToken holding the point-in-time at which to start watching for changes. If not specified, the watch will start from the current SpiceDB revision time of the request ("head revision"). Note that if this cursor references a point-in-time containing data that has been garbage collected, an error will be returned..authzed.api.v1.ZedToken optional_start_cursor = 2;- Specified by:
getOptionalStartCursorin interfaceWatchRequestOrBuilder- Returns:
- The optionalStartCursor.
-
setOptionalStartCursor
optional_start_cursor is the ZedToken holding the point-in-time at which to start watching for changes. If not specified, the watch will start from the current SpiceDB revision time of the request ("head revision"). Note that if this cursor references a point-in-time containing data that has been garbage collected, an error will be returned..authzed.api.v1.ZedToken optional_start_cursor = 2; -
setOptionalStartCursor
optional_start_cursor is the ZedToken holding the point-in-time at which to start watching for changes. If not specified, the watch will start from the current SpiceDB revision time of the request ("head revision"). Note that if this cursor references a point-in-time containing data that has been garbage collected, an error will be returned..authzed.api.v1.ZedToken optional_start_cursor = 2; -
mergeOptionalStartCursor
optional_start_cursor is the ZedToken holding the point-in-time at which to start watching for changes. If not specified, the watch will start from the current SpiceDB revision time of the request ("head revision"). Note that if this cursor references a point-in-time containing data that has been garbage collected, an error will be returned..authzed.api.v1.ZedToken optional_start_cursor = 2; -
clearOptionalStartCursor
optional_start_cursor is the ZedToken holding the point-in-time at which to start watching for changes. If not specified, the watch will start from the current SpiceDB revision time of the request ("head revision"). Note that if this cursor references a point-in-time containing data that has been garbage collected, an error will be returned..authzed.api.v1.ZedToken optional_start_cursor = 2; -
getOptionalStartCursorBuilder
optional_start_cursor is the ZedToken holding the point-in-time at which to start watching for changes. If not specified, the watch will start from the current SpiceDB revision time of the request ("head revision"). Note that if this cursor references a point-in-time containing data that has been garbage collected, an error will be returned..authzed.api.v1.ZedToken optional_start_cursor = 2; -
getOptionalStartCursorOrBuilder
optional_start_cursor is the ZedToken holding the point-in-time at which to start watching for changes. If not specified, the watch will start from the current SpiceDB revision time of the request ("head revision"). Note that if this cursor references a point-in-time containing data that has been garbage collected, an error will be returned..authzed.api.v1.ZedToken optional_start_cursor = 2;- Specified by:
getOptionalStartCursorOrBuilderin interfaceWatchRequestOrBuilder
-
getOptionalRelationshipFiltersList
optional_relationship_filters, if specified, indicates the filter(s) to apply to each relationship to be returned by watch. The relationship will be returned as long as at least one filter matches, this allows clients to match relationships on multiple filters on a single watch call. If specified, optional_object_types cannot be used.
repeated .authzed.api.v1.RelationshipFilter optional_relationship_filters = 3;- Specified by:
getOptionalRelationshipFiltersListin interfaceWatchRequestOrBuilder
-
getOptionalRelationshipFiltersCount
public int getOptionalRelationshipFiltersCount()optional_relationship_filters, if specified, indicates the filter(s) to apply to each relationship to be returned by watch. The relationship will be returned as long as at least one filter matches, this allows clients to match relationships on multiple filters on a single watch call. If specified, optional_object_types cannot be used.
repeated .authzed.api.v1.RelationshipFilter optional_relationship_filters = 3;- Specified by:
getOptionalRelationshipFiltersCountin interfaceWatchRequestOrBuilder
-
getOptionalRelationshipFilters
optional_relationship_filters, if specified, indicates the filter(s) to apply to each relationship to be returned by watch. The relationship will be returned as long as at least one filter matches, this allows clients to match relationships on multiple filters on a single watch call. If specified, optional_object_types cannot be used.
repeated .authzed.api.v1.RelationshipFilter optional_relationship_filters = 3;- Specified by:
getOptionalRelationshipFiltersin interfaceWatchRequestOrBuilder
-
setOptionalRelationshipFilters
optional_relationship_filters, if specified, indicates the filter(s) to apply to each relationship to be returned by watch. The relationship will be returned as long as at least one filter matches, this allows clients to match relationships on multiple filters on a single watch call. If specified, optional_object_types cannot be used.
repeated .authzed.api.v1.RelationshipFilter optional_relationship_filters = 3; -
setOptionalRelationshipFilters
public WatchRequest.Builder setOptionalRelationshipFilters(int index, RelationshipFilter.Builder builderForValue) optional_relationship_filters, if specified, indicates the filter(s) to apply to each relationship to be returned by watch. The relationship will be returned as long as at least one filter matches, this allows clients to match relationships on multiple filters on a single watch call. If specified, optional_object_types cannot be used.
repeated .authzed.api.v1.RelationshipFilter optional_relationship_filters = 3; -
addOptionalRelationshipFilters
optional_relationship_filters, if specified, indicates the filter(s) to apply to each relationship to be returned by watch. The relationship will be returned as long as at least one filter matches, this allows clients to match relationships on multiple filters on a single watch call. If specified, optional_object_types cannot be used.
repeated .authzed.api.v1.RelationshipFilter optional_relationship_filters = 3; -
addOptionalRelationshipFilters
optional_relationship_filters, if specified, indicates the filter(s) to apply to each relationship to be returned by watch. The relationship will be returned as long as at least one filter matches, this allows clients to match relationships on multiple filters on a single watch call. If specified, optional_object_types cannot be used.
repeated .authzed.api.v1.RelationshipFilter optional_relationship_filters = 3; -
addOptionalRelationshipFilters
public WatchRequest.Builder addOptionalRelationshipFilters(RelationshipFilter.Builder builderForValue) optional_relationship_filters, if specified, indicates the filter(s) to apply to each relationship to be returned by watch. The relationship will be returned as long as at least one filter matches, this allows clients to match relationships on multiple filters on a single watch call. If specified, optional_object_types cannot be used.
repeated .authzed.api.v1.RelationshipFilter optional_relationship_filters = 3; -
addOptionalRelationshipFilters
public WatchRequest.Builder addOptionalRelationshipFilters(int index, RelationshipFilter.Builder builderForValue) optional_relationship_filters, if specified, indicates the filter(s) to apply to each relationship to be returned by watch. The relationship will be returned as long as at least one filter matches, this allows clients to match relationships on multiple filters on a single watch call. If specified, optional_object_types cannot be used.
repeated .authzed.api.v1.RelationshipFilter optional_relationship_filters = 3; -
addAllOptionalRelationshipFilters
public WatchRequest.Builder addAllOptionalRelationshipFilters(Iterable<? extends RelationshipFilter> values) optional_relationship_filters, if specified, indicates the filter(s) to apply to each relationship to be returned by watch. The relationship will be returned as long as at least one filter matches, this allows clients to match relationships on multiple filters on a single watch call. If specified, optional_object_types cannot be used.
repeated .authzed.api.v1.RelationshipFilter optional_relationship_filters = 3; -
clearOptionalRelationshipFilters
optional_relationship_filters, if specified, indicates the filter(s) to apply to each relationship to be returned by watch. The relationship will be returned as long as at least one filter matches, this allows clients to match relationships on multiple filters on a single watch call. If specified, optional_object_types cannot be used.
repeated .authzed.api.v1.RelationshipFilter optional_relationship_filters = 3; -
removeOptionalRelationshipFilters
optional_relationship_filters, if specified, indicates the filter(s) to apply to each relationship to be returned by watch. The relationship will be returned as long as at least one filter matches, this allows clients to match relationships on multiple filters on a single watch call. If specified, optional_object_types cannot be used.
repeated .authzed.api.v1.RelationshipFilter optional_relationship_filters = 3; -
getOptionalRelationshipFiltersBuilder
optional_relationship_filters, if specified, indicates the filter(s) to apply to each relationship to be returned by watch. The relationship will be returned as long as at least one filter matches, this allows clients to match relationships on multiple filters on a single watch call. If specified, optional_object_types cannot be used.
repeated .authzed.api.v1.RelationshipFilter optional_relationship_filters = 3; -
getOptionalRelationshipFiltersOrBuilder
optional_relationship_filters, if specified, indicates the filter(s) to apply to each relationship to be returned by watch. The relationship will be returned as long as at least one filter matches, this allows clients to match relationships on multiple filters on a single watch call. If specified, optional_object_types cannot be used.
repeated .authzed.api.v1.RelationshipFilter optional_relationship_filters = 3;- Specified by:
getOptionalRelationshipFiltersOrBuilderin interfaceWatchRequestOrBuilder
-
getOptionalRelationshipFiltersOrBuilderList
optional_relationship_filters, if specified, indicates the filter(s) to apply to each relationship to be returned by watch. The relationship will be returned as long as at least one filter matches, this allows clients to match relationships on multiple filters on a single watch call. If specified, optional_object_types cannot be used.
repeated .authzed.api.v1.RelationshipFilter optional_relationship_filters = 3;- Specified by:
getOptionalRelationshipFiltersOrBuilderListin interfaceWatchRequestOrBuilder
-
addOptionalRelationshipFiltersBuilder
optional_relationship_filters, if specified, indicates the filter(s) to apply to each relationship to be returned by watch. The relationship will be returned as long as at least one filter matches, this allows clients to match relationships on multiple filters on a single watch call. If specified, optional_object_types cannot be used.
repeated .authzed.api.v1.RelationshipFilter optional_relationship_filters = 3; -
addOptionalRelationshipFiltersBuilder
optional_relationship_filters, if specified, indicates the filter(s) to apply to each relationship to be returned by watch. The relationship will be returned as long as at least one filter matches, this allows clients to match relationships on multiple filters on a single watch call. If specified, optional_object_types cannot be used.
repeated .authzed.api.v1.RelationshipFilter optional_relationship_filters = 3; -
getOptionalRelationshipFiltersBuilderList
optional_relationship_filters, if specified, indicates the filter(s) to apply to each relationship to be returned by watch. The relationship will be returned as long as at least one filter matches, this allows clients to match relationships on multiple filters on a single watch call. If specified, optional_object_types cannot be used.
repeated .authzed.api.v1.RelationshipFilter optional_relationship_filters = 3; -
getOptionalUpdateKindsList
optional_update_kinds, if specified, indicates what kinds of mutations to include. If your SpiceDB instance is running behind a proxy that aborts idle connections, we recommend including Checkpoints to keep the stream alive even when there are no changes.
repeated .authzed.api.v1.WatchKind optional_update_kinds = 4;- Specified by:
getOptionalUpdateKindsListin interfaceWatchRequestOrBuilder- Returns:
- A list containing the optionalUpdateKinds.
-
getOptionalUpdateKindsCount
public int getOptionalUpdateKindsCount()optional_update_kinds, if specified, indicates what kinds of mutations to include. If your SpiceDB instance is running behind a proxy that aborts idle connections, we recommend including Checkpoints to keep the stream alive even when there are no changes.
repeated .authzed.api.v1.WatchKind optional_update_kinds = 4;- Specified by:
getOptionalUpdateKindsCountin interfaceWatchRequestOrBuilder- Returns:
- The count of optionalUpdateKinds.
-
getOptionalUpdateKinds
optional_update_kinds, if specified, indicates what kinds of mutations to include. If your SpiceDB instance is running behind a proxy that aborts idle connections, we recommend including Checkpoints to keep the stream alive even when there are no changes.
repeated .authzed.api.v1.WatchKind optional_update_kinds = 4;- Specified by:
getOptionalUpdateKindsin interfaceWatchRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The optionalUpdateKinds at the given index.
-
setOptionalUpdateKinds
optional_update_kinds, if specified, indicates what kinds of mutations to include. If your SpiceDB instance is running behind a proxy that aborts idle connections, we recommend including Checkpoints to keep the stream alive even when there are no changes.
repeated .authzed.api.v1.WatchKind optional_update_kinds = 4;- Parameters:
index- The index to set the value at.value- The optionalUpdateKinds to set.- Returns:
- This builder for chaining.
-
addOptionalUpdateKinds
optional_update_kinds, if specified, indicates what kinds of mutations to include. If your SpiceDB instance is running behind a proxy that aborts idle connections, we recommend including Checkpoints to keep the stream alive even when there are no changes.
repeated .authzed.api.v1.WatchKind optional_update_kinds = 4;- Parameters:
value- The optionalUpdateKinds to add.- Returns:
- This builder for chaining.
-
addAllOptionalUpdateKinds
optional_update_kinds, if specified, indicates what kinds of mutations to include. If your SpiceDB instance is running behind a proxy that aborts idle connections, we recommend including Checkpoints to keep the stream alive even when there are no changes.
repeated .authzed.api.v1.WatchKind optional_update_kinds = 4;- Parameters:
values- The optionalUpdateKinds to add.- Returns:
- This builder for chaining.
-
clearOptionalUpdateKinds
optional_update_kinds, if specified, indicates what kinds of mutations to include. If your SpiceDB instance is running behind a proxy that aborts idle connections, we recommend including Checkpoints to keep the stream alive even when there are no changes.
repeated .authzed.api.v1.WatchKind optional_update_kinds = 4;- Returns:
- This builder for chaining.
-
getOptionalUpdateKindsValueList
optional_update_kinds, if specified, indicates what kinds of mutations to include. If your SpiceDB instance is running behind a proxy that aborts idle connections, we recommend including Checkpoints to keep the stream alive even when there are no changes.
repeated .authzed.api.v1.WatchKind optional_update_kinds = 4;- Specified by:
getOptionalUpdateKindsValueListin interfaceWatchRequestOrBuilder- Returns:
- A list containing the enum numeric values on the wire for optionalUpdateKinds.
-
getOptionalUpdateKindsValue
public int getOptionalUpdateKindsValue(int index) optional_update_kinds, if specified, indicates what kinds of mutations to include. If your SpiceDB instance is running behind a proxy that aborts idle connections, we recommend including Checkpoints to keep the stream alive even when there are no changes.
repeated .authzed.api.v1.WatchKind optional_update_kinds = 4;- Specified by:
getOptionalUpdateKindsValuein interfaceWatchRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of optionalUpdateKinds at the given index.
-
setOptionalUpdateKindsValue
optional_update_kinds, if specified, indicates what kinds of mutations to include. If your SpiceDB instance is running behind a proxy that aborts idle connections, we recommend including Checkpoints to keep the stream alive even when there are no changes.
repeated .authzed.api.v1.WatchKind optional_update_kinds = 4;- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for optionalUpdateKinds to set.- Returns:
- This builder for chaining.
-
addOptionalUpdateKindsValue
optional_update_kinds, if specified, indicates what kinds of mutations to include. If your SpiceDB instance is running behind a proxy that aborts idle connections, we recommend including Checkpoints to keep the stream alive even when there are no changes.
repeated .authzed.api.v1.WatchKind optional_update_kinds = 4;- Parameters:
value- The enum numeric value on the wire for optionalUpdateKinds to add.- Returns:
- This builder for chaining.
-
addAllOptionalUpdateKindsValue
optional_update_kinds, if specified, indicates what kinds of mutations to include. If your SpiceDB instance is running behind a proxy that aborts idle connections, we recommend including Checkpoints to keep the stream alive even when there are no changes.
repeated .authzed.api.v1.WatchKind optional_update_kinds = 4;- Parameters:
values- The enum numeric values on the wire for optionalUpdateKinds to add.- Returns:
- This builder for chaining.
-