Record Class GitLabChannelProperties
java.lang.Object
java.lang.Record
io.agentscope.extensions.channel.gitlab.GitLabChannelProperties
- Record Components:
token- Project / Group / Personal Access Token used for the REST API outbound and bot-identity lookup. Required, withapiscope.webhookToken- shared token configured on the project webhook; matched againstX-Gitlab-Tokenvia constant-time equality. Required.apiBase- override for the GitLab REST API base; defaults tohttps://gitlab.com/api/v4.webhookPath- HTTP path Spring exposes the webhook under; defaults to/api/channels/gitlab/{channelId}/webhook
public record GitLabChannelProperties(String token, String webhookToken, String apiBase, String webhookPath)
extends Record
Provider-specific configuration for a single GitLab channel instance, sourced from the
properties block of channels.<id> in agentscope.json.-
Constructor Summary
ConstructorsConstructorDescriptionGitLabChannelProperties(String token, String webhookToken, String apiBase, String webhookPath) Creates an instance of aGitLabChannelPropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionapiBase()Returns the value of theapiBaserecord component.final booleanIndicates whether some other object is "equal to" this one.static GitLabChannelPropertiesReads aGitLabChannelPropertiesfrom an arbitrary properties map.final inthashCode()Returns a hash code value for this object.token()Returns the value of thetokenrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewebhookPathrecord component.Returns the value of thewebhookTokenrecord component.
-
Constructor Details
-
GitLabChannelProperties
public GitLabChannelProperties(String token, String webhookToken, String apiBase, String webhookPath) Creates an instance of aGitLabChannelPropertiesrecord class.- Parameters:
token- the value for thetokenrecord componentwebhookToken- the value for thewebhookTokenrecord componentapiBase- the value for theapiBaserecord componentwebhookPath- the value for thewebhookPathrecord component
-
-
Method Details
-
from
Reads aGitLabChannelPropertiesfrom an arbitrary properties map. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
token
Returns the value of thetokenrecord component.- Returns:
- the value of the
tokenrecord component
-
webhookToken
Returns the value of thewebhookTokenrecord component.- Returns:
- the value of the
webhookTokenrecord component
-
apiBase
Returns the value of theapiBaserecord component.- Returns:
- the value of the
apiBaserecord component
-
webhookPath
Returns the value of thewebhookPathrecord component.- Returns:
- the value of the
webhookPathrecord component
-