Package com.authzed.api.v1
Class ReadRelationshipsRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ReadRelationshipsRequest.Builder>
com.authzed.api.v1.ReadRelationshipsRequest.Builder
- All Implemented Interfaces:
ReadRelationshipsRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ReadRelationshipsRequest
public static final class ReadRelationshipsRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ReadRelationshipsRequest.Builder>
implements ReadRelationshipsRequestOrBuilder
ReadRelationshipsRequest specifies one or more filters used to read matching relationships within the system.Protobuf type
authzed.api.v1.ReadRelationshipsRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear().authzed.api.v1.Consistency consistency = 1;optional_cursor, if specified, indicates the cursor after which results should resume being returned.optional_limit, if non-zero, specifies the limit on the number of relationships to return before the stream is closed on the server side.relationship_filter defines the filter to be applied to the relationships to be returned..authzed.api.v1.Consistency consistency = 1;.authzed.api.v1.Consistency consistency = 1;.authzed.api.v1.Consistency consistency = 1;static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptoroptional_cursor, if specified, indicates the cursor after which results should resume being returned.optional_cursor, if specified, indicates the cursor after which results should resume being returned.optional_cursor, if specified, indicates the cursor after which results should resume being returned.intoptional_limit, if non-zero, specifies the limit on the number of relationships to return before the stream is closed on the server side.relationship_filter defines the filter to be applied to the relationships to be returned.relationship_filter defines the filter to be applied to the relationships to be returned.relationship_filter defines the filter to be applied to the relationships to be returned.boolean.authzed.api.v1.Consistency consistency = 1;booleanoptional_cursor, if specified, indicates the cursor after which results should resume being returned.booleanrelationship_filter defines the filter to be applied to the relationships to be returned.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeConsistency(Consistency value) .authzed.api.v1.Consistency consistency = 1;mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeOptionalCursor(Cursor value) optional_cursor, if specified, indicates the cursor after which results should resume being returned.relationship_filter defines the filter to be applied to the relationships to be returned.setConsistency(Consistency value) .authzed.api.v1.Consistency consistency = 1;setConsistency(Consistency.Builder builderForValue) .authzed.api.v1.Consistency consistency = 1;setOptionalCursor(Cursor value) optional_cursor, if specified, indicates the cursor after which results should resume being returned.setOptionalCursor(Cursor.Builder builderForValue) optional_cursor, if specified, indicates the cursor after which results should resume being returned.setOptionalLimit(int value) optional_limit, if non-zero, specifies the limit on the number of relationships to return before the stream is closed on the server side.relationship_filter defines the filter to be applied to the relationships to be returned.setRelationshipFilter(RelationshipFilter.Builder builderForValue) relationship_filter defines the filter to be applied to the relationships to be returned.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<ReadRelationshipsRequest.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<ReadRelationshipsRequest.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<ReadRelationshipsRequest.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<ReadRelationshipsRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ReadRelationshipsRequest.Builder>
-
mergeFrom
public ReadRelationshipsRequest.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<ReadRelationshipsRequest.Builder>- Throws:
IOException
-
hasConsistency
public boolean hasConsistency().authzed.api.v1.Consistency consistency = 1;- Specified by:
hasConsistencyin interfaceReadRelationshipsRequestOrBuilder- Returns:
- Whether the consistency field is set.
-
getConsistency
.authzed.api.v1.Consistency consistency = 1;- Specified by:
getConsistencyin interfaceReadRelationshipsRequestOrBuilder- Returns:
- The consistency.
-
setConsistency
.authzed.api.v1.Consistency consistency = 1; -
setConsistency
.authzed.api.v1.Consistency consistency = 1; -
mergeConsistency
.authzed.api.v1.Consistency consistency = 1; -
clearConsistency
.authzed.api.v1.Consistency consistency = 1; -
getConsistencyBuilder
.authzed.api.v1.Consistency consistency = 1; -
getConsistencyOrBuilder
.authzed.api.v1.Consistency consistency = 1;- Specified by:
getConsistencyOrBuilderin interfaceReadRelationshipsRequestOrBuilder
-
hasRelationshipFilter
public boolean hasRelationshipFilter()relationship_filter defines the filter to be applied to the relationships to be returned.
.authzed.api.v1.RelationshipFilter relationship_filter = 2 [(.validate.rules) = { ... }- Specified by:
hasRelationshipFilterin interfaceReadRelationshipsRequestOrBuilder- Returns:
- Whether the relationshipFilter field is set.
-
getRelationshipFilter
relationship_filter defines the filter to be applied to the relationships to be returned.
.authzed.api.v1.RelationshipFilter relationship_filter = 2 [(.validate.rules) = { ... }- Specified by:
getRelationshipFilterin interfaceReadRelationshipsRequestOrBuilder- Returns:
- The relationshipFilter.
-
setRelationshipFilter
relationship_filter defines the filter to be applied to the relationships to be returned.
.authzed.api.v1.RelationshipFilter relationship_filter = 2 [(.validate.rules) = { ... } -
setRelationshipFilter
public ReadRelationshipsRequest.Builder setRelationshipFilter(RelationshipFilter.Builder builderForValue) relationship_filter defines the filter to be applied to the relationships to be returned.
.authzed.api.v1.RelationshipFilter relationship_filter = 2 [(.validate.rules) = { ... } -
mergeRelationshipFilter
relationship_filter defines the filter to be applied to the relationships to be returned.
.authzed.api.v1.RelationshipFilter relationship_filter = 2 [(.validate.rules) = { ... } -
clearRelationshipFilter
relationship_filter defines the filter to be applied to the relationships to be returned.
.authzed.api.v1.RelationshipFilter relationship_filter = 2 [(.validate.rules) = { ... } -
getRelationshipFilterBuilder
relationship_filter defines the filter to be applied to the relationships to be returned.
.authzed.api.v1.RelationshipFilter relationship_filter = 2 [(.validate.rules) = { ... } -
getRelationshipFilterOrBuilder
relationship_filter defines the filter to be applied to the relationships to be returned.
.authzed.api.v1.RelationshipFilter relationship_filter = 2 [(.validate.rules) = { ... }- Specified by:
getRelationshipFilterOrBuilderin interfaceReadRelationshipsRequestOrBuilder
-
getOptionalLimit
public int getOptionalLimit()optional_limit, if non-zero, specifies the limit on the number of relationships to return before the stream is closed on the server side. By default, the stream will continue resolving relationships until exhausted or the stream is closed due to the client or a network issue.
uint32 optional_limit = 3 [(.validate.rules) = { ... }- Specified by:
getOptionalLimitin interfaceReadRelationshipsRequestOrBuilder- Returns:
- The optionalLimit.
-
setOptionalLimit
optional_limit, if non-zero, specifies the limit on the number of relationships to return before the stream is closed on the server side. By default, the stream will continue resolving relationships until exhausted or the stream is closed due to the client or a network issue.
uint32 optional_limit = 3 [(.validate.rules) = { ... }- Parameters:
value- The optionalLimit to set.- Returns:
- This builder for chaining.
-
clearOptionalLimit
optional_limit, if non-zero, specifies the limit on the number of relationships to return before the stream is closed on the server side. By default, the stream will continue resolving relationships until exhausted or the stream is closed due to the client or a network issue.
uint32 optional_limit = 3 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
hasOptionalCursor
public boolean hasOptionalCursor()optional_cursor, if specified, indicates the cursor after which results should resume being returned. The cursor can be found on the ReadRelationshipsResponse object.
.authzed.api.v1.Cursor optional_cursor = 4;- Specified by:
hasOptionalCursorin interfaceReadRelationshipsRequestOrBuilder- Returns:
- Whether the optionalCursor field is set.
-
getOptionalCursor
optional_cursor, if specified, indicates the cursor after which results should resume being returned. The cursor can be found on the ReadRelationshipsResponse object.
.authzed.api.v1.Cursor optional_cursor = 4;- Specified by:
getOptionalCursorin interfaceReadRelationshipsRequestOrBuilder- Returns:
- The optionalCursor.
-
setOptionalCursor
optional_cursor, if specified, indicates the cursor after which results should resume being returned. The cursor can be found on the ReadRelationshipsResponse object.
.authzed.api.v1.Cursor optional_cursor = 4; -
setOptionalCursor
optional_cursor, if specified, indicates the cursor after which results should resume being returned. The cursor can be found on the ReadRelationshipsResponse object.
.authzed.api.v1.Cursor optional_cursor = 4; -
mergeOptionalCursor
optional_cursor, if specified, indicates the cursor after which results should resume being returned. The cursor can be found on the ReadRelationshipsResponse object.
.authzed.api.v1.Cursor optional_cursor = 4; -
clearOptionalCursor
optional_cursor, if specified, indicates the cursor after which results should resume being returned. The cursor can be found on the ReadRelationshipsResponse object.
.authzed.api.v1.Cursor optional_cursor = 4; -
getOptionalCursorBuilder
optional_cursor, if specified, indicates the cursor after which results should resume being returned. The cursor can be found on the ReadRelationshipsResponse object.
.authzed.api.v1.Cursor optional_cursor = 4; -
getOptionalCursorOrBuilder
optional_cursor, if specified, indicates the cursor after which results should resume being returned. The cursor can be found on the ReadRelationshipsResponse object.
.authzed.api.v1.Cursor optional_cursor = 4;- Specified by:
getOptionalCursorOrBuilderin interfaceReadRelationshipsRequestOrBuilder
-