public final class Subscription extends GeneratedMessageV3 implements SubscriptionOrBuilder
Metadata about a subscription resource.
Protobuf type google.cloud.pubsublite.v1.Subscription
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > SubscriptionImplements
SubscriptionOrBuilderStatic Fields
DELIVERY_CONFIG_FIELD_NUMBER
public static final int DELIVERY_CONFIG_FIELD_NUMBER
Type | Description |
int |
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Type | Description |
int |
TOPIC_FIELD_NUMBER
public static final int TOPIC_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static Subscription getDefaultInstance()
Type | Description |
Subscription |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static Subscription.Builder newBuilder()
Type | Description |
Subscription.Builder |
newBuilder(Subscription prototype)
public static Subscription.Builder newBuilder(Subscription prototype)
Name | Description |
prototype | Subscription |
Type | Description |
Subscription.Builder |
parseDelimitedFrom(InputStream input)
public static Subscription parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Subscription |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Subscription parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Subscription |
Type | Description |
IOException |
parseFrom(byte[] data)
public static Subscription parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
Subscription |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Subscription parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Subscription |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static Subscription parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
Subscription |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Subscription parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Subscription |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static Subscription parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
Subscription |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Subscription parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Subscription |
Type | Description |
IOException |
parseFrom(InputStream input)
public static Subscription parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Subscription |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Subscription parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Subscription |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static Subscription parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
Subscription |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Subscription parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Subscription |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<Subscription> parser()
Type | Description |
Parser<Subscription> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public Subscription getDefaultInstanceForType()
Type | Description |
Subscription |
getDeliveryConfig()
public Subscription.DeliveryConfig getDeliveryConfig()
The settings for this subscription's message delivery.
.google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3;
Type | Description |
Subscription.DeliveryConfig | The deliveryConfig. |
getDeliveryConfigOrBuilder()
public Subscription.DeliveryConfigOrBuilder getDeliveryConfigOrBuilder()
The settings for this subscription's message delivery.
.google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3;
Type | Description |
Subscription.DeliveryConfigOrBuilder |
getName()
public String getName()
The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}
string name = 1;
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}
string name = 1;
Type | Description |
ByteString | The bytes for name. |
getParserForType()
public Parser<Subscription> getParserForType()
Type | Description |
Parser<Subscription> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getTopic()
public String getTopic()
The name of the topic this subscription is attached to. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}
string topic = 2 [(.google.api.resource_reference) = { ... }
Type | Description |
String | The topic. |
getTopicBytes()
public ByteString getTopicBytes()
The name of the topic this subscription is attached to. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}
string topic = 2 [(.google.api.resource_reference) = { ... }
Type | Description |
ByteString | The bytes for topic. |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hasDeliveryConfig()
public boolean hasDeliveryConfig()
The settings for this subscription's message delivery.
.google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3;
Type | Description |
boolean | Whether the deliveryConfig field is set. |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public Subscription.Builder newBuilderForType()
Type | Description |
Subscription.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Subscription.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
Subscription.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public Subscription.Builder toBuilder()
Type | Description |
Subscription.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |