public static final class Pubsub.Builder extends GeneratedMessage.Builder<Pubsub.Builder> implements PubsubOrBuilderRepresents a Pub/Sub transport.
Protobuf type google.cloud.eventarc.v1.Pubsub
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Pubsub.BuilderImplements
PubsubOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Pubsub build()| Returns | |
|---|---|
| Type | Description |
Pubsub |
|
buildPartial()
public Pubsub buildPartial()| Returns | |
|---|---|
| Type | Description |
Pubsub |
|
clear()
public Pubsub.Builder clear()| Returns | |
|---|---|
| Type | Description |
Pubsub.Builder |
|
clearSubscription()
public Pubsub.Builder clearSubscription() Output only. The name of the Pub/Sub subscription created and managed by
Eventarc as a transport for the event delivery. Format:
projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}.
string subscription = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Pubsub.Builder |
This builder for chaining. |
clearTopic()
public Pubsub.Builder clearTopic() Optional. The name of the Pub/Sub topic created and managed by Eventarc as
a transport for the event delivery. Format:
projects/{PROJECT_ID}/topics/{TOPIC_NAME}.
You can set an existing topic for triggers of the type
google.cloud.pubsub.topic.v1.messagePublished. The topic you provide
here is not deleted by Eventarc at trigger deletion.
string topic = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Pubsub.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public Pubsub getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Pubsub |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getSubscription()
public String getSubscription() Output only. The name of the Pub/Sub subscription created and managed by
Eventarc as a transport for the event delivery. Format:
projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}.
string subscription = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The subscription. |
getSubscriptionBytes()
public ByteString getSubscriptionBytes() Output only. The name of the Pub/Sub subscription created and managed by
Eventarc as a transport for the event delivery. Format:
projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}.
string subscription = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for subscription. |
getTopic()
public String getTopic() Optional. The name of the Pub/Sub topic created and managed by Eventarc as
a transport for the event delivery. Format:
projects/{PROJECT_ID}/topics/{TOPIC_NAME}.
You can set an existing topic for triggers of the type
google.cloud.pubsub.topic.v1.messagePublished. The topic you provide
here is not deleted by Eventarc at trigger deletion.
string topic = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The topic. |
getTopicBytes()
public ByteString getTopicBytes() Optional. The name of the Pub/Sub topic created and managed by Eventarc as
a transport for the event delivery. Format:
projects/{PROJECT_ID}/topics/{TOPIC_NAME}.
You can set an existing topic for triggers of the type
google.cloud.pubsub.topic.v1.messagePublished. The topic you provide
here is not deleted by Eventarc at trigger deletion.
string topic = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for topic. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Pubsub other)
public Pubsub.Builder mergeFrom(Pubsub other)| Parameter | |
|---|---|
| Name | Description |
other |
Pubsub |
| Returns | |
|---|---|
| Type | Description |
Pubsub.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Pubsub.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Pubsub.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Pubsub.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Pubsub.Builder |
|
setSubscription(String value)
public Pubsub.Builder setSubscription(String value) Output only. The name of the Pub/Sub subscription created and managed by
Eventarc as a transport for the event delivery. Format:
projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}.
string subscription = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe subscription to set. |
| Returns | |
|---|---|
| Type | Description |
Pubsub.Builder |
This builder for chaining. |
setSubscriptionBytes(ByteString value)
public Pubsub.Builder setSubscriptionBytes(ByteString value) Output only. The name of the Pub/Sub subscription created and managed by
Eventarc as a transport for the event delivery. Format:
projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}.
string subscription = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for subscription to set. |
| Returns | |
|---|---|
| Type | Description |
Pubsub.Builder |
This builder for chaining. |
setTopic(String value)
public Pubsub.Builder setTopic(String value) Optional. The name of the Pub/Sub topic created and managed by Eventarc as
a transport for the event delivery. Format:
projects/{PROJECT_ID}/topics/{TOPIC_NAME}.
You can set an existing topic for triggers of the type
google.cloud.pubsub.topic.v1.messagePublished. The topic you provide
here is not deleted by Eventarc at trigger deletion.
string topic = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe topic to set. |
| Returns | |
|---|---|
| Type | Description |
Pubsub.Builder |
This builder for chaining. |
setTopicBytes(ByteString value)
public Pubsub.Builder setTopicBytes(ByteString value) Optional. The name of the Pub/Sub topic created and managed by Eventarc as
a transport for the event delivery. Format:
projects/{PROJECT_ID}/topics/{TOPIC_NAME}.
You can set an existing topic for triggers of the type
google.cloud.pubsub.topic.v1.messagePublished. The topic you provide
here is not deleted by Eventarc at trigger deletion.
string topic = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for topic to set. |
| Returns | |
|---|---|
| Type | Description |
Pubsub.Builder |
This builder for chaining. |