/** * * * <pre> * The resulting topics. * </pre> * * <code>repeated .google.pubsub.v1.Topic topics = 1;</code> */ public Builder clearTopics() { if (topicsBuilder_ == null) { topics_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { topicsBuilder_.clear(); } return this; } /**
/** * * * <pre> * The resulting topics. * </pre> * * <code>repeated .google.pubsub.v1.Topic topics = 1;</code> */ public Builder addTopics(int index, com.google.pubsub.v1.Topic value) { if (topicsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTopicsIsMutable(); topics_.add(index, value); onChanged(); } else { topicsBuilder_.addMessage(index, value); } return this; } /**
/** * * * <pre> * The resulting topics. * </pre> * * <code>repeated .google.pubsub.v1.Topic topics = 1;</code> */ public Builder addTopics(com.google.pubsub.v1.Topic value) { if (topicsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTopicsIsMutable(); topics_.add(value); onChanged(); } else { topicsBuilder_.addMessage(value); } return this; } /**
/** * * * <pre> * The resulting topics. * </pre> * * <code>repeated .google.pubsub.v1.Topic topics = 1;</code> */ public Builder removeTopics(int index) { if (topicsBuilder_ == null) { ensureTopicsIsMutable(); topics_.remove(index); onChanged(); } else { topicsBuilder_.remove(index); } return this; } /**
/** * <code>repeated .google.pubsub.v1.Topic topics = 1;</code> * * <pre> * The resulting topics. * </pre> */ public Builder removeTopics(int index) { if (topicsBuilder_ == null) { ensureTopicsIsMutable(); topics_.remove(index); onChanged(); } else { topicsBuilder_.remove(index); } return this; } /**
/** * <pre> * If not empty, indicates that there may be more topics that match the * request; this value should be passed in a new `ListTopicsRequest`. * </pre> * * <code>optional string next_page_token = 2;</code> */ public Builder setNextPageToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; onChanged(); return this; } /**
/** * * * <pre> * If not empty, indicates that there may be more topics that match the * request; this value should be passed in a new `ListTopicsRequest`. * </pre> * * <code>string next_page_token = 2;</code> */ public Builder clearNextPageToken() { nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /**
/** * <pre> * The resulting topics. * </pre> * * <code>repeated .google.pubsub.v1.Topic topics = 1;</code> */ public Builder clearTopics() { if (topicsBuilder_ == null) { topics_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { topicsBuilder_.clear(); } return this; } /**
/** * <code>optional string next_page_token = 2;</code> * * <pre> * If not empty, indicates that there may be more topics that match the * request; this value should be passed in a new `ListTopicsRequest`. * </pre> */ public Builder clearNextPageToken() { nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /**
/** * <pre> * If not empty, indicates that there may be more topics that match the * request; this value should be passed in a new `ListTopicsRequest`. * </pre> * * <code>optional string next_page_token = 2;</code> */ public Builder clearNextPageToken() { nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /**
/** * * * <pre> * The resulting topics. * </pre> * * <code>repeated .google.pubsub.v1.Topic topics = 1;</code> */ public Builder setTopics(int index, com.google.pubsub.v1.Topic value) { if (topicsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTopicsIsMutable(); topics_.set(index, value); onChanged(); } else { topicsBuilder_.setMessage(index, value); } return this; } /**
/** * * * <pre> * The resulting topics. * </pre> * * <code>repeated .google.pubsub.v1.Topic topics = 1;</code> */ public Builder removeTopics(int index) { if (topicsBuilder_ == null) { ensureTopicsIsMutable(); topics_.remove(index); onChanged(); } else { topicsBuilder_.remove(index); } return this; } /**
/** * * * <pre> * The resulting topics. * </pre> * * <code>repeated .google.pubsub.v1.Topic topics = 1;</code> */ public Builder addTopics(com.google.pubsub.v1.Topic.Builder builderForValue) { if (topicsBuilder_ == null) { ensureTopicsIsMutable(); topics_.add(builderForValue.build()); onChanged(); } else { topicsBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * The resulting topics. * </pre> * * <code>repeated .google.pubsub.v1.Topic topics = 1;</code> */ public Builder setTopics(int index, com.google.pubsub.v1.Topic.Builder builderForValue) { if (topicsBuilder_ == null) { ensureTopicsIsMutable(); topics_.set(index, builderForValue.build()); onChanged(); } else { topicsBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * The resulting topics. * </pre> * * <code>repeated .google.pubsub.v1.Topic topics = 1;</code> */ public Builder addAllTopics(java.lang.Iterable<? extends com.google.pubsub.v1.Topic> values) { if (topicsBuilder_ == null) { ensureTopicsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, topics_); onChanged(); } else { topicsBuilder_.addAllMessages(values); } return this; } /**
/** * * * <pre> * The resulting topics. * </pre> * * <code>repeated .google.pubsub.v1.Topic topics = 1;</code> */ public Builder addTopics(int index, com.google.pubsub.v1.Topic.Builder builderForValue) { if (topicsBuilder_ == null) { ensureTopicsIsMutable(); topics_.add(index, builderForValue.build()); onChanged(); } else { topicsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * If not empty, indicates that there may be more topics that match the * request; this value should be passed in a new `ListTopicsRequest`. * </pre> * * <code>string next_page_token = 2;</code> */ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; onChanged(); return this; }
/** * * * <pre> * If not empty, indicates that there may be more topics that match the * request; this value should be passed in a new `ListTopicsRequest`. * </pre> * * <code>string next_page_token = 2;</code> */ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; onChanged(); return this; } /**
/** * * * <pre> * If not empty, indicates that there may be more topics that match the * request; this value should be passed in a new `ListTopicsRequest`. * </pre> * * <code>string next_page_token = 2;</code> */ public Builder clearNextPageToken() { nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /**