Class GoogleChannelConfig.Builder (1.33.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GoogleChannelConfig build()
Returns
TypeDescription
GoogleChannelConfig

buildPartial()

public GoogleChannelConfig buildPartial()
Returns
TypeDescription
GoogleChannelConfig

clear()

public GoogleChannelConfig.Builder clear()
Returns
TypeDescription
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
TypeDescription
GoogleChannelConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public GoogleChannelConfig.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for cryptoKeyName.

getDefaultInstanceForType()

public GoogleChannelConfig getDefaultInstanceForType()
Returns
TypeDescription
GoogleChannelConfig

getDescriptorForType()

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

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The last-modified time.

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

Returns
TypeDescription
TimestampOrBuilder

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The last-modified time.

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

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GoogleChannelConfig other)

public GoogleChannelConfig.Builder mergeFrom(GoogleChannelConfig other)
Parameter
NameDescription
otherGoogleChannelConfig
Returns
TypeDescription
GoogleChannelConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The cryptoKeyName to set.

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

The bytes for cryptoKeyName to set.

Returns
TypeDescription
GoogleChannelConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The name to set.

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

The bytes for name to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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