diff --git a/README.md b/README.md index 56c015f7..07e16721 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,17 @@ # Google CloudEvents – Java This repository contains types for CloudEvents issued by Google. + +## Prerequisites + +- Java 7 (or higher) + +## Generate + +Generate libraries: + +```sh +./gen.sh +``` + +Observe the new files in `src/`. \ No newline at end of file diff --git a/gen.sh b/gen.sh new file mode 100755 index 00000000..b30ba172 --- /dev/null +++ b/gen.sh @@ -0,0 +1,67 @@ +#!/bin/bash +# Script to generate the Protobuf classes from googleapis/google-cloudevents +set -e + +echo "~ START" +PROTOBUF_VERSION=3.12.3 + +# protoc is a native application, so we need to download different zip files +# and use different binaries depending on the OS. +echo "- Determining OS type" +case "$OSTYPE" in + darwin*) + PROTOBUF_PLATFORM=osx-x86_64 + PROTOC=tmp/protobuf/bin/protoc + ;; + linux*) + PROTOBUF_PLATFORM=linux-x64_64 + PROTOC=tmp/protobuf/bin/protoc + ;; + win* | msys* | cygwin*) + PROTOBUF_PLATFORM=win64 + PROTOC=tmp/protobuf/bin/protoc.exe + ;; + *) + echo "Unknown OSTYPE: $OSTYPE" + exit 1 +esac + +echo "- Cloning github.com/googleapis/google-cloudevents into tmp" +# For the moment, just clone google-cloudevents. Later we might make +# it a submodule. We clone quietly, and only with a depth of 1 +# as we don't need history. +rm -rf tmp +mkdir -p tmp +git clone https://github.com/googleapis/google-cloudevents tmp/google-cloudevents -q --depth 1 + +# We download a specific version rather than using package managers +# for portability and being able to rely on the version being available +# as soon as it's released on GitHub. +echo "- Downloading protobuf tools" +cd tmp +curl -sSL \ + https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOBUF_VERSION/protoc-$PROTOBUF_VERSION-$PROTOBUF_PLATFORM.zip \ + --output protobuf.zip +(mkdir -p protobuf && cd protobuf && unzip -q ../protobuf.zip) +cd .. +chmod +x $PROTOC + +echo "- Generating src/ from scratch" + +# First delete any previously-generated files if present +rm -rf src 2>/dev/null +mkdir src + +# Generate using protoc +$PROTOC \ + --java_out=src/ \ + -I tmp/protobuf/include \ + -I tmp/google-cloudevents/third_party/googleapis \ + -I tmp/google-cloudevents/proto \ + $(find tmp/google-cloudevents/proto -name data.proto) + +# Delete temp directory +echo "- Removing tmp/" +rm -rf tmp + +echo "~ DONE ✓" diff --git a/src/google/events/cloud/audit/v1/Data.java b/src/google/events/cloud/audit/v1/Data.java new file mode 100644 index 00000000..59830578 --- /dev/null +++ b/src/google/events/cloud/audit/v1/Data.java @@ -0,0 +1,5982 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/events/cloud/audit/v1/data.proto + +package google.events.cloud.audit.v1; + +public final class Data { + private Data() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface AuditLogDataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.cloud.audit.v1.AuditLogData) + com.google.protobuf.MessageOrBuilder { + + /** + *
+ * The name of the API service performing the operation. For example, + * `"datastore.googleapis.com"`. + *+ * + *
string service_name = 7;
+ * @return The serviceName.
+ */
+ java.lang.String getServiceName();
+ /**
+ * + * The name of the API service performing the operation. For example, + * `"datastore.googleapis.com"`. + *+ * + *
string service_name = 7;
+ * @return The bytes for serviceName.
+ */
+ com.google.protobuf.ByteString
+ getServiceNameBytes();
+
+ /**
+ * + * The name of the service method or operation. + * For API calls, this should be the name of the API method. + * For example, + * "google.datastore.v1.Datastore.RunQuery" + * "google.logging.v1.LoggingService.DeleteLog" + *+ * + *
string method_name = 8;
+ * @return The methodName.
+ */
+ java.lang.String getMethodName();
+ /**
+ * + * The name of the service method or operation. + * For API calls, this should be the name of the API method. + * For example, + * "google.datastore.v1.Datastore.RunQuery" + * "google.logging.v1.LoggingService.DeleteLog" + *+ * + *
string method_name = 8;
+ * @return The bytes for methodName.
+ */
+ com.google.protobuf.ByteString
+ getMethodNameBytes();
+
+ /**
+ * + * The resource or collection that is the target of the operation. + * The name is a scheme-less URI, not including the API service name. + * For example: + * "shelves/SHELF_ID/books" + * "shelves/SHELF_ID/books/BOOK_ID" + *+ * + *
string resource_name = 11;
+ * @return The resourceName.
+ */
+ java.lang.String getResourceName();
+ /**
+ * + * The resource or collection that is the target of the operation. + * The name is a scheme-less URI, not including the API service name. + * For example: + * "shelves/SHELF_ID/books" + * "shelves/SHELF_ID/books/BOOK_ID" + *+ * + *
string resource_name = 11;
+ * @return The bytes for resourceName.
+ */
+ com.google.protobuf.ByteString
+ getResourceNameBytes();
+
+ /**
+ * + * The number of items returned from a List or Query API method, + * if applicable. + *+ * + *
int64 num_response_items = 12;
+ * @return The numResponseItems.
+ */
+ long getNumResponseItems();
+
+ /**
+ * + * The status of the overall operation. + *+ * + *
.google.rpc.Status status = 2;
+ * @return Whether the status field is set.
+ */
+ boolean hasStatus();
+ /**
+ * + * The status of the overall operation. + *+ * + *
.google.rpc.Status status = 2;
+ * @return The status.
+ */
+ com.google.rpc.Status getStatus();
+ /**
+ * + * The status of the overall operation. + *+ * + *
.google.rpc.Status status = 2;
+ */
+ com.google.rpc.StatusOrBuilder getStatusOrBuilder();
+
+ /**
+ * + * Authentication information. + *+ * + *
.google.events.cloud.audit.v1.AuthenticationInfo authentication_info = 3;
+ * @return Whether the authenticationInfo field is set.
+ */
+ boolean hasAuthenticationInfo();
+ /**
+ * + * Authentication information. + *+ * + *
.google.events.cloud.audit.v1.AuthenticationInfo authentication_info = 3;
+ * @return The authenticationInfo.
+ */
+ google.events.cloud.audit.v1.Data.AuthenticationInfo getAuthenticationInfo();
+ /**
+ * + * Authentication information. + *+ * + *
.google.events.cloud.audit.v1.AuthenticationInfo authentication_info = 3;
+ */
+ google.events.cloud.audit.v1.Data.AuthenticationInfoOrBuilder getAuthenticationInfoOrBuilder();
+
+ /**
+ * + * Authorization information. If there are multiple + * resources or permissions involved, then there is + * one AuthorizationInfo element for each {resource, permission} tuple. + *+ * + *
repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9;
+ */
+ java.util.List+ * Authorization information. If there are multiple + * resources or permissions involved, then there is + * one AuthorizationInfo element for each {resource, permission} tuple. + *+ * + *
repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9;
+ */
+ google.events.cloud.audit.v1.Data.AuthorizationInfo getAuthorizationInfo(int index);
+ /**
+ * + * Authorization information. If there are multiple + * resources or permissions involved, then there is + * one AuthorizationInfo element for each {resource, permission} tuple. + *+ * + *
repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9;
+ */
+ int getAuthorizationInfoCount();
+ /**
+ * + * Authorization information. If there are multiple + * resources or permissions involved, then there is + * one AuthorizationInfo element for each {resource, permission} tuple. + *+ * + *
repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9;
+ */
+ java.util.List extends google.events.cloud.audit.v1.Data.AuthorizationInfoOrBuilder>
+ getAuthorizationInfoOrBuilderList();
+ /**
+ * + * Authorization information. If there are multiple + * resources or permissions involved, then there is + * one AuthorizationInfo element for each {resource, permission} tuple. + *+ * + *
repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9;
+ */
+ google.events.cloud.audit.v1.Data.AuthorizationInfoOrBuilder getAuthorizationInfoOrBuilder(
+ int index);
+
+ /**
+ * + * Metadata about the operation. + *+ * + *
.google.events.cloud.audit.v1.RequestMetadata request_metadata = 4;
+ * @return Whether the requestMetadata field is set.
+ */
+ boolean hasRequestMetadata();
+ /**
+ * + * Metadata about the operation. + *+ * + *
.google.events.cloud.audit.v1.RequestMetadata request_metadata = 4;
+ * @return The requestMetadata.
+ */
+ google.events.cloud.audit.v1.Data.RequestMetadata getRequestMetadata();
+ /**
+ * + * Metadata about the operation. + *+ * + *
.google.events.cloud.audit.v1.RequestMetadata request_metadata = 4;
+ */
+ google.events.cloud.audit.v1.Data.RequestMetadataOrBuilder getRequestMetadataOrBuilder();
+
+ /**
+ * + * The operation request. This may not include all request parameters, + * such as those that are too large, privacy-sensitive, or duplicated + * elsewhere in the log record. + * It should never include user-generated data, such as file contents. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct request = 16;
+ * @return Whether the request field is set.
+ */
+ boolean hasRequest();
+ /**
+ * + * The operation request. This may not include all request parameters, + * such as those that are too large, privacy-sensitive, or duplicated + * elsewhere in the log record. + * It should never include user-generated data, such as file contents. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct request = 16;
+ * @return The request.
+ */
+ com.google.protobuf.Struct getRequest();
+ /**
+ * + * The operation request. This may not include all request parameters, + * such as those that are too large, privacy-sensitive, or duplicated + * elsewhere in the log record. + * It should never include user-generated data, such as file contents. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct request = 16;
+ */
+ com.google.protobuf.StructOrBuilder getRequestOrBuilder();
+
+ /**
+ * + * The operation response. This may not include all response elements, + * such as those that are too large, privacy-sensitive, or duplicated + * elsewhere in the log record. + * It should never include user-generated data, such as file contents. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct response = 17;
+ * @return Whether the response field is set.
+ */
+ boolean hasResponse();
+ /**
+ * + * The operation response. This may not include all response elements, + * such as those that are too large, privacy-sensitive, or duplicated + * elsewhere in the log record. + * It should never include user-generated data, such as file contents. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct response = 17;
+ * @return The response.
+ */
+ com.google.protobuf.Struct getResponse();
+ /**
+ * + * The operation response. This may not include all response elements, + * such as those that are too large, privacy-sensitive, or duplicated + * elsewhere in the log record. + * It should never include user-generated data, such as file contents. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct response = 17;
+ */
+ com.google.protobuf.StructOrBuilder getResponseOrBuilder();
+
+ /**
+ * + * Other service-specific data about the request, response, and other + * activities. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct service_data = 15;
+ * @return Whether the serviceData field is set.
+ */
+ boolean hasServiceData();
+ /**
+ * + * Other service-specific data about the request, response, and other + * activities. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct service_data = 15;
+ * @return The serviceData.
+ */
+ com.google.protobuf.Struct getServiceData();
+ /**
+ * + * Other service-specific data about the request, response, and other + * activities. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct service_data = 15;
+ */
+ com.google.protobuf.StructOrBuilder getServiceDataOrBuilder();
+ }
+ /**
+ * + * Common audit log format for Google Cloud Platform API operations. + * Copied from + * https://github.com/googleapis/googleapis/blob/master/google/cloud/audit/audit_log.proto, + * but changing service_data from Any to Struct. + *+ * + * Protobuf type {@code google.events.cloud.audit.v1.AuditLogData} + */ + public static final class AuditLogData extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.cloud.audit.v1.AuditLogData) + AuditLogDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use AuditLogData.newBuilder() to construct. + private AuditLogData(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private AuditLogData() { + serviceName_ = ""; + methodName_ = ""; + resourceName_ = ""; + authorizationInfo_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuditLogData(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuditLogData( + 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 18: { + com.google.rpc.Status.Builder subBuilder = null; + if (status_ != null) { + subBuilder = status_.toBuilder(); + } + status_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(status_); + status_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + google.events.cloud.audit.v1.Data.AuthenticationInfo.Builder subBuilder = null; + if (authenticationInfo_ != null) { + subBuilder = authenticationInfo_.toBuilder(); + } + authenticationInfo_ = input.readMessage(google.events.cloud.audit.v1.Data.AuthenticationInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(authenticationInfo_); + authenticationInfo_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + google.events.cloud.audit.v1.Data.RequestMetadata.Builder subBuilder = null; + if (requestMetadata_ != null) { + subBuilder = requestMetadata_.toBuilder(); + } + requestMetadata_ = input.readMessage(google.events.cloud.audit.v1.Data.RequestMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(requestMetadata_); + requestMetadata_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + serviceName_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + methodName_ = s; + break; + } + case 74: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + authorizationInfo_ = new java.util.ArrayList
+ * The name of the API service performing the operation. For example, + * `"datastore.googleapis.com"`. + *+ * + *
string service_name = 7;
+ * @return The serviceName.
+ */
+ @java.lang.Override
+ public java.lang.String getServiceName() {
+ java.lang.Object ref = serviceName_;
+ 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();
+ serviceName_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * The name of the API service performing the operation. For example, + * `"datastore.googleapis.com"`. + *+ * + *
string service_name = 7;
+ * @return The bytes for serviceName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getServiceNameBytes() {
+ java.lang.Object ref = serviceName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ serviceName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int METHOD_NAME_FIELD_NUMBER = 8;
+ private volatile java.lang.Object methodName_;
+ /**
+ * + * The name of the service method or operation. + * For API calls, this should be the name of the API method. + * For example, + * "google.datastore.v1.Datastore.RunQuery" + * "google.logging.v1.LoggingService.DeleteLog" + *+ * + *
string method_name = 8;
+ * @return The methodName.
+ */
+ @java.lang.Override
+ public java.lang.String getMethodName() {
+ java.lang.Object ref = methodName_;
+ 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();
+ methodName_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * The name of the service method or operation. + * For API calls, this should be the name of the API method. + * For example, + * "google.datastore.v1.Datastore.RunQuery" + * "google.logging.v1.LoggingService.DeleteLog" + *+ * + *
string method_name = 8;
+ * @return The bytes for methodName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMethodNameBytes() {
+ java.lang.Object ref = methodName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ methodName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int RESOURCE_NAME_FIELD_NUMBER = 11;
+ private volatile java.lang.Object resourceName_;
+ /**
+ * + * The resource or collection that is the target of the operation. + * The name is a scheme-less URI, not including the API service name. + * For example: + * "shelves/SHELF_ID/books" + * "shelves/SHELF_ID/books/BOOK_ID" + *+ * + *
string resource_name = 11;
+ * @return The resourceName.
+ */
+ @java.lang.Override
+ public java.lang.String getResourceName() {
+ java.lang.Object ref = resourceName_;
+ 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();
+ resourceName_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * The resource or collection that is the target of the operation. + * The name is a scheme-less URI, not including the API service name. + * For example: + * "shelves/SHELF_ID/books" + * "shelves/SHELF_ID/books/BOOK_ID" + *+ * + *
string resource_name = 11;
+ * @return The bytes for resourceName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getResourceNameBytes() {
+ java.lang.Object ref = resourceName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ resourceName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int NUM_RESPONSE_ITEMS_FIELD_NUMBER = 12;
+ private long numResponseItems_;
+ /**
+ * + * The number of items returned from a List or Query API method, + * if applicable. + *+ * + *
int64 num_response_items = 12;
+ * @return The numResponseItems.
+ */
+ @java.lang.Override
+ public long getNumResponseItems() {
+ return numResponseItems_;
+ }
+
+ public static final int STATUS_FIELD_NUMBER = 2;
+ private com.google.rpc.Status status_;
+ /**
+ * + * The status of the overall operation. + *+ * + *
.google.rpc.Status status = 2;
+ * @return Whether the status field is set.
+ */
+ @java.lang.Override
+ public boolean hasStatus() {
+ return status_ != null;
+ }
+ /**
+ * + * The status of the overall operation. + *+ * + *
.google.rpc.Status status = 2;
+ * @return The status.
+ */
+ @java.lang.Override
+ public com.google.rpc.Status getStatus() {
+ return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
+ }
+ /**
+ * + * The status of the overall operation. + *+ * + *
.google.rpc.Status status = 2;
+ */
+ @java.lang.Override
+ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
+ return getStatus();
+ }
+
+ public static final int AUTHENTICATION_INFO_FIELD_NUMBER = 3;
+ private google.events.cloud.audit.v1.Data.AuthenticationInfo authenticationInfo_;
+ /**
+ * + * Authentication information. + *+ * + *
.google.events.cloud.audit.v1.AuthenticationInfo authentication_info = 3;
+ * @return Whether the authenticationInfo field is set.
+ */
+ @java.lang.Override
+ public boolean hasAuthenticationInfo() {
+ return authenticationInfo_ != null;
+ }
+ /**
+ * + * Authentication information. + *+ * + *
.google.events.cloud.audit.v1.AuthenticationInfo authentication_info = 3;
+ * @return The authenticationInfo.
+ */
+ @java.lang.Override
+ public google.events.cloud.audit.v1.Data.AuthenticationInfo getAuthenticationInfo() {
+ return authenticationInfo_ == null ? google.events.cloud.audit.v1.Data.AuthenticationInfo.getDefaultInstance() : authenticationInfo_;
+ }
+ /**
+ * + * Authentication information. + *+ * + *
.google.events.cloud.audit.v1.AuthenticationInfo authentication_info = 3;
+ */
+ @java.lang.Override
+ public google.events.cloud.audit.v1.Data.AuthenticationInfoOrBuilder getAuthenticationInfoOrBuilder() {
+ return getAuthenticationInfo();
+ }
+
+ public static final int AUTHORIZATION_INFO_FIELD_NUMBER = 9;
+ private java.util.List+ * Authorization information. If there are multiple + * resources or permissions involved, then there is + * one AuthorizationInfo element for each {resource, permission} tuple. + *+ * + *
repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9;
+ */
+ @java.lang.Override
+ public java.util.List+ * Authorization information. If there are multiple + * resources or permissions involved, then there is + * one AuthorizationInfo element for each {resource, permission} tuple. + *+ * + *
repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9;
+ */
+ @java.lang.Override
+ public java.util.List extends google.events.cloud.audit.v1.Data.AuthorizationInfoOrBuilder>
+ getAuthorizationInfoOrBuilderList() {
+ return authorizationInfo_;
+ }
+ /**
+ * + * Authorization information. If there are multiple + * resources or permissions involved, then there is + * one AuthorizationInfo element for each {resource, permission} tuple. + *+ * + *
repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9;
+ */
+ @java.lang.Override
+ public int getAuthorizationInfoCount() {
+ return authorizationInfo_.size();
+ }
+ /**
+ * + * Authorization information. If there are multiple + * resources or permissions involved, then there is + * one AuthorizationInfo element for each {resource, permission} tuple. + *+ * + *
repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9;
+ */
+ @java.lang.Override
+ public google.events.cloud.audit.v1.Data.AuthorizationInfo getAuthorizationInfo(int index) {
+ return authorizationInfo_.get(index);
+ }
+ /**
+ * + * Authorization information. If there are multiple + * resources or permissions involved, then there is + * one AuthorizationInfo element for each {resource, permission} tuple. + *+ * + *
repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9;
+ */
+ @java.lang.Override
+ public google.events.cloud.audit.v1.Data.AuthorizationInfoOrBuilder getAuthorizationInfoOrBuilder(
+ int index) {
+ return authorizationInfo_.get(index);
+ }
+
+ public static final int REQUEST_METADATA_FIELD_NUMBER = 4;
+ private google.events.cloud.audit.v1.Data.RequestMetadata requestMetadata_;
+ /**
+ * + * Metadata about the operation. + *+ * + *
.google.events.cloud.audit.v1.RequestMetadata request_metadata = 4;
+ * @return Whether the requestMetadata field is set.
+ */
+ @java.lang.Override
+ public boolean hasRequestMetadata() {
+ return requestMetadata_ != null;
+ }
+ /**
+ * + * Metadata about the operation. + *+ * + *
.google.events.cloud.audit.v1.RequestMetadata request_metadata = 4;
+ * @return The requestMetadata.
+ */
+ @java.lang.Override
+ public google.events.cloud.audit.v1.Data.RequestMetadata getRequestMetadata() {
+ return requestMetadata_ == null ? google.events.cloud.audit.v1.Data.RequestMetadata.getDefaultInstance() : requestMetadata_;
+ }
+ /**
+ * + * Metadata about the operation. + *+ * + *
.google.events.cloud.audit.v1.RequestMetadata request_metadata = 4;
+ */
+ @java.lang.Override
+ public google.events.cloud.audit.v1.Data.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
+ return getRequestMetadata();
+ }
+
+ public static final int REQUEST_FIELD_NUMBER = 16;
+ private com.google.protobuf.Struct request_;
+ /**
+ * + * The operation request. This may not include all request parameters, + * such as those that are too large, privacy-sensitive, or duplicated + * elsewhere in the log record. + * It should never include user-generated data, such as file contents. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct request = 16;
+ * @return Whether the request field is set.
+ */
+ @java.lang.Override
+ public boolean hasRequest() {
+ return request_ != null;
+ }
+ /**
+ * + * The operation request. This may not include all request parameters, + * such as those that are too large, privacy-sensitive, or duplicated + * elsewhere in the log record. + * It should never include user-generated data, such as file contents. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct request = 16;
+ * @return The request.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Struct getRequest() {
+ return request_ == null ? com.google.protobuf.Struct.getDefaultInstance() : request_;
+ }
+ /**
+ * + * The operation request. This may not include all request parameters, + * such as those that are too large, privacy-sensitive, or duplicated + * elsewhere in the log record. + * It should never include user-generated data, such as file contents. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct request = 16;
+ */
+ @java.lang.Override
+ public com.google.protobuf.StructOrBuilder getRequestOrBuilder() {
+ return getRequest();
+ }
+
+ public static final int RESPONSE_FIELD_NUMBER = 17;
+ private com.google.protobuf.Struct response_;
+ /**
+ * + * The operation response. This may not include all response elements, + * such as those that are too large, privacy-sensitive, or duplicated + * elsewhere in the log record. + * It should never include user-generated data, such as file contents. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct response = 17;
+ * @return Whether the response field is set.
+ */
+ @java.lang.Override
+ public boolean hasResponse() {
+ return response_ != null;
+ }
+ /**
+ * + * The operation response. This may not include all response elements, + * such as those that are too large, privacy-sensitive, or duplicated + * elsewhere in the log record. + * It should never include user-generated data, such as file contents. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct response = 17;
+ * @return The response.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Struct getResponse() {
+ return response_ == null ? com.google.protobuf.Struct.getDefaultInstance() : response_;
+ }
+ /**
+ * + * The operation response. This may not include all response elements, + * such as those that are too large, privacy-sensitive, or duplicated + * elsewhere in the log record. + * It should never include user-generated data, such as file contents. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct response = 17;
+ */
+ @java.lang.Override
+ public com.google.protobuf.StructOrBuilder getResponseOrBuilder() {
+ return getResponse();
+ }
+
+ public static final int SERVICE_DATA_FIELD_NUMBER = 15;
+ private com.google.protobuf.Struct serviceData_;
+ /**
+ * + * Other service-specific data about the request, response, and other + * activities. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct service_data = 15;
+ * @return Whether the serviceData field is set.
+ */
+ @java.lang.Override
+ public boolean hasServiceData() {
+ return serviceData_ != null;
+ }
+ /**
+ * + * Other service-specific data about the request, response, and other + * activities. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct service_data = 15;
+ * @return The serviceData.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Struct getServiceData() {
+ return serviceData_ == null ? com.google.protobuf.Struct.getDefaultInstance() : serviceData_;
+ }
+ /**
+ * + * Other service-specific data about the request, response, and other + * activities. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct service_data = 15;
+ */
+ @java.lang.Override
+ public com.google.protobuf.StructOrBuilder getServiceDataOrBuilder() {
+ return getServiceData();
+ }
+
+ 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 (status_ != null) {
+ output.writeMessage(2, getStatus());
+ }
+ if (authenticationInfo_ != null) {
+ output.writeMessage(3, getAuthenticationInfo());
+ }
+ if (requestMetadata_ != null) {
+ output.writeMessage(4, getRequestMetadata());
+ }
+ if (!getServiceNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 7, serviceName_);
+ }
+ if (!getMethodNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 8, methodName_);
+ }
+ for (int i = 0; i < authorizationInfo_.size(); i++) {
+ output.writeMessage(9, authorizationInfo_.get(i));
+ }
+ if (!getResourceNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 11, resourceName_);
+ }
+ if (numResponseItems_ != 0L) {
+ output.writeInt64(12, numResponseItems_);
+ }
+ if (serviceData_ != null) {
+ output.writeMessage(15, getServiceData());
+ }
+ if (request_ != null) {
+ output.writeMessage(16, getRequest());
+ }
+ if (response_ != null) {
+ output.writeMessage(17, getResponse());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (status_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getStatus());
+ }
+ if (authenticationInfo_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, getAuthenticationInfo());
+ }
+ if (requestMetadata_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(4, getRequestMetadata());
+ }
+ if (!getServiceNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, serviceName_);
+ }
+ if (!getMethodNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, methodName_);
+ }
+ for (int i = 0; i < authorizationInfo_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(9, authorizationInfo_.get(i));
+ }
+ if (!getResourceNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, resourceName_);
+ }
+ if (numResponseItems_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(12, numResponseItems_);
+ }
+ if (serviceData_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(15, getServiceData());
+ }
+ if (request_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(16, getRequest());
+ }
+ if (response_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(17, getResponse());
+ }
+ 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 google.events.cloud.audit.v1.Data.AuditLogData)) {
+ return super.equals(obj);
+ }
+ google.events.cloud.audit.v1.Data.AuditLogData other = (google.events.cloud.audit.v1.Data.AuditLogData) obj;
+
+ if (!getServiceName()
+ .equals(other.getServiceName())) return false;
+ if (!getMethodName()
+ .equals(other.getMethodName())) return false;
+ if (!getResourceName()
+ .equals(other.getResourceName())) return false;
+ if (getNumResponseItems()
+ != other.getNumResponseItems()) return false;
+ if (hasStatus() != other.hasStatus()) return false;
+ if (hasStatus()) {
+ if (!getStatus()
+ .equals(other.getStatus())) return false;
+ }
+ if (hasAuthenticationInfo() != other.hasAuthenticationInfo()) return false;
+ if (hasAuthenticationInfo()) {
+ if (!getAuthenticationInfo()
+ .equals(other.getAuthenticationInfo())) return false;
+ }
+ if (!getAuthorizationInfoList()
+ .equals(other.getAuthorizationInfoList())) return false;
+ if (hasRequestMetadata() != other.hasRequestMetadata()) return false;
+ if (hasRequestMetadata()) {
+ if (!getRequestMetadata()
+ .equals(other.getRequestMetadata())) return false;
+ }
+ if (hasRequest() != other.hasRequest()) return false;
+ if (hasRequest()) {
+ if (!getRequest()
+ .equals(other.getRequest())) return false;
+ }
+ if (hasResponse() != other.hasResponse()) return false;
+ if (hasResponse()) {
+ if (!getResponse()
+ .equals(other.getResponse())) return false;
+ }
+ if (hasServiceData() != other.hasServiceData()) return false;
+ if (hasServiceData()) {
+ if (!getServiceData()
+ .equals(other.getServiceData())) 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) + SERVICE_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getServiceName().hashCode();
+ hash = (37 * hash) + METHOD_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getMethodName().hashCode();
+ hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getResourceName().hashCode();
+ hash = (37 * hash) + NUM_RESPONSE_ITEMS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getNumResponseItems());
+ if (hasStatus()) {
+ hash = (37 * hash) + STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + getStatus().hashCode();
+ }
+ if (hasAuthenticationInfo()) {
+ hash = (37 * hash) + AUTHENTICATION_INFO_FIELD_NUMBER;
+ hash = (53 * hash) + getAuthenticationInfo().hashCode();
+ }
+ if (getAuthorizationInfoCount() > 0) {
+ hash = (37 * hash) + AUTHORIZATION_INFO_FIELD_NUMBER;
+ hash = (53 * hash) + getAuthorizationInfoList().hashCode();
+ }
+ if (hasRequestMetadata()) {
+ hash = (37 * hash) + REQUEST_METADATA_FIELD_NUMBER;
+ hash = (53 * hash) + getRequestMetadata().hashCode();
+ }
+ if (hasRequest()) {
+ hash = (37 * hash) + REQUEST_FIELD_NUMBER;
+ hash = (53 * hash) + getRequest().hashCode();
+ }
+ if (hasResponse()) {
+ hash = (37 * hash) + RESPONSE_FIELD_NUMBER;
+ hash = (53 * hash) + getResponse().hashCode();
+ }
+ if (hasServiceData()) {
+ hash = (37 * hash) + SERVICE_DATA_FIELD_NUMBER;
+ hash = (53 * hash) + getServiceData().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static google.events.cloud.audit.v1.Data.AuditLogData parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static google.events.cloud.audit.v1.Data.AuditLogData parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static google.events.cloud.audit.v1.Data.AuditLogData parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static google.events.cloud.audit.v1.Data.AuditLogData parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static google.events.cloud.audit.v1.Data.AuditLogData parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static google.events.cloud.audit.v1.Data.AuditLogData parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static google.events.cloud.audit.v1.Data.AuditLogData parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static google.events.cloud.audit.v1.Data.AuditLogData 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 google.events.cloud.audit.v1.Data.AuditLogData parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static google.events.cloud.audit.v1.Data.AuditLogData 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 google.events.cloud.audit.v1.Data.AuditLogData parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static google.events.cloud.audit.v1.Data.AuditLogData 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(google.events.cloud.audit.v1.Data.AuditLogData 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;
+ }
+ /**
+ * + * Common audit log format for Google Cloud Platform API operations. + * Copied from + * https://github.com/googleapis/googleapis/blob/master/google/cloud/audit/audit_log.proto, + * but changing service_data from Any to Struct. + *+ * + * Protobuf type {@code google.events.cloud.audit.v1.AuditLogData} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * The name of the API service performing the operation. For example, + * `"datastore.googleapis.com"`. + *+ * + *
string service_name = 7;
+ * @return The serviceName.
+ */
+ public java.lang.String getServiceName() {
+ java.lang.Object ref = serviceName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ serviceName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * The name of the API service performing the operation. For example, + * `"datastore.googleapis.com"`. + *+ * + *
string service_name = 7;
+ * @return The bytes for serviceName.
+ */
+ public com.google.protobuf.ByteString
+ getServiceNameBytes() {
+ java.lang.Object ref = serviceName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ serviceName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * The name of the API service performing the operation. For example, + * `"datastore.googleapis.com"`. + *+ * + *
string service_name = 7;
+ * @param value The serviceName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setServiceName(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ serviceName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The name of the API service performing the operation. For example, + * `"datastore.googleapis.com"`. + *+ * + *
string service_name = 7;
+ * @return This builder for chaining.
+ */
+ public Builder clearServiceName() {
+
+ serviceName_ = getDefaultInstance().getServiceName();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The name of the API service performing the operation. For example, + * `"datastore.googleapis.com"`. + *+ * + *
string service_name = 7;
+ * @param value The bytes for serviceName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setServiceNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ serviceName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object methodName_ = "";
+ /**
+ * + * The name of the service method or operation. + * For API calls, this should be the name of the API method. + * For example, + * "google.datastore.v1.Datastore.RunQuery" + * "google.logging.v1.LoggingService.DeleteLog" + *+ * + *
string method_name = 8;
+ * @return The methodName.
+ */
+ public java.lang.String getMethodName() {
+ java.lang.Object ref = methodName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ methodName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * The name of the service method or operation. + * For API calls, this should be the name of the API method. + * For example, + * "google.datastore.v1.Datastore.RunQuery" + * "google.logging.v1.LoggingService.DeleteLog" + *+ * + *
string method_name = 8;
+ * @return The bytes for methodName.
+ */
+ public com.google.protobuf.ByteString
+ getMethodNameBytes() {
+ java.lang.Object ref = methodName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ methodName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * The name of the service method or operation. + * For API calls, this should be the name of the API method. + * For example, + * "google.datastore.v1.Datastore.RunQuery" + * "google.logging.v1.LoggingService.DeleteLog" + *+ * + *
string method_name = 8;
+ * @param value The methodName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMethodName(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ methodName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The name of the service method or operation. + * For API calls, this should be the name of the API method. + * For example, + * "google.datastore.v1.Datastore.RunQuery" + * "google.logging.v1.LoggingService.DeleteLog" + *+ * + *
string method_name = 8;
+ * @return This builder for chaining.
+ */
+ public Builder clearMethodName() {
+
+ methodName_ = getDefaultInstance().getMethodName();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The name of the service method or operation. + * For API calls, this should be the name of the API method. + * For example, + * "google.datastore.v1.Datastore.RunQuery" + * "google.logging.v1.LoggingService.DeleteLog" + *+ * + *
string method_name = 8;
+ * @param value The bytes for methodName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMethodNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ methodName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object resourceName_ = "";
+ /**
+ * + * The resource or collection that is the target of the operation. + * The name is a scheme-less URI, not including the API service name. + * For example: + * "shelves/SHELF_ID/books" + * "shelves/SHELF_ID/books/BOOK_ID" + *+ * + *
string resource_name = 11;
+ * @return The resourceName.
+ */
+ public java.lang.String getResourceName() {
+ java.lang.Object ref = resourceName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ resourceName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * The resource or collection that is the target of the operation. + * The name is a scheme-less URI, not including the API service name. + * For example: + * "shelves/SHELF_ID/books" + * "shelves/SHELF_ID/books/BOOK_ID" + *+ * + *
string resource_name = 11;
+ * @return The bytes for resourceName.
+ */
+ public com.google.protobuf.ByteString
+ getResourceNameBytes() {
+ java.lang.Object ref = resourceName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ resourceName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * The resource or collection that is the target of the operation. + * The name is a scheme-less URI, not including the API service name. + * For example: + * "shelves/SHELF_ID/books" + * "shelves/SHELF_ID/books/BOOK_ID" + *+ * + *
string resource_name = 11;
+ * @param value The resourceName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResourceName(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ resourceName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The resource or collection that is the target of the operation. + * The name is a scheme-less URI, not including the API service name. + * For example: + * "shelves/SHELF_ID/books" + * "shelves/SHELF_ID/books/BOOK_ID" + *+ * + *
string resource_name = 11;
+ * @return This builder for chaining.
+ */
+ public Builder clearResourceName() {
+
+ resourceName_ = getDefaultInstance().getResourceName();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The resource or collection that is the target of the operation. + * The name is a scheme-less URI, not including the API service name. + * For example: + * "shelves/SHELF_ID/books" + * "shelves/SHELF_ID/books/BOOK_ID" + *+ * + *
string resource_name = 11;
+ * @param value The bytes for resourceName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResourceNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ resourceName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private long numResponseItems_ ;
+ /**
+ * + * The number of items returned from a List or Query API method, + * if applicable. + *+ * + *
int64 num_response_items = 12;
+ * @return The numResponseItems.
+ */
+ @java.lang.Override
+ public long getNumResponseItems() {
+ return numResponseItems_;
+ }
+ /**
+ * + * The number of items returned from a List or Query API method, + * if applicable. + *+ * + *
int64 num_response_items = 12;
+ * @param value The numResponseItems to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNumResponseItems(long value) {
+
+ numResponseItems_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The number of items returned from a List or Query API method, + * if applicable. + *+ * + *
int64 num_response_items = 12;
+ * @return This builder for chaining.
+ */
+ public Builder clearNumResponseItems() {
+
+ numResponseItems_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private com.google.rpc.Status status_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_;
+ /**
+ * + * The status of the overall operation. + *+ * + *
.google.rpc.Status status = 2;
+ * @return Whether the status field is set.
+ */
+ public boolean hasStatus() {
+ return statusBuilder_ != null || status_ != null;
+ }
+ /**
+ * + * The status of the overall operation. + *+ * + *
.google.rpc.Status status = 2;
+ * @return The status.
+ */
+ public com.google.rpc.Status getStatus() {
+ if (statusBuilder_ == null) {
+ return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
+ } else {
+ return statusBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * The status of the overall operation. + *+ * + *
.google.rpc.Status status = 2;
+ */
+ public Builder setStatus(com.google.rpc.Status value) {
+ if (statusBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ status_ = value;
+ onChanged();
+ } else {
+ statusBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * The status of the overall operation. + *+ * + *
.google.rpc.Status status = 2;
+ */
+ public Builder setStatus(
+ com.google.rpc.Status.Builder builderForValue) {
+ if (statusBuilder_ == null) {
+ status_ = builderForValue.build();
+ onChanged();
+ } else {
+ statusBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * The status of the overall operation. + *+ * + *
.google.rpc.Status status = 2;
+ */
+ public Builder mergeStatus(com.google.rpc.Status value) {
+ if (statusBuilder_ == null) {
+ if (status_ != null) {
+ status_ =
+ com.google.rpc.Status.newBuilder(status_).mergeFrom(value).buildPartial();
+ } else {
+ status_ = value;
+ }
+ onChanged();
+ } else {
+ statusBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * The status of the overall operation. + *+ * + *
.google.rpc.Status status = 2;
+ */
+ public Builder clearStatus() {
+ if (statusBuilder_ == null) {
+ status_ = null;
+ onChanged();
+ } else {
+ status_ = null;
+ statusBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * The status of the overall operation. + *+ * + *
.google.rpc.Status status = 2;
+ */
+ public com.google.rpc.Status.Builder getStatusBuilder() {
+
+ onChanged();
+ return getStatusFieldBuilder().getBuilder();
+ }
+ /**
+ * + * The status of the overall operation. + *+ * + *
.google.rpc.Status status = 2;
+ */
+ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
+ if (statusBuilder_ != null) {
+ return statusBuilder_.getMessageOrBuilder();
+ } else {
+ return status_ == null ?
+ com.google.rpc.Status.getDefaultInstance() : status_;
+ }
+ }
+ /**
+ * + * The status of the overall operation. + *+ * + *
.google.rpc.Status status = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+ getStatusFieldBuilder() {
+ if (statusBuilder_ == null) {
+ statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
+ getStatus(),
+ getParentForChildren(),
+ isClean());
+ status_ = null;
+ }
+ return statusBuilder_;
+ }
+
+ private google.events.cloud.audit.v1.Data.AuthenticationInfo authenticationInfo_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ google.events.cloud.audit.v1.Data.AuthenticationInfo, google.events.cloud.audit.v1.Data.AuthenticationInfo.Builder, google.events.cloud.audit.v1.Data.AuthenticationInfoOrBuilder> authenticationInfoBuilder_;
+ /**
+ * + * Authentication information. + *+ * + *
.google.events.cloud.audit.v1.AuthenticationInfo authentication_info = 3;
+ * @return Whether the authenticationInfo field is set.
+ */
+ public boolean hasAuthenticationInfo() {
+ return authenticationInfoBuilder_ != null || authenticationInfo_ != null;
+ }
+ /**
+ * + * Authentication information. + *+ * + *
.google.events.cloud.audit.v1.AuthenticationInfo authentication_info = 3;
+ * @return The authenticationInfo.
+ */
+ public google.events.cloud.audit.v1.Data.AuthenticationInfo getAuthenticationInfo() {
+ if (authenticationInfoBuilder_ == null) {
+ return authenticationInfo_ == null ? google.events.cloud.audit.v1.Data.AuthenticationInfo.getDefaultInstance() : authenticationInfo_;
+ } else {
+ return authenticationInfoBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * Authentication information. + *+ * + *
.google.events.cloud.audit.v1.AuthenticationInfo authentication_info = 3;
+ */
+ public Builder setAuthenticationInfo(google.events.cloud.audit.v1.Data.AuthenticationInfo value) {
+ if (authenticationInfoBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ authenticationInfo_ = value;
+ onChanged();
+ } else {
+ authenticationInfoBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * Authentication information. + *+ * + *
.google.events.cloud.audit.v1.AuthenticationInfo authentication_info = 3;
+ */
+ public Builder setAuthenticationInfo(
+ google.events.cloud.audit.v1.Data.AuthenticationInfo.Builder builderForValue) {
+ if (authenticationInfoBuilder_ == null) {
+ authenticationInfo_ = builderForValue.build();
+ onChanged();
+ } else {
+ authenticationInfoBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * Authentication information. + *+ * + *
.google.events.cloud.audit.v1.AuthenticationInfo authentication_info = 3;
+ */
+ public Builder mergeAuthenticationInfo(google.events.cloud.audit.v1.Data.AuthenticationInfo value) {
+ if (authenticationInfoBuilder_ == null) {
+ if (authenticationInfo_ != null) {
+ authenticationInfo_ =
+ google.events.cloud.audit.v1.Data.AuthenticationInfo.newBuilder(authenticationInfo_).mergeFrom(value).buildPartial();
+ } else {
+ authenticationInfo_ = value;
+ }
+ onChanged();
+ } else {
+ authenticationInfoBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * Authentication information. + *+ * + *
.google.events.cloud.audit.v1.AuthenticationInfo authentication_info = 3;
+ */
+ public Builder clearAuthenticationInfo() {
+ if (authenticationInfoBuilder_ == null) {
+ authenticationInfo_ = null;
+ onChanged();
+ } else {
+ authenticationInfo_ = null;
+ authenticationInfoBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * Authentication information. + *+ * + *
.google.events.cloud.audit.v1.AuthenticationInfo authentication_info = 3;
+ */
+ public google.events.cloud.audit.v1.Data.AuthenticationInfo.Builder getAuthenticationInfoBuilder() {
+
+ onChanged();
+ return getAuthenticationInfoFieldBuilder().getBuilder();
+ }
+ /**
+ * + * Authentication information. + *+ * + *
.google.events.cloud.audit.v1.AuthenticationInfo authentication_info = 3;
+ */
+ public google.events.cloud.audit.v1.Data.AuthenticationInfoOrBuilder getAuthenticationInfoOrBuilder() {
+ if (authenticationInfoBuilder_ != null) {
+ return authenticationInfoBuilder_.getMessageOrBuilder();
+ } else {
+ return authenticationInfo_ == null ?
+ google.events.cloud.audit.v1.Data.AuthenticationInfo.getDefaultInstance() : authenticationInfo_;
+ }
+ }
+ /**
+ * + * Authentication information. + *+ * + *
.google.events.cloud.audit.v1.AuthenticationInfo authentication_info = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ google.events.cloud.audit.v1.Data.AuthenticationInfo, google.events.cloud.audit.v1.Data.AuthenticationInfo.Builder, google.events.cloud.audit.v1.Data.AuthenticationInfoOrBuilder>
+ getAuthenticationInfoFieldBuilder() {
+ if (authenticationInfoBuilder_ == null) {
+ authenticationInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ google.events.cloud.audit.v1.Data.AuthenticationInfo, google.events.cloud.audit.v1.Data.AuthenticationInfo.Builder, google.events.cloud.audit.v1.Data.AuthenticationInfoOrBuilder>(
+ getAuthenticationInfo(),
+ getParentForChildren(),
+ isClean());
+ authenticationInfo_ = null;
+ }
+ return authenticationInfoBuilder_;
+ }
+
+ private java.util.List+ * Authorization information. If there are multiple + * resources or permissions involved, then there is + * one AuthorizationInfo element for each {resource, permission} tuple. + *+ * + *
repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9;
+ */
+ public java.util.List+ * Authorization information. If there are multiple + * resources or permissions involved, then there is + * one AuthorizationInfo element for each {resource, permission} tuple. + *+ * + *
repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9;
+ */
+ public int getAuthorizationInfoCount() {
+ if (authorizationInfoBuilder_ == null) {
+ return authorizationInfo_.size();
+ } else {
+ return authorizationInfoBuilder_.getCount();
+ }
+ }
+ /**
+ * + * Authorization information. If there are multiple + * resources or permissions involved, then there is + * one AuthorizationInfo element for each {resource, permission} tuple. + *+ * + *
repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9;
+ */
+ public google.events.cloud.audit.v1.Data.AuthorizationInfo getAuthorizationInfo(int index) {
+ if (authorizationInfoBuilder_ == null) {
+ return authorizationInfo_.get(index);
+ } else {
+ return authorizationInfoBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * + * Authorization information. If there are multiple + * resources or permissions involved, then there is + * one AuthorizationInfo element for each {resource, permission} tuple. + *+ * + *
repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9;
+ */
+ public Builder setAuthorizationInfo(
+ int index, google.events.cloud.audit.v1.Data.AuthorizationInfo value) {
+ if (authorizationInfoBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAuthorizationInfoIsMutable();
+ authorizationInfo_.set(index, value);
+ onChanged();
+ } else {
+ authorizationInfoBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * Authorization information. If there are multiple + * resources or permissions involved, then there is + * one AuthorizationInfo element for each {resource, permission} tuple. + *+ * + *
repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9;
+ */
+ public Builder setAuthorizationInfo(
+ int index, google.events.cloud.audit.v1.Data.AuthorizationInfo.Builder builderForValue) {
+ if (authorizationInfoBuilder_ == null) {
+ ensureAuthorizationInfoIsMutable();
+ authorizationInfo_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ authorizationInfoBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * Authorization information. If there are multiple + * resources or permissions involved, then there is + * one AuthorizationInfo element for each {resource, permission} tuple. + *+ * + *
repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9;
+ */
+ public Builder addAuthorizationInfo(google.events.cloud.audit.v1.Data.AuthorizationInfo value) {
+ if (authorizationInfoBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAuthorizationInfoIsMutable();
+ authorizationInfo_.add(value);
+ onChanged();
+ } else {
+ authorizationInfoBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * + * Authorization information. If there are multiple + * resources or permissions involved, then there is + * one AuthorizationInfo element for each {resource, permission} tuple. + *+ * + *
repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9;
+ */
+ public Builder addAuthorizationInfo(
+ int index, google.events.cloud.audit.v1.Data.AuthorizationInfo value) {
+ if (authorizationInfoBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAuthorizationInfoIsMutable();
+ authorizationInfo_.add(index, value);
+ onChanged();
+ } else {
+ authorizationInfoBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * Authorization information. If there are multiple + * resources or permissions involved, then there is + * one AuthorizationInfo element for each {resource, permission} tuple. + *+ * + *
repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9;
+ */
+ public Builder addAuthorizationInfo(
+ google.events.cloud.audit.v1.Data.AuthorizationInfo.Builder builderForValue) {
+ if (authorizationInfoBuilder_ == null) {
+ ensureAuthorizationInfoIsMutable();
+ authorizationInfo_.add(builderForValue.build());
+ onChanged();
+ } else {
+ authorizationInfoBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * Authorization information. If there are multiple + * resources or permissions involved, then there is + * one AuthorizationInfo element for each {resource, permission} tuple. + *+ * + *
repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9;
+ */
+ public Builder addAuthorizationInfo(
+ int index, google.events.cloud.audit.v1.Data.AuthorizationInfo.Builder builderForValue) {
+ if (authorizationInfoBuilder_ == null) {
+ ensureAuthorizationInfoIsMutable();
+ authorizationInfo_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ authorizationInfoBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * Authorization information. If there are multiple + * resources or permissions involved, then there is + * one AuthorizationInfo element for each {resource, permission} tuple. + *+ * + *
repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9;
+ */
+ public Builder addAllAuthorizationInfo(
+ java.lang.Iterable extends google.events.cloud.audit.v1.Data.AuthorizationInfo> values) {
+ if (authorizationInfoBuilder_ == null) {
+ ensureAuthorizationInfoIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, authorizationInfo_);
+ onChanged();
+ } else {
+ authorizationInfoBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * + * Authorization information. If there are multiple + * resources or permissions involved, then there is + * one AuthorizationInfo element for each {resource, permission} tuple. + *+ * + *
repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9;
+ */
+ public Builder clearAuthorizationInfo() {
+ if (authorizationInfoBuilder_ == null) {
+ authorizationInfo_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ authorizationInfoBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * + * Authorization information. If there are multiple + * resources or permissions involved, then there is + * one AuthorizationInfo element for each {resource, permission} tuple. + *+ * + *
repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9;
+ */
+ public Builder removeAuthorizationInfo(int index) {
+ if (authorizationInfoBuilder_ == null) {
+ ensureAuthorizationInfoIsMutable();
+ authorizationInfo_.remove(index);
+ onChanged();
+ } else {
+ authorizationInfoBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * + * Authorization information. If there are multiple + * resources or permissions involved, then there is + * one AuthorizationInfo element for each {resource, permission} tuple. + *+ * + *
repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9;
+ */
+ public google.events.cloud.audit.v1.Data.AuthorizationInfo.Builder getAuthorizationInfoBuilder(
+ int index) {
+ return getAuthorizationInfoFieldBuilder().getBuilder(index);
+ }
+ /**
+ * + * Authorization information. If there are multiple + * resources or permissions involved, then there is + * one AuthorizationInfo element for each {resource, permission} tuple. + *+ * + *
repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9;
+ */
+ public google.events.cloud.audit.v1.Data.AuthorizationInfoOrBuilder getAuthorizationInfoOrBuilder(
+ int index) {
+ if (authorizationInfoBuilder_ == null) {
+ return authorizationInfo_.get(index); } else {
+ return authorizationInfoBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * + * Authorization information. If there are multiple + * resources or permissions involved, then there is + * one AuthorizationInfo element for each {resource, permission} tuple. + *+ * + *
repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9;
+ */
+ public java.util.List extends google.events.cloud.audit.v1.Data.AuthorizationInfoOrBuilder>
+ getAuthorizationInfoOrBuilderList() {
+ if (authorizationInfoBuilder_ != null) {
+ return authorizationInfoBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(authorizationInfo_);
+ }
+ }
+ /**
+ * + * Authorization information. If there are multiple + * resources or permissions involved, then there is + * one AuthorizationInfo element for each {resource, permission} tuple. + *+ * + *
repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9;
+ */
+ public google.events.cloud.audit.v1.Data.AuthorizationInfo.Builder addAuthorizationInfoBuilder() {
+ return getAuthorizationInfoFieldBuilder().addBuilder(
+ google.events.cloud.audit.v1.Data.AuthorizationInfo.getDefaultInstance());
+ }
+ /**
+ * + * Authorization information. If there are multiple + * resources or permissions involved, then there is + * one AuthorizationInfo element for each {resource, permission} tuple. + *+ * + *
repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9;
+ */
+ public google.events.cloud.audit.v1.Data.AuthorizationInfo.Builder addAuthorizationInfoBuilder(
+ int index) {
+ return getAuthorizationInfoFieldBuilder().addBuilder(
+ index, google.events.cloud.audit.v1.Data.AuthorizationInfo.getDefaultInstance());
+ }
+ /**
+ * + * Authorization information. If there are multiple + * resources or permissions involved, then there is + * one AuthorizationInfo element for each {resource, permission} tuple. + *+ * + *
repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9;
+ */
+ public java.util.List+ * Metadata about the operation. + *+ * + *
.google.events.cloud.audit.v1.RequestMetadata request_metadata = 4;
+ * @return Whether the requestMetadata field is set.
+ */
+ public boolean hasRequestMetadata() {
+ return requestMetadataBuilder_ != null || requestMetadata_ != null;
+ }
+ /**
+ * + * Metadata about the operation. + *+ * + *
.google.events.cloud.audit.v1.RequestMetadata request_metadata = 4;
+ * @return The requestMetadata.
+ */
+ public google.events.cloud.audit.v1.Data.RequestMetadata getRequestMetadata() {
+ if (requestMetadataBuilder_ == null) {
+ return requestMetadata_ == null ? google.events.cloud.audit.v1.Data.RequestMetadata.getDefaultInstance() : requestMetadata_;
+ } else {
+ return requestMetadataBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * Metadata about the operation. + *+ * + *
.google.events.cloud.audit.v1.RequestMetadata request_metadata = 4;
+ */
+ public Builder setRequestMetadata(google.events.cloud.audit.v1.Data.RequestMetadata value) {
+ if (requestMetadataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ requestMetadata_ = value;
+ onChanged();
+ } else {
+ requestMetadataBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * Metadata about the operation. + *+ * + *
.google.events.cloud.audit.v1.RequestMetadata request_metadata = 4;
+ */
+ public Builder setRequestMetadata(
+ google.events.cloud.audit.v1.Data.RequestMetadata.Builder builderForValue) {
+ if (requestMetadataBuilder_ == null) {
+ requestMetadata_ = builderForValue.build();
+ onChanged();
+ } else {
+ requestMetadataBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * Metadata about the operation. + *+ * + *
.google.events.cloud.audit.v1.RequestMetadata request_metadata = 4;
+ */
+ public Builder mergeRequestMetadata(google.events.cloud.audit.v1.Data.RequestMetadata value) {
+ if (requestMetadataBuilder_ == null) {
+ if (requestMetadata_ != null) {
+ requestMetadata_ =
+ google.events.cloud.audit.v1.Data.RequestMetadata.newBuilder(requestMetadata_).mergeFrom(value).buildPartial();
+ } else {
+ requestMetadata_ = value;
+ }
+ onChanged();
+ } else {
+ requestMetadataBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * Metadata about the operation. + *+ * + *
.google.events.cloud.audit.v1.RequestMetadata request_metadata = 4;
+ */
+ public Builder clearRequestMetadata() {
+ if (requestMetadataBuilder_ == null) {
+ requestMetadata_ = null;
+ onChanged();
+ } else {
+ requestMetadata_ = null;
+ requestMetadataBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * Metadata about the operation. + *+ * + *
.google.events.cloud.audit.v1.RequestMetadata request_metadata = 4;
+ */
+ public google.events.cloud.audit.v1.Data.RequestMetadata.Builder getRequestMetadataBuilder() {
+
+ onChanged();
+ return getRequestMetadataFieldBuilder().getBuilder();
+ }
+ /**
+ * + * Metadata about the operation. + *+ * + *
.google.events.cloud.audit.v1.RequestMetadata request_metadata = 4;
+ */
+ public google.events.cloud.audit.v1.Data.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
+ if (requestMetadataBuilder_ != null) {
+ return requestMetadataBuilder_.getMessageOrBuilder();
+ } else {
+ return requestMetadata_ == null ?
+ google.events.cloud.audit.v1.Data.RequestMetadata.getDefaultInstance() : requestMetadata_;
+ }
+ }
+ /**
+ * + * Metadata about the operation. + *+ * + *
.google.events.cloud.audit.v1.RequestMetadata request_metadata = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ google.events.cloud.audit.v1.Data.RequestMetadata, google.events.cloud.audit.v1.Data.RequestMetadata.Builder, google.events.cloud.audit.v1.Data.RequestMetadataOrBuilder>
+ getRequestMetadataFieldBuilder() {
+ if (requestMetadataBuilder_ == null) {
+ requestMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ google.events.cloud.audit.v1.Data.RequestMetadata, google.events.cloud.audit.v1.Data.RequestMetadata.Builder, google.events.cloud.audit.v1.Data.RequestMetadataOrBuilder>(
+ getRequestMetadata(),
+ getParentForChildren(),
+ isClean());
+ requestMetadata_ = null;
+ }
+ return requestMetadataBuilder_;
+ }
+
+ private com.google.protobuf.Struct request_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> requestBuilder_;
+ /**
+ * + * The operation request. This may not include all request parameters, + * such as those that are too large, privacy-sensitive, or duplicated + * elsewhere in the log record. + * It should never include user-generated data, such as file contents. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct request = 16;
+ * @return Whether the request field is set.
+ */
+ public boolean hasRequest() {
+ return requestBuilder_ != null || request_ != null;
+ }
+ /**
+ * + * The operation request. This may not include all request parameters, + * such as those that are too large, privacy-sensitive, or duplicated + * elsewhere in the log record. + * It should never include user-generated data, such as file contents. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct request = 16;
+ * @return The request.
+ */
+ public com.google.protobuf.Struct getRequest() {
+ if (requestBuilder_ == null) {
+ return request_ == null ? com.google.protobuf.Struct.getDefaultInstance() : request_;
+ } else {
+ return requestBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * The operation request. This may not include all request parameters, + * such as those that are too large, privacy-sensitive, or duplicated + * elsewhere in the log record. + * It should never include user-generated data, such as file contents. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct request = 16;
+ */
+ public Builder setRequest(com.google.protobuf.Struct value) {
+ if (requestBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ request_ = value;
+ onChanged();
+ } else {
+ requestBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * The operation request. This may not include all request parameters, + * such as those that are too large, privacy-sensitive, or duplicated + * elsewhere in the log record. + * It should never include user-generated data, such as file contents. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct request = 16;
+ */
+ public Builder setRequest(
+ com.google.protobuf.Struct.Builder builderForValue) {
+ if (requestBuilder_ == null) {
+ request_ = builderForValue.build();
+ onChanged();
+ } else {
+ requestBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * The operation request. This may not include all request parameters, + * such as those that are too large, privacy-sensitive, or duplicated + * elsewhere in the log record. + * It should never include user-generated data, such as file contents. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct request = 16;
+ */
+ public Builder mergeRequest(com.google.protobuf.Struct value) {
+ if (requestBuilder_ == null) {
+ if (request_ != null) {
+ request_ =
+ com.google.protobuf.Struct.newBuilder(request_).mergeFrom(value).buildPartial();
+ } else {
+ request_ = value;
+ }
+ onChanged();
+ } else {
+ requestBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * The operation request. This may not include all request parameters, + * such as those that are too large, privacy-sensitive, or duplicated + * elsewhere in the log record. + * It should never include user-generated data, such as file contents. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct request = 16;
+ */
+ public Builder clearRequest() {
+ if (requestBuilder_ == null) {
+ request_ = null;
+ onChanged();
+ } else {
+ request_ = null;
+ requestBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * The operation request. This may not include all request parameters, + * such as those that are too large, privacy-sensitive, or duplicated + * elsewhere in the log record. + * It should never include user-generated data, such as file contents. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct request = 16;
+ */
+ public com.google.protobuf.Struct.Builder getRequestBuilder() {
+
+ onChanged();
+ return getRequestFieldBuilder().getBuilder();
+ }
+ /**
+ * + * The operation request. This may not include all request parameters, + * such as those that are too large, privacy-sensitive, or duplicated + * elsewhere in the log record. + * It should never include user-generated data, such as file contents. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct request = 16;
+ */
+ public com.google.protobuf.StructOrBuilder getRequestOrBuilder() {
+ if (requestBuilder_ != null) {
+ return requestBuilder_.getMessageOrBuilder();
+ } else {
+ return request_ == null ?
+ com.google.protobuf.Struct.getDefaultInstance() : request_;
+ }
+ }
+ /**
+ * + * The operation request. This may not include all request parameters, + * such as those that are too large, privacy-sensitive, or duplicated + * elsewhere in the log record. + * It should never include user-generated data, such as file contents. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct request = 16;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>
+ getRequestFieldBuilder() {
+ if (requestBuilder_ == null) {
+ requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
+ getRequest(),
+ getParentForChildren(),
+ isClean());
+ request_ = null;
+ }
+ return requestBuilder_;
+ }
+
+ private com.google.protobuf.Struct response_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> responseBuilder_;
+ /**
+ * + * The operation response. This may not include all response elements, + * such as those that are too large, privacy-sensitive, or duplicated + * elsewhere in the log record. + * It should never include user-generated data, such as file contents. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct response = 17;
+ * @return Whether the response field is set.
+ */
+ public boolean hasResponse() {
+ return responseBuilder_ != null || response_ != null;
+ }
+ /**
+ * + * The operation response. This may not include all response elements, + * such as those that are too large, privacy-sensitive, or duplicated + * elsewhere in the log record. + * It should never include user-generated data, such as file contents. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct response = 17;
+ * @return The response.
+ */
+ public com.google.protobuf.Struct getResponse() {
+ if (responseBuilder_ == null) {
+ return response_ == null ? com.google.protobuf.Struct.getDefaultInstance() : response_;
+ } else {
+ return responseBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * The operation response. This may not include all response elements, + * such as those that are too large, privacy-sensitive, or duplicated + * elsewhere in the log record. + * It should never include user-generated data, such as file contents. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct response = 17;
+ */
+ public Builder setResponse(com.google.protobuf.Struct value) {
+ if (responseBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ response_ = value;
+ onChanged();
+ } else {
+ responseBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * The operation response. This may not include all response elements, + * such as those that are too large, privacy-sensitive, or duplicated + * elsewhere in the log record. + * It should never include user-generated data, such as file contents. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct response = 17;
+ */
+ public Builder setResponse(
+ com.google.protobuf.Struct.Builder builderForValue) {
+ if (responseBuilder_ == null) {
+ response_ = builderForValue.build();
+ onChanged();
+ } else {
+ responseBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * The operation response. This may not include all response elements, + * such as those that are too large, privacy-sensitive, or duplicated + * elsewhere in the log record. + * It should never include user-generated data, such as file contents. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct response = 17;
+ */
+ public Builder mergeResponse(com.google.protobuf.Struct value) {
+ if (responseBuilder_ == null) {
+ if (response_ != null) {
+ response_ =
+ com.google.protobuf.Struct.newBuilder(response_).mergeFrom(value).buildPartial();
+ } else {
+ response_ = value;
+ }
+ onChanged();
+ } else {
+ responseBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * The operation response. This may not include all response elements, + * such as those that are too large, privacy-sensitive, or duplicated + * elsewhere in the log record. + * It should never include user-generated data, such as file contents. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct response = 17;
+ */
+ public Builder clearResponse() {
+ if (responseBuilder_ == null) {
+ response_ = null;
+ onChanged();
+ } else {
+ response_ = null;
+ responseBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * The operation response. This may not include all response elements, + * such as those that are too large, privacy-sensitive, or duplicated + * elsewhere in the log record. + * It should never include user-generated data, such as file contents. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct response = 17;
+ */
+ public com.google.protobuf.Struct.Builder getResponseBuilder() {
+
+ onChanged();
+ return getResponseFieldBuilder().getBuilder();
+ }
+ /**
+ * + * The operation response. This may not include all response elements, + * such as those that are too large, privacy-sensitive, or duplicated + * elsewhere in the log record. + * It should never include user-generated data, such as file contents. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct response = 17;
+ */
+ public com.google.protobuf.StructOrBuilder getResponseOrBuilder() {
+ if (responseBuilder_ != null) {
+ return responseBuilder_.getMessageOrBuilder();
+ } else {
+ return response_ == null ?
+ com.google.protobuf.Struct.getDefaultInstance() : response_;
+ }
+ }
+ /**
+ * + * The operation response. This may not include all response elements, + * such as those that are too large, privacy-sensitive, or duplicated + * elsewhere in the log record. + * It should never include user-generated data, such as file contents. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct response = 17;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>
+ getResponseFieldBuilder() {
+ if (responseBuilder_ == null) {
+ responseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
+ getResponse(),
+ getParentForChildren(),
+ isClean());
+ response_ = null;
+ }
+ return responseBuilder_;
+ }
+
+ private com.google.protobuf.Struct serviceData_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> serviceDataBuilder_;
+ /**
+ * + * Other service-specific data about the request, response, and other + * activities. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct service_data = 15;
+ * @return Whether the serviceData field is set.
+ */
+ public boolean hasServiceData() {
+ return serviceDataBuilder_ != null || serviceData_ != null;
+ }
+ /**
+ * + * Other service-specific data about the request, response, and other + * activities. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct service_data = 15;
+ * @return The serviceData.
+ */
+ public com.google.protobuf.Struct getServiceData() {
+ if (serviceDataBuilder_ == null) {
+ return serviceData_ == null ? com.google.protobuf.Struct.getDefaultInstance() : serviceData_;
+ } else {
+ return serviceDataBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * Other service-specific data about the request, response, and other + * activities. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct service_data = 15;
+ */
+ public Builder setServiceData(com.google.protobuf.Struct value) {
+ if (serviceDataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ serviceData_ = value;
+ onChanged();
+ } else {
+ serviceDataBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * Other service-specific data about the request, response, and other + * activities. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct service_data = 15;
+ */
+ public Builder setServiceData(
+ com.google.protobuf.Struct.Builder builderForValue) {
+ if (serviceDataBuilder_ == null) {
+ serviceData_ = builderForValue.build();
+ onChanged();
+ } else {
+ serviceDataBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * Other service-specific data about the request, response, and other + * activities. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct service_data = 15;
+ */
+ public Builder mergeServiceData(com.google.protobuf.Struct value) {
+ if (serviceDataBuilder_ == null) {
+ if (serviceData_ != null) {
+ serviceData_ =
+ com.google.protobuf.Struct.newBuilder(serviceData_).mergeFrom(value).buildPartial();
+ } else {
+ serviceData_ = value;
+ }
+ onChanged();
+ } else {
+ serviceDataBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * Other service-specific data about the request, response, and other + * activities. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct service_data = 15;
+ */
+ public Builder clearServiceData() {
+ if (serviceDataBuilder_ == null) {
+ serviceData_ = null;
+ onChanged();
+ } else {
+ serviceData_ = null;
+ serviceDataBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * Other service-specific data about the request, response, and other + * activities. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct service_data = 15;
+ */
+ public com.google.protobuf.Struct.Builder getServiceDataBuilder() {
+
+ onChanged();
+ return getServiceDataFieldBuilder().getBuilder();
+ }
+ /**
+ * + * Other service-specific data about the request, response, and other + * activities. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct service_data = 15;
+ */
+ public com.google.protobuf.StructOrBuilder getServiceDataOrBuilder() {
+ if (serviceDataBuilder_ != null) {
+ return serviceDataBuilder_.getMessageOrBuilder();
+ } else {
+ return serviceData_ == null ?
+ com.google.protobuf.Struct.getDefaultInstance() : serviceData_;
+ }
+ }
+ /**
+ * + * Other service-specific data about the request, response, and other + * activities. + * When the JSON object represented here has a proto equivalent, the proto + * name will be indicated in the `@type` property. + *+ * + *
.google.protobuf.Struct service_data = 15;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>
+ getServiceDataFieldBuilder() {
+ if (serviceDataBuilder_ == null) {
+ serviceDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
+ getServiceData(),
+ getParentForChildren(),
+ isClean());
+ serviceData_ = null;
+ }
+ return serviceDataBuilder_;
+ }
+ @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.events.cloud.audit.v1.AuditLogData)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.events.cloud.audit.v1.AuditLogData)
+ private static final google.events.cloud.audit.v1.Data.AuditLogData DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new google.events.cloud.audit.v1.Data.AuditLogData();
+ }
+
+ public static google.events.cloud.audit.v1.Data.AuditLogData getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The email address of the authenticated user making the request. + *+ * + *
string principal_email = 1;
+ * @return The principalEmail.
+ */
+ java.lang.String getPrincipalEmail();
+ /**
+ * + * The email address of the authenticated user making the request. + *+ * + *
string principal_email = 1;
+ * @return The bytes for principalEmail.
+ */
+ com.google.protobuf.ByteString
+ getPrincipalEmailBytes();
+ }
+ /**
+ * + * Authentication information for the operation. + *+ * + * Protobuf type {@code google.events.cloud.audit.v1.AuthenticationInfo} + */ + public static final class AuthenticationInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.cloud.audit.v1.AuthenticationInfo) + AuthenticationInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use AuthenticationInfo.newBuilder() to construct. + private AuthenticationInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private AuthenticationInfo() { + principalEmail_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuthenticationInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuthenticationInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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(); + + principalEmail_ = s; + 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 google.events.cloud.audit.v1.Data.internal_static_google_events_cloud_audit_v1_AuthenticationInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.audit.v1.Data.internal_static_google_events_cloud_audit_v1_AuthenticationInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.audit.v1.Data.AuthenticationInfo.class, google.events.cloud.audit.v1.Data.AuthenticationInfo.Builder.class); + } + + public static final int PRINCIPAL_EMAIL_FIELD_NUMBER = 1; + private volatile java.lang.Object principalEmail_; + /** + *
+ * The email address of the authenticated user making the request. + *+ * + *
string principal_email = 1;
+ * @return The principalEmail.
+ */
+ @java.lang.Override
+ public java.lang.String getPrincipalEmail() {
+ java.lang.Object ref = principalEmail_;
+ 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();
+ principalEmail_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * The email address of the authenticated user making the request. + *+ * + *
string principal_email = 1;
+ * @return The bytes for principalEmail.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getPrincipalEmailBytes() {
+ java.lang.Object ref = principalEmail_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ principalEmail_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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 (!getPrincipalEmailBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, principalEmail_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getPrincipalEmailBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, principalEmail_);
+ }
+ 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 google.events.cloud.audit.v1.Data.AuthenticationInfo)) {
+ return super.equals(obj);
+ }
+ google.events.cloud.audit.v1.Data.AuthenticationInfo other = (google.events.cloud.audit.v1.Data.AuthenticationInfo) obj;
+
+ if (!getPrincipalEmail()
+ .equals(other.getPrincipalEmail())) 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) + PRINCIPAL_EMAIL_FIELD_NUMBER;
+ hash = (53 * hash) + getPrincipalEmail().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static google.events.cloud.audit.v1.Data.AuthenticationInfo parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static google.events.cloud.audit.v1.Data.AuthenticationInfo parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static google.events.cloud.audit.v1.Data.AuthenticationInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static google.events.cloud.audit.v1.Data.AuthenticationInfo parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static google.events.cloud.audit.v1.Data.AuthenticationInfo parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static google.events.cloud.audit.v1.Data.AuthenticationInfo parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static google.events.cloud.audit.v1.Data.AuthenticationInfo parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static google.events.cloud.audit.v1.Data.AuthenticationInfo 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 google.events.cloud.audit.v1.Data.AuthenticationInfo parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static google.events.cloud.audit.v1.Data.AuthenticationInfo 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 google.events.cloud.audit.v1.Data.AuthenticationInfo parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static google.events.cloud.audit.v1.Data.AuthenticationInfo 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(google.events.cloud.audit.v1.Data.AuthenticationInfo 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;
+ }
+ /**
+ * + * Authentication information for the operation. + *+ * + * Protobuf type {@code google.events.cloud.audit.v1.AuthenticationInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * The email address of the authenticated user making the request. + *+ * + *
string principal_email = 1;
+ * @return The principalEmail.
+ */
+ public java.lang.String getPrincipalEmail() {
+ java.lang.Object ref = principalEmail_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ principalEmail_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * The email address of the authenticated user making the request. + *+ * + *
string principal_email = 1;
+ * @return The bytes for principalEmail.
+ */
+ public com.google.protobuf.ByteString
+ getPrincipalEmailBytes() {
+ java.lang.Object ref = principalEmail_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ principalEmail_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * The email address of the authenticated user making the request. + *+ * + *
string principal_email = 1;
+ * @param value The principalEmail to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPrincipalEmail(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ principalEmail_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The email address of the authenticated user making the request. + *+ * + *
string principal_email = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearPrincipalEmail() {
+
+ principalEmail_ = getDefaultInstance().getPrincipalEmail();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The email address of the authenticated user making the request. + *+ * + *
string principal_email = 1;
+ * @param value The bytes for principalEmail to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPrincipalEmailBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ principalEmail_ = value;
+ 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.events.cloud.audit.v1.AuthenticationInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.events.cloud.audit.v1.AuthenticationInfo)
+ private static final google.events.cloud.audit.v1.Data.AuthenticationInfo DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new google.events.cloud.audit.v1.Data.AuthenticationInfo();
+ }
+
+ public static google.events.cloud.audit.v1.Data.AuthenticationInfo getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The resource being accessed, as a REST-style string. For example: + * bigquery.googlapis.com/projects/PROJECTID/datasets/DATASETID + *+ * + *
string resource = 1;
+ * @return The resource.
+ */
+ java.lang.String getResource();
+ /**
+ * + * The resource being accessed, as a REST-style string. For example: + * bigquery.googlapis.com/projects/PROJECTID/datasets/DATASETID + *+ * + *
string resource = 1;
+ * @return The bytes for resource.
+ */
+ com.google.protobuf.ByteString
+ getResourceBytes();
+
+ /**
+ * + * The required IAM permission. + *+ * + *
string permission = 2;
+ * @return The permission.
+ */
+ java.lang.String getPermission();
+ /**
+ * + * The required IAM permission. + *+ * + *
string permission = 2;
+ * @return The bytes for permission.
+ */
+ com.google.protobuf.ByteString
+ getPermissionBytes();
+
+ /**
+ * + * Whether or not authorization for `resource` and `permission` + * was granted. + *+ * + *
bool granted = 3;
+ * @return The granted.
+ */
+ boolean getGranted();
+ }
+ /**
+ * + * Authorization information for the operation. + *+ * + * Protobuf type {@code google.events.cloud.audit.v1.AuthorizationInfo} + */ + public static final class AuthorizationInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.cloud.audit.v1.AuthorizationInfo) + AuthorizationInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use AuthorizationInfo.newBuilder() to construct. + private AuthorizationInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private AuthorizationInfo() { + resource_ = ""; + permission_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuthorizationInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuthorizationInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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(); + + resource_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + permission_ = s; + break; + } + case 24: { + + granted_ = 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 google.events.cloud.audit.v1.Data.internal_static_google_events_cloud_audit_v1_AuthorizationInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.audit.v1.Data.internal_static_google_events_cloud_audit_v1_AuthorizationInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.audit.v1.Data.AuthorizationInfo.class, google.events.cloud.audit.v1.Data.AuthorizationInfo.Builder.class); + } + + public static final int RESOURCE_FIELD_NUMBER = 1; + private volatile java.lang.Object resource_; + /** + *
+ * The resource being accessed, as a REST-style string. For example: + * bigquery.googlapis.com/projects/PROJECTID/datasets/DATASETID + *+ * + *
string resource = 1;
+ * @return The resource.
+ */
+ @java.lang.Override
+ public java.lang.String getResource() {
+ java.lang.Object ref = resource_;
+ 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();
+ resource_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * The resource being accessed, as a REST-style string. For example: + * bigquery.googlapis.com/projects/PROJECTID/datasets/DATASETID + *+ * + *
string resource = 1;
+ * @return The bytes for resource.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getResourceBytes() {
+ java.lang.Object ref = resource_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ resource_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PERMISSION_FIELD_NUMBER = 2;
+ private volatile java.lang.Object permission_;
+ /**
+ * + * The required IAM permission. + *+ * + *
string permission = 2;
+ * @return The permission.
+ */
+ @java.lang.Override
+ public java.lang.String getPermission() {
+ java.lang.Object ref = permission_;
+ 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();
+ permission_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * The required IAM permission. + *+ * + *
string permission = 2;
+ * @return The bytes for permission.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getPermissionBytes() {
+ java.lang.Object ref = permission_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ permission_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int GRANTED_FIELD_NUMBER = 3;
+ private boolean granted_;
+ /**
+ * + * Whether or not authorization for `resource` and `permission` + * was granted. + *+ * + *
bool granted = 3;
+ * @return The granted.
+ */
+ @java.lang.Override
+ public boolean getGranted() {
+ return granted_;
+ }
+
+ 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 (!getResourceBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_);
+ }
+ if (!getPermissionBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, permission_);
+ }
+ if (granted_ != false) {
+ output.writeBool(3, granted_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getResourceBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resource_);
+ }
+ if (!getPermissionBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, permission_);
+ }
+ if (granted_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(3, granted_);
+ }
+ 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 google.events.cloud.audit.v1.Data.AuthorizationInfo)) {
+ return super.equals(obj);
+ }
+ google.events.cloud.audit.v1.Data.AuthorizationInfo other = (google.events.cloud.audit.v1.Data.AuthorizationInfo) obj;
+
+ if (!getResource()
+ .equals(other.getResource())) return false;
+ if (!getPermission()
+ .equals(other.getPermission())) return false;
+ if (getGranted()
+ != other.getGranted()) 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) + RESOURCE_FIELD_NUMBER;
+ hash = (53 * hash) + getResource().hashCode();
+ hash = (37 * hash) + PERMISSION_FIELD_NUMBER;
+ hash = (53 * hash) + getPermission().hashCode();
+ hash = (37 * hash) + GRANTED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getGranted());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static google.events.cloud.audit.v1.Data.AuthorizationInfo parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static google.events.cloud.audit.v1.Data.AuthorizationInfo parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static google.events.cloud.audit.v1.Data.AuthorizationInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static google.events.cloud.audit.v1.Data.AuthorizationInfo parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static google.events.cloud.audit.v1.Data.AuthorizationInfo parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static google.events.cloud.audit.v1.Data.AuthorizationInfo parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static google.events.cloud.audit.v1.Data.AuthorizationInfo parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static google.events.cloud.audit.v1.Data.AuthorizationInfo 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 google.events.cloud.audit.v1.Data.AuthorizationInfo parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static google.events.cloud.audit.v1.Data.AuthorizationInfo 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 google.events.cloud.audit.v1.Data.AuthorizationInfo parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static google.events.cloud.audit.v1.Data.AuthorizationInfo 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(google.events.cloud.audit.v1.Data.AuthorizationInfo 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;
+ }
+ /**
+ * + * Authorization information for the operation. + *+ * + * Protobuf type {@code google.events.cloud.audit.v1.AuthorizationInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * The resource being accessed, as a REST-style string. For example: + * bigquery.googlapis.com/projects/PROJECTID/datasets/DATASETID + *+ * + *
string resource = 1;
+ * @return The resource.
+ */
+ public java.lang.String getResource() {
+ java.lang.Object ref = resource_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ resource_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * The resource being accessed, as a REST-style string. For example: + * bigquery.googlapis.com/projects/PROJECTID/datasets/DATASETID + *+ * + *
string resource = 1;
+ * @return The bytes for resource.
+ */
+ public com.google.protobuf.ByteString
+ getResourceBytes() {
+ java.lang.Object ref = resource_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ resource_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * The resource being accessed, as a REST-style string. For example: + * bigquery.googlapis.com/projects/PROJECTID/datasets/DATASETID + *+ * + *
string resource = 1;
+ * @param value The resource to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResource(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ resource_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The resource being accessed, as a REST-style string. For example: + * bigquery.googlapis.com/projects/PROJECTID/datasets/DATASETID + *+ * + *
string resource = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearResource() {
+
+ resource_ = getDefaultInstance().getResource();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The resource being accessed, as a REST-style string. For example: + * bigquery.googlapis.com/projects/PROJECTID/datasets/DATASETID + *+ * + *
string resource = 1;
+ * @param value The bytes for resource to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResourceBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ resource_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object permission_ = "";
+ /**
+ * + * The required IAM permission. + *+ * + *
string permission = 2;
+ * @return The permission.
+ */
+ public java.lang.String getPermission() {
+ java.lang.Object ref = permission_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ permission_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * The required IAM permission. + *+ * + *
string permission = 2;
+ * @return The bytes for permission.
+ */
+ public com.google.protobuf.ByteString
+ getPermissionBytes() {
+ java.lang.Object ref = permission_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ permission_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * The required IAM permission. + *+ * + *
string permission = 2;
+ * @param value The permission to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPermission(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ permission_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The required IAM permission. + *+ * + *
string permission = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearPermission() {
+
+ permission_ = getDefaultInstance().getPermission();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The required IAM permission. + *+ * + *
string permission = 2;
+ * @param value The bytes for permission to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPermissionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ permission_ = value;
+ onChanged();
+ return this;
+ }
+
+ private boolean granted_ ;
+ /**
+ * + * Whether or not authorization for `resource` and `permission` + * was granted. + *+ * + *
bool granted = 3;
+ * @return The granted.
+ */
+ @java.lang.Override
+ public boolean getGranted() {
+ return granted_;
+ }
+ /**
+ * + * Whether or not authorization for `resource` and `permission` + * was granted. + *+ * + *
bool granted = 3;
+ * @param value The granted to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGranted(boolean value) {
+
+ granted_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Whether or not authorization for `resource` and `permission` + * was granted. + *+ * + *
bool granted = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearGranted() {
+
+ granted_ = 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.events.cloud.audit.v1.AuthorizationInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.events.cloud.audit.v1.AuthorizationInfo)
+ private static final google.events.cloud.audit.v1.Data.AuthorizationInfo DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new google.events.cloud.audit.v1.Data.AuthorizationInfo();
+ }
+
+ public static google.events.cloud.audit.v1.Data.AuthorizationInfo getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The IP address of the caller. + *+ * + *
string caller_ip = 1;
+ * @return The callerIp.
+ */
+ java.lang.String getCallerIp();
+ /**
+ * + * The IP address of the caller. + *+ * + *
string caller_ip = 1;
+ * @return The bytes for callerIp.
+ */
+ com.google.protobuf.ByteString
+ getCallerIpBytes();
+
+ /**
+ * + * The user agent of the caller. + * This information is not authenticated and should be treated accordingly. + * For example: + * + `google-api-python-client/1.4.0`: + * The request was made by the Google API client for Python. + * + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`: + * The request was made by the Google Cloud SDK CLI (gcloud). + * + `AppEngine-Google; (+http://code.google.com/appengine; appid: + * s~my-project`: + * The request was made from the `my-project` App Engine app. + *+ * + *
string caller_supplied_user_agent = 2;
+ * @return The callerSuppliedUserAgent.
+ */
+ java.lang.String getCallerSuppliedUserAgent();
+ /**
+ * + * The user agent of the caller. + * This information is not authenticated and should be treated accordingly. + * For example: + * + `google-api-python-client/1.4.0`: + * The request was made by the Google API client for Python. + * + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`: + * The request was made by the Google Cloud SDK CLI (gcloud). + * + `AppEngine-Google; (+http://code.google.com/appengine; appid: + * s~my-project`: + * The request was made from the `my-project` App Engine app. + *+ * + *
string caller_supplied_user_agent = 2;
+ * @return The bytes for callerSuppliedUserAgent.
+ */
+ com.google.protobuf.ByteString
+ getCallerSuppliedUserAgentBytes();
+ }
+ /**
+ * + * Metadata about the request. + *+ * + * Protobuf type {@code google.events.cloud.audit.v1.RequestMetadata} + */ + public static final class RequestMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.cloud.audit.v1.RequestMetadata) + RequestMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use RequestMetadata.newBuilder() to construct. + private RequestMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private RequestMetadata() { + callerIp_ = ""; + callerSuppliedUserAgent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RequestMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RequestMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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(); + + callerIp_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + callerSuppliedUserAgent_ = s; + 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 google.events.cloud.audit.v1.Data.internal_static_google_events_cloud_audit_v1_RequestMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.audit.v1.Data.internal_static_google_events_cloud_audit_v1_RequestMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.audit.v1.Data.RequestMetadata.class, google.events.cloud.audit.v1.Data.RequestMetadata.Builder.class); + } + + public static final int CALLER_IP_FIELD_NUMBER = 1; + private volatile java.lang.Object callerIp_; + /** + *
+ * The IP address of the caller. + *+ * + *
string caller_ip = 1;
+ * @return The callerIp.
+ */
+ @java.lang.Override
+ public java.lang.String getCallerIp() {
+ java.lang.Object ref = callerIp_;
+ 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();
+ callerIp_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * The IP address of the caller. + *+ * + *
string caller_ip = 1;
+ * @return The bytes for callerIp.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getCallerIpBytes() {
+ java.lang.Object ref = callerIp_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ callerIp_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CALLER_SUPPLIED_USER_AGENT_FIELD_NUMBER = 2;
+ private volatile java.lang.Object callerSuppliedUserAgent_;
+ /**
+ * + * The user agent of the caller. + * This information is not authenticated and should be treated accordingly. + * For example: + * + `google-api-python-client/1.4.0`: + * The request was made by the Google API client for Python. + * + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`: + * The request was made by the Google Cloud SDK CLI (gcloud). + * + `AppEngine-Google; (+http://code.google.com/appengine; appid: + * s~my-project`: + * The request was made from the `my-project` App Engine app. + *+ * + *
string caller_supplied_user_agent = 2;
+ * @return The callerSuppliedUserAgent.
+ */
+ @java.lang.Override
+ public java.lang.String getCallerSuppliedUserAgent() {
+ java.lang.Object ref = callerSuppliedUserAgent_;
+ 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();
+ callerSuppliedUserAgent_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * The user agent of the caller. + * This information is not authenticated and should be treated accordingly. + * For example: + * + `google-api-python-client/1.4.0`: + * The request was made by the Google API client for Python. + * + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`: + * The request was made by the Google Cloud SDK CLI (gcloud). + * + `AppEngine-Google; (+http://code.google.com/appengine; appid: + * s~my-project`: + * The request was made from the `my-project` App Engine app. + *+ * + *
string caller_supplied_user_agent = 2;
+ * @return The bytes for callerSuppliedUserAgent.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getCallerSuppliedUserAgentBytes() {
+ java.lang.Object ref = callerSuppliedUserAgent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ callerSuppliedUserAgent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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 (!getCallerIpBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, callerIp_);
+ }
+ if (!getCallerSuppliedUserAgentBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, callerSuppliedUserAgent_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getCallerIpBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, callerIp_);
+ }
+ if (!getCallerSuppliedUserAgentBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, callerSuppliedUserAgent_);
+ }
+ 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 google.events.cloud.audit.v1.Data.RequestMetadata)) {
+ return super.equals(obj);
+ }
+ google.events.cloud.audit.v1.Data.RequestMetadata other = (google.events.cloud.audit.v1.Data.RequestMetadata) obj;
+
+ if (!getCallerIp()
+ .equals(other.getCallerIp())) return false;
+ if (!getCallerSuppliedUserAgent()
+ .equals(other.getCallerSuppliedUserAgent())) 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) + CALLER_IP_FIELD_NUMBER;
+ hash = (53 * hash) + getCallerIp().hashCode();
+ hash = (37 * hash) + CALLER_SUPPLIED_USER_AGENT_FIELD_NUMBER;
+ hash = (53 * hash) + getCallerSuppliedUserAgent().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static google.events.cloud.audit.v1.Data.RequestMetadata parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static google.events.cloud.audit.v1.Data.RequestMetadata parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static google.events.cloud.audit.v1.Data.RequestMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static google.events.cloud.audit.v1.Data.RequestMetadata parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static google.events.cloud.audit.v1.Data.RequestMetadata parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static google.events.cloud.audit.v1.Data.RequestMetadata parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static google.events.cloud.audit.v1.Data.RequestMetadata parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static google.events.cloud.audit.v1.Data.RequestMetadata 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 google.events.cloud.audit.v1.Data.RequestMetadata parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static google.events.cloud.audit.v1.Data.RequestMetadata 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 google.events.cloud.audit.v1.Data.RequestMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static google.events.cloud.audit.v1.Data.RequestMetadata 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(google.events.cloud.audit.v1.Data.RequestMetadata 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;
+ }
+ /**
+ * + * Metadata about the request. + *+ * + * Protobuf type {@code google.events.cloud.audit.v1.RequestMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * The IP address of the caller. + *+ * + *
string caller_ip = 1;
+ * @return The callerIp.
+ */
+ public java.lang.String getCallerIp() {
+ java.lang.Object ref = callerIp_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ callerIp_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * The IP address of the caller. + *+ * + *
string caller_ip = 1;
+ * @return The bytes for callerIp.
+ */
+ public com.google.protobuf.ByteString
+ getCallerIpBytes() {
+ java.lang.Object ref = callerIp_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ callerIp_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * The IP address of the caller. + *+ * + *
string caller_ip = 1;
+ * @param value The callerIp to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCallerIp(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ callerIp_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The IP address of the caller. + *+ * + *
string caller_ip = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearCallerIp() {
+
+ callerIp_ = getDefaultInstance().getCallerIp();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The IP address of the caller. + *+ * + *
string caller_ip = 1;
+ * @param value The bytes for callerIp to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCallerIpBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ callerIp_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object callerSuppliedUserAgent_ = "";
+ /**
+ * + * The user agent of the caller. + * This information is not authenticated and should be treated accordingly. + * For example: + * + `google-api-python-client/1.4.0`: + * The request was made by the Google API client for Python. + * + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`: + * The request was made by the Google Cloud SDK CLI (gcloud). + * + `AppEngine-Google; (+http://code.google.com/appengine; appid: + * s~my-project`: + * The request was made from the `my-project` App Engine app. + *+ * + *
string caller_supplied_user_agent = 2;
+ * @return The callerSuppliedUserAgent.
+ */
+ public java.lang.String getCallerSuppliedUserAgent() {
+ java.lang.Object ref = callerSuppliedUserAgent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ callerSuppliedUserAgent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * The user agent of the caller. + * This information is not authenticated and should be treated accordingly. + * For example: + * + `google-api-python-client/1.4.0`: + * The request was made by the Google API client for Python. + * + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`: + * The request was made by the Google Cloud SDK CLI (gcloud). + * + `AppEngine-Google; (+http://code.google.com/appengine; appid: + * s~my-project`: + * The request was made from the `my-project` App Engine app. + *+ * + *
string caller_supplied_user_agent = 2;
+ * @return The bytes for callerSuppliedUserAgent.
+ */
+ public com.google.protobuf.ByteString
+ getCallerSuppliedUserAgentBytes() {
+ java.lang.Object ref = callerSuppliedUserAgent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ callerSuppliedUserAgent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * The user agent of the caller. + * This information is not authenticated and should be treated accordingly. + * For example: + * + `google-api-python-client/1.4.0`: + * The request was made by the Google API client for Python. + * + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`: + * The request was made by the Google Cloud SDK CLI (gcloud). + * + `AppEngine-Google; (+http://code.google.com/appengine; appid: + * s~my-project`: + * The request was made from the `my-project` App Engine app. + *+ * + *
string caller_supplied_user_agent = 2;
+ * @param value The callerSuppliedUserAgent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCallerSuppliedUserAgent(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ callerSuppliedUserAgent_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The user agent of the caller. + * This information is not authenticated and should be treated accordingly. + * For example: + * + `google-api-python-client/1.4.0`: + * The request was made by the Google API client for Python. + * + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`: + * The request was made by the Google Cloud SDK CLI (gcloud). + * + `AppEngine-Google; (+http://code.google.com/appengine; appid: + * s~my-project`: + * The request was made from the `my-project` App Engine app. + *+ * + *
string caller_supplied_user_agent = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearCallerSuppliedUserAgent() {
+
+ callerSuppliedUserAgent_ = getDefaultInstance().getCallerSuppliedUserAgent();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The user agent of the caller. + * This information is not authenticated and should be treated accordingly. + * For example: + * + `google-api-python-client/1.4.0`: + * The request was made by the Google API client for Python. + * + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`: + * The request was made by the Google Cloud SDK CLI (gcloud). + * + `AppEngine-Google; (+http://code.google.com/appengine; appid: + * s~my-project`: + * The request was made from the `my-project` App Engine app. + *+ * + *
string caller_supplied_user_agent = 2;
+ * @param value The bytes for callerSuppliedUserAgent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCallerSuppliedUserAgentBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ callerSuppliedUserAgent_ = value;
+ 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.events.cloud.audit.v1.RequestMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.events.cloud.audit.v1.RequestMetadata)
+ private static final google.events.cloud.audit.v1.Data.RequestMetadata DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new google.events.cloud.audit.v1.Data.RequestMetadata();
+ }
+
+ public static google.events.cloud.audit.v1.Data.RequestMetadata getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * A Document object containing a post-operation document snapshot. + * This is not populated for delete events. (TODO: check this!) + *+ * + *
.google.events.cloud.firestore.v1.Document value = 1;
+ * @return Whether the value field is set.
+ */
+ boolean hasValue();
+ /**
+ * + * A Document object containing a post-operation document snapshot. + * This is not populated for delete events. (TODO: check this!) + *+ * + *
.google.events.cloud.firestore.v1.Document value = 1;
+ * @return The value.
+ */
+ google.events.cloud.firestore.v1.Data.Document getValue();
+ /**
+ * + * A Document object containing a post-operation document snapshot. + * This is not populated for delete events. (TODO: check this!) + *+ * + *
.google.events.cloud.firestore.v1.Document value = 1;
+ */
+ google.events.cloud.firestore.v1.Data.DocumentOrBuilder getValueOrBuilder();
+
+ /**
+ * + * A Document object containing a pre-operation document snapshot. + * This is only populated for update and delete events. + *+ * + *
.google.events.cloud.firestore.v1.Document old_value = 2;
+ * @return Whether the oldValue field is set.
+ */
+ boolean hasOldValue();
+ /**
+ * + * A Document object containing a pre-operation document snapshot. + * This is only populated for update and delete events. + *+ * + *
.google.events.cloud.firestore.v1.Document old_value = 2;
+ * @return The oldValue.
+ */
+ google.events.cloud.firestore.v1.Data.Document getOldValue();
+ /**
+ * + * A Document object containing a pre-operation document snapshot. + * This is only populated for update and delete events. + *+ * + *
.google.events.cloud.firestore.v1.Document old_value = 2;
+ */
+ google.events.cloud.firestore.v1.Data.DocumentOrBuilder getOldValueOrBuilder();
+
+ /**
+ * + * A DocumentMask object that lists changed fields. + * This is only populated for update events. + *+ * + *
.google.events.cloud.firestore.v1.DocumentMask update_mask = 3;
+ * @return Whether the updateMask field is set.
+ */
+ boolean hasUpdateMask();
+ /**
+ * + * A DocumentMask object that lists changed fields. + * This is only populated for update events. + *+ * + *
.google.events.cloud.firestore.v1.DocumentMask update_mask = 3;
+ * @return The updateMask.
+ */
+ google.events.cloud.firestore.v1.Data.DocumentMask getUpdateMask();
+ /**
+ * + * A DocumentMask object that lists changed fields. + * This is only populated for update events. + *+ * + *
.google.events.cloud.firestore.v1.DocumentMask update_mask = 3;
+ */
+ google.events.cloud.firestore.v1.Data.DocumentMaskOrBuilder getUpdateMaskOrBuilder();
+
+ /**
+ * + * The matches from wildcards specified in the event subscription, to the + * values of those wildcards in the document name. For example, + * a subscription to + * `/projects/my_project/databases/(default)/documents/users/{username}` + * matching a document with name + * `/projects/my_project/databases/(default)/documents/users/marie` + * would result in a mapping of `'username': 'marie'`. + *+ * + *
map<string, string> wildcards = 4;
+ */
+ int getWildcardsCount();
+ /**
+ * + * The matches from wildcards specified in the event subscription, to the + * values of those wildcards in the document name. For example, + * a subscription to + * `/projects/my_project/databases/(default)/documents/users/{username}` + * matching a document with name + * `/projects/my_project/databases/(default)/documents/users/marie` + * would result in a mapping of `'username': 'marie'`. + *+ * + *
map<string, string> wildcards = 4;
+ */
+ boolean containsWildcards(
+ java.lang.String key);
+ /**
+ * Use {@link #getWildcardsMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Map+ * The matches from wildcards specified in the event subscription, to the + * values of those wildcards in the document name. For example, + * a subscription to + * `/projects/my_project/databases/(default)/documents/users/{username}` + * matching a document with name + * `/projects/my_project/databases/(default)/documents/users/marie` + * would result in a mapping of `'username': 'marie'`. + *+ * + *
map<string, string> wildcards = 4;
+ */
+ java.util.Map+ * The matches from wildcards specified in the event subscription, to the + * values of those wildcards in the document name. For example, + * a subscription to + * `/projects/my_project/databases/(default)/documents/users/{username}` + * matching a document with name + * `/projects/my_project/databases/(default)/documents/users/marie` + * would result in a mapping of `'username': 'marie'`. + *+ * + *
map<string, string> wildcards = 4;
+ */
+
+ java.lang.String getWildcardsOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue);
+ /**
+ * + * The matches from wildcards specified in the event subscription, to the + * values of those wildcards in the document name. For example, + * a subscription to + * `/projects/my_project/databases/(default)/documents/users/{username}` + * matching a document with name + * `/projects/my_project/databases/(default)/documents/users/marie` + * would result in a mapping of `'username': 'marie'`. + *+ * + *
map<string, string> wildcards = 4;
+ */
+
+ java.lang.String getWildcardsOrThrow(
+ java.lang.String key);
+ }
+ /**
+ * + * The data within all Firestore document events. + *+ * + * Protobuf type {@code google.events.cloud.firestore.v1.DocumentEventData} + */ + public static final class DocumentEventData extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.cloud.firestore.v1.DocumentEventData) + DocumentEventDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use DocumentEventData.newBuilder() to construct. + private DocumentEventData(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private DocumentEventData() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DocumentEventData(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DocumentEventData( + 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: { + google.events.cloud.firestore.v1.Data.Document.Builder subBuilder = null; + if (value_ != null) { + subBuilder = value_.toBuilder(); + } + value_ = input.readMessage(google.events.cloud.firestore.v1.Data.Document.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(value_); + value_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + google.events.cloud.firestore.v1.Data.Document.Builder subBuilder = null; + if (oldValue_ != null) { + subBuilder = oldValue_.toBuilder(); + } + oldValue_ = input.readMessage(google.events.cloud.firestore.v1.Data.Document.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(oldValue_); + oldValue_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + google.events.cloud.firestore.v1.Data.DocumentMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = input.readMessage(google.events.cloud.firestore.v1.Data.DocumentMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + wildcards_ = com.google.protobuf.MapField.newMapField( + WildcardsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry
+ * A Document object containing a post-operation document snapshot. + * This is not populated for delete events. (TODO: check this!) + *+ * + *
.google.events.cloud.firestore.v1.Document value = 1;
+ * @return Whether the value field is set.
+ */
+ @java.lang.Override
+ public boolean hasValue() {
+ return value_ != null;
+ }
+ /**
+ * + * A Document object containing a post-operation document snapshot. + * This is not populated for delete events. (TODO: check this!) + *+ * + *
.google.events.cloud.firestore.v1.Document value = 1;
+ * @return The value.
+ */
+ @java.lang.Override
+ public google.events.cloud.firestore.v1.Data.Document getValue() {
+ return value_ == null ? google.events.cloud.firestore.v1.Data.Document.getDefaultInstance() : value_;
+ }
+ /**
+ * + * A Document object containing a post-operation document snapshot. + * This is not populated for delete events. (TODO: check this!) + *+ * + *
.google.events.cloud.firestore.v1.Document value = 1;
+ */
+ @java.lang.Override
+ public google.events.cloud.firestore.v1.Data.DocumentOrBuilder getValueOrBuilder() {
+ return getValue();
+ }
+
+ public static final int OLD_VALUE_FIELD_NUMBER = 2;
+ private google.events.cloud.firestore.v1.Data.Document oldValue_;
+ /**
+ * + * A Document object containing a pre-operation document snapshot. + * This is only populated for update and delete events. + *+ * + *
.google.events.cloud.firestore.v1.Document old_value = 2;
+ * @return Whether the oldValue field is set.
+ */
+ @java.lang.Override
+ public boolean hasOldValue() {
+ return oldValue_ != null;
+ }
+ /**
+ * + * A Document object containing a pre-operation document snapshot. + * This is only populated for update and delete events. + *+ * + *
.google.events.cloud.firestore.v1.Document old_value = 2;
+ * @return The oldValue.
+ */
+ @java.lang.Override
+ public google.events.cloud.firestore.v1.Data.Document getOldValue() {
+ return oldValue_ == null ? google.events.cloud.firestore.v1.Data.Document.getDefaultInstance() : oldValue_;
+ }
+ /**
+ * + * A Document object containing a pre-operation document snapshot. + * This is only populated for update and delete events. + *+ * + *
.google.events.cloud.firestore.v1.Document old_value = 2;
+ */
+ @java.lang.Override
+ public google.events.cloud.firestore.v1.Data.DocumentOrBuilder getOldValueOrBuilder() {
+ return getOldValue();
+ }
+
+ public static final int UPDATE_MASK_FIELD_NUMBER = 3;
+ private google.events.cloud.firestore.v1.Data.DocumentMask updateMask_;
+ /**
+ * + * A DocumentMask object that lists changed fields. + * This is only populated for update events. + *+ * + *
.google.events.cloud.firestore.v1.DocumentMask update_mask = 3;
+ * @return Whether the updateMask field is set.
+ */
+ @java.lang.Override
+ public boolean hasUpdateMask() {
+ return updateMask_ != null;
+ }
+ /**
+ * + * A DocumentMask object that lists changed fields. + * This is only populated for update events. + *+ * + *
.google.events.cloud.firestore.v1.DocumentMask update_mask = 3;
+ * @return The updateMask.
+ */
+ @java.lang.Override
+ public google.events.cloud.firestore.v1.Data.DocumentMask getUpdateMask() {
+ return updateMask_ == null ? google.events.cloud.firestore.v1.Data.DocumentMask.getDefaultInstance() : updateMask_;
+ }
+ /**
+ * + * A DocumentMask object that lists changed fields. + * This is only populated for update events. + *+ * + *
.google.events.cloud.firestore.v1.DocumentMask update_mask = 3;
+ */
+ @java.lang.Override
+ public google.events.cloud.firestore.v1.Data.DocumentMaskOrBuilder getUpdateMaskOrBuilder() {
+ return getUpdateMask();
+ }
+
+ public static final int WILDCARDS_FIELD_NUMBER = 4;
+ private static final class WildcardsDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.String, java.lang.String> defaultEntry =
+ com.google.protobuf.MapEntry
+ .+ * The matches from wildcards specified in the event subscription, to the + * values of those wildcards in the document name. For example, + * a subscription to + * `/projects/my_project/databases/(default)/documents/users/{username}` + * matching a document with name + * `/projects/my_project/databases/(default)/documents/users/marie` + * would result in a mapping of `'username': 'marie'`. + *+ * + *
map<string, string> wildcards = 4;
+ */
+
+ @java.lang.Override
+ public boolean containsWildcards(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetWildcards().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getWildcardsMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * The matches from wildcards specified in the event subscription, to the + * values of those wildcards in the document name. For example, + * a subscription to + * `/projects/my_project/databases/(default)/documents/users/{username}` + * matching a document with name + * `/projects/my_project/databases/(default)/documents/users/marie` + * would result in a mapping of `'username': 'marie'`. + *+ * + *
map<string, string> wildcards = 4;
+ */
+ @java.lang.Override
+
+ public java.util.Map+ * The matches from wildcards specified in the event subscription, to the + * values of those wildcards in the document name. For example, + * a subscription to + * `/projects/my_project/databases/(default)/documents/users/{username}` + * matching a document with name + * `/projects/my_project/databases/(default)/documents/users/marie` + * would result in a mapping of `'username': 'marie'`. + *+ * + *
map<string, string> wildcards = 4;
+ */
+ @java.lang.Override
+
+ public java.lang.String getWildcardsOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * The matches from wildcards specified in the event subscription, to the + * values of those wildcards in the document name. For example, + * a subscription to + * `/projects/my_project/databases/(default)/documents/users/{username}` + * matching a document with name + * `/projects/my_project/databases/(default)/documents/users/marie` + * would result in a mapping of `'username': 'marie'`. + *+ * + *
map<string, string> wildcards = 4;
+ */
+ @java.lang.Override
+
+ public java.lang.String getWildcardsOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * The data within all Firestore document events. + *+ * + * Protobuf type {@code google.events.cloud.firestore.v1.DocumentEventData} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * A Document object containing a post-operation document snapshot. + * This is not populated for delete events. (TODO: check this!) + *+ * + *
.google.events.cloud.firestore.v1.Document value = 1;
+ * @return Whether the value field is set.
+ */
+ public boolean hasValue() {
+ return valueBuilder_ != null || value_ != null;
+ }
+ /**
+ * + * A Document object containing a post-operation document snapshot. + * This is not populated for delete events. (TODO: check this!) + *+ * + *
.google.events.cloud.firestore.v1.Document value = 1;
+ * @return The value.
+ */
+ public google.events.cloud.firestore.v1.Data.Document getValue() {
+ if (valueBuilder_ == null) {
+ return value_ == null ? google.events.cloud.firestore.v1.Data.Document.getDefaultInstance() : value_;
+ } else {
+ return valueBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * A Document object containing a post-operation document snapshot. + * This is not populated for delete events. (TODO: check this!) + *+ * + *
.google.events.cloud.firestore.v1.Document value = 1;
+ */
+ public Builder setValue(google.events.cloud.firestore.v1.Data.Document value) {
+ if (valueBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ value_ = value;
+ onChanged();
+ } else {
+ valueBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * A Document object containing a post-operation document snapshot. + * This is not populated for delete events. (TODO: check this!) + *+ * + *
.google.events.cloud.firestore.v1.Document value = 1;
+ */
+ public Builder setValue(
+ google.events.cloud.firestore.v1.Data.Document.Builder builderForValue) {
+ if (valueBuilder_ == null) {
+ value_ = builderForValue.build();
+ onChanged();
+ } else {
+ valueBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * A Document object containing a post-operation document snapshot. + * This is not populated for delete events. (TODO: check this!) + *+ * + *
.google.events.cloud.firestore.v1.Document value = 1;
+ */
+ public Builder mergeValue(google.events.cloud.firestore.v1.Data.Document value) {
+ if (valueBuilder_ == null) {
+ if (value_ != null) {
+ value_ =
+ google.events.cloud.firestore.v1.Data.Document.newBuilder(value_).mergeFrom(value).buildPartial();
+ } else {
+ value_ = value;
+ }
+ onChanged();
+ } else {
+ valueBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * A Document object containing a post-operation document snapshot. + * This is not populated for delete events. (TODO: check this!) + *+ * + *
.google.events.cloud.firestore.v1.Document value = 1;
+ */
+ public Builder clearValue() {
+ if (valueBuilder_ == null) {
+ value_ = null;
+ onChanged();
+ } else {
+ value_ = null;
+ valueBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * A Document object containing a post-operation document snapshot. + * This is not populated for delete events. (TODO: check this!) + *+ * + *
.google.events.cloud.firestore.v1.Document value = 1;
+ */
+ public google.events.cloud.firestore.v1.Data.Document.Builder getValueBuilder() {
+
+ onChanged();
+ return getValueFieldBuilder().getBuilder();
+ }
+ /**
+ * + * A Document object containing a post-operation document snapshot. + * This is not populated for delete events. (TODO: check this!) + *+ * + *
.google.events.cloud.firestore.v1.Document value = 1;
+ */
+ public google.events.cloud.firestore.v1.Data.DocumentOrBuilder getValueOrBuilder() {
+ if (valueBuilder_ != null) {
+ return valueBuilder_.getMessageOrBuilder();
+ } else {
+ return value_ == null ?
+ google.events.cloud.firestore.v1.Data.Document.getDefaultInstance() : value_;
+ }
+ }
+ /**
+ * + * A Document object containing a post-operation document snapshot. + * This is not populated for delete events. (TODO: check this!) + *+ * + *
.google.events.cloud.firestore.v1.Document value = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ google.events.cloud.firestore.v1.Data.Document, google.events.cloud.firestore.v1.Data.Document.Builder, google.events.cloud.firestore.v1.Data.DocumentOrBuilder>
+ getValueFieldBuilder() {
+ if (valueBuilder_ == null) {
+ valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ google.events.cloud.firestore.v1.Data.Document, google.events.cloud.firestore.v1.Data.Document.Builder, google.events.cloud.firestore.v1.Data.DocumentOrBuilder>(
+ getValue(),
+ getParentForChildren(),
+ isClean());
+ value_ = null;
+ }
+ return valueBuilder_;
+ }
+
+ private google.events.cloud.firestore.v1.Data.Document oldValue_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ google.events.cloud.firestore.v1.Data.Document, google.events.cloud.firestore.v1.Data.Document.Builder, google.events.cloud.firestore.v1.Data.DocumentOrBuilder> oldValueBuilder_;
+ /**
+ * + * A Document object containing a pre-operation document snapshot. + * This is only populated for update and delete events. + *+ * + *
.google.events.cloud.firestore.v1.Document old_value = 2;
+ * @return Whether the oldValue field is set.
+ */
+ public boolean hasOldValue() {
+ return oldValueBuilder_ != null || oldValue_ != null;
+ }
+ /**
+ * + * A Document object containing a pre-operation document snapshot. + * This is only populated for update and delete events. + *+ * + *
.google.events.cloud.firestore.v1.Document old_value = 2;
+ * @return The oldValue.
+ */
+ public google.events.cloud.firestore.v1.Data.Document getOldValue() {
+ if (oldValueBuilder_ == null) {
+ return oldValue_ == null ? google.events.cloud.firestore.v1.Data.Document.getDefaultInstance() : oldValue_;
+ } else {
+ return oldValueBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * A Document object containing a pre-operation document snapshot. + * This is only populated for update and delete events. + *+ * + *
.google.events.cloud.firestore.v1.Document old_value = 2;
+ */
+ public Builder setOldValue(google.events.cloud.firestore.v1.Data.Document value) {
+ if (oldValueBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ oldValue_ = value;
+ onChanged();
+ } else {
+ oldValueBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * A Document object containing a pre-operation document snapshot. + * This is only populated for update and delete events. + *+ * + *
.google.events.cloud.firestore.v1.Document old_value = 2;
+ */
+ public Builder setOldValue(
+ google.events.cloud.firestore.v1.Data.Document.Builder builderForValue) {
+ if (oldValueBuilder_ == null) {
+ oldValue_ = builderForValue.build();
+ onChanged();
+ } else {
+ oldValueBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * A Document object containing a pre-operation document snapshot. + * This is only populated for update and delete events. + *+ * + *
.google.events.cloud.firestore.v1.Document old_value = 2;
+ */
+ public Builder mergeOldValue(google.events.cloud.firestore.v1.Data.Document value) {
+ if (oldValueBuilder_ == null) {
+ if (oldValue_ != null) {
+ oldValue_ =
+ google.events.cloud.firestore.v1.Data.Document.newBuilder(oldValue_).mergeFrom(value).buildPartial();
+ } else {
+ oldValue_ = value;
+ }
+ onChanged();
+ } else {
+ oldValueBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * A Document object containing a pre-operation document snapshot. + * This is only populated for update and delete events. + *+ * + *
.google.events.cloud.firestore.v1.Document old_value = 2;
+ */
+ public Builder clearOldValue() {
+ if (oldValueBuilder_ == null) {
+ oldValue_ = null;
+ onChanged();
+ } else {
+ oldValue_ = null;
+ oldValueBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * A Document object containing a pre-operation document snapshot. + * This is only populated for update and delete events. + *+ * + *
.google.events.cloud.firestore.v1.Document old_value = 2;
+ */
+ public google.events.cloud.firestore.v1.Data.Document.Builder getOldValueBuilder() {
+
+ onChanged();
+ return getOldValueFieldBuilder().getBuilder();
+ }
+ /**
+ * + * A Document object containing a pre-operation document snapshot. + * This is only populated for update and delete events. + *+ * + *
.google.events.cloud.firestore.v1.Document old_value = 2;
+ */
+ public google.events.cloud.firestore.v1.Data.DocumentOrBuilder getOldValueOrBuilder() {
+ if (oldValueBuilder_ != null) {
+ return oldValueBuilder_.getMessageOrBuilder();
+ } else {
+ return oldValue_ == null ?
+ google.events.cloud.firestore.v1.Data.Document.getDefaultInstance() : oldValue_;
+ }
+ }
+ /**
+ * + * A Document object containing a pre-operation document snapshot. + * This is only populated for update and delete events. + *+ * + *
.google.events.cloud.firestore.v1.Document old_value = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ google.events.cloud.firestore.v1.Data.Document, google.events.cloud.firestore.v1.Data.Document.Builder, google.events.cloud.firestore.v1.Data.DocumentOrBuilder>
+ getOldValueFieldBuilder() {
+ if (oldValueBuilder_ == null) {
+ oldValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ google.events.cloud.firestore.v1.Data.Document, google.events.cloud.firestore.v1.Data.Document.Builder, google.events.cloud.firestore.v1.Data.DocumentOrBuilder>(
+ getOldValue(),
+ getParentForChildren(),
+ isClean());
+ oldValue_ = null;
+ }
+ return oldValueBuilder_;
+ }
+
+ private google.events.cloud.firestore.v1.Data.DocumentMask updateMask_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ google.events.cloud.firestore.v1.Data.DocumentMask, google.events.cloud.firestore.v1.Data.DocumentMask.Builder, google.events.cloud.firestore.v1.Data.DocumentMaskOrBuilder> updateMaskBuilder_;
+ /**
+ * + * A DocumentMask object that lists changed fields. + * This is only populated for update events. + *+ * + *
.google.events.cloud.firestore.v1.DocumentMask update_mask = 3;
+ * @return Whether the updateMask field is set.
+ */
+ public boolean hasUpdateMask() {
+ return updateMaskBuilder_ != null || updateMask_ != null;
+ }
+ /**
+ * + * A DocumentMask object that lists changed fields. + * This is only populated for update events. + *+ * + *
.google.events.cloud.firestore.v1.DocumentMask update_mask = 3;
+ * @return The updateMask.
+ */
+ public google.events.cloud.firestore.v1.Data.DocumentMask getUpdateMask() {
+ if (updateMaskBuilder_ == null) {
+ return updateMask_ == null ? google.events.cloud.firestore.v1.Data.DocumentMask.getDefaultInstance() : updateMask_;
+ } else {
+ return updateMaskBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * A DocumentMask object that lists changed fields. + * This is only populated for update events. + *+ * + *
.google.events.cloud.firestore.v1.DocumentMask update_mask = 3;
+ */
+ public Builder setUpdateMask(google.events.cloud.firestore.v1.Data.DocumentMask value) {
+ if (updateMaskBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ updateMask_ = value;
+ onChanged();
+ } else {
+ updateMaskBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * A DocumentMask object that lists changed fields. + * This is only populated for update events. + *+ * + *
.google.events.cloud.firestore.v1.DocumentMask update_mask = 3;
+ */
+ public Builder setUpdateMask(
+ google.events.cloud.firestore.v1.Data.DocumentMask.Builder builderForValue) {
+ if (updateMaskBuilder_ == null) {
+ updateMask_ = builderForValue.build();
+ onChanged();
+ } else {
+ updateMaskBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * A DocumentMask object that lists changed fields. + * This is only populated for update events. + *+ * + *
.google.events.cloud.firestore.v1.DocumentMask update_mask = 3;
+ */
+ public Builder mergeUpdateMask(google.events.cloud.firestore.v1.Data.DocumentMask value) {
+ if (updateMaskBuilder_ == null) {
+ if (updateMask_ != null) {
+ updateMask_ =
+ google.events.cloud.firestore.v1.Data.DocumentMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+ } else {
+ updateMask_ = value;
+ }
+ onChanged();
+ } else {
+ updateMaskBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * A DocumentMask object that lists changed fields. + * This is only populated for update events. + *+ * + *
.google.events.cloud.firestore.v1.DocumentMask update_mask = 3;
+ */
+ public Builder clearUpdateMask() {
+ if (updateMaskBuilder_ == null) {
+ updateMask_ = null;
+ onChanged();
+ } else {
+ updateMask_ = null;
+ updateMaskBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * A DocumentMask object that lists changed fields. + * This is only populated for update events. + *+ * + *
.google.events.cloud.firestore.v1.DocumentMask update_mask = 3;
+ */
+ public google.events.cloud.firestore.v1.Data.DocumentMask.Builder getUpdateMaskBuilder() {
+
+ onChanged();
+ return getUpdateMaskFieldBuilder().getBuilder();
+ }
+ /**
+ * + * A DocumentMask object that lists changed fields. + * This is only populated for update events. + *+ * + *
.google.events.cloud.firestore.v1.DocumentMask update_mask = 3;
+ */
+ public google.events.cloud.firestore.v1.Data.DocumentMaskOrBuilder getUpdateMaskOrBuilder() {
+ if (updateMaskBuilder_ != null) {
+ return updateMaskBuilder_.getMessageOrBuilder();
+ } else {
+ return updateMask_ == null ?
+ google.events.cloud.firestore.v1.Data.DocumentMask.getDefaultInstance() : updateMask_;
+ }
+ }
+ /**
+ * + * A DocumentMask object that lists changed fields. + * This is only populated for update events. + *+ * + *
.google.events.cloud.firestore.v1.DocumentMask update_mask = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ google.events.cloud.firestore.v1.Data.DocumentMask, google.events.cloud.firestore.v1.Data.DocumentMask.Builder, google.events.cloud.firestore.v1.Data.DocumentMaskOrBuilder>
+ getUpdateMaskFieldBuilder() {
+ if (updateMaskBuilder_ == null) {
+ updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ google.events.cloud.firestore.v1.Data.DocumentMask, google.events.cloud.firestore.v1.Data.DocumentMask.Builder, google.events.cloud.firestore.v1.Data.DocumentMaskOrBuilder>(
+ getUpdateMask(),
+ getParentForChildren(),
+ isClean());
+ updateMask_ = null;
+ }
+ return updateMaskBuilder_;
+ }
+
+ private com.google.protobuf.MapField<
+ java.lang.String, java.lang.String> wildcards_;
+ private com.google.protobuf.MapField+ * The matches from wildcards specified in the event subscription, to the + * values of those wildcards in the document name. For example, + * a subscription to + * `/projects/my_project/databases/(default)/documents/users/{username}` + * matching a document with name + * `/projects/my_project/databases/(default)/documents/users/marie` + * would result in a mapping of `'username': 'marie'`. + *+ * + *
map<string, string> wildcards = 4;
+ */
+
+ @java.lang.Override
+ public boolean containsWildcards(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetWildcards().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getWildcardsMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * The matches from wildcards specified in the event subscription, to the + * values of those wildcards in the document name. For example, + * a subscription to + * `/projects/my_project/databases/(default)/documents/users/{username}` + * matching a document with name + * `/projects/my_project/databases/(default)/documents/users/marie` + * would result in a mapping of `'username': 'marie'`. + *+ * + *
map<string, string> wildcards = 4;
+ */
+ @java.lang.Override
+
+ public java.util.Map+ * The matches from wildcards specified in the event subscription, to the + * values of those wildcards in the document name. For example, + * a subscription to + * `/projects/my_project/databases/(default)/documents/users/{username}` + * matching a document with name + * `/projects/my_project/databases/(default)/documents/users/marie` + * would result in a mapping of `'username': 'marie'`. + *+ * + *
map<string, string> wildcards = 4;
+ */
+ @java.lang.Override
+
+ public java.lang.String getWildcardsOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * The matches from wildcards specified in the event subscription, to the + * values of those wildcards in the document name. For example, + * a subscription to + * `/projects/my_project/databases/(default)/documents/users/{username}` + * matching a document with name + * `/projects/my_project/databases/(default)/documents/users/marie` + * would result in a mapping of `'username': 'marie'`. + *+ * + *
map<string, string> wildcards = 4;
+ */
+ @java.lang.Override
+
+ public java.lang.String getWildcardsOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * The matches from wildcards specified in the event subscription, to the + * values of those wildcards in the document name. For example, + * a subscription to + * `/projects/my_project/databases/(default)/documents/users/{username}` + * matching a document with name + * `/projects/my_project/databases/(default)/documents/users/marie` + * would result in a mapping of `'username': 'marie'`. + *+ * + *
map<string, string> wildcards = 4;
+ */
+
+ public Builder removeWildcards(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableWildcards().getMutableMap()
+ .remove(key);
+ return this;
+ }
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Map+ * The matches from wildcards specified in the event subscription, to the + * values of those wildcards in the document name. For example, + * a subscription to + * `/projects/my_project/databases/(default)/documents/users/{username}` + * matching a document with name + * `/projects/my_project/databases/(default)/documents/users/marie` + * would result in a mapping of `'username': 'marie'`. + *+ * + *
map<string, string> wildcards = 4;
+ */
+ public Builder putWildcards(
+ java.lang.String key,
+ java.lang.String value) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ if (value == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableWildcards().getMutableMap()
+ .put(key, value);
+ return this;
+ }
+ /**
+ * + * The matches from wildcards specified in the event subscription, to the + * values of those wildcards in the document name. For example, + * a subscription to + * `/projects/my_project/databases/(default)/documents/users/{username}` + * matching a document with name + * `/projects/my_project/databases/(default)/documents/users/marie` + * would result in a mapping of `'username': 'marie'`. + *+ * + *
map<string, string> wildcards = 4;
+ */
+
+ public Builder putAllWildcards(
+ java.util.Map+ * The list of field paths in the mask. + * See [Document.fields][google.cloud.firestore.v1.events.Document.fields] + * for a field path syntax reference. + *+ * + *
repeated string field_paths = 1;
+ * @return A list containing the fieldPaths.
+ */
+ java.util.List+ * The list of field paths in the mask. + * See [Document.fields][google.cloud.firestore.v1.events.Document.fields] + * for a field path syntax reference. + *+ * + *
repeated string field_paths = 1;
+ * @return The count of fieldPaths.
+ */
+ int getFieldPathsCount();
+ /**
+ * + * The list of field paths in the mask. + * See [Document.fields][google.cloud.firestore.v1.events.Document.fields] + * for a field path syntax reference. + *+ * + *
repeated string field_paths = 1;
+ * @param index The index of the element to return.
+ * @return The fieldPaths at the given index.
+ */
+ java.lang.String getFieldPaths(int index);
+ /**
+ * + * The list of field paths in the mask. + * See [Document.fields][google.cloud.firestore.v1.events.Document.fields] + * for a field path syntax reference. + *+ * + *
repeated string field_paths = 1;
+ * @param index The index of the value to return.
+ * @return The bytes of the fieldPaths at the given index.
+ */
+ com.google.protobuf.ByteString
+ getFieldPathsBytes(int index);
+ }
+ /**
+ * + * A set of field paths on a document. + *+ * + * Protobuf type {@code google.events.cloud.firestore.v1.DocumentMask} + */ + public static final class DocumentMask extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.cloud.firestore.v1.DocumentMask) + DocumentMaskOrBuilder { + private static final long serialVersionUID = 0L; + // Use DocumentMask.newBuilder() to construct. + private DocumentMask(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private DocumentMask() { + fieldPaths_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DocumentMask(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DocumentMask( + 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(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + fieldPaths_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + fieldPaths_.add(s); + 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)) { + fieldPaths_ = fieldPaths_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.cloud.firestore.v1.Data.internal_static_google_events_cloud_firestore_v1_DocumentMask_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.firestore.v1.Data.internal_static_google_events_cloud_firestore_v1_DocumentMask_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.firestore.v1.Data.DocumentMask.class, google.events.cloud.firestore.v1.Data.DocumentMask.Builder.class); + } + + public static final int FIELD_PATHS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList fieldPaths_; + /** + *
+ * The list of field paths in the mask. + * See [Document.fields][google.cloud.firestore.v1.events.Document.fields] + * for a field path syntax reference. + *+ * + *
repeated string field_paths = 1;
+ * @return A list containing the fieldPaths.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getFieldPathsList() {
+ return fieldPaths_;
+ }
+ /**
+ * + * The list of field paths in the mask. + * See [Document.fields][google.cloud.firestore.v1.events.Document.fields] + * for a field path syntax reference. + *+ * + *
repeated string field_paths = 1;
+ * @return The count of fieldPaths.
+ */
+ public int getFieldPathsCount() {
+ return fieldPaths_.size();
+ }
+ /**
+ * + * The list of field paths in the mask. + * See [Document.fields][google.cloud.firestore.v1.events.Document.fields] + * for a field path syntax reference. + *+ * + *
repeated string field_paths = 1;
+ * @param index The index of the element to return.
+ * @return The fieldPaths at the given index.
+ */
+ public java.lang.String getFieldPaths(int index) {
+ return fieldPaths_.get(index);
+ }
+ /**
+ * + * The list of field paths in the mask. + * See [Document.fields][google.cloud.firestore.v1.events.Document.fields] + * for a field path syntax reference. + *+ * + *
repeated string field_paths = 1;
+ * @param index The index of the value to return.
+ * @return The bytes of the fieldPaths at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getFieldPathsBytes(int index) {
+ return fieldPaths_.getByteString(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 < fieldPaths_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldPaths_.getRaw(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ for (int i = 0; i < fieldPaths_.size(); i++) {
+ dataSize += computeStringSizeNoTag(fieldPaths_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getFieldPathsList().size();
+ }
+ 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 google.events.cloud.firestore.v1.Data.DocumentMask)) {
+ return super.equals(obj);
+ }
+ google.events.cloud.firestore.v1.Data.DocumentMask other = (google.events.cloud.firestore.v1.Data.DocumentMask) obj;
+
+ if (!getFieldPathsList()
+ .equals(other.getFieldPathsList())) 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 (getFieldPathsCount() > 0) {
+ hash = (37 * hash) + FIELD_PATHS_FIELD_NUMBER;
+ hash = (53 * hash) + getFieldPathsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static google.events.cloud.firestore.v1.Data.DocumentMask parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static google.events.cloud.firestore.v1.Data.DocumentMask parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static google.events.cloud.firestore.v1.Data.DocumentMask parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static google.events.cloud.firestore.v1.Data.DocumentMask parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static google.events.cloud.firestore.v1.Data.DocumentMask parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static google.events.cloud.firestore.v1.Data.DocumentMask parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static google.events.cloud.firestore.v1.Data.DocumentMask parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static google.events.cloud.firestore.v1.Data.DocumentMask 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 google.events.cloud.firestore.v1.Data.DocumentMask parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static google.events.cloud.firestore.v1.Data.DocumentMask 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 google.events.cloud.firestore.v1.Data.DocumentMask parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static google.events.cloud.firestore.v1.Data.DocumentMask 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(google.events.cloud.firestore.v1.Data.DocumentMask 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;
+ }
+ /**
+ * + * A set of field paths on a document. + *+ * + * Protobuf type {@code google.events.cloud.firestore.v1.DocumentMask} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * The list of field paths in the mask. + * See [Document.fields][google.cloud.firestore.v1.events.Document.fields] + * for a field path syntax reference. + *+ * + *
repeated string field_paths = 1;
+ * @return A list containing the fieldPaths.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getFieldPathsList() {
+ return fieldPaths_.getUnmodifiableView();
+ }
+ /**
+ * + * The list of field paths in the mask. + * See [Document.fields][google.cloud.firestore.v1.events.Document.fields] + * for a field path syntax reference. + *+ * + *
repeated string field_paths = 1;
+ * @return The count of fieldPaths.
+ */
+ public int getFieldPathsCount() {
+ return fieldPaths_.size();
+ }
+ /**
+ * + * The list of field paths in the mask. + * See [Document.fields][google.cloud.firestore.v1.events.Document.fields] + * for a field path syntax reference. + *+ * + *
repeated string field_paths = 1;
+ * @param index The index of the element to return.
+ * @return The fieldPaths at the given index.
+ */
+ public java.lang.String getFieldPaths(int index) {
+ return fieldPaths_.get(index);
+ }
+ /**
+ * + * The list of field paths in the mask. + * See [Document.fields][google.cloud.firestore.v1.events.Document.fields] + * for a field path syntax reference. + *+ * + *
repeated string field_paths = 1;
+ * @param index The index of the value to return.
+ * @return The bytes of the fieldPaths at the given index.
+ */
+ public com.google.protobuf.ByteString
+ getFieldPathsBytes(int index) {
+ return fieldPaths_.getByteString(index);
+ }
+ /**
+ * + * The list of field paths in the mask. + * See [Document.fields][google.cloud.firestore.v1.events.Document.fields] + * for a field path syntax reference. + *+ * + *
repeated string field_paths = 1;
+ * @param index The index to set the value at.
+ * @param value The fieldPaths to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFieldPaths(
+ int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFieldPathsIsMutable();
+ fieldPaths_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The list of field paths in the mask. + * See [Document.fields][google.cloud.firestore.v1.events.Document.fields] + * for a field path syntax reference. + *+ * + *
repeated string field_paths = 1;
+ * @param value The fieldPaths to add.
+ * @return This builder for chaining.
+ */
+ public Builder addFieldPaths(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFieldPathsIsMutable();
+ fieldPaths_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The list of field paths in the mask. + * See [Document.fields][google.cloud.firestore.v1.events.Document.fields] + * for a field path syntax reference. + *+ * + *
repeated string field_paths = 1;
+ * @param values The fieldPaths to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllFieldPaths(
+ java.lang.Iterable+ * The list of field paths in the mask. + * See [Document.fields][google.cloud.firestore.v1.events.Document.fields] + * for a field path syntax reference. + *+ * + *
repeated string field_paths = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearFieldPaths() {
+ fieldPaths_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The list of field paths in the mask. + * See [Document.fields][google.cloud.firestore.v1.events.Document.fields] + * for a field path syntax reference. + *+ * + *
repeated string field_paths = 1;
+ * @param value The bytes of the fieldPaths to add.
+ * @return This builder for chaining.
+ */
+ public Builder addFieldPathsBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureFieldPathsIsMutable();
+ fieldPaths_.add(value);
+ 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.events.cloud.firestore.v1.DocumentMask)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.events.cloud.firestore.v1.DocumentMask)
+ private static final google.events.cloud.firestore.v1.Data.DocumentMask DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new google.events.cloud.firestore.v1.Data.DocumentMask();
+ }
+
+ public static google.events.cloud.firestore.v1.Data.DocumentMask getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The resource name of the document, for example + * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + *+ * + *
string name = 1;
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ * + * The resource name of the document, for example + * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + *+ * + *
string name = 1;
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+
+ /**
+ * + * The document's fields. + * The map keys represent field names. + * A simple field name contains only characters `a` to `z`, `A` to `Z`, + * `0` to `9`, or `_`, and must not start with `0` to `9`. For example, + * `foo_bar_17`. + * Field names matching the regular expression `__.*__` are reserved. Reserved + * field names are forbidden except in certain documented contexts. The map + * keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be + * empty. + * Field paths may be used in other contexts to refer to structured fields + * defined here. For `map_value`, the field path is represented by the simple + * or quoted field names of the containing fields, delimited by `.`. For + * example, the structured field + * `"foo" : { map_value: { "x&y" : { string_value: "hello" }}}` would be + * represented by the field path `foo.x&y`. + * Within a field path, a quoted field name starts and ends with `` ` `` and + * may contain any character. Some characters, including `` ` ``, must be + * escaped using a `\`. For example, `` `x&y` `` represents `x&y` and + * `` `bak\`tik` `` represents `` bak`tik ``. + *+ * + *
map<string, .google.events.cloud.firestore.v1.Value> fields = 2;
+ */
+ int getFieldsCount();
+ /**
+ * + * The document's fields. + * The map keys represent field names. + * A simple field name contains only characters `a` to `z`, `A` to `Z`, + * `0` to `9`, or `_`, and must not start with `0` to `9`. For example, + * `foo_bar_17`. + * Field names matching the regular expression `__.*__` are reserved. Reserved + * field names are forbidden except in certain documented contexts. The map + * keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be + * empty. + * Field paths may be used in other contexts to refer to structured fields + * defined here. For `map_value`, the field path is represented by the simple + * or quoted field names of the containing fields, delimited by `.`. For + * example, the structured field + * `"foo" : { map_value: { "x&y" : { string_value: "hello" }}}` would be + * represented by the field path `foo.x&y`. + * Within a field path, a quoted field name starts and ends with `` ` `` and + * may contain any character. Some characters, including `` ` ``, must be + * escaped using a `\`. For example, `` `x&y` `` represents `x&y` and + * `` `bak\`tik` `` represents `` bak`tik ``. + *+ * + *
map<string, .google.events.cloud.firestore.v1.Value> fields = 2;
+ */
+ boolean containsFields(
+ java.lang.String key);
+ /**
+ * Use {@link #getFieldsMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Map+ * The document's fields. + * The map keys represent field names. + * A simple field name contains only characters `a` to `z`, `A` to `Z`, + * `0` to `9`, or `_`, and must not start with `0` to `9`. For example, + * `foo_bar_17`. + * Field names matching the regular expression `__.*__` are reserved. Reserved + * field names are forbidden except in certain documented contexts. The map + * keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be + * empty. + * Field paths may be used in other contexts to refer to structured fields + * defined here. For `map_value`, the field path is represented by the simple + * or quoted field names of the containing fields, delimited by `.`. For + * example, the structured field + * `"foo" : { map_value: { "x&y" : { string_value: "hello" }}}` would be + * represented by the field path `foo.x&y`. + * Within a field path, a quoted field name starts and ends with `` ` `` and + * may contain any character. Some characters, including `` ` ``, must be + * escaped using a `\`. For example, `` `x&y` `` represents `x&y` and + * `` `bak\`tik` `` represents `` bak`tik ``. + *+ * + *
map<string, .google.events.cloud.firestore.v1.Value> fields = 2;
+ */
+ java.util.Map+ * The document's fields. + * The map keys represent field names. + * A simple field name contains only characters `a` to `z`, `A` to `Z`, + * `0` to `9`, or `_`, and must not start with `0` to `9`. For example, + * `foo_bar_17`. + * Field names matching the regular expression `__.*__` are reserved. Reserved + * field names are forbidden except in certain documented contexts. The map + * keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be + * empty. + * Field paths may be used in other contexts to refer to structured fields + * defined here. For `map_value`, the field path is represented by the simple + * or quoted field names of the containing fields, delimited by `.`. For + * example, the structured field + * `"foo" : { map_value: { "x&y" : { string_value: "hello" }}}` would be + * represented by the field path `foo.x&y`. + * Within a field path, a quoted field name starts and ends with `` ` `` and + * may contain any character. Some characters, including `` ` ``, must be + * escaped using a `\`. For example, `` `x&y` `` represents `x&y` and + * `` `bak\`tik` `` represents `` bak`tik ``. + *+ * + *
map<string, .google.events.cloud.firestore.v1.Value> fields = 2;
+ */
+
+ google.events.cloud.firestore.v1.Data.Value getFieldsOrDefault(
+ java.lang.String key,
+ google.events.cloud.firestore.v1.Data.Value defaultValue);
+ /**
+ * + * The document's fields. + * The map keys represent field names. + * A simple field name contains only characters `a` to `z`, `A` to `Z`, + * `0` to `9`, or `_`, and must not start with `0` to `9`. For example, + * `foo_bar_17`. + * Field names matching the regular expression `__.*__` are reserved. Reserved + * field names are forbidden except in certain documented contexts. The map + * keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be + * empty. + * Field paths may be used in other contexts to refer to structured fields + * defined here. For `map_value`, the field path is represented by the simple + * or quoted field names of the containing fields, delimited by `.`. For + * example, the structured field + * `"foo" : { map_value: { "x&y" : { string_value: "hello" }}}` would be + * represented by the field path `foo.x&y`. + * Within a field path, a quoted field name starts and ends with `` ` `` and + * may contain any character. Some characters, including `` ` ``, must be + * escaped using a `\`. For example, `` `x&y` `` represents `x&y` and + * `` `bak\`tik` `` represents `` bak`tik ``. + *+ * + *
map<string, .google.events.cloud.firestore.v1.Value> fields = 2;
+ */
+
+ google.events.cloud.firestore.v1.Data.Value getFieldsOrThrow(
+ java.lang.String key);
+
+ /**
+ * + * The time at which the document was created. + * This value increases monotonically when a document is deleted then + * recreated. It can also be compared to values from other documents and + * the `read_time` of a query. + *+ * + *
.google.protobuf.Timestamp create_time = 3;
+ * @return Whether the createTime field is set.
+ */
+ boolean hasCreateTime();
+ /**
+ * + * The time at which the document was created. + * This value increases monotonically when a document is deleted then + * recreated. It can also be compared to values from other documents and + * the `read_time` of a query. + *+ * + *
.google.protobuf.Timestamp create_time = 3;
+ * @return The createTime.
+ */
+ com.google.protobuf.Timestamp getCreateTime();
+ /**
+ * + * The time at which the document was created. + * This value increases monotonically when a document is deleted then + * recreated. It can also be compared to values from other documents and + * the `read_time` of a query. + *+ * + *
.google.protobuf.Timestamp create_time = 3;
+ */
+ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();
+
+ /**
+ * + * The time at which the document was last changed. + * This value is initially set to the `create_time` then increases + * monotonically with each change to the document. It can also be + * compared to values from other documents and the `read_time` of a query. + *+ * + *
.google.protobuf.Timestamp update_time = 4;
+ * @return Whether the updateTime field is set.
+ */
+ boolean hasUpdateTime();
+ /**
+ * + * The time at which the document was last changed. + * This value is initially set to the `create_time` then increases + * monotonically with each change to the document. It can also be + * compared to values from other documents and the `read_time` of a query. + *+ * + *
.google.protobuf.Timestamp update_time = 4;
+ * @return The updateTime.
+ */
+ com.google.protobuf.Timestamp getUpdateTime();
+ /**
+ * + * The time at which the document was last changed. + * This value is initially set to the `create_time` then increases + * monotonically with each change to the document. It can also be + * compared to values from other documents and the `read_time` of a query. + *+ * + *
.google.protobuf.Timestamp update_time = 4;
+ */
+ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
+ }
+ /**
+ * + * A Firestore document. + *+ * + * Protobuf type {@code google.events.cloud.firestore.v1.Document} + */ + public static final class Document extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.cloud.firestore.v1.Document) + DocumentOrBuilder { + private static final long serialVersionUID = 0L; + // Use Document.newBuilder() to construct. + private Document(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private Document() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Document(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Document( + 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(); + + name_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + fields_ = com.google.protobuf.MapField.newMapField( + FieldsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry
+ * The resource name of the document, for example + * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + *+ * + *
string name = 1;
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ 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();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * The resource name of the document, for example + * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + *+ * + *
string name = 1;
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int FIELDS_FIELD_NUMBER = 2;
+ private static final class FieldsDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.String, google.events.cloud.firestore.v1.Data.Value> defaultEntry =
+ com.google.protobuf.MapEntry
+ .+ * The document's fields. + * The map keys represent field names. + * A simple field name contains only characters `a` to `z`, `A` to `Z`, + * `0` to `9`, or `_`, and must not start with `0` to `9`. For example, + * `foo_bar_17`. + * Field names matching the regular expression `__.*__` are reserved. Reserved + * field names are forbidden except in certain documented contexts. The map + * keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be + * empty. + * Field paths may be used in other contexts to refer to structured fields + * defined here. For `map_value`, the field path is represented by the simple + * or quoted field names of the containing fields, delimited by `.`. For + * example, the structured field + * `"foo" : { map_value: { "x&y" : { string_value: "hello" }}}` would be + * represented by the field path `foo.x&y`. + * Within a field path, a quoted field name starts and ends with `` ` `` and + * may contain any character. Some characters, including `` ` ``, must be + * escaped using a `\`. For example, `` `x&y` `` represents `x&y` and + * `` `bak\`tik` `` represents `` bak`tik ``. + *+ * + *
map<string, .google.events.cloud.firestore.v1.Value> fields = 2;
+ */
+
+ @java.lang.Override
+ public boolean containsFields(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetFields().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getFieldsMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * The document's fields. + * The map keys represent field names. + * A simple field name contains only characters `a` to `z`, `A` to `Z`, + * `0` to `9`, or `_`, and must not start with `0` to `9`. For example, + * `foo_bar_17`. + * Field names matching the regular expression `__.*__` are reserved. Reserved + * field names are forbidden except in certain documented contexts. The map + * keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be + * empty. + * Field paths may be used in other contexts to refer to structured fields + * defined here. For `map_value`, the field path is represented by the simple + * or quoted field names of the containing fields, delimited by `.`. For + * example, the structured field + * `"foo" : { map_value: { "x&y" : { string_value: "hello" }}}` would be + * represented by the field path `foo.x&y`. + * Within a field path, a quoted field name starts and ends with `` ` `` and + * may contain any character. Some characters, including `` ` ``, must be + * escaped using a `\`. For example, `` `x&y` `` represents `x&y` and + * `` `bak\`tik` `` represents `` bak`tik ``. + *+ * + *
map<string, .google.events.cloud.firestore.v1.Value> fields = 2;
+ */
+ @java.lang.Override
+
+ public java.util.Map+ * The document's fields. + * The map keys represent field names. + * A simple field name contains only characters `a` to `z`, `A` to `Z`, + * `0` to `9`, or `_`, and must not start with `0` to `9`. For example, + * `foo_bar_17`. + * Field names matching the regular expression `__.*__` are reserved. Reserved + * field names are forbidden except in certain documented contexts. The map + * keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be + * empty. + * Field paths may be used in other contexts to refer to structured fields + * defined here. For `map_value`, the field path is represented by the simple + * or quoted field names of the containing fields, delimited by `.`. For + * example, the structured field + * `"foo" : { map_value: { "x&y" : { string_value: "hello" }}}` would be + * represented by the field path `foo.x&y`. + * Within a field path, a quoted field name starts and ends with `` ` `` and + * may contain any character. Some characters, including `` ` ``, must be + * escaped using a `\`. For example, `` `x&y` `` represents `x&y` and + * `` `bak\`tik` `` represents `` bak`tik ``. + *+ * + *
map<string, .google.events.cloud.firestore.v1.Value> fields = 2;
+ */
+ @java.lang.Override
+
+ public google.events.cloud.firestore.v1.Data.Value getFieldsOrDefault(
+ java.lang.String key,
+ google.events.cloud.firestore.v1.Data.Value defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * The document's fields. + * The map keys represent field names. + * A simple field name contains only characters `a` to `z`, `A` to `Z`, + * `0` to `9`, or `_`, and must not start with `0` to `9`. For example, + * `foo_bar_17`. + * Field names matching the regular expression `__.*__` are reserved. Reserved + * field names are forbidden except in certain documented contexts. The map + * keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be + * empty. + * Field paths may be used in other contexts to refer to structured fields + * defined here. For `map_value`, the field path is represented by the simple + * or quoted field names of the containing fields, delimited by `.`. For + * example, the structured field + * `"foo" : { map_value: { "x&y" : { string_value: "hello" }}}` would be + * represented by the field path `foo.x&y`. + * Within a field path, a quoted field name starts and ends with `` ` `` and + * may contain any character. Some characters, including `` ` ``, must be + * escaped using a `\`. For example, `` `x&y` `` represents `x&y` and + * `` `bak\`tik` `` represents `` bak`tik ``. + *+ * + *
map<string, .google.events.cloud.firestore.v1.Value> fields = 2;
+ */
+ @java.lang.Override
+
+ public google.events.cloud.firestore.v1.Data.Value getFieldsOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * The time at which the document was created. + * This value increases monotonically when a document is deleted then + * recreated. It can also be compared to values from other documents and + * the `read_time` of a query. + *+ * + *
.google.protobuf.Timestamp create_time = 3;
+ * @return Whether the createTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasCreateTime() {
+ return createTime_ != null;
+ }
+ /**
+ * + * The time at which the document was created. + * This value increases monotonically when a document is deleted then + * recreated. It can also be compared to values from other documents and + * the `read_time` of a query. + *+ * + *
.google.protobuf.Timestamp create_time = 3;
+ * @return The createTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getCreateTime() {
+ return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
+ }
+ /**
+ * + * The time at which the document was created. + * This value increases monotonically when a document is deleted then + * recreated. It can also be compared to values from other documents and + * the `read_time` of a query. + *+ * + *
.google.protobuf.Timestamp create_time = 3;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
+ return getCreateTime();
+ }
+
+ public static final int UPDATE_TIME_FIELD_NUMBER = 4;
+ private com.google.protobuf.Timestamp updateTime_;
+ /**
+ * + * The time at which the document was last changed. + * This value is initially set to the `create_time` then increases + * monotonically with each change to the document. It can also be + * compared to values from other documents and the `read_time` of a query. + *+ * + *
.google.protobuf.Timestamp update_time = 4;
+ * @return Whether the updateTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasUpdateTime() {
+ return updateTime_ != null;
+ }
+ /**
+ * + * The time at which the document was last changed. + * This value is initially set to the `create_time` then increases + * monotonically with each change to the document. It can also be + * compared to values from other documents and the `read_time` of a query. + *+ * + *
.google.protobuf.Timestamp update_time = 4;
+ * @return The updateTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getUpdateTime() {
+ return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
+ }
+ /**
+ * + * The time at which the document was last changed. + * This value is initially set to the `create_time` then increases + * monotonically with each change to the document. It can also be + * compared to values from other documents and the `read_time` of a query. + *+ * + *
.google.protobuf.Timestamp update_time = 4;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
+ return getUpdateTime();
+ }
+
+ 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 (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ com.google.protobuf.GeneratedMessageV3
+ .serializeStringMapTo(
+ output,
+ internalGetFields(),
+ FieldsDefaultEntryHolder.defaultEntry,
+ 2);
+ if (createTime_ != null) {
+ output.writeMessage(3, getCreateTime());
+ }
+ if (updateTime_ != null) {
+ output.writeMessage(4, getUpdateTime());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ for (java.util.Map.Entry+ * A Firestore document. + *+ * + * Protobuf type {@code google.events.cloud.firestore.v1.Document} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * The resource name of the document, for example + * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + *+ * + *
string name = 1;
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * The resource name of the document, for example + * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + *+ * + *
string name = 1;
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * The resource name of the document, for example + * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + *+ * + *
string name = 1;
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The resource name of the document, for example + * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + *+ * + *
string name = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The resource name of the document, for example + * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + *+ * + *
string name = 1;
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.MapField<
+ java.lang.String, google.events.cloud.firestore.v1.Data.Value> fields_;
+ private com.google.protobuf.MapField+ * The document's fields. + * The map keys represent field names. + * A simple field name contains only characters `a` to `z`, `A` to `Z`, + * `0` to `9`, or `_`, and must not start with `0` to `9`. For example, + * `foo_bar_17`. + * Field names matching the regular expression `__.*__` are reserved. Reserved + * field names are forbidden except in certain documented contexts. The map + * keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be + * empty. + * Field paths may be used in other contexts to refer to structured fields + * defined here. For `map_value`, the field path is represented by the simple + * or quoted field names of the containing fields, delimited by `.`. For + * example, the structured field + * `"foo" : { map_value: { "x&y" : { string_value: "hello" }}}` would be + * represented by the field path `foo.x&y`. + * Within a field path, a quoted field name starts and ends with `` ` `` and + * may contain any character. Some characters, including `` ` ``, must be + * escaped using a `\`. For example, `` `x&y` `` represents `x&y` and + * `` `bak\`tik` `` represents `` bak`tik ``. + *+ * + *
map<string, .google.events.cloud.firestore.v1.Value> fields = 2;
+ */
+
+ @java.lang.Override
+ public boolean containsFields(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetFields().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getFieldsMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * The document's fields. + * The map keys represent field names. + * A simple field name contains only characters `a` to `z`, `A` to `Z`, + * `0` to `9`, or `_`, and must not start with `0` to `9`. For example, + * `foo_bar_17`. + * Field names matching the regular expression `__.*__` are reserved. Reserved + * field names are forbidden except in certain documented contexts. The map + * keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be + * empty. + * Field paths may be used in other contexts to refer to structured fields + * defined here. For `map_value`, the field path is represented by the simple + * or quoted field names of the containing fields, delimited by `.`. For + * example, the structured field + * `"foo" : { map_value: { "x&y" : { string_value: "hello" }}}` would be + * represented by the field path `foo.x&y`. + * Within a field path, a quoted field name starts and ends with `` ` `` and + * may contain any character. Some characters, including `` ` ``, must be + * escaped using a `\`. For example, `` `x&y` `` represents `x&y` and + * `` `bak\`tik` `` represents `` bak`tik ``. + *+ * + *
map<string, .google.events.cloud.firestore.v1.Value> fields = 2;
+ */
+ @java.lang.Override
+
+ public java.util.Map+ * The document's fields. + * The map keys represent field names. + * A simple field name contains only characters `a` to `z`, `A` to `Z`, + * `0` to `9`, or `_`, and must not start with `0` to `9`. For example, + * `foo_bar_17`. + * Field names matching the regular expression `__.*__` are reserved. Reserved + * field names are forbidden except in certain documented contexts. The map + * keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be + * empty. + * Field paths may be used in other contexts to refer to structured fields + * defined here. For `map_value`, the field path is represented by the simple + * or quoted field names of the containing fields, delimited by `.`. For + * example, the structured field + * `"foo" : { map_value: { "x&y" : { string_value: "hello" }}}` would be + * represented by the field path `foo.x&y`. + * Within a field path, a quoted field name starts and ends with `` ` `` and + * may contain any character. Some characters, including `` ` ``, must be + * escaped using a `\`. For example, `` `x&y` `` represents `x&y` and + * `` `bak\`tik` `` represents `` bak`tik ``. + *+ * + *
map<string, .google.events.cloud.firestore.v1.Value> fields = 2;
+ */
+ @java.lang.Override
+
+ public google.events.cloud.firestore.v1.Data.Value getFieldsOrDefault(
+ java.lang.String key,
+ google.events.cloud.firestore.v1.Data.Value defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * The document's fields. + * The map keys represent field names. + * A simple field name contains only characters `a` to `z`, `A` to `Z`, + * `0` to `9`, or `_`, and must not start with `0` to `9`. For example, + * `foo_bar_17`. + * Field names matching the regular expression `__.*__` are reserved. Reserved + * field names are forbidden except in certain documented contexts. The map + * keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be + * empty. + * Field paths may be used in other contexts to refer to structured fields + * defined here. For `map_value`, the field path is represented by the simple + * or quoted field names of the containing fields, delimited by `.`. For + * example, the structured field + * `"foo" : { map_value: { "x&y" : { string_value: "hello" }}}` would be + * represented by the field path `foo.x&y`. + * Within a field path, a quoted field name starts and ends with `` ` `` and + * may contain any character. Some characters, including `` ` ``, must be + * escaped using a `\`. For example, `` `x&y` `` represents `x&y` and + * `` `bak\`tik` `` represents `` bak`tik ``. + *+ * + *
map<string, .google.events.cloud.firestore.v1.Value> fields = 2;
+ */
+ @java.lang.Override
+
+ public google.events.cloud.firestore.v1.Data.Value getFieldsOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * The document's fields. + * The map keys represent field names. + * A simple field name contains only characters `a` to `z`, `A` to `Z`, + * `0` to `9`, or `_`, and must not start with `0` to `9`. For example, + * `foo_bar_17`. + * Field names matching the regular expression `__.*__` are reserved. Reserved + * field names are forbidden except in certain documented contexts. The map + * keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be + * empty. + * Field paths may be used in other contexts to refer to structured fields + * defined here. For `map_value`, the field path is represented by the simple + * or quoted field names of the containing fields, delimited by `.`. For + * example, the structured field + * `"foo" : { map_value: { "x&y" : { string_value: "hello" }}}` would be + * represented by the field path `foo.x&y`. + * Within a field path, a quoted field name starts and ends with `` ` `` and + * may contain any character. Some characters, including `` ` ``, must be + * escaped using a `\`. For example, `` `x&y` `` represents `x&y` and + * `` `bak\`tik` `` represents `` bak`tik ``. + *+ * + *
map<string, .google.events.cloud.firestore.v1.Value> fields = 2;
+ */
+
+ public Builder removeFields(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableFields().getMutableMap()
+ .remove(key);
+ return this;
+ }
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Map+ * The document's fields. + * The map keys represent field names. + * A simple field name contains only characters `a` to `z`, `A` to `Z`, + * `0` to `9`, or `_`, and must not start with `0` to `9`. For example, + * `foo_bar_17`. + * Field names matching the regular expression `__.*__` are reserved. Reserved + * field names are forbidden except in certain documented contexts. The map + * keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be + * empty. + * Field paths may be used in other contexts to refer to structured fields + * defined here. For `map_value`, the field path is represented by the simple + * or quoted field names of the containing fields, delimited by `.`. For + * example, the structured field + * `"foo" : { map_value: { "x&y" : { string_value: "hello" }}}` would be + * represented by the field path `foo.x&y`. + * Within a field path, a quoted field name starts and ends with `` ` `` and + * may contain any character. Some characters, including `` ` ``, must be + * escaped using a `\`. For example, `` `x&y` `` represents `x&y` and + * `` `bak\`tik` `` represents `` bak`tik ``. + *+ * + *
map<string, .google.events.cloud.firestore.v1.Value> fields = 2;
+ */
+ public Builder putFields(
+ java.lang.String key,
+ google.events.cloud.firestore.v1.Data.Value value) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ if (value == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableFields().getMutableMap()
+ .put(key, value);
+ return this;
+ }
+ /**
+ * + * The document's fields. + * The map keys represent field names. + * A simple field name contains only characters `a` to `z`, `A` to `Z`, + * `0` to `9`, or `_`, and must not start with `0` to `9`. For example, + * `foo_bar_17`. + * Field names matching the regular expression `__.*__` are reserved. Reserved + * field names are forbidden except in certain documented contexts. The map + * keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be + * empty. + * Field paths may be used in other contexts to refer to structured fields + * defined here. For `map_value`, the field path is represented by the simple + * or quoted field names of the containing fields, delimited by `.`. For + * example, the structured field + * `"foo" : { map_value: { "x&y" : { string_value: "hello" }}}` would be + * represented by the field path `foo.x&y`. + * Within a field path, a quoted field name starts and ends with `` ` `` and + * may contain any character. Some characters, including `` ` ``, must be + * escaped using a `\`. For example, `` `x&y` `` represents `x&y` and + * `` `bak\`tik` `` represents `` bak`tik ``. + *+ * + *
map<string, .google.events.cloud.firestore.v1.Value> fields = 2;
+ */
+
+ public Builder putAllFields(
+ java.util.Map+ * The time at which the document was created. + * This value increases monotonically when a document is deleted then + * recreated. It can also be compared to values from other documents and + * the `read_time` of a query. + *+ * + *
.google.protobuf.Timestamp create_time = 3;
+ * @return Whether the createTime field is set.
+ */
+ public boolean hasCreateTime() {
+ return createTimeBuilder_ != null || createTime_ != null;
+ }
+ /**
+ * + * The time at which the document was created. + * This value increases monotonically when a document is deleted then + * recreated. It can also be compared to values from other documents and + * the `read_time` of a query. + *+ * + *
.google.protobuf.Timestamp create_time = 3;
+ * @return The createTime.
+ */
+ public com.google.protobuf.Timestamp getCreateTime() {
+ if (createTimeBuilder_ == null) {
+ return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
+ } else {
+ return createTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * The time at which the document was created. + * This value increases monotonically when a document is deleted then + * recreated. It can also be compared to values from other documents and + * the `read_time` of a query. + *+ * + *
.google.protobuf.Timestamp create_time = 3;
+ */
+ public Builder setCreateTime(com.google.protobuf.Timestamp value) {
+ if (createTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ createTime_ = value;
+ onChanged();
+ } else {
+ createTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * The time at which the document was created. + * This value increases monotonically when a document is deleted then + * recreated. It can also be compared to values from other documents and + * the `read_time` of a query. + *+ * + *
.google.protobuf.Timestamp create_time = 3;
+ */
+ public Builder setCreateTime(
+ com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (createTimeBuilder_ == null) {
+ createTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ createTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * The time at which the document was created. + * This value increases monotonically when a document is deleted then + * recreated. It can also be compared to values from other documents and + * the `read_time` of a query. + *+ * + *
.google.protobuf.Timestamp create_time = 3;
+ */
+ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
+ if (createTimeBuilder_ == null) {
+ if (createTime_ != null) {
+ createTime_ =
+ com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial();
+ } else {
+ createTime_ = value;
+ }
+ onChanged();
+ } else {
+ createTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * The time at which the document was created. + * This value increases monotonically when a document is deleted then + * recreated. It can also be compared to values from other documents and + * the `read_time` of a query. + *+ * + *
.google.protobuf.Timestamp create_time = 3;
+ */
+ public Builder clearCreateTime() {
+ if (createTimeBuilder_ == null) {
+ createTime_ = null;
+ onChanged();
+ } else {
+ createTime_ = null;
+ createTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * The time at which the document was created. + * This value increases monotonically when a document is deleted then + * recreated. It can also be compared to values from other documents and + * the `read_time` of a query. + *+ * + *
.google.protobuf.Timestamp create_time = 3;
+ */
+ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
+
+ onChanged();
+ return getCreateTimeFieldBuilder().getBuilder();
+ }
+ /**
+ * + * The time at which the document was created. + * This value increases monotonically when a document is deleted then + * recreated. It can also be compared to values from other documents and + * the `read_time` of a query. + *+ * + *
.google.protobuf.Timestamp create_time = 3;
+ */
+ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
+ if (createTimeBuilder_ != null) {
+ return createTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return createTime_ == null ?
+ com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
+ }
+ }
+ /**
+ * + * The time at which the document was created. + * This value increases monotonically when a document is deleted then + * recreated. It can also be compared to values from other documents and + * the `read_time` of a query. + *+ * + *
.google.protobuf.Timestamp create_time = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
+ getCreateTimeFieldBuilder() {
+ if (createTimeBuilder_ == null) {
+ createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+ getCreateTime(),
+ getParentForChildren(),
+ isClean());
+ createTime_ = null;
+ }
+ return createTimeBuilder_;
+ }
+
+ private com.google.protobuf.Timestamp updateTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_;
+ /**
+ * + * The time at which the document was last changed. + * This value is initially set to the `create_time` then increases + * monotonically with each change to the document. It can also be + * compared to values from other documents and the `read_time` of a query. + *+ * + *
.google.protobuf.Timestamp update_time = 4;
+ * @return Whether the updateTime field is set.
+ */
+ public boolean hasUpdateTime() {
+ return updateTimeBuilder_ != null || updateTime_ != null;
+ }
+ /**
+ * + * The time at which the document was last changed. + * This value is initially set to the `create_time` then increases + * monotonically with each change to the document. It can also be + * compared to values from other documents and the `read_time` of a query. + *+ * + *
.google.protobuf.Timestamp update_time = 4;
+ * @return The updateTime.
+ */
+ public com.google.protobuf.Timestamp getUpdateTime() {
+ if (updateTimeBuilder_ == null) {
+ return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
+ } else {
+ return updateTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * The time at which the document was last changed. + * This value is initially set to the `create_time` then increases + * monotonically with each change to the document. It can also be + * compared to values from other documents and the `read_time` of a query. + *+ * + *
.google.protobuf.Timestamp update_time = 4;
+ */
+ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
+ if (updateTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ updateTime_ = value;
+ onChanged();
+ } else {
+ updateTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * The time at which the document was last changed. + * This value is initially set to the `create_time` then increases + * monotonically with each change to the document. It can also be + * compared to values from other documents and the `read_time` of a query. + *+ * + *
.google.protobuf.Timestamp update_time = 4;
+ */
+ public Builder setUpdateTime(
+ com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (updateTimeBuilder_ == null) {
+ updateTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ updateTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * The time at which the document was last changed. + * This value is initially set to the `create_time` then increases + * monotonically with each change to the document. It can also be + * compared to values from other documents and the `read_time` of a query. + *+ * + *
.google.protobuf.Timestamp update_time = 4;
+ */
+ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
+ if (updateTimeBuilder_ == null) {
+ if (updateTime_ != null) {
+ updateTime_ =
+ com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial();
+ } else {
+ updateTime_ = value;
+ }
+ onChanged();
+ } else {
+ updateTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * The time at which the document was last changed. + * This value is initially set to the `create_time` then increases + * monotonically with each change to the document. It can also be + * compared to values from other documents and the `read_time` of a query. + *+ * + *
.google.protobuf.Timestamp update_time = 4;
+ */
+ public Builder clearUpdateTime() {
+ if (updateTimeBuilder_ == null) {
+ updateTime_ = null;
+ onChanged();
+ } else {
+ updateTime_ = null;
+ updateTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * The time at which the document was last changed. + * This value is initially set to the `create_time` then increases + * monotonically with each change to the document. It can also be + * compared to values from other documents and the `read_time` of a query. + *+ * + *
.google.protobuf.Timestamp update_time = 4;
+ */
+ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
+
+ onChanged();
+ return getUpdateTimeFieldBuilder().getBuilder();
+ }
+ /**
+ * + * The time at which the document was last changed. + * This value is initially set to the `create_time` then increases + * monotonically with each change to the document. It can also be + * compared to values from other documents and the `read_time` of a query. + *+ * + *
.google.protobuf.Timestamp update_time = 4;
+ */
+ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
+ if (updateTimeBuilder_ != null) {
+ return updateTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return updateTime_ == null ?
+ com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
+ }
+ }
+ /**
+ * + * The time at which the document was last changed. + * This value is initially set to the `create_time` then increases + * monotonically with each change to the document. It can also be + * compared to values from other documents and the `read_time` of a query. + *+ * + *
.google.protobuf.Timestamp update_time = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
+ getUpdateTimeFieldBuilder() {
+ if (updateTimeBuilder_ == null) {
+ updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+ getUpdateTime(),
+ getParentForChildren(),
+ isClean());
+ updateTime_ = null;
+ }
+ return updateTimeBuilder_;
+ }
+ @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.events.cloud.firestore.v1.Document)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.events.cloud.firestore.v1.Document)
+ private static final google.events.cloud.firestore.v1.Data.Document DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new google.events.cloud.firestore.v1.Data.Document();
+ }
+
+ public static google.events.cloud.firestore.v1.Data.Document getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * A null value. + *+ * + *
.google.protobuf.NullValue null_value = 11;
+ * @return The enum numeric value on the wire for nullValue.
+ */
+ int getNullValueValue();
+ /**
+ * + * A null value. + *+ * + *
.google.protobuf.NullValue null_value = 11;
+ * @return The nullValue.
+ */
+ com.google.protobuf.NullValue getNullValue();
+
+ /**
+ * + * A boolean value. + *+ * + *
bool boolean_value = 1;
+ * @return The booleanValue.
+ */
+ boolean getBooleanValue();
+
+ /**
+ * + * An integer value. + *+ * + *
int64 integer_value = 2;
+ * @return The integerValue.
+ */
+ long getIntegerValue();
+
+ /**
+ * + * A double value. + *+ * + *
double double_value = 3;
+ * @return The doubleValue.
+ */
+ double getDoubleValue();
+
+ /**
+ * + * A timestamp value. + * Precise only to microseconds. When stored, any additional precision is + * rounded down. + *+ * + *
.google.protobuf.Timestamp timestamp_value = 10;
+ * @return Whether the timestampValue field is set.
+ */
+ boolean hasTimestampValue();
+ /**
+ * + * A timestamp value. + * Precise only to microseconds. When stored, any additional precision is + * rounded down. + *+ * + *
.google.protobuf.Timestamp timestamp_value = 10;
+ * @return The timestampValue.
+ */
+ com.google.protobuf.Timestamp getTimestampValue();
+ /**
+ * + * A timestamp value. + * Precise only to microseconds. When stored, any additional precision is + * rounded down. + *+ * + *
.google.protobuf.Timestamp timestamp_value = 10;
+ */
+ com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder();
+
+ /**
+ * + * A string value. + * The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. + * Only the first 1,500 bytes of the UTF-8 representation are considered by + * queries. + *+ * + *
string string_value = 17;
+ * @return The stringValue.
+ */
+ java.lang.String getStringValue();
+ /**
+ * + * A string value. + * The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. + * Only the first 1,500 bytes of the UTF-8 representation are considered by + * queries. + *+ * + *
string string_value = 17;
+ * @return The bytes for stringValue.
+ */
+ com.google.protobuf.ByteString
+ getStringValueBytes();
+
+ /**
+ * + * A bytes value. + * Must not exceed 1 MiB - 89 bytes. + * Only the first 1,500 bytes are considered by queries. + *+ * + *
bytes bytes_value = 18;
+ * @return The bytesValue.
+ */
+ com.google.protobuf.ByteString getBytesValue();
+
+ /**
+ * + * A reference to a document. For example: + * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + *+ * + *
string reference_value = 5;
+ * @return The referenceValue.
+ */
+ java.lang.String getReferenceValue();
+ /**
+ * + * A reference to a document. For example: + * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + *+ * + *
string reference_value = 5;
+ * @return The bytes for referenceValue.
+ */
+ com.google.protobuf.ByteString
+ getReferenceValueBytes();
+
+ /**
+ * + * A geo point value representing a point on the surface of Earth. + *+ * + *
.google.type.LatLng geo_point_value = 8;
+ * @return Whether the geoPointValue field is set.
+ */
+ boolean hasGeoPointValue();
+ /**
+ * + * A geo point value representing a point on the surface of Earth. + *+ * + *
.google.type.LatLng geo_point_value = 8;
+ * @return The geoPointValue.
+ */
+ com.google.type.LatLng getGeoPointValue();
+ /**
+ * + * A geo point value representing a point on the surface of Earth. + *+ * + *
.google.type.LatLng geo_point_value = 8;
+ */
+ com.google.type.LatLngOrBuilder getGeoPointValueOrBuilder();
+
+ /**
+ * + * An array value. + * Cannot directly contain another array value, though can contain an + * map which contains another array. + *+ * + *
.google.events.cloud.firestore.v1.ArrayValue array_value = 9;
+ * @return Whether the arrayValue field is set.
+ */
+ boolean hasArrayValue();
+ /**
+ * + * An array value. + * Cannot directly contain another array value, though can contain an + * map which contains another array. + *+ * + *
.google.events.cloud.firestore.v1.ArrayValue array_value = 9;
+ * @return The arrayValue.
+ */
+ google.events.cloud.firestore.v1.Data.ArrayValue getArrayValue();
+ /**
+ * + * An array value. + * Cannot directly contain another array value, though can contain an + * map which contains another array. + *+ * + *
.google.events.cloud.firestore.v1.ArrayValue array_value = 9;
+ */
+ google.events.cloud.firestore.v1.Data.ArrayValueOrBuilder getArrayValueOrBuilder();
+
+ /**
+ * + * A map value. + *+ * + *
.google.events.cloud.firestore.v1.MapValue map_value = 6;
+ * @return Whether the mapValue field is set.
+ */
+ boolean hasMapValue();
+ /**
+ * + * A map value. + *+ * + *
.google.events.cloud.firestore.v1.MapValue map_value = 6;
+ * @return The mapValue.
+ */
+ google.events.cloud.firestore.v1.Data.MapValue getMapValue();
+ /**
+ * + * A map value. + *+ * + *
.google.events.cloud.firestore.v1.MapValue map_value = 6;
+ */
+ google.events.cloud.firestore.v1.Data.MapValueOrBuilder getMapValueOrBuilder();
+
+ public google.events.cloud.firestore.v1.Data.Value.ValueTypeCase getValueTypeCase();
+ }
+ /**
+ * + * A message that can hold any of the supported value types. + *+ * + * Protobuf type {@code google.events.cloud.firestore.v1.Value} + */ + public static final class Value extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.cloud.firestore.v1.Value) + ValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use Value.newBuilder() to construct. + private Value(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private Value() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Value(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Value( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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 8: { + valueTypeCase_ = 1; + valueType_ = input.readBool(); + break; + } + case 16: { + valueTypeCase_ = 2; + valueType_ = input.readInt64(); + break; + } + case 25: { + valueTypeCase_ = 3; + valueType_ = input.readDouble(); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + valueTypeCase_ = 5; + valueType_ = s; + break; + } + case 50: { + google.events.cloud.firestore.v1.Data.MapValue.Builder subBuilder = null; + if (valueTypeCase_ == 6) { + subBuilder = ((google.events.cloud.firestore.v1.Data.MapValue) valueType_).toBuilder(); + } + valueType_ = + input.readMessage(google.events.cloud.firestore.v1.Data.MapValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((google.events.cloud.firestore.v1.Data.MapValue) valueType_); + valueType_ = subBuilder.buildPartial(); + } + valueTypeCase_ = 6; + break; + } + case 66: { + com.google.type.LatLng.Builder subBuilder = null; + if (valueTypeCase_ == 8) { + subBuilder = ((com.google.type.LatLng) valueType_).toBuilder(); + } + valueType_ = + input.readMessage(com.google.type.LatLng.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.type.LatLng) valueType_); + valueType_ = subBuilder.buildPartial(); + } + valueTypeCase_ = 8; + break; + } + case 74: { + google.events.cloud.firestore.v1.Data.ArrayValue.Builder subBuilder = null; + if (valueTypeCase_ == 9) { + subBuilder = ((google.events.cloud.firestore.v1.Data.ArrayValue) valueType_).toBuilder(); + } + valueType_ = + input.readMessage(google.events.cloud.firestore.v1.Data.ArrayValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((google.events.cloud.firestore.v1.Data.ArrayValue) valueType_); + valueType_ = subBuilder.buildPartial(); + } + valueTypeCase_ = 9; + break; + } + case 82: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (valueTypeCase_ == 10) { + subBuilder = ((com.google.protobuf.Timestamp) valueType_).toBuilder(); + } + valueType_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.protobuf.Timestamp) valueType_); + valueType_ = subBuilder.buildPartial(); + } + valueTypeCase_ = 10; + break; + } + case 88: { + int rawValue = input.readEnum(); + valueTypeCase_ = 11; + valueType_ = rawValue; + break; + } + case 138: { + java.lang.String s = input.readStringRequireUtf8(); + valueTypeCase_ = 17; + valueType_ = s; + break; + } + case 146: { + valueTypeCase_ = 18; + valueType_ = input.readBytes(); + 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 google.events.cloud.firestore.v1.Data.internal_static_google_events_cloud_firestore_v1_Value_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.firestore.v1.Data.internal_static_google_events_cloud_firestore_v1_Value_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.firestore.v1.Data.Value.class, google.events.cloud.firestore.v1.Data.Value.Builder.class); + } + + private int valueTypeCase_ = 0; + private java.lang.Object valueType_; + public enum ValueTypeCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + NULL_VALUE(11), + BOOLEAN_VALUE(1), + INTEGER_VALUE(2), + DOUBLE_VALUE(3), + TIMESTAMP_VALUE(10), + STRING_VALUE(17), + BYTES_VALUE(18), + REFERENCE_VALUE(5), + GEO_POINT_VALUE(8), + ARRAY_VALUE(9), + MAP_VALUE(6), + VALUETYPE_NOT_SET(0); + private final int value; + private ValueTypeCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueTypeCase valueOf(int value) { + return forNumber(value); + } + + public static ValueTypeCase forNumber(int value) { + switch (value) { + case 11: return NULL_VALUE; + case 1: return BOOLEAN_VALUE; + case 2: return INTEGER_VALUE; + case 3: return DOUBLE_VALUE; + case 10: return TIMESTAMP_VALUE; + case 17: return STRING_VALUE; + case 18: return BYTES_VALUE; + case 5: return REFERENCE_VALUE; + case 8: return GEO_POINT_VALUE; + case 9: return ARRAY_VALUE; + case 6: return MAP_VALUE; + case 0: return VALUETYPE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ValueTypeCase + getValueTypeCase() { + return ValueTypeCase.forNumber( + valueTypeCase_); + } + + public static final int NULL_VALUE_FIELD_NUMBER = 11; + /** + *
+ * A null value. + *+ * + *
.google.protobuf.NullValue null_value = 11;
+ * @return The enum numeric value on the wire for nullValue.
+ */
+ public int getNullValueValue() {
+ if (valueTypeCase_ == 11) {
+ return (java.lang.Integer) valueType_;
+ }
+ return 0;
+ }
+ /**
+ * + * A null value. + *+ * + *
.google.protobuf.NullValue null_value = 11;
+ * @return The nullValue.
+ */
+ public com.google.protobuf.NullValue getNullValue() {
+ if (valueTypeCase_ == 11) {
+ @SuppressWarnings("deprecation")
+ com.google.protobuf.NullValue result = com.google.protobuf.NullValue.valueOf(
+ (java.lang.Integer) valueType_);
+ return result == null ? com.google.protobuf.NullValue.UNRECOGNIZED : result;
+ }
+ return com.google.protobuf.NullValue.NULL_VALUE;
+ }
+
+ public static final int BOOLEAN_VALUE_FIELD_NUMBER = 1;
+ /**
+ * + * A boolean value. + *+ * + *
bool boolean_value = 1;
+ * @return The booleanValue.
+ */
+ @java.lang.Override
+ public boolean getBooleanValue() {
+ if (valueTypeCase_ == 1) {
+ return (java.lang.Boolean) valueType_;
+ }
+ return false;
+ }
+
+ public static final int INTEGER_VALUE_FIELD_NUMBER = 2;
+ /**
+ * + * An integer value. + *+ * + *
int64 integer_value = 2;
+ * @return The integerValue.
+ */
+ @java.lang.Override
+ public long getIntegerValue() {
+ if (valueTypeCase_ == 2) {
+ return (java.lang.Long) valueType_;
+ }
+ return 0L;
+ }
+
+ public static final int DOUBLE_VALUE_FIELD_NUMBER = 3;
+ /**
+ * + * A double value. + *+ * + *
double double_value = 3;
+ * @return The doubleValue.
+ */
+ @java.lang.Override
+ public double getDoubleValue() {
+ if (valueTypeCase_ == 3) {
+ return (java.lang.Double) valueType_;
+ }
+ return 0D;
+ }
+
+ public static final int TIMESTAMP_VALUE_FIELD_NUMBER = 10;
+ /**
+ * + * A timestamp value. + * Precise only to microseconds. When stored, any additional precision is + * rounded down. + *+ * + *
.google.protobuf.Timestamp timestamp_value = 10;
+ * @return Whether the timestampValue field is set.
+ */
+ @java.lang.Override
+ public boolean hasTimestampValue() {
+ return valueTypeCase_ == 10;
+ }
+ /**
+ * + * A timestamp value. + * Precise only to microseconds. When stored, any additional precision is + * rounded down. + *+ * + *
.google.protobuf.Timestamp timestamp_value = 10;
+ * @return The timestampValue.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getTimestampValue() {
+ if (valueTypeCase_ == 10) {
+ return (com.google.protobuf.Timestamp) valueType_;
+ }
+ return com.google.protobuf.Timestamp.getDefaultInstance();
+ }
+ /**
+ * + * A timestamp value. + * Precise only to microseconds. When stored, any additional precision is + * rounded down. + *+ * + *
.google.protobuf.Timestamp timestamp_value = 10;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder() {
+ if (valueTypeCase_ == 10) {
+ return (com.google.protobuf.Timestamp) valueType_;
+ }
+ return com.google.protobuf.Timestamp.getDefaultInstance();
+ }
+
+ public static final int STRING_VALUE_FIELD_NUMBER = 17;
+ /**
+ * + * A string value. + * The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. + * Only the first 1,500 bytes of the UTF-8 representation are considered by + * queries. + *+ * + *
string string_value = 17;
+ * @return The stringValue.
+ */
+ public java.lang.String getStringValue() {
+ java.lang.Object ref = "";
+ if (valueTypeCase_ == 17) {
+ ref = valueType_;
+ }
+ 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();
+ if (valueTypeCase_ == 17) {
+ valueType_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * + * A string value. + * The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. + * Only the first 1,500 bytes of the UTF-8 representation are considered by + * queries. + *+ * + *
string string_value = 17;
+ * @return The bytes for stringValue.
+ */
+ public com.google.protobuf.ByteString
+ getStringValueBytes() {
+ java.lang.Object ref = "";
+ if (valueTypeCase_ == 17) {
+ ref = valueType_;
+ }
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ if (valueTypeCase_ == 17) {
+ valueType_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int BYTES_VALUE_FIELD_NUMBER = 18;
+ /**
+ * + * A bytes value. + * Must not exceed 1 MiB - 89 bytes. + * Only the first 1,500 bytes are considered by queries. + *+ * + *
bytes bytes_value = 18;
+ * @return The bytesValue.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getBytesValue() {
+ if (valueTypeCase_ == 18) {
+ return (com.google.protobuf.ByteString) valueType_;
+ }
+ return com.google.protobuf.ByteString.EMPTY;
+ }
+
+ public static final int REFERENCE_VALUE_FIELD_NUMBER = 5;
+ /**
+ * + * A reference to a document. For example: + * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + *+ * + *
string reference_value = 5;
+ * @return The referenceValue.
+ */
+ public java.lang.String getReferenceValue() {
+ java.lang.Object ref = "";
+ if (valueTypeCase_ == 5) {
+ ref = valueType_;
+ }
+ 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();
+ if (valueTypeCase_ == 5) {
+ valueType_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * + * A reference to a document. For example: + * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + *+ * + *
string reference_value = 5;
+ * @return The bytes for referenceValue.
+ */
+ public com.google.protobuf.ByteString
+ getReferenceValueBytes() {
+ java.lang.Object ref = "";
+ if (valueTypeCase_ == 5) {
+ ref = valueType_;
+ }
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ if (valueTypeCase_ == 5) {
+ valueType_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int GEO_POINT_VALUE_FIELD_NUMBER = 8;
+ /**
+ * + * A geo point value representing a point on the surface of Earth. + *+ * + *
.google.type.LatLng geo_point_value = 8;
+ * @return Whether the geoPointValue field is set.
+ */
+ @java.lang.Override
+ public boolean hasGeoPointValue() {
+ return valueTypeCase_ == 8;
+ }
+ /**
+ * + * A geo point value representing a point on the surface of Earth. + *+ * + *
.google.type.LatLng geo_point_value = 8;
+ * @return The geoPointValue.
+ */
+ @java.lang.Override
+ public com.google.type.LatLng getGeoPointValue() {
+ if (valueTypeCase_ == 8) {
+ return (com.google.type.LatLng) valueType_;
+ }
+ return com.google.type.LatLng.getDefaultInstance();
+ }
+ /**
+ * + * A geo point value representing a point on the surface of Earth. + *+ * + *
.google.type.LatLng geo_point_value = 8;
+ */
+ @java.lang.Override
+ public com.google.type.LatLngOrBuilder getGeoPointValueOrBuilder() {
+ if (valueTypeCase_ == 8) {
+ return (com.google.type.LatLng) valueType_;
+ }
+ return com.google.type.LatLng.getDefaultInstance();
+ }
+
+ public static final int ARRAY_VALUE_FIELD_NUMBER = 9;
+ /**
+ * + * An array value. + * Cannot directly contain another array value, though can contain an + * map which contains another array. + *+ * + *
.google.events.cloud.firestore.v1.ArrayValue array_value = 9;
+ * @return Whether the arrayValue field is set.
+ */
+ @java.lang.Override
+ public boolean hasArrayValue() {
+ return valueTypeCase_ == 9;
+ }
+ /**
+ * + * An array value. + * Cannot directly contain another array value, though can contain an + * map which contains another array. + *+ * + *
.google.events.cloud.firestore.v1.ArrayValue array_value = 9;
+ * @return The arrayValue.
+ */
+ @java.lang.Override
+ public google.events.cloud.firestore.v1.Data.ArrayValue getArrayValue() {
+ if (valueTypeCase_ == 9) {
+ return (google.events.cloud.firestore.v1.Data.ArrayValue) valueType_;
+ }
+ return google.events.cloud.firestore.v1.Data.ArrayValue.getDefaultInstance();
+ }
+ /**
+ * + * An array value. + * Cannot directly contain another array value, though can contain an + * map which contains another array. + *+ * + *
.google.events.cloud.firestore.v1.ArrayValue array_value = 9;
+ */
+ @java.lang.Override
+ public google.events.cloud.firestore.v1.Data.ArrayValueOrBuilder getArrayValueOrBuilder() {
+ if (valueTypeCase_ == 9) {
+ return (google.events.cloud.firestore.v1.Data.ArrayValue) valueType_;
+ }
+ return google.events.cloud.firestore.v1.Data.ArrayValue.getDefaultInstance();
+ }
+
+ public static final int MAP_VALUE_FIELD_NUMBER = 6;
+ /**
+ * + * A map value. + *+ * + *
.google.events.cloud.firestore.v1.MapValue map_value = 6;
+ * @return Whether the mapValue field is set.
+ */
+ @java.lang.Override
+ public boolean hasMapValue() {
+ return valueTypeCase_ == 6;
+ }
+ /**
+ * + * A map value. + *+ * + *
.google.events.cloud.firestore.v1.MapValue map_value = 6;
+ * @return The mapValue.
+ */
+ @java.lang.Override
+ public google.events.cloud.firestore.v1.Data.MapValue getMapValue() {
+ if (valueTypeCase_ == 6) {
+ return (google.events.cloud.firestore.v1.Data.MapValue) valueType_;
+ }
+ return google.events.cloud.firestore.v1.Data.MapValue.getDefaultInstance();
+ }
+ /**
+ * + * A map value. + *+ * + *
.google.events.cloud.firestore.v1.MapValue map_value = 6;
+ */
+ @java.lang.Override
+ public google.events.cloud.firestore.v1.Data.MapValueOrBuilder getMapValueOrBuilder() {
+ if (valueTypeCase_ == 6) {
+ return (google.events.cloud.firestore.v1.Data.MapValue) valueType_;
+ }
+ return google.events.cloud.firestore.v1.Data.MapValue.getDefaultInstance();
+ }
+
+ 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 (valueTypeCase_ == 1) {
+ output.writeBool(
+ 1, (boolean)((java.lang.Boolean) valueType_));
+ }
+ if (valueTypeCase_ == 2) {
+ output.writeInt64(
+ 2, (long)((java.lang.Long) valueType_));
+ }
+ if (valueTypeCase_ == 3) {
+ output.writeDouble(
+ 3, (double)((java.lang.Double) valueType_));
+ }
+ if (valueTypeCase_ == 5) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, valueType_);
+ }
+ if (valueTypeCase_ == 6) {
+ output.writeMessage(6, (google.events.cloud.firestore.v1.Data.MapValue) valueType_);
+ }
+ if (valueTypeCase_ == 8) {
+ output.writeMessage(8, (com.google.type.LatLng) valueType_);
+ }
+ if (valueTypeCase_ == 9) {
+ output.writeMessage(9, (google.events.cloud.firestore.v1.Data.ArrayValue) valueType_);
+ }
+ if (valueTypeCase_ == 10) {
+ output.writeMessage(10, (com.google.protobuf.Timestamp) valueType_);
+ }
+ if (valueTypeCase_ == 11) {
+ output.writeEnum(11, ((java.lang.Integer) valueType_));
+ }
+ if (valueTypeCase_ == 17) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 17, valueType_);
+ }
+ if (valueTypeCase_ == 18) {
+ output.writeBytes(
+ 18, (com.google.protobuf.ByteString) valueType_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (valueTypeCase_ == 1) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(
+ 1, (boolean)((java.lang.Boolean) valueType_));
+ }
+ if (valueTypeCase_ == 2) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(
+ 2, (long)((java.lang.Long) valueType_));
+ }
+ if (valueTypeCase_ == 3) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(
+ 3, (double)((java.lang.Double) valueType_));
+ }
+ if (valueTypeCase_ == 5) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, valueType_);
+ }
+ if (valueTypeCase_ == 6) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(6, (google.events.cloud.firestore.v1.Data.MapValue) valueType_);
+ }
+ if (valueTypeCase_ == 8) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(8, (com.google.type.LatLng) valueType_);
+ }
+ if (valueTypeCase_ == 9) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(9, (google.events.cloud.firestore.v1.Data.ArrayValue) valueType_);
+ }
+ if (valueTypeCase_ == 10) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(10, (com.google.protobuf.Timestamp) valueType_);
+ }
+ if (valueTypeCase_ == 11) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(11, ((java.lang.Integer) valueType_));
+ }
+ if (valueTypeCase_ == 17) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, valueType_);
+ }
+ if (valueTypeCase_ == 18) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(
+ 18, (com.google.protobuf.ByteString) valueType_);
+ }
+ 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 google.events.cloud.firestore.v1.Data.Value)) {
+ return super.equals(obj);
+ }
+ google.events.cloud.firestore.v1.Data.Value other = (google.events.cloud.firestore.v1.Data.Value) obj;
+
+ if (!getValueTypeCase().equals(other.getValueTypeCase())) return false;
+ switch (valueTypeCase_) {
+ case 11:
+ if (getNullValueValue()
+ != other.getNullValueValue()) return false;
+ break;
+ case 1:
+ if (getBooleanValue()
+ != other.getBooleanValue()) return false;
+ break;
+ case 2:
+ if (getIntegerValue()
+ != other.getIntegerValue()) return false;
+ break;
+ case 3:
+ if (java.lang.Double.doubleToLongBits(getDoubleValue())
+ != java.lang.Double.doubleToLongBits(
+ other.getDoubleValue())) return false;
+ break;
+ case 10:
+ if (!getTimestampValue()
+ .equals(other.getTimestampValue())) return false;
+ break;
+ case 17:
+ if (!getStringValue()
+ .equals(other.getStringValue())) return false;
+ break;
+ case 18:
+ if (!getBytesValue()
+ .equals(other.getBytesValue())) return false;
+ break;
+ case 5:
+ if (!getReferenceValue()
+ .equals(other.getReferenceValue())) return false;
+ break;
+ case 8:
+ if (!getGeoPointValue()
+ .equals(other.getGeoPointValue())) return false;
+ break;
+ case 9:
+ if (!getArrayValue()
+ .equals(other.getArrayValue())) return false;
+ break;
+ case 6:
+ if (!getMapValue()
+ .equals(other.getMapValue())) return false;
+ break;
+ case 0:
+ default:
+ }
+ 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();
+ switch (valueTypeCase_) {
+ case 11:
+ hash = (37 * hash) + NULL_VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getNullValueValue();
+ break;
+ case 1:
+ hash = (37 * hash) + BOOLEAN_VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getBooleanValue());
+ break;
+ case 2:
+ hash = (37 * hash) + INTEGER_VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getIntegerValue());
+ break;
+ case 3:
+ hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getDoubleValue()));
+ break;
+ case 10:
+ hash = (37 * hash) + TIMESTAMP_VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getTimestampValue().hashCode();
+ break;
+ case 17:
+ hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getStringValue().hashCode();
+ break;
+ case 18:
+ hash = (37 * hash) + BYTES_VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getBytesValue().hashCode();
+ break;
+ case 5:
+ hash = (37 * hash) + REFERENCE_VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getReferenceValue().hashCode();
+ break;
+ case 8:
+ hash = (37 * hash) + GEO_POINT_VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getGeoPointValue().hashCode();
+ break;
+ case 9:
+ hash = (37 * hash) + ARRAY_VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getArrayValue().hashCode();
+ break;
+ case 6:
+ hash = (37 * hash) + MAP_VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getMapValue().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static google.events.cloud.firestore.v1.Data.Value parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static google.events.cloud.firestore.v1.Data.Value parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static google.events.cloud.firestore.v1.Data.Value parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static google.events.cloud.firestore.v1.Data.Value parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static google.events.cloud.firestore.v1.Data.Value parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static google.events.cloud.firestore.v1.Data.Value parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static google.events.cloud.firestore.v1.Data.Value parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static google.events.cloud.firestore.v1.Data.Value 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 google.events.cloud.firestore.v1.Data.Value parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static google.events.cloud.firestore.v1.Data.Value 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 google.events.cloud.firestore.v1.Data.Value parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static google.events.cloud.firestore.v1.Data.Value 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(google.events.cloud.firestore.v1.Data.Value 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;
+ }
+ /**
+ * + * A message that can hold any of the supported value types. + *+ * + * Protobuf type {@code google.events.cloud.firestore.v1.Value} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * A null value. + *+ * + *
.google.protobuf.NullValue null_value = 11;
+ * @return The enum numeric value on the wire for nullValue.
+ */
+ @java.lang.Override
+ public int getNullValueValue() {
+ if (valueTypeCase_ == 11) {
+ return ((java.lang.Integer) valueType_).intValue();
+ }
+ return 0;
+ }
+ /**
+ * + * A null value. + *+ * + *
.google.protobuf.NullValue null_value = 11;
+ * @param value The enum numeric value on the wire for nullValue to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNullValueValue(int value) {
+ valueTypeCase_ = 11;
+ valueType_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A null value. + *+ * + *
.google.protobuf.NullValue null_value = 11;
+ * @return The nullValue.
+ */
+ @java.lang.Override
+ public com.google.protobuf.NullValue getNullValue() {
+ if (valueTypeCase_ == 11) {
+ @SuppressWarnings("deprecation")
+ com.google.protobuf.NullValue result = com.google.protobuf.NullValue.valueOf(
+ (java.lang.Integer) valueType_);
+ return result == null ? com.google.protobuf.NullValue.UNRECOGNIZED : result;
+ }
+ return com.google.protobuf.NullValue.NULL_VALUE;
+ }
+ /**
+ * + * A null value. + *+ * + *
.google.protobuf.NullValue null_value = 11;
+ * @param value The nullValue to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNullValue(com.google.protobuf.NullValue value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ valueTypeCase_ = 11;
+ valueType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A null value. + *+ * + *
.google.protobuf.NullValue null_value = 11;
+ * @return This builder for chaining.
+ */
+ public Builder clearNullValue() {
+ if (valueTypeCase_ == 11) {
+ valueTypeCase_ = 0;
+ valueType_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ * + * A boolean value. + *+ * + *
bool boolean_value = 1;
+ * @return The booleanValue.
+ */
+ public boolean getBooleanValue() {
+ if (valueTypeCase_ == 1) {
+ return (java.lang.Boolean) valueType_;
+ }
+ return false;
+ }
+ /**
+ * + * A boolean value. + *+ * + *
bool boolean_value = 1;
+ * @param value The booleanValue to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBooleanValue(boolean value) {
+ valueTypeCase_ = 1;
+ valueType_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A boolean value. + *+ * + *
bool boolean_value = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearBooleanValue() {
+ if (valueTypeCase_ == 1) {
+ valueTypeCase_ = 0;
+ valueType_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ * + * An integer value. + *+ * + *
int64 integer_value = 2;
+ * @return The integerValue.
+ */
+ public long getIntegerValue() {
+ if (valueTypeCase_ == 2) {
+ return (java.lang.Long) valueType_;
+ }
+ return 0L;
+ }
+ /**
+ * + * An integer value. + *+ * + *
int64 integer_value = 2;
+ * @param value The integerValue to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIntegerValue(long value) {
+ valueTypeCase_ = 2;
+ valueType_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * An integer value. + *+ * + *
int64 integer_value = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearIntegerValue() {
+ if (valueTypeCase_ == 2) {
+ valueTypeCase_ = 0;
+ valueType_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ * + * A double value. + *+ * + *
double double_value = 3;
+ * @return The doubleValue.
+ */
+ public double getDoubleValue() {
+ if (valueTypeCase_ == 3) {
+ return (java.lang.Double) valueType_;
+ }
+ return 0D;
+ }
+ /**
+ * + * A double value. + *+ * + *
double double_value = 3;
+ * @param value The doubleValue to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDoubleValue(double value) {
+ valueTypeCase_ = 3;
+ valueType_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A double value. + *+ * + *
double double_value = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearDoubleValue() {
+ if (valueTypeCase_ == 3) {
+ valueTypeCase_ = 0;
+ valueType_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampValueBuilder_;
+ /**
+ * + * A timestamp value. + * Precise only to microseconds. When stored, any additional precision is + * rounded down. + *+ * + *
.google.protobuf.Timestamp timestamp_value = 10;
+ * @return Whether the timestampValue field is set.
+ */
+ @java.lang.Override
+ public boolean hasTimestampValue() {
+ return valueTypeCase_ == 10;
+ }
+ /**
+ * + * A timestamp value. + * Precise only to microseconds. When stored, any additional precision is + * rounded down. + *+ * + *
.google.protobuf.Timestamp timestamp_value = 10;
+ * @return The timestampValue.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getTimestampValue() {
+ if (timestampValueBuilder_ == null) {
+ if (valueTypeCase_ == 10) {
+ return (com.google.protobuf.Timestamp) valueType_;
+ }
+ return com.google.protobuf.Timestamp.getDefaultInstance();
+ } else {
+ if (valueTypeCase_ == 10) {
+ return timestampValueBuilder_.getMessage();
+ }
+ return com.google.protobuf.Timestamp.getDefaultInstance();
+ }
+ }
+ /**
+ * + * A timestamp value. + * Precise only to microseconds. When stored, any additional precision is + * rounded down. + *+ * + *
.google.protobuf.Timestamp timestamp_value = 10;
+ */
+ public Builder setTimestampValue(com.google.protobuf.Timestamp value) {
+ if (timestampValueBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ valueType_ = value;
+ onChanged();
+ } else {
+ timestampValueBuilder_.setMessage(value);
+ }
+ valueTypeCase_ = 10;
+ return this;
+ }
+ /**
+ * + * A timestamp value. + * Precise only to microseconds. When stored, any additional precision is + * rounded down. + *+ * + *
.google.protobuf.Timestamp timestamp_value = 10;
+ */
+ public Builder setTimestampValue(
+ com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (timestampValueBuilder_ == null) {
+ valueType_ = builderForValue.build();
+ onChanged();
+ } else {
+ timestampValueBuilder_.setMessage(builderForValue.build());
+ }
+ valueTypeCase_ = 10;
+ return this;
+ }
+ /**
+ * + * A timestamp value. + * Precise only to microseconds. When stored, any additional precision is + * rounded down. + *+ * + *
.google.protobuf.Timestamp timestamp_value = 10;
+ */
+ public Builder mergeTimestampValue(com.google.protobuf.Timestamp value) {
+ if (timestampValueBuilder_ == null) {
+ if (valueTypeCase_ == 10 &&
+ valueType_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ valueType_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) valueType_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ valueType_ = value;
+ }
+ onChanged();
+ } else {
+ if (valueTypeCase_ == 10) {
+ timestampValueBuilder_.mergeFrom(value);
+ }
+ timestampValueBuilder_.setMessage(value);
+ }
+ valueTypeCase_ = 10;
+ return this;
+ }
+ /**
+ * + * A timestamp value. + * Precise only to microseconds. When stored, any additional precision is + * rounded down. + *+ * + *
.google.protobuf.Timestamp timestamp_value = 10;
+ */
+ public Builder clearTimestampValue() {
+ if (timestampValueBuilder_ == null) {
+ if (valueTypeCase_ == 10) {
+ valueTypeCase_ = 0;
+ valueType_ = null;
+ onChanged();
+ }
+ } else {
+ if (valueTypeCase_ == 10) {
+ valueTypeCase_ = 0;
+ valueType_ = null;
+ }
+ timestampValueBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * + * A timestamp value. + * Precise only to microseconds. When stored, any additional precision is + * rounded down. + *+ * + *
.google.protobuf.Timestamp timestamp_value = 10;
+ */
+ public com.google.protobuf.Timestamp.Builder getTimestampValueBuilder() {
+ return getTimestampValueFieldBuilder().getBuilder();
+ }
+ /**
+ * + * A timestamp value. + * Precise only to microseconds. When stored, any additional precision is + * rounded down. + *+ * + *
.google.protobuf.Timestamp timestamp_value = 10;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder() {
+ if ((valueTypeCase_ == 10) && (timestampValueBuilder_ != null)) {
+ return timestampValueBuilder_.getMessageOrBuilder();
+ } else {
+ if (valueTypeCase_ == 10) {
+ return (com.google.protobuf.Timestamp) valueType_;
+ }
+ return com.google.protobuf.Timestamp.getDefaultInstance();
+ }
+ }
+ /**
+ * + * A timestamp value. + * Precise only to microseconds. When stored, any additional precision is + * rounded down. + *+ * + *
.google.protobuf.Timestamp timestamp_value = 10;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
+ getTimestampValueFieldBuilder() {
+ if (timestampValueBuilder_ == null) {
+ if (!(valueTypeCase_ == 10)) {
+ valueType_ = com.google.protobuf.Timestamp.getDefaultInstance();
+ }
+ timestampValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+ (com.google.protobuf.Timestamp) valueType_,
+ getParentForChildren(),
+ isClean());
+ valueType_ = null;
+ }
+ valueTypeCase_ = 10;
+ onChanged();;
+ return timestampValueBuilder_;
+ }
+
+ /**
+ * + * A string value. + * The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. + * Only the first 1,500 bytes of the UTF-8 representation are considered by + * queries. + *+ * + *
string string_value = 17;
+ * @return The stringValue.
+ */
+ @java.lang.Override
+ public java.lang.String getStringValue() {
+ java.lang.Object ref = "";
+ if (valueTypeCase_ == 17) {
+ ref = valueType_;
+ }
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (valueTypeCase_ == 17) {
+ valueType_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * A string value. + * The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. + * Only the first 1,500 bytes of the UTF-8 representation are considered by + * queries. + *+ * + *
string string_value = 17;
+ * @return The bytes for stringValue.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getStringValueBytes() {
+ java.lang.Object ref = "";
+ if (valueTypeCase_ == 17) {
+ ref = valueType_;
+ }
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ if (valueTypeCase_ == 17) {
+ valueType_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * A string value. + * The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. + * Only the first 1,500 bytes of the UTF-8 representation are considered by + * queries. + *+ * + *
string string_value = 17;
+ * @param value The stringValue to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStringValue(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ valueTypeCase_ = 17;
+ valueType_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A string value. + * The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. + * Only the first 1,500 bytes of the UTF-8 representation are considered by + * queries. + *+ * + *
string string_value = 17;
+ * @return This builder for chaining.
+ */
+ public Builder clearStringValue() {
+ if (valueTypeCase_ == 17) {
+ valueTypeCase_ = 0;
+ valueType_ = null;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * + * A string value. + * The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. + * Only the first 1,500 bytes of the UTF-8 representation are considered by + * queries. + *+ * + *
string string_value = 17;
+ * @param value The bytes for stringValue to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStringValueBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ valueTypeCase_ = 17;
+ valueType_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * + * A bytes value. + * Must not exceed 1 MiB - 89 bytes. + * Only the first 1,500 bytes are considered by queries. + *+ * + *
bytes bytes_value = 18;
+ * @return The bytesValue.
+ */
+ public com.google.protobuf.ByteString getBytesValue() {
+ if (valueTypeCase_ == 18) {
+ return (com.google.protobuf.ByteString) valueType_;
+ }
+ return com.google.protobuf.ByteString.EMPTY;
+ }
+ /**
+ * + * A bytes value. + * Must not exceed 1 MiB - 89 bytes. + * Only the first 1,500 bytes are considered by queries. + *+ * + *
bytes bytes_value = 18;
+ * @param value The bytesValue to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBytesValue(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ valueTypeCase_ = 18;
+ valueType_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A bytes value. + * Must not exceed 1 MiB - 89 bytes. + * Only the first 1,500 bytes are considered by queries. + *+ * + *
bytes bytes_value = 18;
+ * @return This builder for chaining.
+ */
+ public Builder clearBytesValue() {
+ if (valueTypeCase_ == 18) {
+ valueTypeCase_ = 0;
+ valueType_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ * + * A reference to a document. For example: + * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + *+ * + *
string reference_value = 5;
+ * @return The referenceValue.
+ */
+ @java.lang.Override
+ public java.lang.String getReferenceValue() {
+ java.lang.Object ref = "";
+ if (valueTypeCase_ == 5) {
+ ref = valueType_;
+ }
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (valueTypeCase_ == 5) {
+ valueType_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * A reference to a document. For example: + * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + *+ * + *
string reference_value = 5;
+ * @return The bytes for referenceValue.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getReferenceValueBytes() {
+ java.lang.Object ref = "";
+ if (valueTypeCase_ == 5) {
+ ref = valueType_;
+ }
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ if (valueTypeCase_ == 5) {
+ valueType_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * A reference to a document. For example: + * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + *+ * + *
string reference_value = 5;
+ * @param value The referenceValue to set.
+ * @return This builder for chaining.
+ */
+ public Builder setReferenceValue(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ valueTypeCase_ = 5;
+ valueType_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * A reference to a document. For example: + * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + *+ * + *
string reference_value = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearReferenceValue() {
+ if (valueTypeCase_ == 5) {
+ valueTypeCase_ = 0;
+ valueType_ = null;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * + * A reference to a document. For example: + * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + *+ * + *
string reference_value = 5;
+ * @param value The bytes for referenceValue to set.
+ * @return This builder for chaining.
+ */
+ public Builder setReferenceValueBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ valueTypeCase_ = 5;
+ valueType_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> geoPointValueBuilder_;
+ /**
+ * + * A geo point value representing a point on the surface of Earth. + *+ * + *
.google.type.LatLng geo_point_value = 8;
+ * @return Whether the geoPointValue field is set.
+ */
+ @java.lang.Override
+ public boolean hasGeoPointValue() {
+ return valueTypeCase_ == 8;
+ }
+ /**
+ * + * A geo point value representing a point on the surface of Earth. + *+ * + *
.google.type.LatLng geo_point_value = 8;
+ * @return The geoPointValue.
+ */
+ @java.lang.Override
+ public com.google.type.LatLng getGeoPointValue() {
+ if (geoPointValueBuilder_ == null) {
+ if (valueTypeCase_ == 8) {
+ return (com.google.type.LatLng) valueType_;
+ }
+ return com.google.type.LatLng.getDefaultInstance();
+ } else {
+ if (valueTypeCase_ == 8) {
+ return geoPointValueBuilder_.getMessage();
+ }
+ return com.google.type.LatLng.getDefaultInstance();
+ }
+ }
+ /**
+ * + * A geo point value representing a point on the surface of Earth. + *+ * + *
.google.type.LatLng geo_point_value = 8;
+ */
+ public Builder setGeoPointValue(com.google.type.LatLng value) {
+ if (geoPointValueBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ valueType_ = value;
+ onChanged();
+ } else {
+ geoPointValueBuilder_.setMessage(value);
+ }
+ valueTypeCase_ = 8;
+ return this;
+ }
+ /**
+ * + * A geo point value representing a point on the surface of Earth. + *+ * + *
.google.type.LatLng geo_point_value = 8;
+ */
+ public Builder setGeoPointValue(
+ com.google.type.LatLng.Builder builderForValue) {
+ if (geoPointValueBuilder_ == null) {
+ valueType_ = builderForValue.build();
+ onChanged();
+ } else {
+ geoPointValueBuilder_.setMessage(builderForValue.build());
+ }
+ valueTypeCase_ = 8;
+ return this;
+ }
+ /**
+ * + * A geo point value representing a point on the surface of Earth. + *+ * + *
.google.type.LatLng geo_point_value = 8;
+ */
+ public Builder mergeGeoPointValue(com.google.type.LatLng value) {
+ if (geoPointValueBuilder_ == null) {
+ if (valueTypeCase_ == 8 &&
+ valueType_ != com.google.type.LatLng.getDefaultInstance()) {
+ valueType_ = com.google.type.LatLng.newBuilder((com.google.type.LatLng) valueType_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ valueType_ = value;
+ }
+ onChanged();
+ } else {
+ if (valueTypeCase_ == 8) {
+ geoPointValueBuilder_.mergeFrom(value);
+ }
+ geoPointValueBuilder_.setMessage(value);
+ }
+ valueTypeCase_ = 8;
+ return this;
+ }
+ /**
+ * + * A geo point value representing a point on the surface of Earth. + *+ * + *
.google.type.LatLng geo_point_value = 8;
+ */
+ public Builder clearGeoPointValue() {
+ if (geoPointValueBuilder_ == null) {
+ if (valueTypeCase_ == 8) {
+ valueTypeCase_ = 0;
+ valueType_ = null;
+ onChanged();
+ }
+ } else {
+ if (valueTypeCase_ == 8) {
+ valueTypeCase_ = 0;
+ valueType_ = null;
+ }
+ geoPointValueBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * + * A geo point value representing a point on the surface of Earth. + *+ * + *
.google.type.LatLng geo_point_value = 8;
+ */
+ public com.google.type.LatLng.Builder getGeoPointValueBuilder() {
+ return getGeoPointValueFieldBuilder().getBuilder();
+ }
+ /**
+ * + * A geo point value representing a point on the surface of Earth. + *+ * + *
.google.type.LatLng geo_point_value = 8;
+ */
+ @java.lang.Override
+ public com.google.type.LatLngOrBuilder getGeoPointValueOrBuilder() {
+ if ((valueTypeCase_ == 8) && (geoPointValueBuilder_ != null)) {
+ return geoPointValueBuilder_.getMessageOrBuilder();
+ } else {
+ if (valueTypeCase_ == 8) {
+ return (com.google.type.LatLng) valueType_;
+ }
+ return com.google.type.LatLng.getDefaultInstance();
+ }
+ }
+ /**
+ * + * A geo point value representing a point on the surface of Earth. + *+ * + *
.google.type.LatLng geo_point_value = 8;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>
+ getGeoPointValueFieldBuilder() {
+ if (geoPointValueBuilder_ == null) {
+ if (!(valueTypeCase_ == 8)) {
+ valueType_ = com.google.type.LatLng.getDefaultInstance();
+ }
+ geoPointValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>(
+ (com.google.type.LatLng) valueType_,
+ getParentForChildren(),
+ isClean());
+ valueType_ = null;
+ }
+ valueTypeCase_ = 8;
+ onChanged();;
+ return geoPointValueBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ google.events.cloud.firestore.v1.Data.ArrayValue, google.events.cloud.firestore.v1.Data.ArrayValue.Builder, google.events.cloud.firestore.v1.Data.ArrayValueOrBuilder> arrayValueBuilder_;
+ /**
+ * + * An array value. + * Cannot directly contain another array value, though can contain an + * map which contains another array. + *+ * + *
.google.events.cloud.firestore.v1.ArrayValue array_value = 9;
+ * @return Whether the arrayValue field is set.
+ */
+ @java.lang.Override
+ public boolean hasArrayValue() {
+ return valueTypeCase_ == 9;
+ }
+ /**
+ * + * An array value. + * Cannot directly contain another array value, though can contain an + * map which contains another array. + *+ * + *
.google.events.cloud.firestore.v1.ArrayValue array_value = 9;
+ * @return The arrayValue.
+ */
+ @java.lang.Override
+ public google.events.cloud.firestore.v1.Data.ArrayValue getArrayValue() {
+ if (arrayValueBuilder_ == null) {
+ if (valueTypeCase_ == 9) {
+ return (google.events.cloud.firestore.v1.Data.ArrayValue) valueType_;
+ }
+ return google.events.cloud.firestore.v1.Data.ArrayValue.getDefaultInstance();
+ } else {
+ if (valueTypeCase_ == 9) {
+ return arrayValueBuilder_.getMessage();
+ }
+ return google.events.cloud.firestore.v1.Data.ArrayValue.getDefaultInstance();
+ }
+ }
+ /**
+ * + * An array value. + * Cannot directly contain another array value, though can contain an + * map which contains another array. + *+ * + *
.google.events.cloud.firestore.v1.ArrayValue array_value = 9;
+ */
+ public Builder setArrayValue(google.events.cloud.firestore.v1.Data.ArrayValue value) {
+ if (arrayValueBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ valueType_ = value;
+ onChanged();
+ } else {
+ arrayValueBuilder_.setMessage(value);
+ }
+ valueTypeCase_ = 9;
+ return this;
+ }
+ /**
+ * + * An array value. + * Cannot directly contain another array value, though can contain an + * map which contains another array. + *+ * + *
.google.events.cloud.firestore.v1.ArrayValue array_value = 9;
+ */
+ public Builder setArrayValue(
+ google.events.cloud.firestore.v1.Data.ArrayValue.Builder builderForValue) {
+ if (arrayValueBuilder_ == null) {
+ valueType_ = builderForValue.build();
+ onChanged();
+ } else {
+ arrayValueBuilder_.setMessage(builderForValue.build());
+ }
+ valueTypeCase_ = 9;
+ return this;
+ }
+ /**
+ * + * An array value. + * Cannot directly contain another array value, though can contain an + * map which contains another array. + *+ * + *
.google.events.cloud.firestore.v1.ArrayValue array_value = 9;
+ */
+ public Builder mergeArrayValue(google.events.cloud.firestore.v1.Data.ArrayValue value) {
+ if (arrayValueBuilder_ == null) {
+ if (valueTypeCase_ == 9 &&
+ valueType_ != google.events.cloud.firestore.v1.Data.ArrayValue.getDefaultInstance()) {
+ valueType_ = google.events.cloud.firestore.v1.Data.ArrayValue.newBuilder((google.events.cloud.firestore.v1.Data.ArrayValue) valueType_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ valueType_ = value;
+ }
+ onChanged();
+ } else {
+ if (valueTypeCase_ == 9) {
+ arrayValueBuilder_.mergeFrom(value);
+ }
+ arrayValueBuilder_.setMessage(value);
+ }
+ valueTypeCase_ = 9;
+ return this;
+ }
+ /**
+ * + * An array value. + * Cannot directly contain another array value, though can contain an + * map which contains another array. + *+ * + *
.google.events.cloud.firestore.v1.ArrayValue array_value = 9;
+ */
+ public Builder clearArrayValue() {
+ if (arrayValueBuilder_ == null) {
+ if (valueTypeCase_ == 9) {
+ valueTypeCase_ = 0;
+ valueType_ = null;
+ onChanged();
+ }
+ } else {
+ if (valueTypeCase_ == 9) {
+ valueTypeCase_ = 0;
+ valueType_ = null;
+ }
+ arrayValueBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * + * An array value. + * Cannot directly contain another array value, though can contain an + * map which contains another array. + *+ * + *
.google.events.cloud.firestore.v1.ArrayValue array_value = 9;
+ */
+ public google.events.cloud.firestore.v1.Data.ArrayValue.Builder getArrayValueBuilder() {
+ return getArrayValueFieldBuilder().getBuilder();
+ }
+ /**
+ * + * An array value. + * Cannot directly contain another array value, though can contain an + * map which contains another array. + *+ * + *
.google.events.cloud.firestore.v1.ArrayValue array_value = 9;
+ */
+ @java.lang.Override
+ public google.events.cloud.firestore.v1.Data.ArrayValueOrBuilder getArrayValueOrBuilder() {
+ if ((valueTypeCase_ == 9) && (arrayValueBuilder_ != null)) {
+ return arrayValueBuilder_.getMessageOrBuilder();
+ } else {
+ if (valueTypeCase_ == 9) {
+ return (google.events.cloud.firestore.v1.Data.ArrayValue) valueType_;
+ }
+ return google.events.cloud.firestore.v1.Data.ArrayValue.getDefaultInstance();
+ }
+ }
+ /**
+ * + * An array value. + * Cannot directly contain another array value, though can contain an + * map which contains another array. + *+ * + *
.google.events.cloud.firestore.v1.ArrayValue array_value = 9;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ google.events.cloud.firestore.v1.Data.ArrayValue, google.events.cloud.firestore.v1.Data.ArrayValue.Builder, google.events.cloud.firestore.v1.Data.ArrayValueOrBuilder>
+ getArrayValueFieldBuilder() {
+ if (arrayValueBuilder_ == null) {
+ if (!(valueTypeCase_ == 9)) {
+ valueType_ = google.events.cloud.firestore.v1.Data.ArrayValue.getDefaultInstance();
+ }
+ arrayValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ google.events.cloud.firestore.v1.Data.ArrayValue, google.events.cloud.firestore.v1.Data.ArrayValue.Builder, google.events.cloud.firestore.v1.Data.ArrayValueOrBuilder>(
+ (google.events.cloud.firestore.v1.Data.ArrayValue) valueType_,
+ getParentForChildren(),
+ isClean());
+ valueType_ = null;
+ }
+ valueTypeCase_ = 9;
+ onChanged();;
+ return arrayValueBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ google.events.cloud.firestore.v1.Data.MapValue, google.events.cloud.firestore.v1.Data.MapValue.Builder, google.events.cloud.firestore.v1.Data.MapValueOrBuilder> mapValueBuilder_;
+ /**
+ * + * A map value. + *+ * + *
.google.events.cloud.firestore.v1.MapValue map_value = 6;
+ * @return Whether the mapValue field is set.
+ */
+ @java.lang.Override
+ public boolean hasMapValue() {
+ return valueTypeCase_ == 6;
+ }
+ /**
+ * + * A map value. + *+ * + *
.google.events.cloud.firestore.v1.MapValue map_value = 6;
+ * @return The mapValue.
+ */
+ @java.lang.Override
+ public google.events.cloud.firestore.v1.Data.MapValue getMapValue() {
+ if (mapValueBuilder_ == null) {
+ if (valueTypeCase_ == 6) {
+ return (google.events.cloud.firestore.v1.Data.MapValue) valueType_;
+ }
+ return google.events.cloud.firestore.v1.Data.MapValue.getDefaultInstance();
+ } else {
+ if (valueTypeCase_ == 6) {
+ return mapValueBuilder_.getMessage();
+ }
+ return google.events.cloud.firestore.v1.Data.MapValue.getDefaultInstance();
+ }
+ }
+ /**
+ * + * A map value. + *+ * + *
.google.events.cloud.firestore.v1.MapValue map_value = 6;
+ */
+ public Builder setMapValue(google.events.cloud.firestore.v1.Data.MapValue value) {
+ if (mapValueBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ valueType_ = value;
+ onChanged();
+ } else {
+ mapValueBuilder_.setMessage(value);
+ }
+ valueTypeCase_ = 6;
+ return this;
+ }
+ /**
+ * + * A map value. + *+ * + *
.google.events.cloud.firestore.v1.MapValue map_value = 6;
+ */
+ public Builder setMapValue(
+ google.events.cloud.firestore.v1.Data.MapValue.Builder builderForValue) {
+ if (mapValueBuilder_ == null) {
+ valueType_ = builderForValue.build();
+ onChanged();
+ } else {
+ mapValueBuilder_.setMessage(builderForValue.build());
+ }
+ valueTypeCase_ = 6;
+ return this;
+ }
+ /**
+ * + * A map value. + *+ * + *
.google.events.cloud.firestore.v1.MapValue map_value = 6;
+ */
+ public Builder mergeMapValue(google.events.cloud.firestore.v1.Data.MapValue value) {
+ if (mapValueBuilder_ == null) {
+ if (valueTypeCase_ == 6 &&
+ valueType_ != google.events.cloud.firestore.v1.Data.MapValue.getDefaultInstance()) {
+ valueType_ = google.events.cloud.firestore.v1.Data.MapValue.newBuilder((google.events.cloud.firestore.v1.Data.MapValue) valueType_)
+ .mergeFrom(value).buildPartial();
+ } else {
+ valueType_ = value;
+ }
+ onChanged();
+ } else {
+ if (valueTypeCase_ == 6) {
+ mapValueBuilder_.mergeFrom(value);
+ }
+ mapValueBuilder_.setMessage(value);
+ }
+ valueTypeCase_ = 6;
+ return this;
+ }
+ /**
+ * + * A map value. + *+ * + *
.google.events.cloud.firestore.v1.MapValue map_value = 6;
+ */
+ public Builder clearMapValue() {
+ if (mapValueBuilder_ == null) {
+ if (valueTypeCase_ == 6) {
+ valueTypeCase_ = 0;
+ valueType_ = null;
+ onChanged();
+ }
+ } else {
+ if (valueTypeCase_ == 6) {
+ valueTypeCase_ = 0;
+ valueType_ = null;
+ }
+ mapValueBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * + * A map value. + *+ * + *
.google.events.cloud.firestore.v1.MapValue map_value = 6;
+ */
+ public google.events.cloud.firestore.v1.Data.MapValue.Builder getMapValueBuilder() {
+ return getMapValueFieldBuilder().getBuilder();
+ }
+ /**
+ * + * A map value. + *+ * + *
.google.events.cloud.firestore.v1.MapValue map_value = 6;
+ */
+ @java.lang.Override
+ public google.events.cloud.firestore.v1.Data.MapValueOrBuilder getMapValueOrBuilder() {
+ if ((valueTypeCase_ == 6) && (mapValueBuilder_ != null)) {
+ return mapValueBuilder_.getMessageOrBuilder();
+ } else {
+ if (valueTypeCase_ == 6) {
+ return (google.events.cloud.firestore.v1.Data.MapValue) valueType_;
+ }
+ return google.events.cloud.firestore.v1.Data.MapValue.getDefaultInstance();
+ }
+ }
+ /**
+ * + * A map value. + *+ * + *
.google.events.cloud.firestore.v1.MapValue map_value = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ google.events.cloud.firestore.v1.Data.MapValue, google.events.cloud.firestore.v1.Data.MapValue.Builder, google.events.cloud.firestore.v1.Data.MapValueOrBuilder>
+ getMapValueFieldBuilder() {
+ if (mapValueBuilder_ == null) {
+ if (!(valueTypeCase_ == 6)) {
+ valueType_ = google.events.cloud.firestore.v1.Data.MapValue.getDefaultInstance();
+ }
+ mapValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ google.events.cloud.firestore.v1.Data.MapValue, google.events.cloud.firestore.v1.Data.MapValue.Builder, google.events.cloud.firestore.v1.Data.MapValueOrBuilder>(
+ (google.events.cloud.firestore.v1.Data.MapValue) valueType_,
+ getParentForChildren(),
+ isClean());
+ valueType_ = null;
+ }
+ valueTypeCase_ = 6;
+ onChanged();;
+ return mapValueBuilder_;
+ }
+ @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.events.cloud.firestore.v1.Value)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.events.cloud.firestore.v1.Value)
+ private static final google.events.cloud.firestore.v1.Data.Value DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new google.events.cloud.firestore.v1.Data.Value();
+ }
+
+ public static google.events.cloud.firestore.v1.Data.Value getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Values in the array. + *+ * + *
repeated .google.events.cloud.firestore.v1.Value values = 1;
+ */
+ java.util.List+ * Values in the array. + *+ * + *
repeated .google.events.cloud.firestore.v1.Value values = 1;
+ */
+ google.events.cloud.firestore.v1.Data.Value getValues(int index);
+ /**
+ * + * Values in the array. + *+ * + *
repeated .google.events.cloud.firestore.v1.Value values = 1;
+ */
+ int getValuesCount();
+ /**
+ * + * Values in the array. + *+ * + *
repeated .google.events.cloud.firestore.v1.Value values = 1;
+ */
+ java.util.List extends google.events.cloud.firestore.v1.Data.ValueOrBuilder>
+ getValuesOrBuilderList();
+ /**
+ * + * Values in the array. + *+ * + *
repeated .google.events.cloud.firestore.v1.Value values = 1;
+ */
+ google.events.cloud.firestore.v1.Data.ValueOrBuilder getValuesOrBuilder(
+ int index);
+ }
+ /**
+ * + * An array value. + *+ * + * Protobuf type {@code google.events.cloud.firestore.v1.ArrayValue} + */ + public static final class ArrayValue extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.cloud.firestore.v1.ArrayValue) + ArrayValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use ArrayValue.newBuilder() to construct. + private ArrayValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private ArrayValue() { + values_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ArrayValue(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ArrayValue( + 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)) { + values_ = new java.util.ArrayList
+ * Values in the array. + *+ * + *
repeated .google.events.cloud.firestore.v1.Value values = 1;
+ */
+ @java.lang.Override
+ public java.util.List+ * Values in the array. + *+ * + *
repeated .google.events.cloud.firestore.v1.Value values = 1;
+ */
+ @java.lang.Override
+ public java.util.List extends google.events.cloud.firestore.v1.Data.ValueOrBuilder>
+ getValuesOrBuilderList() {
+ return values_;
+ }
+ /**
+ * + * Values in the array. + *+ * + *
repeated .google.events.cloud.firestore.v1.Value values = 1;
+ */
+ @java.lang.Override
+ public int getValuesCount() {
+ return values_.size();
+ }
+ /**
+ * + * Values in the array. + *+ * + *
repeated .google.events.cloud.firestore.v1.Value values = 1;
+ */
+ @java.lang.Override
+ public google.events.cloud.firestore.v1.Data.Value getValues(int index) {
+ return values_.get(index);
+ }
+ /**
+ * + * Values in the array. + *+ * + *
repeated .google.events.cloud.firestore.v1.Value values = 1;
+ */
+ @java.lang.Override
+ public google.events.cloud.firestore.v1.Data.ValueOrBuilder getValuesOrBuilder(
+ int index) {
+ return values_.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 < values_.size(); i++) {
+ output.writeMessage(1, values_.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 < values_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, values_.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 google.events.cloud.firestore.v1.Data.ArrayValue)) {
+ return super.equals(obj);
+ }
+ google.events.cloud.firestore.v1.Data.ArrayValue other = (google.events.cloud.firestore.v1.Data.ArrayValue) obj;
+
+ if (!getValuesList()
+ .equals(other.getValuesList())) 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 (getValuesCount() > 0) {
+ hash = (37 * hash) + VALUES_FIELD_NUMBER;
+ hash = (53 * hash) + getValuesList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static google.events.cloud.firestore.v1.Data.ArrayValue parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static google.events.cloud.firestore.v1.Data.ArrayValue parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static google.events.cloud.firestore.v1.Data.ArrayValue parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static google.events.cloud.firestore.v1.Data.ArrayValue parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static google.events.cloud.firestore.v1.Data.ArrayValue parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static google.events.cloud.firestore.v1.Data.ArrayValue parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static google.events.cloud.firestore.v1.Data.ArrayValue parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static google.events.cloud.firestore.v1.Data.ArrayValue 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 google.events.cloud.firestore.v1.Data.ArrayValue parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static google.events.cloud.firestore.v1.Data.ArrayValue 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 google.events.cloud.firestore.v1.Data.ArrayValue parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static google.events.cloud.firestore.v1.Data.ArrayValue 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(google.events.cloud.firestore.v1.Data.ArrayValue 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;
+ }
+ /**
+ * + * An array value. + *+ * + * Protobuf type {@code google.events.cloud.firestore.v1.ArrayValue} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * Values in the array. + *+ * + *
repeated .google.events.cloud.firestore.v1.Value values = 1;
+ */
+ public java.util.List+ * Values in the array. + *+ * + *
repeated .google.events.cloud.firestore.v1.Value values = 1;
+ */
+ public int getValuesCount() {
+ if (valuesBuilder_ == null) {
+ return values_.size();
+ } else {
+ return valuesBuilder_.getCount();
+ }
+ }
+ /**
+ * + * Values in the array. + *+ * + *
repeated .google.events.cloud.firestore.v1.Value values = 1;
+ */
+ public google.events.cloud.firestore.v1.Data.Value getValues(int index) {
+ if (valuesBuilder_ == null) {
+ return values_.get(index);
+ } else {
+ return valuesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * + * Values in the array. + *+ * + *
repeated .google.events.cloud.firestore.v1.Value values = 1;
+ */
+ public Builder setValues(
+ int index, google.events.cloud.firestore.v1.Data.Value value) {
+ if (valuesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValuesIsMutable();
+ values_.set(index, value);
+ onChanged();
+ } else {
+ valuesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * Values in the array. + *+ * + *
repeated .google.events.cloud.firestore.v1.Value values = 1;
+ */
+ public Builder setValues(
+ int index, google.events.cloud.firestore.v1.Data.Value.Builder builderForValue) {
+ if (valuesBuilder_ == null) {
+ ensureValuesIsMutable();
+ values_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ valuesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * Values in the array. + *+ * + *
repeated .google.events.cloud.firestore.v1.Value values = 1;
+ */
+ public Builder addValues(google.events.cloud.firestore.v1.Data.Value value) {
+ if (valuesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValuesIsMutable();
+ values_.add(value);
+ onChanged();
+ } else {
+ valuesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * + * Values in the array. + *+ * + *
repeated .google.events.cloud.firestore.v1.Value values = 1;
+ */
+ public Builder addValues(
+ int index, google.events.cloud.firestore.v1.Data.Value value) {
+ if (valuesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValuesIsMutable();
+ values_.add(index, value);
+ onChanged();
+ } else {
+ valuesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * Values in the array. + *+ * + *
repeated .google.events.cloud.firestore.v1.Value values = 1;
+ */
+ public Builder addValues(
+ google.events.cloud.firestore.v1.Data.Value.Builder builderForValue) {
+ if (valuesBuilder_ == null) {
+ ensureValuesIsMutable();
+ values_.add(builderForValue.build());
+ onChanged();
+ } else {
+ valuesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * Values in the array. + *+ * + *
repeated .google.events.cloud.firestore.v1.Value values = 1;
+ */
+ public Builder addValues(
+ int index, google.events.cloud.firestore.v1.Data.Value.Builder builderForValue) {
+ if (valuesBuilder_ == null) {
+ ensureValuesIsMutable();
+ values_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ valuesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * Values in the array. + *+ * + *
repeated .google.events.cloud.firestore.v1.Value values = 1;
+ */
+ public Builder addAllValues(
+ java.lang.Iterable extends google.events.cloud.firestore.v1.Data.Value> values) {
+ if (valuesBuilder_ == null) {
+ ensureValuesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, values_);
+ onChanged();
+ } else {
+ valuesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * + * Values in the array. + *+ * + *
repeated .google.events.cloud.firestore.v1.Value values = 1;
+ */
+ public Builder clearValues() {
+ if (valuesBuilder_ == null) {
+ values_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ valuesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * + * Values in the array. + *+ * + *
repeated .google.events.cloud.firestore.v1.Value values = 1;
+ */
+ public Builder removeValues(int index) {
+ if (valuesBuilder_ == null) {
+ ensureValuesIsMutable();
+ values_.remove(index);
+ onChanged();
+ } else {
+ valuesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * + * Values in the array. + *+ * + *
repeated .google.events.cloud.firestore.v1.Value values = 1;
+ */
+ public google.events.cloud.firestore.v1.Data.Value.Builder getValuesBuilder(
+ int index) {
+ return getValuesFieldBuilder().getBuilder(index);
+ }
+ /**
+ * + * Values in the array. + *+ * + *
repeated .google.events.cloud.firestore.v1.Value values = 1;
+ */
+ public google.events.cloud.firestore.v1.Data.ValueOrBuilder getValuesOrBuilder(
+ int index) {
+ if (valuesBuilder_ == null) {
+ return values_.get(index); } else {
+ return valuesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * + * Values in the array. + *+ * + *
repeated .google.events.cloud.firestore.v1.Value values = 1;
+ */
+ public java.util.List extends google.events.cloud.firestore.v1.Data.ValueOrBuilder>
+ getValuesOrBuilderList() {
+ if (valuesBuilder_ != null) {
+ return valuesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(values_);
+ }
+ }
+ /**
+ * + * Values in the array. + *+ * + *
repeated .google.events.cloud.firestore.v1.Value values = 1;
+ */
+ public google.events.cloud.firestore.v1.Data.Value.Builder addValuesBuilder() {
+ return getValuesFieldBuilder().addBuilder(
+ google.events.cloud.firestore.v1.Data.Value.getDefaultInstance());
+ }
+ /**
+ * + * Values in the array. + *+ * + *
repeated .google.events.cloud.firestore.v1.Value values = 1;
+ */
+ public google.events.cloud.firestore.v1.Data.Value.Builder addValuesBuilder(
+ int index) {
+ return getValuesFieldBuilder().addBuilder(
+ index, google.events.cloud.firestore.v1.Data.Value.getDefaultInstance());
+ }
+ /**
+ * + * Values in the array. + *+ * + *
repeated .google.events.cloud.firestore.v1.Value values = 1;
+ */
+ public java.util.List+ * The map's fields. + * The map keys represent field names. Field names matching the regular + * expression `__.*__` are reserved. Reserved field names are forbidden except + * in certain documented contexts. The map keys, represented as UTF-8, must + * not exceed 1,500 bytes and cannot be empty. + *+ * + *
map<string, .google.events.cloud.firestore.v1.Value> fields = 1;
+ */
+ int getFieldsCount();
+ /**
+ * + * The map's fields. + * The map keys represent field names. Field names matching the regular + * expression `__.*__` are reserved. Reserved field names are forbidden except + * in certain documented contexts. The map keys, represented as UTF-8, must + * not exceed 1,500 bytes and cannot be empty. + *+ * + *
map<string, .google.events.cloud.firestore.v1.Value> fields = 1;
+ */
+ boolean containsFields(
+ java.lang.String key);
+ /**
+ * Use {@link #getFieldsMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Map+ * The map's fields. + * The map keys represent field names. Field names matching the regular + * expression `__.*__` are reserved. Reserved field names are forbidden except + * in certain documented contexts. The map keys, represented as UTF-8, must + * not exceed 1,500 bytes and cannot be empty. + *+ * + *
map<string, .google.events.cloud.firestore.v1.Value> fields = 1;
+ */
+ java.util.Map+ * The map's fields. + * The map keys represent field names. Field names matching the regular + * expression `__.*__` are reserved. Reserved field names are forbidden except + * in certain documented contexts. The map keys, represented as UTF-8, must + * not exceed 1,500 bytes and cannot be empty. + *+ * + *
map<string, .google.events.cloud.firestore.v1.Value> fields = 1;
+ */
+
+ google.events.cloud.firestore.v1.Data.Value getFieldsOrDefault(
+ java.lang.String key,
+ google.events.cloud.firestore.v1.Data.Value defaultValue);
+ /**
+ * + * The map's fields. + * The map keys represent field names. Field names matching the regular + * expression `__.*__` are reserved. Reserved field names are forbidden except + * in certain documented contexts. The map keys, represented as UTF-8, must + * not exceed 1,500 bytes and cannot be empty. + *+ * + *
map<string, .google.events.cloud.firestore.v1.Value> fields = 1;
+ */
+
+ google.events.cloud.firestore.v1.Data.Value getFieldsOrThrow(
+ java.lang.String key);
+ }
+ /**
+ * + * A map value. + *+ * + * Protobuf type {@code google.events.cloud.firestore.v1.MapValue} + */ + public static final class MapValue extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.cloud.firestore.v1.MapValue) + MapValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use MapValue.newBuilder() to construct. + private MapValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private MapValue() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MapValue(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MapValue( + 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)) { + fields_ = com.google.protobuf.MapField.newMapField( + FieldsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry
+ * The map's fields. + * The map keys represent field names. Field names matching the regular + * expression `__.*__` are reserved. Reserved field names are forbidden except + * in certain documented contexts. The map keys, represented as UTF-8, must + * not exceed 1,500 bytes and cannot be empty. + *+ * + *
map<string, .google.events.cloud.firestore.v1.Value> fields = 1;
+ */
+
+ @java.lang.Override
+ public boolean containsFields(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetFields().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getFieldsMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * The map's fields. + * The map keys represent field names. Field names matching the regular + * expression `__.*__` are reserved. Reserved field names are forbidden except + * in certain documented contexts. The map keys, represented as UTF-8, must + * not exceed 1,500 bytes and cannot be empty. + *+ * + *
map<string, .google.events.cloud.firestore.v1.Value> fields = 1;
+ */
+ @java.lang.Override
+
+ public java.util.Map+ * The map's fields. + * The map keys represent field names. Field names matching the regular + * expression `__.*__` are reserved. Reserved field names are forbidden except + * in certain documented contexts. The map keys, represented as UTF-8, must + * not exceed 1,500 bytes and cannot be empty. + *+ * + *
map<string, .google.events.cloud.firestore.v1.Value> fields = 1;
+ */
+ @java.lang.Override
+
+ public google.events.cloud.firestore.v1.Data.Value getFieldsOrDefault(
+ java.lang.String key,
+ google.events.cloud.firestore.v1.Data.Value defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * The map's fields. + * The map keys represent field names. Field names matching the regular + * expression `__.*__` are reserved. Reserved field names are forbidden except + * in certain documented contexts. The map keys, represented as UTF-8, must + * not exceed 1,500 bytes and cannot be empty. + *+ * + *
map<string, .google.events.cloud.firestore.v1.Value> fields = 1;
+ */
+ @java.lang.Override
+
+ public google.events.cloud.firestore.v1.Data.Value getFieldsOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * A map value. + *+ * + * Protobuf type {@code google.events.cloud.firestore.v1.MapValue} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * The map's fields. + * The map keys represent field names. Field names matching the regular + * expression `__.*__` are reserved. Reserved field names are forbidden except + * in certain documented contexts. The map keys, represented as UTF-8, must + * not exceed 1,500 bytes and cannot be empty. + *+ * + *
map<string, .google.events.cloud.firestore.v1.Value> fields = 1;
+ */
+
+ @java.lang.Override
+ public boolean containsFields(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetFields().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getFieldsMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * The map's fields. + * The map keys represent field names. Field names matching the regular + * expression `__.*__` are reserved. Reserved field names are forbidden except + * in certain documented contexts. The map keys, represented as UTF-8, must + * not exceed 1,500 bytes and cannot be empty. + *+ * + *
map<string, .google.events.cloud.firestore.v1.Value> fields = 1;
+ */
+ @java.lang.Override
+
+ public java.util.Map+ * The map's fields. + * The map keys represent field names. Field names matching the regular + * expression `__.*__` are reserved. Reserved field names are forbidden except + * in certain documented contexts. The map keys, represented as UTF-8, must + * not exceed 1,500 bytes and cannot be empty. + *+ * + *
map<string, .google.events.cloud.firestore.v1.Value> fields = 1;
+ */
+ @java.lang.Override
+
+ public google.events.cloud.firestore.v1.Data.Value getFieldsOrDefault(
+ java.lang.String key,
+ google.events.cloud.firestore.v1.Data.Value defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * The map's fields. + * The map keys represent field names. Field names matching the regular + * expression `__.*__` are reserved. Reserved field names are forbidden except + * in certain documented contexts. The map keys, represented as UTF-8, must + * not exceed 1,500 bytes and cannot be empty. + *+ * + *
map<string, .google.events.cloud.firestore.v1.Value> fields = 1;
+ */
+ @java.lang.Override
+
+ public google.events.cloud.firestore.v1.Data.Value getFieldsOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * The map's fields. + * The map keys represent field names. Field names matching the regular + * expression `__.*__` are reserved. Reserved field names are forbidden except + * in certain documented contexts. The map keys, represented as UTF-8, must + * not exceed 1,500 bytes and cannot be empty. + *+ * + *
map<string, .google.events.cloud.firestore.v1.Value> fields = 1;
+ */
+
+ public Builder removeFields(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableFields().getMutableMap()
+ .remove(key);
+ return this;
+ }
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Map+ * The map's fields. + * The map keys represent field names. Field names matching the regular + * expression `__.*__` are reserved. Reserved field names are forbidden except + * in certain documented contexts. The map keys, represented as UTF-8, must + * not exceed 1,500 bytes and cannot be empty. + *+ * + *
map<string, .google.events.cloud.firestore.v1.Value> fields = 1;
+ */
+ public Builder putFields(
+ java.lang.String key,
+ google.events.cloud.firestore.v1.Data.Value value) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ if (value == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableFields().getMutableMap()
+ .put(key, value);
+ return this;
+ }
+ /**
+ * + * The map's fields. + * The map keys represent field names. Field names matching the regular + * expression `__.*__` are reserved. Reserved field names are forbidden except + * in certain documented contexts. The map keys, represented as UTF-8, must + * not exceed 1,500 bytes and cannot be empty. + *+ * + *
map<string, .google.events.cloud.firestore.v1.Value> fields = 1;
+ */
+
+ public Builder putAllFields(
+ java.util.Map+ * The message that was published. + *+ * + *
.google.events.cloud.pubsub.v1.PubsubMessage message = 1;
+ * @return Whether the message field is set.
+ */
+ boolean hasMessage();
+ /**
+ * + * The message that was published. + *+ * + *
.google.events.cloud.pubsub.v1.PubsubMessage message = 1;
+ * @return The message.
+ */
+ google.events.cloud.pubsub.v1.Data.PubsubMessage getMessage();
+ /**
+ * + * The message that was published. + *+ * + *
.google.events.cloud.pubsub.v1.PubsubMessage message = 1;
+ */
+ google.events.cloud.pubsub.v1.Data.PubsubMessageOrBuilder getMessageOrBuilder();
+
+ /**
+ * + * The resource name of the subscription for which this event was + * generated. The format of the value is + * `projects/{project-id}/subscriptions/{subscription-id}`. + *+ * + *
string subscription = 2;
+ * @return The subscription.
+ */
+ java.lang.String getSubscription();
+ /**
+ * + * The resource name of the subscription for which this event was + * generated. The format of the value is + * `projects/{project-id}/subscriptions/{subscription-id}`. + *+ * + *
string subscription = 2;
+ * @return The bytes for subscription.
+ */
+ com.google.protobuf.ByteString
+ getSubscriptionBytes();
+ }
+ /**
+ * + * The data received in an event when a message is published to a topic. + *+ * + * Protobuf type {@code google.events.cloud.pubsub.v1.MessagePublishedData} + */ + public static final class MessagePublishedData extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.cloud.pubsub.v1.MessagePublishedData) + MessagePublishedDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use MessagePublishedData.newBuilder() to construct. + private MessagePublishedData(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private MessagePublishedData() { + subscription_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MessagePublishedData(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MessagePublishedData( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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: { + google.events.cloud.pubsub.v1.Data.PubsubMessage.Builder subBuilder = null; + if (message_ != null) { + subBuilder = message_.toBuilder(); + } + message_ = input.readMessage(google.events.cloud.pubsub.v1.Data.PubsubMessage.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(message_); + message_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + subscription_ = s; + 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 google.events.cloud.pubsub.v1.Data.internal_static_google_events_cloud_pubsub_v1_MessagePublishedData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.pubsub.v1.Data.internal_static_google_events_cloud_pubsub_v1_MessagePublishedData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.pubsub.v1.Data.MessagePublishedData.class, google.events.cloud.pubsub.v1.Data.MessagePublishedData.Builder.class); + } + + public static final int MESSAGE_FIELD_NUMBER = 1; + private google.events.cloud.pubsub.v1.Data.PubsubMessage message_; + /** + *
+ * The message that was published. + *+ * + *
.google.events.cloud.pubsub.v1.PubsubMessage message = 1;
+ * @return Whether the message field is set.
+ */
+ @java.lang.Override
+ public boolean hasMessage() {
+ return message_ != null;
+ }
+ /**
+ * + * The message that was published. + *+ * + *
.google.events.cloud.pubsub.v1.PubsubMessage message = 1;
+ * @return The message.
+ */
+ @java.lang.Override
+ public google.events.cloud.pubsub.v1.Data.PubsubMessage getMessage() {
+ return message_ == null ? google.events.cloud.pubsub.v1.Data.PubsubMessage.getDefaultInstance() : message_;
+ }
+ /**
+ * + * The message that was published. + *+ * + *
.google.events.cloud.pubsub.v1.PubsubMessage message = 1;
+ */
+ @java.lang.Override
+ public google.events.cloud.pubsub.v1.Data.PubsubMessageOrBuilder getMessageOrBuilder() {
+ return getMessage();
+ }
+
+ public static final int SUBSCRIPTION_FIELD_NUMBER = 2;
+ private volatile java.lang.Object subscription_;
+ /**
+ * + * The resource name of the subscription for which this event was + * generated. The format of the value is + * `projects/{project-id}/subscriptions/{subscription-id}`. + *+ * + *
string subscription = 2;
+ * @return The subscription.
+ */
+ @java.lang.Override
+ public java.lang.String getSubscription() {
+ java.lang.Object ref = subscription_;
+ 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();
+ subscription_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * The resource name of the subscription for which this event was + * generated. The format of the value is + * `projects/{project-id}/subscriptions/{subscription-id}`. + *+ * + *
string subscription = 2;
+ * @return The bytes for subscription.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getSubscriptionBytes() {
+ java.lang.Object ref = subscription_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ subscription_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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 (message_ != null) {
+ output.writeMessage(1, getMessage());
+ }
+ if (!getSubscriptionBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subscription_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (message_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getMessage());
+ }
+ if (!getSubscriptionBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subscription_);
+ }
+ 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 google.events.cloud.pubsub.v1.Data.MessagePublishedData)) {
+ return super.equals(obj);
+ }
+ google.events.cloud.pubsub.v1.Data.MessagePublishedData other = (google.events.cloud.pubsub.v1.Data.MessagePublishedData) obj;
+
+ if (hasMessage() != other.hasMessage()) return false;
+ if (hasMessage()) {
+ if (!getMessage()
+ .equals(other.getMessage())) return false;
+ }
+ if (!getSubscription()
+ .equals(other.getSubscription())) 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 (hasMessage()) {
+ hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getMessage().hashCode();
+ }
+ hash = (37 * hash) + SUBSCRIPTION_FIELD_NUMBER;
+ hash = (53 * hash) + getSubscription().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static google.events.cloud.pubsub.v1.Data.MessagePublishedData parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static google.events.cloud.pubsub.v1.Data.MessagePublishedData parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static google.events.cloud.pubsub.v1.Data.MessagePublishedData parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static google.events.cloud.pubsub.v1.Data.MessagePublishedData parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static google.events.cloud.pubsub.v1.Data.MessagePublishedData parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static google.events.cloud.pubsub.v1.Data.MessagePublishedData parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static google.events.cloud.pubsub.v1.Data.MessagePublishedData parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static google.events.cloud.pubsub.v1.Data.MessagePublishedData 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 google.events.cloud.pubsub.v1.Data.MessagePublishedData parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static google.events.cloud.pubsub.v1.Data.MessagePublishedData 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 google.events.cloud.pubsub.v1.Data.MessagePublishedData parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static google.events.cloud.pubsub.v1.Data.MessagePublishedData 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(google.events.cloud.pubsub.v1.Data.MessagePublishedData 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;
+ }
+ /**
+ * + * The data received in an event when a message is published to a topic. + *+ * + * Protobuf type {@code google.events.cloud.pubsub.v1.MessagePublishedData} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * The message that was published. + *+ * + *
.google.events.cloud.pubsub.v1.PubsubMessage message = 1;
+ * @return Whether the message field is set.
+ */
+ public boolean hasMessage() {
+ return messageBuilder_ != null || message_ != null;
+ }
+ /**
+ * + * The message that was published. + *+ * + *
.google.events.cloud.pubsub.v1.PubsubMessage message = 1;
+ * @return The message.
+ */
+ public google.events.cloud.pubsub.v1.Data.PubsubMessage getMessage() {
+ if (messageBuilder_ == null) {
+ return message_ == null ? google.events.cloud.pubsub.v1.Data.PubsubMessage.getDefaultInstance() : message_;
+ } else {
+ return messageBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * The message that was published. + *+ * + *
.google.events.cloud.pubsub.v1.PubsubMessage message = 1;
+ */
+ public Builder setMessage(google.events.cloud.pubsub.v1.Data.PubsubMessage value) {
+ if (messageBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ message_ = value;
+ onChanged();
+ } else {
+ messageBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * The message that was published. + *+ * + *
.google.events.cloud.pubsub.v1.PubsubMessage message = 1;
+ */
+ public Builder setMessage(
+ google.events.cloud.pubsub.v1.Data.PubsubMessage.Builder builderForValue) {
+ if (messageBuilder_ == null) {
+ message_ = builderForValue.build();
+ onChanged();
+ } else {
+ messageBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * The message that was published. + *+ * + *
.google.events.cloud.pubsub.v1.PubsubMessage message = 1;
+ */
+ public Builder mergeMessage(google.events.cloud.pubsub.v1.Data.PubsubMessage value) {
+ if (messageBuilder_ == null) {
+ if (message_ != null) {
+ message_ =
+ google.events.cloud.pubsub.v1.Data.PubsubMessage.newBuilder(message_).mergeFrom(value).buildPartial();
+ } else {
+ message_ = value;
+ }
+ onChanged();
+ } else {
+ messageBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * The message that was published. + *+ * + *
.google.events.cloud.pubsub.v1.PubsubMessage message = 1;
+ */
+ public Builder clearMessage() {
+ if (messageBuilder_ == null) {
+ message_ = null;
+ onChanged();
+ } else {
+ message_ = null;
+ messageBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * The message that was published. + *+ * + *
.google.events.cloud.pubsub.v1.PubsubMessage message = 1;
+ */
+ public google.events.cloud.pubsub.v1.Data.PubsubMessage.Builder getMessageBuilder() {
+
+ onChanged();
+ return getMessageFieldBuilder().getBuilder();
+ }
+ /**
+ * + * The message that was published. + *+ * + *
.google.events.cloud.pubsub.v1.PubsubMessage message = 1;
+ */
+ public google.events.cloud.pubsub.v1.Data.PubsubMessageOrBuilder getMessageOrBuilder() {
+ if (messageBuilder_ != null) {
+ return messageBuilder_.getMessageOrBuilder();
+ } else {
+ return message_ == null ?
+ google.events.cloud.pubsub.v1.Data.PubsubMessage.getDefaultInstance() : message_;
+ }
+ }
+ /**
+ * + * The message that was published. + *+ * + *
.google.events.cloud.pubsub.v1.PubsubMessage message = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ google.events.cloud.pubsub.v1.Data.PubsubMessage, google.events.cloud.pubsub.v1.Data.PubsubMessage.Builder, google.events.cloud.pubsub.v1.Data.PubsubMessageOrBuilder>
+ getMessageFieldBuilder() {
+ if (messageBuilder_ == null) {
+ messageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ google.events.cloud.pubsub.v1.Data.PubsubMessage, google.events.cloud.pubsub.v1.Data.PubsubMessage.Builder, google.events.cloud.pubsub.v1.Data.PubsubMessageOrBuilder>(
+ getMessage(),
+ getParentForChildren(),
+ isClean());
+ message_ = null;
+ }
+ return messageBuilder_;
+ }
+
+ private java.lang.Object subscription_ = "";
+ /**
+ * + * The resource name of the subscription for which this event was + * generated. The format of the value is + * `projects/{project-id}/subscriptions/{subscription-id}`. + *+ * + *
string subscription = 2;
+ * @return The subscription.
+ */
+ public java.lang.String getSubscription() {
+ java.lang.Object ref = subscription_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ subscription_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * The resource name of the subscription for which this event was + * generated. The format of the value is + * `projects/{project-id}/subscriptions/{subscription-id}`. + *+ * + *
string subscription = 2;
+ * @return The bytes for subscription.
+ */
+ public com.google.protobuf.ByteString
+ getSubscriptionBytes() {
+ java.lang.Object ref = subscription_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ subscription_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * The resource name of the subscription for which this event was + * generated. The format of the value is + * `projects/{project-id}/subscriptions/{subscription-id}`. + *+ * + *
string subscription = 2;
+ * @param value The subscription to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSubscription(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ subscription_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The resource name of the subscription for which this event was + * generated. The format of the value is + * `projects/{project-id}/subscriptions/{subscription-id}`. + *+ * + *
string subscription = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearSubscription() {
+
+ subscription_ = getDefaultInstance().getSubscription();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The resource name of the subscription for which this event was + * generated. The format of the value is + * `projects/{project-id}/subscriptions/{subscription-id}`. + *+ * + *
string subscription = 2;
+ * @param value The bytes for subscription to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSubscriptionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ subscription_ = value;
+ 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.events.cloud.pubsub.v1.MessagePublishedData)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.events.cloud.pubsub.v1.MessagePublishedData)
+ private static final google.events.cloud.pubsub.v1.Data.MessagePublishedData DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new google.events.cloud.pubsub.v1.Data.MessagePublishedData();
+ }
+
+ public static google.events.cloud.pubsub.v1.Data.MessagePublishedData getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The binary data in the message. + *+ * + *
bytes data = 1;
+ * @return The data.
+ */
+ com.google.protobuf.ByteString getData();
+
+ /**
+ * + * Attributes for this message. + *+ * + *
map<string, string> attributes = 2;
+ */
+ int getAttributesCount();
+ /**
+ * + * Attributes for this message. + *+ * + *
map<string, string> attributes = 2;
+ */
+ boolean containsAttributes(
+ java.lang.String key);
+ /**
+ * Use {@link #getAttributesMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Map+ * Attributes for this message. + *+ * + *
map<string, string> attributes = 2;
+ */
+ java.util.Map+ * Attributes for this message. + *+ * + *
map<string, string> attributes = 2;
+ */
+
+ java.lang.String getAttributesOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue);
+ /**
+ * + * Attributes for this message. + *+ * + *
map<string, string> attributes = 2;
+ */
+
+ java.lang.String getAttributesOrThrow(
+ java.lang.String key);
+
+ /**
+ * + * ID of this message, assigned by the server when the message is published. + * Guaranteed to be unique within the topic. + *+ * + *
string message_id = 3;
+ * @return The messageId.
+ */
+ java.lang.String getMessageId();
+ /**
+ * + * ID of this message, assigned by the server when the message is published. + * Guaranteed to be unique within the topic. + *+ * + *
string message_id = 3;
+ * @return The bytes for messageId.
+ */
+ com.google.protobuf.ByteString
+ getMessageIdBytes();
+ }
+ /**
+ * + * A message published to a topic. + *+ * + * Protobuf type {@code google.events.cloud.pubsub.v1.PubsubMessage} + */ + public static final class PubsubMessage extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.cloud.pubsub.v1.PubsubMessage) + PubsubMessageOrBuilder { + private static final long serialVersionUID = 0L; + // Use PubsubMessage.newBuilder() to construct. + private PubsubMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private PubsubMessage() { + data_ = com.google.protobuf.ByteString.EMPTY; + messageId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PubsubMessage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PubsubMessage( + 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: { + + data_ = input.readBytes(); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + attributes_ = com.google.protobuf.MapField.newMapField( + AttributesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry
+ * The binary data in the message. + *+ * + *
bytes data = 1;
+ * @return The data.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getData() {
+ return data_;
+ }
+
+ public static final int ATTRIBUTES_FIELD_NUMBER = 2;
+ private static final class AttributesDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.String, java.lang.String> defaultEntry =
+ com.google.protobuf.MapEntry
+ .+ * Attributes for this message. + *+ * + *
map<string, string> attributes = 2;
+ */
+
+ @java.lang.Override
+ public boolean containsAttributes(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetAttributes().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getAttributesMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * Attributes for this message. + *+ * + *
map<string, string> attributes = 2;
+ */
+ @java.lang.Override
+
+ public java.util.Map+ * Attributes for this message. + *+ * + *
map<string, string> attributes = 2;
+ */
+ @java.lang.Override
+
+ public java.lang.String getAttributesOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * Attributes for this message. + *+ * + *
map<string, string> attributes = 2;
+ */
+ @java.lang.Override
+
+ public java.lang.String getAttributesOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * ID of this message, assigned by the server when the message is published. + * Guaranteed to be unique within the topic. + *+ * + *
string message_id = 3;
+ * @return The messageId.
+ */
+ @java.lang.Override
+ public java.lang.String getMessageId() {
+ java.lang.Object ref = messageId_;
+ 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();
+ messageId_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * ID of this message, assigned by the server when the message is published. + * Guaranteed to be unique within the topic. + *+ * + *
string message_id = 3;
+ * @return The bytes for messageId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMessageIdBytes() {
+ java.lang.Object ref = messageId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ messageId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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 (!data_.isEmpty()) {
+ output.writeBytes(1, data_);
+ }
+ com.google.protobuf.GeneratedMessageV3
+ .serializeStringMapTo(
+ output,
+ internalGetAttributes(),
+ AttributesDefaultEntryHolder.defaultEntry,
+ 2);
+ if (!getMessageIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, messageId_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!data_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(1, data_);
+ }
+ for (java.util.Map.Entry+ * A message published to a topic. + *+ * + * Protobuf type {@code google.events.cloud.pubsub.v1.PubsubMessage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * The binary data in the message. + *+ * + *
bytes data = 1;
+ * @return The data.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getData() {
+ return data_;
+ }
+ /**
+ * + * The binary data in the message. + *+ * + *
bytes data = 1;
+ * @param value The data to set.
+ * @return This builder for chaining.
+ */
+ public Builder setData(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ data_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The binary data in the message. + *+ * + *
bytes data = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearData() {
+
+ data_ = getDefaultInstance().getData();
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.MapField<
+ java.lang.String, java.lang.String> attributes_;
+ private com.google.protobuf.MapField+ * Attributes for this message. + *+ * + *
map<string, string> attributes = 2;
+ */
+
+ @java.lang.Override
+ public boolean containsAttributes(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetAttributes().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getAttributesMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * Attributes for this message. + *+ * + *
map<string, string> attributes = 2;
+ */
+ @java.lang.Override
+
+ public java.util.Map+ * Attributes for this message. + *+ * + *
map<string, string> attributes = 2;
+ */
+ @java.lang.Override
+
+ public java.lang.String getAttributesOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * Attributes for this message. + *+ * + *
map<string, string> attributes = 2;
+ */
+ @java.lang.Override
+
+ public java.lang.String getAttributesOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * Attributes for this message. + *+ * + *
map<string, string> attributes = 2;
+ */
+
+ public Builder removeAttributes(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableAttributes().getMutableMap()
+ .remove(key);
+ return this;
+ }
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Map+ * Attributes for this message. + *+ * + *
map<string, string> attributes = 2;
+ */
+ public Builder putAttributes(
+ java.lang.String key,
+ java.lang.String value) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ if (value == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableAttributes().getMutableMap()
+ .put(key, value);
+ return this;
+ }
+ /**
+ * + * Attributes for this message. + *+ * + *
map<string, string> attributes = 2;
+ */
+
+ public Builder putAllAttributes(
+ java.util.Map+ * ID of this message, assigned by the server when the message is published. + * Guaranteed to be unique within the topic. + *+ * + *
string message_id = 3;
+ * @return The messageId.
+ */
+ public java.lang.String getMessageId() {
+ java.lang.Object ref = messageId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ messageId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * ID of this message, assigned by the server when the message is published. + * Guaranteed to be unique within the topic. + *+ * + *
string message_id = 3;
+ * @return The bytes for messageId.
+ */
+ public com.google.protobuf.ByteString
+ getMessageIdBytes() {
+ java.lang.Object ref = messageId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ messageId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * ID of this message, assigned by the server when the message is published. + * Guaranteed to be unique within the topic. + *+ * + *
string message_id = 3;
+ * @param value The messageId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMessageId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ messageId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * ID of this message, assigned by the server when the message is published. + * Guaranteed to be unique within the topic. + *+ * + *
string message_id = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearMessageId() {
+
+ messageId_ = getDefaultInstance().getMessageId();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * ID of this message, assigned by the server when the message is published. + * Guaranteed to be unique within the topic. + *+ * + *
string message_id = 3;
+ * @param value The bytes for messageId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMessageIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ messageId_ = value;
+ 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.events.cloud.pubsub.v1.PubsubMessage)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.events.cloud.pubsub.v1.PubsubMessage)
+ private static final google.events.cloud.pubsub.v1.Data.PubsubMessage DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new google.events.cloud.pubsub.v1.Data.PubsubMessage();
+ }
+
+ public static google.events.cloud.pubsub.v1.Data.PubsubMessage getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The custom data the user specified when creating the scheduler source. + *+ * + *
bytes custom_data = 1;
+ * @return The customData.
+ */
+ com.google.protobuf.ByteString getCustomData();
+ }
+ /**
+ * + * Scheduler job data. + *+ * + * Protobuf type {@code google.events.cloud.scheduler.v1.SchedulerJobData} + */ + public static final class SchedulerJobData extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.cloud.scheduler.v1.SchedulerJobData) + SchedulerJobDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use SchedulerJobData.newBuilder() to construct. + private SchedulerJobData(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private SchedulerJobData() { + customData_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SchedulerJobData(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SchedulerJobData( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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: { + + customData_ = input.readBytes(); + 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 google.events.cloud.scheduler.v1.Data.internal_static_google_events_cloud_scheduler_v1_SchedulerJobData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.scheduler.v1.Data.internal_static_google_events_cloud_scheduler_v1_SchedulerJobData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.scheduler.v1.Data.SchedulerJobData.class, google.events.cloud.scheduler.v1.Data.SchedulerJobData.Builder.class); + } + + public static final int CUSTOM_DATA_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString customData_; + /** + *
+ * The custom data the user specified when creating the scheduler source. + *+ * + *
bytes custom_data = 1;
+ * @return The customData.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getCustomData() {
+ return customData_;
+ }
+
+ 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 (!customData_.isEmpty()) {
+ output.writeBytes(1, customData_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!customData_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(1, customData_);
+ }
+ 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 google.events.cloud.scheduler.v1.Data.SchedulerJobData)) {
+ return super.equals(obj);
+ }
+ google.events.cloud.scheduler.v1.Data.SchedulerJobData other = (google.events.cloud.scheduler.v1.Data.SchedulerJobData) obj;
+
+ if (!getCustomData()
+ .equals(other.getCustomData())) 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) + CUSTOM_DATA_FIELD_NUMBER;
+ hash = (53 * hash) + getCustomData().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static google.events.cloud.scheduler.v1.Data.SchedulerJobData parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static google.events.cloud.scheduler.v1.Data.SchedulerJobData parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static google.events.cloud.scheduler.v1.Data.SchedulerJobData parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static google.events.cloud.scheduler.v1.Data.SchedulerJobData parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static google.events.cloud.scheduler.v1.Data.SchedulerJobData parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static google.events.cloud.scheduler.v1.Data.SchedulerJobData parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static google.events.cloud.scheduler.v1.Data.SchedulerJobData parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static google.events.cloud.scheduler.v1.Data.SchedulerJobData 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 google.events.cloud.scheduler.v1.Data.SchedulerJobData parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static google.events.cloud.scheduler.v1.Data.SchedulerJobData 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 google.events.cloud.scheduler.v1.Data.SchedulerJobData parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static google.events.cloud.scheduler.v1.Data.SchedulerJobData 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(google.events.cloud.scheduler.v1.Data.SchedulerJobData 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;
+ }
+ /**
+ * + * Scheduler job data. + *+ * + * Protobuf type {@code google.events.cloud.scheduler.v1.SchedulerJobData} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * The custom data the user specified when creating the scheduler source. + *+ * + *
bytes custom_data = 1;
+ * @return The customData.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getCustomData() {
+ return customData_;
+ }
+ /**
+ * + * The custom data the user specified when creating the scheduler source. + *+ * + *
bytes custom_data = 1;
+ * @param value The customData to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCustomData(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ customData_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The custom data the user specified when creating the scheduler source. + *+ * + *
bytes custom_data = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearCustomData() {
+
+ customData_ = getDefaultInstance().getCustomData();
+ 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.events.cloud.scheduler.v1.SchedulerJobData)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.events.cloud.scheduler.v1.SchedulerJobData)
+ private static final google.events.cloud.scheduler.v1.Data.SchedulerJobData DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new google.events.cloud.scheduler.v1.Data.SchedulerJobData();
+ }
+
+ public static google.events.cloud.scheduler.v1.Data.SchedulerJobData getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Content-Encoding of the object data, matching + * [https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC 7231 §3.1.2.2] + *+ * + *
string content_encoding = 1;
+ * @return The contentEncoding.
+ */
+ java.lang.String getContentEncoding();
+ /**
+ * + * Content-Encoding of the object data, matching + * [https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC 7231 §3.1.2.2] + *+ * + *
string content_encoding = 1;
+ * @return The bytes for contentEncoding.
+ */
+ com.google.protobuf.ByteString
+ getContentEncodingBytes();
+
+ /**
+ * + * Content-Disposition of the object data, matching + * [https://tools.ietf.org/html/rfc6266][RFC 6266]. + *+ * + *
string content_disposition = 2;
+ * @return The contentDisposition.
+ */
+ java.lang.String getContentDisposition();
+ /**
+ * + * Content-Disposition of the object data, matching + * [https://tools.ietf.org/html/rfc6266][RFC 6266]. + *+ * + *
string content_disposition = 2;
+ * @return The bytes for contentDisposition.
+ */
+ com.google.protobuf.ByteString
+ getContentDispositionBytes();
+
+ /**
+ * + * Cache-Control directive for the object data, matching + * [https://tools.ietf.org/html/rfc7234#section-5.2"][RFC 7234 §5.2]. + *+ * + *
string cache_control = 3;
+ * @return The cacheControl.
+ */
+ java.lang.String getCacheControl();
+ /**
+ * + * Cache-Control directive for the object data, matching + * [https://tools.ietf.org/html/rfc7234#section-5.2"][RFC 7234 §5.2]. + *+ * + *
string cache_control = 3;
+ * @return The bytes for cacheControl.
+ */
+ com.google.protobuf.ByteString
+ getCacheControlBytes();
+
+ /**
+ * + * Content-Language of the object data, matching + * [https://tools.ietf.org/html/rfc7231#section-3.1.3.2][RFC 7231 §3.1.3.2]. + *+ * + *
string content_language = 5;
+ * @return The contentLanguage.
+ */
+ java.lang.String getContentLanguage();
+ /**
+ * + * Content-Language of the object data, matching + * [https://tools.ietf.org/html/rfc7231#section-3.1.3.2][RFC 7231 §3.1.3.2]. + *+ * + *
string content_language = 5;
+ * @return The bytes for contentLanguage.
+ */
+ com.google.protobuf.ByteString
+ getContentLanguageBytes();
+
+ /**
+ * + * The version of the metadata for this object at this generation. Used for + * preconditions and for detecting changes in metadata. A metageneration + * number is only meaningful in the context of a particular generation of a + * particular object. + *+ * + *
int64 metageneration = 6;
+ * @return The metageneration.
+ */
+ long getMetageneration();
+
+ /**
+ * + * The deletion time of the object. Will be returned if and only if this + * version of the object has been deleted. + *+ * + *
.google.protobuf.Timestamp time_deleted = 7;
+ * @return Whether the timeDeleted field is set.
+ */
+ boolean hasTimeDeleted();
+ /**
+ * + * The deletion time of the object. Will be returned if and only if this + * version of the object has been deleted. + *+ * + *
.google.protobuf.Timestamp time_deleted = 7;
+ * @return The timeDeleted.
+ */
+ com.google.protobuf.Timestamp getTimeDeleted();
+ /**
+ * + * The deletion time of the object. Will be returned if and only if this + * version of the object has been deleted. + *+ * + *
.google.protobuf.Timestamp time_deleted = 7;
+ */
+ com.google.protobuf.TimestampOrBuilder getTimeDeletedOrBuilder();
+
+ /**
+ * + * Content-Type of the object data, matching + * [https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5]. + * If an object is stored without a Content-Type, it is served as + * `application/octet-stream`. + *+ * + *
string content_type = 8;
+ * @return The contentType.
+ */
+ java.lang.String getContentType();
+ /**
+ * + * Content-Type of the object data, matching + * [https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5]. + * If an object is stored without a Content-Type, it is served as + * `application/octet-stream`. + *+ * + *
string content_type = 8;
+ * @return The bytes for contentType.
+ */
+ com.google.protobuf.ByteString
+ getContentTypeBytes();
+
+ /**
+ * + * Content-Length of the object data in bytes, matching + * [https://tools.ietf.org/html/rfc7230#section-3.3.2][RFC 7230 §3.3.2]. + *+ * + *
int64 size = 9;
+ * @return The size.
+ */
+ long getSize();
+
+ /**
+ * + * The creation time of the object. + * Attempting to set this field will result in an error. + *+ * + *
.google.protobuf.Timestamp time_created = 10;
+ * @return Whether the timeCreated field is set.
+ */
+ boolean hasTimeCreated();
+ /**
+ * + * The creation time of the object. + * Attempting to set this field will result in an error. + *+ * + *
.google.protobuf.Timestamp time_created = 10;
+ * @return The timeCreated.
+ */
+ com.google.protobuf.Timestamp getTimeCreated();
+ /**
+ * + * The creation time of the object. + * Attempting to set this field will result in an error. + *+ * + *
.google.protobuf.Timestamp time_created = 10;
+ */
+ com.google.protobuf.TimestampOrBuilder getTimeCreatedOrBuilder();
+
+ /**
+ * + * CRC32c checksum. For more information about using the CRC32c + * checksum, see + * [https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI][Hashes and + * ETags: Best Practices]. + *+ * + *
string crc32c = 11;
+ * @return The crc32c.
+ */
+ java.lang.String getCrc32C();
+ /**
+ * + * CRC32c checksum. For more information about using the CRC32c + * checksum, see + * [https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI][Hashes and + * ETags: Best Practices]. + *+ * + *
string crc32c = 11;
+ * @return The bytes for crc32c.
+ */
+ com.google.protobuf.ByteString
+ getCrc32CBytes();
+
+ /**
+ * + * Number of underlying components that make up this object. Components are + * accumulated by compose operations. + * Attempting to set this field will result in an error. + *+ * + *
int32 component_count = 12;
+ * @return The componentCount.
+ */
+ int getComponentCount();
+
+ /**
+ * + * MD5 hash of the data; encoded using base64 as per + * [https://tools.ietf.org/html/rfc4648#section-4][RFC 4648 §4]. For more + * information about using the MD5 hash, see + * [https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI][Hashes and + * ETags: Best Practices]. + *+ * + *
string md5_hash = 13;
+ * @return The md5Hash.
+ */
+ java.lang.String getMd5Hash();
+ /**
+ * + * MD5 hash of the data; encoded using base64 as per + * [https://tools.ietf.org/html/rfc4648#section-4][RFC 4648 §4]. For more + * information about using the MD5 hash, see + * [https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI][Hashes and + * ETags: Best Practices]. + *+ * + *
string md5_hash = 13;
+ * @return The bytes for md5Hash.
+ */
+ com.google.protobuf.ByteString
+ getMd5HashBytes();
+
+ /**
+ * + * HTTP 1.1 Entity tag for the object. See + * [https://tools.ietf.org/html/rfc7232#section-2.3][RFC 7232 §2.3]. + *+ * + *
string etag = 14;
+ * @return The etag.
+ */
+ java.lang.String getEtag();
+ /**
+ * + * HTTP 1.1 Entity tag for the object. See + * [https://tools.ietf.org/html/rfc7232#section-2.3][RFC 7232 §2.3]. + *+ * + *
string etag = 14;
+ * @return The bytes for etag.
+ */
+ com.google.protobuf.ByteString
+ getEtagBytes();
+
+ /**
+ * + * The modification time of the object metadata. + *+ * + *
.google.protobuf.Timestamp updated = 15;
+ * @return Whether the updated field is set.
+ */
+ boolean hasUpdated();
+ /**
+ * + * The modification time of the object metadata. + *+ * + *
.google.protobuf.Timestamp updated = 15;
+ * @return The updated.
+ */
+ com.google.protobuf.Timestamp getUpdated();
+ /**
+ * + * The modification time of the object metadata. + *+ * + *
.google.protobuf.Timestamp updated = 15;
+ */
+ com.google.protobuf.TimestampOrBuilder getUpdatedOrBuilder();
+
+ /**
+ * + * Storage class of the object. + *+ * + *
string storage_class = 16;
+ * @return The storageClass.
+ */
+ java.lang.String getStorageClass();
+ /**
+ * + * Storage class of the object. + *+ * + *
string storage_class = 16;
+ * @return The bytes for storageClass.
+ */
+ com.google.protobuf.ByteString
+ getStorageClassBytes();
+
+ /**
+ * + * Cloud KMS Key used to encrypt this object, if the object is encrypted by + * such a key. + *+ * + *
string kms_key_name = 17;
+ * @return The kmsKeyName.
+ */
+ java.lang.String getKmsKeyName();
+ /**
+ * + * Cloud KMS Key used to encrypt this object, if the object is encrypted by + * such a key. + *+ * + *
string kms_key_name = 17;
+ * @return The bytes for kmsKeyName.
+ */
+ com.google.protobuf.ByteString
+ getKmsKeyNameBytes();
+
+ /**
+ * + * The time at which the object's storage class was last changed. + *+ * + *
.google.protobuf.Timestamp time_storage_class_updated = 18;
+ * @return Whether the timeStorageClassUpdated field is set.
+ */
+ boolean hasTimeStorageClassUpdated();
+ /**
+ * + * The time at which the object's storage class was last changed. + *+ * + *
.google.protobuf.Timestamp time_storage_class_updated = 18;
+ * @return The timeStorageClassUpdated.
+ */
+ com.google.protobuf.Timestamp getTimeStorageClassUpdated();
+ /**
+ * + * The time at which the object's storage class was last changed. + *+ * + *
.google.protobuf.Timestamp time_storage_class_updated = 18;
+ */
+ com.google.protobuf.TimestampOrBuilder getTimeStorageClassUpdatedOrBuilder();
+
+ /**
+ * + * Whether an object is under temporary hold. + *+ * + *
bool temporary_hold = 19;
+ * @return The temporaryHold.
+ */
+ boolean getTemporaryHold();
+
+ /**
+ * + * A server-determined value that specifies the earliest time that the + * object's retention period expires. + *+ * + *
.google.protobuf.Timestamp retention_expiration_time = 20;
+ * @return Whether the retentionExpirationTime field is set.
+ */
+ boolean hasRetentionExpirationTime();
+ /**
+ * + * A server-determined value that specifies the earliest time that the + * object's retention period expires. + *+ * + *
.google.protobuf.Timestamp retention_expiration_time = 20;
+ * @return The retentionExpirationTime.
+ */
+ com.google.protobuf.Timestamp getRetentionExpirationTime();
+ /**
+ * + * A server-determined value that specifies the earliest time that the + * object's retention period expires. + *+ * + *
.google.protobuf.Timestamp retention_expiration_time = 20;
+ */
+ com.google.protobuf.TimestampOrBuilder getRetentionExpirationTimeOrBuilder();
+
+ /**
+ * + * User-provided metadata, in key/value pairs. + *+ * + *
map<string, string> metadata = 21;
+ */
+ int getMetadataCount();
+ /**
+ * + * User-provided metadata, in key/value pairs. + *+ * + *
map<string, string> metadata = 21;
+ */
+ boolean containsMetadata(
+ java.lang.String key);
+ /**
+ * Use {@link #getMetadataMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Map+ * User-provided metadata, in key/value pairs. + *+ * + *
map<string, string> metadata = 21;
+ */
+ java.util.Map+ * User-provided metadata, in key/value pairs. + *+ * + *
map<string, string> metadata = 21;
+ */
+
+ java.lang.String getMetadataOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue);
+ /**
+ * + * User-provided metadata, in key/value pairs. + *+ * + *
map<string, string> metadata = 21;
+ */
+
+ java.lang.String getMetadataOrThrow(
+ java.lang.String key);
+
+ /**
+ * + * Whether an object is under event-based hold. + *+ * + *
bool event_based_hold = 29;
+ * @return The eventBasedHold.
+ */
+ boolean getEventBasedHold();
+
+ /**
+ * + * The name of the object. + *+ * + *
string name = 23;
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ * + * The name of the object. + *+ * + *
string name = 23;
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+
+ /**
+ * + * The ID of the object, including the bucket name, object name, and + * generation number. + *+ * + *
string id = 24;
+ * @return The id.
+ */
+ java.lang.String getId();
+ /**
+ * + * The ID of the object, including the bucket name, object name, and + * generation number. + *+ * + *
string id = 24;
+ * @return The bytes for id.
+ */
+ com.google.protobuf.ByteString
+ getIdBytes();
+
+ /**
+ * + * The name of the bucket containing this object. + *+ * + *
string bucket = 25;
+ * @return The bucket.
+ */
+ java.lang.String getBucket();
+ /**
+ * + * The name of the bucket containing this object. + *+ * + *
string bucket = 25;
+ * @return The bytes for bucket.
+ */
+ com.google.protobuf.ByteString
+ getBucketBytes();
+
+ /**
+ * + * The content generation of this object. Used for object versioning. + * Attempting to set this field will result in an error. + *+ * + *
int64 generation = 26;
+ * @return The generation.
+ */
+ long getGeneration();
+
+ /**
+ * + * Metadata of customer-supplied encryption key, if the object is encrypted by + * such a key. + *+ * + *
.google.events.cloud.storage.v1.StorageObjectData.CustomerEncryption customer_encryption = 28;
+ * @return Whether the customerEncryption field is set.
+ */
+ boolean hasCustomerEncryption();
+ /**
+ * + * Metadata of customer-supplied encryption key, if the object is encrypted by + * such a key. + *+ * + *
.google.events.cloud.storage.v1.StorageObjectData.CustomerEncryption customer_encryption = 28;
+ * @return The customerEncryption.
+ */
+ google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption getCustomerEncryption();
+ /**
+ * + * Metadata of customer-supplied encryption key, if the object is encrypted by + * such a key. + *+ * + *
.google.events.cloud.storage.v1.StorageObjectData.CustomerEncryption customer_encryption = 28;
+ */
+ google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryptionOrBuilder getCustomerEncryptionOrBuilder();
+
+ /**
+ * + * The link to this object. + *+ * + *
string media_link = 100;
+ * @return The mediaLink.
+ */
+ java.lang.String getMediaLink();
+ /**
+ * + * The link to this object. + *+ * + *
string media_link = 100;
+ * @return The bytes for mediaLink.
+ */
+ com.google.protobuf.ByteString
+ getMediaLinkBytes();
+
+ /**
+ * + * Media download link. + *+ * + *
string self_link = 101;
+ * @return The selfLink.
+ */
+ java.lang.String getSelfLink();
+ /**
+ * + * Media download link. + *+ * + *
string self_link = 101;
+ * @return The bytes for selfLink.
+ */
+ com.google.protobuf.ByteString
+ getSelfLinkBytes();
+ }
+ /**
+ * + * An object within Google Cloud Storage. + *+ * + * Protobuf type {@code google.events.cloud.storage.v1.StorageObjectData} + */ + public static final class StorageObjectData extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.cloud.storage.v1.StorageObjectData) + StorageObjectDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use StorageObjectData.newBuilder() to construct. + private StorageObjectData(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private StorageObjectData() { + contentEncoding_ = ""; + contentDisposition_ = ""; + cacheControl_ = ""; + contentLanguage_ = ""; + contentType_ = ""; + crc32C_ = ""; + md5Hash_ = ""; + etag_ = ""; + storageClass_ = ""; + kmsKeyName_ = ""; + name_ = ""; + id_ = ""; + bucket_ = ""; + mediaLink_ = ""; + selfLink_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StorageObjectData(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StorageObjectData( + 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(); + + contentEncoding_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + contentDisposition_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + cacheControl_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + contentLanguage_ = s; + break; + } + case 48: { + + metageneration_ = input.readInt64(); + break; + } + case 58: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (timeDeleted_ != null) { + subBuilder = timeDeleted_.toBuilder(); + } + timeDeleted_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeDeleted_); + timeDeleted_ = subBuilder.buildPartial(); + } + + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + contentType_ = s; + break; + } + case 72: { + + size_ = input.readInt64(); + break; + } + case 82: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (timeCreated_ != null) { + subBuilder = timeCreated_.toBuilder(); + } + timeCreated_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeCreated_); + timeCreated_ = subBuilder.buildPartial(); + } + + break; + } + case 90: { + java.lang.String s = input.readStringRequireUtf8(); + + crc32C_ = s; + break; + } + case 96: { + + componentCount_ = input.readInt32(); + break; + } + case 106: { + java.lang.String s = input.readStringRequireUtf8(); + + md5Hash_ = s; + break; + } + case 114: { + java.lang.String s = input.readStringRequireUtf8(); + + etag_ = s; + break; + } + case 122: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updated_ != null) { + subBuilder = updated_.toBuilder(); + } + updated_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updated_); + updated_ = subBuilder.buildPartial(); + } + + break; + } + case 130: { + java.lang.String s = input.readStringRequireUtf8(); + + storageClass_ = s; + break; + } + case 138: { + java.lang.String s = input.readStringRequireUtf8(); + + kmsKeyName_ = s; + break; + } + case 146: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (timeStorageClassUpdated_ != null) { + subBuilder = timeStorageClassUpdated_.toBuilder(); + } + timeStorageClassUpdated_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeStorageClassUpdated_); + timeStorageClassUpdated_ = subBuilder.buildPartial(); + } + + break; + } + case 152: { + + temporaryHold_ = input.readBool(); + break; + } + case 162: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (retentionExpirationTime_ != null) { + subBuilder = retentionExpirationTime_.toBuilder(); + } + retentionExpirationTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(retentionExpirationTime_); + retentionExpirationTime_ = subBuilder.buildPartial(); + } + + break; + } + case 170: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + metadata_ = com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry
+ * The encryption algorithm. + *+ * + *
string encryption_algorithm = 1;
+ * @return The encryptionAlgorithm.
+ */
+ java.lang.String getEncryptionAlgorithm();
+ /**
+ * + * The encryption algorithm. + *+ * + *
string encryption_algorithm = 1;
+ * @return The bytes for encryptionAlgorithm.
+ */
+ com.google.protobuf.ByteString
+ getEncryptionAlgorithmBytes();
+
+ /**
+ * + * SHA256 hash value of the encryption key. + *+ * + *
string key_sha256 = 2;
+ * @return The keySha256.
+ */
+ java.lang.String getKeySha256();
+ /**
+ * + * SHA256 hash value of the encryption key. + *+ * + *
string key_sha256 = 2;
+ * @return The bytes for keySha256.
+ */
+ com.google.protobuf.ByteString
+ getKeySha256Bytes();
+ }
+ /**
+ * + * Describes the customer-specified mechanism used to store the data at rest. + *+ * + * Protobuf type {@code google.events.cloud.storage.v1.StorageObjectData.CustomerEncryption} + */ + public static final class CustomerEncryption extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.cloud.storage.v1.StorageObjectData.CustomerEncryption) + CustomerEncryptionOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomerEncryption.newBuilder() to construct. + private CustomerEncryption(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private CustomerEncryption() { + encryptionAlgorithm_ = ""; + keySha256_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CustomerEncryption(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CustomerEncryption( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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(); + + encryptionAlgorithm_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + keySha256_ = s; + 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 google.events.cloud.storage.v1.Data.internal_static_google_events_cloud_storage_v1_StorageObjectData_CustomerEncryption_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.storage.v1.Data.internal_static_google_events_cloud_storage_v1_StorageObjectData_CustomerEncryption_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption.class, google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption.Builder.class); + } + + public static final int ENCRYPTION_ALGORITHM_FIELD_NUMBER = 1; + private volatile java.lang.Object encryptionAlgorithm_; + /** + *
+ * The encryption algorithm. + *+ * + *
string encryption_algorithm = 1;
+ * @return The encryptionAlgorithm.
+ */
+ @java.lang.Override
+ public java.lang.String getEncryptionAlgorithm() {
+ java.lang.Object ref = encryptionAlgorithm_;
+ 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();
+ encryptionAlgorithm_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * The encryption algorithm. + *+ * + *
string encryption_algorithm = 1;
+ * @return The bytes for encryptionAlgorithm.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getEncryptionAlgorithmBytes() {
+ java.lang.Object ref = encryptionAlgorithm_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ encryptionAlgorithm_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int KEY_SHA256_FIELD_NUMBER = 2;
+ private volatile java.lang.Object keySha256_;
+ /**
+ * + * SHA256 hash value of the encryption key. + *+ * + *
string key_sha256 = 2;
+ * @return The keySha256.
+ */
+ @java.lang.Override
+ public java.lang.String getKeySha256() {
+ java.lang.Object ref = keySha256_;
+ 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();
+ keySha256_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * SHA256 hash value of the encryption key. + *+ * + *
string key_sha256 = 2;
+ * @return The bytes for keySha256.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getKeySha256Bytes() {
+ java.lang.Object ref = keySha256_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ keySha256_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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 (!getEncryptionAlgorithmBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, encryptionAlgorithm_);
+ }
+ if (!getKeySha256Bytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, keySha256_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getEncryptionAlgorithmBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, encryptionAlgorithm_);
+ }
+ if (!getKeySha256Bytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, keySha256_);
+ }
+ 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 google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption)) {
+ return super.equals(obj);
+ }
+ google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption other = (google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption) obj;
+
+ if (!getEncryptionAlgorithm()
+ .equals(other.getEncryptionAlgorithm())) return false;
+ if (!getKeySha256()
+ .equals(other.getKeySha256())) 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) + ENCRYPTION_ALGORITHM_FIELD_NUMBER;
+ hash = (53 * hash) + getEncryptionAlgorithm().hashCode();
+ hash = (37 * hash) + KEY_SHA256_FIELD_NUMBER;
+ hash = (53 * hash) + getKeySha256().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption 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 google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption 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 google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption 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(google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption 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;
+ }
+ /**
+ * + * Describes the customer-specified mechanism used to store the data at rest. + *+ * + * Protobuf type {@code google.events.cloud.storage.v1.StorageObjectData.CustomerEncryption} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * The encryption algorithm. + *+ * + *
string encryption_algorithm = 1;
+ * @return The encryptionAlgorithm.
+ */
+ public java.lang.String getEncryptionAlgorithm() {
+ java.lang.Object ref = encryptionAlgorithm_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ encryptionAlgorithm_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * The encryption algorithm. + *+ * + *
string encryption_algorithm = 1;
+ * @return The bytes for encryptionAlgorithm.
+ */
+ public com.google.protobuf.ByteString
+ getEncryptionAlgorithmBytes() {
+ java.lang.Object ref = encryptionAlgorithm_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ encryptionAlgorithm_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * The encryption algorithm. + *+ * + *
string encryption_algorithm = 1;
+ * @param value The encryptionAlgorithm to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEncryptionAlgorithm(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ encryptionAlgorithm_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The encryption algorithm. + *+ * + *
string encryption_algorithm = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearEncryptionAlgorithm() {
+
+ encryptionAlgorithm_ = getDefaultInstance().getEncryptionAlgorithm();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The encryption algorithm. + *+ * + *
string encryption_algorithm = 1;
+ * @param value The bytes for encryptionAlgorithm to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEncryptionAlgorithmBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ encryptionAlgorithm_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object keySha256_ = "";
+ /**
+ * + * SHA256 hash value of the encryption key. + *+ * + *
string key_sha256 = 2;
+ * @return The keySha256.
+ */
+ public java.lang.String getKeySha256() {
+ java.lang.Object ref = keySha256_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ keySha256_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * SHA256 hash value of the encryption key. + *+ * + *
string key_sha256 = 2;
+ * @return The bytes for keySha256.
+ */
+ public com.google.protobuf.ByteString
+ getKeySha256Bytes() {
+ java.lang.Object ref = keySha256_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ keySha256_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * SHA256 hash value of the encryption key. + *+ * + *
string key_sha256 = 2;
+ * @param value The keySha256 to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKeySha256(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ keySha256_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * SHA256 hash value of the encryption key. + *+ * + *
string key_sha256 = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearKeySha256() {
+
+ keySha256_ = getDefaultInstance().getKeySha256();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * SHA256 hash value of the encryption key. + *+ * + *
string key_sha256 = 2;
+ * @param value The bytes for keySha256 to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKeySha256Bytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ keySha256_ = value;
+ 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.events.cloud.storage.v1.StorageObjectData.CustomerEncryption)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.events.cloud.storage.v1.StorageObjectData.CustomerEncryption)
+ private static final google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption();
+ }
+
+ public static google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Content-Encoding of the object data, matching + * [https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC 7231 §3.1.2.2] + *+ * + *
string content_encoding = 1;
+ * @return The contentEncoding.
+ */
+ @java.lang.Override
+ public java.lang.String getContentEncoding() {
+ java.lang.Object ref = contentEncoding_;
+ 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();
+ contentEncoding_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Content-Encoding of the object data, matching + * [https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC 7231 §3.1.2.2] + *+ * + *
string content_encoding = 1;
+ * @return The bytes for contentEncoding.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getContentEncodingBytes() {
+ java.lang.Object ref = contentEncoding_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ contentEncoding_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CONTENT_DISPOSITION_FIELD_NUMBER = 2;
+ private volatile java.lang.Object contentDisposition_;
+ /**
+ * + * Content-Disposition of the object data, matching + * [https://tools.ietf.org/html/rfc6266][RFC 6266]. + *+ * + *
string content_disposition = 2;
+ * @return The contentDisposition.
+ */
+ @java.lang.Override
+ public java.lang.String getContentDisposition() {
+ java.lang.Object ref = contentDisposition_;
+ 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();
+ contentDisposition_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Content-Disposition of the object data, matching + * [https://tools.ietf.org/html/rfc6266][RFC 6266]. + *+ * + *
string content_disposition = 2;
+ * @return The bytes for contentDisposition.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getContentDispositionBytes() {
+ java.lang.Object ref = contentDisposition_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ contentDisposition_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CACHE_CONTROL_FIELD_NUMBER = 3;
+ private volatile java.lang.Object cacheControl_;
+ /**
+ * + * Cache-Control directive for the object data, matching + * [https://tools.ietf.org/html/rfc7234#section-5.2"][RFC 7234 §5.2]. + *+ * + *
string cache_control = 3;
+ * @return The cacheControl.
+ */
+ @java.lang.Override
+ public java.lang.String getCacheControl() {
+ java.lang.Object ref = cacheControl_;
+ 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();
+ cacheControl_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Cache-Control directive for the object data, matching + * [https://tools.ietf.org/html/rfc7234#section-5.2"][RFC 7234 §5.2]. + *+ * + *
string cache_control = 3;
+ * @return The bytes for cacheControl.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getCacheControlBytes() {
+ java.lang.Object ref = cacheControl_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ cacheControl_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CONTENT_LANGUAGE_FIELD_NUMBER = 5;
+ private volatile java.lang.Object contentLanguage_;
+ /**
+ * + * Content-Language of the object data, matching + * [https://tools.ietf.org/html/rfc7231#section-3.1.3.2][RFC 7231 §3.1.3.2]. + *+ * + *
string content_language = 5;
+ * @return The contentLanguage.
+ */
+ @java.lang.Override
+ public java.lang.String getContentLanguage() {
+ java.lang.Object ref = contentLanguage_;
+ 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();
+ contentLanguage_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Content-Language of the object data, matching + * [https://tools.ietf.org/html/rfc7231#section-3.1.3.2][RFC 7231 §3.1.3.2]. + *+ * + *
string content_language = 5;
+ * @return The bytes for contentLanguage.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getContentLanguageBytes() {
+ java.lang.Object ref = contentLanguage_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ contentLanguage_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int METAGENERATION_FIELD_NUMBER = 6;
+ private long metageneration_;
+ /**
+ * + * The version of the metadata for this object at this generation. Used for + * preconditions and for detecting changes in metadata. A metageneration + * number is only meaningful in the context of a particular generation of a + * particular object. + *+ * + *
int64 metageneration = 6;
+ * @return The metageneration.
+ */
+ @java.lang.Override
+ public long getMetageneration() {
+ return metageneration_;
+ }
+
+ public static final int TIME_DELETED_FIELD_NUMBER = 7;
+ private com.google.protobuf.Timestamp timeDeleted_;
+ /**
+ * + * The deletion time of the object. Will be returned if and only if this + * version of the object has been deleted. + *+ * + *
.google.protobuf.Timestamp time_deleted = 7;
+ * @return Whether the timeDeleted field is set.
+ */
+ @java.lang.Override
+ public boolean hasTimeDeleted() {
+ return timeDeleted_ != null;
+ }
+ /**
+ * + * The deletion time of the object. Will be returned if and only if this + * version of the object has been deleted. + *+ * + *
.google.protobuf.Timestamp time_deleted = 7;
+ * @return The timeDeleted.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getTimeDeleted() {
+ return timeDeleted_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timeDeleted_;
+ }
+ /**
+ * + * The deletion time of the object. Will be returned if and only if this + * version of the object has been deleted. + *+ * + *
.google.protobuf.Timestamp time_deleted = 7;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getTimeDeletedOrBuilder() {
+ return getTimeDeleted();
+ }
+
+ public static final int CONTENT_TYPE_FIELD_NUMBER = 8;
+ private volatile java.lang.Object contentType_;
+ /**
+ * + * Content-Type of the object data, matching + * [https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5]. + * If an object is stored without a Content-Type, it is served as + * `application/octet-stream`. + *+ * + *
string content_type = 8;
+ * @return The contentType.
+ */
+ @java.lang.Override
+ public java.lang.String getContentType() {
+ java.lang.Object ref = contentType_;
+ 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();
+ contentType_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Content-Type of the object data, matching + * [https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5]. + * If an object is stored without a Content-Type, it is served as + * `application/octet-stream`. + *+ * + *
string content_type = 8;
+ * @return The bytes for contentType.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getContentTypeBytes() {
+ java.lang.Object ref = contentType_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ contentType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SIZE_FIELD_NUMBER = 9;
+ private long size_;
+ /**
+ * + * Content-Length of the object data in bytes, matching + * [https://tools.ietf.org/html/rfc7230#section-3.3.2][RFC 7230 §3.3.2]. + *+ * + *
int64 size = 9;
+ * @return The size.
+ */
+ @java.lang.Override
+ public long getSize() {
+ return size_;
+ }
+
+ public static final int TIME_CREATED_FIELD_NUMBER = 10;
+ private com.google.protobuf.Timestamp timeCreated_;
+ /**
+ * + * The creation time of the object. + * Attempting to set this field will result in an error. + *+ * + *
.google.protobuf.Timestamp time_created = 10;
+ * @return Whether the timeCreated field is set.
+ */
+ @java.lang.Override
+ public boolean hasTimeCreated() {
+ return timeCreated_ != null;
+ }
+ /**
+ * + * The creation time of the object. + * Attempting to set this field will result in an error. + *+ * + *
.google.protobuf.Timestamp time_created = 10;
+ * @return The timeCreated.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getTimeCreated() {
+ return timeCreated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timeCreated_;
+ }
+ /**
+ * + * The creation time of the object. + * Attempting to set this field will result in an error. + *+ * + *
.google.protobuf.Timestamp time_created = 10;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getTimeCreatedOrBuilder() {
+ return getTimeCreated();
+ }
+
+ public static final int CRC32C_FIELD_NUMBER = 11;
+ private volatile java.lang.Object crc32C_;
+ /**
+ * + * CRC32c checksum. For more information about using the CRC32c + * checksum, see + * [https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI][Hashes and + * ETags: Best Practices]. + *+ * + *
string crc32c = 11;
+ * @return The crc32c.
+ */
+ @java.lang.Override
+ public java.lang.String getCrc32C() {
+ java.lang.Object ref = crc32C_;
+ 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();
+ crc32C_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * CRC32c checksum. For more information about using the CRC32c + * checksum, see + * [https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI][Hashes and + * ETags: Best Practices]. + *+ * + *
string crc32c = 11;
+ * @return The bytes for crc32c.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getCrc32CBytes() {
+ java.lang.Object ref = crc32C_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ crc32C_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int COMPONENT_COUNT_FIELD_NUMBER = 12;
+ private int componentCount_;
+ /**
+ * + * Number of underlying components that make up this object. Components are + * accumulated by compose operations. + * Attempting to set this field will result in an error. + *+ * + *
int32 component_count = 12;
+ * @return The componentCount.
+ */
+ @java.lang.Override
+ public int getComponentCount() {
+ return componentCount_;
+ }
+
+ public static final int MD5_HASH_FIELD_NUMBER = 13;
+ private volatile java.lang.Object md5Hash_;
+ /**
+ * + * MD5 hash of the data; encoded using base64 as per + * [https://tools.ietf.org/html/rfc4648#section-4][RFC 4648 §4]. For more + * information about using the MD5 hash, see + * [https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI][Hashes and + * ETags: Best Practices]. + *+ * + *
string md5_hash = 13;
+ * @return The md5Hash.
+ */
+ @java.lang.Override
+ public java.lang.String getMd5Hash() {
+ java.lang.Object ref = md5Hash_;
+ 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();
+ md5Hash_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * MD5 hash of the data; encoded using base64 as per + * [https://tools.ietf.org/html/rfc4648#section-4][RFC 4648 §4]. For more + * information about using the MD5 hash, see + * [https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI][Hashes and + * ETags: Best Practices]. + *+ * + *
string md5_hash = 13;
+ * @return The bytes for md5Hash.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMd5HashBytes() {
+ java.lang.Object ref = md5Hash_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ md5Hash_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ETAG_FIELD_NUMBER = 14;
+ private volatile java.lang.Object etag_;
+ /**
+ * + * HTTP 1.1 Entity tag for the object. See + * [https://tools.ietf.org/html/rfc7232#section-2.3][RFC 7232 §2.3]. + *+ * + *
string etag = 14;
+ * @return The etag.
+ */
+ @java.lang.Override
+ public java.lang.String getEtag() {
+ java.lang.Object ref = etag_;
+ 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();
+ etag_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * HTTP 1.1 Entity tag for the object. See + * [https://tools.ietf.org/html/rfc7232#section-2.3][RFC 7232 §2.3]. + *+ * + *
string etag = 14;
+ * @return The bytes for etag.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getEtagBytes() {
+ java.lang.Object ref = etag_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ etag_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int UPDATED_FIELD_NUMBER = 15;
+ private com.google.protobuf.Timestamp updated_;
+ /**
+ * + * The modification time of the object metadata. + *+ * + *
.google.protobuf.Timestamp updated = 15;
+ * @return Whether the updated field is set.
+ */
+ @java.lang.Override
+ public boolean hasUpdated() {
+ return updated_ != null;
+ }
+ /**
+ * + * The modification time of the object metadata. + *+ * + *
.google.protobuf.Timestamp updated = 15;
+ * @return The updated.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getUpdated() {
+ return updated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updated_;
+ }
+ /**
+ * + * The modification time of the object metadata. + *+ * + *
.google.protobuf.Timestamp updated = 15;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getUpdatedOrBuilder() {
+ return getUpdated();
+ }
+
+ public static final int STORAGE_CLASS_FIELD_NUMBER = 16;
+ private volatile java.lang.Object storageClass_;
+ /**
+ * + * Storage class of the object. + *+ * + *
string storage_class = 16;
+ * @return The storageClass.
+ */
+ @java.lang.Override
+ public java.lang.String getStorageClass() {
+ java.lang.Object ref = storageClass_;
+ 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();
+ storageClass_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Storage class of the object. + *+ * + *
string storage_class = 16;
+ * @return The bytes for storageClass.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getStorageClassBytes() {
+ java.lang.Object ref = storageClass_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ storageClass_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int KMS_KEY_NAME_FIELD_NUMBER = 17;
+ private volatile java.lang.Object kmsKeyName_;
+ /**
+ * + * Cloud KMS Key used to encrypt this object, if the object is encrypted by + * such a key. + *+ * + *
string kms_key_name = 17;
+ * @return The kmsKeyName.
+ */
+ @java.lang.Override
+ public java.lang.String getKmsKeyName() {
+ java.lang.Object ref = kmsKeyName_;
+ 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();
+ kmsKeyName_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Cloud KMS Key used to encrypt this object, if the object is encrypted by + * such a key. + *+ * + *
string kms_key_name = 17;
+ * @return The bytes for kmsKeyName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getKmsKeyNameBytes() {
+ java.lang.Object ref = kmsKeyName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ kmsKeyName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TIME_STORAGE_CLASS_UPDATED_FIELD_NUMBER = 18;
+ private com.google.protobuf.Timestamp timeStorageClassUpdated_;
+ /**
+ * + * The time at which the object's storage class was last changed. + *+ * + *
.google.protobuf.Timestamp time_storage_class_updated = 18;
+ * @return Whether the timeStorageClassUpdated field is set.
+ */
+ @java.lang.Override
+ public boolean hasTimeStorageClassUpdated() {
+ return timeStorageClassUpdated_ != null;
+ }
+ /**
+ * + * The time at which the object's storage class was last changed. + *+ * + *
.google.protobuf.Timestamp time_storage_class_updated = 18;
+ * @return The timeStorageClassUpdated.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getTimeStorageClassUpdated() {
+ return timeStorageClassUpdated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timeStorageClassUpdated_;
+ }
+ /**
+ * + * The time at which the object's storage class was last changed. + *+ * + *
.google.protobuf.Timestamp time_storage_class_updated = 18;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getTimeStorageClassUpdatedOrBuilder() {
+ return getTimeStorageClassUpdated();
+ }
+
+ public static final int TEMPORARY_HOLD_FIELD_NUMBER = 19;
+ private boolean temporaryHold_;
+ /**
+ * + * Whether an object is under temporary hold. + *+ * + *
bool temporary_hold = 19;
+ * @return The temporaryHold.
+ */
+ @java.lang.Override
+ public boolean getTemporaryHold() {
+ return temporaryHold_;
+ }
+
+ public static final int RETENTION_EXPIRATION_TIME_FIELD_NUMBER = 20;
+ private com.google.protobuf.Timestamp retentionExpirationTime_;
+ /**
+ * + * A server-determined value that specifies the earliest time that the + * object's retention period expires. + *+ * + *
.google.protobuf.Timestamp retention_expiration_time = 20;
+ * @return Whether the retentionExpirationTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasRetentionExpirationTime() {
+ return retentionExpirationTime_ != null;
+ }
+ /**
+ * + * A server-determined value that specifies the earliest time that the + * object's retention period expires. + *+ * + *
.google.protobuf.Timestamp retention_expiration_time = 20;
+ * @return The retentionExpirationTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getRetentionExpirationTime() {
+ return retentionExpirationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : retentionExpirationTime_;
+ }
+ /**
+ * + * A server-determined value that specifies the earliest time that the + * object's retention period expires. + *+ * + *
.google.protobuf.Timestamp retention_expiration_time = 20;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getRetentionExpirationTimeOrBuilder() {
+ return getRetentionExpirationTime();
+ }
+
+ public static final int METADATA_FIELD_NUMBER = 21;
+ private static final class MetadataDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.String, java.lang.String> defaultEntry =
+ com.google.protobuf.MapEntry
+ .+ * User-provided metadata, in key/value pairs. + *+ * + *
map<string, string> metadata = 21;
+ */
+
+ @java.lang.Override
+ public boolean containsMetadata(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetMetadata().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getMetadataMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * User-provided metadata, in key/value pairs. + *+ * + *
map<string, string> metadata = 21;
+ */
+ @java.lang.Override
+
+ public java.util.Map+ * User-provided metadata, in key/value pairs. + *+ * + *
map<string, string> metadata = 21;
+ */
+ @java.lang.Override
+
+ public java.lang.String getMetadataOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * User-provided metadata, in key/value pairs. + *+ * + *
map<string, string> metadata = 21;
+ */
+ @java.lang.Override
+
+ public java.lang.String getMetadataOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * Whether an object is under event-based hold. + *+ * + *
bool event_based_hold = 29;
+ * @return The eventBasedHold.
+ */
+ @java.lang.Override
+ public boolean getEventBasedHold() {
+ return eventBasedHold_;
+ }
+
+ public static final int NAME_FIELD_NUMBER = 23;
+ private volatile java.lang.Object name_;
+ /**
+ * + * The name of the object. + *+ * + *
string name = 23;
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ 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();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * The name of the object. + *+ * + *
string name = 23;
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ID_FIELD_NUMBER = 24;
+ private volatile java.lang.Object id_;
+ /**
+ * + * The ID of the object, including the bucket name, object name, and + * generation number. + *+ * + *
string id = 24;
+ * @return The id.
+ */
+ @java.lang.Override
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ 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();
+ id_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * The ID of the object, including the bucket name, object name, and + * generation number. + *+ * + *
string id = 24;
+ * @return The bytes for id.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int BUCKET_FIELD_NUMBER = 25;
+ private volatile java.lang.Object bucket_;
+ /**
+ * + * The name of the bucket containing this object. + *+ * + *
string bucket = 25;
+ * @return The bucket.
+ */
+ @java.lang.Override
+ 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;
+ }
+ }
+ /**
+ * + * The name of the bucket containing this object. + *+ * + *
string bucket = 25;
+ * @return The bytes for bucket.
+ */
+ @java.lang.Override
+ 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 GENERATION_FIELD_NUMBER = 26;
+ private long generation_;
+ /**
+ * + * The content generation of this object. Used for object versioning. + * Attempting to set this field will result in an error. + *+ * + *
int64 generation = 26;
+ * @return The generation.
+ */
+ @java.lang.Override
+ public long getGeneration() {
+ return generation_;
+ }
+
+ public static final int CUSTOMER_ENCRYPTION_FIELD_NUMBER = 28;
+ private google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption customerEncryption_;
+ /**
+ * + * Metadata of customer-supplied encryption key, if the object is encrypted by + * such a key. + *+ * + *
.google.events.cloud.storage.v1.StorageObjectData.CustomerEncryption customer_encryption = 28;
+ * @return Whether the customerEncryption field is set.
+ */
+ @java.lang.Override
+ public boolean hasCustomerEncryption() {
+ return customerEncryption_ != null;
+ }
+ /**
+ * + * Metadata of customer-supplied encryption key, if the object is encrypted by + * such a key. + *+ * + *
.google.events.cloud.storage.v1.StorageObjectData.CustomerEncryption customer_encryption = 28;
+ * @return The customerEncryption.
+ */
+ @java.lang.Override
+ public google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption getCustomerEncryption() {
+ return customerEncryption_ == null ? google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption.getDefaultInstance() : customerEncryption_;
+ }
+ /**
+ * + * Metadata of customer-supplied encryption key, if the object is encrypted by + * such a key. + *+ * + *
.google.events.cloud.storage.v1.StorageObjectData.CustomerEncryption customer_encryption = 28;
+ */
+ @java.lang.Override
+ public google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryptionOrBuilder getCustomerEncryptionOrBuilder() {
+ return getCustomerEncryption();
+ }
+
+ public static final int MEDIA_LINK_FIELD_NUMBER = 100;
+ private volatile java.lang.Object mediaLink_;
+ /**
+ * + * The link to this object. + *+ * + *
string media_link = 100;
+ * @return The mediaLink.
+ */
+ @java.lang.Override
+ public java.lang.String getMediaLink() {
+ java.lang.Object ref = mediaLink_;
+ 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();
+ mediaLink_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * The link to this object. + *+ * + *
string media_link = 100;
+ * @return The bytes for mediaLink.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getMediaLinkBytes() {
+ java.lang.Object ref = mediaLink_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ mediaLink_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SELF_LINK_FIELD_NUMBER = 101;
+ private volatile java.lang.Object selfLink_;
+ /**
+ * + * Media download link. + *+ * + *
string self_link = 101;
+ * @return The selfLink.
+ */
+ @java.lang.Override
+ public java.lang.String getSelfLink() {
+ java.lang.Object ref = selfLink_;
+ 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();
+ selfLink_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Media download link. + *+ * + *
string self_link = 101;
+ * @return The bytes for selfLink.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getSelfLinkBytes() {
+ java.lang.Object ref = selfLink_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ selfLink_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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 (!getContentEncodingBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contentEncoding_);
+ }
+ if (!getContentDispositionBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, contentDisposition_);
+ }
+ if (!getCacheControlBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cacheControl_);
+ }
+ if (!getContentLanguageBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, contentLanguage_);
+ }
+ if (metageneration_ != 0L) {
+ output.writeInt64(6, metageneration_);
+ }
+ if (timeDeleted_ != null) {
+ output.writeMessage(7, getTimeDeleted());
+ }
+ if (!getContentTypeBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 8, contentType_);
+ }
+ if (size_ != 0L) {
+ output.writeInt64(9, size_);
+ }
+ if (timeCreated_ != null) {
+ output.writeMessage(10, getTimeCreated());
+ }
+ if (!getCrc32CBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 11, crc32C_);
+ }
+ if (componentCount_ != 0) {
+ output.writeInt32(12, componentCount_);
+ }
+ if (!getMd5HashBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 13, md5Hash_);
+ }
+ if (!getEtagBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 14, etag_);
+ }
+ if (updated_ != null) {
+ output.writeMessage(15, getUpdated());
+ }
+ if (!getStorageClassBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 16, storageClass_);
+ }
+ if (!getKmsKeyNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 17, kmsKeyName_);
+ }
+ if (timeStorageClassUpdated_ != null) {
+ output.writeMessage(18, getTimeStorageClassUpdated());
+ }
+ if (temporaryHold_ != false) {
+ output.writeBool(19, temporaryHold_);
+ }
+ if (retentionExpirationTime_ != null) {
+ output.writeMessage(20, getRetentionExpirationTime());
+ }
+ com.google.protobuf.GeneratedMessageV3
+ .serializeStringMapTo(
+ output,
+ internalGetMetadata(),
+ MetadataDefaultEntryHolder.defaultEntry,
+ 21);
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 23, name_);
+ }
+ if (!getIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 24, id_);
+ }
+ if (!getBucketBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 25, bucket_);
+ }
+ if (generation_ != 0L) {
+ output.writeInt64(26, generation_);
+ }
+ if (customerEncryption_ != null) {
+ output.writeMessage(28, getCustomerEncryption());
+ }
+ if (eventBasedHold_ != false) {
+ output.writeBool(29, eventBasedHold_);
+ }
+ if (!getMediaLinkBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 100, mediaLink_);
+ }
+ if (!getSelfLinkBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 101, selfLink_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getContentEncodingBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, contentEncoding_);
+ }
+ if (!getContentDispositionBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, contentDisposition_);
+ }
+ if (!getCacheControlBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, cacheControl_);
+ }
+ if (!getContentLanguageBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, contentLanguage_);
+ }
+ if (metageneration_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(6, metageneration_);
+ }
+ if (timeDeleted_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(7, getTimeDeleted());
+ }
+ if (!getContentTypeBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, contentType_);
+ }
+ if (size_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(9, size_);
+ }
+ if (timeCreated_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(10, getTimeCreated());
+ }
+ if (!getCrc32CBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, crc32C_);
+ }
+ if (componentCount_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(12, componentCount_);
+ }
+ if (!getMd5HashBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, md5Hash_);
+ }
+ if (!getEtagBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, etag_);
+ }
+ if (updated_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(15, getUpdated());
+ }
+ if (!getStorageClassBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, storageClass_);
+ }
+ if (!getKmsKeyNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, kmsKeyName_);
+ }
+ if (timeStorageClassUpdated_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(18, getTimeStorageClassUpdated());
+ }
+ if (temporaryHold_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(19, temporaryHold_);
+ }
+ if (retentionExpirationTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(20, getRetentionExpirationTime());
+ }
+ for (java.util.Map.Entry+ * An object within Google Cloud Storage. + *+ * + * Protobuf type {@code google.events.cloud.storage.v1.StorageObjectData} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * Content-Encoding of the object data, matching + * [https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC 7231 §3.1.2.2] + *+ * + *
string content_encoding = 1;
+ * @return The contentEncoding.
+ */
+ public java.lang.String getContentEncoding() {
+ java.lang.Object ref = contentEncoding_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ contentEncoding_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Content-Encoding of the object data, matching + * [https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC 7231 §3.1.2.2] + *+ * + *
string content_encoding = 1;
+ * @return The bytes for contentEncoding.
+ */
+ public com.google.protobuf.ByteString
+ getContentEncodingBytes() {
+ java.lang.Object ref = contentEncoding_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ contentEncoding_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Content-Encoding of the object data, matching + * [https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC 7231 §3.1.2.2] + *+ * + *
string content_encoding = 1;
+ * @param value The contentEncoding to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContentEncoding(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ contentEncoding_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Content-Encoding of the object data, matching + * [https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC 7231 §3.1.2.2] + *+ * + *
string content_encoding = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearContentEncoding() {
+
+ contentEncoding_ = getDefaultInstance().getContentEncoding();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Content-Encoding of the object data, matching + * [https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC 7231 §3.1.2.2] + *+ * + *
string content_encoding = 1;
+ * @param value The bytes for contentEncoding to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContentEncodingBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ contentEncoding_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object contentDisposition_ = "";
+ /**
+ * + * Content-Disposition of the object data, matching + * [https://tools.ietf.org/html/rfc6266][RFC 6266]. + *+ * + *
string content_disposition = 2;
+ * @return The contentDisposition.
+ */
+ public java.lang.String getContentDisposition() {
+ java.lang.Object ref = contentDisposition_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ contentDisposition_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Content-Disposition of the object data, matching + * [https://tools.ietf.org/html/rfc6266][RFC 6266]. + *+ * + *
string content_disposition = 2;
+ * @return The bytes for contentDisposition.
+ */
+ public com.google.protobuf.ByteString
+ getContentDispositionBytes() {
+ java.lang.Object ref = contentDisposition_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ contentDisposition_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Content-Disposition of the object data, matching + * [https://tools.ietf.org/html/rfc6266][RFC 6266]. + *+ * + *
string content_disposition = 2;
+ * @param value The contentDisposition to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContentDisposition(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ contentDisposition_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Content-Disposition of the object data, matching + * [https://tools.ietf.org/html/rfc6266][RFC 6266]. + *+ * + *
string content_disposition = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearContentDisposition() {
+
+ contentDisposition_ = getDefaultInstance().getContentDisposition();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Content-Disposition of the object data, matching + * [https://tools.ietf.org/html/rfc6266][RFC 6266]. + *+ * + *
string content_disposition = 2;
+ * @param value The bytes for contentDisposition to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContentDispositionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ contentDisposition_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object cacheControl_ = "";
+ /**
+ * + * Cache-Control directive for the object data, matching + * [https://tools.ietf.org/html/rfc7234#section-5.2"][RFC 7234 §5.2]. + *+ * + *
string cache_control = 3;
+ * @return The cacheControl.
+ */
+ public java.lang.String getCacheControl() {
+ java.lang.Object ref = cacheControl_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ cacheControl_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Cache-Control directive for the object data, matching + * [https://tools.ietf.org/html/rfc7234#section-5.2"][RFC 7234 §5.2]. + *+ * + *
string cache_control = 3;
+ * @return The bytes for cacheControl.
+ */
+ public com.google.protobuf.ByteString
+ getCacheControlBytes() {
+ java.lang.Object ref = cacheControl_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ cacheControl_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Cache-Control directive for the object data, matching + * [https://tools.ietf.org/html/rfc7234#section-5.2"][RFC 7234 §5.2]. + *+ * + *
string cache_control = 3;
+ * @param value The cacheControl to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCacheControl(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ cacheControl_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Cache-Control directive for the object data, matching + * [https://tools.ietf.org/html/rfc7234#section-5.2"][RFC 7234 §5.2]. + *+ * + *
string cache_control = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearCacheControl() {
+
+ cacheControl_ = getDefaultInstance().getCacheControl();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Cache-Control directive for the object data, matching + * [https://tools.ietf.org/html/rfc7234#section-5.2"][RFC 7234 §5.2]. + *+ * + *
string cache_control = 3;
+ * @param value The bytes for cacheControl to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCacheControlBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ cacheControl_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object contentLanguage_ = "";
+ /**
+ * + * Content-Language of the object data, matching + * [https://tools.ietf.org/html/rfc7231#section-3.1.3.2][RFC 7231 §3.1.3.2]. + *+ * + *
string content_language = 5;
+ * @return The contentLanguage.
+ */
+ public java.lang.String getContentLanguage() {
+ java.lang.Object ref = contentLanguage_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ contentLanguage_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Content-Language of the object data, matching + * [https://tools.ietf.org/html/rfc7231#section-3.1.3.2][RFC 7231 §3.1.3.2]. + *+ * + *
string content_language = 5;
+ * @return The bytes for contentLanguage.
+ */
+ public com.google.protobuf.ByteString
+ getContentLanguageBytes() {
+ java.lang.Object ref = contentLanguage_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ contentLanguage_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Content-Language of the object data, matching + * [https://tools.ietf.org/html/rfc7231#section-3.1.3.2][RFC 7231 §3.1.3.2]. + *+ * + *
string content_language = 5;
+ * @param value The contentLanguage to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContentLanguage(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ contentLanguage_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Content-Language of the object data, matching + * [https://tools.ietf.org/html/rfc7231#section-3.1.3.2][RFC 7231 §3.1.3.2]. + *+ * + *
string content_language = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearContentLanguage() {
+
+ contentLanguage_ = getDefaultInstance().getContentLanguage();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Content-Language of the object data, matching + * [https://tools.ietf.org/html/rfc7231#section-3.1.3.2][RFC 7231 §3.1.3.2]. + *+ * + *
string content_language = 5;
+ * @param value The bytes for contentLanguage to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContentLanguageBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ contentLanguage_ = value;
+ onChanged();
+ return this;
+ }
+
+ private long metageneration_ ;
+ /**
+ * + * The version of the metadata for this object at this generation. Used for + * preconditions and for detecting changes in metadata. A metageneration + * number is only meaningful in the context of a particular generation of a + * particular object. + *+ * + *
int64 metageneration = 6;
+ * @return The metageneration.
+ */
+ @java.lang.Override
+ public long getMetageneration() {
+ return metageneration_;
+ }
+ /**
+ * + * The version of the metadata for this object at this generation. Used for + * preconditions and for detecting changes in metadata. A metageneration + * number is only meaningful in the context of a particular generation of a + * particular object. + *+ * + *
int64 metageneration = 6;
+ * @param value The metageneration to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMetageneration(long value) {
+
+ metageneration_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The version of the metadata for this object at this generation. Used for + * preconditions and for detecting changes in metadata. A metageneration + * number is only meaningful in the context of a particular generation of a + * particular object. + *+ * + *
int64 metageneration = 6;
+ * @return This builder for chaining.
+ */
+ public Builder clearMetageneration() {
+
+ metageneration_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Timestamp timeDeleted_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timeDeletedBuilder_;
+ /**
+ * + * The deletion time of the object. Will be returned if and only if this + * version of the object has been deleted. + *+ * + *
.google.protobuf.Timestamp time_deleted = 7;
+ * @return Whether the timeDeleted field is set.
+ */
+ public boolean hasTimeDeleted() {
+ return timeDeletedBuilder_ != null || timeDeleted_ != null;
+ }
+ /**
+ * + * The deletion time of the object. Will be returned if and only if this + * version of the object has been deleted. + *+ * + *
.google.protobuf.Timestamp time_deleted = 7;
+ * @return The timeDeleted.
+ */
+ public com.google.protobuf.Timestamp getTimeDeleted() {
+ if (timeDeletedBuilder_ == null) {
+ return timeDeleted_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timeDeleted_;
+ } else {
+ return timeDeletedBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * The deletion time of the object. Will be returned if and only if this + * version of the object has been deleted. + *+ * + *
.google.protobuf.Timestamp time_deleted = 7;
+ */
+ public Builder setTimeDeleted(com.google.protobuf.Timestamp value) {
+ if (timeDeletedBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ timeDeleted_ = value;
+ onChanged();
+ } else {
+ timeDeletedBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * The deletion time of the object. Will be returned if and only if this + * version of the object has been deleted. + *+ * + *
.google.protobuf.Timestamp time_deleted = 7;
+ */
+ public Builder setTimeDeleted(
+ com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (timeDeletedBuilder_ == null) {
+ timeDeleted_ = builderForValue.build();
+ onChanged();
+ } else {
+ timeDeletedBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * The deletion time of the object. Will be returned if and only if this + * version of the object has been deleted. + *+ * + *
.google.protobuf.Timestamp time_deleted = 7;
+ */
+ public Builder mergeTimeDeleted(com.google.protobuf.Timestamp value) {
+ if (timeDeletedBuilder_ == null) {
+ if (timeDeleted_ != null) {
+ timeDeleted_ =
+ com.google.protobuf.Timestamp.newBuilder(timeDeleted_).mergeFrom(value).buildPartial();
+ } else {
+ timeDeleted_ = value;
+ }
+ onChanged();
+ } else {
+ timeDeletedBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * The deletion time of the object. Will be returned if and only if this + * version of the object has been deleted. + *+ * + *
.google.protobuf.Timestamp time_deleted = 7;
+ */
+ public Builder clearTimeDeleted() {
+ if (timeDeletedBuilder_ == null) {
+ timeDeleted_ = null;
+ onChanged();
+ } else {
+ timeDeleted_ = null;
+ timeDeletedBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * The deletion time of the object. Will be returned if and only if this + * version of the object has been deleted. + *+ * + *
.google.protobuf.Timestamp time_deleted = 7;
+ */
+ public com.google.protobuf.Timestamp.Builder getTimeDeletedBuilder() {
+
+ onChanged();
+ return getTimeDeletedFieldBuilder().getBuilder();
+ }
+ /**
+ * + * The deletion time of the object. Will be returned if and only if this + * version of the object has been deleted. + *+ * + *
.google.protobuf.Timestamp time_deleted = 7;
+ */
+ public com.google.protobuf.TimestampOrBuilder getTimeDeletedOrBuilder() {
+ if (timeDeletedBuilder_ != null) {
+ return timeDeletedBuilder_.getMessageOrBuilder();
+ } else {
+ return timeDeleted_ == null ?
+ com.google.protobuf.Timestamp.getDefaultInstance() : timeDeleted_;
+ }
+ }
+ /**
+ * + * The deletion time of the object. Will be returned if and only if this + * version of the object has been deleted. + *+ * + *
.google.protobuf.Timestamp time_deleted = 7;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
+ getTimeDeletedFieldBuilder() {
+ if (timeDeletedBuilder_ == null) {
+ timeDeletedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+ getTimeDeleted(),
+ getParentForChildren(),
+ isClean());
+ timeDeleted_ = null;
+ }
+ return timeDeletedBuilder_;
+ }
+
+ private java.lang.Object contentType_ = "";
+ /**
+ * + * Content-Type of the object data, matching + * [https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5]. + * If an object is stored without a Content-Type, it is served as + * `application/octet-stream`. + *+ * + *
string content_type = 8;
+ * @return The contentType.
+ */
+ public java.lang.String getContentType() {
+ java.lang.Object ref = contentType_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ contentType_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Content-Type of the object data, matching + * [https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5]. + * If an object is stored without a Content-Type, it is served as + * `application/octet-stream`. + *+ * + *
string content_type = 8;
+ * @return The bytes for contentType.
+ */
+ public com.google.protobuf.ByteString
+ getContentTypeBytes() {
+ java.lang.Object ref = contentType_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ contentType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Content-Type of the object data, matching + * [https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5]. + * If an object is stored without a Content-Type, it is served as + * `application/octet-stream`. + *+ * + *
string content_type = 8;
+ * @param value The contentType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContentType(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ contentType_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Content-Type of the object data, matching + * [https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5]. + * If an object is stored without a Content-Type, it is served as + * `application/octet-stream`. + *+ * + *
string content_type = 8;
+ * @return This builder for chaining.
+ */
+ public Builder clearContentType() {
+
+ contentType_ = getDefaultInstance().getContentType();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Content-Type of the object data, matching + * [https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5]. + * If an object is stored without a Content-Type, it is served as + * `application/octet-stream`. + *+ * + *
string content_type = 8;
+ * @param value The bytes for contentType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContentTypeBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ contentType_ = value;
+ onChanged();
+ return this;
+ }
+
+ private long size_ ;
+ /**
+ * + * Content-Length of the object data in bytes, matching + * [https://tools.ietf.org/html/rfc7230#section-3.3.2][RFC 7230 §3.3.2]. + *+ * + *
int64 size = 9;
+ * @return The size.
+ */
+ @java.lang.Override
+ public long getSize() {
+ return size_;
+ }
+ /**
+ * + * Content-Length of the object data in bytes, matching + * [https://tools.ietf.org/html/rfc7230#section-3.3.2][RFC 7230 §3.3.2]. + *+ * + *
int64 size = 9;
+ * @param value The size to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSize(long value) {
+
+ size_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Content-Length of the object data in bytes, matching + * [https://tools.ietf.org/html/rfc7230#section-3.3.2][RFC 7230 §3.3.2]. + *+ * + *
int64 size = 9;
+ * @return This builder for chaining.
+ */
+ public Builder clearSize() {
+
+ size_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Timestamp timeCreated_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timeCreatedBuilder_;
+ /**
+ * + * The creation time of the object. + * Attempting to set this field will result in an error. + *+ * + *
.google.protobuf.Timestamp time_created = 10;
+ * @return Whether the timeCreated field is set.
+ */
+ public boolean hasTimeCreated() {
+ return timeCreatedBuilder_ != null || timeCreated_ != null;
+ }
+ /**
+ * + * The creation time of the object. + * Attempting to set this field will result in an error. + *+ * + *
.google.protobuf.Timestamp time_created = 10;
+ * @return The timeCreated.
+ */
+ public com.google.protobuf.Timestamp getTimeCreated() {
+ if (timeCreatedBuilder_ == null) {
+ return timeCreated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timeCreated_;
+ } else {
+ return timeCreatedBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * The creation time of the object. + * Attempting to set this field will result in an error. + *+ * + *
.google.protobuf.Timestamp time_created = 10;
+ */
+ public Builder setTimeCreated(com.google.protobuf.Timestamp value) {
+ if (timeCreatedBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ timeCreated_ = value;
+ onChanged();
+ } else {
+ timeCreatedBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * The creation time of the object. + * Attempting to set this field will result in an error. + *+ * + *
.google.protobuf.Timestamp time_created = 10;
+ */
+ public Builder setTimeCreated(
+ com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (timeCreatedBuilder_ == null) {
+ timeCreated_ = builderForValue.build();
+ onChanged();
+ } else {
+ timeCreatedBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * The creation time of the object. + * Attempting to set this field will result in an error. + *+ * + *
.google.protobuf.Timestamp time_created = 10;
+ */
+ public Builder mergeTimeCreated(com.google.protobuf.Timestamp value) {
+ if (timeCreatedBuilder_ == null) {
+ if (timeCreated_ != null) {
+ timeCreated_ =
+ com.google.protobuf.Timestamp.newBuilder(timeCreated_).mergeFrom(value).buildPartial();
+ } else {
+ timeCreated_ = value;
+ }
+ onChanged();
+ } else {
+ timeCreatedBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * The creation time of the object. + * Attempting to set this field will result in an error. + *+ * + *
.google.protobuf.Timestamp time_created = 10;
+ */
+ public Builder clearTimeCreated() {
+ if (timeCreatedBuilder_ == null) {
+ timeCreated_ = null;
+ onChanged();
+ } else {
+ timeCreated_ = null;
+ timeCreatedBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * The creation time of the object. + * Attempting to set this field will result in an error. + *+ * + *
.google.protobuf.Timestamp time_created = 10;
+ */
+ public com.google.protobuf.Timestamp.Builder getTimeCreatedBuilder() {
+
+ onChanged();
+ return getTimeCreatedFieldBuilder().getBuilder();
+ }
+ /**
+ * + * The creation time of the object. + * Attempting to set this field will result in an error. + *+ * + *
.google.protobuf.Timestamp time_created = 10;
+ */
+ public com.google.protobuf.TimestampOrBuilder getTimeCreatedOrBuilder() {
+ if (timeCreatedBuilder_ != null) {
+ return timeCreatedBuilder_.getMessageOrBuilder();
+ } else {
+ return timeCreated_ == null ?
+ com.google.protobuf.Timestamp.getDefaultInstance() : timeCreated_;
+ }
+ }
+ /**
+ * + * The creation time of the object. + * Attempting to set this field will result in an error. + *+ * + *
.google.protobuf.Timestamp time_created = 10;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
+ getTimeCreatedFieldBuilder() {
+ if (timeCreatedBuilder_ == null) {
+ timeCreatedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+ getTimeCreated(),
+ getParentForChildren(),
+ isClean());
+ timeCreated_ = null;
+ }
+ return timeCreatedBuilder_;
+ }
+
+ private java.lang.Object crc32C_ = "";
+ /**
+ * + * CRC32c checksum. For more information about using the CRC32c + * checksum, see + * [https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI][Hashes and + * ETags: Best Practices]. + *+ * + *
string crc32c = 11;
+ * @return The crc32c.
+ */
+ public java.lang.String getCrc32C() {
+ java.lang.Object ref = crc32C_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ crc32C_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * CRC32c checksum. For more information about using the CRC32c + * checksum, see + * [https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI][Hashes and + * ETags: Best Practices]. + *+ * + *
string crc32c = 11;
+ * @return The bytes for crc32c.
+ */
+ public com.google.protobuf.ByteString
+ getCrc32CBytes() {
+ java.lang.Object ref = crc32C_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ crc32C_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * CRC32c checksum. For more information about using the CRC32c + * checksum, see + * [https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI][Hashes and + * ETags: Best Practices]. + *+ * + *
string crc32c = 11;
+ * @param value The crc32c to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCrc32C(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ crc32C_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * CRC32c checksum. For more information about using the CRC32c + * checksum, see + * [https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI][Hashes and + * ETags: Best Practices]. + *+ * + *
string crc32c = 11;
+ * @return This builder for chaining.
+ */
+ public Builder clearCrc32C() {
+
+ crc32C_ = getDefaultInstance().getCrc32C();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * CRC32c checksum. For more information about using the CRC32c + * checksum, see + * [https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI][Hashes and + * ETags: Best Practices]. + *+ * + *
string crc32c = 11;
+ * @param value The bytes for crc32c to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCrc32CBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ crc32C_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int componentCount_ ;
+ /**
+ * + * Number of underlying components that make up this object. Components are + * accumulated by compose operations. + * Attempting to set this field will result in an error. + *+ * + *
int32 component_count = 12;
+ * @return The componentCount.
+ */
+ @java.lang.Override
+ public int getComponentCount() {
+ return componentCount_;
+ }
+ /**
+ * + * Number of underlying components that make up this object. Components are + * accumulated by compose operations. + * Attempting to set this field will result in an error. + *+ * + *
int32 component_count = 12;
+ * @param value The componentCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setComponentCount(int value) {
+
+ componentCount_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Number of underlying components that make up this object. Components are + * accumulated by compose operations. + * Attempting to set this field will result in an error. + *+ * + *
int32 component_count = 12;
+ * @return This builder for chaining.
+ */
+ public Builder clearComponentCount() {
+
+ componentCount_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object md5Hash_ = "";
+ /**
+ * + * MD5 hash of the data; encoded using base64 as per + * [https://tools.ietf.org/html/rfc4648#section-4][RFC 4648 §4]. For more + * information about using the MD5 hash, see + * [https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI][Hashes and + * ETags: Best Practices]. + *+ * + *
string md5_hash = 13;
+ * @return The md5Hash.
+ */
+ public java.lang.String getMd5Hash() {
+ java.lang.Object ref = md5Hash_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ md5Hash_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * MD5 hash of the data; encoded using base64 as per + * [https://tools.ietf.org/html/rfc4648#section-4][RFC 4648 §4]. For more + * information about using the MD5 hash, see + * [https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI][Hashes and + * ETags: Best Practices]. + *+ * + *
string md5_hash = 13;
+ * @return The bytes for md5Hash.
+ */
+ public com.google.protobuf.ByteString
+ getMd5HashBytes() {
+ java.lang.Object ref = md5Hash_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ md5Hash_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * MD5 hash of the data; encoded using base64 as per + * [https://tools.ietf.org/html/rfc4648#section-4][RFC 4648 §4]. For more + * information about using the MD5 hash, see + * [https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI][Hashes and + * ETags: Best Practices]. + *+ * + *
string md5_hash = 13;
+ * @param value The md5Hash to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMd5Hash(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ md5Hash_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * MD5 hash of the data; encoded using base64 as per + * [https://tools.ietf.org/html/rfc4648#section-4][RFC 4648 §4]. For more + * information about using the MD5 hash, see + * [https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI][Hashes and + * ETags: Best Practices]. + *+ * + *
string md5_hash = 13;
+ * @return This builder for chaining.
+ */
+ public Builder clearMd5Hash() {
+
+ md5Hash_ = getDefaultInstance().getMd5Hash();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * MD5 hash of the data; encoded using base64 as per + * [https://tools.ietf.org/html/rfc4648#section-4][RFC 4648 §4]. For more + * information about using the MD5 hash, see + * [https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI][Hashes and + * ETags: Best Practices]. + *+ * + *
string md5_hash = 13;
+ * @param value The bytes for md5Hash to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMd5HashBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ md5Hash_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object etag_ = "";
+ /**
+ * + * HTTP 1.1 Entity tag for the object. See + * [https://tools.ietf.org/html/rfc7232#section-2.3][RFC 7232 §2.3]. + *+ * + *
string etag = 14;
+ * @return The etag.
+ */
+ public java.lang.String getEtag() {
+ java.lang.Object ref = etag_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ etag_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * HTTP 1.1 Entity tag for the object. See + * [https://tools.ietf.org/html/rfc7232#section-2.3][RFC 7232 §2.3]. + *+ * + *
string etag = 14;
+ * @return The bytes for etag.
+ */
+ public com.google.protobuf.ByteString
+ getEtagBytes() {
+ java.lang.Object ref = etag_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ etag_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * HTTP 1.1 Entity tag for the object. See + * [https://tools.ietf.org/html/rfc7232#section-2.3][RFC 7232 §2.3]. + *+ * + *
string etag = 14;
+ * @param value The etag to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEtag(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ etag_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * HTTP 1.1 Entity tag for the object. See + * [https://tools.ietf.org/html/rfc7232#section-2.3][RFC 7232 §2.3]. + *+ * + *
string etag = 14;
+ * @return This builder for chaining.
+ */
+ public Builder clearEtag() {
+
+ etag_ = getDefaultInstance().getEtag();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * HTTP 1.1 Entity tag for the object. See + * [https://tools.ietf.org/html/rfc7232#section-2.3][RFC 7232 §2.3]. + *+ * + *
string etag = 14;
+ * @param value The bytes for etag to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEtagBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ etag_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Timestamp updated_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updatedBuilder_;
+ /**
+ * + * The modification time of the object metadata. + *+ * + *
.google.protobuf.Timestamp updated = 15;
+ * @return Whether the updated field is set.
+ */
+ public boolean hasUpdated() {
+ return updatedBuilder_ != null || updated_ != null;
+ }
+ /**
+ * + * The modification time of the object metadata. + *+ * + *
.google.protobuf.Timestamp updated = 15;
+ * @return The updated.
+ */
+ public com.google.protobuf.Timestamp getUpdated() {
+ if (updatedBuilder_ == null) {
+ return updated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updated_;
+ } else {
+ return updatedBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * The modification time of the object metadata. + *+ * + *
.google.protobuf.Timestamp updated = 15;
+ */
+ public Builder setUpdated(com.google.protobuf.Timestamp value) {
+ if (updatedBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ updated_ = value;
+ onChanged();
+ } else {
+ updatedBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * The modification time of the object metadata. + *+ * + *
.google.protobuf.Timestamp updated = 15;
+ */
+ public Builder setUpdated(
+ com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (updatedBuilder_ == null) {
+ updated_ = builderForValue.build();
+ onChanged();
+ } else {
+ updatedBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * The modification time of the object metadata. + *+ * + *
.google.protobuf.Timestamp updated = 15;
+ */
+ public Builder mergeUpdated(com.google.protobuf.Timestamp value) {
+ if (updatedBuilder_ == null) {
+ if (updated_ != null) {
+ updated_ =
+ com.google.protobuf.Timestamp.newBuilder(updated_).mergeFrom(value).buildPartial();
+ } else {
+ updated_ = value;
+ }
+ onChanged();
+ } else {
+ updatedBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * The modification time of the object metadata. + *+ * + *
.google.protobuf.Timestamp updated = 15;
+ */
+ public Builder clearUpdated() {
+ if (updatedBuilder_ == null) {
+ updated_ = null;
+ onChanged();
+ } else {
+ updated_ = null;
+ updatedBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * The modification time of the object metadata. + *+ * + *
.google.protobuf.Timestamp updated = 15;
+ */
+ public com.google.protobuf.Timestamp.Builder getUpdatedBuilder() {
+
+ onChanged();
+ return getUpdatedFieldBuilder().getBuilder();
+ }
+ /**
+ * + * The modification time of the object metadata. + *+ * + *
.google.protobuf.Timestamp updated = 15;
+ */
+ public com.google.protobuf.TimestampOrBuilder getUpdatedOrBuilder() {
+ if (updatedBuilder_ != null) {
+ return updatedBuilder_.getMessageOrBuilder();
+ } else {
+ return updated_ == null ?
+ com.google.protobuf.Timestamp.getDefaultInstance() : updated_;
+ }
+ }
+ /**
+ * + * The modification time of the object metadata. + *+ * + *
.google.protobuf.Timestamp updated = 15;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
+ getUpdatedFieldBuilder() {
+ if (updatedBuilder_ == null) {
+ updatedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+ getUpdated(),
+ getParentForChildren(),
+ isClean());
+ updated_ = null;
+ }
+ return updatedBuilder_;
+ }
+
+ private java.lang.Object storageClass_ = "";
+ /**
+ * + * Storage class of the object. + *+ * + *
string storage_class = 16;
+ * @return The storageClass.
+ */
+ public java.lang.String getStorageClass() {
+ java.lang.Object ref = storageClass_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ storageClass_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Storage class of the object. + *+ * + *
string storage_class = 16;
+ * @return The bytes for storageClass.
+ */
+ public com.google.protobuf.ByteString
+ getStorageClassBytes() {
+ java.lang.Object ref = storageClass_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ storageClass_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Storage class of the object. + *+ * + *
string storage_class = 16;
+ * @param value The storageClass to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStorageClass(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ storageClass_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Storage class of the object. + *+ * + *
string storage_class = 16;
+ * @return This builder for chaining.
+ */
+ public Builder clearStorageClass() {
+
+ storageClass_ = getDefaultInstance().getStorageClass();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Storage class of the object. + *+ * + *
string storage_class = 16;
+ * @param value The bytes for storageClass to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStorageClassBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ storageClass_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object kmsKeyName_ = "";
+ /**
+ * + * Cloud KMS Key used to encrypt this object, if the object is encrypted by + * such a key. + *+ * + *
string kms_key_name = 17;
+ * @return The kmsKeyName.
+ */
+ public java.lang.String getKmsKeyName() {
+ java.lang.Object ref = kmsKeyName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ kmsKeyName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Cloud KMS Key used to encrypt this object, if the object is encrypted by + * such a key. + *+ * + *
string kms_key_name = 17;
+ * @return The bytes for kmsKeyName.
+ */
+ public com.google.protobuf.ByteString
+ getKmsKeyNameBytes() {
+ java.lang.Object ref = kmsKeyName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ kmsKeyName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Cloud KMS Key used to encrypt this object, if the object is encrypted by + * such a key. + *+ * + *
string kms_key_name = 17;
+ * @param value The kmsKeyName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKmsKeyName(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ kmsKeyName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Cloud KMS Key used to encrypt this object, if the object is encrypted by + * such a key. + *+ * + *
string kms_key_name = 17;
+ * @return This builder for chaining.
+ */
+ public Builder clearKmsKeyName() {
+
+ kmsKeyName_ = getDefaultInstance().getKmsKeyName();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Cloud KMS Key used to encrypt this object, if the object is encrypted by + * such a key. + *+ * + *
string kms_key_name = 17;
+ * @param value The bytes for kmsKeyName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKmsKeyNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ kmsKeyName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Timestamp timeStorageClassUpdated_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timeStorageClassUpdatedBuilder_;
+ /**
+ * + * The time at which the object's storage class was last changed. + *+ * + *
.google.protobuf.Timestamp time_storage_class_updated = 18;
+ * @return Whether the timeStorageClassUpdated field is set.
+ */
+ public boolean hasTimeStorageClassUpdated() {
+ return timeStorageClassUpdatedBuilder_ != null || timeStorageClassUpdated_ != null;
+ }
+ /**
+ * + * The time at which the object's storage class was last changed. + *+ * + *
.google.protobuf.Timestamp time_storage_class_updated = 18;
+ * @return The timeStorageClassUpdated.
+ */
+ public com.google.protobuf.Timestamp getTimeStorageClassUpdated() {
+ if (timeStorageClassUpdatedBuilder_ == null) {
+ return timeStorageClassUpdated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timeStorageClassUpdated_;
+ } else {
+ return timeStorageClassUpdatedBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * The time at which the object's storage class was last changed. + *+ * + *
.google.protobuf.Timestamp time_storage_class_updated = 18;
+ */
+ public Builder setTimeStorageClassUpdated(com.google.protobuf.Timestamp value) {
+ if (timeStorageClassUpdatedBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ timeStorageClassUpdated_ = value;
+ onChanged();
+ } else {
+ timeStorageClassUpdatedBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * The time at which the object's storage class was last changed. + *+ * + *
.google.protobuf.Timestamp time_storage_class_updated = 18;
+ */
+ public Builder setTimeStorageClassUpdated(
+ com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (timeStorageClassUpdatedBuilder_ == null) {
+ timeStorageClassUpdated_ = builderForValue.build();
+ onChanged();
+ } else {
+ timeStorageClassUpdatedBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * The time at which the object's storage class was last changed. + *+ * + *
.google.protobuf.Timestamp time_storage_class_updated = 18;
+ */
+ public Builder mergeTimeStorageClassUpdated(com.google.protobuf.Timestamp value) {
+ if (timeStorageClassUpdatedBuilder_ == null) {
+ if (timeStorageClassUpdated_ != null) {
+ timeStorageClassUpdated_ =
+ com.google.protobuf.Timestamp.newBuilder(timeStorageClassUpdated_).mergeFrom(value).buildPartial();
+ } else {
+ timeStorageClassUpdated_ = value;
+ }
+ onChanged();
+ } else {
+ timeStorageClassUpdatedBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * The time at which the object's storage class was last changed. + *+ * + *
.google.protobuf.Timestamp time_storage_class_updated = 18;
+ */
+ public Builder clearTimeStorageClassUpdated() {
+ if (timeStorageClassUpdatedBuilder_ == null) {
+ timeStorageClassUpdated_ = null;
+ onChanged();
+ } else {
+ timeStorageClassUpdated_ = null;
+ timeStorageClassUpdatedBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * The time at which the object's storage class was last changed. + *+ * + *
.google.protobuf.Timestamp time_storage_class_updated = 18;
+ */
+ public com.google.protobuf.Timestamp.Builder getTimeStorageClassUpdatedBuilder() {
+
+ onChanged();
+ return getTimeStorageClassUpdatedFieldBuilder().getBuilder();
+ }
+ /**
+ * + * The time at which the object's storage class was last changed. + *+ * + *
.google.protobuf.Timestamp time_storage_class_updated = 18;
+ */
+ public com.google.protobuf.TimestampOrBuilder getTimeStorageClassUpdatedOrBuilder() {
+ if (timeStorageClassUpdatedBuilder_ != null) {
+ return timeStorageClassUpdatedBuilder_.getMessageOrBuilder();
+ } else {
+ return timeStorageClassUpdated_ == null ?
+ com.google.protobuf.Timestamp.getDefaultInstance() : timeStorageClassUpdated_;
+ }
+ }
+ /**
+ * + * The time at which the object's storage class was last changed. + *+ * + *
.google.protobuf.Timestamp time_storage_class_updated = 18;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
+ getTimeStorageClassUpdatedFieldBuilder() {
+ if (timeStorageClassUpdatedBuilder_ == null) {
+ timeStorageClassUpdatedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+ getTimeStorageClassUpdated(),
+ getParentForChildren(),
+ isClean());
+ timeStorageClassUpdated_ = null;
+ }
+ return timeStorageClassUpdatedBuilder_;
+ }
+
+ private boolean temporaryHold_ ;
+ /**
+ * + * Whether an object is under temporary hold. + *+ * + *
bool temporary_hold = 19;
+ * @return The temporaryHold.
+ */
+ @java.lang.Override
+ public boolean getTemporaryHold() {
+ return temporaryHold_;
+ }
+ /**
+ * + * Whether an object is under temporary hold. + *+ * + *
bool temporary_hold = 19;
+ * @param value The temporaryHold to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTemporaryHold(boolean value) {
+
+ temporaryHold_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Whether an object is under temporary hold. + *+ * + *
bool temporary_hold = 19;
+ * @return This builder for chaining.
+ */
+ public Builder clearTemporaryHold() {
+
+ temporaryHold_ = false;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Timestamp retentionExpirationTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> retentionExpirationTimeBuilder_;
+ /**
+ * + * A server-determined value that specifies the earliest time that the + * object's retention period expires. + *+ * + *
.google.protobuf.Timestamp retention_expiration_time = 20;
+ * @return Whether the retentionExpirationTime field is set.
+ */
+ public boolean hasRetentionExpirationTime() {
+ return retentionExpirationTimeBuilder_ != null || retentionExpirationTime_ != null;
+ }
+ /**
+ * + * A server-determined value that specifies the earliest time that the + * object's retention period expires. + *+ * + *
.google.protobuf.Timestamp retention_expiration_time = 20;
+ * @return The retentionExpirationTime.
+ */
+ public com.google.protobuf.Timestamp getRetentionExpirationTime() {
+ if (retentionExpirationTimeBuilder_ == null) {
+ return retentionExpirationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : retentionExpirationTime_;
+ } else {
+ return retentionExpirationTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * A server-determined value that specifies the earliest time that the + * object's retention period expires. + *+ * + *
.google.protobuf.Timestamp retention_expiration_time = 20;
+ */
+ public Builder setRetentionExpirationTime(com.google.protobuf.Timestamp value) {
+ if (retentionExpirationTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ retentionExpirationTime_ = value;
+ onChanged();
+ } else {
+ retentionExpirationTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * A server-determined value that specifies the earliest time that the + * object's retention period expires. + *+ * + *
.google.protobuf.Timestamp retention_expiration_time = 20;
+ */
+ public Builder setRetentionExpirationTime(
+ com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (retentionExpirationTimeBuilder_ == null) {
+ retentionExpirationTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ retentionExpirationTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * A server-determined value that specifies the earliest time that the + * object's retention period expires. + *+ * + *
.google.protobuf.Timestamp retention_expiration_time = 20;
+ */
+ public Builder mergeRetentionExpirationTime(com.google.protobuf.Timestamp value) {
+ if (retentionExpirationTimeBuilder_ == null) {
+ if (retentionExpirationTime_ != null) {
+ retentionExpirationTime_ =
+ com.google.protobuf.Timestamp.newBuilder(retentionExpirationTime_).mergeFrom(value).buildPartial();
+ } else {
+ retentionExpirationTime_ = value;
+ }
+ onChanged();
+ } else {
+ retentionExpirationTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * A server-determined value that specifies the earliest time that the + * object's retention period expires. + *+ * + *
.google.protobuf.Timestamp retention_expiration_time = 20;
+ */
+ public Builder clearRetentionExpirationTime() {
+ if (retentionExpirationTimeBuilder_ == null) {
+ retentionExpirationTime_ = null;
+ onChanged();
+ } else {
+ retentionExpirationTime_ = null;
+ retentionExpirationTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * A server-determined value that specifies the earliest time that the + * object's retention period expires. + *+ * + *
.google.protobuf.Timestamp retention_expiration_time = 20;
+ */
+ public com.google.protobuf.Timestamp.Builder getRetentionExpirationTimeBuilder() {
+
+ onChanged();
+ return getRetentionExpirationTimeFieldBuilder().getBuilder();
+ }
+ /**
+ * + * A server-determined value that specifies the earliest time that the + * object's retention period expires. + *+ * + *
.google.protobuf.Timestamp retention_expiration_time = 20;
+ */
+ public com.google.protobuf.TimestampOrBuilder getRetentionExpirationTimeOrBuilder() {
+ if (retentionExpirationTimeBuilder_ != null) {
+ return retentionExpirationTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return retentionExpirationTime_ == null ?
+ com.google.protobuf.Timestamp.getDefaultInstance() : retentionExpirationTime_;
+ }
+ }
+ /**
+ * + * A server-determined value that specifies the earliest time that the + * object's retention period expires. + *+ * + *
.google.protobuf.Timestamp retention_expiration_time = 20;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
+ getRetentionExpirationTimeFieldBuilder() {
+ if (retentionExpirationTimeBuilder_ == null) {
+ retentionExpirationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+ getRetentionExpirationTime(),
+ getParentForChildren(),
+ isClean());
+ retentionExpirationTime_ = null;
+ }
+ return retentionExpirationTimeBuilder_;
+ }
+
+ private com.google.protobuf.MapField<
+ java.lang.String, java.lang.String> metadata_;
+ private com.google.protobuf.MapField+ * User-provided metadata, in key/value pairs. + *+ * + *
map<string, string> metadata = 21;
+ */
+
+ @java.lang.Override
+ public boolean containsMetadata(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetMetadata().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getMetadataMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * User-provided metadata, in key/value pairs. + *+ * + *
map<string, string> metadata = 21;
+ */
+ @java.lang.Override
+
+ public java.util.Map+ * User-provided metadata, in key/value pairs. + *+ * + *
map<string, string> metadata = 21;
+ */
+ @java.lang.Override
+
+ public java.lang.String getMetadataOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * User-provided metadata, in key/value pairs. + *+ * + *
map<string, string> metadata = 21;
+ */
+ @java.lang.Override
+
+ public java.lang.String getMetadataOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * User-provided metadata, in key/value pairs. + *+ * + *
map<string, string> metadata = 21;
+ */
+
+ public Builder removeMetadata(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableMetadata().getMutableMap()
+ .remove(key);
+ return this;
+ }
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Map+ * User-provided metadata, in key/value pairs. + *+ * + *
map<string, string> metadata = 21;
+ */
+ public Builder putMetadata(
+ java.lang.String key,
+ java.lang.String value) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ if (value == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableMetadata().getMutableMap()
+ .put(key, value);
+ return this;
+ }
+ /**
+ * + * User-provided metadata, in key/value pairs. + *+ * + *
map<string, string> metadata = 21;
+ */
+
+ public Builder putAllMetadata(
+ java.util.Map+ * Whether an object is under event-based hold. + *+ * + *
bool event_based_hold = 29;
+ * @return The eventBasedHold.
+ */
+ @java.lang.Override
+ public boolean getEventBasedHold() {
+ return eventBasedHold_;
+ }
+ /**
+ * + * Whether an object is under event-based hold. + *+ * + *
bool event_based_hold = 29;
+ * @param value The eventBasedHold to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEventBasedHold(boolean value) {
+
+ eventBasedHold_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Whether an object is under event-based hold. + *+ * + *
bool event_based_hold = 29;
+ * @return This builder for chaining.
+ */
+ public Builder clearEventBasedHold() {
+
+ eventBasedHold_ = false;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object name_ = "";
+ /**
+ * + * The name of the object. + *+ * + *
string name = 23;
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * The name of the object. + *+ * + *
string name = 23;
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * The name of the object. + *+ * + *
string name = 23;
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The name of the object. + *+ * + *
string name = 23;
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The name of the object. + *+ * + *
string name = 23;
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object id_ = "";
+ /**
+ * + * The ID of the object, including the bucket name, object name, and + * generation number. + *+ * + *
string id = 24;
+ * @return The id.
+ */
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ id_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * The ID of the object, including the bucket name, object name, and + * generation number. + *+ * + *
string id = 24;
+ * @return The bytes for id.
+ */
+ public com.google.protobuf.ByteString
+ getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * The ID of the object, including the bucket name, object name, and + * generation number. + *+ * + *
string id = 24;
+ * @param value The id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ id_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The ID of the object, including the bucket name, object name, and + * generation number. + *+ * + *
string id = 24;
+ * @return This builder for chaining.
+ */
+ public Builder clearId() {
+
+ id_ = getDefaultInstance().getId();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The ID of the object, including the bucket name, object name, and + * generation number. + *+ * + *
string id = 24;
+ * @param value The bytes for id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ id_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object bucket_ = "";
+ /**
+ * + * The name of the bucket containing this object. + *+ * + *
string bucket = 25;
+ * @return The bucket.
+ */
+ 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;
+ }
+ }
+ /**
+ * + * The name of the bucket containing this object. + *+ * + *
string bucket = 25;
+ * @return The bytes for bucket.
+ */
+ 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;
+ }
+ }
+ /**
+ * + * The name of the bucket containing this object. + *+ * + *
string bucket = 25;
+ * @param value The bucket to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBucket(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ bucket_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The name of the bucket containing this object. + *+ * + *
string bucket = 25;
+ * @return This builder for chaining.
+ */
+ public Builder clearBucket() {
+
+ bucket_ = getDefaultInstance().getBucket();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The name of the bucket containing this object. + *+ * + *
string bucket = 25;
+ * @param value The bytes for bucket to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBucketBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ bucket_ = value;
+ onChanged();
+ return this;
+ }
+
+ private long generation_ ;
+ /**
+ * + * The content generation of this object. Used for object versioning. + * Attempting to set this field will result in an error. + *+ * + *
int64 generation = 26;
+ * @return The generation.
+ */
+ @java.lang.Override
+ public long getGeneration() {
+ return generation_;
+ }
+ /**
+ * + * The content generation of this object. Used for object versioning. + * Attempting to set this field will result in an error. + *+ * + *
int64 generation = 26;
+ * @param value The generation to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGeneration(long value) {
+
+ generation_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The content generation of this object. Used for object versioning. + * Attempting to set this field will result in an error. + *+ * + *
int64 generation = 26;
+ * @return This builder for chaining.
+ */
+ public Builder clearGeneration() {
+
+ generation_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption customerEncryption_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption, google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption.Builder, google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryptionOrBuilder> customerEncryptionBuilder_;
+ /**
+ * + * Metadata of customer-supplied encryption key, if the object is encrypted by + * such a key. + *+ * + *
.google.events.cloud.storage.v1.StorageObjectData.CustomerEncryption customer_encryption = 28;
+ * @return Whether the customerEncryption field is set.
+ */
+ public boolean hasCustomerEncryption() {
+ return customerEncryptionBuilder_ != null || customerEncryption_ != null;
+ }
+ /**
+ * + * Metadata of customer-supplied encryption key, if the object is encrypted by + * such a key. + *+ * + *
.google.events.cloud.storage.v1.StorageObjectData.CustomerEncryption customer_encryption = 28;
+ * @return The customerEncryption.
+ */
+ public google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption getCustomerEncryption() {
+ if (customerEncryptionBuilder_ == null) {
+ return customerEncryption_ == null ? google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption.getDefaultInstance() : customerEncryption_;
+ } else {
+ return customerEncryptionBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * Metadata of customer-supplied encryption key, if the object is encrypted by + * such a key. + *+ * + *
.google.events.cloud.storage.v1.StorageObjectData.CustomerEncryption customer_encryption = 28;
+ */
+ public Builder setCustomerEncryption(google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption value) {
+ if (customerEncryptionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ customerEncryption_ = value;
+ onChanged();
+ } else {
+ customerEncryptionBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * Metadata of customer-supplied encryption key, if the object is encrypted by + * such a key. + *+ * + *
.google.events.cloud.storage.v1.StorageObjectData.CustomerEncryption customer_encryption = 28;
+ */
+ public Builder setCustomerEncryption(
+ google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption.Builder builderForValue) {
+ if (customerEncryptionBuilder_ == null) {
+ customerEncryption_ = builderForValue.build();
+ onChanged();
+ } else {
+ customerEncryptionBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * Metadata of customer-supplied encryption key, if the object is encrypted by + * such a key. + *+ * + *
.google.events.cloud.storage.v1.StorageObjectData.CustomerEncryption customer_encryption = 28;
+ */
+ public Builder mergeCustomerEncryption(google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption value) {
+ if (customerEncryptionBuilder_ == null) {
+ if (customerEncryption_ != null) {
+ customerEncryption_ =
+ google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption.newBuilder(customerEncryption_).mergeFrom(value).buildPartial();
+ } else {
+ customerEncryption_ = value;
+ }
+ onChanged();
+ } else {
+ customerEncryptionBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * Metadata of customer-supplied encryption key, if the object is encrypted by + * such a key. + *+ * + *
.google.events.cloud.storage.v1.StorageObjectData.CustomerEncryption customer_encryption = 28;
+ */
+ public Builder clearCustomerEncryption() {
+ if (customerEncryptionBuilder_ == null) {
+ customerEncryption_ = null;
+ onChanged();
+ } else {
+ customerEncryption_ = null;
+ customerEncryptionBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * Metadata of customer-supplied encryption key, if the object is encrypted by + * such a key. + *+ * + *
.google.events.cloud.storage.v1.StorageObjectData.CustomerEncryption customer_encryption = 28;
+ */
+ public google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption.Builder getCustomerEncryptionBuilder() {
+
+ onChanged();
+ return getCustomerEncryptionFieldBuilder().getBuilder();
+ }
+ /**
+ * + * Metadata of customer-supplied encryption key, if the object is encrypted by + * such a key. + *+ * + *
.google.events.cloud.storage.v1.StorageObjectData.CustomerEncryption customer_encryption = 28;
+ */
+ public google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryptionOrBuilder getCustomerEncryptionOrBuilder() {
+ if (customerEncryptionBuilder_ != null) {
+ return customerEncryptionBuilder_.getMessageOrBuilder();
+ } else {
+ return customerEncryption_ == null ?
+ google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption.getDefaultInstance() : customerEncryption_;
+ }
+ }
+ /**
+ * + * Metadata of customer-supplied encryption key, if the object is encrypted by + * such a key. + *+ * + *
.google.events.cloud.storage.v1.StorageObjectData.CustomerEncryption customer_encryption = 28;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption, google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption.Builder, google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryptionOrBuilder>
+ getCustomerEncryptionFieldBuilder() {
+ if (customerEncryptionBuilder_ == null) {
+ customerEncryptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption, google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryption.Builder, google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryptionOrBuilder>(
+ getCustomerEncryption(),
+ getParentForChildren(),
+ isClean());
+ customerEncryption_ = null;
+ }
+ return customerEncryptionBuilder_;
+ }
+
+ private java.lang.Object mediaLink_ = "";
+ /**
+ * + * The link to this object. + *+ * + *
string media_link = 100;
+ * @return The mediaLink.
+ */
+ public java.lang.String getMediaLink() {
+ java.lang.Object ref = mediaLink_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ mediaLink_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * The link to this object. + *+ * + *
string media_link = 100;
+ * @return The bytes for mediaLink.
+ */
+ public com.google.protobuf.ByteString
+ getMediaLinkBytes() {
+ java.lang.Object ref = mediaLink_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ mediaLink_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * The link to this object. + *+ * + *
string media_link = 100;
+ * @param value The mediaLink to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMediaLink(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ mediaLink_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The link to this object. + *+ * + *
string media_link = 100;
+ * @return This builder for chaining.
+ */
+ public Builder clearMediaLink() {
+
+ mediaLink_ = getDefaultInstance().getMediaLink();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The link to this object. + *+ * + *
string media_link = 100;
+ * @param value The bytes for mediaLink to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMediaLinkBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ mediaLink_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object selfLink_ = "";
+ /**
+ * + * Media download link. + *+ * + *
string self_link = 101;
+ * @return The selfLink.
+ */
+ public java.lang.String getSelfLink() {
+ java.lang.Object ref = selfLink_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ selfLink_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Media download link. + *+ * + *
string self_link = 101;
+ * @return The bytes for selfLink.
+ */
+ public com.google.protobuf.ByteString
+ getSelfLinkBytes() {
+ java.lang.Object ref = selfLink_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ selfLink_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Media download link. + *+ * + *
string self_link = 101;
+ * @param value The selfLink to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSelfLink(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ selfLink_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Media download link. + *+ * + *
string self_link = 101;
+ * @return This builder for chaining.
+ */
+ public Builder clearSelfLink() {
+
+ selfLink_ = getDefaultInstance().getSelfLink();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Media download link. + *+ * + *
string self_link = 101;
+ * @param value The bytes for selfLink to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSelfLinkBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ selfLink_ = value;
+ 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.events.cloud.storage.v1.StorageObjectData)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.events.cloud.storage.v1.StorageObjectData)
+ private static final google.events.cloud.storage.v1.Data.StorageObjectData DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new google.events.cloud.storage.v1.Data.StorageObjectData();
+ }
+
+ public static google.events.cloud.storage.v1.Data.StorageObjectData getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The original data for the document. + *+ * + *
.google.protobuf.Value data = 1;
+ * @return Whether the data field is set.
+ */
+ boolean hasData();
+ /**
+ * + * The original data for the document. + *+ * + *
.google.protobuf.Value data = 1;
+ * @return The data.
+ */
+ com.google.protobuf.Value getData();
+ /**
+ * + * The original data for the document. + *+ * + *
.google.protobuf.Value data = 1;
+ */
+ com.google.protobuf.ValueOrBuilder getDataOrBuilder();
+
+ /**
+ * + * The change in the document data. + *+ * + *
.google.protobuf.Value delta = 2;
+ * @return Whether the delta field is set.
+ */
+ boolean hasDelta();
+ /**
+ * + * The change in the document data. + *+ * + *
.google.protobuf.Value delta = 2;
+ * @return The delta.
+ */
+ com.google.protobuf.Value getDelta();
+ /**
+ * + * The change in the document data. + *+ * + *
.google.protobuf.Value delta = 2;
+ */
+ com.google.protobuf.ValueOrBuilder getDeltaOrBuilder();
+
+ /**
+ * + * The matches from wildcards specified in the event subscription, to the + * values of those wildcards in the document name. For example, + * a subscription to + * `/projects/my_project/databases/(default)/documents/users/{username}` + * matching a document with name + * `/projects/my_project/databases/(default)/documents/users/marie` + * would result in a mapping of `'username': 'marie'`. + *+ * + *
map<string, string> wildcards = 3;
+ */
+ int getWildcardsCount();
+ /**
+ * + * The matches from wildcards specified in the event subscription, to the + * values of those wildcards in the document name. For example, + * a subscription to + * `/projects/my_project/databases/(default)/documents/users/{username}` + * matching a document with name + * `/projects/my_project/databases/(default)/documents/users/marie` + * would result in a mapping of `'username': 'marie'`. + *+ * + *
map<string, string> wildcards = 3;
+ */
+ boolean containsWildcards(
+ java.lang.String key);
+ /**
+ * Use {@link #getWildcardsMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Map+ * The matches from wildcards specified in the event subscription, to the + * values of those wildcards in the document name. For example, + * a subscription to + * `/projects/my_project/databases/(default)/documents/users/{username}` + * matching a document with name + * `/projects/my_project/databases/(default)/documents/users/marie` + * would result in a mapping of `'username': 'marie'`. + *+ * + *
map<string, string> wildcards = 3;
+ */
+ java.util.Map+ * The matches from wildcards specified in the event subscription, to the + * values of those wildcards in the document name. For example, + * a subscription to + * `/projects/my_project/databases/(default)/documents/users/{username}` + * matching a document with name + * `/projects/my_project/databases/(default)/documents/users/marie` + * would result in a mapping of `'username': 'marie'`. + *+ * + *
map<string, string> wildcards = 3;
+ */
+
+ java.lang.String getWildcardsOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue);
+ /**
+ * + * The matches from wildcards specified in the event subscription, to the + * values of those wildcards in the document name. For example, + * a subscription to + * `/projects/my_project/databases/(default)/documents/users/{username}` + * matching a document with name + * `/projects/my_project/databases/(default)/documents/users/marie` + * would result in a mapping of `'username': 'marie'`. + *+ * + *
map<string, string> wildcards = 3;
+ */
+
+ java.lang.String getWildcardsOrThrow(
+ java.lang.String key);
+ }
+ /**
+ * + * The data within all Firebase Real Time Database document events. + *+ * + * Protobuf type {@code google.events.firebase.v1.DocumentEventData} + */ + public static final class DocumentEventData extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.firebase.v1.DocumentEventData) + DocumentEventDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use DocumentEventData.newBuilder() to construct. + private DocumentEventData(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private DocumentEventData() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DocumentEventData(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DocumentEventData( + 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: { + com.google.protobuf.Value.Builder subBuilder = null; + if (data_ != null) { + subBuilder = data_.toBuilder(); + } + data_ = input.readMessage(com.google.protobuf.Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(data_); + data_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.protobuf.Value.Builder subBuilder = null; + if (delta_ != null) { + subBuilder = delta_.toBuilder(); + } + delta_ = input.readMessage(com.google.protobuf.Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(delta_); + delta_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + wildcards_ = com.google.protobuf.MapField.newMapField( + WildcardsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry
+ * The original data for the document. + *+ * + *
.google.protobuf.Value data = 1;
+ * @return Whether the data field is set.
+ */
+ @java.lang.Override
+ public boolean hasData() {
+ return data_ != null;
+ }
+ /**
+ * + * The original data for the document. + *+ * + *
.google.protobuf.Value data = 1;
+ * @return The data.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Value getData() {
+ return data_ == null ? com.google.protobuf.Value.getDefaultInstance() : data_;
+ }
+ /**
+ * + * The original data for the document. + *+ * + *
.google.protobuf.Value data = 1;
+ */
+ @java.lang.Override
+ public com.google.protobuf.ValueOrBuilder getDataOrBuilder() {
+ return getData();
+ }
+
+ public static final int DELTA_FIELD_NUMBER = 2;
+ private com.google.protobuf.Value delta_;
+ /**
+ * + * The change in the document data. + *+ * + *
.google.protobuf.Value delta = 2;
+ * @return Whether the delta field is set.
+ */
+ @java.lang.Override
+ public boolean hasDelta() {
+ return delta_ != null;
+ }
+ /**
+ * + * The change in the document data. + *+ * + *
.google.protobuf.Value delta = 2;
+ * @return The delta.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Value getDelta() {
+ return delta_ == null ? com.google.protobuf.Value.getDefaultInstance() : delta_;
+ }
+ /**
+ * + * The change in the document data. + *+ * + *
.google.protobuf.Value delta = 2;
+ */
+ @java.lang.Override
+ public com.google.protobuf.ValueOrBuilder getDeltaOrBuilder() {
+ return getDelta();
+ }
+
+ public static final int WILDCARDS_FIELD_NUMBER = 3;
+ private static final class WildcardsDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.String, java.lang.String> defaultEntry =
+ com.google.protobuf.MapEntry
+ .+ * The matches from wildcards specified in the event subscription, to the + * values of those wildcards in the document name. For example, + * a subscription to + * `/projects/my_project/databases/(default)/documents/users/{username}` + * matching a document with name + * `/projects/my_project/databases/(default)/documents/users/marie` + * would result in a mapping of `'username': 'marie'`. + *+ * + *
map<string, string> wildcards = 3;
+ */
+
+ @java.lang.Override
+ public boolean containsWildcards(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetWildcards().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getWildcardsMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * The matches from wildcards specified in the event subscription, to the + * values of those wildcards in the document name. For example, + * a subscription to + * `/projects/my_project/databases/(default)/documents/users/{username}` + * matching a document with name + * `/projects/my_project/databases/(default)/documents/users/marie` + * would result in a mapping of `'username': 'marie'`. + *+ * + *
map<string, string> wildcards = 3;
+ */
+ @java.lang.Override
+
+ public java.util.Map+ * The matches from wildcards specified in the event subscription, to the + * values of those wildcards in the document name. For example, + * a subscription to + * `/projects/my_project/databases/(default)/documents/users/{username}` + * matching a document with name + * `/projects/my_project/databases/(default)/documents/users/marie` + * would result in a mapping of `'username': 'marie'`. + *+ * + *
map<string, string> wildcards = 3;
+ */
+ @java.lang.Override
+
+ public java.lang.String getWildcardsOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * The matches from wildcards specified in the event subscription, to the + * values of those wildcards in the document name. For example, + * a subscription to + * `/projects/my_project/databases/(default)/documents/users/{username}` + * matching a document with name + * `/projects/my_project/databases/(default)/documents/users/marie` + * would result in a mapping of `'username': 'marie'`. + *+ * + *
map<string, string> wildcards = 3;
+ */
+ @java.lang.Override
+
+ public java.lang.String getWildcardsOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * The data within all Firebase Real Time Database document events. + *+ * + * Protobuf type {@code google.events.firebase.v1.DocumentEventData} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * The original data for the document. + *+ * + *
.google.protobuf.Value data = 1;
+ * @return Whether the data field is set.
+ */
+ public boolean hasData() {
+ return dataBuilder_ != null || data_ != null;
+ }
+ /**
+ * + * The original data for the document. + *+ * + *
.google.protobuf.Value data = 1;
+ * @return The data.
+ */
+ public com.google.protobuf.Value getData() {
+ if (dataBuilder_ == null) {
+ return data_ == null ? com.google.protobuf.Value.getDefaultInstance() : data_;
+ } else {
+ return dataBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * The original data for the document. + *+ * + *
.google.protobuf.Value data = 1;
+ */
+ public Builder setData(com.google.protobuf.Value value) {
+ if (dataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ data_ = value;
+ onChanged();
+ } else {
+ dataBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * The original data for the document. + *+ * + *
.google.protobuf.Value data = 1;
+ */
+ public Builder setData(
+ com.google.protobuf.Value.Builder builderForValue) {
+ if (dataBuilder_ == null) {
+ data_ = builderForValue.build();
+ onChanged();
+ } else {
+ dataBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * The original data for the document. + *+ * + *
.google.protobuf.Value data = 1;
+ */
+ public Builder mergeData(com.google.protobuf.Value value) {
+ if (dataBuilder_ == null) {
+ if (data_ != null) {
+ data_ =
+ com.google.protobuf.Value.newBuilder(data_).mergeFrom(value).buildPartial();
+ } else {
+ data_ = value;
+ }
+ onChanged();
+ } else {
+ dataBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * The original data for the document. + *+ * + *
.google.protobuf.Value data = 1;
+ */
+ public Builder clearData() {
+ if (dataBuilder_ == null) {
+ data_ = null;
+ onChanged();
+ } else {
+ data_ = null;
+ dataBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * The original data for the document. + *+ * + *
.google.protobuf.Value data = 1;
+ */
+ public com.google.protobuf.Value.Builder getDataBuilder() {
+
+ onChanged();
+ return getDataFieldBuilder().getBuilder();
+ }
+ /**
+ * + * The original data for the document. + *+ * + *
.google.protobuf.Value data = 1;
+ */
+ public com.google.protobuf.ValueOrBuilder getDataOrBuilder() {
+ if (dataBuilder_ != null) {
+ return dataBuilder_.getMessageOrBuilder();
+ } else {
+ return data_ == null ?
+ com.google.protobuf.Value.getDefaultInstance() : data_;
+ }
+ }
+ /**
+ * + * The original data for the document. + *+ * + *
.google.protobuf.Value data = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>
+ getDataFieldBuilder() {
+ if (dataBuilder_ == null) {
+ dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>(
+ getData(),
+ getParentForChildren(),
+ isClean());
+ data_ = null;
+ }
+ return dataBuilder_;
+ }
+
+ private com.google.protobuf.Value delta_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> deltaBuilder_;
+ /**
+ * + * The change in the document data. + *+ * + *
.google.protobuf.Value delta = 2;
+ * @return Whether the delta field is set.
+ */
+ public boolean hasDelta() {
+ return deltaBuilder_ != null || delta_ != null;
+ }
+ /**
+ * + * The change in the document data. + *+ * + *
.google.protobuf.Value delta = 2;
+ * @return The delta.
+ */
+ public com.google.protobuf.Value getDelta() {
+ if (deltaBuilder_ == null) {
+ return delta_ == null ? com.google.protobuf.Value.getDefaultInstance() : delta_;
+ } else {
+ return deltaBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * The change in the document data. + *+ * + *
.google.protobuf.Value delta = 2;
+ */
+ public Builder setDelta(com.google.protobuf.Value value) {
+ if (deltaBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ delta_ = value;
+ onChanged();
+ } else {
+ deltaBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * The change in the document data. + *+ * + *
.google.protobuf.Value delta = 2;
+ */
+ public Builder setDelta(
+ com.google.protobuf.Value.Builder builderForValue) {
+ if (deltaBuilder_ == null) {
+ delta_ = builderForValue.build();
+ onChanged();
+ } else {
+ deltaBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * The change in the document data. + *+ * + *
.google.protobuf.Value delta = 2;
+ */
+ public Builder mergeDelta(com.google.protobuf.Value value) {
+ if (deltaBuilder_ == null) {
+ if (delta_ != null) {
+ delta_ =
+ com.google.protobuf.Value.newBuilder(delta_).mergeFrom(value).buildPartial();
+ } else {
+ delta_ = value;
+ }
+ onChanged();
+ } else {
+ deltaBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * The change in the document data. + *+ * + *
.google.protobuf.Value delta = 2;
+ */
+ public Builder clearDelta() {
+ if (deltaBuilder_ == null) {
+ delta_ = null;
+ onChanged();
+ } else {
+ delta_ = null;
+ deltaBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * The change in the document data. + *+ * + *
.google.protobuf.Value delta = 2;
+ */
+ public com.google.protobuf.Value.Builder getDeltaBuilder() {
+
+ onChanged();
+ return getDeltaFieldBuilder().getBuilder();
+ }
+ /**
+ * + * The change in the document data. + *+ * + *
.google.protobuf.Value delta = 2;
+ */
+ public com.google.protobuf.ValueOrBuilder getDeltaOrBuilder() {
+ if (deltaBuilder_ != null) {
+ return deltaBuilder_.getMessageOrBuilder();
+ } else {
+ return delta_ == null ?
+ com.google.protobuf.Value.getDefaultInstance() : delta_;
+ }
+ }
+ /**
+ * + * The change in the document data. + *+ * + *
.google.protobuf.Value delta = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>
+ getDeltaFieldBuilder() {
+ if (deltaBuilder_ == null) {
+ deltaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>(
+ getDelta(),
+ getParentForChildren(),
+ isClean());
+ delta_ = null;
+ }
+ return deltaBuilder_;
+ }
+
+ private com.google.protobuf.MapField<
+ java.lang.String, java.lang.String> wildcards_;
+ private com.google.protobuf.MapField+ * The matches from wildcards specified in the event subscription, to the + * values of those wildcards in the document name. For example, + * a subscription to + * `/projects/my_project/databases/(default)/documents/users/{username}` + * matching a document with name + * `/projects/my_project/databases/(default)/documents/users/marie` + * would result in a mapping of `'username': 'marie'`. + *+ * + *
map<string, string> wildcards = 3;
+ */
+
+ @java.lang.Override
+ public boolean containsWildcards(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetWildcards().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getWildcardsMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * The matches from wildcards specified in the event subscription, to the + * values of those wildcards in the document name. For example, + * a subscription to + * `/projects/my_project/databases/(default)/documents/users/{username}` + * matching a document with name + * `/projects/my_project/databases/(default)/documents/users/marie` + * would result in a mapping of `'username': 'marie'`. + *+ * + *
map<string, string> wildcards = 3;
+ */
+ @java.lang.Override
+
+ public java.util.Map+ * The matches from wildcards specified in the event subscription, to the + * values of those wildcards in the document name. For example, + * a subscription to + * `/projects/my_project/databases/(default)/documents/users/{username}` + * matching a document with name + * `/projects/my_project/databases/(default)/documents/users/marie` + * would result in a mapping of `'username': 'marie'`. + *+ * + *
map<string, string> wildcards = 3;
+ */
+ @java.lang.Override
+
+ public java.lang.String getWildcardsOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * The matches from wildcards specified in the event subscription, to the + * values of those wildcards in the document name. For example, + * a subscription to + * `/projects/my_project/databases/(default)/documents/users/{username}` + * matching a document with name + * `/projects/my_project/databases/(default)/documents/users/marie` + * would result in a mapping of `'username': 'marie'`. + *+ * + *
map<string, string> wildcards = 3;
+ */
+ @java.lang.Override
+
+ public java.lang.String getWildcardsOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * The matches from wildcards specified in the event subscription, to the + * values of those wildcards in the document name. For example, + * a subscription to + * `/projects/my_project/databases/(default)/documents/users/{username}` + * matching a document with name + * `/projects/my_project/databases/(default)/documents/users/marie` + * would result in a mapping of `'username': 'marie'`. + *+ * + *
map<string, string> wildcards = 3;
+ */
+
+ public Builder removeWildcards(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableWildcards().getMutableMap()
+ .remove(key);
+ return this;
+ }
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Map+ * The matches from wildcards specified in the event subscription, to the + * values of those wildcards in the document name. For example, + * a subscription to + * `/projects/my_project/databases/(default)/documents/users/{username}` + * matching a document with name + * `/projects/my_project/databases/(default)/documents/users/marie` + * would result in a mapping of `'username': 'marie'`. + *+ * + *
map<string, string> wildcards = 3;
+ */
+ public Builder putWildcards(
+ java.lang.String key,
+ java.lang.String value) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ if (value == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableWildcards().getMutableMap()
+ .put(key, value);
+ return this;
+ }
+ /**
+ * + * The matches from wildcards specified in the event subscription, to the + * values of those wildcards in the document name. For example, + * a subscription to + * `/projects/my_project/databases/(default)/documents/users/{username}` + * matching a document with name + * `/projects/my_project/databases/(default)/documents/users/marie` + * would result in a mapping of `'username': 'marie'`. + *+ * + *
map<string, string> wildcards = 3;
+ */
+
+ public Builder putAllWildcards(
+ java.util.Map