public final class Channel extends GeneratedMessageV3 implements ChannelOrBuilder
A representation of the Channel resource. A Channel is a resource on which event providers publish their events. The published events are delivered through the transport associated with the channel. Note that a channel is associated with exactly one event provider.
Protobuf type google.cloud.eventarc.v1.Channel
Static Fields
ACTIVATION_TOKEN_FIELD_NUMBER
public static final int ACTIVATION_TOKEN_FIELD_NUMBER
Field ValueCREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
Field ValueCRYPTO_KEY_NAME_FIELD_NUMBER
public static final int CRYPTO_KEY_NAME_FIELD_NUMBER
Field ValueNAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field ValuePROVIDER_FIELD_NUMBER
public static final int PROVIDER_FIELD_NUMBER
Field ValuePUBSUB_TOPIC_FIELD_NUMBER
public static final int PUBSUB_TOPIC_FIELD_NUMBER
Field ValueSTATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
Field ValueUID_FIELD_NUMBER
public static final int UID_FIELD_NUMBER
Field ValueUPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
Field ValueStatic Methods
getDefaultInstance()
public static Channel getDefaultInstance()
ReturnsgetDescriptor()
public static final Descriptors.Descriptor getDescriptor()
ReturnsnewBuilder()
public static Channel.Builder newBuilder()
ReturnsnewBuilder(Channel )
public static Channel.Builder newBuilder(Channel )
ParameterReturnspublic static Channel parseDelimitedFrom(InputStream input)
ParameterReturnsExceptionspublic static Channel parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
ParametersReturnsExceptionsparseFrom(byte[] data)
public static Channel parseFrom(byte[] data)
ParameterName | Description |
data | byte[]
|
ReturnsExceptionsparseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Channel parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
ParametersReturnsExceptionsparseFrom(ByteString data)
public static Channel parseFrom(ByteString data)
ParameterReturnsExceptionsparseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Channel parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
ParametersReturnsExceptionspublic static Channel parseFrom(CodedInputStream input)
ParameterReturnsExceptionspublic static Channel parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
ParametersReturnsExceptionspublic static Channel parseFrom(InputStream input)
ParameterReturnsExceptionspublic static Channel parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
ParametersReturnsExceptionsparseFrom(ByteBuffer data)
public static Channel parseFrom(ByteBuffer data)
ParameterReturnsExceptionsparseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Channel parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
ParametersReturnsExceptionsparser()
public static Parser<Channel> parser()
ReturnsMethods
equals(Object obj)
public boolean equals(Object obj)
ParameterReturnsOverridesgetActivationToken()
public String getActivationToken()
Output only. The activation token for the channel. The token must be used by the provider to register the channel for publishing.
string activation_token = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
ReturnsType | Description |
String | The activationToken. |
getActivationTokenBytes()
public ByteString getActivationTokenBytes()
Output only. The activation token for the channel. The token must be used by the provider to register the channel for publishing.
string activation_token = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
ReturnsType | Description |
ByteString | The bytes for activationToken. |
getCreateTime()
public Timestamp getCreateTime()
Output only. The creation time.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
ReturnsgetCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The creation time.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
ReturnsgetCryptoKeyName()
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 = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
ReturnsType | 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 = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
ReturnsType | Description |
ByteString | The bytes for cryptoKeyName. |
getDefaultInstanceForType()
public Channel getDefaultInstanceForType()
ReturnsgetName()
Required. The resource name of the channel. Must be unique within the location on the project and must be in projects/{project}/locations/{location}/channels/{channel_id}
format.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
ReturnsType | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
Required. The resource name of the channel. Must be unique within the location on the project and must be in projects/{project}/locations/{location}/channels/{channel_id}
format.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
ReturnsgetParserForType()
public Parser<Channel> getParserForType()
ReturnsOverridesgetProvider()
public String getProvider()
The name of the event provider (e.g. Eventarc SaaS partner) associated with the channel. This provider will be granted permissions to publish events to the channel. Format: projects/{project}/locations/{location}/providers/{provider_id}
.
string provider = 7;
ReturnsType | Description |
String | The provider. |
getProviderBytes()
public ByteString getProviderBytes()
The name of the event provider (e.g. Eventarc SaaS partner) associated with the channel. This provider will be granted permissions to publish events to the channel. Format: projects/{project}/locations/{location}/providers/{provider_id}
.
string provider = 7;
ReturnsgetPubsubTopic()
public String getPubsubTopic()
Output only. The name of the Pub/Sub topic created and managed by Eventarc system as a transport for the event delivery. Format: projects/{project}/topics/{topic_id}
.
string pubsub_topic = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
ReturnsType | Description |
String | The pubsubTopic. |
getPubsubTopicBytes()
public ByteString getPubsubTopicBytes()
Output only. The name of the Pub/Sub topic created and managed by Eventarc system as a transport for the event delivery. Format: projects/{project}/topics/{topic_id}
.
string pubsub_topic = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
ReturnsType | Description |
ByteString | The bytes for pubsubTopic. |
getSerializedSize()
public int getSerializedSize()
ReturnsOverridesgetState()
public Channel.State getState()
Output only. The state of a Channel.
.google.cloud.eventarc.v1.Channel.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
ReturnsgetStateValue()
public int getStateValue()
Output only. The state of a Channel.
.google.cloud.eventarc.v1.Channel.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
ReturnsType | Description |
int | The enum numeric value on the wire for state. |
getTransportCase()
public Channel.TransportCase getTransportCase()
ReturnsgetUid()
Output only. Server assigned unique identifier for the channel. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
ReturnsgetUidBytes()
public ByteString getUidBytes()
Output only. Server assigned unique identifier for the channel. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
ReturnsgetUnknownFields()
public final UnknownFieldSet getUnknownFields()
ReturnsOverridesgetUpdateTime()
public Timestamp getUpdateTime()
Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
ReturnsgetUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
ReturnshasCreateTime()
public boolean hasCreateTime()
Output only. The creation time.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
ReturnsType | Description |
boolean | Whether the createTime field is set. |
hasPubsubTopic()
public boolean hasPubsubTopic()
Output only. The name of the Pub/Sub topic created and managed by Eventarc system as a transport for the event delivery. Format: projects/{project}/topics/{topic_id}
.
string pubsub_topic = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
ReturnsType | Description |
boolean | Whether the pubsubTopic field is set. |
hasUpdateTime()
public boolean hasUpdateTime()
Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
ReturnsType | Description |
boolean | Whether the updateTime field is set. |
hashCode()
ReturnsOverridesinternalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
ReturnsOverridesisInitialized()
public final boolean isInitialized()
ReturnsOverridesnewBuilderForType()
public Channel.Builder newBuilderForType()
ReturnsnewBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Channel.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
ParameterReturnsOverridesnewInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
ParameterReturnsOverridestoBuilder()
public Channel.Builder toBuilder()
ReturnswriteTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
ParameterOverridesExceptions