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