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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ReadRelationshipsRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ReadRelationshipsRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ReadRelationshipsRequest.Builder>
    • getDefaultInstanceForType

      public ReadRelationshipsRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ReadRelationshipsRequest build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ReadRelationshipsRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ReadRelationshipsRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ReadRelationshipsRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ReadRelationshipsRequest.Builder>
      Throws:
      IOException
    • hasConsistency

      public boolean hasConsistency()
      .authzed.api.v1.Consistency consistency = 1;
      Specified by:
      hasConsistency in interface ReadRelationshipsRequestOrBuilder
      Returns:
      Whether the consistency field is set.
    • getConsistency

      public Consistency getConsistency()
      .authzed.api.v1.Consistency consistency = 1;
      Specified by:
      getConsistency in interface ReadRelationshipsRequestOrBuilder
      Returns:
      The consistency.
    • setConsistency

      public ReadRelationshipsRequest.Builder setConsistency(Consistency value)
      .authzed.api.v1.Consistency consistency = 1;
    • setConsistency

      public ReadRelationshipsRequest.Builder setConsistency(Consistency.Builder builderForValue)
      .authzed.api.v1.Consistency consistency = 1;
    • mergeConsistency

      public ReadRelationshipsRequest.Builder mergeConsistency(Consistency value)
      .authzed.api.v1.Consistency consistency = 1;
    • clearConsistency

      public ReadRelationshipsRequest.Builder clearConsistency()
      .authzed.api.v1.Consistency consistency = 1;
    • getConsistencyBuilder

      public Consistency.Builder getConsistencyBuilder()
      .authzed.api.v1.Consistency consistency = 1;
    • getConsistencyOrBuilder

      public ConsistencyOrBuilder getConsistencyOrBuilder()
      .authzed.api.v1.Consistency consistency = 1;
      Specified by:
      getConsistencyOrBuilder in interface ReadRelationshipsRequestOrBuilder
    • 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 interface ReadRelationshipsRequestOrBuilder
      Returns:
      Whether the relationshipFilter field is set.
    • getRelationshipFilter

      public RelationshipFilter 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 interface ReadRelationshipsRequestOrBuilder
      Returns:
      The relationshipFilter.
    • setRelationshipFilter

      public ReadRelationshipsRequest.Builder setRelationshipFilter(RelationshipFilter value)
       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

      public ReadRelationshipsRequest.Builder mergeRelationshipFilter(RelationshipFilter value)
       relationship_filter defines the filter to be applied to the relationships
       to be returned.
       
      .authzed.api.v1.RelationshipFilter relationship_filter = 2 [(.validate.rules) = { ... }
    • clearRelationshipFilter

      public ReadRelationshipsRequest.Builder 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

      public RelationshipFilter.Builder 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

      public RelationshipFilterOrBuilder 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 interface ReadRelationshipsRequestOrBuilder
    • 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 interface ReadRelationshipsRequestOrBuilder
      Returns:
      The optionalLimit.
    • setOptionalLimit

      public ReadRelationshipsRequest.Builder 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. 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

      public ReadRelationshipsRequest.Builder 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 interface ReadRelationshipsRequestOrBuilder
      Returns:
      Whether the optionalCursor field is set.
    • getOptionalCursor

      public Cursor 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 interface ReadRelationshipsRequestOrBuilder
      Returns:
      The optionalCursor.
    • setOptionalCursor

      public ReadRelationshipsRequest.Builder setOptionalCursor(Cursor value)
       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

      public ReadRelationshipsRequest.Builder setOptionalCursor(Cursor.Builder builderForValue)
       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

      public ReadRelationshipsRequest.Builder mergeOptionalCursor(Cursor value)
       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

      public ReadRelationshipsRequest.Builder 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

      public Cursor.Builder 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

      public CursorOrBuilder 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 interface ReadRelationshipsRequestOrBuilder