All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/spanner/admin/database/v1/spanner_database_admin.proto

package nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1;

/**
 * 
 * Metadata type for the operation returned by
 * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl].
 * 
* * Protobuf type {@code google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata} */ public final class UpdateDatabaseDdlMetadata extends nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata) UpdateDatabaseDdlMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use UpdateDatabaseDdlMetadata.newBuilder() to construct. private UpdateDatabaseDdlMetadata(nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdateDatabaseDdlMetadata() { database_ = ""; statements_ = nl.topicus.jdbc.shaded.com.google.protobuf.LazyStringArrayList.EMPTY; commitTimestamps_ = java.util.Collections.emptyList(); } @java.lang.Override public final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UpdateDatabaseDdlMetadata( nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields = nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); database_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { statements_ = new nl.topicus.jdbc.shaded.com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } statements_.add(s); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { commitTimestamps_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } commitTimestamps_.add( input.readMessage(nl.topicus.jdbc.shaded.com.google.protobuf.Timestamp.parser(), extensionRegistry)); break; } } } } catch (nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { statements_ = statements_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { commitTimestamps_ = java.util.Collections.unmodifiableList(commitTimestamps_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlMetadata_descriptor; } protected nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata.class, nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata.Builder.class); } private int bitField0_; public static final int DATABASE_FIELD_NUMBER = 1; private volatile java.lang.Object database_; /** *
   * The database being modified.
   * 
* * string database = 1; */ public java.lang.String getDatabase() { java.lang.Object ref = database_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs = (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); database_ = s; return s; } } /** *
   * The database being modified.
   * 
* * string database = 1; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof java.lang.String) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); database_ = b; return b; } else { return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; } } public static final int STATEMENTS_FIELD_NUMBER = 2; private nl.topicus.jdbc.shaded.com.google.protobuf.LazyStringList statements_; /** *
   * For an update this list contains all the statements. For an
   * individual statement, this list contains only that statement.
   * 
* * repeated string statements = 2; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ProtocolStringList getStatementsList() { return statements_; } /** *
   * For an update this list contains all the statements. For an
   * individual statement, this list contains only that statement.
   * 
* * repeated string statements = 2; */ public int getStatementsCount() { return statements_.size(); } /** *
   * For an update this list contains all the statements. For an
   * individual statement, this list contains only that statement.
   * 
* * repeated string statements = 2; */ public java.lang.String getStatements(int index) { return statements_.get(index); } /** *
   * For an update this list contains all the statements. For an
   * individual statement, this list contains only that statement.
   * 
* * repeated string statements = 2; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getStatementsBytes(int index) { return statements_.getByteString(index); } public static final int COMMIT_TIMESTAMPS_FIELD_NUMBER = 3; private java.util.List commitTimestamps_; /** *
   * 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]`.
   * 
* * repeated .google.protobuf.Timestamp commit_timestamps = 3; */ public java.util.List getCommitTimestampsList() { return commitTimestamps_; } /** *
   * 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]`.
   * 
* * repeated .google.protobuf.Timestamp commit_timestamps = 3; */ public java.util.List getCommitTimestampsOrBuilderList() { return commitTimestamps_; } /** *
   * 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]`.
   * 
* * repeated .google.protobuf.Timestamp commit_timestamps = 3; */ public int getCommitTimestampsCount() { return commitTimestamps_.size(); } /** *
   * 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]`.
   * 
* * repeated .google.protobuf.Timestamp commit_timestamps = 3; */ public nl.topicus.jdbc.shaded.com.google.protobuf.Timestamp getCommitTimestamps(int index) { return commitTimestamps_.get(index); } /** *
   * 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]`.
   * 
* * repeated .google.protobuf.Timestamp commit_timestamps = 3; */ public nl.topicus.jdbc.shaded.com.google.protobuf.TimestampOrBuilder getCommitTimestampsOrBuilder( int index) { return commitTimestamps_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getDatabaseBytes().isEmpty()) { nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 1, database_); } for (int i = 0; i < statements_.size(); i++) { nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 2, statements_.getRaw(i)); } for (int i = 0; i < commitTimestamps_.size(); i++) { output.writeMessage(3, commitTimestamps_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getDatabaseBytes().isEmpty()) { size += nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(1, database_); } { int dataSize = 0; for (int i = 0; i < statements_.size(); i++) { dataSize += computeStringSizeNoTag(statements_.getRaw(i)); } size += dataSize; size += 1 * getStatementsList().size(); } for (int i = 0; i < commitTimestamps_.size(); i++) { size += nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream .computeMessageSize(3, commitTimestamps_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata)) { return super.equals(obj); } nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata other = (nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata) obj; boolean result = true; result = result && getDatabase() .equals(other.getDatabase()); result = result && getStatementsList() .equals(other.getStatementsList()); result = result && getCommitTimestampsList() .equals(other.getCommitTimestampsList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DATABASE_FIELD_NUMBER; hash = (53 * hash) + getDatabase().hashCode(); if (getStatementsCount() > 0) { hash = (37 * hash) + STATEMENTS_FIELD_NUMBER; hash = (53 * hash) + getStatementsList().hashCode(); } if (getCommitTimestampsCount() > 0) { hash = (37 * hash) + COMMIT_TIMESTAMPS_FIELD_NUMBER; hash = (53 * hash) + getCommitTimestampsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata parseFrom( java.nio.ByteBuffer data) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata parseFrom( java.nio.ByteBuffer data, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata parseFrom( nl.topicus.jdbc.shaded.com.google.protobuf.ByteString data) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata parseFrom( nl.topicus.jdbc.shaded.com.google.protobuf.ByteString data, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata parseFrom(byte[] data) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata parseFrom( byte[] data, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata parseFrom( java.io.InputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata parseDelimitedFrom( java.io.InputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata parseFrom( nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input) throws java.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata parseFrom( nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Metadata type for the operation returned by
   * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl].
   * 
* * Protobuf type {@code google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata} */ public static final class Builder extends nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata) nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadataOrBuilder { public static final nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlMetadata_descriptor; } protected nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata.class, nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata.Builder.class); } // Construct using nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCommitTimestampsFieldBuilder(); } } public Builder clear() { super.clear(); database_ = ""; statements_ = nl.topicus.jdbc.shaded.com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); if (commitTimestampsBuilder_ == null) { commitTimestamps_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { commitTimestampsBuilder_.clear(); } return this; } public nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlMetadata_descriptor; } public nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata getDefaultInstanceForType() { return nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata.getDefaultInstance(); } public nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata build() { nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata buildPartial() { nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata result = new nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.database_ = database_; if (((bitField0_ & 0x00000002) == 0x00000002)) { statements_ = statements_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.statements_ = statements_; if (commitTimestampsBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { commitTimestamps_ = java.util.Collections.unmodifiableList(commitTimestamps_); bitField0_ = (bitField0_ & ~0x00000004); } result.commitTimestamps_ = commitTimestamps_; } else { result.commitTimestamps_ = commitTimestampsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(nl.topicus.jdbc.shaded.com.google.protobuf.Message other) { if (other instanceof nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata) { return mergeFrom((nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata other) { if (other == nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata.getDefaultInstance()) return this; if (!other.getDatabase().isEmpty()) { database_ = other.database_; onChanged(); } if (!other.statements_.isEmpty()) { if (statements_.isEmpty()) { statements_ = other.statements_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureStatementsIsMutable(); statements_.addAll(other.statements_); } onChanged(); } if (commitTimestampsBuilder_ == null) { if (!other.commitTimestamps_.isEmpty()) { if (commitTimestamps_.isEmpty()) { commitTimestamps_ = other.commitTimestamps_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureCommitTimestampsIsMutable(); commitTimestamps_.addAll(other.commitTimestamps_); } onChanged(); } } else { if (!other.commitTimestamps_.isEmpty()) { if (commitTimestampsBuilder_.isEmpty()) { commitTimestampsBuilder_.dispose(); commitTimestampsBuilder_ = null; commitTimestamps_ = other.commitTimestamps_; bitField0_ = (bitField0_ & ~0x00000004); commitTimestampsBuilder_ = nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCommitTimestampsFieldBuilder() : null; } else { commitTimestampsBuilder_.addAllMessages(other.commitTimestamps_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object database_ = ""; /** *
     * The database being modified.
     * 
* * string database = 1; */ public java.lang.String getDatabase() { java.lang.Object ref = database_; if (!(ref instanceof java.lang.String)) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs = (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); database_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The database being modified.
     * 
* * string database = 1; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof String) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); database_ = b; return b; } else { return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; } } /** *
     * The database being modified.
     * 
* * string database = 1; */ public Builder setDatabase( java.lang.String value) { if (value == null) { throw new NullPointerException(); } database_ = value; onChanged(); return this; } /** *
     * The database being modified.
     * 
* * string database = 1; */ public Builder clearDatabase() { database_ = getDefaultInstance().getDatabase(); onChanged(); return this; } /** *
     * The database being modified.
     * 
* * string database = 1; */ public Builder setDatabaseBytes( nl.topicus.jdbc.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); database_ = value; onChanged(); return this; } private nl.topicus.jdbc.shaded.com.google.protobuf.LazyStringList statements_ = nl.topicus.jdbc.shaded.com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureStatementsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { statements_ = new nl.topicus.jdbc.shaded.com.google.protobuf.LazyStringArrayList(statements_); bitField0_ |= 0x00000002; } } /** *
     * For an update this list contains all the statements. For an
     * individual statement, this list contains only that statement.
     * 
* * repeated string statements = 2; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ProtocolStringList getStatementsList() { return statements_.getUnmodifiableView(); } /** *
     * For an update this list contains all the statements. For an
     * individual statement, this list contains only that statement.
     * 
* * repeated string statements = 2; */ public int getStatementsCount() { return statements_.size(); } /** *
     * For an update this list contains all the statements. For an
     * individual statement, this list contains only that statement.
     * 
* * repeated string statements = 2; */ public java.lang.String getStatements(int index) { return statements_.get(index); } /** *
     * For an update this list contains all the statements. For an
     * individual statement, this list contains only that statement.
     * 
* * repeated string statements = 2; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getStatementsBytes(int index) { return statements_.getByteString(index); } /** *
     * For an update this list contains all the statements. For an
     * individual statement, this list contains only that statement.
     * 
* * repeated string statements = 2; */ public Builder setStatements( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStatementsIsMutable(); statements_.set(index, value); onChanged(); return this; } /** *
     * For an update this list contains all the statements. For an
     * individual statement, this list contains only that statement.
     * 
* * repeated string statements = 2; */ public Builder addStatements( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStatementsIsMutable(); statements_.add(value); onChanged(); return this; } /** *
     * For an update this list contains all the statements. For an
     * individual statement, this list contains only that statement.
     * 
* * repeated string statements = 2; */ public Builder addAllStatements( java.lang.Iterable values) { ensureStatementsIsMutable(); nl.topicus.jdbc.shaded.com.google.protobuf.AbstractMessageLite.Builder.addAll( values, statements_); onChanged(); return this; } /** *
     * For an update this list contains all the statements. For an
     * individual statement, this list contains only that statement.
     * 
* * repeated string statements = 2; */ public Builder clearStatements() { statements_ = nl.topicus.jdbc.shaded.com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * For an update this list contains all the statements. For an
     * individual statement, this list contains only that statement.
     * 
* * repeated string statements = 2; */ public Builder addStatementsBytes( nl.topicus.jdbc.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureStatementsIsMutable(); statements_.add(value); onChanged(); return this; } private java.util.List commitTimestamps_ = java.util.Collections.emptyList(); private void ensureCommitTimestampsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { commitTimestamps_ = new java.util.ArrayList(commitTimestamps_); bitField0_ |= 0x00000004; } } private nl.topicus.jdbc.shaded.com.google.protobuf.RepeatedFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.protobuf.Timestamp, nl.topicus.jdbc.shaded.com.google.protobuf.Timestamp.Builder, nl.topicus.jdbc.shaded.com.google.protobuf.TimestampOrBuilder> commitTimestampsBuilder_; /** *
     * 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]`.
     * 
* * repeated .google.protobuf.Timestamp commit_timestamps = 3; */ public java.util.List getCommitTimestampsList() { if (commitTimestampsBuilder_ == null) { return java.util.Collections.unmodifiableList(commitTimestamps_); } else { return commitTimestampsBuilder_.getMessageList(); } } /** *
     * 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]`.
     * 
* * repeated .google.protobuf.Timestamp commit_timestamps = 3; */ public int getCommitTimestampsCount() { if (commitTimestampsBuilder_ == null) { return commitTimestamps_.size(); } else { return commitTimestampsBuilder_.getCount(); } } /** *
     * 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]`.
     * 
* * repeated .google.protobuf.Timestamp commit_timestamps = 3; */ public nl.topicus.jdbc.shaded.com.google.protobuf.Timestamp getCommitTimestamps(int index) { if (commitTimestampsBuilder_ == null) { return commitTimestamps_.get(index); } else { return commitTimestampsBuilder_.getMessage(index); } } /** *
     * 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]`.
     * 
* * repeated .google.protobuf.Timestamp commit_timestamps = 3; */ public Builder setCommitTimestamps( int index, nl.topicus.jdbc.shaded.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; } /** *
     * 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]`.
     * 
* * repeated .google.protobuf.Timestamp commit_timestamps = 3; */ public Builder setCommitTimestamps( int index, nl.topicus.jdbc.shaded.com.google.protobuf.Timestamp.Builder builderForValue) { if (commitTimestampsBuilder_ == null) { ensureCommitTimestampsIsMutable(); commitTimestamps_.set(index, builderForValue.build()); onChanged(); } else { commitTimestampsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * 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]`.
     * 
* * repeated .google.protobuf.Timestamp commit_timestamps = 3; */ public Builder addCommitTimestamps(nl.topicus.jdbc.shaded.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; } /** *
     * 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]`.
     * 
* * repeated .google.protobuf.Timestamp commit_timestamps = 3; */ public Builder addCommitTimestamps( int index, nl.topicus.jdbc.shaded.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; } /** *
     * 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]`.
     * 
* * repeated .google.protobuf.Timestamp commit_timestamps = 3; */ public Builder addCommitTimestamps( nl.topicus.jdbc.shaded.com.google.protobuf.Timestamp.Builder builderForValue) { if (commitTimestampsBuilder_ == null) { ensureCommitTimestampsIsMutable(); commitTimestamps_.add(builderForValue.build()); onChanged(); } else { commitTimestampsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * 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]`.
     * 
* * repeated .google.protobuf.Timestamp commit_timestamps = 3; */ public Builder addCommitTimestamps( int index, nl.topicus.jdbc.shaded.com.google.protobuf.Timestamp.Builder builderForValue) { if (commitTimestampsBuilder_ == null) { ensureCommitTimestampsIsMutable(); commitTimestamps_.add(index, builderForValue.build()); onChanged(); } else { commitTimestampsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * 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]`.
     * 
* * repeated .google.protobuf.Timestamp commit_timestamps = 3; */ public Builder addAllCommitTimestamps( java.lang.Iterable values) { if (commitTimestampsBuilder_ == null) { ensureCommitTimestampsIsMutable(); nl.topicus.jdbc.shaded.com.google.protobuf.AbstractMessageLite.Builder.addAll( values, commitTimestamps_); onChanged(); } else { commitTimestampsBuilder_.addAllMessages(values); } return this; } /** *
     * 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]`.
     * 
* * repeated .google.protobuf.Timestamp commit_timestamps = 3; */ public Builder clearCommitTimestamps() { if (commitTimestampsBuilder_ == null) { commitTimestamps_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { commitTimestampsBuilder_.clear(); } return this; } /** *
     * 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]`.
     * 
* * repeated .google.protobuf.Timestamp commit_timestamps = 3; */ public Builder removeCommitTimestamps(int index) { if (commitTimestampsBuilder_ == null) { ensureCommitTimestampsIsMutable(); commitTimestamps_.remove(index); onChanged(); } else { commitTimestampsBuilder_.remove(index); } return this; } /** *
     * 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]`.
     * 
* * repeated .google.protobuf.Timestamp commit_timestamps = 3; */ public nl.topicus.jdbc.shaded.com.google.protobuf.Timestamp.Builder getCommitTimestampsBuilder( int index) { return getCommitTimestampsFieldBuilder().getBuilder(index); } /** *
     * 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]`.
     * 
* * repeated .google.protobuf.Timestamp commit_timestamps = 3; */ public nl.topicus.jdbc.shaded.com.google.protobuf.TimestampOrBuilder getCommitTimestampsOrBuilder( int index) { if (commitTimestampsBuilder_ == null) { return commitTimestamps_.get(index); } else { return commitTimestampsBuilder_.getMessageOrBuilder(index); } } /** *
     * 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]`.
     * 
* * repeated .google.protobuf.Timestamp commit_timestamps = 3; */ public java.util.List getCommitTimestampsOrBuilderList() { if (commitTimestampsBuilder_ != null) { return commitTimestampsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(commitTimestamps_); } } /** *
     * 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]`.
     * 
* * repeated .google.protobuf.Timestamp commit_timestamps = 3; */ public nl.topicus.jdbc.shaded.com.google.protobuf.Timestamp.Builder addCommitTimestampsBuilder() { return getCommitTimestampsFieldBuilder().addBuilder( nl.topicus.jdbc.shaded.com.google.protobuf.Timestamp.getDefaultInstance()); } /** *
     * 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]`.
     * 
* * repeated .google.protobuf.Timestamp commit_timestamps = 3; */ public nl.topicus.jdbc.shaded.com.google.protobuf.Timestamp.Builder addCommitTimestampsBuilder( int index) { return getCommitTimestampsFieldBuilder().addBuilder( index, nl.topicus.jdbc.shaded.com.google.protobuf.Timestamp.getDefaultInstance()); } /** *
     * 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]`.
     * 
* * repeated .google.protobuf.Timestamp commit_timestamps = 3; */ public java.util.List getCommitTimestampsBuilderList() { return getCommitTimestampsFieldBuilder().getBuilderList(); } private nl.topicus.jdbc.shaded.com.google.protobuf.RepeatedFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.protobuf.Timestamp, nl.topicus.jdbc.shaded.com.google.protobuf.Timestamp.Builder, nl.topicus.jdbc.shaded.com.google.protobuf.TimestampOrBuilder> getCommitTimestampsFieldBuilder() { if (commitTimestampsBuilder_ == null) { commitTimestampsBuilder_ = new nl.topicus.jdbc.shaded.com.google.protobuf.RepeatedFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.protobuf.Timestamp, nl.topicus.jdbc.shaded.com.google.protobuf.Timestamp.Builder, nl.topicus.jdbc.shaded.com.google.protobuf.TimestampOrBuilder>( commitTimestamps_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); commitTimestamps_ = null; } return commitTimestampsBuilder_; } public final Builder setUnknownFields( final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } /** * @deprecated Use the following instead: *

     * protoBuilder.setDatabase(databaseName.toString());
     * 
*/ @Deprecated public final Builder setDatabaseWithDatabaseName(nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.DatabaseName value) { if (value == null) { return setDatabase(""); } return setDatabase(value.toString()); } /** * @deprecated Use the following instead: *

     * DatabaseName.parse(protoBuilder.getDatabase());
     * 
*/ @Deprecated public final nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.DatabaseName getDatabaseAsDatabaseName() { java.lang.String str = getDatabase(); if (str.isEmpty()) { return null; } return nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.DatabaseName.parse(str); } // @@protoc_insertion_point(builder_scope:google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata) } /** * @deprecated Use the following instead: *

   * DatabaseName.parse(protoObject.getDatabase());
   * 
*/ @Deprecated public final nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.DatabaseName getDatabaseAsDatabaseName() { java.lang.String str = getDatabase(); if (str.isEmpty()) { return null; } return nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.DatabaseName.parse(str); } // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata) private static final nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata(); } public static nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final nl.topicus.jdbc.shaded.com.google.protobuf.Parser PARSER = new nl.topicus.jdbc.shaded.com.google.protobuf.AbstractParser() { public UpdateDatabaseDdlMetadata parsePartialFrom( nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return new UpdateDatabaseDdlMetadata(input, extensionRegistry); } }; public static nl.topicus.jdbc.shaded.com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public nl.topicus.jdbc.shaded.com.google.protobuf.Parser getParserForType() { return PARSER; } public nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy