public final class Pubsub extends GeneratedMessageV3 implements PubsubOrBuilder
Represents a Pub/Sub transport.
Protobuf type google.cloud.eventarc.v1.Pubsub
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
SUBSCRIPTION_FIELD_NUMBER
public static final int SUBSCRIPTION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
TOPIC_FIELD_NUMBER
public static final int TOPIC_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Pubsub getDefaultInstance()
Returns |
Type |
Description |
Pubsub |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Pubsub.Builder newBuilder()
newBuilder(Pubsub prototype)
public static Pubsub.Builder newBuilder(Pubsub prototype)
Parameter |
Name |
Description |
prototype |
Pubsub
|
public static Pubsub parseDelimitedFrom(InputStream input)
Returns |
Type |
Description |
Pubsub |
|
public static Pubsub parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Pubsub |
|
parseFrom(byte[] data)
public static Pubsub parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
Returns |
Type |
Description |
Pubsub |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Pubsub parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Pubsub |
|
parseFrom(ByteString data)
public static Pubsub parseFrom(ByteString data)
Returns |
Type |
Description |
Pubsub |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Pubsub parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Pubsub |
|
public static Pubsub parseFrom(CodedInputStream input)
Returns |
Type |
Description |
Pubsub |
|
public static Pubsub parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Pubsub |
|
public static Pubsub parseFrom(InputStream input)
Returns |
Type |
Description |
Pubsub |
|
public static Pubsub parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Pubsub |
|
parseFrom(ByteBuffer data)
public static Pubsub parseFrom(ByteBuffer data)
Returns |
Type |
Description |
Pubsub |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Pubsub parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Pubsub |
|
parser()
public static Parser<Pubsub> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public Pubsub getDefaultInstanceForType()
Returns |
Type |
Description |
Pubsub |
|
getParserForType()
public Parser<Pubsub> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
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 |
Type |
Description |
ByteString |
The bytes for topic.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Pubsub.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Pubsub.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public Pubsub.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides