public static final class Pubsub.Builder extends GeneratedMessageV3.Builder<Pubsub.Builder> implements PubsubOrBuilder
Represents a Pub/Sub transport.
Protobuf type google.cloud.eventarc.v1.Pubsub
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 Pubsub.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public Pubsub buildPartial()
Returns
clear()
public Pubsub.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public Pubsub.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Pubsub.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
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
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
clone()
public Pubsub.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public Pubsub getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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()
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
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(Pubsub other)
public Pubsub.Builder mergeFrom(Pubsub other)
Parameter
Returns
public Pubsub.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Pubsub.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Pubsub.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Pubsub.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Pubsub.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
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 | String
The subscription to set.
|
Returns
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 | ByteString
The bytes for subscription to set.
|
Returns
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 | String
The topic to set.
|
Returns
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 | ByteString
The bytes for topic to set.
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final Pubsub.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides