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.Descriptor
com.google.protobuf.Descriptors.Descriptor
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.optional_cursor, if specified, indicates the cursor after which results should resume being returned.int
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.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;
boolean
optional_cursor, if specified, indicates the cursor after which results should resume being returned.boolean
relationship_filter defines the filter to be applied to the relationships to be returned.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeConsistency
(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, 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<ReadRelationshipsRequest.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<ReadRelationshipsRequest.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<ReadRelationshipsRequest.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<ReadRelationshipsRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ReadRelationshipsRequest.Builder>
- Throws:
IOException
-
hasConsistency
public boolean hasConsistency().authzed.api.v1.Consistency consistency = 1;
- Specified by:
hasConsistency
in interfaceReadRelationshipsRequestOrBuilder
- Returns:
- Whether the consistency field is set.
-
getConsistency
.authzed.api.v1.Consistency consistency = 1;
- Specified by:
getConsistency
in 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:
getConsistencyOrBuilder
in 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:
hasRelationshipFilter
in 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:
getRelationshipFilter
in 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:
getRelationshipFilterOrBuilder
in 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:
getOptionalLimit
in 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:
hasOptionalCursor
in 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:
getOptionalCursor
in 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:
getOptionalCursorOrBuilder
in interfaceReadRelationshipsRequestOrBuilder
-