Skip to content

Commit

Permalink
Remove update.sh and generate bundle.proto code from googleapis direc…
Browse files Browse the repository at this point in the history
…tly. (#406)
  • Loading branch information
wu-hui committed Oct 8, 2020
1 parent 33aa4f4 commit 5444fed
Show file tree
Hide file tree
Showing 16 changed files with 701 additions and 963 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>11.0.0</version>
<version>12.0.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down

Large diffs are not rendered by default.

Expand Up @@ -14,59 +14,59 @@
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: firestore/bundle.proto
// source: google/firestore/bundle/bundle.proto

package com.google.firestore.proto;
package com.google.firestore.bundle;

public interface BundleElementOrBuilder
extends
// @@protoc_insertion_point(interface_extends:firestore.BundleElement)
// @@protoc_insertion_point(interface_extends:google.firestore.bundle.BundleElement)
com.google.protobuf.MessageOrBuilder {

/**
* <code>.firestore.BundleMetadata metadata = 1;</code>
* <code>.google.firestore.bundle.BundleMetadata metadata = 1;</code>
*
* @return Whether the metadata field is set.
*/
boolean hasMetadata();
/**
* <code>.firestore.BundleMetadata metadata = 1;</code>
* <code>.google.firestore.bundle.BundleMetadata metadata = 1;</code>
*
* @return The metadata.
*/
com.google.firestore.proto.BundleMetadata getMetadata();
/** <code>.firestore.BundleMetadata metadata = 1;</code> */
com.google.firestore.proto.BundleMetadataOrBuilder getMetadataOrBuilder();
com.google.firestore.bundle.BundleMetadata getMetadata();
/** <code>.google.firestore.bundle.BundleMetadata metadata = 1;</code> */
com.google.firestore.bundle.BundleMetadataOrBuilder getMetadataOrBuilder();

/**
* <code>.firestore.NamedQuery named_query = 2;</code>
* <code>.google.firestore.bundle.NamedQuery named_query = 2;</code>
*
* @return Whether the namedQuery field is set.
*/
boolean hasNamedQuery();
/**
* <code>.firestore.NamedQuery named_query = 2;</code>
* <code>.google.firestore.bundle.NamedQuery named_query = 2;</code>
*
* @return The namedQuery.
*/
com.google.firestore.proto.NamedQuery getNamedQuery();
/** <code>.firestore.NamedQuery named_query = 2;</code> */
com.google.firestore.proto.NamedQueryOrBuilder getNamedQueryOrBuilder();
com.google.firestore.bundle.NamedQuery getNamedQuery();
/** <code>.google.firestore.bundle.NamedQuery named_query = 2;</code> */
com.google.firestore.bundle.NamedQueryOrBuilder getNamedQueryOrBuilder();

/**
* <code>.firestore.BundledDocumentMetadata document_metadata = 3;</code>
* <code>.google.firestore.bundle.BundledDocumentMetadata document_metadata = 3;</code>
*
* @return Whether the documentMetadata field is set.
*/
boolean hasDocumentMetadata();
/**
* <code>.firestore.BundledDocumentMetadata document_metadata = 3;</code>
* <code>.google.firestore.bundle.BundledDocumentMetadata document_metadata = 3;</code>
*
* @return The documentMetadata.
*/
com.google.firestore.proto.BundledDocumentMetadata getDocumentMetadata();
/** <code>.firestore.BundledDocumentMetadata document_metadata = 3;</code> */
com.google.firestore.proto.BundledDocumentMetadataOrBuilder getDocumentMetadataOrBuilder();
com.google.firestore.bundle.BundledDocumentMetadata getDocumentMetadata();
/** <code>.google.firestore.bundle.BundledDocumentMetadata document_metadata = 3;</code> */
com.google.firestore.bundle.BundledDocumentMetadataOrBuilder getDocumentMetadataOrBuilder();

/**
* <code>.google.firestore.v1.Document document = 4;</code>
Expand All @@ -83,5 +83,5 @@ public interface BundleElementOrBuilder
/** <code>.google.firestore.v1.Document document = 4;</code> */
com.google.firestore.v1.DocumentOrBuilder getDocumentOrBuilder();

public com.google.firestore.proto.BundleElement.ElementTypeCase getElementTypeCase();
public com.google.firestore.bundle.BundleElement.ElementTypeCase getElementTypeCase();
}
Expand Up @@ -14,9 +14,9 @@
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: firestore/bundle.proto
// source: google/firestore/bundle/bundle.proto

package com.google.firestore.proto;
package com.google.firestore.bundle;

/**
*
Expand All @@ -25,11 +25,11 @@
* Metadata describing the bundle file/stream.
* </pre>
*
* Protobuf type {@code firestore.BundleMetadata}
* Protobuf type {@code google.firestore.bundle.BundleMetadata}
*/
public final class BundleMetadata extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:firestore.BundleMetadata)
// @@protoc_insertion_point(message_implements:google.firestore.bundle.BundleMetadata)
BundleMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use BundleMetadata.newBuilder() to construct.
Expand Down Expand Up @@ -127,18 +127,18 @@ private BundleMetadata(
}

public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.firestore.proto.BundleProto
.internal_static_firestore_BundleMetadata_descriptor;
return com.google.firestore.bundle.BundleProto
.internal_static_google_firestore_bundle_BundleMetadata_descriptor;
}

@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.firestore.proto.BundleProto
.internal_static_firestore_BundleMetadata_fieldAccessorTable
return com.google.firestore.bundle.BundleProto
.internal_static_google_firestore_bundle_BundleMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.firestore.proto.BundleMetadata.class,
com.google.firestore.proto.BundleMetadata.Builder.class);
com.google.firestore.bundle.BundleMetadata.class,
com.google.firestore.bundle.BundleMetadata.Builder.class);
}

public static final int ID_FIELD_NUMBER = 1;
Expand Down Expand Up @@ -353,11 +353,11 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.firestore.proto.BundleMetadata)) {
if (!(obj instanceof com.google.firestore.bundle.BundleMetadata)) {
return super.equals(obj);
}
com.google.firestore.proto.BundleMetadata other =
(com.google.firestore.proto.BundleMetadata) obj;
com.google.firestore.bundle.BundleMetadata other =
(com.google.firestore.bundle.BundleMetadata) obj;

if (!getId().equals(other.getId())) return false;
if (hasCreateTime() != other.hasCreateTime()) return false;
Expand Down Expand Up @@ -395,71 +395,71 @@ public int hashCode() {
return hash;
}

public static com.google.firestore.proto.BundleMetadata parseFrom(java.nio.ByteBuffer data)
public static com.google.firestore.bundle.BundleMetadata parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}

public static com.google.firestore.proto.BundleMetadata parseFrom(
public static com.google.firestore.bundle.BundleMetadata parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}

public static com.google.firestore.proto.BundleMetadata parseFrom(
public static com.google.firestore.bundle.BundleMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}

public static com.google.firestore.proto.BundleMetadata parseFrom(
public static com.google.firestore.bundle.BundleMetadata 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.firestore.proto.BundleMetadata parseFrom(byte[] data)
public static com.google.firestore.bundle.BundleMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}

public static com.google.firestore.proto.BundleMetadata parseFrom(
public static com.google.firestore.bundle.BundleMetadata parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}

public static com.google.firestore.proto.BundleMetadata parseFrom(java.io.InputStream input)
public static com.google.firestore.bundle.BundleMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}

public static com.google.firestore.proto.BundleMetadata parseFrom(
public static com.google.firestore.bundle.BundleMetadata 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.firestore.proto.BundleMetadata parseDelimitedFrom(
public static com.google.firestore.bundle.BundleMetadata parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}

public static com.google.firestore.proto.BundleMetadata parseDelimitedFrom(
public static com.google.firestore.bundle.BundleMetadata 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.firestore.proto.BundleMetadata parseFrom(
public static com.google.firestore.bundle.BundleMetadata parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}

public static com.google.firestore.proto.BundleMetadata parseFrom(
public static com.google.firestore.bundle.BundleMetadata parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Expand All @@ -476,7 +476,7 @@ public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}

public static Builder newBuilder(com.google.firestore.proto.BundleMetadata prototype) {
public static Builder newBuilder(com.google.firestore.bundle.BundleMetadata prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}

Expand All @@ -497,28 +497,28 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* Metadata describing the bundle file/stream.
* </pre>
*
* Protobuf type {@code firestore.BundleMetadata}
* Protobuf type {@code google.firestore.bundle.BundleMetadata}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
implements
// @@protoc_insertion_point(builder_implements:firestore.BundleMetadata)
com.google.firestore.proto.BundleMetadataOrBuilder {
// @@protoc_insertion_point(builder_implements:google.firestore.bundle.BundleMetadata)
com.google.firestore.bundle.BundleMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.firestore.proto.BundleProto
.internal_static_firestore_BundleMetadata_descriptor;
return com.google.firestore.bundle.BundleProto
.internal_static_google_firestore_bundle_BundleMetadata_descriptor;
}

@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.firestore.proto.BundleProto
.internal_static_firestore_BundleMetadata_fieldAccessorTable
return com.google.firestore.bundle.BundleProto
.internal_static_google_firestore_bundle_BundleMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.firestore.proto.BundleMetadata.class,
com.google.firestore.proto.BundleMetadata.Builder.class);
com.google.firestore.bundle.BundleMetadata.class,
com.google.firestore.bundle.BundleMetadata.Builder.class);
}

// Construct using com.google.firestore.proto.BundleMetadata.newBuilder()
// Construct using com.google.firestore.bundle.BundleMetadata.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
Expand Down Expand Up @@ -554,28 +554,28 @@ public Builder clear() {

@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.firestore.proto.BundleProto
.internal_static_firestore_BundleMetadata_descriptor;
return com.google.firestore.bundle.BundleProto
.internal_static_google_firestore_bundle_BundleMetadata_descriptor;
}

@java.lang.Override
public com.google.firestore.proto.BundleMetadata getDefaultInstanceForType() {
return com.google.firestore.proto.BundleMetadata.getDefaultInstance();
public com.google.firestore.bundle.BundleMetadata getDefaultInstanceForType() {
return com.google.firestore.bundle.BundleMetadata.getDefaultInstance();
}

@java.lang.Override
public com.google.firestore.proto.BundleMetadata build() {
com.google.firestore.proto.BundleMetadata result = buildPartial();
public com.google.firestore.bundle.BundleMetadata build() {
com.google.firestore.bundle.BundleMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}

@java.lang.Override
public com.google.firestore.proto.BundleMetadata buildPartial() {
com.google.firestore.proto.BundleMetadata result =
new com.google.firestore.proto.BundleMetadata(this);
public com.google.firestore.bundle.BundleMetadata buildPartial() {
com.google.firestore.bundle.BundleMetadata result =
new com.google.firestore.bundle.BundleMetadata(this);
result.id_ = id_;
if (createTimeBuilder_ == null) {
result.createTime_ = createTime_;
Expand Down Expand Up @@ -624,16 +624,16 @@ public Builder addRepeatedField(

@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.firestore.proto.BundleMetadata) {
return mergeFrom((com.google.firestore.proto.BundleMetadata) other);
if (other instanceof com.google.firestore.bundle.BundleMetadata) {
return mergeFrom((com.google.firestore.bundle.BundleMetadata) other);
} else {
super.mergeFrom(other);
return this;
}
}

public Builder mergeFrom(com.google.firestore.proto.BundleMetadata other) {
if (other == com.google.firestore.proto.BundleMetadata.getDefaultInstance()) return this;
public Builder mergeFrom(com.google.firestore.bundle.BundleMetadata other) {
if (other == com.google.firestore.bundle.BundleMetadata.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
Expand Down Expand Up @@ -665,11 +665,11 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.firestore.proto.BundleMetadata parsedMessage = null;
com.google.firestore.bundle.BundleMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.firestore.proto.BundleMetadata) e.getUnfinishedMessage();
parsedMessage = (com.google.firestore.bundle.BundleMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
Expand Down Expand Up @@ -1135,17 +1135,17 @@ public final Builder mergeUnknownFields(
return super.mergeUnknownFields(unknownFields);
}

// @@protoc_insertion_point(builder_scope:firestore.BundleMetadata)
// @@protoc_insertion_point(builder_scope:google.firestore.bundle.BundleMetadata)
}

// @@protoc_insertion_point(class_scope:firestore.BundleMetadata)
private static final com.google.firestore.proto.BundleMetadata DEFAULT_INSTANCE;
// @@protoc_insertion_point(class_scope:google.firestore.bundle.BundleMetadata)
private static final com.google.firestore.bundle.BundleMetadata DEFAULT_INSTANCE;

static {
DEFAULT_INSTANCE = new com.google.firestore.proto.BundleMetadata();
DEFAULT_INSTANCE = new com.google.firestore.bundle.BundleMetadata();
}

public static com.google.firestore.proto.BundleMetadata getDefaultInstance() {
public static com.google.firestore.bundle.BundleMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}

Expand All @@ -1170,7 +1170,7 @@ public com.google.protobuf.Parser<BundleMetadata> getParserForType() {
}

@java.lang.Override
public com.google.firestore.proto.BundleMetadata getDefaultInstanceForType() {
public com.google.firestore.bundle.BundleMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}

0 comments on commit 5444fed

Please sign in to comment.