Class Core.ObjectAndRelation.Builder

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

public static final class Core.ObjectAndRelation.Builder extends com.google.protobuf.GeneratedMessage.Builder<Core.ObjectAndRelation.Builder> implements Core.ObjectAndRelationOrBuilder
Protobuf type authzed.api.v0.ObjectAndRelation
  • 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<Core.ObjectAndRelation.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<Core.ObjectAndRelation.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<Core.ObjectAndRelation.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public Core.ObjectAndRelation.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<Core.ObjectAndRelation.Builder>
      Throws:
      IOException
    • getNamespace

      public String getNamespace()
      string namespace = 1 [(.validate.rules) = { ... }
      Specified by:
      getNamespace in interface Core.ObjectAndRelationOrBuilder
      Returns:
      The namespace.
    • getNamespaceBytes

      public com.google.protobuf.ByteString getNamespaceBytes()
      string namespace = 1 [(.validate.rules) = { ... }
      Specified by:
      getNamespaceBytes in interface Core.ObjectAndRelationOrBuilder
      Returns:
      The bytes for namespace.
    • setNamespace

      public Core.ObjectAndRelation.Builder setNamespace(String value)
      string namespace = 1 [(.validate.rules) = { ... }
      Parameters:
      value - The namespace to set.
      Returns:
      This builder for chaining.
    • clearNamespace

      public Core.ObjectAndRelation.Builder clearNamespace()
      string namespace = 1 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • setNamespaceBytes

      public Core.ObjectAndRelation.Builder setNamespaceBytes(com.google.protobuf.ByteString value)
      string namespace = 1 [(.validate.rules) = { ... }
      Parameters:
      value - The bytes for namespace to set.
      Returns:
      This builder for chaining.
    • getObjectId

      public String getObjectId()
      string object_id = 2 [(.validate.rules) = { ... }
      Specified by:
      getObjectId in interface Core.ObjectAndRelationOrBuilder
      Returns:
      The objectId.
    • getObjectIdBytes

      public com.google.protobuf.ByteString getObjectIdBytes()
      string object_id = 2 [(.validate.rules) = { ... }
      Specified by:
      getObjectIdBytes in interface Core.ObjectAndRelationOrBuilder
      Returns:
      The bytes for objectId.
    • setObjectId

      public Core.ObjectAndRelation.Builder setObjectId(String value)
      string object_id = 2 [(.validate.rules) = { ... }
      Parameters:
      value - The objectId to set.
      Returns:
      This builder for chaining.
    • clearObjectId

      public Core.ObjectAndRelation.Builder clearObjectId()
      string object_id = 2 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • setObjectIdBytes

      public Core.ObjectAndRelation.Builder setObjectIdBytes(com.google.protobuf.ByteString value)
      string object_id = 2 [(.validate.rules) = { ... }
      Parameters:
      value - The bytes for objectId to set.
      Returns:
      This builder for chaining.
    • getRelation

      public String getRelation()
      string relation = 3 [(.validate.rules) = { ... }
      Specified by:
      getRelation in interface Core.ObjectAndRelationOrBuilder
      Returns:
      The relation.
    • getRelationBytes

      public com.google.protobuf.ByteString getRelationBytes()
      string relation = 3 [(.validate.rules) = { ... }
      Specified by:
      getRelationBytes in interface Core.ObjectAndRelationOrBuilder
      Returns:
      The bytes for relation.
    • setRelation

      public Core.ObjectAndRelation.Builder setRelation(String value)
      string relation = 3 [(.validate.rules) = { ... }
      Parameters:
      value - The relation to set.
      Returns:
      This builder for chaining.
    • clearRelation

      public Core.ObjectAndRelation.Builder clearRelation()
      string relation = 3 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • setRelationBytes

      public Core.ObjectAndRelation.Builder setRelationBytes(com.google.protobuf.ByteString value)
      string relation = 3 [(.validate.rules) = { ... }
      Parameters:
      value - The bytes for relation to set.
      Returns:
      This builder for chaining.