Class Credentials.ProjectToken.Builder

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

public static final class Credentials.ProjectToken.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Credentials.ProjectToken.Builder> implements Credentials.ProjectTokenOrBuilder
 ### Project Token

 Describes a token issued under the scope of a Buildless project; project tokens are inherently ephemeral, and are
 typically used in automated scenarios like continuous integration or deployment bots. Project tokens are issued via
 the exchange of an API key or user token for a project token.

 For example, project tokens may be issued from GitHub Actions workflow tokens, and then used during a build to
 authenticate to the cache. This allows the cache to identify the project and apply access controls, while avoiding
 the need to manage credentials separately, or statically list them within the repository configuration or source
 code material.
 
Protobuf type buildless.projects.Credentials.ProjectToken
  • 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<Credentials.ProjectToken.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<Credentials.ProjectToken.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<Credentials.ProjectToken.Builder>
    • getDefaultInstanceForType

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

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

      public Credentials.ProjectToken buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<Credentials.ProjectToken.Builder>
    • setField

      public Credentials.ProjectToken.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<Credentials.ProjectToken.Builder>
    • clearField

      public Credentials.ProjectToken.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<Credentials.ProjectToken.Builder>
    • clearOneof

      public Credentials.ProjectToken.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<Credentials.ProjectToken.Builder>
    • setRepeatedField

      public Credentials.ProjectToken.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<Credentials.ProjectToken.Builder>
    • addRepeatedField

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

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

    • isInitialized

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

      public Credentials.ProjectToken.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<Credentials.ProjectToken.Builder>
      Throws:
      IOException
    • getUuid

      public String getUuid()
       Unique ID identifying this token; this value is generated by the server at the time the token is issued. It does
       not change for the lifecycle of the token.
       
      string uuid = 1 [json_name = "uuid", (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getUuid in interface Credentials.ProjectTokenOrBuilder
      Returns:
      The uuid.
    • getUuidBytes

      public com.google.protobuf.ByteString getUuidBytes()
       Unique ID identifying this token; this value is generated by the server at the time the token is issued. It does
       not change for the lifecycle of the token.
       
      string uuid = 1 [json_name = "uuid", (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getUuidBytes in interface Credentials.ProjectTokenOrBuilder
      Returns:
      The bytes for uuid.
    • setUuid

      public Credentials.ProjectToken.Builder setUuid(String value)
       Unique ID identifying this token; this value is generated by the server at the time the token is issued. It does
       not change for the lifecycle of the token.
       
      string uuid = 1 [json_name = "uuid", (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The uuid to set.
      Returns:
      This builder for chaining.
    • clearUuid

       Unique ID identifying this token; this value is generated by the server at the time the token is issued. It does
       not change for the lifecycle of the token.
       
      string uuid = 1 [json_name = "uuid", (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setUuidBytes

      public Credentials.ProjectToken.Builder setUuidBytes(com.google.protobuf.ByteString value)
       Unique ID identifying this token; this value is generated by the server at the time the token is issued. It does
       not change for the lifecycle of the token.
       
      string uuid = 1 [json_name = "uuid", (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for uuid to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Display description which is listed along with this key; this is a user-provided or server-generated value which
       describes how the token was issued.
       
      string description = 2 [json_name = "description", (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getDescription in interface Credentials.ProjectTokenOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Display description which is listed along with this key; this is a user-provided or server-generated value which
       describes how the token was issued.
       
      string description = 2 [json_name = "description", (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getDescriptionBytes in interface Credentials.ProjectTokenOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public Credentials.ProjectToken.Builder setDescription(String value)
       Display description which is listed along with this key; this is a user-provided or server-generated value which
       describes how the token was issued.
       
      string description = 2 [json_name = "description", (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public Credentials.ProjectToken.Builder clearDescription()
       Display description which is listed along with this key; this is a user-provided or server-generated value which
       describes how the token was issued.
       
      string description = 2 [json_name = "description", (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Credentials.ProjectToken.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Display description which is listed along with this key; this is a user-provided or server-generated value which
       describes how the token was issued.
       
      string description = 2 [json_name = "description", (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final Credentials.ProjectToken.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<Credentials.ProjectToken.Builder>
    • mergeUnknownFields

      public final Credentials.ProjectToken.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<Credentials.ProjectToken.Builder>