Class GitHubEnterpriseSecrets.Builder (3.35.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GitHubEnterpriseSecrets.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GitHubEnterpriseSecrets.Builder
Overrides

build()

public GitHubEnterpriseSecrets build()
Returns
TypeDescription
GitHubEnterpriseSecrets

buildPartial()

public GitHubEnterpriseSecrets buildPartial()
Returns
TypeDescription
GitHubEnterpriseSecrets

clear()

public GitHubEnterpriseSecrets.Builder clear()
Returns
TypeDescription
GitHubEnterpriseSecrets.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GitHubEnterpriseSecrets.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
GitHubEnterpriseSecrets.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GitHubEnterpriseSecrets.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
GitHubEnterpriseSecrets.Builder

This builder for chaining.

clone()

public GitHubEnterpriseSecrets.Builder clone()
Returns
TypeDescription
GitHubEnterpriseSecrets.Builder
Overrides

getDefaultInstanceForType()

public GitHubEnterpriseSecrets getDefaultInstanceForType()
Returns
TypeDescription
GitHubEnterpriseSecrets

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for webhookSecretVersionName.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GitHubEnterpriseSecrets other)

public GitHubEnterpriseSecrets.Builder mergeFrom(GitHubEnterpriseSecrets other)
Parameter
NameDescription
otherGitHubEnterpriseSecrets
Returns
TypeDescription
GitHubEnterpriseSecrets.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GitHubEnterpriseSecrets.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GitHubEnterpriseSecrets.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public GitHubEnterpriseSecrets.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
GitHubEnterpriseSecrets.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GitHubEnterpriseSecrets.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GitHubEnterpriseSecrets.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GitHubEnterpriseSecrets.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The oauthClientIdVersionName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for oauthClientIdVersionName to set.

Returns
TypeDescription
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
NameDescription
valueString

The oauthSecretVersionName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for oauthSecretVersionName to set.

Returns
TypeDescription
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
NameDescription
valueString

The privateKeyVersionName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for privateKeyVersionName to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GitHubEnterpriseSecrets.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GitHubEnterpriseSecrets.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The webhookSecretVersionName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for webhookSecretVersionName to set.

Returns
TypeDescription
GitHubEnterpriseSecrets.Builder

This builder for chaining.