Class ReadRelationshipsResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ReadRelationshipsResponse.Builder>
com.authzed.api.v1.ReadRelationshipsResponse.Builder
All Implemented Interfaces:
ReadRelationshipsResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ReadRelationshipsResponse

public static final class ReadRelationshipsResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ReadRelationshipsResponse.Builder> implements ReadRelationshipsResponseOrBuilder
 ReadRelationshipsResponse contains a Relationship found that matches the
 specified relationship filter(s). A instance of this response message will
 be streamed to the client for each relationship found.
 
Protobuf type authzed.api.v1.ReadRelationshipsResponse
  • 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<ReadRelationshipsResponse.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<ReadRelationshipsResponse.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<ReadRelationshipsResponse.Builder>
    • getDefaultInstanceForType

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

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

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

      public ReadRelationshipsResponse.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<ReadRelationshipsResponse.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<ReadRelationshipsResponse.Builder>
    • mergeFrom

      public ReadRelationshipsResponse.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<ReadRelationshipsResponse.Builder>
      Throws:
      IOException
    • hasReadAt

      public boolean hasReadAt()
       read_at is the ZedToken at which the relationship was found.
       
      .authzed.api.v1.ZedToken read_at = 1 [(.validate.rules) = { ... }
      Specified by:
      hasReadAt in interface ReadRelationshipsResponseOrBuilder
      Returns:
      Whether the readAt field is set.
    • getReadAt

      public ZedToken getReadAt()
       read_at is the ZedToken at which the relationship was found.
       
      .authzed.api.v1.ZedToken read_at = 1 [(.validate.rules) = { ... }
      Specified by:
      getReadAt in interface ReadRelationshipsResponseOrBuilder
      Returns:
      The readAt.
    • setReadAt

      public ReadRelationshipsResponse.Builder setReadAt(ZedToken value)
       read_at is the ZedToken at which the relationship was found.
       
      .authzed.api.v1.ZedToken read_at = 1 [(.validate.rules) = { ... }
    • setReadAt

      public ReadRelationshipsResponse.Builder setReadAt(ZedToken.Builder builderForValue)
       read_at is the ZedToken at which the relationship was found.
       
      .authzed.api.v1.ZedToken read_at = 1 [(.validate.rules) = { ... }
    • mergeReadAt

      public ReadRelationshipsResponse.Builder mergeReadAt(ZedToken value)
       read_at is the ZedToken at which the relationship was found.
       
      .authzed.api.v1.ZedToken read_at = 1 [(.validate.rules) = { ... }
    • clearReadAt

      public ReadRelationshipsResponse.Builder clearReadAt()
       read_at is the ZedToken at which the relationship was found.
       
      .authzed.api.v1.ZedToken read_at = 1 [(.validate.rules) = { ... }
    • getReadAtBuilder

      public ZedToken.Builder getReadAtBuilder()
       read_at is the ZedToken at which the relationship was found.
       
      .authzed.api.v1.ZedToken read_at = 1 [(.validate.rules) = { ... }
    • getReadAtOrBuilder

      public ZedTokenOrBuilder getReadAtOrBuilder()
       read_at is the ZedToken at which the relationship was found.
       
      .authzed.api.v1.ZedToken read_at = 1 [(.validate.rules) = { ... }
      Specified by:
      getReadAtOrBuilder in interface ReadRelationshipsResponseOrBuilder
    • hasRelationship

      public boolean hasRelationship()
       relationship is the found relationship.
       
      .authzed.api.v1.Relationship relationship = 2 [(.validate.rules) = { ... }
      Specified by:
      hasRelationship in interface ReadRelationshipsResponseOrBuilder
      Returns:
      Whether the relationship field is set.
    • getRelationship

      public Relationship getRelationship()
       relationship is the found relationship.
       
      .authzed.api.v1.Relationship relationship = 2 [(.validate.rules) = { ... }
      Specified by:
      getRelationship in interface ReadRelationshipsResponseOrBuilder
      Returns:
      The relationship.
    • setRelationship

      public ReadRelationshipsResponse.Builder setRelationship(Relationship value)
       relationship is the found relationship.
       
      .authzed.api.v1.Relationship relationship = 2 [(.validate.rules) = { ... }
    • setRelationship

      public ReadRelationshipsResponse.Builder setRelationship(Relationship.Builder builderForValue)
       relationship is the found relationship.
       
      .authzed.api.v1.Relationship relationship = 2 [(.validate.rules) = { ... }
    • mergeRelationship

      public ReadRelationshipsResponse.Builder mergeRelationship(Relationship value)
       relationship is the found relationship.
       
      .authzed.api.v1.Relationship relationship = 2 [(.validate.rules) = { ... }
    • clearRelationship

      public ReadRelationshipsResponse.Builder clearRelationship()
       relationship is the found relationship.
       
      .authzed.api.v1.Relationship relationship = 2 [(.validate.rules) = { ... }
    • getRelationshipBuilder

      public Relationship.Builder getRelationshipBuilder()
       relationship is the found relationship.
       
      .authzed.api.v1.Relationship relationship = 2 [(.validate.rules) = { ... }
    • getRelationshipOrBuilder

      public RelationshipOrBuilder getRelationshipOrBuilder()
       relationship is the found relationship.
       
      .authzed.api.v1.Relationship relationship = 2 [(.validate.rules) = { ... }
      Specified by:
      getRelationshipOrBuilder in interface ReadRelationshipsResponseOrBuilder
    • hasAfterResultCursor

      public boolean hasAfterResultCursor()
       after_result_cursor holds a cursor that can be used to resume the ReadRelationships stream after this
       result.
       
      .authzed.api.v1.Cursor after_result_cursor = 3;
      Specified by:
      hasAfterResultCursor in interface ReadRelationshipsResponseOrBuilder
      Returns:
      Whether the afterResultCursor field is set.
    • getAfterResultCursor

      public Cursor getAfterResultCursor()
       after_result_cursor holds a cursor that can be used to resume the ReadRelationships stream after this
       result.
       
      .authzed.api.v1.Cursor after_result_cursor = 3;
      Specified by:
      getAfterResultCursor in interface ReadRelationshipsResponseOrBuilder
      Returns:
      The afterResultCursor.
    • setAfterResultCursor

      public ReadRelationshipsResponse.Builder setAfterResultCursor(Cursor value)
       after_result_cursor holds a cursor that can be used to resume the ReadRelationships stream after this
       result.
       
      .authzed.api.v1.Cursor after_result_cursor = 3;
    • setAfterResultCursor

      public ReadRelationshipsResponse.Builder setAfterResultCursor(Cursor.Builder builderForValue)
       after_result_cursor holds a cursor that can be used to resume the ReadRelationships stream after this
       result.
       
      .authzed.api.v1.Cursor after_result_cursor = 3;
    • mergeAfterResultCursor

      public ReadRelationshipsResponse.Builder mergeAfterResultCursor(Cursor value)
       after_result_cursor holds a cursor that can be used to resume the ReadRelationships stream after this
       result.
       
      .authzed.api.v1.Cursor after_result_cursor = 3;
    • clearAfterResultCursor

      public ReadRelationshipsResponse.Builder clearAfterResultCursor()
       after_result_cursor holds a cursor that can be used to resume the ReadRelationships stream after this
       result.
       
      .authzed.api.v1.Cursor after_result_cursor = 3;
    • getAfterResultCursorBuilder

      public Cursor.Builder getAfterResultCursorBuilder()
       after_result_cursor holds a cursor that can be used to resume the ReadRelationships stream after this
       result.
       
      .authzed.api.v1.Cursor after_result_cursor = 3;
    • getAfterResultCursorOrBuilder

      public CursorOrBuilder getAfterResultCursorOrBuilder()
       after_result_cursor holds a cursor that can be used to resume the ReadRelationships stream after this
       result.
       
      .authzed.api.v1.Cursor after_result_cursor = 3;
      Specified by:
      getAfterResultCursorOrBuilder in interface ReadRelationshipsResponseOrBuilder