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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GoogleChannelConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public GoogleChannelConfig build()
Returns
buildPartial()
public GoogleChannelConfig buildPartial()
Returns
clear()
public GoogleChannelConfig.Builder clear()
Returns
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
clearField(Descriptors.FieldDescriptor field)
public GoogleChannelConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public GoogleChannelConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clone()
public GoogleChannelConfig.Builder clone()
Returns
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
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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
getUpdateTime()
public Timestamp getUpdateTime()
Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()
Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(GoogleChannelConfig other)
public GoogleChannelConfig.Builder mergeFrom(GoogleChannelConfig other)
Parameter
Returns
public GoogleChannelConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public GoogleChannelConfig.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GoogleChannelConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
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
setField(Descriptors.FieldDescriptor field, Object value)
public GoogleChannelConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GoogleChannelConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final GoogleChannelConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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