();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ chunks_.add(
+ input.readMessage(
+ com.google.bigtable.v2.ReadRowsResponse.CellChunk.parser(),
+ extensionRegistry));
+ break;
+ }
+ case 26:
+ {
+ if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+ results_ =
+ new java.util.ArrayList<
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest
+ .Result>();
+ mutable_bitField0_ |= 0x00000004;
+ }
+ results_.add(
+ input.readMessage(
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result
+ .parser(),
+ extensionRegistry));
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000002) != 0)) {
+ chunks_ = java.util.Collections.unmodifiableList(chunks_);
+ }
+ if (((mutable_bitField0_ & 0x00000004) != 0)) {
+ results_ = java.util.Collections.unmodifiableList(results_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.conformance.bigtable.v2.TestDefinition
+ .internal_static_google_cloud_conformance_bigtable_v2_ReadRowsTest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.conformance.bigtable.v2.TestDefinition
+ .internal_static_google_cloud_conformance_bigtable_v2_ReadRowsTest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.class,
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Builder.class);
+ }
+
+ public interface ResultOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.conformance.bigtable.v2.ReadRowsTest.Result)
+ com.google.protobuf.MessageOrBuilder {
+
+ /** string row_key = 1; */
+ java.lang.String getRowKey();
+ /** string row_key = 1; */
+ com.google.protobuf.ByteString getRowKeyBytes();
+
+ /** string family_name = 2; */
+ java.lang.String getFamilyName();
+ /** string family_name = 2; */
+ com.google.protobuf.ByteString getFamilyNameBytes();
+
+ /** string qualifier = 3; */
+ java.lang.String getQualifier();
+ /** string qualifier = 3; */
+ com.google.protobuf.ByteString getQualifierBytes();
+
+ /** int64 timestamp_micros = 4; */
+ long getTimestampMicros();
+
+ /** string value = 5; */
+ java.lang.String getValue();
+ /** string value = 5; */
+ com.google.protobuf.ByteString getValueBytes();
+
+ /** string label = 6; */
+ java.lang.String getLabel();
+ /** string label = 6; */
+ com.google.protobuf.ByteString getLabelBytes();
+
+ /** bool error = 7; */
+ boolean getError();
+ }
+ /**
+ *
+ *
+ *
+ * Expected results of reading the row.
+ * Only the last result can be an error.
+ *
+ *
+ * Protobuf type {@code google.cloud.conformance.bigtable.v2.ReadRowsTest.Result}
+ */
+ public static final class Result extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.conformance.bigtable.v2.ReadRowsTest.Result)
+ ResultOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Result.newBuilder() to construct.
+ private Result(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private Result() {
+ rowKey_ = "";
+ familyName_ = "";
+ qualifier_ = "";
+ value_ = "";
+ label_ = "";
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private Result(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ rowKey_ = s;
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ familyName_ = s;
+ break;
+ }
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ qualifier_ = s;
+ break;
+ }
+ case 32:
+ {
+ timestampMicros_ = input.readInt64();
+ break;
+ }
+ case 42:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ value_ = s;
+ break;
+ }
+ case 50:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ label_ = s;
+ break;
+ }
+ case 56:
+ {
+ error_ = input.readBool();
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.conformance.bigtable.v2.TestDefinition
+ .internal_static_google_cloud_conformance_bigtable_v2_ReadRowsTest_Result_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.conformance.bigtable.v2.TestDefinition
+ .internal_static_google_cloud_conformance_bigtable_v2_ReadRowsTest_Result_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result.class,
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result.Builder
+ .class);
+ }
+
+ public static final int ROW_KEY_FIELD_NUMBER = 1;
+ private volatile java.lang.Object rowKey_;
+ /** string row_key = 1; */
+ public java.lang.String getRowKey() {
+ java.lang.Object ref = rowKey_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ rowKey_ = s;
+ return s;
+ }
+ }
+ /** string row_key = 1; */
+ public com.google.protobuf.ByteString getRowKeyBytes() {
+ java.lang.Object ref = rowKey_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ rowKey_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int FAMILY_NAME_FIELD_NUMBER = 2;
+ private volatile java.lang.Object familyName_;
+ /** string family_name = 2; */
+ public java.lang.String getFamilyName() {
+ java.lang.Object ref = familyName_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ familyName_ = s;
+ return s;
+ }
+ }
+ /** string family_name = 2; */
+ public com.google.protobuf.ByteString getFamilyNameBytes() {
+ java.lang.Object ref = familyName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ familyName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int QUALIFIER_FIELD_NUMBER = 3;
+ private volatile java.lang.Object qualifier_;
+ /** string qualifier = 3; */
+ public java.lang.String getQualifier() {
+ java.lang.Object ref = qualifier_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ qualifier_ = s;
+ return s;
+ }
+ }
+ /** string qualifier = 3; */
+ public com.google.protobuf.ByteString getQualifierBytes() {
+ java.lang.Object ref = qualifier_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ qualifier_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TIMESTAMP_MICROS_FIELD_NUMBER = 4;
+ private long timestampMicros_;
+ /** int64 timestamp_micros = 4; */
+ public long getTimestampMicros() {
+ return timestampMicros_;
+ }
+
+ public static final int VALUE_FIELD_NUMBER = 5;
+ private volatile java.lang.Object value_;
+ /** string value = 5; */
+ public java.lang.String getValue() {
+ java.lang.Object ref = value_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ value_ = s;
+ return s;
+ }
+ }
+ /** string value = 5; */
+ public com.google.protobuf.ByteString getValueBytes() {
+ java.lang.Object ref = value_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ value_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int LABEL_FIELD_NUMBER = 6;
+ private volatile java.lang.Object label_;
+ /** string label = 6; */
+ public java.lang.String getLabel() {
+ java.lang.Object ref = label_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ label_ = s;
+ return s;
+ }
+ }
+ /** string label = 6; */
+ public com.google.protobuf.ByteString getLabelBytes() {
+ java.lang.Object ref = label_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ label_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ERROR_FIELD_NUMBER = 7;
+ private boolean error_;
+ /** bool error = 7; */
+ public boolean getError() {
+ return error_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getRowKeyBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, rowKey_);
+ }
+ if (!getFamilyNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, familyName_);
+ }
+ if (!getQualifierBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, qualifier_);
+ }
+ if (timestampMicros_ != 0L) {
+ output.writeInt64(4, timestampMicros_);
+ }
+ if (!getValueBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, value_);
+ }
+ if (!getLabelBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, label_);
+ }
+ if (error_ != false) {
+ output.writeBool(7, error_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getRowKeyBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, rowKey_);
+ }
+ if (!getFamilyNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, familyName_);
+ }
+ if (!getQualifierBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, qualifier_);
+ }
+ if (timestampMicros_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, timestampMicros_);
+ }
+ if (!getValueBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, value_);
+ }
+ if (!getLabelBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, label_);
+ }
+ if (error_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, error_);
+ }
+ 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
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result other =
+ (com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result) obj;
+
+ if (!getRowKey().equals(other.getRowKey())) return false;
+ if (!getFamilyName().equals(other.getFamilyName())) return false;
+ if (!getQualifier().equals(other.getQualifier())) return false;
+ if (getTimestampMicros() != other.getTimestampMicros()) return false;
+ if (!getValue().equals(other.getValue())) return false;
+ if (!getLabel().equals(other.getLabel())) return false;
+ if (getError() != other.getError()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + ROW_KEY_FIELD_NUMBER;
+ hash = (53 * hash) + getRowKey().hashCode();
+ hash = (37 * hash) + FAMILY_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getFamilyName().hashCode();
+ hash = (37 * hash) + QUALIFIER_FIELD_NUMBER;
+ hash = (53 * hash) + getQualifier().hashCode();
+ hash = (37 * hash) + TIMESTAMP_MICROS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTimestampMicros());
+ hash = (37 * hash) + VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getValue().hashCode();
+ hash = (37 * hash) + LABEL_FIELD_NUMBER;
+ hash = (53 * hash) + getLabel().hashCode();
+ hash = (37 * hash) + ERROR_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getError());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result
+ parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result
+ parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result
+ parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result
+ parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Expected results of reading the row.
+ * Only the last result can be an error.
+ *
+ *
+ * Protobuf type {@code google.cloud.conformance.bigtable.v2.ReadRowsTest.Result}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.conformance.bigtable.v2.ReadRowsTest.Result)
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.ResultOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.conformance.bigtable.v2.TestDefinition
+ .internal_static_google_cloud_conformance_bigtable_v2_ReadRowsTest_Result_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.conformance.bigtable.v2.TestDefinition
+ .internal_static_google_cloud_conformance_bigtable_v2_ReadRowsTest_Result_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result.class,
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result
+ .Builder.class);
+ }
+
+ // Construct using
+ // com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ rowKey_ = "";
+
+ familyName_ = "";
+
+ qualifier_ = "";
+
+ timestampMicros_ = 0L;
+
+ value_ = "";
+
+ label_ = "";
+
+ error_ = false;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.conformance.bigtable.v2.TestDefinition
+ .internal_static_google_cloud_conformance_bigtable_v2_ReadRowsTest_Result_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result
+ getDefaultInstanceForType() {
+ return com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result
+ .getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result build() {
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result result =
+ buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result
+ buildPartial() {
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result result =
+ new com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result(this);
+ result.rowKey_ = rowKey_;
+ result.familyName_ = familyName_;
+ result.qualifier_ = qualifier_;
+ result.timestampMicros_ = timestampMicros_;
+ result.value_ = value_;
+ result.label_ = label_;
+ result.error_ = error_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index,
+ java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other
+ instanceof
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result) {
+ return mergeFrom(
+ (com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result)
+ other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result other) {
+ if (other
+ == com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result
+ .getDefaultInstance()) return this;
+ if (!other.getRowKey().isEmpty()) {
+ rowKey_ = other.rowKey_;
+ onChanged();
+ }
+ if (!other.getFamilyName().isEmpty()) {
+ familyName_ = other.familyName_;
+ onChanged();
+ }
+ if (!other.getQualifier().isEmpty()) {
+ qualifier_ = other.qualifier_;
+ onChanged();
+ }
+ if (other.getTimestampMicros() != 0L) {
+ setTimestampMicros(other.getTimestampMicros());
+ }
+ if (!other.getValue().isEmpty()) {
+ value_ = other.value_;
+ onChanged();
+ }
+ if (!other.getLabel().isEmpty()) {
+ label_ = other.label_;
+ onChanged();
+ }
+ if (other.getError() != false) {
+ setError(other.getError());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result
+ parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result)
+ e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private java.lang.Object rowKey_ = "";
+ /** string row_key = 1; */
+ public java.lang.String getRowKey() {
+ java.lang.Object ref = rowKey_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ rowKey_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /** string row_key = 1; */
+ public com.google.protobuf.ByteString getRowKeyBytes() {
+ java.lang.Object ref = rowKey_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ rowKey_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /** string row_key = 1; */
+ public Builder setRowKey(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ rowKey_ = value;
+ onChanged();
+ return this;
+ }
+ /** string row_key = 1; */
+ public Builder clearRowKey() {
+
+ rowKey_ = getDefaultInstance().getRowKey();
+ onChanged();
+ return this;
+ }
+ /** string row_key = 1; */
+ public Builder setRowKeyBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ rowKey_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object familyName_ = "";
+ /** string family_name = 2; */
+ public java.lang.String getFamilyName() {
+ java.lang.Object ref = familyName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ familyName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /** string family_name = 2; */
+ public com.google.protobuf.ByteString getFamilyNameBytes() {
+ java.lang.Object ref = familyName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ familyName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /** string family_name = 2; */
+ public Builder setFamilyName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ familyName_ = value;
+ onChanged();
+ return this;
+ }
+ /** string family_name = 2; */
+ public Builder clearFamilyName() {
+
+ familyName_ = getDefaultInstance().getFamilyName();
+ onChanged();
+ return this;
+ }
+ /** string family_name = 2; */
+ public Builder setFamilyNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ familyName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object qualifier_ = "";
+ /** string qualifier = 3; */
+ public java.lang.String getQualifier() {
+ java.lang.Object ref = qualifier_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ qualifier_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /** string qualifier = 3; */
+ public com.google.protobuf.ByteString getQualifierBytes() {
+ java.lang.Object ref = qualifier_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ qualifier_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /** string qualifier = 3; */
+ public Builder setQualifier(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ qualifier_ = value;
+ onChanged();
+ return this;
+ }
+ /** string qualifier = 3; */
+ public Builder clearQualifier() {
+
+ qualifier_ = getDefaultInstance().getQualifier();
+ onChanged();
+ return this;
+ }
+ /** string qualifier = 3; */
+ public Builder setQualifierBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ qualifier_ = value;
+ onChanged();
+ return this;
+ }
+
+ private long timestampMicros_;
+ /** int64 timestamp_micros = 4; */
+ public long getTimestampMicros() {
+ return timestampMicros_;
+ }
+ /** int64 timestamp_micros = 4; */
+ public Builder setTimestampMicros(long value) {
+
+ timestampMicros_ = value;
+ onChanged();
+ return this;
+ }
+ /** int64 timestamp_micros = 4; */
+ public Builder clearTimestampMicros() {
+
+ timestampMicros_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object value_ = "";
+ /** string value = 5; */
+ public java.lang.String getValue() {
+ java.lang.Object ref = value_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ value_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /** string value = 5; */
+ public com.google.protobuf.ByteString getValueBytes() {
+ java.lang.Object ref = value_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ value_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /** string value = 5; */
+ public Builder setValue(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ value_ = value;
+ onChanged();
+ return this;
+ }
+ /** string value = 5; */
+ public Builder clearValue() {
+
+ value_ = getDefaultInstance().getValue();
+ onChanged();
+ return this;
+ }
+ /** string value = 5; */
+ public Builder setValueBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ value_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object label_ = "";
+ /** string label = 6; */
+ public java.lang.String getLabel() {
+ java.lang.Object ref = label_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ label_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /** string label = 6; */
+ public com.google.protobuf.ByteString getLabelBytes() {
+ java.lang.Object ref = label_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ label_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /** string label = 6; */
+ public Builder setLabel(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ label_ = value;
+ onChanged();
+ return this;
+ }
+ /** string label = 6; */
+ public Builder clearLabel() {
+
+ label_ = getDefaultInstance().getLabel();
+ onChanged();
+ return this;
+ }
+ /** string label = 6; */
+ public Builder setLabelBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ label_ = value;
+ onChanged();
+ return this;
+ }
+
+ private boolean error_;
+ /** bool error = 7; */
+ public boolean getError() {
+ return error_;
+ }
+ /** bool error = 7; */
+ public Builder setError(boolean value) {
+
+ error_ = value;
+ onChanged();
+ return this;
+ }
+ /** bool error = 7; */
+ public Builder clearError() {
+
+ error_ = false;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.conformance.bigtable.v2.ReadRowsTest.Result)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.conformance.bigtable.v2.ReadRowsTest.Result)
+ private static final com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest
+ .Result
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result();
+ }
+
+ public static com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Result parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new Result(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+ }
+
+ private int bitField0_;
+ public static final int DESCRIPTION_FIELD_NUMBER = 1;
+ private volatile java.lang.Object description_;
+ /** string description = 1; */
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ description_ = s;
+ return s;
+ }
+ }
+ /** string description = 1; */
+ public com.google.protobuf.ByteString getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CHUNKS_FIELD_NUMBER = 2;
+ private java.util.List chunks_;
+ /** repeated .google.bigtable.v2.ReadRowsResponse.CellChunk chunks = 2; */
+ public java.util.List getChunksList() {
+ return chunks_;
+ }
+ /** repeated .google.bigtable.v2.ReadRowsResponse.CellChunk chunks = 2; */
+ public java.util.List extends com.google.bigtable.v2.ReadRowsResponse.CellChunkOrBuilder>
+ getChunksOrBuilderList() {
+ return chunks_;
+ }
+ /** repeated .google.bigtable.v2.ReadRowsResponse.CellChunk chunks = 2; */
+ public int getChunksCount() {
+ return chunks_.size();
+ }
+ /** repeated .google.bigtable.v2.ReadRowsResponse.CellChunk chunks = 2; */
+ public com.google.bigtable.v2.ReadRowsResponse.CellChunk getChunks(int index) {
+ return chunks_.get(index);
+ }
+ /** repeated .google.bigtable.v2.ReadRowsResponse.CellChunk chunks = 2; */
+ public com.google.bigtable.v2.ReadRowsResponse.CellChunkOrBuilder getChunksOrBuilder(
+ int index) {
+ return chunks_.get(index);
+ }
+
+ public static final int RESULTS_FIELD_NUMBER = 3;
+ private java.util.List<
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result>
+ results_;
+ /**
+ * repeated .google.cloud.conformance.bigtable.v2.ReadRowsTest.Result results = 3;
+ */
+ public java.util.List<
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result>
+ getResultsList() {
+ return results_;
+ }
+ /**
+ * repeated .google.cloud.conformance.bigtable.v2.ReadRowsTest.Result results = 3;
+ */
+ public java.util.List<
+ ? extends
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest
+ .ResultOrBuilder>
+ getResultsOrBuilderList() {
+ return results_;
+ }
+ /**
+ * repeated .google.cloud.conformance.bigtable.v2.ReadRowsTest.Result results = 3;
+ */
+ public int getResultsCount() {
+ return results_.size();
+ }
+ /**
+ * repeated .google.cloud.conformance.bigtable.v2.ReadRowsTest.Result results = 3;
+ */
+ public com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result getResults(
+ int index) {
+ return results_.get(index);
+ }
+ /**
+ * repeated .google.cloud.conformance.bigtable.v2.ReadRowsTest.Result results = 3;
+ */
+ public com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.ResultOrBuilder
+ getResultsOrBuilder(int index) {
+ return results_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getDescriptionBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_);
+ }
+ for (int i = 0; i < chunks_.size(); i++) {
+ output.writeMessage(2, chunks_.get(i));
+ }
+ for (int i = 0; i < results_.size(); i++) {
+ output.writeMessage(3, results_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getDescriptionBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_);
+ }
+ for (int i = 0; i < chunks_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, chunks_.get(i));
+ }
+ for (int i = 0; i < results_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, results_.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 com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest other =
+ (com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest) obj;
+
+ if (!getDescription().equals(other.getDescription())) return false;
+ if (!getChunksList().equals(other.getChunksList())) return false;
+ if (!getResultsList().equals(other.getResultsList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
+ hash = (53 * hash) + getDescription().hashCode();
+ if (getChunksCount() > 0) {
+ hash = (37 * hash) + CHUNKS_FIELD_NUMBER;
+ hash = (53 * hash) + getChunksList().hashCode();
+ }
+ if (getResultsCount() > 0) {
+ hash = (37 * hash) + RESULTS_FIELD_NUMBER;
+ hash = (53 * hash) + getResultsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /** Protobuf type {@code google.cloud.conformance.bigtable.v2.ReadRowsTest} */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.conformance.bigtable.v2.ReadRowsTest)
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.conformance.bigtable.v2.TestDefinition
+ .internal_static_google_cloud_conformance_bigtable_v2_ReadRowsTest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.conformance.bigtable.v2.TestDefinition
+ .internal_static_google_cloud_conformance_bigtable_v2_ReadRowsTest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.class,
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Builder.class);
+ }
+
+ // Construct using
+ // com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getChunksFieldBuilder();
+ getResultsFieldBuilder();
+ }
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ description_ = "";
+
+ if (chunksBuilder_ == null) {
+ chunks_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ chunksBuilder_.clear();
+ }
+ if (resultsBuilder_ == null) {
+ results_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ resultsBuilder_.clear();
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.conformance.bigtable.v2.TestDefinition
+ .internal_static_google_cloud_conformance_bigtable_v2_ReadRowsTest_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest
+ getDefaultInstanceForType() {
+ return com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest
+ .getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest build() {
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest result =
+ buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest buildPartial() {
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest result =
+ new com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ result.description_ = description_;
+ if (chunksBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
+ chunks_ = java.util.Collections.unmodifiableList(chunks_);
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.chunks_ = chunks_;
+ } else {
+ result.chunks_ = chunksBuilder_.build();
+ }
+ if (resultsBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)) {
+ results_ = java.util.Collections.unmodifiableList(results_);
+ bitField0_ = (bitField0_ & ~0x00000004);
+ }
+ result.results_ = results_;
+ } else {
+ result.results_ = resultsBuilder_.build();
+ }
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index,
+ java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest) {
+ return mergeFrom(
+ (com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest other) {
+ if (other
+ == com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest
+ .getDefaultInstance()) return this;
+ if (!other.getDescription().isEmpty()) {
+ description_ = other.description_;
+ onChanged();
+ }
+ if (chunksBuilder_ == null) {
+ if (!other.chunks_.isEmpty()) {
+ if (chunks_.isEmpty()) {
+ chunks_ = other.chunks_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureChunksIsMutable();
+ chunks_.addAll(other.chunks_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.chunks_.isEmpty()) {
+ if (chunksBuilder_.isEmpty()) {
+ chunksBuilder_.dispose();
+ chunksBuilder_ = null;
+ chunks_ = other.chunks_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ chunksBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getChunksFieldBuilder()
+ : null;
+ } else {
+ chunksBuilder_.addAllMessages(other.chunks_);
+ }
+ }
+ }
+ if (resultsBuilder_ == null) {
+ if (!other.results_.isEmpty()) {
+ if (results_.isEmpty()) {
+ results_ = other.results_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ ensureResultsIsMutable();
+ results_.addAll(other.results_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.results_.isEmpty()) {
+ if (resultsBuilder_.isEmpty()) {
+ resultsBuilder_.dispose();
+ resultsBuilder_ = null;
+ results_ = other.results_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ resultsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getResultsFieldBuilder()
+ : null;
+ } else {
+ resultsBuilder_.addAllMessages(other.results_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest)
+ e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object description_ = "";
+ /** string description = 1; */
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ description_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /** string description = 1; */
+ public com.google.protobuf.ByteString getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /** string description = 1; */
+ public Builder setDescription(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ description_ = value;
+ onChanged();
+ return this;
+ }
+ /** string description = 1; */
+ public Builder clearDescription() {
+
+ description_ = getDefaultInstance().getDescription();
+ onChanged();
+ return this;
+ }
+ /** string description = 1; */
+ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ description_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List chunks_ =
+ java.util.Collections.emptyList();
+
+ private void ensureChunksIsMutable() {
+ if (!((bitField0_ & 0x00000002) != 0)) {
+ chunks_ =
+ new java.util.ArrayList(chunks_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.bigtable.v2.ReadRowsResponse.CellChunk,
+ com.google.bigtable.v2.ReadRowsResponse.CellChunk.Builder,
+ com.google.bigtable.v2.ReadRowsResponse.CellChunkOrBuilder>
+ chunksBuilder_;
+
+ /** repeated .google.bigtable.v2.ReadRowsResponse.CellChunk chunks = 2; */
+ public java.util.List getChunksList() {
+ if (chunksBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(chunks_);
+ } else {
+ return chunksBuilder_.getMessageList();
+ }
+ }
+ /** repeated .google.bigtable.v2.ReadRowsResponse.CellChunk chunks = 2; */
+ public int getChunksCount() {
+ if (chunksBuilder_ == null) {
+ return chunks_.size();
+ } else {
+ return chunksBuilder_.getCount();
+ }
+ }
+ /** repeated .google.bigtable.v2.ReadRowsResponse.CellChunk chunks = 2; */
+ public com.google.bigtable.v2.ReadRowsResponse.CellChunk getChunks(int index) {
+ if (chunksBuilder_ == null) {
+ return chunks_.get(index);
+ } else {
+ return chunksBuilder_.getMessage(index);
+ }
+ }
+ /** repeated .google.bigtable.v2.ReadRowsResponse.CellChunk chunks = 2; */
+ public Builder setChunks(int index, com.google.bigtable.v2.ReadRowsResponse.CellChunk value) {
+ if (chunksBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureChunksIsMutable();
+ chunks_.set(index, value);
+ onChanged();
+ } else {
+ chunksBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /** repeated .google.bigtable.v2.ReadRowsResponse.CellChunk chunks = 2; */
+ public Builder setChunks(
+ int index, com.google.bigtable.v2.ReadRowsResponse.CellChunk.Builder builderForValue) {
+ if (chunksBuilder_ == null) {
+ ensureChunksIsMutable();
+ chunks_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ chunksBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /** repeated .google.bigtable.v2.ReadRowsResponse.CellChunk chunks = 2; */
+ public Builder addChunks(com.google.bigtable.v2.ReadRowsResponse.CellChunk value) {
+ if (chunksBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureChunksIsMutable();
+ chunks_.add(value);
+ onChanged();
+ } else {
+ chunksBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /** repeated .google.bigtable.v2.ReadRowsResponse.CellChunk chunks = 2; */
+ public Builder addChunks(int index, com.google.bigtable.v2.ReadRowsResponse.CellChunk value) {
+ if (chunksBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureChunksIsMutable();
+ chunks_.add(index, value);
+ onChanged();
+ } else {
+ chunksBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /** repeated .google.bigtable.v2.ReadRowsResponse.CellChunk chunks = 2; */
+ public Builder addChunks(
+ com.google.bigtable.v2.ReadRowsResponse.CellChunk.Builder builderForValue) {
+ if (chunksBuilder_ == null) {
+ ensureChunksIsMutable();
+ chunks_.add(builderForValue.build());
+ onChanged();
+ } else {
+ chunksBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /** repeated .google.bigtable.v2.ReadRowsResponse.CellChunk chunks = 2; */
+ public Builder addChunks(
+ int index, com.google.bigtable.v2.ReadRowsResponse.CellChunk.Builder builderForValue) {
+ if (chunksBuilder_ == null) {
+ ensureChunksIsMutable();
+ chunks_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ chunksBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /** repeated .google.bigtable.v2.ReadRowsResponse.CellChunk chunks = 2; */
+ public Builder addAllChunks(
+ java.lang.Iterable extends com.google.bigtable.v2.ReadRowsResponse.CellChunk> values) {
+ if (chunksBuilder_ == null) {
+ ensureChunksIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, chunks_);
+ onChanged();
+ } else {
+ chunksBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /** repeated .google.bigtable.v2.ReadRowsResponse.CellChunk chunks = 2; */
+ public Builder clearChunks() {
+ if (chunksBuilder_ == null) {
+ chunks_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ chunksBuilder_.clear();
+ }
+ return this;
+ }
+ /** repeated .google.bigtable.v2.ReadRowsResponse.CellChunk chunks = 2; */
+ public Builder removeChunks(int index) {
+ if (chunksBuilder_ == null) {
+ ensureChunksIsMutable();
+ chunks_.remove(index);
+ onChanged();
+ } else {
+ chunksBuilder_.remove(index);
+ }
+ return this;
+ }
+ /** repeated .google.bigtable.v2.ReadRowsResponse.CellChunk chunks = 2; */
+ public com.google.bigtable.v2.ReadRowsResponse.CellChunk.Builder getChunksBuilder(int index) {
+ return getChunksFieldBuilder().getBuilder(index);
+ }
+ /** repeated .google.bigtable.v2.ReadRowsResponse.CellChunk chunks = 2; */
+ public com.google.bigtable.v2.ReadRowsResponse.CellChunkOrBuilder getChunksOrBuilder(
+ int index) {
+ if (chunksBuilder_ == null) {
+ return chunks_.get(index);
+ } else {
+ return chunksBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /** repeated .google.bigtable.v2.ReadRowsResponse.CellChunk chunks = 2; */
+ public java.util.List extends com.google.bigtable.v2.ReadRowsResponse.CellChunkOrBuilder>
+ getChunksOrBuilderList() {
+ if (chunksBuilder_ != null) {
+ return chunksBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(chunks_);
+ }
+ }
+ /** repeated .google.bigtable.v2.ReadRowsResponse.CellChunk chunks = 2; */
+ public com.google.bigtable.v2.ReadRowsResponse.CellChunk.Builder addChunksBuilder() {
+ return getChunksFieldBuilder()
+ .addBuilder(com.google.bigtable.v2.ReadRowsResponse.CellChunk.getDefaultInstance());
+ }
+ /** repeated .google.bigtable.v2.ReadRowsResponse.CellChunk chunks = 2; */
+ public com.google.bigtable.v2.ReadRowsResponse.CellChunk.Builder addChunksBuilder(int index) {
+ return getChunksFieldBuilder()
+ .addBuilder(
+ index, com.google.bigtable.v2.ReadRowsResponse.CellChunk.getDefaultInstance());
+ }
+ /** repeated .google.bigtable.v2.ReadRowsResponse.CellChunk chunks = 2; */
+ public java.util.List
+ getChunksBuilderList() {
+ return getChunksFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.bigtable.v2.ReadRowsResponse.CellChunk,
+ com.google.bigtable.v2.ReadRowsResponse.CellChunk.Builder,
+ com.google.bigtable.v2.ReadRowsResponse.CellChunkOrBuilder>
+ getChunksFieldBuilder() {
+ if (chunksBuilder_ == null) {
+ chunksBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.bigtable.v2.ReadRowsResponse.CellChunk,
+ com.google.bigtable.v2.ReadRowsResponse.CellChunk.Builder,
+ com.google.bigtable.v2.ReadRowsResponse.CellChunkOrBuilder>(
+ chunks_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
+ chunks_ = null;
+ }
+ return chunksBuilder_;
+ }
+
+ private java.util.List<
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result>
+ results_ = java.util.Collections.emptyList();
+
+ private void ensureResultsIsMutable() {
+ if (!((bitField0_ & 0x00000004) != 0)) {
+ results_ =
+ new java.util.ArrayList<
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result>(
+ results_);
+ bitField0_ |= 0x00000004;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result,
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result.Builder,
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.ResultOrBuilder>
+ resultsBuilder_;
+
+ /**
+ * repeated .google.cloud.conformance.bigtable.v2.ReadRowsTest.Result results = 3;
+ *
+ */
+ public java.util.List<
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result>
+ getResultsList() {
+ if (resultsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(results_);
+ } else {
+ return resultsBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .google.cloud.conformance.bigtable.v2.ReadRowsTest.Result results = 3;
+ *
+ */
+ public int getResultsCount() {
+ if (resultsBuilder_ == null) {
+ return results_.size();
+ } else {
+ return resultsBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .google.cloud.conformance.bigtable.v2.ReadRowsTest.Result results = 3;
+ *
+ */
+ public com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result getResults(
+ int index) {
+ if (resultsBuilder_ == null) {
+ return results_.get(index);
+ } else {
+ return resultsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .google.cloud.conformance.bigtable.v2.ReadRowsTest.Result results = 3;
+ *
+ */
+ public Builder setResults(
+ int index,
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result value) {
+ if (resultsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureResultsIsMutable();
+ results_.set(index, value);
+ onChanged();
+ } else {
+ resultsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.cloud.conformance.bigtable.v2.ReadRowsTest.Result results = 3;
+ *
+ */
+ public Builder setResults(
+ int index,
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result.Builder
+ builderForValue) {
+ if (resultsBuilder_ == null) {
+ ensureResultsIsMutable();
+ results_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ resultsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.cloud.conformance.bigtable.v2.ReadRowsTest.Result results = 3;
+ *
+ */
+ public Builder addResults(
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result value) {
+ if (resultsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureResultsIsMutable();
+ results_.add(value);
+ onChanged();
+ } else {
+ resultsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.cloud.conformance.bigtable.v2.ReadRowsTest.Result results = 3;
+ *
+ */
+ public Builder addResults(
+ int index,
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result value) {
+ if (resultsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureResultsIsMutable();
+ results_.add(index, value);
+ onChanged();
+ } else {
+ resultsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.cloud.conformance.bigtable.v2.ReadRowsTest.Result results = 3;
+ *
+ */
+ public Builder addResults(
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result.Builder
+ builderForValue) {
+ if (resultsBuilder_ == null) {
+ ensureResultsIsMutable();
+ results_.add(builderForValue.build());
+ onChanged();
+ } else {
+ resultsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.cloud.conformance.bigtable.v2.ReadRowsTest.Result results = 3;
+ *
+ */
+ public Builder addResults(
+ int index,
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result.Builder
+ builderForValue) {
+ if (resultsBuilder_ == null) {
+ ensureResultsIsMutable();
+ results_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ resultsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.cloud.conformance.bigtable.v2.ReadRowsTest.Result results = 3;
+ *
+ */
+ public Builder addAllResults(
+ java.lang.Iterable<
+ ? extends
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result>
+ values) {
+ if (resultsBuilder_ == null) {
+ ensureResultsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_);
+ onChanged();
+ } else {
+ resultsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.cloud.conformance.bigtable.v2.ReadRowsTest.Result results = 3;
+ *
+ */
+ public Builder clearResults() {
+ if (resultsBuilder_ == null) {
+ results_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ resultsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .google.cloud.conformance.bigtable.v2.ReadRowsTest.Result results = 3;
+ *
+ */
+ public Builder removeResults(int index) {
+ if (resultsBuilder_ == null) {
+ ensureResultsIsMutable();
+ results_.remove(index);
+ onChanged();
+ } else {
+ resultsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.cloud.conformance.bigtable.v2.ReadRowsTest.Result results = 3;
+ *
+ */
+ public com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result.Builder
+ getResultsBuilder(int index) {
+ return getResultsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .google.cloud.conformance.bigtable.v2.ReadRowsTest.Result results = 3;
+ *
+ */
+ public com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.ResultOrBuilder
+ getResultsOrBuilder(int index) {
+ if (resultsBuilder_ == null) {
+ return results_.get(index);
+ } else {
+ return resultsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .google.cloud.conformance.bigtable.v2.ReadRowsTest.Result results = 3;
+ *
+ */
+ public java.util.List<
+ ? extends
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest
+ .ResultOrBuilder>
+ getResultsOrBuilderList() {
+ if (resultsBuilder_ != null) {
+ return resultsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(results_);
+ }
+ }
+ /**
+ * repeated .google.cloud.conformance.bigtable.v2.ReadRowsTest.Result results = 3;
+ *
+ */
+ public com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result.Builder
+ addResultsBuilder() {
+ return getResultsFieldBuilder()
+ .addBuilder(
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result
+ .getDefaultInstance());
+ }
+ /**
+ * repeated .google.cloud.conformance.bigtable.v2.ReadRowsTest.Result results = 3;
+ *
+ */
+ public com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result.Builder
+ addResultsBuilder(int index) {
+ return getResultsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result
+ .getDefaultInstance());
+ }
+ /**
+ * repeated .google.cloud.conformance.bigtable.v2.ReadRowsTest.Result results = 3;
+ *
+ */
+ public java.util.List<
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result.Builder>
+ getResultsBuilderList() {
+ return getResultsFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result,
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result.Builder,
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.ResultOrBuilder>
+ getResultsFieldBuilder() {
+ if (resultsBuilder_ == null) {
+ resultsBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result,
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest.Result
+ .Builder,
+ com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest
+ .ResultOrBuilder>(
+ results_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
+ results_ = null;
+ }
+ return resultsBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.conformance.bigtable.v2.ReadRowsTest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.conformance.bigtable.v2.ReadRowsTest)
+ private static final com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest();
+ }
+
+ public static com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ReadRowsTest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new ReadRowsTest(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.conformance.bigtable.v2.TestDefinition.ReadRowsTest
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_conformance_bigtable_v2_TestFile_descriptor;
+ private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_conformance_bigtable_v2_TestFile_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_conformance_bigtable_v2_ReadRowsTest_descriptor;
+ private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_conformance_bigtable_v2_ReadRowsTest_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_conformance_bigtable_v2_ReadRowsTest_Result_descriptor;
+ private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_conformance_bigtable_v2_ReadRowsTest_Result_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n0google/cloud/conformance/bigtable/v2/t"
+ + "ests.proto\022$google.cloud.conformance.big"
+ + "table.v2\032!google/bigtable/v2/bigtable.pr"
+ + "oto\"W\n\010TestFile\022K\n\017read_rows_tests\030\001 \003(\013"
+ + "22.google.cloud.conformance.bigtable.v2."
+ + "ReadRowsTest\"\272\002\n\014ReadRowsTest\022\023\n\013descrip"
+ + "tion\030\001 \001(\t\022>\n\006chunks\030\002 \003(\0132..google.bigt"
+ + "able.v2.ReadRowsResponse.CellChunk\022J\n\007re"
+ + "sults\030\003 \003(\01329.google.cloud.conformance.b"
+ + "igtable.v2.ReadRowsTest.Result\032\210\001\n\006Resul"
+ + "t\022\017\n\007row_key\030\001 \001(\t\022\023\n\013family_name\030\002 \001(\t\022"
+ + "\021\n\tqualifier\030\003 \001(\t\022\030\n\020timestamp_micros\030\004"
+ + " \001(\003\022\r\n\005value\030\005 \001(\t\022\r\n\005label\030\006 \001(\t\022\r\n\005er"
+ + "ror\030\007 \001(\010Bg\n(com.google.cloud.conformanc"
+ + "e.bigtable.v2B\016TestDefinition\252\002*Google.C"
+ + "loud.Bigtable.V2.Tests.Conformanceb\006prot"
+ + "o3"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.bigtable.v2.BigtableProto.getDescriptor(),
+ },
+ assigner);
+ internal_static_google_cloud_conformance_bigtable_v2_TestFile_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_google_cloud_conformance_bigtable_v2_TestFile_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_conformance_bigtable_v2_TestFile_descriptor,
+ new java.lang.String[] {
+ "ReadRowsTests",
+ });
+ internal_static_google_cloud_conformance_bigtable_v2_ReadRowsTest_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_google_cloud_conformance_bigtable_v2_ReadRowsTest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_conformance_bigtable_v2_ReadRowsTest_descriptor,
+ new java.lang.String[] {
+ "Description", "Chunks", "Results",
+ });
+ internal_static_google_cloud_conformance_bigtable_v2_ReadRowsTest_Result_descriptor =
+ internal_static_google_cloud_conformance_bigtable_v2_ReadRowsTest_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_cloud_conformance_bigtable_v2_ReadRowsTest_Result_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_conformance_bigtable_v2_ReadRowsTest_Result_descriptor,
+ new java.lang.String[] {
+ "RowKey", "FamilyName", "Qualifier", "TimestampMicros", "Value", "Label", "Error",
+ });
+ com.google.bigtable.v2.BigtableProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/java/com/google/cloud/conformance/storage/v1/SigningV4Test.java b/google-cloud-testing/google-cloud-conformance-tests/src/main/java/com/google/cloud/conformance/storage/v1/SigningV4Test.java
new file mode 100644
index 000000000000..ae98a1f53829
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/java/com/google/cloud/conformance/storage/v1/SigningV4Test.java
@@ -0,0 +1,1504 @@
+/*
+ * Copyright 2019 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/conformance/storage/v1/tests.proto
+
+package com.google.cloud.conformance.storage.v1;
+
+/** Protobuf type {@code google.cloud.conformance.storage.v1.SigningV4Test} */
+public final class SigningV4Test extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.conformance.storage.v1.SigningV4Test)
+ SigningV4TestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use SigningV4Test.newBuilder() to construct.
+ private SigningV4Test(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private SigningV4Test() {
+ fileName_ = "";
+ description_ = "";
+ bucket_ = "";
+ object_ = "";
+ method_ = "";
+ expectedUrl_ = "";
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private SigningV4Test(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ fileName_ = s;
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ description_ = s;
+ break;
+ }
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ bucket_ = s;
+ break;
+ }
+ case 34:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ object_ = s;
+ break;
+ }
+ case 42:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ method_ = s;
+ break;
+ }
+ case 48:
+ {
+ expiration_ = input.readInt64();
+ break;
+ }
+ case 58:
+ {
+ com.google.protobuf.Timestamp.Builder subBuilder = null;
+ if (timestamp_ != null) {
+ subBuilder = timestamp_.toBuilder();
+ }
+ timestamp_ =
+ input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(timestamp_);
+ timestamp_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 66:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ expectedUrl_ = s;
+ break;
+ }
+ case 74:
+ {
+ if (!((mutable_bitField0_ & 0x00000100) != 0)) {
+ headers_ =
+ com.google.protobuf.MapField.newMapField(
+ HeadersDefaultEntryHolder.defaultEntry);
+ mutable_bitField0_ |= 0x00000100;
+ }
+ com.google.protobuf.MapEntry headers__ =
+ input.readMessage(
+ HeadersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+ headers_.getMutableMap().put(headers__.getKey(), headers__.getValue());
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.conformance.storage.v1.Tests
+ .internal_static_google_cloud_conformance_storage_v1_SigningV4Test_descriptor;
+ }
+
+ @SuppressWarnings({"rawtypes"})
+ @java.lang.Override
+ protected com.google.protobuf.MapField internalGetMapField(int number) {
+ switch (number) {
+ case 9:
+ return internalGetHeaders();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.conformance.storage.v1.Tests
+ .internal_static_google_cloud_conformance_storage_v1_SigningV4Test_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.conformance.storage.v1.SigningV4Test.class,
+ com.google.cloud.conformance.storage.v1.SigningV4Test.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int FILENAME_FIELD_NUMBER = 1;
+ private volatile java.lang.Object fileName_;
+ /** string fileName = 1; */
+ public java.lang.String getFileName() {
+ java.lang.Object ref = fileName_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ fileName_ = s;
+ return s;
+ }
+ }
+ /** string fileName = 1; */
+ public com.google.protobuf.ByteString getFileNameBytes() {
+ java.lang.Object ref = fileName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ fileName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DESCRIPTION_FIELD_NUMBER = 2;
+ private volatile java.lang.Object description_;
+ /** string description = 2; */
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ description_ = s;
+ return s;
+ }
+ }
+ /** string description = 2; */
+ public com.google.protobuf.ByteString getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int BUCKET_FIELD_NUMBER = 3;
+ private volatile java.lang.Object bucket_;
+ /** string bucket = 3; */
+ public java.lang.String getBucket() {
+ java.lang.Object ref = bucket_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ bucket_ = s;
+ return s;
+ }
+ }
+ /** string bucket = 3; */
+ public com.google.protobuf.ByteString getBucketBytes() {
+ java.lang.Object ref = bucket_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ bucket_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int OBJECT_FIELD_NUMBER = 4;
+ private volatile java.lang.Object object_;
+ /** string object = 4; */
+ public java.lang.String getObject() {
+ java.lang.Object ref = object_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ object_ = s;
+ return s;
+ }
+ }
+ /** string object = 4; */
+ public com.google.protobuf.ByteString getObjectBytes() {
+ java.lang.Object ref = object_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ object_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int METHOD_FIELD_NUMBER = 5;
+ private volatile java.lang.Object method_;
+ /** string method = 5; */
+ public java.lang.String getMethod() {
+ java.lang.Object ref = method_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ method_ = s;
+ return s;
+ }
+ }
+ /** string method = 5; */
+ public com.google.protobuf.ByteString getMethodBytes() {
+ java.lang.Object ref = method_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ method_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int EXPIRATION_FIELD_NUMBER = 6;
+ private long expiration_;
+ /** int64 expiration = 6; */
+ public long getExpiration() {
+ return expiration_;
+ }
+
+ public static final int TIMESTAMP_FIELD_NUMBER = 7;
+ private com.google.protobuf.Timestamp timestamp_;
+ /** .google.protobuf.Timestamp timestamp = 7; */
+ public boolean hasTimestamp() {
+ return timestamp_ != null;
+ }
+ /** .google.protobuf.Timestamp timestamp = 7; */
+ public com.google.protobuf.Timestamp getTimestamp() {
+ return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
+ }
+ /** .google.protobuf.Timestamp timestamp = 7; */
+ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
+ return getTimestamp();
+ }
+
+ public static final int EXPECTEDURL_FIELD_NUMBER = 8;
+ private volatile java.lang.Object expectedUrl_;
+ /** string expectedUrl = 8; */
+ public java.lang.String getExpectedUrl() {
+ java.lang.Object ref = expectedUrl_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ expectedUrl_ = s;
+ return s;
+ }
+ }
+ /** string expectedUrl = 8; */
+ public com.google.protobuf.ByteString getExpectedUrlBytes() {
+ java.lang.Object ref = expectedUrl_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ expectedUrl_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int HEADERS_FIELD_NUMBER = 9;
+
+ private static final class HeadersDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry defaultEntry =
+ com.google.protobuf.MapEntry.newDefaultInstance(
+ com.google.cloud.conformance.storage.v1.Tests
+ .internal_static_google_cloud_conformance_storage_v1_SigningV4Test_HeadersEntry_descriptor,
+ com.google.protobuf.WireFormat.FieldType.STRING,
+ "",
+ com.google.protobuf.WireFormat.FieldType.STRING,
+ "");
+ }
+
+ private com.google.protobuf.MapField headers_;
+
+ private com.google.protobuf.MapField internalGetHeaders() {
+ if (headers_ == null) {
+ return com.google.protobuf.MapField.emptyMapField(HeadersDefaultEntryHolder.defaultEntry);
+ }
+ return headers_;
+ }
+
+ public int getHeadersCount() {
+ return internalGetHeaders().getMap().size();
+ }
+ /** map<string, string> headers = 9; */
+ public boolean containsHeaders(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetHeaders().getMap().containsKey(key);
+ }
+ /** Use {@link #getHeadersMap()} instead. */
+ @java.lang.Deprecated
+ public java.util.Map getHeaders() {
+ return getHeadersMap();
+ }
+ /** map<string, string> headers = 9; */
+ public java.util.Map getHeadersMap() {
+ return internalGetHeaders().getMap();
+ }
+ /** map<string, string> headers = 9; */
+ public java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.String defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map map = internalGetHeaders().getMap();
+ return map.containsKey(key) ? map.get(key) : defaultValue;
+ }
+ /** map<string, string> headers = 9; */
+ public java.lang.String getHeadersOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map map = internalGetHeaders().getMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return map.get(key);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getFileNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fileName_);
+ }
+ if (!getDescriptionBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_);
+ }
+ if (!getBucketBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, bucket_);
+ }
+ if (!getObjectBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, object_);
+ }
+ if (!getMethodBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, method_);
+ }
+ if (expiration_ != 0L) {
+ output.writeInt64(6, expiration_);
+ }
+ if (timestamp_ != null) {
+ output.writeMessage(7, getTimestamp());
+ }
+ if (!getExpectedUrlBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 8, expectedUrl_);
+ }
+ com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+ output, internalGetHeaders(), HeadersDefaultEntryHolder.defaultEntry, 9);
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getFileNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fileName_);
+ }
+ if (!getDescriptionBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
+ }
+ if (!getBucketBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, bucket_);
+ }
+ if (!getObjectBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, object_);
+ }
+ if (!getMethodBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, method_);
+ }
+ if (expiration_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, expiration_);
+ }
+ if (timestamp_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getTimestamp());
+ }
+ if (!getExpectedUrlBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, expectedUrl_);
+ }
+ for (java.util.Map.Entry entry :
+ internalGetHeaders().getMap().entrySet()) {
+ com.google.protobuf.MapEntry headers__ =
+ HeadersDefaultEntryHolder.defaultEntry
+ .newBuilderForType()
+ .setKey(entry.getKey())
+ .setValue(entry.getValue())
+ .build();
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, headers__);
+ }
+ 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 com.google.cloud.conformance.storage.v1.SigningV4Test)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.conformance.storage.v1.SigningV4Test other =
+ (com.google.cloud.conformance.storage.v1.SigningV4Test) obj;
+
+ if (!getFileName().equals(other.getFileName())) return false;
+ if (!getDescription().equals(other.getDescription())) return false;
+ if (!getBucket().equals(other.getBucket())) return false;
+ if (!getObject().equals(other.getObject())) return false;
+ if (!getMethod().equals(other.getMethod())) return false;
+ if (getExpiration() != other.getExpiration()) return false;
+ if (hasTimestamp() != other.hasTimestamp()) return false;
+ if (hasTimestamp()) {
+ if (!getTimestamp().equals(other.getTimestamp())) return false;
+ }
+ if (!getExpectedUrl().equals(other.getExpectedUrl())) return false;
+ if (!internalGetHeaders().equals(other.internalGetHeaders())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + FILENAME_FIELD_NUMBER;
+ hash = (53 * hash) + getFileName().hashCode();
+ hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
+ hash = (53 * hash) + getDescription().hashCode();
+ hash = (37 * hash) + BUCKET_FIELD_NUMBER;
+ hash = (53 * hash) + getBucket().hashCode();
+ hash = (37 * hash) + OBJECT_FIELD_NUMBER;
+ hash = (53 * hash) + getObject().hashCode();
+ hash = (37 * hash) + METHOD_FIELD_NUMBER;
+ hash = (53 * hash) + getMethod().hashCode();
+ hash = (37 * hash) + EXPIRATION_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getExpiration());
+ if (hasTimestamp()) {
+ hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
+ hash = (53 * hash) + getTimestamp().hashCode();
+ }
+ hash = (37 * hash) + EXPECTEDURL_FIELD_NUMBER;
+ hash = (53 * hash) + getExpectedUrl().hashCode();
+ if (!internalGetHeaders().getMap().isEmpty()) {
+ hash = (37 * hash) + HEADERS_FIELD_NUMBER;
+ hash = (53 * hash) + internalGetHeaders().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.conformance.storage.v1.SigningV4Test parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.conformance.storage.v1.SigningV4Test parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.conformance.storage.v1.SigningV4Test parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.conformance.storage.v1.SigningV4Test parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.conformance.storage.v1.SigningV4Test parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.conformance.storage.v1.SigningV4Test parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.conformance.storage.v1.SigningV4Test parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.conformance.storage.v1.SigningV4Test parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.conformance.storage.v1.SigningV4Test parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.conformance.storage.v1.SigningV4Test parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.conformance.storage.v1.SigningV4Test parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.conformance.storage.v1.SigningV4Test parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.conformance.storage.v1.SigningV4Test prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /** Protobuf type {@code google.cloud.conformance.storage.v1.SigningV4Test} */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.conformance.storage.v1.SigningV4Test)
+ com.google.cloud.conformance.storage.v1.SigningV4TestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.conformance.storage.v1.Tests
+ .internal_static_google_cloud_conformance_storage_v1_SigningV4Test_descriptor;
+ }
+
+ @SuppressWarnings({"rawtypes"})
+ protected com.google.protobuf.MapField internalGetMapField(int number) {
+ switch (number) {
+ case 9:
+ return internalGetHeaders();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
+ @SuppressWarnings({"rawtypes"})
+ protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+ switch (number) {
+ case 9:
+ return internalGetMutableHeaders();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.conformance.storage.v1.Tests
+ .internal_static_google_cloud_conformance_storage_v1_SigningV4Test_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.conformance.storage.v1.SigningV4Test.class,
+ com.google.cloud.conformance.storage.v1.SigningV4Test.Builder.class);
+ }
+
+ // Construct using com.google.cloud.conformance.storage.v1.SigningV4Test.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ fileName_ = "";
+
+ description_ = "";
+
+ bucket_ = "";
+
+ object_ = "";
+
+ method_ = "";
+
+ expiration_ = 0L;
+
+ if (timestampBuilder_ == null) {
+ timestamp_ = null;
+ } else {
+ timestamp_ = null;
+ timestampBuilder_ = null;
+ }
+ expectedUrl_ = "";
+
+ internalGetMutableHeaders().clear();
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.conformance.storage.v1.Tests
+ .internal_static_google_cloud_conformance_storage_v1_SigningV4Test_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.conformance.storage.v1.SigningV4Test getDefaultInstanceForType() {
+ return com.google.cloud.conformance.storage.v1.SigningV4Test.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.conformance.storage.v1.SigningV4Test build() {
+ com.google.cloud.conformance.storage.v1.SigningV4Test result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.conformance.storage.v1.SigningV4Test buildPartial() {
+ com.google.cloud.conformance.storage.v1.SigningV4Test result =
+ new com.google.cloud.conformance.storage.v1.SigningV4Test(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ result.fileName_ = fileName_;
+ result.description_ = description_;
+ result.bucket_ = bucket_;
+ result.object_ = object_;
+ result.method_ = method_;
+ result.expiration_ = expiration_;
+ if (timestampBuilder_ == null) {
+ result.timestamp_ = timestamp_;
+ } else {
+ result.timestamp_ = timestampBuilder_.build();
+ }
+ result.expectedUrl_ = expectedUrl_;
+ result.headers_ = internalGetHeaders();
+ result.headers_.makeImmutable();
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.conformance.storage.v1.SigningV4Test) {
+ return mergeFrom((com.google.cloud.conformance.storage.v1.SigningV4Test) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.conformance.storage.v1.SigningV4Test other) {
+ if (other == com.google.cloud.conformance.storage.v1.SigningV4Test.getDefaultInstance())
+ return this;
+ if (!other.getFileName().isEmpty()) {
+ fileName_ = other.fileName_;
+ onChanged();
+ }
+ if (!other.getDescription().isEmpty()) {
+ description_ = other.description_;
+ onChanged();
+ }
+ if (!other.getBucket().isEmpty()) {
+ bucket_ = other.bucket_;
+ onChanged();
+ }
+ if (!other.getObject().isEmpty()) {
+ object_ = other.object_;
+ onChanged();
+ }
+ if (!other.getMethod().isEmpty()) {
+ method_ = other.method_;
+ onChanged();
+ }
+ if (other.getExpiration() != 0L) {
+ setExpiration(other.getExpiration());
+ }
+ if (other.hasTimestamp()) {
+ mergeTimestamp(other.getTimestamp());
+ }
+ if (!other.getExpectedUrl().isEmpty()) {
+ expectedUrl_ = other.expectedUrl_;
+ onChanged();
+ }
+ internalGetMutableHeaders().mergeFrom(other.internalGetHeaders());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.cloud.conformance.storage.v1.SigningV4Test parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.cloud.conformance.storage.v1.SigningV4Test) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object fileName_ = "";
+ /** string fileName = 1; */
+ public java.lang.String getFileName() {
+ java.lang.Object ref = fileName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ fileName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /** string fileName = 1; */
+ public com.google.protobuf.ByteString getFileNameBytes() {
+ java.lang.Object ref = fileName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ fileName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /** string fileName = 1; */
+ public Builder setFileName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ fileName_ = value;
+ onChanged();
+ return this;
+ }
+ /** string fileName = 1; */
+ public Builder clearFileName() {
+
+ fileName_ = getDefaultInstance().getFileName();
+ onChanged();
+ return this;
+ }
+ /** string fileName = 1; */
+ public Builder setFileNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ fileName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object description_ = "";
+ /** string description = 2; */
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ description_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /** string description = 2; */
+ public com.google.protobuf.ByteString getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /** string description = 2; */
+ public Builder setDescription(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ description_ = value;
+ onChanged();
+ return this;
+ }
+ /** string description = 2; */
+ public Builder clearDescription() {
+
+ description_ = getDefaultInstance().getDescription();
+ onChanged();
+ return this;
+ }
+ /** string description = 2; */
+ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ description_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object bucket_ = "";
+ /** string bucket = 3; */
+ public java.lang.String getBucket() {
+ java.lang.Object ref = bucket_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ bucket_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /** string bucket = 3; */
+ public com.google.protobuf.ByteString getBucketBytes() {
+ java.lang.Object ref = bucket_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ bucket_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /** string bucket = 3; */
+ public Builder setBucket(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ bucket_ = value;
+ onChanged();
+ return this;
+ }
+ /** string bucket = 3; */
+ public Builder clearBucket() {
+
+ bucket_ = getDefaultInstance().getBucket();
+ onChanged();
+ return this;
+ }
+ /** string bucket = 3; */
+ public Builder setBucketBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ bucket_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object object_ = "";
+ /** string object = 4; */
+ public java.lang.String getObject() {
+ java.lang.Object ref = object_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ object_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /** string object = 4; */
+ public com.google.protobuf.ByteString getObjectBytes() {
+ java.lang.Object ref = object_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ object_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /** string object = 4; */
+ public Builder setObject(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ object_ = value;
+ onChanged();
+ return this;
+ }
+ /** string object = 4; */
+ public Builder clearObject() {
+
+ object_ = getDefaultInstance().getObject();
+ onChanged();
+ return this;
+ }
+ /** string object = 4; */
+ public Builder setObjectBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ object_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object method_ = "";
+ /** string method = 5; */
+ public java.lang.String getMethod() {
+ java.lang.Object ref = method_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ method_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /** string method = 5; */
+ public com.google.protobuf.ByteString getMethodBytes() {
+ java.lang.Object ref = method_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ method_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /** string method = 5; */
+ public Builder setMethod(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ method_ = value;
+ onChanged();
+ return this;
+ }
+ /** string method = 5; */
+ public Builder clearMethod() {
+
+ method_ = getDefaultInstance().getMethod();
+ onChanged();
+ return this;
+ }
+ /** string method = 5; */
+ public Builder setMethodBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ method_ = value;
+ onChanged();
+ return this;
+ }
+
+ private long expiration_;
+ /** int64 expiration = 6; */
+ public long getExpiration() {
+ return expiration_;
+ }
+ /** int64 expiration = 6; */
+ public Builder setExpiration(long value) {
+
+ expiration_ = value;
+ onChanged();
+ return this;
+ }
+ /** int64 expiration = 6; */
+ public Builder clearExpiration() {
+
+ expiration_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Timestamp timestamp_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ timestampBuilder_;
+ /** .google.protobuf.Timestamp timestamp = 7; */
+ public boolean hasTimestamp() {
+ return timestampBuilder_ != null || timestamp_ != null;
+ }
+ /** .google.protobuf.Timestamp timestamp = 7; */
+ public com.google.protobuf.Timestamp getTimestamp() {
+ if (timestampBuilder_ == null) {
+ return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
+ } else {
+ return timestampBuilder_.getMessage();
+ }
+ }
+ /** .google.protobuf.Timestamp timestamp = 7; */
+ public Builder setTimestamp(com.google.protobuf.Timestamp value) {
+ if (timestampBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ timestamp_ = value;
+ onChanged();
+ } else {
+ timestampBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /** .google.protobuf.Timestamp timestamp = 7; */
+ public Builder setTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (timestampBuilder_ == null) {
+ timestamp_ = builderForValue.build();
+ onChanged();
+ } else {
+ timestampBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /** .google.protobuf.Timestamp timestamp = 7; */
+ public Builder mergeTimestamp(com.google.protobuf.Timestamp value) {
+ if (timestampBuilder_ == null) {
+ if (timestamp_ != null) {
+ timestamp_ =
+ com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial();
+ } else {
+ timestamp_ = value;
+ }
+ onChanged();
+ } else {
+ timestampBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /** .google.protobuf.Timestamp timestamp = 7; */
+ public Builder clearTimestamp() {
+ if (timestampBuilder_ == null) {
+ timestamp_ = null;
+ onChanged();
+ } else {
+ timestamp_ = null;
+ timestampBuilder_ = null;
+ }
+
+ return this;
+ }
+ /** .google.protobuf.Timestamp timestamp = 7; */
+ public com.google.protobuf.Timestamp.Builder getTimestampBuilder() {
+
+ onChanged();
+ return getTimestampFieldBuilder().getBuilder();
+ }
+ /** .google.protobuf.Timestamp timestamp = 7; */
+ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
+ if (timestampBuilder_ != null) {
+ return timestampBuilder_.getMessageOrBuilder();
+ } else {
+ return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
+ }
+ }
+ /** .google.protobuf.Timestamp timestamp = 7; */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getTimestampFieldBuilder() {
+ if (timestampBuilder_ == null) {
+ timestampBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getTimestamp(), getParentForChildren(), isClean());
+ timestamp_ = null;
+ }
+ return timestampBuilder_;
+ }
+
+ private java.lang.Object expectedUrl_ = "";
+ /** string expectedUrl = 8; */
+ public java.lang.String getExpectedUrl() {
+ java.lang.Object ref = expectedUrl_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ expectedUrl_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /** string expectedUrl = 8; */
+ public com.google.protobuf.ByteString getExpectedUrlBytes() {
+ java.lang.Object ref = expectedUrl_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ expectedUrl_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /** string expectedUrl = 8; */
+ public Builder setExpectedUrl(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ expectedUrl_ = value;
+ onChanged();
+ return this;
+ }
+ /** string expectedUrl = 8; */
+ public Builder clearExpectedUrl() {
+
+ expectedUrl_ = getDefaultInstance().getExpectedUrl();
+ onChanged();
+ return this;
+ }
+ /** string expectedUrl = 8; */
+ public Builder setExpectedUrlBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ expectedUrl_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.MapField headers_;
+
+ private com.google.protobuf.MapField internalGetHeaders() {
+ if (headers_ == null) {
+ return com.google.protobuf.MapField.emptyMapField(HeadersDefaultEntryHolder.defaultEntry);
+ }
+ return headers_;
+ }
+
+ private com.google.protobuf.MapField
+ internalGetMutableHeaders() {
+ onChanged();
+ ;
+ if (headers_ == null) {
+ headers_ = com.google.protobuf.MapField.newMapField(HeadersDefaultEntryHolder.defaultEntry);
+ }
+ if (!headers_.isMutable()) {
+ headers_ = headers_.copy();
+ }
+ return headers_;
+ }
+
+ public int getHeadersCount() {
+ return internalGetHeaders().getMap().size();
+ }
+ /** map<string, string> headers = 9; */
+ public boolean containsHeaders(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ return internalGetHeaders().getMap().containsKey(key);
+ }
+ /** Use {@link #getHeadersMap()} instead. */
+ @java.lang.Deprecated
+ public java.util.Map getHeaders() {
+ return getHeadersMap();
+ }
+ /** map<string, string> headers = 9; */
+ public java.util.Map getHeadersMap() {
+ return internalGetHeaders().getMap();
+ }
+ /** map<string, string> headers = 9; */
+ public java.lang.String getHeadersOrDefault(
+ java.lang.String key, java.lang.String defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map map = internalGetHeaders().getMap();
+ return map.containsKey(key) ? map.get(key) : defaultValue;
+ }
+ /** map<string, string> headers = 9; */
+ public java.lang.String getHeadersOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map map = internalGetHeaders().getMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return map.get(key);
+ }
+
+ public Builder clearHeaders() {
+ internalGetMutableHeaders().getMutableMap().clear();
+ return this;
+ }
+ /** map<string, string> headers = 9; */
+ public Builder removeHeaders(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableHeaders().getMutableMap().remove(key);
+ return this;
+ }
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map getMutableHeaders() {
+ return internalGetMutableHeaders().getMutableMap();
+ }
+ /** map<string, string> headers = 9; */
+ public Builder putHeaders(java.lang.String key, java.lang.String value) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ if (value == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableHeaders().getMutableMap().put(key, value);
+ return this;
+ }
+ /** map<string, string> headers = 9; */
+ public Builder putAllHeaders(java.util.Map values) {
+ internalGetMutableHeaders().getMutableMap().putAll(values);
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.conformance.storage.v1.SigningV4Test)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.conformance.storage.v1.SigningV4Test)
+ private static final com.google.cloud.conformance.storage.v1.SigningV4Test DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.conformance.storage.v1.SigningV4Test();
+ }
+
+ public static com.google.cloud.conformance.storage.v1.SigningV4Test getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public SigningV4Test parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new SigningV4Test(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.conformance.storage.v1.SigningV4Test getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/java/com/google/cloud/conformance/storage/v1/SigningV4TestOrBuilder.java b/google-cloud-testing/google-cloud-conformance-tests/src/main/java/com/google/cloud/conformance/storage/v1/SigningV4TestOrBuilder.java
new file mode 100644
index 000000000000..cf9eb9af41b7
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/java/com/google/cloud/conformance/storage/v1/SigningV4TestOrBuilder.java
@@ -0,0 +1,79 @@
+/*
+ * Copyright 2019 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/conformance/storage/v1/tests.proto
+
+package com.google.cloud.conformance.storage.v1;
+
+public interface SigningV4TestOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.conformance.storage.v1.SigningV4Test)
+ com.google.protobuf.MessageOrBuilder {
+
+ /** string fileName = 1; */
+ java.lang.String getFileName();
+ /** string fileName = 1; */
+ com.google.protobuf.ByteString getFileNameBytes();
+
+ /** string description = 2; */
+ java.lang.String getDescription();
+ /** string description = 2; */
+ com.google.protobuf.ByteString getDescriptionBytes();
+
+ /** string bucket = 3; */
+ java.lang.String getBucket();
+ /** string bucket = 3; */
+ com.google.protobuf.ByteString getBucketBytes();
+
+ /** string object = 4; */
+ java.lang.String getObject();
+ /** string object = 4; */
+ com.google.protobuf.ByteString getObjectBytes();
+
+ /** string method = 5; */
+ java.lang.String getMethod();
+ /** string method = 5; */
+ com.google.protobuf.ByteString getMethodBytes();
+
+ /** int64 expiration = 6; */
+ long getExpiration();
+
+ /** .google.protobuf.Timestamp timestamp = 7; */
+ boolean hasTimestamp();
+ /** .google.protobuf.Timestamp timestamp = 7; */
+ com.google.protobuf.Timestamp getTimestamp();
+ /** .google.protobuf.Timestamp timestamp = 7; */
+ com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder();
+
+ /** string expectedUrl = 8; */
+ java.lang.String getExpectedUrl();
+ /** string expectedUrl = 8; */
+ com.google.protobuf.ByteString getExpectedUrlBytes();
+
+ /** map<string, string> headers = 9; */
+ int getHeadersCount();
+ /** map<string, string> headers = 9; */
+ boolean containsHeaders(java.lang.String key);
+ /** Use {@link #getHeadersMap()} instead. */
+ @java.lang.Deprecated
+ java.util.Map getHeaders();
+ /** map<string, string> headers = 9; */
+ java.util.Map getHeadersMap();
+ /** map<string, string> headers = 9; */
+ java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.String defaultValue);
+ /** map<string, string> headers = 9; */
+ java.lang.String getHeadersOrThrow(java.lang.String key);
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/java/com/google/cloud/conformance/storage/v1/TestFile.java b/google-cloud-testing/google-cloud-conformance-tests/src/main/java/com/google/cloud/conformance/storage/v1/TestFile.java
new file mode 100644
index 000000000000..3fe7a6a0d015
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/java/com/google/cloud/conformance/storage/v1/TestFile.java
@@ -0,0 +1,821 @@
+/*
+ * Copyright 2019 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/conformance/storage/v1/tests.proto
+
+package com.google.cloud.conformance.storage.v1;
+
+/** Protobuf type {@code google.cloud.conformance.storage.v1.TestFile} */
+public final class TestFile extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.conformance.storage.v1.TestFile)
+ TestFileOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use TestFile.newBuilder() to construct.
+ private TestFile(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private TestFile() {
+ signingV4Tests_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private TestFile(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ signingV4Tests_ =
+ new java.util.ArrayList<
+ com.google.cloud.conformance.storage.v1.SigningV4Test>();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ signingV4Tests_.add(
+ input.readMessage(
+ com.google.cloud.conformance.storage.v1.SigningV4Test.parser(),
+ extensionRegistry));
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ signingV4Tests_ = java.util.Collections.unmodifiableList(signingV4Tests_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.conformance.storage.v1.Tests
+ .internal_static_google_cloud_conformance_storage_v1_TestFile_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.conformance.storage.v1.Tests
+ .internal_static_google_cloud_conformance_storage_v1_TestFile_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.conformance.storage.v1.TestFile.class,
+ com.google.cloud.conformance.storage.v1.TestFile.Builder.class);
+ }
+
+ public static final int SIGNING_V4_TESTS_FIELD_NUMBER = 1;
+ private java.util.List signingV4Tests_;
+ /**
+ * repeated .google.cloud.conformance.storage.v1.SigningV4Test signing_v4_tests = 1;
+ */
+ public java.util.List
+ getSigningV4TestsList() {
+ return signingV4Tests_;
+ }
+ /**
+ * repeated .google.cloud.conformance.storage.v1.SigningV4Test signing_v4_tests = 1;
+ */
+ public java.util.List extends com.google.cloud.conformance.storage.v1.SigningV4TestOrBuilder>
+ getSigningV4TestsOrBuilderList() {
+ return signingV4Tests_;
+ }
+ /**
+ * repeated .google.cloud.conformance.storage.v1.SigningV4Test signing_v4_tests = 1;
+ */
+ public int getSigningV4TestsCount() {
+ return signingV4Tests_.size();
+ }
+ /**
+ * repeated .google.cloud.conformance.storage.v1.SigningV4Test signing_v4_tests = 1;
+ */
+ public com.google.cloud.conformance.storage.v1.SigningV4Test getSigningV4Tests(int index) {
+ return signingV4Tests_.get(index);
+ }
+ /**
+ * repeated .google.cloud.conformance.storage.v1.SigningV4Test signing_v4_tests = 1;
+ */
+ public com.google.cloud.conformance.storage.v1.SigningV4TestOrBuilder getSigningV4TestsOrBuilder(
+ int index) {
+ return signingV4Tests_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < signingV4Tests_.size(); i++) {
+ output.writeMessage(1, signingV4Tests_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < signingV4Tests_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, signingV4Tests_.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 com.google.cloud.conformance.storage.v1.TestFile)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.conformance.storage.v1.TestFile other =
+ (com.google.cloud.conformance.storage.v1.TestFile) obj;
+
+ if (!getSigningV4TestsList().equals(other.getSigningV4TestsList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getSigningV4TestsCount() > 0) {
+ hash = (37 * hash) + SIGNING_V4_TESTS_FIELD_NUMBER;
+ hash = (53 * hash) + getSigningV4TestsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.conformance.storage.v1.TestFile parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.conformance.storage.v1.TestFile parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.conformance.storage.v1.TestFile parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.conformance.storage.v1.TestFile parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.conformance.storage.v1.TestFile parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.conformance.storage.v1.TestFile parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.conformance.storage.v1.TestFile parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.conformance.storage.v1.TestFile parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.conformance.storage.v1.TestFile parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.conformance.storage.v1.TestFile parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.conformance.storage.v1.TestFile parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.conformance.storage.v1.TestFile parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.conformance.storage.v1.TestFile prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /** Protobuf type {@code google.cloud.conformance.storage.v1.TestFile} */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.conformance.storage.v1.TestFile)
+ com.google.cloud.conformance.storage.v1.TestFileOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.conformance.storage.v1.Tests
+ .internal_static_google_cloud_conformance_storage_v1_TestFile_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.conformance.storage.v1.Tests
+ .internal_static_google_cloud_conformance_storage_v1_TestFile_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.conformance.storage.v1.TestFile.class,
+ com.google.cloud.conformance.storage.v1.TestFile.Builder.class);
+ }
+
+ // Construct using com.google.cloud.conformance.storage.v1.TestFile.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getSigningV4TestsFieldBuilder();
+ }
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ if (signingV4TestsBuilder_ == null) {
+ signingV4Tests_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ signingV4TestsBuilder_.clear();
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.conformance.storage.v1.Tests
+ .internal_static_google_cloud_conformance_storage_v1_TestFile_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.conformance.storage.v1.TestFile getDefaultInstanceForType() {
+ return com.google.cloud.conformance.storage.v1.TestFile.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.conformance.storage.v1.TestFile build() {
+ com.google.cloud.conformance.storage.v1.TestFile result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.conformance.storage.v1.TestFile buildPartial() {
+ com.google.cloud.conformance.storage.v1.TestFile result =
+ new com.google.cloud.conformance.storage.v1.TestFile(this);
+ int from_bitField0_ = bitField0_;
+ if (signingV4TestsBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ signingV4Tests_ = java.util.Collections.unmodifiableList(signingV4Tests_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.signingV4Tests_ = signingV4Tests_;
+ } else {
+ result.signingV4Tests_ = signingV4TestsBuilder_.build();
+ }
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.conformance.storage.v1.TestFile) {
+ return mergeFrom((com.google.cloud.conformance.storage.v1.TestFile) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.conformance.storage.v1.TestFile other) {
+ if (other == com.google.cloud.conformance.storage.v1.TestFile.getDefaultInstance())
+ return this;
+ if (signingV4TestsBuilder_ == null) {
+ if (!other.signingV4Tests_.isEmpty()) {
+ if (signingV4Tests_.isEmpty()) {
+ signingV4Tests_ = other.signingV4Tests_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureSigningV4TestsIsMutable();
+ signingV4Tests_.addAll(other.signingV4Tests_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.signingV4Tests_.isEmpty()) {
+ if (signingV4TestsBuilder_.isEmpty()) {
+ signingV4TestsBuilder_.dispose();
+ signingV4TestsBuilder_ = null;
+ signingV4Tests_ = other.signingV4Tests_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ signingV4TestsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getSigningV4TestsFieldBuilder()
+ : null;
+ } else {
+ signingV4TestsBuilder_.addAllMessages(other.signingV4Tests_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.cloud.conformance.storage.v1.TestFile parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.cloud.conformance.storage.v1.TestFile) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.util.List signingV4Tests_ =
+ java.util.Collections.emptyList();
+
+ private void ensureSigningV4TestsIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ signingV4Tests_ =
+ new java.util.ArrayList(
+ signingV4Tests_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.conformance.storage.v1.SigningV4Test,
+ com.google.cloud.conformance.storage.v1.SigningV4Test.Builder,
+ com.google.cloud.conformance.storage.v1.SigningV4TestOrBuilder>
+ signingV4TestsBuilder_;
+
+ /**
+ * repeated .google.cloud.conformance.storage.v1.SigningV4Test signing_v4_tests = 1;
+ *
+ */
+ public java.util.List
+ getSigningV4TestsList() {
+ if (signingV4TestsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(signingV4Tests_);
+ } else {
+ return signingV4TestsBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .google.cloud.conformance.storage.v1.SigningV4Test signing_v4_tests = 1;
+ *
+ */
+ public int getSigningV4TestsCount() {
+ if (signingV4TestsBuilder_ == null) {
+ return signingV4Tests_.size();
+ } else {
+ return signingV4TestsBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .google.cloud.conformance.storage.v1.SigningV4Test signing_v4_tests = 1;
+ *
+ */
+ public com.google.cloud.conformance.storage.v1.SigningV4Test getSigningV4Tests(int index) {
+ if (signingV4TestsBuilder_ == null) {
+ return signingV4Tests_.get(index);
+ } else {
+ return signingV4TestsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .google.cloud.conformance.storage.v1.SigningV4Test signing_v4_tests = 1;
+ *
+ */
+ public Builder setSigningV4Tests(
+ int index, com.google.cloud.conformance.storage.v1.SigningV4Test value) {
+ if (signingV4TestsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSigningV4TestsIsMutable();
+ signingV4Tests_.set(index, value);
+ onChanged();
+ } else {
+ signingV4TestsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.cloud.conformance.storage.v1.SigningV4Test signing_v4_tests = 1;
+ *
+ */
+ public Builder setSigningV4Tests(
+ int index, com.google.cloud.conformance.storage.v1.SigningV4Test.Builder builderForValue) {
+ if (signingV4TestsBuilder_ == null) {
+ ensureSigningV4TestsIsMutable();
+ signingV4Tests_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ signingV4TestsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.cloud.conformance.storage.v1.SigningV4Test signing_v4_tests = 1;
+ *
+ */
+ public Builder addSigningV4Tests(com.google.cloud.conformance.storage.v1.SigningV4Test value) {
+ if (signingV4TestsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSigningV4TestsIsMutable();
+ signingV4Tests_.add(value);
+ onChanged();
+ } else {
+ signingV4TestsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.cloud.conformance.storage.v1.SigningV4Test signing_v4_tests = 1;
+ *
+ */
+ public Builder addSigningV4Tests(
+ int index, com.google.cloud.conformance.storage.v1.SigningV4Test value) {
+ if (signingV4TestsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSigningV4TestsIsMutable();
+ signingV4Tests_.add(index, value);
+ onChanged();
+ } else {
+ signingV4TestsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.cloud.conformance.storage.v1.SigningV4Test signing_v4_tests = 1;
+ *
+ */
+ public Builder addSigningV4Tests(
+ com.google.cloud.conformance.storage.v1.SigningV4Test.Builder builderForValue) {
+ if (signingV4TestsBuilder_ == null) {
+ ensureSigningV4TestsIsMutable();
+ signingV4Tests_.add(builderForValue.build());
+ onChanged();
+ } else {
+ signingV4TestsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.cloud.conformance.storage.v1.SigningV4Test signing_v4_tests = 1;
+ *
+ */
+ public Builder addSigningV4Tests(
+ int index, com.google.cloud.conformance.storage.v1.SigningV4Test.Builder builderForValue) {
+ if (signingV4TestsBuilder_ == null) {
+ ensureSigningV4TestsIsMutable();
+ signingV4Tests_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ signingV4TestsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.cloud.conformance.storage.v1.SigningV4Test signing_v4_tests = 1;
+ *
+ */
+ public Builder addAllSigningV4Tests(
+ java.lang.Iterable extends com.google.cloud.conformance.storage.v1.SigningV4Test>
+ values) {
+ if (signingV4TestsBuilder_ == null) {
+ ensureSigningV4TestsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, signingV4Tests_);
+ onChanged();
+ } else {
+ signingV4TestsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.cloud.conformance.storage.v1.SigningV4Test signing_v4_tests = 1;
+ *
+ */
+ public Builder clearSigningV4Tests() {
+ if (signingV4TestsBuilder_ == null) {
+ signingV4Tests_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ signingV4TestsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .google.cloud.conformance.storage.v1.SigningV4Test signing_v4_tests = 1;
+ *
+ */
+ public Builder removeSigningV4Tests(int index) {
+ if (signingV4TestsBuilder_ == null) {
+ ensureSigningV4TestsIsMutable();
+ signingV4Tests_.remove(index);
+ onChanged();
+ } else {
+ signingV4TestsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.cloud.conformance.storage.v1.SigningV4Test signing_v4_tests = 1;
+ *
+ */
+ public com.google.cloud.conformance.storage.v1.SigningV4Test.Builder getSigningV4TestsBuilder(
+ int index) {
+ return getSigningV4TestsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .google.cloud.conformance.storage.v1.SigningV4Test signing_v4_tests = 1;
+ *
+ */
+ public com.google.cloud.conformance.storage.v1.SigningV4TestOrBuilder
+ getSigningV4TestsOrBuilder(int index) {
+ if (signingV4TestsBuilder_ == null) {
+ return signingV4Tests_.get(index);
+ } else {
+ return signingV4TestsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .google.cloud.conformance.storage.v1.SigningV4Test signing_v4_tests = 1;
+ *
+ */
+ public java.util.List extends com.google.cloud.conformance.storage.v1.SigningV4TestOrBuilder>
+ getSigningV4TestsOrBuilderList() {
+ if (signingV4TestsBuilder_ != null) {
+ return signingV4TestsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(signingV4Tests_);
+ }
+ }
+ /**
+ * repeated .google.cloud.conformance.storage.v1.SigningV4Test signing_v4_tests = 1;
+ *
+ */
+ public com.google.cloud.conformance.storage.v1.SigningV4Test.Builder
+ addSigningV4TestsBuilder() {
+ return getSigningV4TestsFieldBuilder()
+ .addBuilder(com.google.cloud.conformance.storage.v1.SigningV4Test.getDefaultInstance());
+ }
+ /**
+ * repeated .google.cloud.conformance.storage.v1.SigningV4Test signing_v4_tests = 1;
+ *
+ */
+ public com.google.cloud.conformance.storage.v1.SigningV4Test.Builder addSigningV4TestsBuilder(
+ int index) {
+ return getSigningV4TestsFieldBuilder()
+ .addBuilder(
+ index, com.google.cloud.conformance.storage.v1.SigningV4Test.getDefaultInstance());
+ }
+ /**
+ * repeated .google.cloud.conformance.storage.v1.SigningV4Test signing_v4_tests = 1;
+ *
+ */
+ public java.util.List
+ getSigningV4TestsBuilderList() {
+ return getSigningV4TestsFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.conformance.storage.v1.SigningV4Test,
+ com.google.cloud.conformance.storage.v1.SigningV4Test.Builder,
+ com.google.cloud.conformance.storage.v1.SigningV4TestOrBuilder>
+ getSigningV4TestsFieldBuilder() {
+ if (signingV4TestsBuilder_ == null) {
+ signingV4TestsBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.conformance.storage.v1.SigningV4Test,
+ com.google.cloud.conformance.storage.v1.SigningV4Test.Builder,
+ com.google.cloud.conformance.storage.v1.SigningV4TestOrBuilder>(
+ signingV4Tests_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ signingV4Tests_ = null;
+ }
+ return signingV4TestsBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.conformance.storage.v1.TestFile)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.conformance.storage.v1.TestFile)
+ private static final com.google.cloud.conformance.storage.v1.TestFile DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.conformance.storage.v1.TestFile();
+ }
+
+ public static com.google.cloud.conformance.storage.v1.TestFile getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public TestFile parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new TestFile(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.conformance.storage.v1.TestFile getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/java/com/google/cloud/conformance/storage/v1/TestFileOrBuilder.java b/google-cloud-testing/google-cloud-conformance-tests/src/main/java/com/google/cloud/conformance/storage/v1/TestFileOrBuilder.java
new file mode 100644
index 000000000000..b70f8b614719
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/java/com/google/cloud/conformance/storage/v1/TestFileOrBuilder.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2019 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/conformance/storage/v1/tests.proto
+
+package com.google.cloud.conformance.storage.v1;
+
+public interface TestFileOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.conformance.storage.v1.TestFile)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated .google.cloud.conformance.storage.v1.SigningV4Test signing_v4_tests = 1;
+ */
+ java.util.List getSigningV4TestsList();
+ /**
+ * repeated .google.cloud.conformance.storage.v1.SigningV4Test signing_v4_tests = 1;
+ */
+ com.google.cloud.conformance.storage.v1.SigningV4Test getSigningV4Tests(int index);
+ /**
+ * repeated .google.cloud.conformance.storage.v1.SigningV4Test signing_v4_tests = 1;
+ */
+ int getSigningV4TestsCount();
+ /**
+ * repeated .google.cloud.conformance.storage.v1.SigningV4Test signing_v4_tests = 1;
+ */
+ java.util.List extends com.google.cloud.conformance.storage.v1.SigningV4TestOrBuilder>
+ getSigningV4TestsOrBuilderList();
+ /**
+ * repeated .google.cloud.conformance.storage.v1.SigningV4Test signing_v4_tests = 1;
+ */
+ com.google.cloud.conformance.storage.v1.SigningV4TestOrBuilder getSigningV4TestsOrBuilder(
+ int index);
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/java/com/google/cloud/conformance/storage/v1/Tests.java b/google-cloud-testing/google-cloud-conformance-tests/src/main/java/com/google/cloud/conformance/storage/v1/Tests.java
new file mode 100644
index 000000000000..350f04797a7d
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/java/com/google/cloud/conformance/storage/v1/Tests.java
@@ -0,0 +1,120 @@
+/*
+ * Copyright 2019 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/conformance/storage/v1/tests.proto
+
+package com.google.cloud.conformance.storage.v1;
+
+public final class Tests {
+ private Tests() {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_conformance_storage_v1_TestFile_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_conformance_storage_v1_TestFile_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_conformance_storage_v1_SigningV4Test_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_conformance_storage_v1_SigningV4Test_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_conformance_storage_v1_SigningV4Test_HeadersEntry_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_conformance_storage_v1_SigningV4Test_HeadersEntry_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n/google/cloud/conformance/storage/v1/te"
+ + "sts.proto\022#google.cloud.conformance.stor"
+ + "age.v1\032\037google/protobuf/timestamp.proto\""
+ + "X\n\010TestFile\022L\n\020signing_v4_tests\030\001 \003(\01322."
+ + "google.cloud.conformance.storage.v1.Sign"
+ + "ingV4Test\"\300\002\n\rSigningV4Test\022\020\n\010fileName\030"
+ + "\001 \001(\t\022\023\n\013description\030\002 \001(\t\022\016\n\006bucket\030\003 \001"
+ + "(\t\022\016\n\006object\030\004 \001(\t\022\016\n\006method\030\005 \001(\t\022\022\n\nex"
+ + "piration\030\006 \001(\003\022-\n\ttimestamp\030\007 \001(\0132\032.goog"
+ + "le.protobuf.Timestamp\022\023\n\013expectedUrl\030\010 \001"
+ + "(\t\022P\n\007headers\030\t \003(\0132?.google.cloud.confo"
+ + "rmance.storage.v1.SigningV4Test.HeadersE"
+ + "ntry\032.\n\014HeadersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val"
+ + "ue\030\002 \001(\t:\0028\001BW\n\'com.google.cloud.conform"
+ + "ance.storage.v1P\001\252\002)Google.Cloud.Storage"
+ + ".V1.Tests.Conformanceb\006proto3"
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+ new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
+ public com.google.protobuf.ExtensionRegistry assignDescriptors(
+ com.google.protobuf.Descriptors.FileDescriptor root) {
+ descriptor = root;
+ return null;
+ }
+ };
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.protobuf.TimestampProto.getDescriptor(),
+ },
+ assigner);
+ internal_static_google_cloud_conformance_storage_v1_TestFile_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_google_cloud_conformance_storage_v1_TestFile_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_conformance_storage_v1_TestFile_descriptor,
+ new java.lang.String[] {
+ "SigningV4Tests",
+ });
+ internal_static_google_cloud_conformance_storage_v1_SigningV4Test_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_google_cloud_conformance_storage_v1_SigningV4Test_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_conformance_storage_v1_SigningV4Test_descriptor,
+ new java.lang.String[] {
+ "FileName",
+ "Description",
+ "Bucket",
+ "Object",
+ "Method",
+ "Expiration",
+ "Timestamp",
+ "ExpectedUrl",
+ "Headers",
+ });
+ internal_static_google_cloud_conformance_storage_v1_SigningV4Test_HeadersEntry_descriptor =
+ internal_static_google_cloud_conformance_storage_v1_SigningV4Test_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_cloud_conformance_storage_v1_SigningV4Test_HeadersEntry_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_conformance_storage_v1_SigningV4Test_HeadersEntry_descriptor,
+ new java.lang.String[] {
+ "Key", "Value",
+ });
+ com.google.protobuf.TimestampProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/proto/google/cloud/conformance/bigtable/v2/tests.proto b/google-cloud-testing/google-cloud-conformance-tests/src/main/proto/google/cloud/conformance/bigtable/v2/tests.proto
new file mode 100644
index 000000000000..694f27625eeb
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/proto/google/cloud/conformance/bigtable/v2/tests.proto
@@ -0,0 +1,47 @@
+// Copyright 2019, Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.conformance.bigtable.v2;
+
+import "google/bigtable/v2/bigtable.proto";
+
+option csharp_namespace = "Google.Cloud.Bigtable.V2.Tests.Conformance";
+option java_outer_classname = "TestDefinition";
+option java_package = "com.google.cloud.conformance.bigtable.v2";
+
+message TestFile {
+ repeated ReadRowsTest read_rows_tests = 1;
+}
+
+message ReadRowsTest {
+
+ // Expected results of reading the row.
+ // Only the last result can be an error.
+ message Result {
+ string row_key = 1;
+ string family_name = 2;
+ string qualifier = 3;
+ int64 timestamp_micros = 4;
+ string value = 5;
+ string label = 6;
+ bool error = 7;
+ }
+
+ string description = 1;
+ repeated google.bigtable.v2.ReadRowsResponse.CellChunk chunks = 2;
+ repeated Result results = 3;
+
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/proto/google/cloud/conformance/storage/v1/tests.proto b/google-cloud-testing/google-cloud-conformance-tests/src/main/proto/google/cloud/conformance/storage/v1/tests.proto
new file mode 100644
index 000000000000..790bcce8b3fd
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/proto/google/cloud/conformance/storage/v1/tests.proto
@@ -0,0 +1,39 @@
+// Copyright 2019, Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.conformance.storage.v1;
+
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.Storage.V1.Tests.Conformance";
+option java_package = "com.google.cloud.conformance.storage.v1";
+option java_multiple_files = true;
+
+message TestFile {
+ repeated SigningV4Test signing_v4_tests = 1;
+}
+
+message SigningV4Test {
+ string fileName = 1;
+ string description = 2;
+ string bucket = 3;
+ string object = 4;
+ string method = 5;
+ int64 expiration = 6;
+ google.protobuf.Timestamp timestamp = 7;
+ string expectedUrl = 8;
+ map headers = 9;
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/bigtable/v2/readrows.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/bigtable/v2/readrows.json
new file mode 100644
index 000000000000..44d2da2e67a0
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/bigtable/v2/readrows.json
@@ -0,0 +1,1665 @@
+{
+ "readRowsTests": [
+ {
+ "description": "invalid - no commit",
+ "chunks": [
+ {
+ "rowKey": "Uks=",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFM",
+ "commitRow": false
+ }
+ ],
+ "results": [
+ {
+ "error": true
+ }
+ ]
+ },
+ {
+ "description": "invalid - no cell key before commit",
+ "chunks": [
+ {
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "error": true
+ }
+ ]
+ },
+ {
+ "description": "invalid - no cell key before value",
+ "chunks": [
+ {
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFM",
+ "commitRow": false
+ }
+ ],
+ "results": [
+ {
+ "error": true
+ }
+ ]
+ },
+ {
+ "description": "invalid - new col family must specify qualifier",
+ "chunks": [
+ {
+ "rowKey": "Uks=",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "99",
+ "value": "dmFsdWUtVkFMXzE=",
+ "commitRow": false
+ },
+ {
+ "familyName": "B",
+ "timestampMicros": "98",
+ "value": "dmFsdWUtVkFMXzI=",
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "error": true
+ }
+ ]
+ },
+ {
+ "description": "bare commit implies ts=0",
+ "chunks": [
+ {
+ "rowKey": "Uks=",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFM",
+ "commitRow": false
+ },
+ {
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "rowKey": "RK",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "100",
+ "value": "value-VAL"
+ },
+ {
+ "rowKey": "RK",
+ "familyName": "A",
+ "qualifier": "C"
+ }
+ ]
+ },
+ {
+ "description": "simple row with timestamp",
+ "chunks": [
+ {
+ "rowKey": "Uks=",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFM",
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "rowKey": "RK",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "100",
+ "value": "value-VAL"
+ }
+ ]
+ },
+ {
+ "description": "missing timestamp, implied ts=0",
+ "chunks": [
+ {
+ "rowKey": "Uks=",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "value": "dmFsdWUtVkFM",
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "rowKey": "RK",
+ "familyName": "A",
+ "qualifier": "C",
+ "value": "value-VAL"
+ }
+ ]
+ },
+ {
+ "description": "empty cell value",
+ "chunks": [
+ {
+ "rowKey": "Uks=",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "rowKey": "RK",
+ "familyName": "A",
+ "qualifier": "C"
+ }
+ ]
+ },
+ {
+ "description": "two unsplit cells",
+ "chunks": [
+ {
+ "rowKey": "Uks=",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "99",
+ "value": "dmFsdWUtVkFMXzE=",
+ "commitRow": false
+ },
+ {
+ "timestampMicros": "98",
+ "value": "dmFsdWUtVkFMXzI=",
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "rowKey": "RK",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "99",
+ "value": "value-VAL_1"
+ },
+ {
+ "rowKey": "RK",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "98",
+ "value": "value-VAL_2"
+ }
+ ]
+ },
+ {
+ "description": "two qualifiers",
+ "chunks": [
+ {
+ "rowKey": "Uks=",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "99",
+ "value": "dmFsdWUtVkFMXzE=",
+ "commitRow": false
+ },
+ {
+ "qualifier": "RA==",
+ "timestampMicros": "98",
+ "value": "dmFsdWUtVkFMXzI=",
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "rowKey": "RK",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "99",
+ "value": "value-VAL_1"
+ },
+ {
+ "rowKey": "RK",
+ "familyName": "A",
+ "qualifier": "D",
+ "timestampMicros": "98",
+ "value": "value-VAL_2"
+ }
+ ]
+ },
+ {
+ "description": "two families",
+ "chunks": [
+ {
+ "rowKey": "Uks=",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "99",
+ "value": "dmFsdWUtVkFMXzE=",
+ "commitRow": false
+ },
+ {
+ "familyName": "B",
+ "qualifier": "RQ==",
+ "timestampMicros": "98",
+ "value": "dmFsdWUtVkFMXzI=",
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "rowKey": "RK",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "99",
+ "value": "value-VAL_1"
+ },
+ {
+ "rowKey": "RK",
+ "familyName": "B",
+ "qualifier": "E",
+ "timestampMicros": "98",
+ "value": "value-VAL_2"
+ }
+ ]
+ },
+ {
+ "description": "with labels",
+ "chunks": [
+ {
+ "rowKey": "Uks=",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "99",
+ "labels": [
+ "L_1"
+ ],
+ "value": "dmFsdWUtVkFMXzE=",
+ "commitRow": false
+ },
+ {
+ "timestampMicros": "98",
+ "labels": [
+ "L_2"
+ ],
+ "value": "dmFsdWUtVkFMXzI=",
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "rowKey": "RK",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "99",
+ "value": "value-VAL_1",
+ "label": "L_1"
+ },
+ {
+ "rowKey": "RK",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "98",
+ "value": "value-VAL_2",
+ "label": "L_2"
+ }
+ ]
+ },
+ {
+ "description": "split cell, bare commit",
+ "chunks": [
+ {
+ "rowKey": "Uks=",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dg==",
+ "valueSize": 9,
+ "commitRow": false
+ },
+ {
+ "value": "YWx1ZS1WQUw=",
+ "commitRow": false
+ },
+ {
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "rowKey": "RK",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "100",
+ "value": "value-VAL"
+ },
+ {
+ "rowKey": "RK",
+ "familyName": "A",
+ "qualifier": "C"
+ }
+ ]
+ },
+ {
+ "description": "split cell",
+ "chunks": [
+ {
+ "rowKey": "Uks=",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dg==",
+ "valueSize": 9,
+ "commitRow": false
+ },
+ {
+ "value": "YWx1ZS1WQUw=",
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "rowKey": "RK",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "100",
+ "value": "value-VAL"
+ }
+ ]
+ },
+ {
+ "description": "split four ways",
+ "chunks": [
+ {
+ "rowKey": "Uks=",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "labels": [
+ "L"
+ ],
+ "value": "dg==",
+ "valueSize": 9,
+ "commitRow": false
+ },
+ {
+ "value": "YQ==",
+ "valueSize": 9,
+ "commitRow": false
+ },
+ {
+ "value": "bA==",
+ "valueSize": 9,
+ "commitRow": false
+ },
+ {
+ "value": "dWUtVkFM",
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "rowKey": "RK",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "100",
+ "value": "value-VAL",
+ "label": "L"
+ }
+ ]
+ },
+ {
+ "description": "two split cells",
+ "chunks": [
+ {
+ "rowKey": "Uks=",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "99",
+ "value": "dg==",
+ "valueSize": 11,
+ "commitRow": false
+ },
+ {
+ "value": "YWx1ZS1WQUxfMQ==",
+ "commitRow": false
+ },
+ {
+ "timestampMicros": "98",
+ "value": "dg==",
+ "valueSize": 11,
+ "commitRow": false
+ },
+ {
+ "value": "YWx1ZS1WQUxfMg==",
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "rowKey": "RK",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "99",
+ "value": "value-VAL_1"
+ },
+ {
+ "rowKey": "RK",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "98",
+ "value": "value-VAL_2"
+ }
+ ]
+ },
+ {
+ "description": "multi-qualifier splits",
+ "chunks": [
+ {
+ "rowKey": "Uks=",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "99",
+ "value": "dg==",
+ "valueSize": 11,
+ "commitRow": false
+ },
+ {
+ "value": "YWx1ZS1WQUxfMQ==",
+ "commitRow": false
+ },
+ {
+ "qualifier": "RA==",
+ "timestampMicros": "98",
+ "value": "dg==",
+ "valueSize": 11,
+ "commitRow": false
+ },
+ {
+ "value": "YWx1ZS1WQUxfMg==",
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "rowKey": "RK",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "99",
+ "value": "value-VAL_1"
+ },
+ {
+ "rowKey": "RK",
+ "familyName": "A",
+ "qualifier": "D",
+ "timestampMicros": "98",
+ "value": "value-VAL_2"
+ }
+ ]
+ },
+ {
+ "description": "multi-qualifier multi-split",
+ "chunks": [
+ {
+ "rowKey": "Uks=",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "99",
+ "value": "dg==",
+ "valueSize": 11,
+ "commitRow": false
+ },
+ {
+ "value": "YQ==",
+ "valueSize": 11,
+ "commitRow": false
+ },
+ {
+ "value": "bHVlLVZBTF8x",
+ "commitRow": false
+ },
+ {
+ "qualifier": "RA==",
+ "timestampMicros": "98",
+ "value": "dg==",
+ "valueSize": 11,
+ "commitRow": false
+ },
+ {
+ "value": "YQ==",
+ "valueSize": 11,
+ "commitRow": false
+ },
+ {
+ "value": "bHVlLVZBTF8y",
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "rowKey": "RK",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "99",
+ "value": "value-VAL_1"
+ },
+ {
+ "rowKey": "RK",
+ "familyName": "A",
+ "qualifier": "D",
+ "timestampMicros": "98",
+ "value": "value-VAL_2"
+ }
+ ]
+ },
+ {
+ "description": "multi-family split",
+ "chunks": [
+ {
+ "rowKey": "Uks=",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "99",
+ "value": "dg==",
+ "valueSize": 11,
+ "commitRow": false
+ },
+ {
+ "value": "YWx1ZS1WQUxfMQ==",
+ "commitRow": false
+ },
+ {
+ "familyName": "B",
+ "qualifier": "RQ==",
+ "timestampMicros": "98",
+ "value": "dg==",
+ "valueSize": 11,
+ "commitRow": false
+ },
+ {
+ "value": "YWx1ZS1WQUxfMg==",
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "rowKey": "RK",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "99",
+ "value": "value-VAL_1"
+ },
+ {
+ "rowKey": "RK",
+ "familyName": "B",
+ "qualifier": "E",
+ "timestampMicros": "98",
+ "value": "value-VAL_2"
+ }
+ ]
+ },
+ {
+ "description": "invalid - no commit between rows",
+ "chunks": [
+ {
+ "rowKey": "UktfMQ==",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFM",
+ "commitRow": false
+ },
+ {
+ "rowKey": "UktfMg==",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFM",
+ "commitRow": false
+ }
+ ],
+ "results": [
+ {
+ "error": true
+ }
+ ]
+ },
+ {
+ "description": "invalid - no commit after first row",
+ "chunks": [
+ {
+ "rowKey": "UktfMQ==",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFM",
+ "commitRow": false
+ },
+ {
+ "rowKey": "UktfMg==",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFM",
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "error": true
+ }
+ ]
+ },
+ {
+ "description": "invalid - last row missing commit",
+ "chunks": [
+ {
+ "rowKey": "UktfMQ==",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFM",
+ "commitRow": true
+ },
+ {
+ "rowKey": "UktfMg==",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFM",
+ "commitRow": false
+ }
+ ],
+ "results": [
+ {
+ "rowKey": "RK_1",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "100",
+ "value": "value-VAL"
+ },
+ {
+ "error": true
+ }
+ ]
+ },
+ {
+ "description": "invalid - duplicate row key",
+ "chunks": [
+ {
+ "rowKey": "UktfMQ==",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFM",
+ "commitRow": true
+ },
+ {
+ "rowKey": "UktfMQ==",
+ "familyName": "B",
+ "qualifier": "RA==",
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFM",
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "rowKey": "RK_1",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "100",
+ "value": "value-VAL"
+ },
+ {
+ "error": true
+ }
+ ]
+ },
+ {
+ "description": "invalid - new row missing row key",
+ "chunks": [
+ {
+ "rowKey": "UktfMQ==",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFM",
+ "commitRow": true
+ },
+ {
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFM",
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "rowKey": "RK_1",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "100",
+ "value": "value-VAL"
+ },
+ {
+ "error": true
+ }
+ ]
+ },
+ {
+ "description": "two rows",
+ "chunks": [
+ {
+ "rowKey": "UktfMQ==",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFM",
+ "commitRow": true
+ },
+ {
+ "rowKey": "UktfMg==",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFM",
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "rowKey": "RK_1",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "100",
+ "value": "value-VAL"
+ },
+ {
+ "rowKey": "RK_2",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "100",
+ "value": "value-VAL"
+ }
+ ]
+ },
+ {
+ "description": "two rows implicit timestamp",
+ "chunks": [
+ {
+ "rowKey": "UktfMQ==",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "value": "dmFsdWUtVkFM",
+ "commitRow": true
+ },
+ {
+ "rowKey": "UktfMg==",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFM",
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "rowKey": "RK_1",
+ "familyName": "A",
+ "qualifier": "C",
+ "value": "value-VAL"
+ },
+ {
+ "rowKey": "RK_2",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "100",
+ "value": "value-VAL"
+ }
+ ]
+ },
+ {
+ "description": "two rows empty value",
+ "chunks": [
+ {
+ "rowKey": "UktfMQ==",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "commitRow": true
+ },
+ {
+ "rowKey": "UktfMg==",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFM",
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "rowKey": "RK_1",
+ "familyName": "A",
+ "qualifier": "C"
+ },
+ {
+ "rowKey": "RK_2",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "100",
+ "value": "value-VAL"
+ }
+ ]
+ },
+ {
+ "description": "two rows, one with multiple cells",
+ "chunks": [
+ {
+ "rowKey": "UktfMQ==",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "99",
+ "value": "dmFsdWUtVkFMXzE=",
+ "commitRow": false
+ },
+ {
+ "timestampMicros": "98",
+ "value": "dmFsdWUtVkFMXzI=",
+ "commitRow": true
+ },
+ {
+ "rowKey": "UktfMg==",
+ "familyName": "B",
+ "qualifier": "RA==",
+ "timestampMicros": "97",
+ "value": "dmFsdWUtVkFMXzM=",
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "rowKey": "RK_1",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "99",
+ "value": "value-VAL_1"
+ },
+ {
+ "rowKey": "RK_1",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "98",
+ "value": "value-VAL_2"
+ },
+ {
+ "rowKey": "RK_2",
+ "familyName": "B",
+ "qualifier": "D",
+ "timestampMicros": "97",
+ "value": "value-VAL_3"
+ }
+ ]
+ },
+ {
+ "description": "two rows, multiple cells",
+ "chunks": [
+ {
+ "rowKey": "UktfMQ==",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "99",
+ "value": "dmFsdWUtVkFMXzE=",
+ "commitRow": false
+ },
+ {
+ "qualifier": "RA==",
+ "timestampMicros": "98",
+ "value": "dmFsdWUtVkFMXzI=",
+ "commitRow": true
+ },
+ {
+ "rowKey": "UktfMg==",
+ "familyName": "B",
+ "qualifier": "RQ==",
+ "timestampMicros": "97",
+ "value": "dmFsdWUtVkFMXzM=",
+ "commitRow": false
+ },
+ {
+ "qualifier": "Rg==",
+ "timestampMicros": "96",
+ "value": "dmFsdWUtVkFMXzQ=",
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "rowKey": "RK_1",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "99",
+ "value": "value-VAL_1"
+ },
+ {
+ "rowKey": "RK_1",
+ "familyName": "A",
+ "qualifier": "D",
+ "timestampMicros": "98",
+ "value": "value-VAL_2"
+ },
+ {
+ "rowKey": "RK_2",
+ "familyName": "B",
+ "qualifier": "E",
+ "timestampMicros": "97",
+ "value": "value-VAL_3"
+ },
+ {
+ "rowKey": "RK_2",
+ "familyName": "B",
+ "qualifier": "F",
+ "timestampMicros": "96",
+ "value": "value-VAL_4"
+ }
+ ]
+ },
+ {
+ "description": "two rows, multiple cells, multiple families",
+ "chunks": [
+ {
+ "rowKey": "UktfMQ==",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "99",
+ "value": "dmFsdWUtVkFMXzE=",
+ "commitRow": false
+ },
+ {
+ "familyName": "B",
+ "qualifier": "RQ==",
+ "timestampMicros": "98",
+ "value": "dmFsdWUtVkFMXzI=",
+ "commitRow": true
+ },
+ {
+ "rowKey": "UktfMg==",
+ "familyName": "M",
+ "qualifier": "Tw==",
+ "timestampMicros": "97",
+ "value": "dmFsdWUtVkFMXzM=",
+ "commitRow": false
+ },
+ {
+ "familyName": "N",
+ "qualifier": "UA==",
+ "timestampMicros": "96",
+ "value": "dmFsdWUtVkFMXzQ=",
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "rowKey": "RK_1",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "99",
+ "value": "value-VAL_1"
+ },
+ {
+ "rowKey": "RK_1",
+ "familyName": "B",
+ "qualifier": "E",
+ "timestampMicros": "98",
+ "value": "value-VAL_2"
+ },
+ {
+ "rowKey": "RK_2",
+ "familyName": "M",
+ "qualifier": "O",
+ "timestampMicros": "97",
+ "value": "value-VAL_3"
+ },
+ {
+ "rowKey": "RK_2",
+ "familyName": "N",
+ "qualifier": "P",
+ "timestampMicros": "96",
+ "value": "value-VAL_4"
+ }
+ ]
+ },
+ {
+ "description": "two rows, four cells, 2 labels",
+ "chunks": [
+ {
+ "rowKey": "UktfMQ==",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "99",
+ "labels": [
+ "L_1"
+ ],
+ "value": "dmFsdWUtVkFMXzE=",
+ "commitRow": false
+ },
+ {
+ "timestampMicros": "98",
+ "value": "dmFsdWUtVkFMXzI=",
+ "commitRow": true
+ },
+ {
+ "rowKey": "UktfMg==",
+ "familyName": "B",
+ "qualifier": "RA==",
+ "timestampMicros": "97",
+ "labels": [
+ "L_3"
+ ],
+ "value": "dmFsdWUtVkFMXzM=",
+ "commitRow": false
+ },
+ {
+ "timestampMicros": "96",
+ "value": "dmFsdWUtVkFMXzQ=",
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "rowKey": "RK_1",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "99",
+ "value": "value-VAL_1",
+ "label": "L_1"
+ },
+ {
+ "rowKey": "RK_1",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "98",
+ "value": "value-VAL_2"
+ },
+ {
+ "rowKey": "RK_2",
+ "familyName": "B",
+ "qualifier": "D",
+ "timestampMicros": "97",
+ "value": "value-VAL_3",
+ "label": "L_3"
+ },
+ {
+ "rowKey": "RK_2",
+ "familyName": "B",
+ "qualifier": "D",
+ "timestampMicros": "96",
+ "value": "value-VAL_4"
+ }
+ ]
+ },
+ {
+ "description": "two rows with splits, same timestamp",
+ "chunks": [
+ {
+ "rowKey": "UktfMQ==",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dg==",
+ "valueSize": 11,
+ "commitRow": false
+ },
+ {
+ "value": "YWx1ZS1WQUxfMQ==",
+ "commitRow": true
+ },
+ {
+ "rowKey": "UktfMg==",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dg==",
+ "valueSize": 11,
+ "commitRow": false
+ },
+ {
+ "value": "YWx1ZS1WQUxfMg==",
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "rowKey": "RK_1",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "100",
+ "value": "value-VAL_1"
+ },
+ {
+ "rowKey": "RK_2",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "100",
+ "value": "value-VAL_2"
+ }
+ ]
+ },
+ {
+ "description": "invalid - bare reset",
+ "chunks": [
+ {
+ "resetRow": true
+ }
+ ],
+ "results": [
+ {
+ "error": true
+ }
+ ]
+ },
+ {
+ "description": "invalid - bad reset, no commit",
+ "chunks": [
+ {
+ "resetRow": true
+ },
+ {
+ "rowKey": "Uks=",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFM",
+ "commitRow": false
+ }
+ ],
+ "results": [
+ {
+ "error": true
+ }
+ ]
+ },
+ {
+ "description": "invalid - missing key after reset",
+ "chunks": [
+ {
+ "rowKey": "Uks=",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFM",
+ "commitRow": false
+ },
+ {
+ "resetRow": true
+ },
+ {
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFM",
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "error": true
+ }
+ ]
+ },
+ {
+ "description": "no data after reset",
+ "chunks": [
+ {
+ "rowKey": "Uks=",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFM",
+ "commitRow": false
+ },
+ {
+ "resetRow": true
+ }
+ ]
+ },
+ {
+ "description": "simple reset",
+ "chunks": [
+ {
+ "rowKey": "Uks=",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFM",
+ "commitRow": false
+ },
+ {
+ "resetRow": true
+ },
+ {
+ "rowKey": "Uks=",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFM",
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "rowKey": "RK",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "100",
+ "value": "value-VAL"
+ }
+ ]
+ },
+ {
+ "description": "reset to new val",
+ "chunks": [
+ {
+ "rowKey": "Uks=",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFMXzE=",
+ "commitRow": false
+ },
+ {
+ "resetRow": true
+ },
+ {
+ "rowKey": "Uks=",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFMXzI=",
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "rowKey": "RK",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "100",
+ "value": "value-VAL_2"
+ }
+ ]
+ },
+ {
+ "description": "reset to new qual",
+ "chunks": [
+ {
+ "rowKey": "Uks=",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFMXzE=",
+ "commitRow": false
+ },
+ {
+ "resetRow": true
+ },
+ {
+ "rowKey": "Uks=",
+ "familyName": "A",
+ "qualifier": "RA==",
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFMXzE=",
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "rowKey": "RK",
+ "familyName": "A",
+ "qualifier": "D",
+ "timestampMicros": "100",
+ "value": "value-VAL_1"
+ }
+ ]
+ },
+ {
+ "description": "reset with splits",
+ "chunks": [
+ {
+ "rowKey": "Uks=",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFMXzE=",
+ "commitRow": false
+ },
+ {
+ "timestampMicros": "98",
+ "value": "dmFsdWUtVkFMXzI=",
+ "commitRow": false
+ },
+ {
+ "resetRow": true
+ },
+ {
+ "rowKey": "Uks=",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFMXzI=",
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "rowKey": "RK",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "100",
+ "value": "value-VAL_2"
+ }
+ ]
+ },
+ {
+ "description": "reset two cells",
+ "chunks": [
+ {
+ "rowKey": "Uks=",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFMXzE=",
+ "commitRow": false
+ },
+ {
+ "resetRow": true
+ },
+ {
+ "rowKey": "Uks=",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFMXzI=",
+ "commitRow": false
+ },
+ {
+ "timestampMicros": "97",
+ "value": "dmFsdWUtVkFMXzM=",
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "rowKey": "RK",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "100",
+ "value": "value-VAL_2"
+ },
+ {
+ "rowKey": "RK",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "97",
+ "value": "value-VAL_3"
+ }
+ ]
+ },
+ {
+ "description": "two resets",
+ "chunks": [
+ {
+ "rowKey": "Uks=",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFMXzE=",
+ "commitRow": false
+ },
+ {
+ "resetRow": true
+ },
+ {
+ "rowKey": "Uks=",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFMXzI=",
+ "commitRow": false
+ },
+ {
+ "resetRow": true
+ },
+ {
+ "rowKey": "Uks=",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFMXzM=",
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "rowKey": "RK",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "100",
+ "value": "value-VAL_3"
+ }
+ ]
+ },
+ {
+ "description": "reset then two cells",
+ "chunks": [
+ {
+ "rowKey": "Uks=",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFMXzE=",
+ "commitRow": false
+ },
+ {
+ "resetRow": true
+ },
+ {
+ "rowKey": "Uks=",
+ "familyName": "B",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFMXzI=",
+ "commitRow": false
+ },
+ {
+ "qualifier": "RA==",
+ "timestampMicros": "97",
+ "value": "dmFsdWUtVkFMXzM=",
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "rowKey": "RK",
+ "familyName": "B",
+ "qualifier": "C",
+ "timestampMicros": "100",
+ "value": "value-VAL_2"
+ },
+ {
+ "rowKey": "RK",
+ "familyName": "B",
+ "qualifier": "D",
+ "timestampMicros": "97",
+ "value": "value-VAL_3"
+ }
+ ]
+ },
+ {
+ "description": "reset to new row",
+ "chunks": [
+ {
+ "rowKey": "UktfMQ==",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFMXzE=",
+ "commitRow": false
+ },
+ {
+ "resetRow": true
+ },
+ {
+ "rowKey": "UktfMg==",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFMXzI=",
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "rowKey": "RK_2",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "100",
+ "value": "value-VAL_2"
+ }
+ ]
+ },
+ {
+ "description": "reset in between chunks",
+ "chunks": [
+ {
+ "rowKey": "Uks=",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "labels": [
+ "L"
+ ],
+ "value": "dg==",
+ "valueSize": 10,
+ "commitRow": false
+ },
+ {
+ "value": "YQ==",
+ "valueSize": 10,
+ "commitRow": false
+ },
+ {
+ "resetRow": true
+ },
+ {
+ "rowKey": "UktfMQ==",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFMXzE=",
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "rowKey": "RK_1",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "100",
+ "value": "value-VAL_1"
+ }
+ ]
+ },
+ {
+ "description": "invalid - reset with chunk",
+ "chunks": [
+ {
+ "rowKey": "Uks=",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "labels": [
+ "L"
+ ],
+ "value": "dg==",
+ "valueSize": 10,
+ "commitRow": false
+ },
+ {
+ "value": "YQ==",
+ "valueSize": 10,
+ "resetRow": true
+ }
+ ],
+ "results": [
+ {
+ "error": true
+ }
+ ]
+ },
+ {
+ "description": "invalid - commit with chunk",
+ "chunks": [
+ {
+ "rowKey": "Uks=",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "labels": [
+ "L"
+ ],
+ "value": "dg==",
+ "valueSize": 10,
+ "commitRow": false
+ },
+ {
+ "value": "YQ==",
+ "valueSize": 10,
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "error": true
+ }
+ ]
+ },
+ {
+ "description": "empty cell chunk",
+ "chunks": [
+ {
+ "rowKey": "Uks=",
+ "familyName": "A",
+ "qualifier": "Qw==",
+ "timestampMicros": "100",
+ "value": "dmFsdWUtVkFM",
+ "commitRow": false
+ },
+ {
+ "commitRow": false
+ },
+ {
+ "commitRow": true
+ }
+ ],
+ "results": [
+ {
+ "rowKey": "RK",
+ "familyName": "A",
+ "qualifier": "C",
+ "timestampMicros": "100",
+ "value": "value-VAL"
+ },
+ {
+ "rowKey": "RK",
+ "familyName": "A",
+ "qualifier": "C"
+ },
+ {
+ "rowKey": "RK",
+ "familyName": "A",
+ "qualifier": "C"
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/storage/v1/test_service_account.not-a-test.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/storage/v1/test_service_account.not-a-test.json
new file mode 100644
index 000000000000..8d68c79958dc
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/storage/v1/test_service_account.not-a-test.json
@@ -0,0 +1,13 @@
+{
+ "comment": "This is a dummy service account JSON file that is inactive. It's fine for it to be public.",
+ "type": "service_account",
+ "project_id": "dummy-project-id",
+ "private_key_id": "ffffffffffffffffffffffffffffffffffffffff",
+ "private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCsPzMirIottfQ2\nryjQmPWocSEeGo7f7Q4/tMQXHlXFzo93AGgU2t+clEj9L5loNhLVq+vk+qmnyDz5\nQ04y8jVWyMYzzGNNrGRW/yaYqnqlKZCy1O3bmnNjV7EDbC/jE1ZLBY0U3HaSHfn6\nS9ND8MXdgD0/ulRTWwq6vU8/w6i5tYsU7n2LLlQTl1fQ7/emO9nYcCFJezHZVa0H\nmeWsdHwWsok0skwQYQNIzP3JF9BpR5gJT2gNge6KopDesJeLoLzaX7cUnDn+CAnn\nLuLDwwSsIVKyVxhBFsFXPplgpaQRwmGzwEbf/Xpt9qo26w2UMgn30jsOaKlSeAX8\ncS6ViF+tAgMBAAECggEACKRuJCP8leEOhQziUx8Nmls8wmYqO4WJJLyk5xUMUC22\nSI4CauN1e0V8aQmxnIc0CDkFT7qc9xBmsMoF+yvobbeKrFApvlyzNyM7tEa/exh8\nDGD/IzjbZ8VfWhDcUTwn5QE9DCoon9m1sG+MBNlokB3OVOt8LieAAREdEBG43kJu\nyQTOkY9BGR2AY1FnAl2VZ/jhNDyrme3tp1sW1BJrawzR7Ujo8DzlVcS2geKA9at7\n55ua5GbHz3hfzFgjVXDfnkWzId6aHypUyqHrSn1SqGEbyXTaleKTc6Pgv0PgkJjG\nhZazWWdSuf1T5Xbs0OhAK9qraoAzT6cXXvMEvvPt6QKBgQDXcZKqJAOnGEU4b9+v\nOdoh+nssdrIOBNMu1m8mYbUVYS1aakc1iDGIIWNM3qAwbG+yNEIi2xi80a2RMw2T\n9RyCNB7yqCXXVKLBiwg9FbKMai6Vpk2bWIrzahM9on7AhCax/X2AeOp+UyYhFEy6\nUFG4aHb8THscL7b515ukSuKb5QKBgQDMq+9PuaB0eHsrmL6q4vHNi3MLgijGg/zu\nAXaPygSYAwYW8KglcuLZPvWrL6OG0+CrfmaWTLsyIZO4Uhdj7MLvX6yK7IMnagvk\nL3xjgxSklEHJAwi5wFeJ8ai/1MIuCn8p2re3CbwISKpvf7Sgs/W4196P4vKvTiAz\njcTiSYFIKQKBgCjMpkS4O0TakMlGTmsFnqyOneLmu4NyIHgfPb9cA4n/9DHKLKAT\noaWxBPgatOVWs7RgtyGYsk+XubHkpC6f3X0+15mGhFwJ+CSE6tN+l2iF9zp52vqP\nQwkjzm7+pdhZbmaIpcq9m1K+9lqPWJRz/3XXuqi+5xWIZ7NaxGvRjqaNAoGAdK2b\nutZ2y48XoI3uPFsuP+A8kJX+CtWZrlE1NtmS7tnicdd19AtfmTuUL6fz0FwfW4Su\nlQZfPT/5B339CaEiq/Xd1kDor+J7rvUHM2+5p+1A54gMRGCLRv92FQ4EON0RC1o9\nm2I4SHysdO3XmjmdXmfp4BsgAKJIJzutvtbqlakCgYB+Cb10z37NJJ+WgjDt+yT2\nyUNH17EAYgWXryfRgTyi2POHuJitd64Xzuy6oBVs3wVveYFM6PIKXlj8/DahYX5I\nR2WIzoCNLL3bEZ+nC6Jofpb4kspoAeRporj29SgesK6QBYWHWX2H645RkRGYGpDo\n51gjy9m/hSNqBbH2zmh04A==\n-----END PRIVATE KEY-----\n",
+ "client_email": "test-iam-credentials@dummy-project-id.iam.gserviceaccount.com",
+ "client_id": "000000000000000000000",
+ "auth_uri": "https://accounts.google.com/o/oauth2/auth",
+ "token_uri": "https://oauth2.googleapis.com/token",
+ "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
+ "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/test-iam-credentials%40dummy-project-id.iam.gserviceaccount.com"
+}
diff --git a/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/storage/v1/v4_signatures.json b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/storage/v1/v4_signatures.json
new file mode 100644
index 000000000000..7e5c45d22cb4
--- /dev/null
+++ b/google-cloud-testing/google-cloud-conformance-tests/src/main/resources/com/google/cloud/conformance/storage/v1/v4_signatures.json
@@ -0,0 +1,114 @@
+{
+ "signingV4Tests": [
+ {
+ "description": "Simple GET",
+ "bucket": "test-bucket",
+ "object": "test-object",
+ "method": "GET",
+ "expiration": "10",
+ "timestamp": "2019-02-01T09:00:00Z",
+ "expectedUrl": "https://storage.googleapis.com/test-bucket/test-object?X-Goog-Algorithm=GOOG4-RSA-SHA256\u0026X-Goog-Credential=test-iam-credentials%40dummy-project-id.iam.gserviceaccount.com%2F20190201%2Fauto%2Fstorage%2Fgoog4_request\u0026X-Goog-Date=20190201T090000Z\u0026X-Goog-Expires=10\u0026X-Goog-SignedHeaders=host\u0026X-Goog-Signature=95e6a13d43a1d1962e667f17397f2b80ac9bdd1669210d5e08e0135df9dff4e56113485dbe429ca2266487b9d1796ebdee2d7cf682a6ef3bb9fbb4c351686fba90d7b621cf1c4eb1fdf126460dd25fa0837dfdde0a9fd98662ce60844c458448fb2b352c203d9969cb74efa4bdb742287744a4f2308afa4af0e0773f55e32e92973619249214b97283b2daa14195244444e33f938138d1e5f561088ce8011f4986dda33a556412594db7c12fc40e1ff3f1bedeb7a42f5bcda0b9567f17f65855f65071fabb88ea12371877f3f77f10e1466fff6ff6973b74a933322ff0949ce357e20abe96c3dd5cfab42c9c83e740a4d32b9e11e146f0eb3404d2e975896f74"
+ },
+ {
+ "description": "Simple PUT",
+ "bucket": "test-bucket",
+ "object": "test-object",
+ "method": "PUT",
+ "expiration": "10",
+ "timestamp": "2019-02-01T09:00:00Z",
+ "expectedUrl": "https://storage.googleapis.com/test-bucket/test-object?X-Goog-Algorithm=GOOG4-RSA-SHA256\u0026X-Goog-Credential=test-iam-credentials%40dummy-project-id.iam.gserviceaccount.com%2F20190201%2Fauto%2Fstorage%2Fgoog4_request\u0026X-Goog-Date=20190201T090000Z\u0026X-Goog-Expires=10\u0026X-Goog-SignedHeaders=host\u0026X-Goog-Signature=8adff1d4285739e31aa68e73767a46bc5511fde377497dbe08481bf5ceb34e29cc9a59921748d8ec3dd4085b7e9b7772a952afedfcdaecb3ae8352275b8b7c867f204e3db85076220a3127a8a9589302fc1181eae13b9b7fe41109ec8cdc93c1e8bac2d7a0cc32a109ca02d06957211326563ab3d3e678a0ba296e298b5fc5e14593c99d444c94724cc4be97015dbff1dca377b508fa0cb7169195de98d0e4ac96c42b918d28c8d92d33e1bd125ce0fb3cd7ad2c45dae65c22628378f6584971b8bf3945b26f2611eb651e9b6a8648970c1ecf386bb71327b082e7296c4e1ee2fc0bdd8983da80af375c817fb1ad491d0bc22c0f51dba0d66e2cffbc90803e47"
+ },
+ {
+ "description": "POST for resumable uploads",
+ "bucket": "test-bucket",
+ "object": "test-object",
+ "method": "POST",
+ "expiration": "10",
+ "timestamp": "2019-02-01T09:00:00Z",
+ "expectedUrl": "https://storage.googleapis.com/test-bucket/test-object?X-Goog-Algorithm=GOOG4-RSA-SHA256\u0026X-Goog-Credential=test-iam-credentials%40dummy-project-id.iam.gserviceaccount.com%2F20190201%2Fauto%2Fstorage%2Fgoog4_request\u0026X-Goog-Date=20190201T090000Z\u0026X-Goog-Expires=10\u0026X-Goog-SignedHeaders=host%3Bx-goog-resumable\u0026X-Goog-Signature=4a6d39b23343cedf4c30782aed4b384001828c79ffa3a080a481ea01a640dea0a0ceb58d67a12cef3b243c3f036bb3799c6ee88e8db3eaf7d0bdd4b70a228d0736e07eaa1ee076aff5c6ce09dff1f1f03a0d8ead0d2893408dd3604fdabff553aa6d7af2da67cdba6790006a70240f96717b98f1a6ccb24f00940749599be7ef72aaa5358db63ddd54b2de9e2d6d6a586eac4fe25f36d86fc6ab150418e9c6fa01b732cded226c6d62fc95b72473a4cc55a8257482583fe66d9ab6ede909eb41516a8690946c3e87b0f2052eb0e97e012a14b2f721c42e6e19b8a1cd5658ea36264f10b9b1ada66b8ed5bf7ed7d1708377ac6e5fe608ae361fb594d2e5b24c54",
+ "headers": {
+ "X-goog-resumable": "start"
+ }
+ },
+ {
+ "description": "Vary expiration and timestamp",
+ "bucket": "test-bucket",
+ "object": "test-object",
+ "method": "GET",
+ "expiration": "20",
+ "timestamp": "2019-03-01T09:00:00Z",
+ "expectedUrl": "https://storage.googleapis.com/test-bucket/test-object?X-Goog-Algorithm=GOOG4-RSA-SHA256\u0026X-Goog-Credential=test-iam-credentials%40dummy-project-id.iam.gserviceaccount.com%2F20190301%2Fauto%2Fstorage%2Fgoog4_request\u0026X-Goog-Date=20190301T090000Z\u0026X-Goog-Expires=20\u0026X-Goog-SignedHeaders=host\u0026X-Goog-Signature=9669ed5b10664dc594c758296580662912cf4bcc5a4ba0b6bf055bcbf6f34eed7bdad664f534962174a924741a0c273a4f67bc1847cef20192a6beab44223bd9d4fbbd749c407b79997598c30f82ddc269ff47ec09fa3afe74e00616d438df0d96a7d8ad0adacfad1dc3286f864d924fe919fb0dce45d3d975c5afe8e13af2db9cc37ba77835f92f7669b61e94c6d562196c1274529e76cfff1564cc2cad7d5387dc8e12f7a5dfd925685fe92c30b43709eee29fa2f66067472cee5423d1a3a4182fe8cea75c9329d181dc6acad7c393cd04f8bf5bc0515127d8ebd65d80c08e19ad03316053ea60033fd1b1fd85a69c576415da3bf0a3718d9ea6d03e0d66f0"
+ },
+ {
+ "description": "Vary bucket and object",
+ "bucket": "test-bucket2",
+ "object": "test-object2",
+ "method": "GET",
+ "expiration": "10",
+ "timestamp": "2019-02-01T09:00:00Z",
+ "expectedUrl": "https://storage.googleapis.com/test-bucket2/test-object2?X-Goog-Algorithm=GOOG4-RSA-SHA256\u0026X-Goog-Credential=test-iam-credentials%40dummy-project-id.iam.gserviceaccount.com%2F20190201%2Fauto%2Fstorage%2Fgoog4_request\u0026X-Goog-Date=20190201T090000Z\u0026X-Goog-Expires=10\u0026X-Goog-SignedHeaders=host\u0026X-Goog-Signature=36e3d58dfd3ec1d2dd2f24b5ee372a71e811ffaa2162a2b871d26728d0354270bc116face87127532969c4a3967ed05b7309af741e19c7202f3167aa8c2ac420b61417d6451442bb91d7c822cd17be8783f01e05372769c88913561d27e6660dd8259f0081a71f831be6c50283626cbf04494ac10c394b29bb3bce74ab91548f58a37118a452693cf0483d77561fc9cac8f1765d2c724994cca46a83517a10157ee0347a233a2aaeae6e6ab5e204ff8fc5f54f90a3efdb8301d9fff5475d58cd05b181affd657f48203f4fb133c3a3d355b8eefbd10d5a0a5fd70d06e9515460ad74e22334b2cba4b29cae4f6f285cdb92d8f3126d7a1479ca3bdb69c207d860"
+ },
+ {
+ "description": "Simple headers",
+ "bucket": "test-bucket",
+ "object": "test-object",
+ "method": "GET",
+ "expiration": "10",
+ "timestamp": "2019-02-01T09:00:00Z",
+ "expectedUrl": "https://storage.googleapis.com/test-bucket/test-object?X-Goog-Algorithm=GOOG4-RSA-SHA256\u0026X-Goog-Credential=test-iam-credentials%40dummy-project-id.iam.gserviceaccount.com%2F20190201%2Fauto%2Fstorage%2Fgoog4_request\u0026X-Goog-Date=20190201T090000Z\u0026X-Goog-Expires=10\u0026X-Goog-SignedHeaders=bar%3Bfoo%3Bhost\u0026X-Goog-Signature=68ecd3b008328ed30d91e2fe37444ed7b9b03f28ed4424555b5161980531ef87db1c3a5bc0265aad5640af30f96014c94fb2dba7479c41bfe1c020eb90c0c6d387d4dd09d4a5df8b60ea50eb6b01cdd786a1e37020f5f95eb8f9b6cd3f65a1f8a8a65c9fcb61ea662959efd9cd73b683f8d8804ef4d6d9b2852419b013368842731359d7f9e6d1139032ceca75d5e67cee5fd0192ea2125e5f2955d38d3d50cf116f3a52e6a62de77f6207f5b95aaa1d7d0f8a46de89ea72e7ea30f21286318d7eba0142232b0deb3a1dc9e1e812a981c66b5ffda3c6b01a8a9d113155792309fd53a3acfd054ca7776e8eec28c26480cd1e3c812f67f91d14217f39a606669d",
+ "headers": {
+ "BAR": "BAR-value",
+ "foo": "foo-value"
+ }
+ },
+ {
+ "description": "Headers should be trimmed",
+ "bucket": "test-bucket",
+ "object": "test-object",
+ "method": "GET",
+ "expiration": "10",
+ "timestamp": "2019-02-01T09:00:00Z",
+ "expectedUrl": "https://storage.googleapis.com/test-bucket/test-object?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=test-iam-credentials%40dummy-project-id.iam.gserviceaccount.com%2F20190201%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20190201T090000Z&X-Goog-Expires=10&X-Goog-SignedHeaders=collapsed%3Bhost%3Bleading%3Btabs%3Btrailing&X-Goog-Signature=52fa1d70bcd527ee9c1241f87c56bc481526e8a63d440948595ff776faacb0caa6e8a3060b113546cb27ed29d80c88d402947d83948758d4e5c49e47d9482751d46b2a99c2dae5bc8f7baffab03dec05b28b5d605610686c48e867d6a4239a2a61a785df7d6099d155bba57d0d331d66d667b5df8e165e8277e2675678fc28499abd34053a2bc4e4fa21d032c4278fd29897e8307f142506a3d8d07149cded15f7defa77028fb88ff45132cee5f6232feb8e7f899fe361f1f8ceed0795aff860084f35e27475447dc6e64e4baa09e96a725eee6fa3c408d6bb51c2bd5f649afb8339f46997d9ef22496a79cf0846e52ac941c08dc4b9d63639d0ff2ce8637412",
+ "headers": {
+ "collapsed": "abc def",
+ "leading": " xyz",
+ "trailing": "abc ",
+ "tabs": "\tabc\t\t\t\tdef\t"
+ }
+ },
+ {
+ "description": "Header value with multiple inline values",
+ "bucket": "test-bucket",
+ "object": "test-object",
+ "method": "GET",
+ "expiration": "10",
+ "timestamp": "2019-02-01T09:00:00Z",
+ "expectedUrl": "https://storage.googleapis.com/test-bucket/test-object?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=test-iam-credentials%40dummy-project-id.iam.gserviceaccount.com%2F20190201%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20190201T090000Z&X-Goog-Expires=10&X-Goog-SignedHeaders=host%3Bmultiple&X-Goog-Signature=5cc113735625341f59c7203f0c2c9febc95ba6af6b9c38814f8e523214712087dc0996e4960d273ae1889f248ac1e58d4d19cb3a69ad7670e9a8ca1b434e878f59339dc7006cf32dfd715337e9f593e0504371839174962a08294586e0c78160a7aa303397888c8350637c6af3b32ac310886cc4590bfda9ca561ee58fb5b8ec56bc606d2ada6e7df31f4276e9dcb96bcaea39dc2cd096f3fad774f9c4b30e317ad43736c05f76831437f44e8726c1e90d3f6c9827dc273f211f32fc85658dfc5d357eb606743a6b00a29e519eef1bebaf9db3e8f4b1f5f9afb648ad06e60bc42fa8b57025056697c874c9ea76f5a73201c9717ea43e54713ff3502ff3fc626b",
+ "headers": {
+ "multiple": " xyz , abc, def , xyz "
+ }
+ },
+ {
+ "description": "Customer-supplied encryption key",
+ "bucket": "test-bucket",
+ "object": "test-object",
+ "method": "GET",
+ "expiration": "10",
+ "timestamp": "2019-02-01T09:00:00Z",
+ "expectedUrl": "https://storage.googleapis.com/test-bucket/test-object?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=test-iam-credentials%40dummy-project-id.iam.gserviceaccount.com%2F20190201%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20190201T090000Z&X-Goog-Expires=10&X-Goog-SignedHeaders=host%3Bx-goog-encryption-algorithm%3Bx-goog-encryption-key%3Bx-goog-encryption-key-sha256&X-Goog-Signature=278a1c5a3bad248637054a047014760353942433955871031ed08f515b54588654ad033e91f046ab202b68673030e117d1b786c325e870238b035ba75b3feed560a17aff9bab6bddebd4a31a52cb68b214e27d3b0bd886502c6b36b164306fe88b5a07c6063592afe746b2a5d205dbe90dd5386b94f0a78f75d9f53ee884e18f476e8fc2eb1dd910ce0b4ae1f5d7b09876ef9bf983f539c028429e14bad3c75dbd4ed1ae37856f6d6f8a1805eaf8b52a0d6fc993902e4c1ee8de477661f7b67c3663000474cb00e178189789b2a3ed6bd21b4ade684fca8108ac4dd106acb17f5954d045775f7aa5a98ebda5d3075e11a8ea49c64c6ad1481e463e8c9f11f704",
+ "headers": {
+ "X-Goog-Encryption-Algorithm": "AES256",
+ "X-Goog-Encryption-Key": "key",
+ "X-Goog-Encryption-Key-Sha256": "key-hash"
+ }
+ },
+ {
+ "description": "List Objects",
+ "bucket": "test-bucket",
+ "method": "GET",
+ "expiration": "10",
+ "timestamp": "2019-02-01T09:00:00Z",
+ "expectedUrl": "https://storage.googleapis.com/test-bucket?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=test-iam-credentials%40dummy-project-id.iam.gserviceaccount.com%2F20190201%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20190201T090000Z&X-Goog-Expires=10&X-Goog-SignedHeaders=host&X-Goog-Signature=6dbe94f8e52b2b8a9a476b1c857efa474e09944e2b52b925800316e094a7169d8dbe0df9c0ac08dabb22ac7e827470ceccd65f5a3eadba2a4fb9beebfe37f0d9bb1e552b851fa31a25045bdf019e507f5feb44f061551ef1aeb18dcec0e38ba2e2f77d560a46eaace9c56ed9aa642281301a9d848b0eb30749e34bc7f73a3d596240533466ff9b5f289cd0d4c845c7d96b82a35a5abd0c3aff83e4440ee6873e796087f43545544dc8c01afe1d79c726696b6f555371e491980e7ec145cca0803cf562c38f3fa1d724242f5dea25aac91d74ec9ddd739ff65523627763eaef25cd1f95ad985aaf0079b7c74eb5bcb2870a9b137a7b2c8e41fbe838c95872f75b"
+ }
+ ]
+}