Class ProjectKey.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ProjectKey.Builder>
com.buildless.projects.ProjectKey.Builder
All Implemented Interfaces:
ProjectKeyOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ProjectKey

public static final class ProjectKey.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ProjectKey.Builder> implements ProjectKeyOrBuilder
 ## Project Key

 Specifies the structure of a project's record key. Project keys are assembled from user inputs and server-generated
 values at the time a project is created, and then used to reference such project later. Project keys specify owner
 information and carry a version for the underlying project record (where applicable).
 
Protobuf type buildless.projects.ProjectKey
  • Method Summary

    Modifier and Type
    Method
    Description
    addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
     
     
     
     
    clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
     
    "Short name" of a project, which is assigned by the user at the time the project is created, or by the server if no value is provided by the user.
    clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
     
    Specifies the owner for this project.
    Generated UUID value by which the project can be referenced.
     
    Specifies the "version" of the project, as understood by the agent handling the key (the server or the client).
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    "Short name" of a project, which is assigned by the user at the time the project is created, or by the server if no value is provided by the user.
    com.google.protobuf.ByteString
    "Short name" of a project, which is assigned by the user at the time the project is created, or by the server if no value is provided by the user.
    Specifies the owner for this project.
    com.google.protobuf.ByteString
    Specifies the owner for this project.
    Generated UUID value by which the project can be referenced.
    com.google.protobuf.ByteString
    Generated UUID value by which the project can be referenced.
     
    long
    Specifies the "version" of the project, as understood by the agent handling the key (the server or the client).
    boolean
    "Short name" of a project, which is assigned by the user at the time the project is created, or by the server if no value is provided by the user.
    boolean
    Generated UUID value by which the project can be referenced.
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
     
    setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
     
    setName(String value)
    "Short name" of a project, which is assigned by the user at the time the project is created, or by the server if no value is provided by the user.
    setNameBytes(com.google.protobuf.ByteString value)
    "Short name" of a project, which is assigned by the user at the time the project is created, or by the server if no value is provided by the user.
    Specifies the owner for this project.
    setOwnerBytes(com.google.protobuf.ByteString value)
    Specifies the owner for this project.
    setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
     
    setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
     
    setUuid(String value)
    Generated UUID value by which the project can be referenced.
    setUuidBytes(com.google.protobuf.ByteString value)
    Generated UUID value by which the project can be referenced.
    setVersion(long value)
    Specifies the "version" of the project, as understood by the agent handling the key (the server or the client).

    Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder

    getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ProjectKey.Builder>
    • clear

      public ProjectKey.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.GeneratedMessageV3.Builder<ProjectKey.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.GeneratedMessageV3.Builder<ProjectKey.Builder>
    • getDefaultInstanceForType

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

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

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

      public ProjectKey.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<ProjectKey.Builder>
    • setField

      public ProjectKey.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<ProjectKey.Builder>
    • clearField

      public ProjectKey.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ProjectKey.Builder>
    • clearOneof

      public ProjectKey.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ProjectKey.Builder>
    • setRepeatedField

      public ProjectKey.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ProjectKey.Builder>
    • addRepeatedField

      public ProjectKey.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ProjectKey.Builder>
    • mergeFrom

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

      public ProjectKey.Builder mergeFrom(ProjectKey other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ProjectKey.Builder>
    • mergeFrom

      public ProjectKey.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<ProjectKey.Builder>
      Throws:
      IOException
    • getValueCase

      public ProjectKey.ValueCase getValueCase()
      Specified by:
      getValueCase in interface ProjectKeyOrBuilder
    • clearValue

      public ProjectKey.Builder clearValue()
    • hasUuid

      public boolean hasUuid()
       Generated UUID value by which the project can be referenced.
       
      string uuid = 1 [json_name = "uuid", (.validate.rules) = { ... }
      Specified by:
      hasUuid in interface ProjectKeyOrBuilder
      Returns:
      Whether the uuid field is set.
    • getUuid

      public String getUuid()
       Generated UUID value by which the project can be referenced.
       
      string uuid = 1 [json_name = "uuid", (.validate.rules) = { ... }
      Specified by:
      getUuid in interface ProjectKeyOrBuilder
      Returns:
      The uuid.
    • getUuidBytes

      public com.google.protobuf.ByteString getUuidBytes()
       Generated UUID value by which the project can be referenced.
       
      string uuid = 1 [json_name = "uuid", (.validate.rules) = { ... }
      Specified by:
      getUuidBytes in interface ProjectKeyOrBuilder
      Returns:
      The bytes for uuid.
    • setUuid

      public ProjectKey.Builder setUuid(String value)
       Generated UUID value by which the project can be referenced.
       
      string uuid = 1 [json_name = "uuid", (.validate.rules) = { ... }
      Parameters:
      value - The uuid to set.
      Returns:
      This builder for chaining.
    • clearUuid

      public ProjectKey.Builder clearUuid()
       Generated UUID value by which the project can be referenced.
       
      string uuid = 1 [json_name = "uuid", (.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • setUuidBytes

      public ProjectKey.Builder setUuidBytes(com.google.protobuf.ByteString value)
       Generated UUID value by which the project can be referenced.
       
      string uuid = 1 [json_name = "uuid", (.validate.rules) = { ... }
      Parameters:
      value - The bytes for uuid to set.
      Returns:
      This builder for chaining.
    • hasName

      public boolean hasName()
       "Short name" of a project, which is assigned by the user at the time the project is created, or by the server if
       no value is provided by the user.
       
      string name = 2 [json_name = "name", (.validate.rules) = { ... }
      Specified by:
      hasName in interface ProjectKeyOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       "Short name" of a project, which is assigned by the user at the time the project is created, or by the server if
       no value is provided by the user.
       
      string name = 2 [json_name = "name", (.validate.rules) = { ... }
      Specified by:
      getName in interface ProjectKeyOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       "Short name" of a project, which is assigned by the user at the time the project is created, or by the server if
       no value is provided by the user.
       
      string name = 2 [json_name = "name", (.validate.rules) = { ... }
      Specified by:
      getNameBytes in interface ProjectKeyOrBuilder
      Returns:
      The bytes for name.
    • setName

      public ProjectKey.Builder setName(String value)
       "Short name" of a project, which is assigned by the user at the time the project is created, or by the server if
       no value is provided by the user.
       
      string name = 2 [json_name = "name", (.validate.rules) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public ProjectKey.Builder clearName()
       "Short name" of a project, which is assigned by the user at the time the project is created, or by the server if
       no value is provided by the user.
       
      string name = 2 [json_name = "name", (.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public ProjectKey.Builder setNameBytes(com.google.protobuf.ByteString value)
       "Short name" of a project, which is assigned by the user at the time the project is created, or by the server if
       no value is provided by the user.
       
      string name = 2 [json_name = "name", (.validate.rules) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getOwner

      public String getOwner()
       Specifies the owner for this project.
       
      string owner = 3 [json_name = "owner", (.validate.rules) = { ... }
      Specified by:
      getOwner in interface ProjectKeyOrBuilder
      Returns:
      The owner.
    • getOwnerBytes

      public com.google.protobuf.ByteString getOwnerBytes()
       Specifies the owner for this project.
       
      string owner = 3 [json_name = "owner", (.validate.rules) = { ... }
      Specified by:
      getOwnerBytes in interface ProjectKeyOrBuilder
      Returns:
      The bytes for owner.
    • setOwner

      public ProjectKey.Builder setOwner(String value)
       Specifies the owner for this project.
       
      string owner = 3 [json_name = "owner", (.validate.rules) = { ... }
      Parameters:
      value - The owner to set.
      Returns:
      This builder for chaining.
    • clearOwner

      public ProjectKey.Builder clearOwner()
       Specifies the owner for this project.
       
      string owner = 3 [json_name = "owner", (.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • setOwnerBytes

      public ProjectKey.Builder setOwnerBytes(com.google.protobuf.ByteString value)
       Specifies the owner for this project.
       
      string owner = 3 [json_name = "owner", (.validate.rules) = { ... }
      Parameters:
      value - The bytes for owner to set.
      Returns:
      This builder for chaining.
    • getVersion

      public long getVersion()
       Specifies the "version" of the project, as understood by the agent handling the key (the server or the client). The
       record version should increment with each change to the underlying project record.
       
      uint64 version = 6 [json_name = "version", (.validate.rules) = { ... }
      Specified by:
      getVersion in interface ProjectKeyOrBuilder
      Returns:
      The version.
    • setVersion

      public ProjectKey.Builder setVersion(long value)
       Specifies the "version" of the project, as understood by the agent handling the key (the server or the client). The
       record version should increment with each change to the underlying project record.
       
      uint64 version = 6 [json_name = "version", (.validate.rules) = { ... }
      Parameters:
      value - The version to set.
      Returns:
      This builder for chaining.
    • clearVersion

      public ProjectKey.Builder clearVersion()
       Specifies the "version" of the project, as understood by the agent handling the key (the server or the client). The
       record version should increment with each change to the underlying project record.
       
      uint64 version = 6 [json_name = "version", (.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final ProjectKey.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ProjectKey.Builder>
    • mergeUnknownFields

      public final ProjectKey.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ProjectKey.Builder>