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