@java.lang.Override public com.google.pubsub.v1.Subscription getDefaultInstanceForType() { return com.google.pubsub.v1.Subscription.getDefaultInstance(); }
/** * * * <pre> * The updated subscription object. * </pre> * * <code>.google.pubsub.v1.Subscription subscription = 1;</code> */ public com.google.pubsub.v1.Subscription getSubscription() { return subscription_ == null ? com.google.pubsub.v1.Subscription.getDefaultInstance() : subscription_; } /**
/** * * * <pre> * The updated subscription object. * </pre> * * <code>.google.pubsub.v1.Subscription subscription = 1;</code> */ public com.google.pubsub.v1.Subscription getSubscription() { if (subscriptionBuilder_ == null) { return subscription_ == null ? com.google.pubsub.v1.Subscription.getDefaultInstance() : subscription_; } else { return subscriptionBuilder_.getMessage(); } } /**
/** * * * <pre> * The updated subscription object. * </pre> * * <code>.google.pubsub.v1.Subscription subscription = 1;</code> */ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { if (subscriptionBuilder_ != null) { return subscriptionBuilder_.getMessageOrBuilder(); } else { return subscription_ == null ? com.google.pubsub.v1.Subscription.getDefaultInstance() : subscription_; } } /**
/** * * * <pre> * The subscriptions that match the request. * </pre> * * <code>repeated .google.pubsub.v1.Subscription subscriptions = 1;</code> */ public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder() { return getSubscriptionsFieldBuilder() .addBuilder(com.google.pubsub.v1.Subscription.getDefaultInstance()); } /**
/** * * * <pre> * The subscriptions that match the request. * </pre> * * <code>repeated .google.pubsub.v1.Subscription subscriptions = 1;</code> */ public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder(int index) { return getSubscriptionsFieldBuilder() .addBuilder(index, com.google.pubsub.v1.Subscription.getDefaultInstance()); } /**
/** * * * <pre> * The name of the subscription. It must have the format * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must * start with a letter, and contain only letters (`[A-Za-z]`), numbers * (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), * plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters * in length, and it must not start with `"goog"`. * </pre> * * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * * * <pre> * The name of the topic from which this subscription is receiving messages. * Format is `projects/{project}/topics/{topic}`. * The value of this field will be `_deleted-topic_` if the topic has been * deleted. * </pre> * * <code>string topic = 2;</code> */ public Builder clearTopic() { topic_ = getDefaultInstance().getTopic(); onChanged(); return this; } /**
.setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.pubsub.v1.Subscription.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.pubsub.v1.Subscription.getDefaultInstance())) .setSchemaDescriptor( new SubscriberMethodDescriptorSupplier("CreateSubscription"))
public Builder mergeFrom(com.google.pubsub.v1.Subscription other) { if (other == com.google.pubsub.v1.Subscription.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getTopic().isEmpty()) { topic_ = other.topic_; onChanged(); } if (other.hasPushConfig()) { mergePushConfig(other.getPushConfig()); } if (other.getAckDeadlineSeconds() != 0) { setAckDeadlineSeconds(other.getAckDeadlineSeconds()); } if (other.getRetainAckedMessages() != false) { setRetainAckedMessages(other.getRetainAckedMessages()); } if (other.hasMessageRetentionDuration()) { mergeMessageRetentionDuration(other.getMessageRetentionDuration()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (other.hasExpirationPolicy()) { mergeExpirationPolicy(other.getExpirationPolicy()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
.setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.pubsub.v1.Subscription.getDefaultInstance())) .setSchemaDescriptor( new SubscriberMethodDescriptorSupplier("GetSubscription"))
.setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.pubsub.v1.Subscription.getDefaultInstance())) .setSchemaDescriptor( new SubscriberMethodDescriptorSupplier("UpdateSubscription"))
public com.google.pubsub.v1.Subscription getDefaultInstanceForType() { return com.google.pubsub.v1.Subscription.getDefaultInstance(); }
@java.lang.Override public com.google.pubsub.v1.Subscription getDefaultInstanceForType() { return com.google.pubsub.v1.Subscription.getDefaultInstance(); }
/** * <code>repeated .google.pubsub.v1.Subscription subscriptions = 1;</code> * * <pre> * The subscriptions that match the request. * </pre> */ public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder() { return getSubscriptionsFieldBuilder().addBuilder( com.google.pubsub.v1.Subscription.getDefaultInstance()); } /**
/** * <code>repeated .google.pubsub.v1.Subscription subscriptions = 1;</code> * * <pre> * The subscriptions that match the request. * </pre> */ public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder( int index) { return getSubscriptionsFieldBuilder().addBuilder( index, com.google.pubsub.v1.Subscription.getDefaultInstance()); } /**
/** * <pre> * The subscriptions that match the request. * </pre> * * <code>repeated .google.pubsub.v1.Subscription subscriptions = 1;</code> */ public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder() { return getSubscriptionsFieldBuilder().addBuilder( com.google.pubsub.v1.Subscription.getDefaultInstance()); } /**
/** * <pre> * The subscriptions that match the request. * </pre> * * <code>repeated .google.pubsub.v1.Subscription subscriptions = 1;</code> */ public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder( int index) { return getSubscriptionsFieldBuilder().addBuilder( index, com.google.pubsub.v1.Subscription.getDefaultInstance()); } /**
/** * * * <pre> * The subscriptions that match the request. * </pre> * * <code>repeated .google.pubsub.v1.Subscription subscriptions = 1;</code> */ public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder(int index) { return getSubscriptionsFieldBuilder() .addBuilder(index, com.google.pubsub.v1.Subscription.getDefaultInstance()); } /**
/** * <code>optional string topic = 2;</code> * * <pre> * The name of the topic from which this subscription is receiving messages. * </pre> */ public Builder clearTopic() { topic_ = getDefaultInstance().getTopic(); onChanged(); return this; } /**