/** * * * <pre> * The push configuration for future deliveries. * An empty `pushConfig` indicates that the Pub/Sub system should * stop pushing messages from the given subscription and allow * messages to be pulled and acknowledged - effectively pausing * the subscription if `Pull` or `StreamingPull` is not called. * </pre> * * <code>.google.pubsub.v1.PushConfig push_config = 2;</code> */ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) { if (pushConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } pushConfig_ = value; onChanged(); } else { pushConfigBuilder_.setMessage(value); } return this; } /**
/** * * * <pre> * The name of the subscription. * Format is `projects/{project}/subscriptions/{sub}`. * </pre> * * <code>string subscription = 1;</code> */ public Builder setSubscription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } subscription_ = value; onChanged(); return this; } /**
/** * * * <pre> * The name of the subscription. * Format is `projects/{project}/subscriptions/{sub}`. * </pre> * * <code>string subscription = 1;</code> */ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subscription_ = value; onChanged(); return this; }
/** * <code>optional .google.pubsub.v1.PushConfig push_config = 2;</code> * * <pre> * The push configuration for future deliveries. * An empty `pushConfig` indicates that the Pub/Sub system should * stop pushing messages from the given subscription and allow * messages to be pulled and acknowledged - effectively pausing * the subscription if `Pull` is not called. * </pre> */ public com.google.pubsub.v1.PushConfig.Builder getPushConfigBuilder() { onChanged(); return getPushConfigFieldBuilder().getBuilder(); } /**
/** * * * <pre> * The name of the subscription. * Format is `projects/{project}/subscriptions/{sub}`. * </pre> * * <code>string subscription = 1;</code> */ public Builder clearSubscription() { subscription_ = getDefaultInstance().getSubscription(); onChanged(); return this; } /**
/** * <code>optional string subscription = 1;</code> * * <pre> * The name of the subscription. * </pre> */ public Builder setSubscriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subscription_ = value; onChanged(); return this; }
/** * <code>optional string subscription = 1;</code> * * <pre> * The name of the subscription. * </pre> */ public Builder setSubscription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } subscription_ = value; onChanged(); return this; } /**
/** * <pre> * The name of the subscription. * </pre> * * <code>optional string subscription = 1;</code> */ public Builder setSubscriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subscription_ = value; onChanged(); return this; }
/** * <pre> * The push configuration for future deliveries. * An empty `pushConfig` indicates that the Pub/Sub system should * stop pushing messages from the given subscription and allow * messages to be pulled and acknowledged - effectively pausing * the subscription if `Pull` is not called. * </pre> * * <code>optional .google.pubsub.v1.PushConfig push_config = 2;</code> */ public com.google.pubsub.v1.PushConfig.Builder getPushConfigBuilder() { onChanged(); return getPushConfigFieldBuilder().getBuilder(); } /**
/** * <code>optional string subscription = 1;</code> * * <pre> * The name of the subscription. * </pre> */ public Builder clearSubscription() { subscription_ = getDefaultInstance().getSubscription(); onChanged(); return this; } /**
/** * <pre> * The name of the subscription. * </pre> * * <code>optional string subscription = 1;</code> */ public Builder clearSubscription() { subscription_ = getDefaultInstance().getSubscription(); onChanged(); return this; } /**
public Builder mergeFrom(com.google.pubsub.v1.ModifyPushConfigRequest other) { if (other == com.google.pubsub.v1.ModifyPushConfigRequest.getDefaultInstance()) return this; if (!other.getSubscription().isEmpty()) { subscription_ = other.subscription_; onChanged(); } if (other.hasPushConfig()) { mergePushConfig(other.getPushConfig()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public Builder mergeFrom(com.google.pubsub.v1.ModifyPushConfigRequest other) { if (other == com.google.pubsub.v1.ModifyPushConfigRequest.getDefaultInstance()) return this; if (!other.getSubscription().isEmpty()) { subscription_ = other.subscription_; onChanged(); } if (other.hasPushConfig()) { mergePushConfig(other.getPushConfig()); } onChanged(); return this; }
public Builder mergeFrom(com.google.pubsub.v1.ModifyPushConfigRequest other) { if (other == com.google.pubsub.v1.ModifyPushConfigRequest.getDefaultInstance()) return this; if (!other.getSubscription().isEmpty()) { subscription_ = other.subscription_; onChanged(); } if (other.hasPushConfig()) { mergePushConfig(other.getPushConfig()); } onChanged(); return this; }
/** * * * <pre> * The push configuration for future deliveries. * An empty `pushConfig` indicates that the Pub/Sub system should * stop pushing messages from the given subscription and allow * messages to be pulled and acknowledged - effectively pausing * the subscription if `Pull` or `StreamingPull` is not called. * </pre> * * <code>.google.pubsub.v1.PushConfig push_config = 2;</code> */ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) { if (pushConfigBuilder_ == null) { if (pushConfig_ != null) { pushConfig_ = com.google.pubsub.v1.PushConfig.newBuilder(pushConfig_) .mergeFrom(value) .buildPartial(); } else { pushConfig_ = value; } onChanged(); } else { pushConfigBuilder_.mergeFrom(value); } return this; } /**
/** * * * <pre> * The push configuration for future deliveries. * An empty `pushConfig` indicates that the Pub/Sub system should * stop pushing messages from the given subscription and allow * messages to be pulled and acknowledged - effectively pausing * the subscription if `Pull` or `StreamingPull` is not called. * </pre> * * <code>.google.pubsub.v1.PushConfig push_config = 2;</code> */ public Builder clearPushConfig() { if (pushConfigBuilder_ == null) { pushConfig_ = null; onChanged(); } else { pushConfig_ = null; pushConfigBuilder_ = null; } return this; } /**
/** * * * <pre> * The push configuration for future deliveries. * An empty `pushConfig` indicates that the Pub/Sub system should * stop pushing messages from the given subscription and allow * messages to be pulled and acknowledged - effectively pausing * the subscription if `Pull` or `StreamingPull` is not called. * </pre> * * <code>.google.pubsub.v1.PushConfig push_config = 2;</code> */ public Builder setPushConfig(com.google.pubsub.v1.PushConfig.Builder builderForValue) { if (pushConfigBuilder_ == null) { pushConfig_ = builderForValue.build(); onChanged(); } else { pushConfigBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * The push configuration for future deliveries. * An empty `pushConfig` indicates that the Pub/Sub system should * stop pushing messages from the given subscription and allow * messages to be pulled and acknowledged - effectively pausing * the subscription if `Pull` or `StreamingPull` is not called. * </pre> * * <code>.google.pubsub.v1.PushConfig push_config = 2;</code> */ public com.google.pubsub.v1.PushConfig.Builder getPushConfigBuilder() { onChanged(); return getPushConfigFieldBuilder().getBuilder(); } /**
/** * * * <pre> * The name of the subscription. * Format is `projects/{project}/subscriptions/{sub}`. * </pre> * * <code>string subscription = 1;</code> */ public Builder clearSubscription() { subscription_ = getDefaultInstance().getSubscription(); onChanged(); return this; } /**
public Builder mergeFrom(com.google.pubsub.v1.ModifyPushConfigRequest other) { if (other == com.google.pubsub.v1.ModifyPushConfigRequest.getDefaultInstance()) return this; if (!other.getSubscription().isEmpty()) { subscription_ = other.subscription_; onChanged(); } if (other.hasPushConfig()) { mergePushConfig(other.getPushConfig()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }