Class RelationshipUpdate.Builder

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

public static final class RelationshipUpdate.Builder extends com.google.protobuf.GeneratedMessage.Builder<RelationshipUpdate.Builder> implements RelationshipUpdateOrBuilder
 RelationshipUpdate is used for mutating a single relationship within the
 service.

 CREATE will create the relationship only if it doesn't exist, and error
 otherwise.

 TOUCH will upsert the relationship, and will not error if it
 already exists.

 DELETE will delete the relationship. If the relationship does not exist,
 this operation will no-op.
 
Protobuf type authzed.api.v1.RelationshipUpdate
  • 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<RelationshipUpdate.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<RelationshipUpdate.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<RelationshipUpdate.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public RelationshipUpdate.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<RelationshipUpdate.Builder>
      Throws:
      IOException
    • getOperationValue

      public int getOperationValue()
      .authzed.api.v1.RelationshipUpdate.Operation operation = 1 [(.validate.rules) = { ... }
      Specified by:
      getOperationValue in interface RelationshipUpdateOrBuilder
      Returns:
      The enum numeric value on the wire for operation.
    • setOperationValue

      public RelationshipUpdate.Builder setOperationValue(int value)
      .authzed.api.v1.RelationshipUpdate.Operation operation = 1 [(.validate.rules) = { ... }
      Parameters:
      value - The enum numeric value on the wire for operation to set.
      Returns:
      This builder for chaining.
    • getOperation

      public RelationshipUpdate.Operation getOperation()
      .authzed.api.v1.RelationshipUpdate.Operation operation = 1 [(.validate.rules) = { ... }
      Specified by:
      getOperation in interface RelationshipUpdateOrBuilder
      Returns:
      The operation.
    • setOperation

      .authzed.api.v1.RelationshipUpdate.Operation operation = 1 [(.validate.rules) = { ... }
      Parameters:
      value - The operation to set.
      Returns:
      This builder for chaining.
    • clearOperation

      public RelationshipUpdate.Builder clearOperation()
      .authzed.api.v1.RelationshipUpdate.Operation operation = 1 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • hasRelationship

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

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

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

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

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

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

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

      public RelationshipOrBuilder getRelationshipOrBuilder()
      .authzed.api.v1.Relationship relationship = 2 [(.validate.rules) = { ... }
      Specified by:
      getRelationshipOrBuilder in interface RelationshipUpdateOrBuilder