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 the object definitions for which we want to start watching mutations, and an optional start snapshot 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 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.addOptionalObjectTypes
(String value) optional_object_types is a filter of resource object types to watch for changes.addOptionalObjectTypesBytes
(com.google.protobuf.ByteString value) optional_object_types is a filter of resource object types to watch for 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.build()
clear()
optional_object_types is a filter of resource object types to watch for 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.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getOptionalObjectTypes
(int index) optional_object_types is a filter of resource object types to watch for changes.com.google.protobuf.ByteString
getOptionalObjectTypesBytes
(int index) optional_object_types is a filter of resource object types to watch for changes.int
optional_object_types is a filter of resource object types to watch for changes.com.google.protobuf.ProtocolStringList
optional_object_types is a filter of resource object types to watch for 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.int
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.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.boolean
optional_start_cursor is the ZedToken holding the point-in-time at which to start watching for changes.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(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 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.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<WatchRequest.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<WatchRequest.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<WatchRequest.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<WatchRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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 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:
getOptionalObjectTypesList
in interfaceWatchRequestOrBuilder
- Returns:
- A list containing the optionalObjectTypes.
-
getOptionalObjectTypesCount
public int getOptionalObjectTypesCount()optional_object_types is a filter of resource object types to watch for 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:
getOptionalObjectTypesCount
in interfaceWatchRequestOrBuilder
- Returns:
- The count of optionalObjectTypes.
-
getOptionalObjectTypes
optional_object_types is a filter of resource object types to watch for 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:
getOptionalObjectTypes
in 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 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:
getOptionalObjectTypesBytes
in 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 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 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 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 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 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 begin at the current head revision of the datastore, returning any updates that occur after the caller makes the request. 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:
hasOptionalStartCursor
in 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 begin at the current head revision of the datastore, returning any updates that occur after the caller makes the request. 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:
getOptionalStartCursor
in 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 begin at the current head revision of the datastore, returning any updates that occur after the caller makes the request. 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 begin at the current head revision of the datastore, returning any updates that occur after the caller makes the request. 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 begin at the current head revision of the datastore, returning any updates that occur after the caller makes the request. 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 begin at the current head revision of the datastore, returning any updates that occur after the caller makes the request. 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 begin at the current head revision of the datastore, returning any updates that occur after the caller makes the request. 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 begin at the current head revision of the datastore, returning any updates that occur after the caller makes the request. 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:
getOptionalStartCursorOrBuilder
in 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:
getOptionalRelationshipFiltersList
in 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:
getOptionalRelationshipFiltersCount
in 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:
getOptionalRelationshipFilters
in 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:
getOptionalRelationshipFiltersOrBuilder
in 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:
getOptionalRelationshipFiltersOrBuilderList
in 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;
-