Class GitLabConfig

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.developerconnect.v1.GitLabConfig
All Implemented Interfaces:
GitLabConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class GitLabConfig extends com.google.protobuf.GeneratedMessage implements GitLabConfigOrBuilder
 Configuration for connections to gitlab.com.
 
Protobuf type google.cloud.developerconnect.v1.GitLabConfig
See Also:
  • Field Details

    • WEBHOOK_SECRET_SECRET_VERSION_FIELD_NUMBER

      public static final int WEBHOOK_SECRET_SECRET_VERSION_FIELD_NUMBER
      See Also:
    • READ_AUTHORIZER_CREDENTIAL_FIELD_NUMBER

      public static final int READ_AUTHORIZER_CREDENTIAL_FIELD_NUMBER
      See Also:
    • AUTHORIZER_CREDENTIAL_FIELD_NUMBER

      public static final int AUTHORIZER_CREDENTIAL_FIELD_NUMBER
      See Also:
  • 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
    • getWebhookSecretSecretVersion

      public String getWebhookSecretSecretVersion()
       Required. Immutable. SecretManager resource containing the webhook secret
       of a GitLab project, formatted as `projects/*/secrets/*/versions/*` or
       `projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
       supported in that location). This is used to validate webhooks.
       
      string webhook_secret_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getWebhookSecretSecretVersion in interface GitLabConfigOrBuilder
      Returns:
      The webhookSecretSecretVersion.
    • getWebhookSecretSecretVersionBytes

      public com.google.protobuf.ByteString getWebhookSecretSecretVersionBytes()
       Required. Immutable. SecretManager resource containing the webhook secret
       of a GitLab project, formatted as `projects/*/secrets/*/versions/*` or
       `projects/*/locations/*/secrets/*/versions/*` (if regional secrets are
       supported in that location). This is used to validate webhooks.
       
      string webhook_secret_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getWebhookSecretSecretVersionBytes in interface GitLabConfigOrBuilder
      Returns:
      The bytes for webhookSecretSecretVersion.
    • hasReadAuthorizerCredential

      public boolean hasReadAuthorizerCredential()
       Required. A GitLab personal access token with the minimum `read_api` scope
       access and a minimum role of `reporter`. The GitLab Projects visible to
       this Personal Access Token will control which Projects Developer Connect
       has access to.
       
      .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasReadAuthorizerCredential in interface GitLabConfigOrBuilder
      Returns:
      Whether the readAuthorizerCredential field is set.
    • getReadAuthorizerCredential

      public UserCredential getReadAuthorizerCredential()
       Required. A GitLab personal access token with the minimum `read_api` scope
       access and a minimum role of `reporter`. The GitLab Projects visible to
       this Personal Access Token will control which Projects Developer Connect
       has access to.
       
      .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getReadAuthorizerCredential in interface GitLabConfigOrBuilder
      Returns:
      The readAuthorizerCredential.
    • getReadAuthorizerCredentialOrBuilder

      public UserCredentialOrBuilder getReadAuthorizerCredentialOrBuilder()
       Required. A GitLab personal access token with the minimum `read_api` scope
       access and a minimum role of `reporter`. The GitLab Projects visible to
       this Personal Access Token will control which Projects Developer Connect
       has access to.
       
      .google.cloud.developerconnect.v1.UserCredential read_authorizer_credential = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getReadAuthorizerCredentialOrBuilder in interface GitLabConfigOrBuilder
    • hasAuthorizerCredential

      public boolean hasAuthorizerCredential()
       Required. A GitLab personal access token with the minimum `api` scope
       access and a minimum role of `maintainer`. The GitLab Projects visible to
       this Personal Access Token will control which Projects Developer Connect
       has access to.
       
      .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasAuthorizerCredential in interface GitLabConfigOrBuilder
      Returns:
      Whether the authorizerCredential field is set.
    • getAuthorizerCredential

      public UserCredential getAuthorizerCredential()
       Required. A GitLab personal access token with the minimum `api` scope
       access and a minimum role of `maintainer`. The GitLab Projects visible to
       this Personal Access Token will control which Projects Developer Connect
       has access to.
       
      .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAuthorizerCredential in interface GitLabConfigOrBuilder
      Returns:
      The authorizerCredential.
    • getAuthorizerCredentialOrBuilder

      public UserCredentialOrBuilder getAuthorizerCredentialOrBuilder()
       Required. A GitLab personal access token with the minimum `api` scope
       access and a minimum role of `maintainer`. The GitLab Projects visible to
       this Personal Access Token will control which Projects Developer Connect
       has access to.
       
      .google.cloud.developerconnect.v1.UserCredential authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAuthorizerCredentialOrBuilder in interface GitLabConfigOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static GitLabConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GitLabConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GitLabConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GitLabConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GitLabConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GitLabConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GitLabConfig parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GitLabConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GitLabConfig parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GitLabConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GitLabConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GitLabConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public GitLabConfig.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static GitLabConfig.Builder newBuilder()
    • newBuilder

      public static GitLabConfig.Builder newBuilder(GitLabConfig prototype)
    • toBuilder

      public GitLabConfig.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected GitLabConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static GitLabConfig getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<GitLabConfig> parser()
    • getParserForType

      public com.google.protobuf.Parser<GitLabConfig> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public GitLabConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder