Class GitLabEnterpriseConfig

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

@Generated public final class GitLabEnterpriseConfig extends com.google.protobuf.GeneratedMessage implements GitLabEnterpriseConfigOrBuilder
 Configuration for connections to an instance of GitLab Enterprise.
 
Protobuf type google.cloud.developerconnect.v1.GitLabEnterpriseConfig
See Also:
  • Field Details

    • HOST_URI_FIELD_NUMBER

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

      public static final int SERVICE_DIRECTORY_CONFIG_FIELD_NUMBER
      See Also:
    • SSL_CA_CERTIFICATE_FIELD_NUMBER

      public static final int SSL_CA_CERTIFICATE_FIELD_NUMBER
      See Also:
    • SERVER_VERSION_FIELD_NUMBER

      public static final int SERVER_VERSION_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
    • getHostUri

      public String getHostUri()
       Required. The URI of the GitLab Enterprise host this connection is for.
       
      string host_uri = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getHostUri in interface GitLabEnterpriseConfigOrBuilder
      Returns:
      The hostUri.
    • getHostUriBytes

      public com.google.protobuf.ByteString getHostUriBytes()
       Required. The URI of the GitLab Enterprise host this connection is for.
       
      string host_uri = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getHostUriBytes in interface GitLabEnterpriseConfigOrBuilder
      Returns:
      The bytes for hostUri.
    • 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 = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getWebhookSecretSecretVersion in interface GitLabEnterpriseConfigOrBuilder
      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 = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getWebhookSecretSecretVersionBytes in interface GitLabEnterpriseConfigOrBuilder
      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 = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasReadAuthorizerCredential in interface GitLabEnterpriseConfigOrBuilder
      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 = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getReadAuthorizerCredential in interface GitLabEnterpriseConfigOrBuilder
      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 = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getReadAuthorizerCredentialOrBuilder in interface GitLabEnterpriseConfigOrBuilder
    • 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 = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasAuthorizerCredential in interface GitLabEnterpriseConfigOrBuilder
      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 = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAuthorizerCredential in interface GitLabEnterpriseConfigOrBuilder
      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 = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAuthorizerCredentialOrBuilder in interface GitLabEnterpriseConfigOrBuilder
    • hasServiceDirectoryConfig

      public boolean hasServiceDirectoryConfig()
       Optional. Configuration for using Service Directory to privately connect to
       a GitLab Enterprise instance. This should only be set if the GitLab
       Enterprise server is hosted on-premises and not reachable by public
       internet. If this field is left empty, calls to the GitLab Enterprise
       server will be made over the public internet.
       
      .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasServiceDirectoryConfig in interface GitLabEnterpriseConfigOrBuilder
      Returns:
      Whether the serviceDirectoryConfig field is set.
    • getServiceDirectoryConfig

      public ServiceDirectoryConfig getServiceDirectoryConfig()
       Optional. Configuration for using Service Directory to privately connect to
       a GitLab Enterprise instance. This should only be set if the GitLab
       Enterprise server is hosted on-premises and not reachable by public
       internet. If this field is left empty, calls to the GitLab Enterprise
       server will be made over the public internet.
       
      .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getServiceDirectoryConfig in interface GitLabEnterpriseConfigOrBuilder
      Returns:
      The serviceDirectoryConfig.
    • getServiceDirectoryConfigOrBuilder

      public ServiceDirectoryConfigOrBuilder getServiceDirectoryConfigOrBuilder()
       Optional. Configuration for using Service Directory to privately connect to
       a GitLab Enterprise instance. This should only be set if the GitLab
       Enterprise server is hosted on-premises and not reachable by public
       internet. If this field is left empty, calls to the GitLab Enterprise
       server will be made over the public internet.
       
      .google.cloud.developerconnect.v1.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getServiceDirectoryConfigOrBuilder in interface GitLabEnterpriseConfigOrBuilder
    • getSslCaCertificate

      public String getSslCaCertificate()
       Optional. SSL Certificate Authority certificate to use for requests to
       GitLab Enterprise instance.
       
      string ssl_ca_certificate = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSslCaCertificate in interface GitLabEnterpriseConfigOrBuilder
      Returns:
      The sslCaCertificate.
    • getSslCaCertificateBytes

      public com.google.protobuf.ByteString getSslCaCertificateBytes()
       Optional. SSL Certificate Authority certificate to use for requests to
       GitLab Enterprise instance.
       
      string ssl_ca_certificate = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSslCaCertificateBytes in interface GitLabEnterpriseConfigOrBuilder
      Returns:
      The bytes for sslCaCertificate.
    • getServerVersion

      public String getServerVersion()
       Output only. Version of the GitLab Enterprise server running on the
       `host_uri`.
       
      string server_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getServerVersion in interface GitLabEnterpriseConfigOrBuilder
      Returns:
      The serverVersion.
    • getServerVersionBytes

      public com.google.protobuf.ByteString getServerVersionBytes()
       Output only. Version of the GitLab Enterprise server running on the
       `host_uri`.
       
      string server_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getServerVersionBytes in interface GitLabEnterpriseConfigOrBuilder
      Returns:
      The bytes for serverVersion.
    • 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 GitLabEnterpriseConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static GitLabEnterpriseConfig.Builder newBuilder()
    • newBuilder

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

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

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

      public static GitLabEnterpriseConfig getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<GitLabEnterpriseConfig> 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 GitLabEnterpriseConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder