Class GoogleChannelConfig.Builder (1.52.0)

public static final class GoogleChannelConfig.Builder extends GeneratedMessageV3.Builder<GoogleChannelConfig.Builder> implements GoogleChannelConfigOrBuilder

A GoogleChannelConfig is a resource that stores the custom settings respected by Eventarc first-party triggers in the matching region. Once configured, first-party event data will be protected using the specified custom managed encryption key instead of Google-managed encryption keys.

Protobuf type google.cloud.eventarc.v1.GoogleChannelConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GoogleChannelConfig build()
Returns
Type Description
GoogleChannelConfig

buildPartial()

public GoogleChannelConfig buildPartial()
Returns
Type Description
GoogleChannelConfig

clear()

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

clearCryptoKeyName()

public GoogleChannelConfig.Builder clearCryptoKeyName()

Optional. Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt their event data.

It must match the pattern projects/*/locations/*/keyRings/*/cryptoKeys/*.

string crypto_key_name = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
GoogleChannelConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GoogleChannelConfig.Builder clearName()

Required. The resource name of the config. Must be in the format of, projects/{project}/locations/{location}/googleChannelConfig.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GoogleChannelConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateTime()

public GoogleChannelConfig.Builder clearUpdateTime()

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GoogleChannelConfig.Builder

clone()

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

getCryptoKeyName()

public String getCryptoKeyName()

Optional. Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt their event data.

It must match the pattern projects/*/locations/*/keyRings/*/cryptoKeys/*.

string crypto_key_name = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The cryptoKeyName.

getCryptoKeyNameBytes()

public ByteString getCryptoKeyNameBytes()

Optional. Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt their event data.

It must match the pattern projects/*/locations/*/keyRings/*/cryptoKeys/*.

string crypto_key_name = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for cryptoKeyName.

getDefaultInstanceForType()

public GoogleChannelConfig getDefaultInstanceForType()
Returns
Type Description
GoogleChannelConfig

getDescriptorForType()

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

getName()

public String getName()

Required. The resource name of the config. Must be in the format of, projects/{project}/locations/{location}/googleChannelConfig.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of the config. Must be in the format of, projects/{project}/locations/{location}/googleChannelConfig.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for name.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GoogleChannelConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public GoogleChannelConfig.Builder mergeUpdateTime(Timestamp value)

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
GoogleChannelConfig.Builder

setCryptoKeyName(String value)

public GoogleChannelConfig.Builder setCryptoKeyName(String value)

Optional. Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt their event data.

It must match the pattern projects/*/locations/*/keyRings/*/cryptoKeys/*.

string crypto_key_name = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The cryptoKeyName to set.

Returns
Type Description
GoogleChannelConfig.Builder

This builder for chaining.

setCryptoKeyNameBytes(ByteString value)

public GoogleChannelConfig.Builder setCryptoKeyNameBytes(ByteString value)

Optional. Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt their event data.

It must match the pattern projects/*/locations/*/keyRings/*/cryptoKeys/*.

string crypto_key_name = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for cryptoKeyName to set.

Returns
Type Description
GoogleChannelConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GoogleChannelConfig.Builder setName(String value)

Required. The resource name of the config. Must be in the format of, projects/{project}/locations/{location}/googleChannelConfig.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GoogleChannelConfig.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GoogleChannelConfig.Builder setNameBytes(ByteString value)

Required. The resource name of the config. Must be in the format of, projects/{project}/locations/{location}/googleChannelConfig.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GoogleChannelConfig.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public GoogleChannelConfig.Builder setUpdateTime(Timestamp value)

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
GoogleChannelConfig.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public GoogleChannelConfig.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
GoogleChannelConfig.Builder