Class GitHubEnterpriseSecrets.Builder (3.56.0)

public static final class GitHubEnterpriseSecrets.Builder extends GeneratedMessageV3.Builder<GitHubEnterpriseSecrets.Builder> implements GitHubEnterpriseSecretsOrBuilder

GitHubEnterpriseSecrets represents the names of all necessary secrets in Secret Manager for a GitHub Enterprise server. Format is: projects/<project number>/secrets/<secret name>.

Protobuf type google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GitHubEnterpriseSecrets.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GitHubEnterpriseSecrets.Builder
Overrides

build()

public GitHubEnterpriseSecrets build()
Returns
Type Description
GitHubEnterpriseSecrets

buildPartial()

public GitHubEnterpriseSecrets buildPartial()
Returns
Type Description
GitHubEnterpriseSecrets

clear()

public GitHubEnterpriseSecrets.Builder clear()
Returns
Type Description
GitHubEnterpriseSecrets.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GitHubEnterpriseSecrets.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GitHubEnterpriseSecrets.Builder
Overrides

clearOauthClientIdVersionName()

public GitHubEnterpriseSecrets.Builder clearOauthClientIdVersionName()

The resource name for the OAuth client ID secret version in Secret Manager.

string oauth_client_id_version_name = 8 [(.google.api.resource_reference) = { ... }

Returns
Type Description
GitHubEnterpriseSecrets.Builder

This builder for chaining.

clearOauthSecretVersionName()

public GitHubEnterpriseSecrets.Builder clearOauthSecretVersionName()

The resource name for the OAuth secret secret version in Secret Manager.

string oauth_secret_version_name = 7 [(.google.api.resource_reference) = { ... }

Returns
Type Description
GitHubEnterpriseSecrets.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GitHubEnterpriseSecrets.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GitHubEnterpriseSecrets.Builder
Overrides

clearPrivateKeyVersionName()

public GitHubEnterpriseSecrets.Builder clearPrivateKeyVersionName()

The resource name for the private key secret version.

string private_key_version_name = 5 [(.google.api.resource_reference) = { ... }

Returns
Type Description
GitHubEnterpriseSecrets.Builder

This builder for chaining.

clearWebhookSecretVersionName()

public GitHubEnterpriseSecrets.Builder clearWebhookSecretVersionName()

The resource name for the webhook secret secret version in Secret Manager.

string webhook_secret_version_name = 6 [(.google.api.resource_reference) = { ... }

Returns
Type Description
GitHubEnterpriseSecrets.Builder

This builder for chaining.

clone()

public GitHubEnterpriseSecrets.Builder clone()
Returns
Type Description
GitHubEnterpriseSecrets.Builder
Overrides

getDefaultInstanceForType()

public GitHubEnterpriseSecrets getDefaultInstanceForType()
Returns
Type Description
GitHubEnterpriseSecrets

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getOauthClientIdVersionName()

public String getOauthClientIdVersionName()

The resource name for the OAuth client ID secret version in Secret Manager.

string oauth_client_id_version_name = 8 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The oauthClientIdVersionName.

getOauthClientIdVersionNameBytes()

public ByteString getOauthClientIdVersionNameBytes()

The resource name for the OAuth client ID secret version in Secret Manager.

string oauth_client_id_version_name = 8 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for oauthClientIdVersionName.

getOauthSecretVersionName()

public String getOauthSecretVersionName()

The resource name for the OAuth secret secret version in Secret Manager.

string oauth_secret_version_name = 7 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The oauthSecretVersionName.

getOauthSecretVersionNameBytes()

public ByteString getOauthSecretVersionNameBytes()

The resource name for the OAuth secret secret version in Secret Manager.

string oauth_secret_version_name = 7 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for oauthSecretVersionName.

getPrivateKeyVersionName()

public String getPrivateKeyVersionName()

The resource name for the private key secret version.

string private_key_version_name = 5 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The privateKeyVersionName.

getPrivateKeyVersionNameBytes()

public ByteString getPrivateKeyVersionNameBytes()

The resource name for the private key secret version.

string private_key_version_name = 5 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for privateKeyVersionName.

getWebhookSecretVersionName()

public String getWebhookSecretVersionName()

The resource name for the webhook secret secret version in Secret Manager.

string webhook_secret_version_name = 6 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The webhookSecretVersionName.

getWebhookSecretVersionNameBytes()

public ByteString getWebhookSecretVersionNameBytes()

The resource name for the webhook secret secret version in Secret Manager.

string webhook_secret_version_name = 6 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for webhookSecretVersionName.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GitHubEnterpriseSecrets other)

public GitHubEnterpriseSecrets.Builder mergeFrom(GitHubEnterpriseSecrets other)
Parameter
Name Description
other GitHubEnterpriseSecrets
Returns
Type Description
GitHubEnterpriseSecrets.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GitHubEnterpriseSecrets.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GitHubEnterpriseSecrets.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GitHubEnterpriseSecrets.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GitHubEnterpriseSecrets.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GitHubEnterpriseSecrets.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GitHubEnterpriseSecrets.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GitHubEnterpriseSecrets.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GitHubEnterpriseSecrets.Builder
Overrides

setOauthClientIdVersionName(String value)

public GitHubEnterpriseSecrets.Builder setOauthClientIdVersionName(String value)

The resource name for the OAuth client ID secret version in Secret Manager.

string oauth_client_id_version_name = 8 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The oauthClientIdVersionName to set.

Returns
Type Description
GitHubEnterpriseSecrets.Builder

This builder for chaining.

setOauthClientIdVersionNameBytes(ByteString value)

public GitHubEnterpriseSecrets.Builder setOauthClientIdVersionNameBytes(ByteString value)

The resource name for the OAuth client ID secret version in Secret Manager.

string oauth_client_id_version_name = 8 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for oauthClientIdVersionName to set.

Returns
Type Description
GitHubEnterpriseSecrets.Builder

This builder for chaining.

setOauthSecretVersionName(String value)

public GitHubEnterpriseSecrets.Builder setOauthSecretVersionName(String value)

The resource name for the OAuth secret secret version in Secret Manager.

string oauth_secret_version_name = 7 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The oauthSecretVersionName to set.

Returns
Type Description
GitHubEnterpriseSecrets.Builder

This builder for chaining.

setOauthSecretVersionNameBytes(ByteString value)

public GitHubEnterpriseSecrets.Builder setOauthSecretVersionNameBytes(ByteString value)

The resource name for the OAuth secret secret version in Secret Manager.

string oauth_secret_version_name = 7 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for oauthSecretVersionName to set.

Returns
Type Description
GitHubEnterpriseSecrets.Builder

This builder for chaining.

setPrivateKeyVersionName(String value)

public GitHubEnterpriseSecrets.Builder setPrivateKeyVersionName(String value)

The resource name for the private key secret version.

string private_key_version_name = 5 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The privateKeyVersionName to set.

Returns
Type Description
GitHubEnterpriseSecrets.Builder

This builder for chaining.

setPrivateKeyVersionNameBytes(ByteString value)

public GitHubEnterpriseSecrets.Builder setPrivateKeyVersionNameBytes(ByteString value)

The resource name for the private key secret version.

string private_key_version_name = 5 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for privateKeyVersionName to set.

Returns
Type Description
GitHubEnterpriseSecrets.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public GitHubEnterpriseSecrets.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GitHubEnterpriseSecrets.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GitHubEnterpriseSecrets.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GitHubEnterpriseSecrets.Builder
Overrides

setWebhookSecretVersionName(String value)

public GitHubEnterpriseSecrets.Builder setWebhookSecretVersionName(String value)

The resource name for the webhook secret secret version in Secret Manager.

string webhook_secret_version_name = 6 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The webhookSecretVersionName to set.

Returns
Type Description
GitHubEnterpriseSecrets.Builder

This builder for chaining.

setWebhookSecretVersionNameBytes(ByteString value)

public GitHubEnterpriseSecrets.Builder setWebhookSecretVersionNameBytes(ByteString value)

The resource name for the webhook secret secret version in Secret Manager.

string webhook_secret_version_name = 6 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for webhookSecretVersionName to set.

Returns
Type Description
GitHubEnterpriseSecrets.Builder

This builder for chaining.