if (!other.getDatabase().isEmpty()) { database_ = other.database_; onChanged(); bitField0_ = (bitField0_ & ~0x00000002); } else { ensureStatementsIsMutable(); statements_.addAll(other.statements_); onChanged(); bitField0_ = (bitField0_ & ~0x00000004); } else { ensureCommitTimestampsIsMutable(); commitTimestamps_.addAll(other.commitTimestamps_); onChanged(); commitTimestampsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCommitTimestampsFieldBuilder() : null; } else { this.mergeUnknownFields(other.unknownFields); onChanged(); return this;
private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCommitTimestampsFieldBuilder() { if (commitTimestampsBuilder_ == null) { commitTimestampsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( commitTimestamps_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); commitTimestamps_ = null; } return commitTimestampsBuilder_; }
@java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
if (!other.getDatabase().isEmpty()) { database_ = other.database_; onChanged(); bitField0_ = (bitField0_ & ~0x00000002); } else { ensureStatementsIsMutable(); statements_.addAll(other.statements_); onChanged(); bitField0_ = (bitField0_ & ~0x00000004); } else { ensureCommitTimestampsIsMutable(); commitTimestamps_.addAll(other.commitTimestamps_); onChanged(); commitTimestampsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCommitTimestampsFieldBuilder() : null; } else { this.mergeUnknownFields(other.unknownFields); onChanged(); return this;
/** * * * <pre> * Reports the commit timestamps of all statements that have * succeeded so far, where `commit_timestamps[i]` is the commit * timestamp for the statement `statements[i]`. * </pre> * * <code>repeated .google.protobuf.Timestamp commit_timestamps = 3;</code> */ public Builder addCommitTimestamps(int index, com.google.protobuf.Timestamp value) { if (commitTimestampsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCommitTimestampsIsMutable(); commitTimestamps_.add(index, value); onChanged(); } else { commitTimestampsBuilder_.addMessage(index, value); } return this; } /**
/** * * * <pre> * Reports the commit timestamps of all statements that have * succeeded so far, where `commit_timestamps[i]` is the commit * timestamp for the statement `statements[i]`. * </pre> * * <code>repeated .google.protobuf.Timestamp commit_timestamps = 3;</code> */ public Builder addCommitTimestamps(com.google.protobuf.Timestamp value) { if (commitTimestampsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCommitTimestampsIsMutable(); commitTimestamps_.add(value); onChanged(); } else { commitTimestampsBuilder_.addMessage(value); } return this; } /**
/** * * * <pre> * Reports the commit timestamps of all statements that have * succeeded so far, where `commit_timestamps[i]` is the commit * timestamp for the statement `statements[i]`. * </pre> * * <code>repeated .google.protobuf.Timestamp commit_timestamps = 3;</code> */ public Builder setCommitTimestamps(int index, com.google.protobuf.Timestamp value) { if (commitTimestampsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCommitTimestampsIsMutable(); commitTimestamps_.set(index, value); onChanged(); } else { commitTimestampsBuilder_.setMessage(index, value); } return this; } /**
/** * * * <pre> * Reports the commit timestamps of all statements that have * succeeded so far, where `commit_timestamps[i]` is the commit * timestamp for the statement `statements[i]`. * </pre> * * <code>repeated .google.protobuf.Timestamp commit_timestamps = 3;</code> */ public Builder addAllCommitTimestamps( java.lang.Iterable<? extends com.google.protobuf.Timestamp> values) { if (commitTimestampsBuilder_ == null) { ensureCommitTimestampsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, commitTimestamps_); onChanged(); } else { commitTimestampsBuilder_.addAllMessages(values); } return this; } /**
/** * * * <pre> * Reports the commit timestamps of all statements that have * succeeded so far, where `commit_timestamps[i]` is the commit * timestamp for the statement `statements[i]`. * </pre> * * <code>repeated .google.protobuf.Timestamp commit_timestamps = 3;</code> */ public Builder setCommitTimestamps( int index, com.google.protobuf.Timestamp.Builder builderForValue) { if (commitTimestampsBuilder_ == null) { ensureCommitTimestampsIsMutable(); commitTimestamps_.set(index, builderForValue.build()); onChanged(); } else { commitTimestampsBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * Reports the commit timestamps of all statements that have * succeeded so far, where `commit_timestamps[i]` is the commit * timestamp for the statement `statements[i]`. * </pre> * * <code>repeated .google.protobuf.Timestamp commit_timestamps = 3;</code> */ public Builder removeCommitTimestamps(int index) { if (commitTimestampsBuilder_ == null) { ensureCommitTimestampsIsMutable(); commitTimestamps_.remove(index); onChanged(); } else { commitTimestampsBuilder_.remove(index); } return this; } /**
/** * * * <pre> * Reports the commit timestamps of all statements that have * succeeded so far, where `commit_timestamps[i]` is the commit * timestamp for the statement `statements[i]`. * </pre> * * <code>repeated .google.protobuf.Timestamp commit_timestamps = 3;</code> */ public Builder addCommitTimestamps(com.google.protobuf.Timestamp.Builder builderForValue) { if (commitTimestampsBuilder_ == null) { ensureCommitTimestampsIsMutable(); commitTimestamps_.add(builderForValue.build()); onChanged(); } else { commitTimestampsBuilder_.addMessage(builderForValue.build()); } return this; } /**
@java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
/** * * * <pre> * Reports the commit timestamps of all statements that have * succeeded so far, where `commit_timestamps[i]` is the commit * timestamp for the statement `statements[i]`. * </pre> * * <code>repeated .google.protobuf.Timestamp commit_timestamps = 3;</code> */ public Builder addCommitTimestamps( int index, com.google.protobuf.Timestamp.Builder builderForValue) { if (commitTimestampsBuilder_ == null) { ensureCommitTimestampsIsMutable(); commitTimestamps_.add(index, builderForValue.build()); onChanged(); } else { commitTimestampsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * For an update this list contains all the statements. For an * individual statement, this list contains only that statement. * </pre> * * <code>repeated string statements = 2;</code> */ public Builder addStatements(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStatementsIsMutable(); statements_.add(value); onChanged(); return this; } /**
/** * * * <pre> * For an update this list contains all the statements. For an * individual statement, this list contains only that statement. * </pre> * * <code>repeated string statements = 2;</code> */ public Builder setStatements(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStatementsIsMutable(); statements_.set(index, value); onChanged(); return this; } /**
/** * * * <pre> * For an update this list contains all the statements. For an * individual statement, this list contains only that statement. * </pre> * * <code>repeated string statements = 2;</code> */ public Builder addStatementsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureStatementsIsMutable(); statements_.add(value); onChanged(); return this; }
/** * * * <pre> * For an update this list contains all the statements. For an * individual statement, this list contains only that statement. * </pre> * * <code>repeated string statements = 2;</code> */ public Builder addAllStatements(java.lang.Iterable<java.lang.String> values) { ensureStatementsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, statements_); onChanged(); return this; } /**
private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCommitTimestampsFieldBuilder() { if (commitTimestampsBuilder_ == null) { commitTimestampsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( commitTimestamps_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); commitTimestamps_ = null; } return commitTimestampsBuilder_; }
/** * * * <pre> * Reports the commit timestamps of all statements that have * succeeded so far, where `commit_timestamps[i]` is the commit * timestamp for the statement `statements[i]`. * </pre> * * <code>repeated .google.protobuf.Timestamp commit_timestamps = 3;</code> */ public com.google.protobuf.Timestamp.Builder addCommitTimestampsBuilder() { return getCommitTimestampsFieldBuilder() .addBuilder(com.google.protobuf.Timestamp.getDefaultInstance()); } /**
/** * * * <pre> * Reports the commit timestamps of all statements that have * succeeded so far, where `commit_timestamps[i]` is the commit * timestamp for the statement `statements[i]`. * </pre> * * <code>repeated .google.protobuf.Timestamp commit_timestamps = 3;</code> */ public com.google.protobuf.Timestamp.Builder getCommitTimestampsBuilder(int index) { return getCommitTimestampsFieldBuilder().getBuilder(index); } /**