/** * * * <pre> * The updated topic object. * </pre> * * <code>.google.pubsub.v1.Topic topic = 1;</code> */ public Builder setTopic(com.google.pubsub.v1.Topic value) { if (topicBuilder_ == null) { if (value == null) { throw new NullPointerException(); } topic_ = value; onChanged(); } else { topicBuilder_.setMessage(value); } return this; } /**
/** * * * <pre> * Indicates which fields in the provided topic to update. Must be specified * and non-empty. Note that if `update_mask` contains * "message_storage_policy" then the new value will be determined based on the * policy configured at the project or organization level. The * `message_storage_policy` must not be set in the `topic` provided above. * </pre> * * <code>.google.protobuf.FieldMask update_mask = 2;</code> */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (value == null) { throw new NullPointerException(); } updateMask_ = value; onChanged(); } else { updateMaskBuilder_.setMessage(value); } return this; } /**
/** * * * <pre> * The updated topic object. * </pre> * * <code>.google.pubsub.v1.Topic topic = 1;</code> */ public com.google.pubsub.v1.Topic.Builder getTopicBuilder() { onChanged(); return getTopicFieldBuilder().getBuilder(); } /**
/** * * * <pre> * Indicates which fields in the provided topic to update. Must be specified * and non-empty. Note that if `update_mask` contains * "message_storage_policy" then the new value will be determined based on the * policy configured at the project or organization level. The * `message_storage_policy` must not be set in the `topic` provided above. * </pre> * * <code>.google.protobuf.FieldMask update_mask = 2;</code> */ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * The updated topic object. * </pre> * * <code>.google.pubsub.v1.Topic topic = 1;</code> */ public Builder mergeTopic(com.google.pubsub.v1.Topic value) { if (topicBuilder_ == null) { if (topic_ != null) { topic_ = com.google.pubsub.v1.Topic.newBuilder(topic_).mergeFrom(value).buildPartial(); } else { topic_ = value; } onChanged(); } else { topicBuilder_.mergeFrom(value); } return this; } /**
/** * * * <pre> * The updated topic object. * </pre> * * <code>.google.pubsub.v1.Topic topic = 1;</code> */ public Builder setTopic(com.google.pubsub.v1.Topic value) { if (topicBuilder_ == null) { if (value == null) { throw new NullPointerException(); } topic_ = value; onChanged(); } else { topicBuilder_.setMessage(value); } return this; } /**
/** * * * <pre> * Indicates which fields in the provided topic to update. Must be specified * and non-empty. Note that if `update_mask` contains * "message_storage_policy" then the new value will be determined based on the * policy configured at the project or organization level. The * `message_storage_policy` must not be set in the `topic` provided above. * </pre> * * <code>.google.protobuf.FieldMask update_mask = 2;</code> */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { updateMask_ = null; onChanged(); } else { updateMask_ = null; updateMaskBuilder_ = null; } return this; } /**
/** * * * <pre> * The updated topic object. * </pre> * * <code>.google.pubsub.v1.Topic topic = 1;</code> */ public Builder clearTopic() { if (topicBuilder_ == null) { topic_ = null; onChanged(); } else { topic_ = null; topicBuilder_ = null; } return this; } /**
/** * * * <pre> * The updated topic object. * </pre> * * <code>.google.pubsub.v1.Topic topic = 1;</code> */ public Builder setTopic(com.google.pubsub.v1.Topic.Builder builderForValue) { if (topicBuilder_ == null) { topic_ = builderForValue.build(); onChanged(); } else { topicBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * Indicates which fields in the provided topic to update. Must be specified * and non-empty. Note that if `update_mask` contains * "message_storage_policy" then the new value will be determined based on the * policy configured at the project or organization level. The * `message_storage_policy` must not be set in the `topic` provided above. * </pre> * * <code>.google.protobuf.FieldMask update_mask = 2;</code> */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /**
/** * * * <pre> * The updated topic object. * </pre> * * <code>.google.pubsub.v1.Topic topic = 1;</code> */ public com.google.pubsub.v1.Topic.Builder getTopicBuilder() { onChanged(); return getTopicFieldBuilder().getBuilder(); } /**
public Builder mergeFrom(com.google.pubsub.v1.UpdateTopicRequest other) { if (other == com.google.pubsub.v1.UpdateTopicRequest.getDefaultInstance()) return this; if (other.hasTopic()) { mergeTopic(other.getTopic()); } if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * Indicates which fields in the provided topic to update. Must be specified * and non-empty. Note that if `update_mask` contains * "message_storage_policy" then the new value will be determined based on the * policy configured at the project or organization level. The * `message_storage_policy` must not be set in the `topic` provided above. * </pre> * * <code>.google.protobuf.FieldMask update_mask = 2;</code> */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } return this; } /**
/** * * * <pre> * Indicates which fields in the provided topic to update. Must be specified * and non-empty. Note that if `update_mask` contains * "message_storage_policy" then the new value will be determined based on the * policy configured at the project or organization level. The * `message_storage_policy` must not be set in the `topic` provided above. * </pre> * * <code>.google.protobuf.FieldMask update_mask = 2;</code> */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { updateMask_ = null; onChanged(); } else { updateMask_ = null; updateMaskBuilder_ = null; } return this; } /**
/** * * * <pre> * The updated topic object. * </pre> * * <code>.google.pubsub.v1.Topic topic = 1;</code> */ public Builder mergeTopic(com.google.pubsub.v1.Topic value) { if (topicBuilder_ == null) { if (topic_ != null) { topic_ = com.google.pubsub.v1.Topic.newBuilder(topic_).mergeFrom(value).buildPartial(); } else { topic_ = value; } onChanged(); } else { topicBuilder_.mergeFrom(value); } return this; } /**
/** * * * <pre> * Indicates which fields in the provided topic to update. Must be specified * and non-empty. Note that if `update_mask` contains * "message_storage_policy" then the new value will be determined based on the * policy configured at the project or organization level. The * `message_storage_policy` must not be set in the `topic` provided above. * </pre> * * <code>.google.protobuf.FieldMask update_mask = 2;</code> */ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * The updated topic object. * </pre> * * <code>.google.pubsub.v1.Topic topic = 1;</code> */ public Builder clearTopic() { if (topicBuilder_ == null) { topic_ = null; onChanged(); } else { topic_ = null; topicBuilder_ = null; } return this; } /**
/** * * * <pre> * Indicates which fields in the provided topic to update. Must be specified * and non-empty. Note that if `update_mask` contains * "message_storage_policy" then the new value will be determined based on the * policy configured at the project or organization level. The * `message_storage_policy` must not be set in the `topic` provided above. * </pre> * * <code>.google.protobuf.FieldMask update_mask = 2;</code> */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /**
/** * * * <pre> * The updated topic object. * </pre> * * <code>.google.pubsub.v1.Topic topic = 1;</code> */ public Builder setTopic(com.google.pubsub.v1.Topic.Builder builderForValue) { if (topicBuilder_ == null) { topic_ = builderForValue.build(); onChanged(); } else { topicBuilder_.setMessage(builderForValue.build()); } return this; } /**
public Builder mergeFrom(com.google.pubsub.v1.UpdateTopicRequest other) { if (other == com.google.pubsub.v1.UpdateTopicRequest.getDefaultInstance()) return this; if (other.hasTopic()) { mergeTopic(other.getTopic()); } if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }