Class Credentials.Builder

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

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

 Describes credentials which are provisioned within the scope of a project. These credentials are used to authenticate
 automated agents like CI builds, and can be inlined within the project safely without leaking user privileges.

 Some projects may choose to inline credentials if source code is public and they want to avoid onboarding end-users
 (in which case, a `PUBLIC` project is used), or if the project is private and the user wants to avoid managing
 credentials separately.
 
Protobuf type buildless.projects.Credentials
  • 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.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public Credentials.Builder mergeFrom(Credentials other)
    • isInitialized

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

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

      public List<Credentials.ProjectApiKey> getApikeyList()
       Describes the set of API keys issued for this project; one always exists, having been provisioned at the time the
       project is created.
       
      repeated .buildless.projects.Credentials.ProjectApiKey apikey = 1 [json_name = "apikey", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getApikeyList in interface CredentialsOrBuilder
    • getApikeyCount

      public int getApikeyCount()
       Describes the set of API keys issued for this project; one always exists, having been provisioned at the time the
       project is created.
       
      repeated .buildless.projects.Credentials.ProjectApiKey apikey = 1 [json_name = "apikey", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getApikeyCount in interface CredentialsOrBuilder
    • getApikey

      public Credentials.ProjectApiKey getApikey(int index)
       Describes the set of API keys issued for this project; one always exists, having been provisioned at the time the
       project is created.
       
      repeated .buildless.projects.Credentials.ProjectApiKey apikey = 1 [json_name = "apikey", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getApikey in interface CredentialsOrBuilder
    • setApikey

      public Credentials.Builder setApikey(int index, Credentials.ProjectApiKey value)
       Describes the set of API keys issued for this project; one always exists, having been provisioned at the time the
       project is created.
       
      repeated .buildless.projects.Credentials.ProjectApiKey apikey = 1 [json_name = "apikey", (.google.api.field_behavior) = OUTPUT_ONLY];
    • setApikey

      public Credentials.Builder setApikey(int index, Credentials.ProjectApiKey.Builder builderForValue)
       Describes the set of API keys issued for this project; one always exists, having been provisioned at the time the
       project is created.
       
      repeated .buildless.projects.Credentials.ProjectApiKey apikey = 1 [json_name = "apikey", (.google.api.field_behavior) = OUTPUT_ONLY];
    • addApikey

       Describes the set of API keys issued for this project; one always exists, having been provisioned at the time the
       project is created.
       
      repeated .buildless.projects.Credentials.ProjectApiKey apikey = 1 [json_name = "apikey", (.google.api.field_behavior) = OUTPUT_ONLY];
    • addApikey

      public Credentials.Builder addApikey(int index, Credentials.ProjectApiKey value)
       Describes the set of API keys issued for this project; one always exists, having been provisioned at the time the
       project is created.
       
      repeated .buildless.projects.Credentials.ProjectApiKey apikey = 1 [json_name = "apikey", (.google.api.field_behavior) = OUTPUT_ONLY];
    • addApikey

      public Credentials.Builder addApikey(Credentials.ProjectApiKey.Builder builderForValue)
       Describes the set of API keys issued for this project; one always exists, having been provisioned at the time the
       project is created.
       
      repeated .buildless.projects.Credentials.ProjectApiKey apikey = 1 [json_name = "apikey", (.google.api.field_behavior) = OUTPUT_ONLY];
    • addApikey

      public Credentials.Builder addApikey(int index, Credentials.ProjectApiKey.Builder builderForValue)
       Describes the set of API keys issued for this project; one always exists, having been provisioned at the time the
       project is created.
       
      repeated .buildless.projects.Credentials.ProjectApiKey apikey = 1 [json_name = "apikey", (.google.api.field_behavior) = OUTPUT_ONLY];
    • addAllApikey

      public Credentials.Builder addAllApikey(Iterable<? extends Credentials.ProjectApiKey> values)
       Describes the set of API keys issued for this project; one always exists, having been provisioned at the time the
       project is created.
       
      repeated .buildless.projects.Credentials.ProjectApiKey apikey = 1 [json_name = "apikey", (.google.api.field_behavior) = OUTPUT_ONLY];
    • clearApikey

      public Credentials.Builder clearApikey()
       Describes the set of API keys issued for this project; one always exists, having been provisioned at the time the
       project is created.
       
      repeated .buildless.projects.Credentials.ProjectApiKey apikey = 1 [json_name = "apikey", (.google.api.field_behavior) = OUTPUT_ONLY];
    • removeApikey

      public Credentials.Builder removeApikey(int index)
       Describes the set of API keys issued for this project; one always exists, having been provisioned at the time the
       project is created.
       
      repeated .buildless.projects.Credentials.ProjectApiKey apikey = 1 [json_name = "apikey", (.google.api.field_behavior) = OUTPUT_ONLY];
    • getApikeyBuilder

      public Credentials.ProjectApiKey.Builder getApikeyBuilder(int index)
       Describes the set of API keys issued for this project; one always exists, having been provisioned at the time the
       project is created.
       
      repeated .buildless.projects.Credentials.ProjectApiKey apikey = 1 [json_name = "apikey", (.google.api.field_behavior) = OUTPUT_ONLY];
    • getApikeyOrBuilder

      public Credentials.ProjectApiKeyOrBuilder getApikeyOrBuilder(int index)
       Describes the set of API keys issued for this project; one always exists, having been provisioned at the time the
       project is created.
       
      repeated .buildless.projects.Credentials.ProjectApiKey apikey = 1 [json_name = "apikey", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getApikeyOrBuilder in interface CredentialsOrBuilder
    • getApikeyOrBuilderList

      public List<? extends Credentials.ProjectApiKeyOrBuilder> getApikeyOrBuilderList()
       Describes the set of API keys issued for this project; one always exists, having been provisioned at the time the
       project is created.
       
      repeated .buildless.projects.Credentials.ProjectApiKey apikey = 1 [json_name = "apikey", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getApikeyOrBuilderList in interface CredentialsOrBuilder
    • addApikeyBuilder

      public Credentials.ProjectApiKey.Builder addApikeyBuilder()
       Describes the set of API keys issued for this project; one always exists, having been provisioned at the time the
       project is created.
       
      repeated .buildless.projects.Credentials.ProjectApiKey apikey = 1 [json_name = "apikey", (.google.api.field_behavior) = OUTPUT_ONLY];
    • addApikeyBuilder

      public Credentials.ProjectApiKey.Builder addApikeyBuilder(int index)
       Describes the set of API keys issued for this project; one always exists, having been provisioned at the time the
       project is created.
       
      repeated .buildless.projects.Credentials.ProjectApiKey apikey = 1 [json_name = "apikey", (.google.api.field_behavior) = OUTPUT_ONLY];
    • getApikeyBuilderList

      public List<Credentials.ProjectApiKey.Builder> getApikeyBuilderList()
       Describes the set of API keys issued for this project; one always exists, having been provisioned at the time the
       project is created.
       
      repeated .buildless.projects.Credentials.ProjectApiKey apikey = 1 [json_name = "apikey", (.google.api.field_behavior) = OUTPUT_ONLY];
    • getTokenList

      public List<Credentials.ProjectToken> getTokenList()
       Describes the project tokens most recently issued for this project; these are only present if the project has been
       used to issue tokens. Tokens expire on a regular interval and after that time are not listed here.
       
      repeated .buildless.projects.Credentials.ProjectToken token = 2 [json_name = "token", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTokenList in interface CredentialsOrBuilder
    • getTokenCount

      public int getTokenCount()
       Describes the project tokens most recently issued for this project; these are only present if the project has been
       used to issue tokens. Tokens expire on a regular interval and after that time are not listed here.
       
      repeated .buildless.projects.Credentials.ProjectToken token = 2 [json_name = "token", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTokenCount in interface CredentialsOrBuilder
    • getToken

      public Credentials.ProjectToken getToken(int index)
       Describes the project tokens most recently issued for this project; these are only present if the project has been
       used to issue tokens. Tokens expire on a regular interval and after that time are not listed here.
       
      repeated .buildless.projects.Credentials.ProjectToken token = 2 [json_name = "token", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getToken in interface CredentialsOrBuilder
    • setToken

      public Credentials.Builder setToken(int index, Credentials.ProjectToken value)
       Describes the project tokens most recently issued for this project; these are only present if the project has been
       used to issue tokens. Tokens expire on a regular interval and after that time are not listed here.
       
      repeated .buildless.projects.Credentials.ProjectToken token = 2 [json_name = "token", (.google.api.field_behavior) = OUTPUT_ONLY];
    • setToken

      public Credentials.Builder setToken(int index, Credentials.ProjectToken.Builder builderForValue)
       Describes the project tokens most recently issued for this project; these are only present if the project has been
       used to issue tokens. Tokens expire on a regular interval and after that time are not listed here.
       
      repeated .buildless.projects.Credentials.ProjectToken token = 2 [json_name = "token", (.google.api.field_behavior) = OUTPUT_ONLY];
    • addToken

       Describes the project tokens most recently issued for this project; these are only present if the project has been
       used to issue tokens. Tokens expire on a regular interval and after that time are not listed here.
       
      repeated .buildless.projects.Credentials.ProjectToken token = 2 [json_name = "token", (.google.api.field_behavior) = OUTPUT_ONLY];
    • addToken

      public Credentials.Builder addToken(int index, Credentials.ProjectToken value)
       Describes the project tokens most recently issued for this project; these are only present if the project has been
       used to issue tokens. Tokens expire on a regular interval and after that time are not listed here.
       
      repeated .buildless.projects.Credentials.ProjectToken token = 2 [json_name = "token", (.google.api.field_behavior) = OUTPUT_ONLY];
    • addToken

      public Credentials.Builder addToken(Credentials.ProjectToken.Builder builderForValue)
       Describes the project tokens most recently issued for this project; these are only present if the project has been
       used to issue tokens. Tokens expire on a regular interval and after that time are not listed here.
       
      repeated .buildless.projects.Credentials.ProjectToken token = 2 [json_name = "token", (.google.api.field_behavior) = OUTPUT_ONLY];
    • addToken

      public Credentials.Builder addToken(int index, Credentials.ProjectToken.Builder builderForValue)
       Describes the project tokens most recently issued for this project; these are only present if the project has been
       used to issue tokens. Tokens expire on a regular interval and after that time are not listed here.
       
      repeated .buildless.projects.Credentials.ProjectToken token = 2 [json_name = "token", (.google.api.field_behavior) = OUTPUT_ONLY];
    • addAllToken

      public Credentials.Builder addAllToken(Iterable<? extends Credentials.ProjectToken> values)
       Describes the project tokens most recently issued for this project; these are only present if the project has been
       used to issue tokens. Tokens expire on a regular interval and after that time are not listed here.
       
      repeated .buildless.projects.Credentials.ProjectToken token = 2 [json_name = "token", (.google.api.field_behavior) = OUTPUT_ONLY];
    • clearToken

      public Credentials.Builder clearToken()
       Describes the project tokens most recently issued for this project; these are only present if the project has been
       used to issue tokens. Tokens expire on a regular interval and after that time are not listed here.
       
      repeated .buildless.projects.Credentials.ProjectToken token = 2 [json_name = "token", (.google.api.field_behavior) = OUTPUT_ONLY];
    • removeToken

      public Credentials.Builder removeToken(int index)
       Describes the project tokens most recently issued for this project; these are only present if the project has been
       used to issue tokens. Tokens expire on a regular interval and after that time are not listed here.
       
      repeated .buildless.projects.Credentials.ProjectToken token = 2 [json_name = "token", (.google.api.field_behavior) = OUTPUT_ONLY];
    • getTokenBuilder

      public Credentials.ProjectToken.Builder getTokenBuilder(int index)
       Describes the project tokens most recently issued for this project; these are only present if the project has been
       used to issue tokens. Tokens expire on a regular interval and after that time are not listed here.
       
      repeated .buildless.projects.Credentials.ProjectToken token = 2 [json_name = "token", (.google.api.field_behavior) = OUTPUT_ONLY];
    • getTokenOrBuilder

      public Credentials.ProjectTokenOrBuilder getTokenOrBuilder(int index)
       Describes the project tokens most recently issued for this project; these are only present if the project has been
       used to issue tokens. Tokens expire on a regular interval and after that time are not listed here.
       
      repeated .buildless.projects.Credentials.ProjectToken token = 2 [json_name = "token", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTokenOrBuilder in interface CredentialsOrBuilder
    • getTokenOrBuilderList

      public List<? extends Credentials.ProjectTokenOrBuilder> getTokenOrBuilderList()
       Describes the project tokens most recently issued for this project; these are only present if the project has been
       used to issue tokens. Tokens expire on a regular interval and after that time are not listed here.
       
      repeated .buildless.projects.Credentials.ProjectToken token = 2 [json_name = "token", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTokenOrBuilderList in interface CredentialsOrBuilder
    • addTokenBuilder

      public Credentials.ProjectToken.Builder addTokenBuilder()
       Describes the project tokens most recently issued for this project; these are only present if the project has been
       used to issue tokens. Tokens expire on a regular interval and after that time are not listed here.
       
      repeated .buildless.projects.Credentials.ProjectToken token = 2 [json_name = "token", (.google.api.field_behavior) = OUTPUT_ONLY];
    • addTokenBuilder

      public Credentials.ProjectToken.Builder addTokenBuilder(int index)
       Describes the project tokens most recently issued for this project; these are only present if the project has been
       used to issue tokens. Tokens expire on a regular interval and after that time are not listed here.
       
      repeated .buildless.projects.Credentials.ProjectToken token = 2 [json_name = "token", (.google.api.field_behavior) = OUTPUT_ONLY];
    • getTokenBuilderList

      public List<Credentials.ProjectToken.Builder> getTokenBuilderList()
       Describes the project tokens most recently issued for this project; these are only present if the project has been
       used to issue tokens. Tokens expire on a regular interval and after that time are not listed here.
       
      repeated .buildless.projects.Credentials.ProjectToken token = 2 [json_name = "token", (.google.api.field_behavior) = OUTPUT_ONLY];
    • setUnknownFields

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

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