/** * * * <pre> * The list of requested instance configurations. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig instance_configs = 1;</code> */ public Builder clearInstanceConfigs() { if (instanceConfigsBuilder_ == null) { instanceConfigs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { instanceConfigsBuilder_.clear(); } return this; } /**
/** * * * <pre> * The list of requested instance configurations. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig instance_configs = 1;</code> */ public Builder addInstanceConfigs(com.google.spanner.admin.instance.v1.InstanceConfig value) { if (instanceConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInstanceConfigsIsMutable(); instanceConfigs_.add(value); onChanged(); } else { instanceConfigsBuilder_.addMessage(value); } return this; } /**
/** * * * <pre> * The list of requested instance configurations. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig instance_configs = 1;</code> */ public Builder addInstanceConfigs( int index, com.google.spanner.admin.instance.v1.InstanceConfig value) { if (instanceConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInstanceConfigsIsMutable(); instanceConfigs_.add(index, value); onChanged(); } else { instanceConfigsBuilder_.addMessage(index, value); } return this; } /**
/** * * * <pre> * The list of requested instance configurations. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig instance_configs = 1;</code> */ public Builder clearInstanceConfigs() { if (instanceConfigsBuilder_ == null) { instanceConfigs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { instanceConfigsBuilder_.clear(); } return this; } /**
/** * * * <pre> * `next_page_token` can be sent in a subsequent * [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs] call to * fetch more of the matching instance configurations. * </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> * The list of requested instance configurations. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig instance_configs = 1;</code> */ public Builder removeInstanceConfigs(int index) { if (instanceConfigsBuilder_ == null) { ensureInstanceConfigsIsMutable(); instanceConfigs_.remove(index); onChanged(); } else { instanceConfigsBuilder_.remove(index); } return this; } /**
/** * * * <pre> * `next_page_token` can be sent in a subsequent * [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs] call to * fetch more of the matching instance configurations. * </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> * The list of requested instance configurations. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig instance_configs = 1;</code> */ public Builder addInstanceConfigs( int index, com.google.spanner.admin.instance.v1.InstanceConfig.Builder builderForValue) { if (instanceConfigsBuilder_ == null) { ensureInstanceConfigsIsMutable(); instanceConfigs_.add(index, builderForValue.build()); onChanged(); } else { instanceConfigsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * The list of requested instance configurations. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig instance_configs = 1;</code> */ public Builder addInstanceConfigs( com.google.spanner.admin.instance.v1.InstanceConfig.Builder builderForValue) { if (instanceConfigsBuilder_ == null) { ensureInstanceConfigsIsMutable(); instanceConfigs_.add(builderForValue.build()); onChanged(); } else { instanceConfigsBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * `next_page_token` can be sent in a subsequent * [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs] call to * fetch more of the matching instance configurations. * </pre> * * <code>string next_page_token = 2;</code> */ public Builder clearNextPageToken() { nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /**
/** * * * <pre> * The list of requested instance configurations. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig instance_configs = 1;</code> */ public Builder setInstanceConfigs( int index, com.google.spanner.admin.instance.v1.InstanceConfig value) { if (instanceConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInstanceConfigsIsMutable(); instanceConfigs_.set(index, value); onChanged(); } else { instanceConfigsBuilder_.setMessage(index, value); } return this; } /**
/** * * * <pre> * The list of requested instance configurations. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig instance_configs = 1;</code> */ public Builder addInstanceConfigs( int index, com.google.spanner.admin.instance.v1.InstanceConfig.Builder builderForValue) { if (instanceConfigsBuilder_ == null) { ensureInstanceConfigsIsMutable(); instanceConfigs_.add(index, builderForValue.build()); onChanged(); } else { instanceConfigsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * The list of requested instance configurations. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig instance_configs = 1;</code> */ public Builder setInstanceConfigs( int index, com.google.spanner.admin.instance.v1.InstanceConfig.Builder builderForValue) { if (instanceConfigsBuilder_ == null) { ensureInstanceConfigsIsMutable(); instanceConfigs_.set(index, builderForValue.build()); onChanged(); } else { instanceConfigsBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * The list of requested instance configurations. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig instance_configs = 1;</code> */ public Builder addInstanceConfigs( com.google.spanner.admin.instance.v1.InstanceConfig.Builder builderForValue) { if (instanceConfigsBuilder_ == null) { ensureInstanceConfigsIsMutable(); instanceConfigs_.add(builderForValue.build()); onChanged(); } else { instanceConfigsBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * The list of requested instance configurations. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig instance_configs = 1;</code> */ public Builder addAllInstanceConfigs( java.lang.Iterable<? extends com.google.spanner.admin.instance.v1.InstanceConfig> values) { if (instanceConfigsBuilder_ == null) { ensureInstanceConfigsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instanceConfigs_); onChanged(); } else { instanceConfigsBuilder_.addAllMessages(values); } return this; } /**
/** * * * <pre> * `next_page_token` can be sent in a subsequent * [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs] call to * fetch more of the matching instance configurations. * </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> * `next_page_token` can be sent in a subsequent * [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs] call to * fetch more of the matching instance configurations. * </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> * The list of requested instance configurations. * </pre> * * <code>repeated .google.spanner.admin.instance.v1.InstanceConfig instance_configs = 1;</code> */ public Builder removeInstanceConfigs(int index) { if (instanceConfigsBuilder_ == null) { ensureInstanceConfigsIsMutable(); instanceConfigs_.remove(index); onChanged(); } else { instanceConfigsBuilder_.remove(index); } return this; } /**
/** * * * <pre> * `next_page_token` can be sent in a subsequent * [ListInstanceConfigs][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigs] call to * fetch more of the matching instance configurations. * </pre> * * <code>string next_page_token = 2;</code> */ public Builder clearNextPageToken() { nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /**