From e86619b6e62c56474510299674f52e49cf38858c Mon Sep 17 00:00:00 2001 From: Grant Timmerman Date: Tue, 18 Aug 2020 22:38:14 -0500 Subject: [PATCH] feat: run the generator Signed-off-by: Grant Timmerman --- src/google/events/cloud/audit/v1/Data.java | 12078 ++++-- src/google/events/cloud/build/v1/Data.java | 31591 ++++++++++++++++ .../events/cloud/firestore/v1/Data.java | 552 +- src/google/events/cloud/storage/v1/Data.java | 237 +- .../events/firebase/analytics/v1/Data.java | 14662 +++++++ src/google/events/firebase/auth/v1/Data.java | 4964 +++ .../events/firebase/database/v1/Data.java | 1006 + .../events/firebase/remoteconfig/v1/Data.java | 3006 ++ src/google/events/firebase/v1/Data.java | 1500 - 9 files changed, 65335 insertions(+), 4261 deletions(-) create mode 100644 src/google/events/cloud/build/v1/Data.java create mode 100644 src/google/events/firebase/analytics/v1/Data.java create mode 100644 src/google/events/firebase/auth/v1/Data.java create mode 100644 src/google/events/firebase/database/v1/Data.java create mode 100644 src/google/events/firebase/remoteconfig/v1/Data.java delete mode 100644 src/google/events/firebase/v1/Data.java diff --git a/src/google/events/cloud/audit/v1/Data.java b/src/google/events/cloud/audit/v1/Data.java index 59830578..6efa710a 100644 --- a/src/google/events/cloud/audit/v1/Data.java +++ b/src/google/events/cloud/audit/v1/Data.java @@ -96,6 +96,78 @@ public interface AuditLogDataOrBuilder extends com.google.protobuf.ByteString getResourceNameBytes(); + /** + *
+     * The resource location information.
+     * 
+ * + * .google.events.cloud.audit.v1.ResourceLocation resource_location = 20; + * @return Whether the resourceLocation field is set. + */ + boolean hasResourceLocation(); + /** + *
+     * The resource location information.
+     * 
+ * + * .google.events.cloud.audit.v1.ResourceLocation resource_location = 20; + * @return The resourceLocation. + */ + google.events.cloud.audit.v1.Data.ResourceLocation getResourceLocation(); + /** + *
+     * The resource location information.
+     * 
+ * + * .google.events.cloud.audit.v1.ResourceLocation resource_location = 20; + */ + google.events.cloud.audit.v1.Data.ResourceLocationOrBuilder getResourceLocationOrBuilder(); + + /** + *
+     * The resource's original state before mutation. Present only for
+     * operations which have successfully modified the targeted resource(s).
+     * In general, this field should contain all changed fields, except those
+     * that are already been included in `request`, `response`, `metadata` or
+     * `service_data` fields.
+     * When the JSON object represented here has a proto equivalent,
+     * the proto name will be indicated in the `@type` property.
+     * 
+ * + * .google.protobuf.Struct resource_original_state = 19; + * @return Whether the resourceOriginalState field is set. + */ + boolean hasResourceOriginalState(); + /** + *
+     * The resource's original state before mutation. Present only for
+     * operations which have successfully modified the targeted resource(s).
+     * In general, this field should contain all changed fields, except those
+     * that are already been included in `request`, `response`, `metadata` or
+     * `service_data` fields.
+     * When the JSON object represented here has a proto equivalent,
+     * the proto name will be indicated in the `@type` property.
+     * 
+ * + * .google.protobuf.Struct resource_original_state = 19; + * @return The resourceOriginalState. + */ + com.google.protobuf.Struct getResourceOriginalState(); + /** + *
+     * The resource's original state before mutation. Present only for
+     * operations which have successfully modified the targeted resource(s).
+     * In general, this field should contain all changed fields, except those
+     * that are already been included in `request`, `response`, `metadata` or
+     * `service_data` fields.
+     * When the JSON object represented here has a proto equivalent,
+     * the proto name will be indicated in the `@type` property.
+     * 
+ * + * .google.protobuf.Struct resource_original_state = 19; + */ + com.google.protobuf.StructOrBuilder getResourceOriginalStateOrBuilder(); + /** *
      * The number of items returned from a List or Query API method,
@@ -329,6 +401,37 @@ google.events.cloud.audit.v1.Data.AuthorizationInfoOrBuilder getAuthorizationInf
     /**
      * 
      * Other service-specific data about the request, response, and other
+     * information associated with the current audited event.
+     * 
+ * + * .google.protobuf.Struct metadata = 18; + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + /** + *
+     * Other service-specific data about the request, response, and other
+     * information associated with the current audited event.
+     * 
+ * + * .google.protobuf.Struct metadata = 18; + * @return The metadata. + */ + com.google.protobuf.Struct getMetadata(); + /** + *
+     * Other service-specific data about the request, response, and other
+     * information associated with the current audited event.
+     * 
+ * + * .google.protobuf.Struct metadata = 18; + */ + com.google.protobuf.StructOrBuilder getMetadataOrBuilder(); + + /** + *
+     * Deprecated, use `metadata` field instead.
+     * 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.
@@ -340,6 +443,7 @@ google.events.cloud.audit.v1.Data.AuthorizationInfoOrBuilder getAuthorizationInf
     boolean hasServiceData();
     /**
      * 
+     * Deprecated, use `metadata` field instead.
      * Other service-specific data about the request, response, and other
      * activities.
      * When the JSON object represented here has a proto equivalent, the proto
@@ -352,6 +456,7 @@ google.events.cloud.audit.v1.Data.AuthorizationInfoOrBuilder getAuthorizationInf
     com.google.protobuf.Struct getServiceData();
     /**
      * 
+     * Deprecated, use `metadata` field instead.
      * Other service-specific data about the request, response, and other
      * activities.
      * When the JSON object represented here has a proto equivalent, the proto
@@ -529,6 +634,45 @@ private AuditLogData(
 
               break;
             }
+            case 146: {
+              com.google.protobuf.Struct.Builder subBuilder = null;
+              if (metadata_ != null) {
+                subBuilder = metadata_.toBuilder();
+              }
+              metadata_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(metadata_);
+                metadata_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+            case 154: {
+              com.google.protobuf.Struct.Builder subBuilder = null;
+              if (resourceOriginalState_ != null) {
+                subBuilder = resourceOriginalState_.toBuilder();
+              }
+              resourceOriginalState_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(resourceOriginalState_);
+                resourceOriginalState_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+            case 162: {
+              google.events.cloud.audit.v1.Data.ResourceLocation.Builder subBuilder = null;
+              if (resourceLocation_ != null) {
+                subBuilder = resourceLocation_.toBuilder();
+              }
+              resourceLocation_ = input.readMessage(google.events.cloud.audit.v1.Data.ResourceLocation.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(resourceLocation_);
+                resourceLocation_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
             default: {
               if (!parseUnknownField(
                   input, unknownFields, extensionRegistry, tag)) {
@@ -720,6 +864,100 @@ public java.lang.String getResourceName() {
       }
     }
 
+    public static final int RESOURCE_LOCATION_FIELD_NUMBER = 20;
+    private google.events.cloud.audit.v1.Data.ResourceLocation resourceLocation_;
+    /**
+     * 
+     * The resource location information.
+     * 
+ * + * .google.events.cloud.audit.v1.ResourceLocation resource_location = 20; + * @return Whether the resourceLocation field is set. + */ + @java.lang.Override + public boolean hasResourceLocation() { + return resourceLocation_ != null; + } + /** + *
+     * The resource location information.
+     * 
+ * + * .google.events.cloud.audit.v1.ResourceLocation resource_location = 20; + * @return The resourceLocation. + */ + @java.lang.Override + public google.events.cloud.audit.v1.Data.ResourceLocation getResourceLocation() { + return resourceLocation_ == null ? google.events.cloud.audit.v1.Data.ResourceLocation.getDefaultInstance() : resourceLocation_; + } + /** + *
+     * The resource location information.
+     * 
+ * + * .google.events.cloud.audit.v1.ResourceLocation resource_location = 20; + */ + @java.lang.Override + public google.events.cloud.audit.v1.Data.ResourceLocationOrBuilder getResourceLocationOrBuilder() { + return getResourceLocation(); + } + + public static final int RESOURCE_ORIGINAL_STATE_FIELD_NUMBER = 19; + private com.google.protobuf.Struct resourceOriginalState_; + /** + *
+     * The resource's original state before mutation. Present only for
+     * operations which have successfully modified the targeted resource(s).
+     * In general, this field should contain all changed fields, except those
+     * that are already been included in `request`, `response`, `metadata` or
+     * `service_data` fields.
+     * When the JSON object represented here has a proto equivalent,
+     * the proto name will be indicated in the `@type` property.
+     * 
+ * + * .google.protobuf.Struct resource_original_state = 19; + * @return Whether the resourceOriginalState field is set. + */ + @java.lang.Override + public boolean hasResourceOriginalState() { + return resourceOriginalState_ != null; + } + /** + *
+     * The resource's original state before mutation. Present only for
+     * operations which have successfully modified the targeted resource(s).
+     * In general, this field should contain all changed fields, except those
+     * that are already been included in `request`, `response`, `metadata` or
+     * `service_data` fields.
+     * When the JSON object represented here has a proto equivalent,
+     * the proto name will be indicated in the `@type` property.
+     * 
+ * + * .google.protobuf.Struct resource_original_state = 19; + * @return The resourceOriginalState. + */ + @java.lang.Override + public com.google.protobuf.Struct getResourceOriginalState() { + return resourceOriginalState_ == null ? com.google.protobuf.Struct.getDefaultInstance() : resourceOriginalState_; + } + /** + *
+     * The resource's original state before mutation. Present only for
+     * operations which have successfully modified the targeted resource(s).
+     * In general, this field should contain all changed fields, except those
+     * that are already been included in `request`, `response`, `metadata` or
+     * `service_data` fields.
+     * When the JSON object represented here has a proto equivalent,
+     * the proto name will be indicated in the `@type` property.
+     * 
+ * + * .google.protobuf.Struct resource_original_state = 19; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getResourceOriginalStateOrBuilder() { + return getResourceOriginalState(); + } + public static final int NUM_RESPONSE_ITEMS_FIELD_NUMBER = 12; private long numResponseItems_; /** @@ -1026,10 +1264,52 @@ public com.google.protobuf.StructOrBuilder getResponseOrBuilder() { return getResponse(); } + public static final int METADATA_FIELD_NUMBER = 18; + private com.google.protobuf.Struct metadata_; + /** + *
+     * Other service-specific data about the request, response, and other
+     * information associated with the current audited event.
+     * 
+ * + * .google.protobuf.Struct metadata = 18; + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return metadata_ != null; + } + /** + *
+     * Other service-specific data about the request, response, and other
+     * information associated with the current audited event.
+     * 
+ * + * .google.protobuf.Struct metadata = 18; + * @return The metadata. + */ + @java.lang.Override + public com.google.protobuf.Struct getMetadata() { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } + /** + *
+     * Other service-specific data about the request, response, and other
+     * information associated with the current audited event.
+     * 
+ * + * .google.protobuf.Struct metadata = 18; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + public static final int SERVICE_DATA_FIELD_NUMBER = 15; private com.google.protobuf.Struct serviceData_; /** *
+     * Deprecated, use `metadata` field instead.
      * Other service-specific data about the request, response, and other
      * activities.
      * When the JSON object represented here has a proto equivalent, the proto
@@ -1045,6 +1325,7 @@ public boolean hasServiceData() {
     }
     /**
      * 
+     * Deprecated, use `metadata` field instead.
      * Other service-specific data about the request, response, and other
      * activities.
      * When the JSON object represented here has a proto equivalent, the proto
@@ -1060,6 +1341,7 @@ public com.google.protobuf.Struct getServiceData() {
     }
     /**
      * 
+     * Deprecated, use `metadata` field instead.
      * Other service-specific data about the request, response, and other
      * activities.
      * When the JSON object represented here has a proto equivalent, the proto
@@ -1120,6 +1402,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       if (response_ != null) {
         output.writeMessage(17, getResponse());
       }
+      if (metadata_ != null) {
+        output.writeMessage(18, getMetadata());
+      }
+      if (resourceOriginalState_ != null) {
+        output.writeMessage(19, getResourceOriginalState());
+      }
+      if (resourceLocation_ != null) {
+        output.writeMessage(20, getResourceLocation());
+      }
       unknownFields.writeTo(output);
     }
 
@@ -1170,6 +1461,18 @@ public int getSerializedSize() {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(17, getResponse());
       }
+      if (metadata_ != null) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(18, getMetadata());
+      }
+      if (resourceOriginalState_ != null) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(19, getResourceOriginalState());
+      }
+      if (resourceLocation_ != null) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(20, getResourceLocation());
+      }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
       return size;
@@ -1191,6 +1494,16 @@ public boolean equals(final java.lang.Object obj) {
           .equals(other.getMethodName())) return false;
       if (!getResourceName()
           .equals(other.getResourceName())) return false;
+      if (hasResourceLocation() != other.hasResourceLocation()) return false;
+      if (hasResourceLocation()) {
+        if (!getResourceLocation()
+            .equals(other.getResourceLocation())) return false;
+      }
+      if (hasResourceOriginalState() != other.hasResourceOriginalState()) return false;
+      if (hasResourceOriginalState()) {
+        if (!getResourceOriginalState()
+            .equals(other.getResourceOriginalState())) return false;
+      }
       if (getNumResponseItems()
           != other.getNumResponseItems()) return false;
       if (hasStatus() != other.hasStatus()) return false;
@@ -1220,6 +1533,11 @@ public boolean equals(final java.lang.Object obj) {
         if (!getResponse()
             .equals(other.getResponse())) return false;
       }
+      if (hasMetadata() != other.hasMetadata()) return false;
+      if (hasMetadata()) {
+        if (!getMetadata()
+            .equals(other.getMetadata())) return false;
+      }
       if (hasServiceData() != other.hasServiceData()) return false;
       if (hasServiceData()) {
         if (!getServiceData()
@@ -1242,6 +1560,14 @@ public int hashCode() {
       hash = (53 * hash) + getMethodName().hashCode();
       hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER;
       hash = (53 * hash) + getResourceName().hashCode();
+      if (hasResourceLocation()) {
+        hash = (37 * hash) + RESOURCE_LOCATION_FIELD_NUMBER;
+        hash = (53 * hash) + getResourceLocation().hashCode();
+      }
+      if (hasResourceOriginalState()) {
+        hash = (37 * hash) + RESOURCE_ORIGINAL_STATE_FIELD_NUMBER;
+        hash = (53 * hash) + getResourceOriginalState().hashCode();
+      }
       hash = (37 * hash) + NUM_RESPONSE_ITEMS_FIELD_NUMBER;
       hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
           getNumResponseItems());
@@ -1269,6 +1595,10 @@ public int hashCode() {
         hash = (37 * hash) + RESPONSE_FIELD_NUMBER;
         hash = (53 * hash) + getResponse().hashCode();
       }
+      if (hasMetadata()) {
+        hash = (37 * hash) + METADATA_FIELD_NUMBER;
+        hash = (53 * hash) + getMetadata().hashCode();
+      }
       if (hasServiceData()) {
         hash = (37 * hash) + SERVICE_DATA_FIELD_NUMBER;
         hash = (53 * hash) + getServiceData().hashCode();
@@ -1420,6 +1750,18 @@ public Builder clear() {
 
         resourceName_ = "";
 
+        if (resourceLocationBuilder_ == null) {
+          resourceLocation_ = null;
+        } else {
+          resourceLocation_ = null;
+          resourceLocationBuilder_ = null;
+        }
+        if (resourceOriginalStateBuilder_ == null) {
+          resourceOriginalState_ = null;
+        } else {
+          resourceOriginalState_ = null;
+          resourceOriginalStateBuilder_ = null;
+        }
         numResponseItems_ = 0L;
 
         if (statusBuilder_ == null) {
@@ -1458,6 +1800,12 @@ public Builder clear() {
           response_ = null;
           responseBuilder_ = null;
         }
+        if (metadataBuilder_ == null) {
+          metadata_ = null;
+        } else {
+          metadata_ = null;
+          metadataBuilder_ = null;
+        }
         if (serviceDataBuilder_ == null) {
           serviceData_ = null;
         } else {
@@ -1494,6 +1842,16 @@ public google.events.cloud.audit.v1.Data.AuditLogData buildPartial() {
         result.serviceName_ = serviceName_;
         result.methodName_ = methodName_;
         result.resourceName_ = resourceName_;
+        if (resourceLocationBuilder_ == null) {
+          result.resourceLocation_ = resourceLocation_;
+        } else {
+          result.resourceLocation_ = resourceLocationBuilder_.build();
+        }
+        if (resourceOriginalStateBuilder_ == null) {
+          result.resourceOriginalState_ = resourceOriginalState_;
+        } else {
+          result.resourceOriginalState_ = resourceOriginalStateBuilder_.build();
+        }
         result.numResponseItems_ = numResponseItems_;
         if (statusBuilder_ == null) {
           result.status_ = status_;
@@ -1529,6 +1887,11 @@ public google.events.cloud.audit.v1.Data.AuditLogData buildPartial() {
         } else {
           result.response_ = responseBuilder_.build();
         }
+        if (metadataBuilder_ == null) {
+          result.metadata_ = metadata_;
+        } else {
+          result.metadata_ = metadataBuilder_.build();
+        }
         if (serviceDataBuilder_ == null) {
           result.serviceData_ = serviceData_;
         } else {
@@ -1594,6 +1957,12 @@ public Builder mergeFrom(google.events.cloud.audit.v1.Data.AuditLogData other) {
           resourceName_ = other.resourceName_;
           onChanged();
         }
+        if (other.hasResourceLocation()) {
+          mergeResourceLocation(other.getResourceLocation());
+        }
+        if (other.hasResourceOriginalState()) {
+          mergeResourceOriginalState(other.getResourceOriginalState());
+        }
         if (other.getNumResponseItems() != 0L) {
           setNumResponseItems(other.getNumResponseItems());
         }
@@ -1638,6 +2007,9 @@ public Builder mergeFrom(google.events.cloud.audit.v1.Data.AuditLogData other) {
         if (other.hasResponse()) {
           mergeResponse(other.getResponse());
         }
+        if (other.hasMetadata()) {
+          mergeMetadata(other.getMetadata());
+        }
         if (other.hasServiceData()) {
           mergeServiceData(other.getServiceData());
         }
@@ -2004,1445 +2376,7200 @@ public Builder setResourceNameBytes(
         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 google.events.cloud.audit.v1.Data.ResourceLocation resourceLocation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; + google.events.cloud.audit.v1.Data.ResourceLocation, google.events.cloud.audit.v1.Data.ResourceLocation.Builder, google.events.cloud.audit.v1.Data.ResourceLocationOrBuilder> resourceLocationBuilder_; /** *
-       * The status of the overall operation.
+       * The resource location information.
        * 
* - * .google.rpc.Status status = 2; - * @return Whether the status field is set. + * .google.events.cloud.audit.v1.ResourceLocation resource_location = 20; + * @return Whether the resourceLocation field is set. */ - public boolean hasStatus() { - return statusBuilder_ != null || status_ != null; + public boolean hasResourceLocation() { + return resourceLocationBuilder_ != null || resourceLocation_ != null; } /** *
-       * The status of the overall operation.
+       * The resource location information.
        * 
* - * .google.rpc.Status status = 2; - * @return The status. + * .google.events.cloud.audit.v1.ResourceLocation resource_location = 20; + * @return The resourceLocation. */ - public com.google.rpc.Status getStatus() { - if (statusBuilder_ == null) { - return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + public google.events.cloud.audit.v1.Data.ResourceLocation getResourceLocation() { + if (resourceLocationBuilder_ == null) { + return resourceLocation_ == null ? google.events.cloud.audit.v1.Data.ResourceLocation.getDefaultInstance() : resourceLocation_; } else { - return statusBuilder_.getMessage(); + return resourceLocationBuilder_.getMessage(); } } /** *
-       * The status of the overall operation.
+       * The resource location information.
        * 
* - * .google.rpc.Status status = 2; + * .google.events.cloud.audit.v1.ResourceLocation resource_location = 20; */ - public Builder setStatus(com.google.rpc.Status value) { - if (statusBuilder_ == null) { + public Builder setResourceLocation(google.events.cloud.audit.v1.Data.ResourceLocation value) { + if (resourceLocationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - status_ = value; + resourceLocation_ = value; onChanged(); } else { - statusBuilder_.setMessage(value); + resourceLocationBuilder_.setMessage(value); } return this; } /** *
-       * The status of the overall operation.
+       * The resource location information.
        * 
* - * .google.rpc.Status status = 2; + * .google.events.cloud.audit.v1.ResourceLocation resource_location = 20; */ - public Builder setStatus( - com.google.rpc.Status.Builder builderForValue) { - if (statusBuilder_ == null) { - status_ = builderForValue.build(); + public Builder setResourceLocation( + google.events.cloud.audit.v1.Data.ResourceLocation.Builder builderForValue) { + if (resourceLocationBuilder_ == null) { + resourceLocation_ = builderForValue.build(); onChanged(); } else { - statusBuilder_.setMessage(builderForValue.build()); + resourceLocationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-       * The status of the overall operation.
+       * The resource location information.
        * 
* - * .google.rpc.Status status = 2; + * .google.events.cloud.audit.v1.ResourceLocation resource_location = 20; */ - public Builder mergeStatus(com.google.rpc.Status value) { - if (statusBuilder_ == null) { - if (status_ != null) { - status_ = - com.google.rpc.Status.newBuilder(status_).mergeFrom(value).buildPartial(); + public Builder mergeResourceLocation(google.events.cloud.audit.v1.Data.ResourceLocation value) { + if (resourceLocationBuilder_ == null) { + if (resourceLocation_ != null) { + resourceLocation_ = + google.events.cloud.audit.v1.Data.ResourceLocation.newBuilder(resourceLocation_).mergeFrom(value).buildPartial(); } else { - status_ = value; + resourceLocation_ = value; } onChanged(); } else { - statusBuilder_.mergeFrom(value); + resourceLocationBuilder_.mergeFrom(value); } return this; } /** *
-       * The status of the overall operation.
+       * The resource location information.
        * 
* - * .google.rpc.Status status = 2; + * .google.events.cloud.audit.v1.ResourceLocation resource_location = 20; */ - public Builder clearStatus() { - if (statusBuilder_ == null) { - status_ = null; + public Builder clearResourceLocation() { + if (resourceLocationBuilder_ == null) { + resourceLocation_ = null; onChanged(); } else { - status_ = null; - statusBuilder_ = null; + resourceLocation_ = null; + resourceLocationBuilder_ = null; } return this; } /** *
-       * The status of the overall operation.
+       * The resource location information.
        * 
* - * .google.rpc.Status status = 2; + * .google.events.cloud.audit.v1.ResourceLocation resource_location = 20; */ - public com.google.rpc.Status.Builder getStatusBuilder() { + public google.events.cloud.audit.v1.Data.ResourceLocation.Builder getResourceLocationBuilder() { onChanged(); - return getStatusFieldBuilder().getBuilder(); + return getResourceLocationFieldBuilder().getBuilder(); } /** *
-       * The status of the overall operation.
+       * The resource location information.
        * 
* - * .google.rpc.Status status = 2; + * .google.events.cloud.audit.v1.ResourceLocation resource_location = 20; */ - public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { - if (statusBuilder_ != null) { - return statusBuilder_.getMessageOrBuilder(); + public google.events.cloud.audit.v1.Data.ResourceLocationOrBuilder getResourceLocationOrBuilder() { + if (resourceLocationBuilder_ != null) { + return resourceLocationBuilder_.getMessageOrBuilder(); } else { - return status_ == null ? - com.google.rpc.Status.getDefaultInstance() : status_; + return resourceLocation_ == null ? + google.events.cloud.audit.v1.Data.ResourceLocation.getDefaultInstance() : resourceLocation_; } } /** *
-       * The status of the overall operation.
+       * The resource location information.
        * 
* - * .google.rpc.Status status = 2; + * .google.events.cloud.audit.v1.ResourceLocation resource_location = 20; */ 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(), + google.events.cloud.audit.v1.Data.ResourceLocation, google.events.cloud.audit.v1.Data.ResourceLocation.Builder, google.events.cloud.audit.v1.Data.ResourceLocationOrBuilder> + getResourceLocationFieldBuilder() { + if (resourceLocationBuilder_ == null) { + resourceLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.audit.v1.Data.ResourceLocation, google.events.cloud.audit.v1.Data.ResourceLocation.Builder, google.events.cloud.audit.v1.Data.ResourceLocationOrBuilder>( + getResourceLocation(), getParentForChildren(), isClean()); - status_ = null; + resourceLocation_ = null; } - return statusBuilder_; + return resourceLocationBuilder_; } - private google.events.cloud.audit.v1.Data.AuthenticationInfo authenticationInfo_; + private com.google.protobuf.Struct resourceOriginalState_; 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_; + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> resourceOriginalStateBuilder_; /** *
-       * Authentication information.
+       * The resource's original state before mutation. Present only for
+       * operations which have successfully modified the targeted resource(s).
+       * In general, this field should contain all changed fields, except those
+       * that are already been included in `request`, `response`, `metadata` or
+       * `service_data` fields.
+       * When the JSON object represented here has a proto equivalent,
+       * the proto name will be indicated in the `@type` property.
        * 
* - * .google.events.cloud.audit.v1.AuthenticationInfo authentication_info = 3; - * @return Whether the authenticationInfo field is set. + * .google.protobuf.Struct resource_original_state = 19; + * @return Whether the resourceOriginalState field is set. */ - public boolean hasAuthenticationInfo() { - return authenticationInfoBuilder_ != null || authenticationInfo_ != null; + public boolean hasResourceOriginalState() { + return resourceOriginalStateBuilder_ != null || resourceOriginalState_ != null; } /** *
-       * Authentication information.
+       * The resource's original state before mutation. Present only for
+       * operations which have successfully modified the targeted resource(s).
+       * In general, this field should contain all changed fields, except those
+       * that are already been included in `request`, `response`, `metadata` or
+       * `service_data` fields.
+       * When the JSON object represented here has a proto equivalent,
+       * the proto name will be indicated in the `@type` property.
        * 
* - * .google.events.cloud.audit.v1.AuthenticationInfo authentication_info = 3; - * @return The authenticationInfo. + * .google.protobuf.Struct resource_original_state = 19; + * @return The resourceOriginalState. */ - public google.events.cloud.audit.v1.Data.AuthenticationInfo getAuthenticationInfo() { - if (authenticationInfoBuilder_ == null) { - return authenticationInfo_ == null ? google.events.cloud.audit.v1.Data.AuthenticationInfo.getDefaultInstance() : authenticationInfo_; + public com.google.protobuf.Struct getResourceOriginalState() { + if (resourceOriginalStateBuilder_ == null) { + return resourceOriginalState_ == null ? com.google.protobuf.Struct.getDefaultInstance() : resourceOriginalState_; } else { - return authenticationInfoBuilder_.getMessage(); + return resourceOriginalStateBuilder_.getMessage(); } } /** *
-       * Authentication information.
+       * The resource's original state before mutation. Present only for
+       * operations which have successfully modified the targeted resource(s).
+       * In general, this field should contain all changed fields, except those
+       * that are already been included in `request`, `response`, `metadata` or
+       * `service_data` fields.
+       * When the JSON object represented here has a proto equivalent,
+       * the proto name will be indicated in the `@type` property.
        * 
* - * .google.events.cloud.audit.v1.AuthenticationInfo authentication_info = 3; + * .google.protobuf.Struct resource_original_state = 19; */ - public Builder setAuthenticationInfo(google.events.cloud.audit.v1.Data.AuthenticationInfo value) { - if (authenticationInfoBuilder_ == null) { + public Builder setResourceOriginalState(com.google.protobuf.Struct value) { + if (resourceOriginalStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - authenticationInfo_ = value; + resourceOriginalState_ = value; onChanged(); } else { - authenticationInfoBuilder_.setMessage(value); + resourceOriginalStateBuilder_.setMessage(value); } return this; } /** *
-       * Authentication information.
+       * The resource's original state before mutation. Present only for
+       * operations which have successfully modified the targeted resource(s).
+       * In general, this field should contain all changed fields, except those
+       * that are already been included in `request`, `response`, `metadata` or
+       * `service_data` fields.
+       * When the JSON object represented here has a proto equivalent,
+       * the proto name will be indicated in the `@type` property.
        * 
* - * .google.events.cloud.audit.v1.AuthenticationInfo authentication_info = 3; + * .google.protobuf.Struct resource_original_state = 19; */ - public Builder setAuthenticationInfo( - google.events.cloud.audit.v1.Data.AuthenticationInfo.Builder builderForValue) { - if (authenticationInfoBuilder_ == null) { - authenticationInfo_ = builderForValue.build(); + public Builder setResourceOriginalState( + com.google.protobuf.Struct.Builder builderForValue) { + if (resourceOriginalStateBuilder_ == null) { + resourceOriginalState_ = builderForValue.build(); onChanged(); } else { - authenticationInfoBuilder_.setMessage(builderForValue.build()); + resourceOriginalStateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-       * Authentication information.
+       * The resource's original state before mutation. Present only for
+       * operations which have successfully modified the targeted resource(s).
+       * In general, this field should contain all changed fields, except those
+       * that are already been included in `request`, `response`, `metadata` or
+       * `service_data` fields.
+       * When the JSON object represented here has a proto equivalent,
+       * the proto name will be indicated in the `@type` property.
        * 
* - * .google.events.cloud.audit.v1.AuthenticationInfo authentication_info = 3; + * .google.protobuf.Struct resource_original_state = 19; */ - 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(); + public Builder mergeResourceOriginalState(com.google.protobuf.Struct value) { + if (resourceOriginalStateBuilder_ == null) { + if (resourceOriginalState_ != null) { + resourceOriginalState_ = + com.google.protobuf.Struct.newBuilder(resourceOriginalState_).mergeFrom(value).buildPartial(); } else { - authenticationInfo_ = value; + resourceOriginalState_ = value; } onChanged(); } else { - authenticationInfoBuilder_.mergeFrom(value); + resourceOriginalStateBuilder_.mergeFrom(value); } return this; } /** *
-       * Authentication information.
+       * The resource's original state before mutation. Present only for
+       * operations which have successfully modified the targeted resource(s).
+       * In general, this field should contain all changed fields, except those
+       * that are already been included in `request`, `response`, `metadata` or
+       * `service_data` fields.
+       * When the JSON object represented here has a proto equivalent,
+       * the proto name will be indicated in the `@type` property.
        * 
* - * .google.events.cloud.audit.v1.AuthenticationInfo authentication_info = 3; + * .google.protobuf.Struct resource_original_state = 19; */ - public Builder clearAuthenticationInfo() { - if (authenticationInfoBuilder_ == null) { - authenticationInfo_ = null; + public Builder clearResourceOriginalState() { + if (resourceOriginalStateBuilder_ == null) { + resourceOriginalState_ = null; onChanged(); } else { - authenticationInfo_ = null; - authenticationInfoBuilder_ = null; + resourceOriginalState_ = null; + resourceOriginalStateBuilder_ = null; } return this; } /** *
-       * Authentication information.
+       * The resource's original state before mutation. Present only for
+       * operations which have successfully modified the targeted resource(s).
+       * In general, this field should contain all changed fields, except those
+       * that are already been included in `request`, `response`, `metadata` or
+       * `service_data` fields.
+       * When the JSON object represented here has a proto equivalent,
+       * the proto name will be indicated in the `@type` property.
        * 
* - * .google.events.cloud.audit.v1.AuthenticationInfo authentication_info = 3; + * .google.protobuf.Struct resource_original_state = 19; */ - public google.events.cloud.audit.v1.Data.AuthenticationInfo.Builder getAuthenticationInfoBuilder() { + public com.google.protobuf.Struct.Builder getResourceOriginalStateBuilder() { onChanged(); - return getAuthenticationInfoFieldBuilder().getBuilder(); + return getResourceOriginalStateFieldBuilder().getBuilder(); } /** *
-       * Authentication information.
+       * The resource's original state before mutation. Present only for
+       * operations which have successfully modified the targeted resource(s).
+       * In general, this field should contain all changed fields, except those
+       * that are already been included in `request`, `response`, `metadata` or
+       * `service_data` fields.
+       * When the JSON object represented here has a proto equivalent,
+       * the proto name will be indicated in the `@type` property.
        * 
* - * .google.events.cloud.audit.v1.AuthenticationInfo authentication_info = 3; + * .google.protobuf.Struct resource_original_state = 19; */ - public google.events.cloud.audit.v1.Data.AuthenticationInfoOrBuilder getAuthenticationInfoOrBuilder() { - if (authenticationInfoBuilder_ != null) { - return authenticationInfoBuilder_.getMessageOrBuilder(); + public com.google.protobuf.StructOrBuilder getResourceOriginalStateOrBuilder() { + if (resourceOriginalStateBuilder_ != null) { + return resourceOriginalStateBuilder_.getMessageOrBuilder(); } else { - return authenticationInfo_ == null ? - google.events.cloud.audit.v1.Data.AuthenticationInfo.getDefaultInstance() : authenticationInfo_; + return resourceOriginalState_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : resourceOriginalState_; } } /** *
-       * Authentication information.
+       * The resource's original state before mutation. Present only for
+       * operations which have successfully modified the targeted resource(s).
+       * In general, this field should contain all changed fields, except those
+       * that are already been included in `request`, `response`, `metadata` or
+       * `service_data` fields.
+       * When the JSON object represented here has a proto equivalent,
+       * the proto name will be indicated in the `@type` property.
        * 
* - * .google.events.cloud.audit.v1.AuthenticationInfo authentication_info = 3; + * .google.protobuf.Struct resource_original_state = 19; */ 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(), + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getResourceOriginalStateFieldBuilder() { + if (resourceOriginalStateBuilder_ == null) { + resourceOriginalStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getResourceOriginalState(), getParentForChildren(), isClean()); - authenticationInfo_ = null; + resourceOriginalState_ = null; } - return authenticationInfoBuilder_; - } - - private java.util.List authorizationInfo_ = - java.util.Collections.emptyList(); - private void ensureAuthorizationInfoIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - authorizationInfo_ = new java.util.ArrayList(authorizationInfo_); - bitField0_ |= 0x00000001; - } + return resourceOriginalStateBuilder_; } - private com.google.protobuf.RepeatedFieldBuilderV3< - google.events.cloud.audit.v1.Data.AuthorizationInfo, google.events.cloud.audit.v1.Data.AuthorizationInfo.Builder, google.events.cloud.audit.v1.Data.AuthorizationInfoOrBuilder> authorizationInfoBuilder_; - + private long numResponseItems_ ; /** *
-       * Authorization information. If there are multiple
-       * resources or permissions involved, then there is
-       * one AuthorizationInfo element for each {resource, permission} tuple.
+       * The number of items returned from a List or Query API method,
+       * if applicable.
        * 
* - * repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9; + * int64 num_response_items = 12; + * @return The numResponseItems. */ - public java.util.List getAuthorizationInfoList() { - if (authorizationInfoBuilder_ == null) { - return java.util.Collections.unmodifiableList(authorizationInfo_); - } else { - return authorizationInfoBuilder_.getMessageList(); - } + @java.lang.Override + public long getNumResponseItems() { + return numResponseItems_; } /** *
-       * Authorization information. If there are multiple
-       * resources or permissions involved, then there is
-       * one AuthorizationInfo element for each {resource, permission} tuple.
+       * The number of items returned from a List or Query API method,
+       * if applicable.
        * 
* - * repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9; + * int64 num_response_items = 12; + * @param value The numResponseItems to set. + * @return This builder for chaining. */ - public int getAuthorizationInfoCount() { - if (authorizationInfoBuilder_ == null) { - return authorizationInfo_.size(); - } else { - return authorizationInfoBuilder_.getCount(); - } + public Builder setNumResponseItems(long value) { + + numResponseItems_ = value; + onChanged(); + return this; } /** *
-       * Authorization information. If there are multiple
-       * resources or permissions involved, then there is
-       * one AuthorizationInfo element for each {resource, permission} tuple.
+       * The number of items returned from a List or Query API method,
+       * if applicable.
        * 
* - * repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9; + * int64 num_response_items = 12; + * @return This builder for chaining. */ - public google.events.cloud.audit.v1.Data.AuthorizationInfo getAuthorizationInfo(int index) { - if (authorizationInfoBuilder_ == null) { - return authorizationInfo_.get(index); - } else { - return authorizationInfoBuilder_.getMessage(index); - } + 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_; /** *
-       * Authorization information. If there are multiple
-       * resources or permissions involved, then there is
-       * one AuthorizationInfo element for each {resource, permission} tuple.
+       * The status of the overall operation.
        * 
* - * repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9; + * .google.rpc.Status status = 2; + * @return Whether the status field is set. */ - 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; + public boolean hasStatus() { + return statusBuilder_ != null || status_ != null; } /** *
-       * Authorization information. If there are multiple
-       * resources or permissions involved, then there is
-       * one AuthorizationInfo element for each {resource, permission} tuple.
+       * The status of the overall operation.
        * 
* - * repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9; + * .google.rpc.Status status = 2; + * @return The status. */ - public Builder setAuthorizationInfo( - int index, google.events.cloud.audit.v1.Data.AuthorizationInfo.Builder builderForValue) { - if (authorizationInfoBuilder_ == null) { - ensureAuthorizationInfoIsMutable(); - authorizationInfo_.set(index, builderForValue.build()); - onChanged(); + public com.google.rpc.Status getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } else { - authorizationInfoBuilder_.setMessage(index, builderForValue.build()); + return statusBuilder_.getMessage(); } - return this; } /** *
-       * Authorization information. If there are multiple
-       * resources or permissions involved, then there is
-       * one AuthorizationInfo element for each {resource, permission} tuple.
+       * The status of the overall operation.
        * 
* - * repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9; + * .google.rpc.Status status = 2; */ - public Builder addAuthorizationInfo(google.events.cloud.audit.v1.Data.AuthorizationInfo value) { - if (authorizationInfoBuilder_ == null) { + public Builder setStatus(com.google.rpc.Status value) { + if (statusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureAuthorizationInfoIsMutable(); - authorizationInfo_.add(value); + status_ = value; onChanged(); } else { - authorizationInfoBuilder_.addMessage(value); + statusBuilder_.setMessage(value); } + return this; } /** *
-       * Authorization information. If there are multiple
-       * resources or permissions involved, then there is
-       * one AuthorizationInfo element for each {resource, permission} tuple.
+       * The status of the overall operation.
        * 
* - * repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9; + * .google.rpc.Status status = 2; */ - 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); + public Builder setStatus( + com.google.rpc.Status.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); onChanged(); } else { - authorizationInfoBuilder_.addMessage(index, value); + statusBuilder_.setMessage(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.
+       * The status of the overall operation.
        * 
* - * repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9; + * .google.rpc.Status status = 2; */ - 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()); + 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; } /** *
-       * Authorization information. If there are multiple
-       * resources or permissions involved, then there is
-       * one AuthorizationInfo element for each {resource, permission} tuple.
+       * The status of the overall operation.
        * 
* - * repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9; + * .google.rpc.Status status = 2; */ - public Builder addAuthorizationInfo( - int index, google.events.cloud.audit.v1.Data.AuthorizationInfo.Builder builderForValue) { - if (authorizationInfoBuilder_ == null) { - ensureAuthorizationInfoIsMutable(); - authorizationInfo_.add(index, builderForValue.build()); + public Builder clearStatus() { + if (statusBuilder_ == null) { + status_ = null; onChanged(); } else { - authorizationInfoBuilder_.addMessage(index, builderForValue.build()); + status_ = null; + statusBuilder_ = null; } + return this; } /** *
-       * Authorization information. If there are multiple
-       * resources or permissions involved, then there is
-       * one AuthorizationInfo element for each {resource, permission} tuple.
+       * The status of the overall operation.
        * 
* - * repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9; + * .google.rpc.Status status = 2; */ - public Builder addAllAuthorizationInfo( - java.lang.Iterable values) { - if (authorizationInfoBuilder_ == null) { - ensureAuthorizationInfoIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, authorizationInfo_); - onChanged(); - } else { - authorizationInfoBuilder_.addAllMessages(values); - } - return this; + public com.google.rpc.Status.Builder getStatusBuilder() { + + onChanged(); + return getStatusFieldBuilder().getBuilder(); } /** *
-       * Authorization information. If there are multiple
-       * resources or permissions involved, then there is
-       * one AuthorizationInfo element for each {resource, permission} tuple.
+       * The status of the overall operation.
        * 
* - * repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9; + * .google.rpc.Status status = 2; */ - public Builder clearAuthorizationInfo() { - if (authorizationInfoBuilder_ == null) { - authorizationInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); + public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); } else { - authorizationInfoBuilder_.clear(); + return status_ == null ? + com.google.rpc.Status.getDefaultInstance() : status_; } - return this; } /** *
-       * Authorization information. If there are multiple
-       * resources or permissions involved, then there is
-       * one AuthorizationInfo element for each {resource, permission} tuple.
+       * The status of the overall operation.
        * 
* - * repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9; + * .google.rpc.Status status = 2; */ - public Builder removeAuthorizationInfo(int index) { - if (authorizationInfoBuilder_ == null) { - ensureAuthorizationInfoIsMutable(); - authorizationInfo_.remove(index); - onChanged(); - } else { - authorizationInfoBuilder_.remove(index); + 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 this; + 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_; /** *
-       * Authorization information. If there are multiple
-       * resources or permissions involved, then there is
-       * one AuthorizationInfo element for each {resource, permission} tuple.
+       * Authentication information.
        * 
* - * repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9; + * .google.events.cloud.audit.v1.AuthenticationInfo authentication_info = 3; + * @return Whether the authenticationInfo field is set. */ - public google.events.cloud.audit.v1.Data.AuthorizationInfo.Builder getAuthorizationInfoBuilder( - int index) { - return getAuthorizationInfoFieldBuilder().getBuilder(index); + public boolean hasAuthenticationInfo() { + return authenticationInfoBuilder_ != null || authenticationInfo_ != null; } /** *
-       * Authorization information. If there are multiple
-       * resources or permissions involved, then there is
-       * one AuthorizationInfo element for each {resource, permission} tuple.
+       * Authentication information.
        * 
* - * repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9; + * .google.events.cloud.audit.v1.AuthenticationInfo authentication_info = 3; + * @return The authenticationInfo. */ - public google.events.cloud.audit.v1.Data.AuthorizationInfoOrBuilder getAuthorizationInfoOrBuilder( - int index) { - if (authorizationInfoBuilder_ == null) { - return authorizationInfo_.get(index); } else { - return authorizationInfoBuilder_.getMessageOrBuilder(index); + 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(); } } /** *
-       * Authorization information. If there are multiple
-       * resources or permissions involved, then there is
-       * one AuthorizationInfo element for each {resource, permission} tuple.
+       * Authentication information.
        * 
* - * repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9; + * .google.events.cloud.audit.v1.AuthenticationInfo authentication_info = 3; */ - public java.util.List - getAuthorizationInfoOrBuilderList() { - if (authorizationInfoBuilder_ != null) { - return authorizationInfoBuilder_.getMessageOrBuilderList(); + public Builder setAuthenticationInfo(google.events.cloud.audit.v1.Data.AuthenticationInfo value) { + if (authenticationInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authenticationInfo_ = value; + onChanged(); } else { - return java.util.Collections.unmodifiableList(authorizationInfo_); + authenticationInfoBuilder_.setMessage(value); } + + return this; } /** *
-       * Authorization information. If there are multiple
-       * resources or permissions involved, then there is
-       * one AuthorizationInfo element for each {resource, permission} tuple.
+       * Authentication information.
        * 
* - * repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9; + * .google.events.cloud.audit.v1.AuthenticationInfo authentication_info = 3; */ - public google.events.cloud.audit.v1.Data.AuthorizationInfo.Builder addAuthorizationInfoBuilder() { - return getAuthorizationInfoFieldBuilder().addBuilder( - google.events.cloud.audit.v1.Data.AuthorizationInfo.getDefaultInstance()); + 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; } /** *
-       * Authorization information. If there are multiple
-       * resources or permissions involved, then there is
-       * one AuthorizationInfo element for each {resource, permission} tuple.
+       * Authentication information.
        * 
* - * repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9; + * .google.events.cloud.audit.v1.AuthenticationInfo authentication_info = 3; */ - public google.events.cloud.audit.v1.Data.AuthorizationInfo.Builder addAuthorizationInfoBuilder( - int index) { - return getAuthorizationInfoFieldBuilder().addBuilder( - index, google.events.cloud.audit.v1.Data.AuthorizationInfo.getDefaultInstance()); + 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; } /** *
-       * Authorization information. If there are multiple
-       * resources or permissions involved, then there is
-       * one AuthorizationInfo element for each {resource, permission} tuple.
+       * Authentication information.
        * 
* - * repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9; + * .google.events.cloud.audit.v1.AuthenticationInfo authentication_info = 3; */ - public java.util.List - getAuthorizationInfoBuilderList() { - return getAuthorizationInfoFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - google.events.cloud.audit.v1.Data.AuthorizationInfo, google.events.cloud.audit.v1.Data.AuthorizationInfo.Builder, google.events.cloud.audit.v1.Data.AuthorizationInfoOrBuilder> - getAuthorizationInfoFieldBuilder() { - if (authorizationInfoBuilder_ == null) { - authorizationInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - google.events.cloud.audit.v1.Data.AuthorizationInfo, google.events.cloud.audit.v1.Data.AuthorizationInfo.Builder, google.events.cloud.audit.v1.Data.AuthorizationInfoOrBuilder>( - authorizationInfo_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - authorizationInfo_ = null; + public Builder clearAuthenticationInfo() { + if (authenticationInfoBuilder_ == null) { + authenticationInfo_ = null; + onChanged(); + } else { + authenticationInfo_ = null; + authenticationInfoBuilder_ = null; } - return authorizationInfoBuilder_; - } - private google.events.cloud.audit.v1.Data.RequestMetadata requestMetadata_; - 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> requestMetadataBuilder_; + return this; + } /** *
-       * Metadata about the operation.
+       * Authentication information.
        * 
* - * .google.events.cloud.audit.v1.RequestMetadata request_metadata = 4; - * @return Whether the requestMetadata field is set. + * .google.events.cloud.audit.v1.AuthenticationInfo authentication_info = 3; */ - public boolean hasRequestMetadata() { - return requestMetadataBuilder_ != null || requestMetadata_ != null; + public google.events.cloud.audit.v1.Data.AuthenticationInfo.Builder getAuthenticationInfoBuilder() { + + onChanged(); + return getAuthenticationInfoFieldBuilder().getBuilder(); } /** *
-       * Metadata about the operation.
+       * Authentication information.
        * 
* - * .google.events.cloud.audit.v1.RequestMetadata request_metadata = 4; - * @return The requestMetadata. + * .google.events.cloud.audit.v1.AuthenticationInfo authentication_info = 3; */ - public google.events.cloud.audit.v1.Data.RequestMetadata getRequestMetadata() { - if (requestMetadataBuilder_ == null) { - return requestMetadata_ == null ? google.events.cloud.audit.v1.Data.RequestMetadata.getDefaultInstance() : requestMetadata_; + public google.events.cloud.audit.v1.Data.AuthenticationInfoOrBuilder getAuthenticationInfoOrBuilder() { + if (authenticationInfoBuilder_ != null) { + return authenticationInfoBuilder_.getMessageOrBuilder(); } else { - return requestMetadataBuilder_.getMessage(); + return authenticationInfo_ == null ? + google.events.cloud.audit.v1.Data.AuthenticationInfo.getDefaultInstance() : authenticationInfo_; } } /** *
-       * Metadata about the operation.
+       * Authentication information.
        * 
* - * .google.events.cloud.audit.v1.RequestMetadata request_metadata = 4; + * .google.events.cloud.audit.v1.AuthenticationInfo authentication_info = 3; */ - 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); + 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_; + } - return this; + private java.util.List authorizationInfo_ = + java.util.Collections.emptyList(); + private void ensureAuthorizationInfoIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + authorizationInfo_ = new java.util.ArrayList(authorizationInfo_); + bitField0_ |= 0x00000001; + } } + + private com.google.protobuf.RepeatedFieldBuilderV3< + google.events.cloud.audit.v1.Data.AuthorizationInfo, google.events.cloud.audit.v1.Data.AuthorizationInfo.Builder, google.events.cloud.audit.v1.Data.AuthorizationInfoOrBuilder> authorizationInfoBuilder_; + /** *
-       * Metadata about the operation.
+       * Authorization information. If there are multiple
+       * resources or permissions involved, then there is
+       * one AuthorizationInfo element for each {resource, permission} tuple.
        * 
* - * .google.events.cloud.audit.v1.RequestMetadata request_metadata = 4; + * repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9; */ - public Builder setRequestMetadata( - google.events.cloud.audit.v1.Data.RequestMetadata.Builder builderForValue) { - if (requestMetadataBuilder_ == null) { - requestMetadata_ = builderForValue.build(); - onChanged(); + public java.util.List getAuthorizationInfoList() { + if (authorizationInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(authorizationInfo_); } else { - requestMetadataBuilder_.setMessage(builderForValue.build()); + return authorizationInfoBuilder_.getMessageList(); } - - return this; } /** *
-       * Metadata about the operation.
+       * Authorization information. If there are multiple
+       * resources or permissions involved, then there is
+       * one AuthorizationInfo element for each {resource, permission} tuple.
        * 
* - * .google.events.cloud.audit.v1.RequestMetadata request_metadata = 4; + * repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9; */ - 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(); + public int getAuthorizationInfoCount() { + if (authorizationInfoBuilder_ == null) { + return authorizationInfo_.size(); } else { - requestMetadataBuilder_.mergeFrom(value); + return authorizationInfoBuilder_.getCount(); } - - return this; } /** *
-       * Metadata about the operation.
+       * Authorization information. If there are multiple
+       * resources or permissions involved, then there is
+       * one AuthorizationInfo element for each {resource, permission} tuple.
        * 
* - * .google.events.cloud.audit.v1.RequestMetadata request_metadata = 4; + * repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9; */ - public Builder clearRequestMetadata() { - if (requestMetadataBuilder_ == null) { - requestMetadata_ = null; - onChanged(); + public google.events.cloud.audit.v1.Data.AuthorizationInfo getAuthorizationInfo(int index) { + if (authorizationInfoBuilder_ == null) { + return authorizationInfo_.get(index); } else { - requestMetadata_ = null; - requestMetadataBuilder_ = null; + return authorizationInfoBuilder_.getMessage(index); } - - 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.
+       * Authorization information. If there are multiple
+       * resources or permissions involved, then there is
+       * one AuthorizationInfo element for each {resource, permission} tuple.
        * 
* - * .google.events.cloud.audit.v1.RequestMetadata request_metadata = 4; + * repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9; */ - public google.events.cloud.audit.v1.Data.RequestMetadataOrBuilder getRequestMetadataOrBuilder() { - if (requestMetadataBuilder_ != null) { - return requestMetadataBuilder_.getMessageOrBuilder(); + 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 { - return requestMetadata_ == null ? - google.events.cloud.audit.v1.Data.RequestMetadata.getDefaultInstance() : requestMetadata_; + authorizationInfoBuilder_.setMessage(index, value); } + return this; } /** *
-       * Metadata about the operation.
+       * Authorization information. If there are multiple
+       * resources or permissions involved, then there is
+       * one AuthorizationInfo element for each {resource, permission} tuple.
        * 
* - * .google.events.cloud.audit.v1.RequestMetadata request_metadata = 4; + * repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9; */ - 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; + 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 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; + 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.
+       * Authorization information. If there are multiple
+       * resources or permissions involved, then there is
+       * one AuthorizationInfo element for each {resource, permission} tuple.
        * 
* - * .google.protobuf.Struct request = 16; - * @return The request. + * repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9; */ - public com.google.protobuf.Struct getRequest() { - if (requestBuilder_ == null) { - return request_ == null ? com.google.protobuf.Struct.getDefaultInstance() : request_; + 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 { - return requestBuilder_.getMessage(); + authorizationInfoBuilder_.addMessage(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.
+       * Authorization information. If there are multiple
+       * resources or permissions involved, then there is
+       * one AuthorizationInfo element for each {resource, permission} tuple.
        * 
* - * .google.protobuf.Struct request = 16; + * repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9; */ - public Builder setRequest(com.google.protobuf.Struct value) { - if (requestBuilder_ == null) { + public Builder addAuthorizationInfo( + int index, google.events.cloud.audit.v1.Data.AuthorizationInfo value) { + if (authorizationInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - request_ = value; + ensureAuthorizationInfoIsMutable(); + authorizationInfo_.add(index, value); onChanged(); } else { - requestBuilder_.setMessage(value); + authorizationInfoBuilder_.addMessage(index, 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.
+       * Authorization information. If there are multiple
+       * resources or permissions involved, then there is
+       * one AuthorizationInfo element for each {resource, permission} tuple.
        * 
* - * .google.protobuf.Struct request = 16; + * repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9; */ - public Builder setRequest( - com.google.protobuf.Struct.Builder builderForValue) { - if (requestBuilder_ == null) { - request_ = builderForValue.build(); + public Builder addAuthorizationInfo( + google.events.cloud.audit.v1.Data.AuthorizationInfo.Builder builderForValue) { + if (authorizationInfoBuilder_ == null) { + ensureAuthorizationInfoIsMutable(); + authorizationInfo_.add(builderForValue.build()); onChanged(); } else { - requestBuilder_.setMessage(builderForValue.build()); + authorizationInfoBuilder_.addMessage(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.
+       * Authorization information. If there are multiple
+       * resources or permissions involved, then there is
+       * one AuthorizationInfo element for each {resource, permission} tuple.
        * 
* - * .google.protobuf.Struct request = 16; + * repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9; */ - 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; - } + 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 { - requestBuilder_.mergeFrom(value); + authorizationInfoBuilder_.addMessage(index, 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.
+       * Authorization information. If there are multiple
+       * resources or permissions involved, then there is
+       * one AuthorizationInfo element for each {resource, permission} tuple.
        * 
* - * .google.protobuf.Struct request = 16; + * repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9; */ - public Builder clearRequest() { - if (requestBuilder_ == null) { - request_ = null; + public Builder addAllAuthorizationInfo( + java.lang.Iterable values) { + if (authorizationInfoBuilder_ == null) { + ensureAuthorizationInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, authorizationInfo_); onChanged(); } else { - request_ = null; - requestBuilder_ = null; + authorizationInfoBuilder_.addAllMessages(values); } - 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.
+       * Authorization information. If there are multiple
+       * resources or permissions involved, then there is
+       * one AuthorizationInfo element for each {resource, permission} tuple.
        * 
* - * .google.protobuf.Struct request = 16; + * repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9; */ - public com.google.protobuf.Struct.Builder getRequestBuilder() { - - onChanged(); - return getRequestFieldBuilder().getBuilder(); + public Builder clearAuthorizationInfo() { + if (authorizationInfoBuilder_ == null) { + authorizationInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + authorizationInfoBuilder_.clear(); + } + 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.
+       * Authorization information. If there are multiple
+       * resources or permissions involved, then there is
+       * one AuthorizationInfo element for each {resource, permission} tuple.
        * 
* - * .google.protobuf.Struct request = 16; + * repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9; */ - public com.google.protobuf.StructOrBuilder getRequestOrBuilder() { - if (requestBuilder_ != null) { - return requestBuilder_.getMessageOrBuilder(); + public Builder removeAuthorizationInfo(int index) { + if (authorizationInfoBuilder_ == null) { + ensureAuthorizationInfoIsMutable(); + authorizationInfo_.remove(index); + onChanged(); } else { - return request_ == null ? - com.google.protobuf.Struct.getDefaultInstance() : request_; + authorizationInfoBuilder_.remove(index); } + 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.
+       * Authorization information. If there are multiple
+       * resources or permissions involved, then there is
+       * one AuthorizationInfo element for each {resource, permission} tuple.
        * 
* - * .google.protobuf.Struct request = 16; + * repeated .google.events.cloud.audit.v1.AuthorizationInfo authorization_info = 9; */ - 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(), + 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 + 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 + getAuthorizationInfoBuilderList() { + return getAuthorizationInfoFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + google.events.cloud.audit.v1.Data.AuthorizationInfo, google.events.cloud.audit.v1.Data.AuthorizationInfo.Builder, google.events.cloud.audit.v1.Data.AuthorizationInfoOrBuilder> + getAuthorizationInfoFieldBuilder() { + if (authorizationInfoBuilder_ == null) { + authorizationInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + google.events.cloud.audit.v1.Data.AuthorizationInfo, google.events.cloud.audit.v1.Data.AuthorizationInfo.Builder, google.events.cloud.audit.v1.Data.AuthorizationInfoOrBuilder>( + authorizationInfo_, + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - request_ = null; + authorizationInfo_ = null; } - return requestBuilder_; + return authorizationInfoBuilder_; } - private com.google.protobuf.Struct response_; + private google.events.cloud.audit.v1.Data.RequestMetadata requestMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> responseBuilder_; + google.events.cloud.audit.v1.Data.RequestMetadata, google.events.cloud.audit.v1.Data.RequestMetadata.Builder, google.events.cloud.audit.v1.Data.RequestMetadataOrBuilder> requestMetadataBuilder_; /** *
-       * 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.
+       * Metadata about the operation.
        * 
* - * .google.protobuf.Struct response = 17; - * @return Whether the response field is set. + * .google.events.cloud.audit.v1.RequestMetadata request_metadata = 4; + * @return Whether the requestMetadata field is set. */ - public boolean hasResponse() { - return responseBuilder_ != null || response_ != null; + public boolean hasRequestMetadata() { + return requestMetadataBuilder_ != null || requestMetadata_ != 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.
+       * Metadata about the operation.
        * 
* - * .google.protobuf.Struct response = 17; - * @return The response. + * .google.events.cloud.audit.v1.RequestMetadata request_metadata = 4; + * @return The requestMetadata. */ - public com.google.protobuf.Struct getResponse() { - if (responseBuilder_ == null) { - return response_ == null ? com.google.protobuf.Struct.getDefaultInstance() : response_; + 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 responseBuilder_.getMessage(); + return requestMetadataBuilder_.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.
+       * Metadata about the operation.
        * 
* - * .google.protobuf.Struct response = 17; + * .google.events.cloud.audit.v1.RequestMetadata request_metadata = 4; */ - public Builder setResponse(com.google.protobuf.Struct value) { - if (responseBuilder_ == null) { + public Builder setRequestMetadata(google.events.cloud.audit.v1.Data.RequestMetadata value) { + if (requestMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - response_ = value; + requestMetadata_ = value; onChanged(); } else { - responseBuilder_.setMessage(value); + requestMetadataBuilder_.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.
+       * Metadata about the operation.
        * 
* - * .google.protobuf.Struct response = 17; + * .google.events.cloud.audit.v1.RequestMetadata request_metadata = 4; */ - public Builder setResponse( - com.google.protobuf.Struct.Builder builderForValue) { - if (responseBuilder_ == null) { - response_ = builderForValue.build(); + public Builder setRequestMetadata( + google.events.cloud.audit.v1.Data.RequestMetadata.Builder builderForValue) { + if (requestMetadataBuilder_ == null) { + requestMetadata_ = builderForValue.build(); onChanged(); } else { - responseBuilder_.setMessage(builderForValue.build()); + requestMetadataBuilder_.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.
+       * Metadata about the operation.
        * 
* - * .google.protobuf.Struct response = 17; + * .google.events.cloud.audit.v1.RequestMetadata request_metadata = 4; */ - public Builder mergeResponse(com.google.protobuf.Struct value) { - if (responseBuilder_ == null) { - if (response_ != null) { - response_ = - com.google.protobuf.Struct.newBuilder(response_).mergeFrom(value).buildPartial(); + 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 { - response_ = value; + requestMetadata_ = value; } onChanged(); } else { - responseBuilder_.mergeFrom(value); + requestMetadataBuilder_.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.
+       * Metadata about the operation.
        * 
* - * .google.protobuf.Struct response = 17; + * .google.events.cloud.audit.v1.RequestMetadata request_metadata = 4; */ - public Builder clearResponse() { - if (responseBuilder_ == null) { - response_ = null; + public Builder clearRequestMetadata() { + if (requestMetadataBuilder_ == null) { + requestMetadata_ = null; onChanged(); } else { - response_ = null; - responseBuilder_ = null; + requestMetadata_ = null; + requestMetadataBuilder_ = 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.
+       * Metadata about the operation.
        * 
* - * .google.protobuf.Struct response = 17; + * .google.events.cloud.audit.v1.RequestMetadata request_metadata = 4; */ - public com.google.protobuf.Struct.Builder getResponseBuilder() { + public google.events.cloud.audit.v1.Data.RequestMetadata.Builder getRequestMetadataBuilder() { onChanged(); - return getResponseFieldBuilder().getBuilder(); + return getRequestMetadataFieldBuilder().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.
+       * Metadata about the operation.
        * 
* - * .google.protobuf.Struct response = 17; + * .google.events.cloud.audit.v1.RequestMetadata request_metadata = 4; */ - public com.google.protobuf.StructOrBuilder getResponseOrBuilder() { - if (responseBuilder_ != null) { - return responseBuilder_.getMessageOrBuilder(); + public google.events.cloud.audit.v1.Data.RequestMetadataOrBuilder getRequestMetadataOrBuilder() { + if (requestMetadataBuilder_ != null) { + return requestMetadataBuilder_.getMessageOrBuilder(); } else { - return response_ == null ? - com.google.protobuf.Struct.getDefaultInstance() : response_; + return requestMetadata_ == null ? + google.events.cloud.audit.v1.Data.RequestMetadata.getDefaultInstance() : requestMetadata_; } } /** *
-       * 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.
+       * Metadata about the operation.
        * 
* - * .google.protobuf.Struct response = 17; + * .google.events.cloud.audit.v1.RequestMetadata request_metadata = 4; */ 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(), + 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()); - response_ = null; + requestMetadata_ = null; } - return responseBuilder_; + return requestMetadataBuilder_; } - private com.google.protobuf.Struct serviceData_; + private com.google.protobuf.Struct request_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> serviceDataBuilder_; + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> requestBuilder_; /** *
-       * Other service-specific data about the request, response, and other
-       * activities.
+       * 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 service_data = 15; - * @return Whether the serviceData field is set. + * .google.protobuf.Struct request = 16; + * @return Whether the request field is set. */ - public boolean hasServiceData() { - return serviceDataBuilder_ != null || serviceData_ != null; + public boolean hasRequest() { + return requestBuilder_ != null || request_ != null; } /** *
-       * Other service-specific data about the request, response, and other
-       * activities.
+       * 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 service_data = 15; - * @return The serviceData. + * .google.protobuf.Struct request = 16; + * @return The request. */ - public com.google.protobuf.Struct getServiceData() { - if (serviceDataBuilder_ == null) { - return serviceData_ == null ? com.google.protobuf.Struct.getDefaultInstance() : serviceData_; + public com.google.protobuf.Struct getRequest() { + if (requestBuilder_ == null) { + return request_ == null ? com.google.protobuf.Struct.getDefaultInstance() : request_; } else { - return serviceDataBuilder_.getMessage(); + return requestBuilder_.getMessage(); } } /** *
-       * Other service-specific data about the request, response, and other
-       * activities.
+       * 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 service_data = 15; + * .google.protobuf.Struct request = 16; */ - public Builder setServiceData(com.google.protobuf.Struct value) { - if (serviceDataBuilder_ == null) { + public Builder setRequest(com.google.protobuf.Struct value) { + if (requestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - serviceData_ = value; + request_ = value; onChanged(); } else { - serviceDataBuilder_.setMessage(value); + requestBuilder_.setMessage(value); } return this; } /** *
-       * Other service-specific data about the request, response, and other
-       * activities.
+       * 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 service_data = 15; + * .google.protobuf.Struct request = 16; */ - public Builder setServiceData( + public Builder setRequest( com.google.protobuf.Struct.Builder builderForValue) { - if (serviceDataBuilder_ == null) { - serviceData_ = builderForValue.build(); + if (requestBuilder_ == null) { + request_ = builderForValue.build(); onChanged(); } else { - serviceDataBuilder_.setMessage(builderForValue.build()); + requestBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-       * Other service-specific data about the request, response, and other
-       * activities.
+       * 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 service_data = 15; + * .google.protobuf.Struct request = 16; */ - public Builder mergeServiceData(com.google.protobuf.Struct value) { - if (serviceDataBuilder_ == null) { - if (serviceData_ != null) { - serviceData_ = - com.google.protobuf.Struct.newBuilder(serviceData_).mergeFrom(value).buildPartial(); + 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 { - serviceData_ = value; + request_ = value; } onChanged(); } else { - serviceDataBuilder_.mergeFrom(value); + requestBuilder_.mergeFrom(value); } return this; } /** *
-       * Other service-specific data about the request, response, and other
-       * activities.
+       * 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 service_data = 15; + * .google.protobuf.Struct request = 16; */ - public Builder clearServiceData() { - if (serviceDataBuilder_ == null) { - serviceData_ = null; + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; onChanged(); } else { - serviceData_ = null; - serviceDataBuilder_ = null; + request_ = null; + requestBuilder_ = null; } return this; } /** *
-       * Other service-specific data about the request, response, and other
-       * activities.
+       * 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 service_data = 15; + * .google.protobuf.Struct request = 16; */ - public com.google.protobuf.Struct.Builder getServiceDataBuilder() { + public com.google.protobuf.Struct.Builder getRequestBuilder() { onChanged(); - return getServiceDataFieldBuilder().getBuilder(); + return getRequestFieldBuilder().getBuilder(); } /** *
-       * Other service-specific data about the request, response, and other
-       * activities.
+       * 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 service_data = 15; + * .google.protobuf.Struct request = 16; */ - public com.google.protobuf.StructOrBuilder getServiceDataOrBuilder() { - if (serviceDataBuilder_ != null) { - return serviceDataBuilder_.getMessageOrBuilder(); + public com.google.protobuf.StructOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); } else { - return serviceData_ == null ? - com.google.protobuf.Struct.getDefaultInstance() : serviceData_; + return request_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : request_; } } /** *
-       * Other service-specific data about the request, response, and other
-       * activities.
+       * 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 service_data = 15; + * .google.protobuf.Struct request = 16; */ 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< + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( - getServiceData(), + 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 metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> metadataBuilder_; + /** + *
+       * Other service-specific data about the request, response, and other
+       * information associated with the current audited event.
+       * 
+ * + * .google.protobuf.Struct metadata = 18; + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + *
+       * Other service-specific data about the request, response, and other
+       * information associated with the current audited event.
+       * 
+ * + * .google.protobuf.Struct metadata = 18; + * @return The metadata. + */ + public com.google.protobuf.Struct getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Other service-specific data about the request, response, and other
+       * information associated with the current audited event.
+       * 
+ * + * .google.protobuf.Struct metadata = 18; + */ + public Builder setMetadata(com.google.protobuf.Struct value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Other service-specific data about the request, response, and other
+       * information associated with the current audited event.
+       * 
+ * + * .google.protobuf.Struct metadata = 18; + */ + public Builder setMetadata( + com.google.protobuf.Struct.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Other service-specific data about the request, response, and other
+       * information associated with the current audited event.
+       * 
+ * + * .google.protobuf.Struct metadata = 18; + */ + public Builder mergeMetadata(com.google.protobuf.Struct value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + com.google.protobuf.Struct.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Other service-specific data about the request, response, and other
+       * information associated with the current audited event.
+       * 
+ * + * .google.protobuf.Struct metadata = 18; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Other service-specific data about the request, response, and other
+       * information associated with the current audited event.
+       * 
+ * + * .google.protobuf.Struct metadata = 18; + */ + public com.google.protobuf.Struct.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Other service-specific data about the request, response, and other
+       * information associated with the current audited event.
+       * 
+ * + * .google.protobuf.Struct metadata = 18; + */ + public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Other service-specific data about the request, response, and other
+       * information associated with the current audited event.
+       * 
+ * + * .google.protobuf.Struct metadata = 18; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + 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_; + /** + *
+       * Deprecated, use `metadata` field instead.
+       * 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; + } + /** + *
+       * Deprecated, use `metadata` field instead.
+       * 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(); + } + } + /** + *
+       * Deprecated, use `metadata` field instead.
+       * 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; + } + /** + *
+       * Deprecated, use `metadata` field instead.
+       * 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; + } + /** + *
+       * Deprecated, use `metadata` field instead.
+       * 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; + } + /** + *
+       * Deprecated, use `metadata` field instead.
+       * 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; + } + /** + *
+       * Deprecated, use `metadata` field instead.
+       * 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(); + } + /** + *
+       * Deprecated, use `metadata` field instead.
+       * 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_; + } + } + /** + *
+       * Deprecated, use `metadata` field instead.
+       * 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 + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuditLogData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuditLogData(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public google.events.cloud.audit.v1.Data.AuditLogData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AuthenticationInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.cloud.audit.v1.AuthenticationInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The email address of the authenticated user (or service account on behalf
+     * of third party principal) making the request. For privacy reasons, the
+     * principal email address is redacted for all read-only operations that fail
+     * with a "permission denied" error.
+     * 
+ * + * string principal_email = 1; + * @return The principalEmail. + */ + java.lang.String getPrincipalEmail(); + /** + *
+     * The email address of the authenticated user (or service account on behalf
+     * of third party principal) making the request. For privacy reasons, the
+     * principal email address is redacted for all read-only operations that fail
+     * with a "permission denied" error.
+     * 
+ * + * string principal_email = 1; + * @return The bytes for principalEmail. + */ + com.google.protobuf.ByteString + getPrincipalEmailBytes(); + + /** + *
+     * The authority selector specified by the requestor, if any.
+     * It is not guaranteed that the principal was allowed to use this authority.
+     * 
+ * + * string authority_selector = 2; + * @return The authoritySelector. + */ + java.lang.String getAuthoritySelector(); + /** + *
+     * The authority selector specified by the requestor, if any.
+     * It is not guaranteed that the principal was allowed to use this authority.
+     * 
+ * + * string authority_selector = 2; + * @return The bytes for authoritySelector. + */ + com.google.protobuf.ByteString + getAuthoritySelectorBytes(); + + /** + *
+     * The third party identification (if any) of the authenticated user making
+     * the request.
+     * When the JSON object represented here has a proto equivalent, the proto
+     * name will be indicated in the `@type` property.
+     * 
+ * + * .google.protobuf.Struct third_party_principal = 4; + * @return Whether the thirdPartyPrincipal field is set. + */ + boolean hasThirdPartyPrincipal(); + /** + *
+     * The third party identification (if any) of the authenticated user making
+     * the request.
+     * When the JSON object represented here has a proto equivalent, the proto
+     * name will be indicated in the `@type` property.
+     * 
+ * + * .google.protobuf.Struct third_party_principal = 4; + * @return The thirdPartyPrincipal. + */ + com.google.protobuf.Struct getThirdPartyPrincipal(); + /** + *
+     * The third party identification (if any) of the authenticated user making
+     * the request.
+     * When the JSON object represented here has a proto equivalent, the proto
+     * name will be indicated in the `@type` property.
+     * 
+ * + * .google.protobuf.Struct third_party_principal = 4; + */ + com.google.protobuf.StructOrBuilder getThirdPartyPrincipalOrBuilder(); + + /** + *
+     * The name of the service account key used to create or exchange
+     * credentials for authenticating the service account making the request.
+     * This is a scheme-less URI full resource name. For example:
+     * "//iam.googleapis.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}"
+     * 
+ * + * string service_account_key_name = 5; + * @return The serviceAccountKeyName. + */ + java.lang.String getServiceAccountKeyName(); + /** + *
+     * The name of the service account key used to create or exchange
+     * credentials for authenticating the service account making the request.
+     * This is a scheme-less URI full resource name. For example:
+     * "//iam.googleapis.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}"
+     * 
+ * + * string service_account_key_name = 5; + * @return The bytes for serviceAccountKeyName. + */ + com.google.protobuf.ByteString + getServiceAccountKeyNameBytes(); + + /** + *
+     * Identity delegation history of an authenticated service account that makes
+     * the request. It contains information on the real authorities that try to
+     * access GCP resources by delegating on a service account. When multiple
+     * authorities present, they are guaranteed to be sorted based on the original
+     * ordering of the identity delegation events.
+     * 
+ * + * repeated .google.events.cloud.audit.v1.ServiceAccountDelegationInfo service_account_delegation_info = 6; + */ + java.util.List + getServiceAccountDelegationInfoList(); + /** + *
+     * Identity delegation history of an authenticated service account that makes
+     * the request. It contains information on the real authorities that try to
+     * access GCP resources by delegating on a service account. When multiple
+     * authorities present, they are guaranteed to be sorted based on the original
+     * ordering of the identity delegation events.
+     * 
+ * + * repeated .google.events.cloud.audit.v1.ServiceAccountDelegationInfo service_account_delegation_info = 6; + */ + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo getServiceAccountDelegationInfo(int index); + /** + *
+     * Identity delegation history of an authenticated service account that makes
+     * the request. It contains information on the real authorities that try to
+     * access GCP resources by delegating on a service account. When multiple
+     * authorities present, they are guaranteed to be sorted based on the original
+     * ordering of the identity delegation events.
+     * 
+ * + * repeated .google.events.cloud.audit.v1.ServiceAccountDelegationInfo service_account_delegation_info = 6; + */ + int getServiceAccountDelegationInfoCount(); + /** + *
+     * Identity delegation history of an authenticated service account that makes
+     * the request. It contains information on the real authorities that try to
+     * access GCP resources by delegating on a service account. When multiple
+     * authorities present, they are guaranteed to be sorted based on the original
+     * ordering of the identity delegation events.
+     * 
+ * + * repeated .google.events.cloud.audit.v1.ServiceAccountDelegationInfo service_account_delegation_info = 6; + */ + java.util.List + getServiceAccountDelegationInfoOrBuilderList(); + /** + *
+     * Identity delegation history of an authenticated service account that makes
+     * the request. It contains information on the real authorities that try to
+     * access GCP resources by delegating on a service account. When multiple
+     * authorities present, they are guaranteed to be sorted based on the original
+     * ordering of the identity delegation events.
+     * 
+ * + * repeated .google.events.cloud.audit.v1.ServiceAccountDelegationInfo service_account_delegation_info = 6; + */ + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfoOrBuilder getServiceAccountDelegationInfoOrBuilder( + int index); + + /** + *
+     * String representation of identity of requesting party.
+     * Populated for both first and third party identities.
+     * 
+ * + * string principal_subject = 8; + * @return The principalSubject. + */ + java.lang.String getPrincipalSubject(); + /** + *
+     * String representation of identity of requesting party.
+     * Populated for both first and third party identities.
+     * 
+ * + * string principal_subject = 8; + * @return The bytes for principalSubject. + */ + com.google.protobuf.ByteString + getPrincipalSubjectBytes(); + } + /** + *
+   * 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_ = ""; + authoritySelector_ = ""; + serviceAccountKeyName_ = ""; + serviceAccountDelegationInfo_ = java.util.Collections.emptyList(); + principalSubject_ = ""; + } + + @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(); + } + 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(); + + principalEmail_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + authoritySelector_ = s; + break; + } + case 34: { + com.google.protobuf.Struct.Builder subBuilder = null; + if (thirdPartyPrincipal_ != null) { + subBuilder = thirdPartyPrincipal_.toBuilder(); + } + thirdPartyPrincipal_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(thirdPartyPrincipal_); + thirdPartyPrincipal_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + serviceAccountKeyName_ = s; + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + serviceAccountDelegationInfo_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + serviceAccountDelegationInfo_.add( + input.readMessage(google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.parser(), extensionRegistry)); + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + principalSubject_ = 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)) { + serviceAccountDelegationInfo_ = java.util.Collections.unmodifiableList(serviceAccountDelegationInfo_); + } + 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 (or service account on behalf
+     * of third party principal) making the request. For privacy reasons, the
+     * principal email address is redacted for all read-only operations that fail
+     * with a "permission denied" error.
+     * 
+ * + * 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 (or service account on behalf
+     * of third party principal) making the request. For privacy reasons, the
+     * principal email address is redacted for all read-only operations that fail
+     * with a "permission denied" error.
+     * 
+ * + * 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; + } + } + + public static final int AUTHORITY_SELECTOR_FIELD_NUMBER = 2; + private volatile java.lang.Object authoritySelector_; + /** + *
+     * The authority selector specified by the requestor, if any.
+     * It is not guaranteed that the principal was allowed to use this authority.
+     * 
+ * + * string authority_selector = 2; + * @return The authoritySelector. + */ + @java.lang.Override + public java.lang.String getAuthoritySelector() { + java.lang.Object ref = authoritySelector_; + 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(); + authoritySelector_ = s; + return s; + } + } + /** + *
+     * The authority selector specified by the requestor, if any.
+     * It is not guaranteed that the principal was allowed to use this authority.
+     * 
+ * + * string authority_selector = 2; + * @return The bytes for authoritySelector. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAuthoritySelectorBytes() { + java.lang.Object ref = authoritySelector_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + authoritySelector_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int THIRD_PARTY_PRINCIPAL_FIELD_NUMBER = 4; + private com.google.protobuf.Struct thirdPartyPrincipal_; + /** + *
+     * The third party identification (if any) of the authenticated user making
+     * the request.
+     * When the JSON object represented here has a proto equivalent, the proto
+     * name will be indicated in the `@type` property.
+     * 
+ * + * .google.protobuf.Struct third_party_principal = 4; + * @return Whether the thirdPartyPrincipal field is set. + */ + @java.lang.Override + public boolean hasThirdPartyPrincipal() { + return thirdPartyPrincipal_ != null; + } + /** + *
+     * The third party identification (if any) of the authenticated user making
+     * the request.
+     * When the JSON object represented here has a proto equivalent, the proto
+     * name will be indicated in the `@type` property.
+     * 
+ * + * .google.protobuf.Struct third_party_principal = 4; + * @return The thirdPartyPrincipal. + */ + @java.lang.Override + public com.google.protobuf.Struct getThirdPartyPrincipal() { + return thirdPartyPrincipal_ == null ? com.google.protobuf.Struct.getDefaultInstance() : thirdPartyPrincipal_; + } + /** + *
+     * The third party identification (if any) of the authenticated user making
+     * the request.
+     * When the JSON object represented here has a proto equivalent, the proto
+     * name will be indicated in the `@type` property.
+     * 
+ * + * .google.protobuf.Struct third_party_principal = 4; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getThirdPartyPrincipalOrBuilder() { + return getThirdPartyPrincipal(); + } + + public static final int SERVICE_ACCOUNT_KEY_NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object serviceAccountKeyName_; + /** + *
+     * The name of the service account key used to create or exchange
+     * credentials for authenticating the service account making the request.
+     * This is a scheme-less URI full resource name. For example:
+     * "//iam.googleapis.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}"
+     * 
+ * + * string service_account_key_name = 5; + * @return The serviceAccountKeyName. + */ + @java.lang.Override + public java.lang.String getServiceAccountKeyName() { + java.lang.Object ref = serviceAccountKeyName_; + 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(); + serviceAccountKeyName_ = s; + return s; + } + } + /** + *
+     * The name of the service account key used to create or exchange
+     * credentials for authenticating the service account making the request.
+     * This is a scheme-less URI full resource name. For example:
+     * "//iam.googleapis.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}"
+     * 
+ * + * string service_account_key_name = 5; + * @return The bytes for serviceAccountKeyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getServiceAccountKeyNameBytes() { + java.lang.Object ref = serviceAccountKeyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serviceAccountKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICE_ACCOUNT_DELEGATION_INFO_FIELD_NUMBER = 6; + private java.util.List serviceAccountDelegationInfo_; + /** + *
+     * Identity delegation history of an authenticated service account that makes
+     * the request. It contains information on the real authorities that try to
+     * access GCP resources by delegating on a service account. When multiple
+     * authorities present, they are guaranteed to be sorted based on the original
+     * ordering of the identity delegation events.
+     * 
+ * + * repeated .google.events.cloud.audit.v1.ServiceAccountDelegationInfo service_account_delegation_info = 6; + */ + @java.lang.Override + public java.util.List getServiceAccountDelegationInfoList() { + return serviceAccountDelegationInfo_; + } + /** + *
+     * Identity delegation history of an authenticated service account that makes
+     * the request. It contains information on the real authorities that try to
+     * access GCP resources by delegating on a service account. When multiple
+     * authorities present, they are guaranteed to be sorted based on the original
+     * ordering of the identity delegation events.
+     * 
+ * + * repeated .google.events.cloud.audit.v1.ServiceAccountDelegationInfo service_account_delegation_info = 6; + */ + @java.lang.Override + public java.util.List + getServiceAccountDelegationInfoOrBuilderList() { + return serviceAccountDelegationInfo_; + } + /** + *
+     * Identity delegation history of an authenticated service account that makes
+     * the request. It contains information on the real authorities that try to
+     * access GCP resources by delegating on a service account. When multiple
+     * authorities present, they are guaranteed to be sorted based on the original
+     * ordering of the identity delegation events.
+     * 
+ * + * repeated .google.events.cloud.audit.v1.ServiceAccountDelegationInfo service_account_delegation_info = 6; + */ + @java.lang.Override + public int getServiceAccountDelegationInfoCount() { + return serviceAccountDelegationInfo_.size(); + } + /** + *
+     * Identity delegation history of an authenticated service account that makes
+     * the request. It contains information on the real authorities that try to
+     * access GCP resources by delegating on a service account. When multiple
+     * authorities present, they are guaranteed to be sorted based on the original
+     * ordering of the identity delegation events.
+     * 
+ * + * repeated .google.events.cloud.audit.v1.ServiceAccountDelegationInfo service_account_delegation_info = 6; + */ + @java.lang.Override + public google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo getServiceAccountDelegationInfo(int index) { + return serviceAccountDelegationInfo_.get(index); + } + /** + *
+     * Identity delegation history of an authenticated service account that makes
+     * the request. It contains information on the real authorities that try to
+     * access GCP resources by delegating on a service account. When multiple
+     * authorities present, they are guaranteed to be sorted based on the original
+     * ordering of the identity delegation events.
+     * 
+ * + * repeated .google.events.cloud.audit.v1.ServiceAccountDelegationInfo service_account_delegation_info = 6; + */ + @java.lang.Override + public google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfoOrBuilder getServiceAccountDelegationInfoOrBuilder( + int index) { + return serviceAccountDelegationInfo_.get(index); + } + + public static final int PRINCIPAL_SUBJECT_FIELD_NUMBER = 8; + private volatile java.lang.Object principalSubject_; + /** + *
+     * String representation of identity of requesting party.
+     * Populated for both first and third party identities.
+     * 
+ * + * string principal_subject = 8; + * @return The principalSubject. + */ + @java.lang.Override + public java.lang.String getPrincipalSubject() { + java.lang.Object ref = principalSubject_; + 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(); + principalSubject_ = s; + return s; + } + } + /** + *
+     * String representation of identity of requesting party.
+     * Populated for both first and third party identities.
+     * 
+ * + * string principal_subject = 8; + * @return The bytes for principalSubject. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPrincipalSubjectBytes() { + java.lang.Object ref = principalSubject_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + principalSubject_ = 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_); + } + if (!getAuthoritySelectorBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, authoritySelector_); + } + if (thirdPartyPrincipal_ != null) { + output.writeMessage(4, getThirdPartyPrincipal()); + } + if (!getServiceAccountKeyNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, serviceAccountKeyName_); + } + for (int i = 0; i < serviceAccountDelegationInfo_.size(); i++) { + output.writeMessage(6, serviceAccountDelegationInfo_.get(i)); + } + if (!getPrincipalSubjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, principalSubject_); + } + 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_); + } + if (!getAuthoritySelectorBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, authoritySelector_); + } + if (thirdPartyPrincipal_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getThirdPartyPrincipal()); + } + if (!getServiceAccountKeyNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, serviceAccountKeyName_); + } + for (int i = 0; i < serviceAccountDelegationInfo_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, serviceAccountDelegationInfo_.get(i)); + } + if (!getPrincipalSubjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, principalSubject_); + } + 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 (!getAuthoritySelector() + .equals(other.getAuthoritySelector())) return false; + if (hasThirdPartyPrincipal() != other.hasThirdPartyPrincipal()) return false; + if (hasThirdPartyPrincipal()) { + if (!getThirdPartyPrincipal() + .equals(other.getThirdPartyPrincipal())) return false; + } + if (!getServiceAccountKeyName() + .equals(other.getServiceAccountKeyName())) return false; + if (!getServiceAccountDelegationInfoList() + .equals(other.getServiceAccountDelegationInfoList())) return false; + if (!getPrincipalSubject() + .equals(other.getPrincipalSubject())) 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 = (37 * hash) + AUTHORITY_SELECTOR_FIELD_NUMBER; + hash = (53 * hash) + getAuthoritySelector().hashCode(); + if (hasThirdPartyPrincipal()) { + hash = (37 * hash) + THIRD_PARTY_PRINCIPAL_FIELD_NUMBER; + hash = (53 * hash) + getThirdPartyPrincipal().hashCode(); + } + hash = (37 * hash) + SERVICE_ACCOUNT_KEY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccountKeyName().hashCode(); + if (getServiceAccountDelegationInfoCount() > 0) { + hash = (37 * hash) + SERVICE_ACCOUNT_DELEGATION_INFO_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccountDelegationInfoList().hashCode(); + } + hash = (37 * hash) + PRINCIPAL_SUBJECT_FIELD_NUMBER; + hash = (53 * hash) + getPrincipalSubject().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 implements + // @@protoc_insertion_point(builder_implements:google.events.cloud.audit.v1.AuthenticationInfo) + google.events.cloud.audit.v1.Data.AuthenticationInfoOrBuilder { + 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); + } + + // Construct using google.events.cloud.audit.v1.Data.AuthenticationInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getServiceAccountDelegationInfoFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + principalEmail_ = ""; + + authoritySelector_ = ""; + + if (thirdPartyPrincipalBuilder_ == null) { + thirdPartyPrincipal_ = null; + } else { + thirdPartyPrincipal_ = null; + thirdPartyPrincipalBuilder_ = null; + } + serviceAccountKeyName_ = ""; + + if (serviceAccountDelegationInfoBuilder_ == null) { + serviceAccountDelegationInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + serviceAccountDelegationInfoBuilder_.clear(); + } + principalSubject_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.events.cloud.audit.v1.Data.internal_static_google_events_cloud_audit_v1_AuthenticationInfo_descriptor; + } + + @java.lang.Override + public google.events.cloud.audit.v1.Data.AuthenticationInfo getDefaultInstanceForType() { + return google.events.cloud.audit.v1.Data.AuthenticationInfo.getDefaultInstance(); + } + + @java.lang.Override + public google.events.cloud.audit.v1.Data.AuthenticationInfo build() { + google.events.cloud.audit.v1.Data.AuthenticationInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public google.events.cloud.audit.v1.Data.AuthenticationInfo buildPartial() { + google.events.cloud.audit.v1.Data.AuthenticationInfo result = new google.events.cloud.audit.v1.Data.AuthenticationInfo(this); + int from_bitField0_ = bitField0_; + result.principalEmail_ = principalEmail_; + result.authoritySelector_ = authoritySelector_; + if (thirdPartyPrincipalBuilder_ == null) { + result.thirdPartyPrincipal_ = thirdPartyPrincipal_; + } else { + result.thirdPartyPrincipal_ = thirdPartyPrincipalBuilder_.build(); + } + result.serviceAccountKeyName_ = serviceAccountKeyName_; + if (serviceAccountDelegationInfoBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + serviceAccountDelegationInfo_ = java.util.Collections.unmodifiableList(serviceAccountDelegationInfo_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.serviceAccountDelegationInfo_ = serviceAccountDelegationInfo_; + } else { + result.serviceAccountDelegationInfo_ = serviceAccountDelegationInfoBuilder_.build(); + } + result.principalSubject_ = principalSubject_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.events.cloud.audit.v1.Data.AuthenticationInfo) { + return mergeFrom((google.events.cloud.audit.v1.Data.AuthenticationInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(google.events.cloud.audit.v1.Data.AuthenticationInfo other) { + if (other == google.events.cloud.audit.v1.Data.AuthenticationInfo.getDefaultInstance()) return this; + if (!other.getPrincipalEmail().isEmpty()) { + principalEmail_ = other.principalEmail_; + onChanged(); + } + if (!other.getAuthoritySelector().isEmpty()) { + authoritySelector_ = other.authoritySelector_; + onChanged(); + } + if (other.hasThirdPartyPrincipal()) { + mergeThirdPartyPrincipal(other.getThirdPartyPrincipal()); + } + if (!other.getServiceAccountKeyName().isEmpty()) { + serviceAccountKeyName_ = other.serviceAccountKeyName_; + onChanged(); + } + if (serviceAccountDelegationInfoBuilder_ == null) { + if (!other.serviceAccountDelegationInfo_.isEmpty()) { + if (serviceAccountDelegationInfo_.isEmpty()) { + serviceAccountDelegationInfo_ = other.serviceAccountDelegationInfo_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureServiceAccountDelegationInfoIsMutable(); + serviceAccountDelegationInfo_.addAll(other.serviceAccountDelegationInfo_); + } + onChanged(); + } + } else { + if (!other.serviceAccountDelegationInfo_.isEmpty()) { + if (serviceAccountDelegationInfoBuilder_.isEmpty()) { + serviceAccountDelegationInfoBuilder_.dispose(); + serviceAccountDelegationInfoBuilder_ = null; + serviceAccountDelegationInfo_ = other.serviceAccountDelegationInfo_; + bitField0_ = (bitField0_ & ~0x00000001); + serviceAccountDelegationInfoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getServiceAccountDelegationInfoFieldBuilder() : null; + } else { + serviceAccountDelegationInfoBuilder_.addAllMessages(other.serviceAccountDelegationInfo_); + } + } + } + if (!other.getPrincipalSubject().isEmpty()) { + principalSubject_ = other.principalSubject_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.events.cloud.audit.v1.Data.AuthenticationInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.events.cloud.audit.v1.Data.AuthenticationInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object principalEmail_ = ""; + /** + *
+       * The email address of the authenticated user (or service account on behalf
+       * of third party principal) making the request. For privacy reasons, the
+       * principal email address is redacted for all read-only operations that fail
+       * with a "permission denied" error.
+       * 
+ * + * 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 (or service account on behalf
+       * of third party principal) making the request. For privacy reasons, the
+       * principal email address is redacted for all read-only operations that fail
+       * with a "permission denied" error.
+       * 
+ * + * 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 (or service account on behalf
+       * of third party principal) making the request. For privacy reasons, the
+       * principal email address is redacted for all read-only operations that fail
+       * with a "permission denied" error.
+       * 
+ * + * 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 (or service account on behalf
+       * of third party principal) making the request. For privacy reasons, the
+       * principal email address is redacted for all read-only operations that fail
+       * with a "permission denied" error.
+       * 
+ * + * 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 (or service account on behalf
+       * of third party principal) making the request. For privacy reasons, the
+       * principal email address is redacted for all read-only operations that fail
+       * with a "permission denied" error.
+       * 
+ * + * 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; + } + + private java.lang.Object authoritySelector_ = ""; + /** + *
+       * The authority selector specified by the requestor, if any.
+       * It is not guaranteed that the principal was allowed to use this authority.
+       * 
+ * + * string authority_selector = 2; + * @return The authoritySelector. + */ + public java.lang.String getAuthoritySelector() { + java.lang.Object ref = authoritySelector_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authoritySelector_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The authority selector specified by the requestor, if any.
+       * It is not guaranteed that the principal was allowed to use this authority.
+       * 
+ * + * string authority_selector = 2; + * @return The bytes for authoritySelector. + */ + public com.google.protobuf.ByteString + getAuthoritySelectorBytes() { + java.lang.Object ref = authoritySelector_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + authoritySelector_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The authority selector specified by the requestor, if any.
+       * It is not guaranteed that the principal was allowed to use this authority.
+       * 
+ * + * string authority_selector = 2; + * @param value The authoritySelector to set. + * @return This builder for chaining. + */ + public Builder setAuthoritySelector( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + authoritySelector_ = value; + onChanged(); + return this; + } + /** + *
+       * The authority selector specified by the requestor, if any.
+       * It is not guaranteed that the principal was allowed to use this authority.
+       * 
+ * + * string authority_selector = 2; + * @return This builder for chaining. + */ + public Builder clearAuthoritySelector() { + + authoritySelector_ = getDefaultInstance().getAuthoritySelector(); + onChanged(); + return this; + } + /** + *
+       * The authority selector specified by the requestor, if any.
+       * It is not guaranteed that the principal was allowed to use this authority.
+       * 
+ * + * string authority_selector = 2; + * @param value The bytes for authoritySelector to set. + * @return This builder for chaining. + */ + public Builder setAuthoritySelectorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + authoritySelector_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Struct thirdPartyPrincipal_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> thirdPartyPrincipalBuilder_; + /** + *
+       * The third party identification (if any) of the authenticated user making
+       * the request.
+       * When the JSON object represented here has a proto equivalent, the proto
+       * name will be indicated in the `@type` property.
+       * 
+ * + * .google.protobuf.Struct third_party_principal = 4; + * @return Whether the thirdPartyPrincipal field is set. + */ + public boolean hasThirdPartyPrincipal() { + return thirdPartyPrincipalBuilder_ != null || thirdPartyPrincipal_ != null; + } + /** + *
+       * The third party identification (if any) of the authenticated user making
+       * the request.
+       * When the JSON object represented here has a proto equivalent, the proto
+       * name will be indicated in the `@type` property.
+       * 
+ * + * .google.protobuf.Struct third_party_principal = 4; + * @return The thirdPartyPrincipal. + */ + public com.google.protobuf.Struct getThirdPartyPrincipal() { + if (thirdPartyPrincipalBuilder_ == null) { + return thirdPartyPrincipal_ == null ? com.google.protobuf.Struct.getDefaultInstance() : thirdPartyPrincipal_; + } else { + return thirdPartyPrincipalBuilder_.getMessage(); + } + } + /** + *
+       * The third party identification (if any) of the authenticated user making
+       * the request.
+       * When the JSON object represented here has a proto equivalent, the proto
+       * name will be indicated in the `@type` property.
+       * 
+ * + * .google.protobuf.Struct third_party_principal = 4; + */ + public Builder setThirdPartyPrincipal(com.google.protobuf.Struct value) { + if (thirdPartyPrincipalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + thirdPartyPrincipal_ = value; + onChanged(); + } else { + thirdPartyPrincipalBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The third party identification (if any) of the authenticated user making
+       * the request.
+       * When the JSON object represented here has a proto equivalent, the proto
+       * name will be indicated in the `@type` property.
+       * 
+ * + * .google.protobuf.Struct third_party_principal = 4; + */ + public Builder setThirdPartyPrincipal( + com.google.protobuf.Struct.Builder builderForValue) { + if (thirdPartyPrincipalBuilder_ == null) { + thirdPartyPrincipal_ = builderForValue.build(); + onChanged(); + } else { + thirdPartyPrincipalBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The third party identification (if any) of the authenticated user making
+       * the request.
+       * When the JSON object represented here has a proto equivalent, the proto
+       * name will be indicated in the `@type` property.
+       * 
+ * + * .google.protobuf.Struct third_party_principal = 4; + */ + public Builder mergeThirdPartyPrincipal(com.google.protobuf.Struct value) { + if (thirdPartyPrincipalBuilder_ == null) { + if (thirdPartyPrincipal_ != null) { + thirdPartyPrincipal_ = + com.google.protobuf.Struct.newBuilder(thirdPartyPrincipal_).mergeFrom(value).buildPartial(); + } else { + thirdPartyPrincipal_ = value; + } + onChanged(); + } else { + thirdPartyPrincipalBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The third party identification (if any) of the authenticated user making
+       * the request.
+       * When the JSON object represented here has a proto equivalent, the proto
+       * name will be indicated in the `@type` property.
+       * 
+ * + * .google.protobuf.Struct third_party_principal = 4; + */ + public Builder clearThirdPartyPrincipal() { + if (thirdPartyPrincipalBuilder_ == null) { + thirdPartyPrincipal_ = null; + onChanged(); + } else { + thirdPartyPrincipal_ = null; + thirdPartyPrincipalBuilder_ = null; + } + + return this; + } + /** + *
+       * The third party identification (if any) of the authenticated user making
+       * the request.
+       * When the JSON object represented here has a proto equivalent, the proto
+       * name will be indicated in the `@type` property.
+       * 
+ * + * .google.protobuf.Struct third_party_principal = 4; + */ + public com.google.protobuf.Struct.Builder getThirdPartyPrincipalBuilder() { + + onChanged(); + return getThirdPartyPrincipalFieldBuilder().getBuilder(); + } + /** + *
+       * The third party identification (if any) of the authenticated user making
+       * the request.
+       * When the JSON object represented here has a proto equivalent, the proto
+       * name will be indicated in the `@type` property.
+       * 
+ * + * .google.protobuf.Struct third_party_principal = 4; + */ + public com.google.protobuf.StructOrBuilder getThirdPartyPrincipalOrBuilder() { + if (thirdPartyPrincipalBuilder_ != null) { + return thirdPartyPrincipalBuilder_.getMessageOrBuilder(); + } else { + return thirdPartyPrincipal_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : thirdPartyPrincipal_; + } + } + /** + *
+       * The third party identification (if any) of the authenticated user making
+       * the request.
+       * When the JSON object represented here has a proto equivalent, the proto
+       * name will be indicated in the `@type` property.
+       * 
+ * + * .google.protobuf.Struct third_party_principal = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getThirdPartyPrincipalFieldBuilder() { + if (thirdPartyPrincipalBuilder_ == null) { + thirdPartyPrincipalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getThirdPartyPrincipal(), + getParentForChildren(), + isClean()); + thirdPartyPrincipal_ = null; + } + return thirdPartyPrincipalBuilder_; + } + + private java.lang.Object serviceAccountKeyName_ = ""; + /** + *
+       * The name of the service account key used to create or exchange
+       * credentials for authenticating the service account making the request.
+       * This is a scheme-less URI full resource name. For example:
+       * "//iam.googleapis.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}"
+       * 
+ * + * string service_account_key_name = 5; + * @return The serviceAccountKeyName. + */ + public java.lang.String getServiceAccountKeyName() { + java.lang.Object ref = serviceAccountKeyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccountKeyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The name of the service account key used to create or exchange
+       * credentials for authenticating the service account making the request.
+       * This is a scheme-less URI full resource name. For example:
+       * "//iam.googleapis.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}"
+       * 
+ * + * string service_account_key_name = 5; + * @return The bytes for serviceAccountKeyName. + */ + public com.google.protobuf.ByteString + getServiceAccountKeyNameBytes() { + java.lang.Object ref = serviceAccountKeyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serviceAccountKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The name of the service account key used to create or exchange
+       * credentials for authenticating the service account making the request.
+       * This is a scheme-less URI full resource name. For example:
+       * "//iam.googleapis.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}"
+       * 
+ * + * string service_account_key_name = 5; + * @param value The serviceAccountKeyName to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountKeyName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serviceAccountKeyName_ = value; + onChanged(); + return this; + } + /** + *
+       * The name of the service account key used to create or exchange
+       * credentials for authenticating the service account making the request.
+       * This is a scheme-less URI full resource name. For example:
+       * "//iam.googleapis.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}"
+       * 
+ * + * string service_account_key_name = 5; + * @return This builder for chaining. + */ + public Builder clearServiceAccountKeyName() { + + serviceAccountKeyName_ = getDefaultInstance().getServiceAccountKeyName(); + onChanged(); + return this; + } + /** + *
+       * The name of the service account key used to create or exchange
+       * credentials for authenticating the service account making the request.
+       * This is a scheme-less URI full resource name. For example:
+       * "//iam.googleapis.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}"
+       * 
+ * + * string service_account_key_name = 5; + * @param value The bytes for serviceAccountKeyName to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountKeyNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serviceAccountKeyName_ = value; + onChanged(); + return this; + } + + private java.util.List serviceAccountDelegationInfo_ = + java.util.Collections.emptyList(); + private void ensureServiceAccountDelegationInfoIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + serviceAccountDelegationInfo_ = new java.util.ArrayList(serviceAccountDelegationInfo_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo, google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.Builder, google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfoOrBuilder> serviceAccountDelegationInfoBuilder_; + + /** + *
+       * Identity delegation history of an authenticated service account that makes
+       * the request. It contains information on the real authorities that try to
+       * access GCP resources by delegating on a service account. When multiple
+       * authorities present, they are guaranteed to be sorted based on the original
+       * ordering of the identity delegation events.
+       * 
+ * + * repeated .google.events.cloud.audit.v1.ServiceAccountDelegationInfo service_account_delegation_info = 6; + */ + public java.util.List getServiceAccountDelegationInfoList() { + if (serviceAccountDelegationInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(serviceAccountDelegationInfo_); + } else { + return serviceAccountDelegationInfoBuilder_.getMessageList(); + } + } + /** + *
+       * Identity delegation history of an authenticated service account that makes
+       * the request. It contains information on the real authorities that try to
+       * access GCP resources by delegating on a service account. When multiple
+       * authorities present, they are guaranteed to be sorted based on the original
+       * ordering of the identity delegation events.
+       * 
+ * + * repeated .google.events.cloud.audit.v1.ServiceAccountDelegationInfo service_account_delegation_info = 6; + */ + public int getServiceAccountDelegationInfoCount() { + if (serviceAccountDelegationInfoBuilder_ == null) { + return serviceAccountDelegationInfo_.size(); + } else { + return serviceAccountDelegationInfoBuilder_.getCount(); + } + } + /** + *
+       * Identity delegation history of an authenticated service account that makes
+       * the request. It contains information on the real authorities that try to
+       * access GCP resources by delegating on a service account. When multiple
+       * authorities present, they are guaranteed to be sorted based on the original
+       * ordering of the identity delegation events.
+       * 
+ * + * repeated .google.events.cloud.audit.v1.ServiceAccountDelegationInfo service_account_delegation_info = 6; + */ + public google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo getServiceAccountDelegationInfo(int index) { + if (serviceAccountDelegationInfoBuilder_ == null) { + return serviceAccountDelegationInfo_.get(index); + } else { + return serviceAccountDelegationInfoBuilder_.getMessage(index); + } + } + /** + *
+       * Identity delegation history of an authenticated service account that makes
+       * the request. It contains information on the real authorities that try to
+       * access GCP resources by delegating on a service account. When multiple
+       * authorities present, they are guaranteed to be sorted based on the original
+       * ordering of the identity delegation events.
+       * 
+ * + * repeated .google.events.cloud.audit.v1.ServiceAccountDelegationInfo service_account_delegation_info = 6; + */ + public Builder setServiceAccountDelegationInfo( + int index, google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo value) { + if (serviceAccountDelegationInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureServiceAccountDelegationInfoIsMutable(); + serviceAccountDelegationInfo_.set(index, value); + onChanged(); + } else { + serviceAccountDelegationInfoBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Identity delegation history of an authenticated service account that makes
+       * the request. It contains information on the real authorities that try to
+       * access GCP resources by delegating on a service account. When multiple
+       * authorities present, they are guaranteed to be sorted based on the original
+       * ordering of the identity delegation events.
+       * 
+ * + * repeated .google.events.cloud.audit.v1.ServiceAccountDelegationInfo service_account_delegation_info = 6; + */ + public Builder setServiceAccountDelegationInfo( + int index, google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.Builder builderForValue) { + if (serviceAccountDelegationInfoBuilder_ == null) { + ensureServiceAccountDelegationInfoIsMutable(); + serviceAccountDelegationInfo_.set(index, builderForValue.build()); + onChanged(); + } else { + serviceAccountDelegationInfoBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Identity delegation history of an authenticated service account that makes
+       * the request. It contains information on the real authorities that try to
+       * access GCP resources by delegating on a service account. When multiple
+       * authorities present, they are guaranteed to be sorted based on the original
+       * ordering of the identity delegation events.
+       * 
+ * + * repeated .google.events.cloud.audit.v1.ServiceAccountDelegationInfo service_account_delegation_info = 6; + */ + public Builder addServiceAccountDelegationInfo(google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo value) { + if (serviceAccountDelegationInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureServiceAccountDelegationInfoIsMutable(); + serviceAccountDelegationInfo_.add(value); + onChanged(); + } else { + serviceAccountDelegationInfoBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Identity delegation history of an authenticated service account that makes
+       * the request. It contains information on the real authorities that try to
+       * access GCP resources by delegating on a service account. When multiple
+       * authorities present, they are guaranteed to be sorted based on the original
+       * ordering of the identity delegation events.
+       * 
+ * + * repeated .google.events.cloud.audit.v1.ServiceAccountDelegationInfo service_account_delegation_info = 6; + */ + public Builder addServiceAccountDelegationInfo( + int index, google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo value) { + if (serviceAccountDelegationInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureServiceAccountDelegationInfoIsMutable(); + serviceAccountDelegationInfo_.add(index, value); + onChanged(); + } else { + serviceAccountDelegationInfoBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Identity delegation history of an authenticated service account that makes
+       * the request. It contains information on the real authorities that try to
+       * access GCP resources by delegating on a service account. When multiple
+       * authorities present, they are guaranteed to be sorted based on the original
+       * ordering of the identity delegation events.
+       * 
+ * + * repeated .google.events.cloud.audit.v1.ServiceAccountDelegationInfo service_account_delegation_info = 6; + */ + public Builder addServiceAccountDelegationInfo( + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.Builder builderForValue) { + if (serviceAccountDelegationInfoBuilder_ == null) { + ensureServiceAccountDelegationInfoIsMutable(); + serviceAccountDelegationInfo_.add(builderForValue.build()); + onChanged(); + } else { + serviceAccountDelegationInfoBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Identity delegation history of an authenticated service account that makes
+       * the request. It contains information on the real authorities that try to
+       * access GCP resources by delegating on a service account. When multiple
+       * authorities present, they are guaranteed to be sorted based on the original
+       * ordering of the identity delegation events.
+       * 
+ * + * repeated .google.events.cloud.audit.v1.ServiceAccountDelegationInfo service_account_delegation_info = 6; + */ + public Builder addServiceAccountDelegationInfo( + int index, google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.Builder builderForValue) { + if (serviceAccountDelegationInfoBuilder_ == null) { + ensureServiceAccountDelegationInfoIsMutable(); + serviceAccountDelegationInfo_.add(index, builderForValue.build()); + onChanged(); + } else { + serviceAccountDelegationInfoBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Identity delegation history of an authenticated service account that makes
+       * the request. It contains information on the real authorities that try to
+       * access GCP resources by delegating on a service account. When multiple
+       * authorities present, they are guaranteed to be sorted based on the original
+       * ordering of the identity delegation events.
+       * 
+ * + * repeated .google.events.cloud.audit.v1.ServiceAccountDelegationInfo service_account_delegation_info = 6; + */ + public Builder addAllServiceAccountDelegationInfo( + java.lang.Iterable values) { + if (serviceAccountDelegationInfoBuilder_ == null) { + ensureServiceAccountDelegationInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, serviceAccountDelegationInfo_); + onChanged(); + } else { + serviceAccountDelegationInfoBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Identity delegation history of an authenticated service account that makes
+       * the request. It contains information on the real authorities that try to
+       * access GCP resources by delegating on a service account. When multiple
+       * authorities present, they are guaranteed to be sorted based on the original
+       * ordering of the identity delegation events.
+       * 
+ * + * repeated .google.events.cloud.audit.v1.ServiceAccountDelegationInfo service_account_delegation_info = 6; + */ + public Builder clearServiceAccountDelegationInfo() { + if (serviceAccountDelegationInfoBuilder_ == null) { + serviceAccountDelegationInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + serviceAccountDelegationInfoBuilder_.clear(); + } + return this; + } + /** + *
+       * Identity delegation history of an authenticated service account that makes
+       * the request. It contains information on the real authorities that try to
+       * access GCP resources by delegating on a service account. When multiple
+       * authorities present, they are guaranteed to be sorted based on the original
+       * ordering of the identity delegation events.
+       * 
+ * + * repeated .google.events.cloud.audit.v1.ServiceAccountDelegationInfo service_account_delegation_info = 6; + */ + public Builder removeServiceAccountDelegationInfo(int index) { + if (serviceAccountDelegationInfoBuilder_ == null) { + ensureServiceAccountDelegationInfoIsMutable(); + serviceAccountDelegationInfo_.remove(index); + onChanged(); + } else { + serviceAccountDelegationInfoBuilder_.remove(index); + } + return this; + } + /** + *
+       * Identity delegation history of an authenticated service account that makes
+       * the request. It contains information on the real authorities that try to
+       * access GCP resources by delegating on a service account. When multiple
+       * authorities present, they are guaranteed to be sorted based on the original
+       * ordering of the identity delegation events.
+       * 
+ * + * repeated .google.events.cloud.audit.v1.ServiceAccountDelegationInfo service_account_delegation_info = 6; + */ + public google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.Builder getServiceAccountDelegationInfoBuilder( + int index) { + return getServiceAccountDelegationInfoFieldBuilder().getBuilder(index); + } + /** + *
+       * Identity delegation history of an authenticated service account that makes
+       * the request. It contains information on the real authorities that try to
+       * access GCP resources by delegating on a service account. When multiple
+       * authorities present, they are guaranteed to be sorted based on the original
+       * ordering of the identity delegation events.
+       * 
+ * + * repeated .google.events.cloud.audit.v1.ServiceAccountDelegationInfo service_account_delegation_info = 6; + */ + public google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfoOrBuilder getServiceAccountDelegationInfoOrBuilder( + int index) { + if (serviceAccountDelegationInfoBuilder_ == null) { + return serviceAccountDelegationInfo_.get(index); } else { + return serviceAccountDelegationInfoBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Identity delegation history of an authenticated service account that makes
+       * the request. It contains information on the real authorities that try to
+       * access GCP resources by delegating on a service account. When multiple
+       * authorities present, they are guaranteed to be sorted based on the original
+       * ordering of the identity delegation events.
+       * 
+ * + * repeated .google.events.cloud.audit.v1.ServiceAccountDelegationInfo service_account_delegation_info = 6; + */ + public java.util.List + getServiceAccountDelegationInfoOrBuilderList() { + if (serviceAccountDelegationInfoBuilder_ != null) { + return serviceAccountDelegationInfoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(serviceAccountDelegationInfo_); + } + } + /** + *
+       * Identity delegation history of an authenticated service account that makes
+       * the request. It contains information on the real authorities that try to
+       * access GCP resources by delegating on a service account. When multiple
+       * authorities present, they are guaranteed to be sorted based on the original
+       * ordering of the identity delegation events.
+       * 
+ * + * repeated .google.events.cloud.audit.v1.ServiceAccountDelegationInfo service_account_delegation_info = 6; + */ + public google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.Builder addServiceAccountDelegationInfoBuilder() { + return getServiceAccountDelegationInfoFieldBuilder().addBuilder( + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.getDefaultInstance()); + } + /** + *
+       * Identity delegation history of an authenticated service account that makes
+       * the request. It contains information on the real authorities that try to
+       * access GCP resources by delegating on a service account. When multiple
+       * authorities present, they are guaranteed to be sorted based on the original
+       * ordering of the identity delegation events.
+       * 
+ * + * repeated .google.events.cloud.audit.v1.ServiceAccountDelegationInfo service_account_delegation_info = 6; + */ + public google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.Builder addServiceAccountDelegationInfoBuilder( + int index) { + return getServiceAccountDelegationInfoFieldBuilder().addBuilder( + index, google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.getDefaultInstance()); + } + /** + *
+       * Identity delegation history of an authenticated service account that makes
+       * the request. It contains information on the real authorities that try to
+       * access GCP resources by delegating on a service account. When multiple
+       * authorities present, they are guaranteed to be sorted based on the original
+       * ordering of the identity delegation events.
+       * 
+ * + * repeated .google.events.cloud.audit.v1.ServiceAccountDelegationInfo service_account_delegation_info = 6; + */ + public java.util.List + getServiceAccountDelegationInfoBuilderList() { + return getServiceAccountDelegationInfoFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo, google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.Builder, google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfoOrBuilder> + getServiceAccountDelegationInfoFieldBuilder() { + if (serviceAccountDelegationInfoBuilder_ == null) { + serviceAccountDelegationInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo, google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.Builder, google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfoOrBuilder>( + serviceAccountDelegationInfo_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + serviceAccountDelegationInfo_ = null; + } + return serviceAccountDelegationInfoBuilder_; + } + + private java.lang.Object principalSubject_ = ""; + /** + *
+       * String representation of identity of requesting party.
+       * Populated for both first and third party identities.
+       * 
+ * + * string principal_subject = 8; + * @return The principalSubject. + */ + public java.lang.String getPrincipalSubject() { + java.lang.Object ref = principalSubject_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + principalSubject_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * String representation of identity of requesting party.
+       * Populated for both first and third party identities.
+       * 
+ * + * string principal_subject = 8; + * @return The bytes for principalSubject. + */ + public com.google.protobuf.ByteString + getPrincipalSubjectBytes() { + java.lang.Object ref = principalSubject_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + principalSubject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * String representation of identity of requesting party.
+       * Populated for both first and third party identities.
+       * 
+ * + * string principal_subject = 8; + * @param value The principalSubject to set. + * @return This builder for chaining. + */ + public Builder setPrincipalSubject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + principalSubject_ = value; + onChanged(); + return this; + } + /** + *
+       * String representation of identity of requesting party.
+       * Populated for both first and third party identities.
+       * 
+ * + * string principal_subject = 8; + * @return This builder for chaining. + */ + public Builder clearPrincipalSubject() { + + principalSubject_ = getDefaultInstance().getPrincipalSubject(); + onChanged(); + return this; + } + /** + *
+       * String representation of identity of requesting party.
+       * Populated for both first and third party identities.
+       * 
+ * + * string principal_subject = 8; + * @param value The bytes for principalSubject to set. + * @return This builder for chaining. + */ + public Builder setPrincipalSubjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + principalSubject_ = 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 + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthenticationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthenticationInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public google.events.cloud.audit.v1.Data.AuthenticationInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AuthorizationInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.cloud.audit.v1.AuthorizationInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The resource being accessed, as a REST-style string. For example:
+     *     bigquery.googleapis.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.googleapis.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(); + + /** + *
+     * Resource attributes used in IAM condition evaluation. This field contains
+     * resource attributes like resource type and resource name.
+     * To get the whole view of the attributes used in IAM
+     * condition evaluation, the user must also look into
+     * `AuditLogData.request_metadata.request_attributes`.
+     * 
+ * + * .google.rpc.context.AttributeContext.Resource resource_attributes = 5; + * @return Whether the resourceAttributes field is set. + */ + boolean hasResourceAttributes(); + /** + *
+     * Resource attributes used in IAM condition evaluation. This field contains
+     * resource attributes like resource type and resource name.
+     * To get the whole view of the attributes used in IAM
+     * condition evaluation, the user must also look into
+     * `AuditLogData.request_metadata.request_attributes`.
+     * 
+ * + * .google.rpc.context.AttributeContext.Resource resource_attributes = 5; + * @return The resourceAttributes. + */ + com.google.rpc.context.AttributeContext.Resource getResourceAttributes(); + /** + *
+     * Resource attributes used in IAM condition evaluation. This field contains
+     * resource attributes like resource type and resource name.
+     * To get the whole view of the attributes used in IAM
+     * condition evaluation, the user must also look into
+     * `AuditLogData.request_metadata.request_attributes`.
+     * 
+ * + * .google.rpc.context.AttributeContext.Resource resource_attributes = 5; + */ + com.google.rpc.context.AttributeContext.ResourceOrBuilder getResourceAttributesOrBuilder(); + } + /** + *
+   * 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; + } + case 42: { + com.google.rpc.context.AttributeContext.Resource.Builder subBuilder = null; + if (resourceAttributes_ != null) { + subBuilder = resourceAttributes_.toBuilder(); + } + resourceAttributes_ = input.readMessage(com.google.rpc.context.AttributeContext.Resource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resourceAttributes_); + resourceAttributes_ = subBuilder.buildPartial(); + } + + 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.googleapis.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.googleapis.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_; + } + + public static final int RESOURCE_ATTRIBUTES_FIELD_NUMBER = 5; + private com.google.rpc.context.AttributeContext.Resource resourceAttributes_; + /** + *
+     * Resource attributes used in IAM condition evaluation. This field contains
+     * resource attributes like resource type and resource name.
+     * To get the whole view of the attributes used in IAM
+     * condition evaluation, the user must also look into
+     * `AuditLogData.request_metadata.request_attributes`.
+     * 
+ * + * .google.rpc.context.AttributeContext.Resource resource_attributes = 5; + * @return Whether the resourceAttributes field is set. + */ + @java.lang.Override + public boolean hasResourceAttributes() { + return resourceAttributes_ != null; + } + /** + *
+     * Resource attributes used in IAM condition evaluation. This field contains
+     * resource attributes like resource type and resource name.
+     * To get the whole view of the attributes used in IAM
+     * condition evaluation, the user must also look into
+     * `AuditLogData.request_metadata.request_attributes`.
+     * 
+ * + * .google.rpc.context.AttributeContext.Resource resource_attributes = 5; + * @return The resourceAttributes. + */ + @java.lang.Override + public com.google.rpc.context.AttributeContext.Resource getResourceAttributes() { + return resourceAttributes_ == null ? com.google.rpc.context.AttributeContext.Resource.getDefaultInstance() : resourceAttributes_; + } + /** + *
+     * Resource attributes used in IAM condition evaluation. This field contains
+     * resource attributes like resource type and resource name.
+     * To get the whole view of the attributes used in IAM
+     * condition evaluation, the user must also look into
+     * `AuditLogData.request_metadata.request_attributes`.
+     * 
+ * + * .google.rpc.context.AttributeContext.Resource resource_attributes = 5; + */ + @java.lang.Override + public com.google.rpc.context.AttributeContext.ResourceOrBuilder getResourceAttributesOrBuilder() { + return getResourceAttributes(); + } + + 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_); + } + if (resourceAttributes_ != null) { + output.writeMessage(5, getResourceAttributes()); + } + 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_); + } + if (resourceAttributes_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getResourceAttributes()); + } + 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 (hasResourceAttributes() != other.hasResourceAttributes()) return false; + if (hasResourceAttributes()) { + if (!getResourceAttributes() + .equals(other.getResourceAttributes())) 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()); + if (hasResourceAttributes()) { + hash = (37 * hash) + RESOURCE_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getResourceAttributes().hashCode(); + } + 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 implements + // @@protoc_insertion_point(builder_implements:google.events.cloud.audit.v1.AuthorizationInfo) + google.events.cloud.audit.v1.Data.AuthorizationInfoOrBuilder { + 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); + } + + // Construct using google.events.cloud.audit.v1.Data.AuthorizationInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + resource_ = ""; + + permission_ = ""; + + granted_ = false; + + if (resourceAttributesBuilder_ == null) { + resourceAttributes_ = null; + } else { + resourceAttributes_ = null; + resourceAttributesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.events.cloud.audit.v1.Data.internal_static_google_events_cloud_audit_v1_AuthorizationInfo_descriptor; + } + + @java.lang.Override + public google.events.cloud.audit.v1.Data.AuthorizationInfo getDefaultInstanceForType() { + return google.events.cloud.audit.v1.Data.AuthorizationInfo.getDefaultInstance(); + } + + @java.lang.Override + public google.events.cloud.audit.v1.Data.AuthorizationInfo build() { + google.events.cloud.audit.v1.Data.AuthorizationInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public google.events.cloud.audit.v1.Data.AuthorizationInfo buildPartial() { + google.events.cloud.audit.v1.Data.AuthorizationInfo result = new google.events.cloud.audit.v1.Data.AuthorizationInfo(this); + result.resource_ = resource_; + result.permission_ = permission_; + result.granted_ = granted_; + if (resourceAttributesBuilder_ == null) { + result.resourceAttributes_ = resourceAttributes_; + } else { + result.resourceAttributes_ = resourceAttributesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.events.cloud.audit.v1.Data.AuthorizationInfo) { + return mergeFrom((google.events.cloud.audit.v1.Data.AuthorizationInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(google.events.cloud.audit.v1.Data.AuthorizationInfo other) { + if (other == google.events.cloud.audit.v1.Data.AuthorizationInfo.getDefaultInstance()) return this; + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + onChanged(); + } + if (!other.getPermission().isEmpty()) { + permission_ = other.permission_; + onChanged(); + } + if (other.getGranted() != false) { + setGranted(other.getGranted()); + } + if (other.hasResourceAttributes()) { + mergeResourceAttributes(other.getResourceAttributes()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.events.cloud.audit.v1.Data.AuthorizationInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.events.cloud.audit.v1.Data.AuthorizationInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object resource_ = ""; + /** + *
+       * The resource being accessed, as a REST-style string. For example:
+       *     bigquery.googleapis.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.googleapis.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.googleapis.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.googleapis.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.googleapis.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; + } + + private com.google.rpc.context.AttributeContext.Resource resourceAttributes_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.context.AttributeContext.Resource, com.google.rpc.context.AttributeContext.Resource.Builder, com.google.rpc.context.AttributeContext.ResourceOrBuilder> resourceAttributesBuilder_; + /** + *
+       * Resource attributes used in IAM condition evaluation. This field contains
+       * resource attributes like resource type and resource name.
+       * To get the whole view of the attributes used in IAM
+       * condition evaluation, the user must also look into
+       * `AuditLogData.request_metadata.request_attributes`.
+       * 
+ * + * .google.rpc.context.AttributeContext.Resource resource_attributes = 5; + * @return Whether the resourceAttributes field is set. + */ + public boolean hasResourceAttributes() { + return resourceAttributesBuilder_ != null || resourceAttributes_ != null; + } + /** + *
+       * Resource attributes used in IAM condition evaluation. This field contains
+       * resource attributes like resource type and resource name.
+       * To get the whole view of the attributes used in IAM
+       * condition evaluation, the user must also look into
+       * `AuditLogData.request_metadata.request_attributes`.
+       * 
+ * + * .google.rpc.context.AttributeContext.Resource resource_attributes = 5; + * @return The resourceAttributes. + */ + public com.google.rpc.context.AttributeContext.Resource getResourceAttributes() { + if (resourceAttributesBuilder_ == null) { + return resourceAttributes_ == null ? com.google.rpc.context.AttributeContext.Resource.getDefaultInstance() : resourceAttributes_; + } else { + return resourceAttributesBuilder_.getMessage(); + } + } + /** + *
+       * Resource attributes used in IAM condition evaluation. This field contains
+       * resource attributes like resource type and resource name.
+       * To get the whole view of the attributes used in IAM
+       * condition evaluation, the user must also look into
+       * `AuditLogData.request_metadata.request_attributes`.
+       * 
+ * + * .google.rpc.context.AttributeContext.Resource resource_attributes = 5; + */ + public Builder setResourceAttributes(com.google.rpc.context.AttributeContext.Resource value) { + if (resourceAttributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resourceAttributes_ = value; + onChanged(); + } else { + resourceAttributesBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Resource attributes used in IAM condition evaluation. This field contains
+       * resource attributes like resource type and resource name.
+       * To get the whole view of the attributes used in IAM
+       * condition evaluation, the user must also look into
+       * `AuditLogData.request_metadata.request_attributes`.
+       * 
+ * + * .google.rpc.context.AttributeContext.Resource resource_attributes = 5; + */ + public Builder setResourceAttributes( + com.google.rpc.context.AttributeContext.Resource.Builder builderForValue) { + if (resourceAttributesBuilder_ == null) { + resourceAttributes_ = builderForValue.build(); + onChanged(); + } else { + resourceAttributesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Resource attributes used in IAM condition evaluation. This field contains
+       * resource attributes like resource type and resource name.
+       * To get the whole view of the attributes used in IAM
+       * condition evaluation, the user must also look into
+       * `AuditLogData.request_metadata.request_attributes`.
+       * 
+ * + * .google.rpc.context.AttributeContext.Resource resource_attributes = 5; + */ + public Builder mergeResourceAttributes(com.google.rpc.context.AttributeContext.Resource value) { + if (resourceAttributesBuilder_ == null) { + if (resourceAttributes_ != null) { + resourceAttributes_ = + com.google.rpc.context.AttributeContext.Resource.newBuilder(resourceAttributes_).mergeFrom(value).buildPartial(); + } else { + resourceAttributes_ = value; + } + onChanged(); + } else { + resourceAttributesBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Resource attributes used in IAM condition evaluation. This field contains
+       * resource attributes like resource type and resource name.
+       * To get the whole view of the attributes used in IAM
+       * condition evaluation, the user must also look into
+       * `AuditLogData.request_metadata.request_attributes`.
+       * 
+ * + * .google.rpc.context.AttributeContext.Resource resource_attributes = 5; + */ + public Builder clearResourceAttributes() { + if (resourceAttributesBuilder_ == null) { + resourceAttributes_ = null; + onChanged(); + } else { + resourceAttributes_ = null; + resourceAttributesBuilder_ = null; + } + + return this; + } + /** + *
+       * Resource attributes used in IAM condition evaluation. This field contains
+       * resource attributes like resource type and resource name.
+       * To get the whole view of the attributes used in IAM
+       * condition evaluation, the user must also look into
+       * `AuditLogData.request_metadata.request_attributes`.
+       * 
+ * + * .google.rpc.context.AttributeContext.Resource resource_attributes = 5; + */ + public com.google.rpc.context.AttributeContext.Resource.Builder getResourceAttributesBuilder() { + + onChanged(); + return getResourceAttributesFieldBuilder().getBuilder(); + } + /** + *
+       * Resource attributes used in IAM condition evaluation. This field contains
+       * resource attributes like resource type and resource name.
+       * To get the whole view of the attributes used in IAM
+       * condition evaluation, the user must also look into
+       * `AuditLogData.request_metadata.request_attributes`.
+       * 
+ * + * .google.rpc.context.AttributeContext.Resource resource_attributes = 5; + */ + public com.google.rpc.context.AttributeContext.ResourceOrBuilder getResourceAttributesOrBuilder() { + if (resourceAttributesBuilder_ != null) { + return resourceAttributesBuilder_.getMessageOrBuilder(); + } else { + return resourceAttributes_ == null ? + com.google.rpc.context.AttributeContext.Resource.getDefaultInstance() : resourceAttributes_; + } + } + /** + *
+       * Resource attributes used in IAM condition evaluation. This field contains
+       * resource attributes like resource type and resource name.
+       * To get the whole view of the attributes used in IAM
+       * condition evaluation, the user must also look into
+       * `AuditLogData.request_metadata.request_attributes`.
+       * 
+ * + * .google.rpc.context.AttributeContext.Resource resource_attributes = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.context.AttributeContext.Resource, com.google.rpc.context.AttributeContext.Resource.Builder, com.google.rpc.context.AttributeContext.ResourceOrBuilder> + getResourceAttributesFieldBuilder() { + if (resourceAttributesBuilder_ == null) { + resourceAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.context.AttributeContext.Resource, com.google.rpc.context.AttributeContext.Resource.Builder, com.google.rpc.context.AttributeContext.ResourceOrBuilder>( + getResourceAttributes(), + getParentForChildren(), + isClean()); + resourceAttributes_ = null; + } + return resourceAttributesBuilder_; + } + @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 + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthorizationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthorizationInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public google.events.cloud.audit.v1.Data.AuthorizationInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RequestMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.cloud.audit.v1.RequestMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The IP address of the caller.
+     * For caller from internet, this will be public IPv4 or IPv6 address.
+     * For caller from a Compute Engine VM with external IP address, this
+     * will be the VM's external IP address. For caller from a Compute
+     * Engine VM without external IP address, if the VM is in the same
+     * organization (or project) as the accessed resource, `caller_ip` will
+     * be the VM's internal IPv4 address, otherwise the `caller_ip` will be
+     * redacted to "gce-internal-ip".
+     * See https://cloud.google.com/compute/docs/vpc/ for more information.
+     * 
+ * + * string caller_ip = 1; + * @return The callerIp. + */ + java.lang.String getCallerIp(); + /** + *
+     * The IP address of the caller.
+     * For caller from internet, this will be public IPv4 or IPv6 address.
+     * For caller from a Compute Engine VM with external IP address, this
+     * will be the VM's external IP address. For caller from a Compute
+     * Engine VM without external IP address, if the VM is in the same
+     * organization (or project) as the accessed resource, `caller_ip` will
+     * be the VM's internal IPv4 address, otherwise the `caller_ip` will be
+     * redacted to "gce-internal-ip".
+     * See https://cloud.google.com/compute/docs/vpc/ for more information.
+     * 
+ * + * 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(); + + /** + *
+     * The network of the caller.
+     * Set only if the network host project is part of the same GCP organization
+     * (or project) as the accessed resource.
+     * See https://cloud.google.com/compute/docs/vpc/ for more information.
+     * This is a scheme-less URI full resource name. For example:
+     *     "//compute.googleapis.com/projects/PROJECT_ID/global/networks/NETWORK_ID"
+     * 
+ * + * string caller_network = 3; + * @return The callerNetwork. + */ + java.lang.String getCallerNetwork(); + /** + *
+     * The network of the caller.
+     * Set only if the network host project is part of the same GCP organization
+     * (or project) as the accessed resource.
+     * See https://cloud.google.com/compute/docs/vpc/ for more information.
+     * This is a scheme-less URI full resource name. For example:
+     *     "//compute.googleapis.com/projects/PROJECT_ID/global/networks/NETWORK_ID"
+     * 
+ * + * string caller_network = 3; + * @return The bytes for callerNetwork. + */ + com.google.protobuf.ByteString + getCallerNetworkBytes(); + + /** + *
+     * Request attributes used in IAM condition evaluation. This field contains
+     * request attributes like request time and access levels associated with
+     * the request.
+     * To get the whole view of the attributes used in IAM
+     * condition evaluation, the user must also look into
+     * `AuditLog.authentication_info.resource_attributes`.
+     * 
+ * + * .google.rpc.context.AttributeContext.Request request_attributes = 7; + * @return Whether the requestAttributes field is set. + */ + boolean hasRequestAttributes(); + /** + *
+     * Request attributes used in IAM condition evaluation. This field contains
+     * request attributes like request time and access levels associated with
+     * the request.
+     * To get the whole view of the attributes used in IAM
+     * condition evaluation, the user must also look into
+     * `AuditLog.authentication_info.resource_attributes`.
+     * 
+ * + * .google.rpc.context.AttributeContext.Request request_attributes = 7; + * @return The requestAttributes. + */ + com.google.rpc.context.AttributeContext.Request getRequestAttributes(); + /** + *
+     * Request attributes used in IAM condition evaluation. This field contains
+     * request attributes like request time and access levels associated with
+     * the request.
+     * To get the whole view of the attributes used in IAM
+     * condition evaluation, the user must also look into
+     * `AuditLog.authentication_info.resource_attributes`.
+     * 
+ * + * .google.rpc.context.AttributeContext.Request request_attributes = 7; + */ + com.google.rpc.context.AttributeContext.RequestOrBuilder getRequestAttributesOrBuilder(); + + /** + *
+     * The destination of a network activity, such as accepting a TCP connection.
+     * In a multi hop network activity, the destination represents the receiver of
+     * the last hop. Only two fields are used in this message, Peer.port and
+     * Peer.ip. These fields are optionally populated by those services utilizing
+     * the IAM condition feature.
+     * 
+ * + * .google.rpc.context.AttributeContext.Peer destination_attributes = 8; + * @return Whether the destinationAttributes field is set. + */ + boolean hasDestinationAttributes(); + /** + *
+     * The destination of a network activity, such as accepting a TCP connection.
+     * In a multi hop network activity, the destination represents the receiver of
+     * the last hop. Only two fields are used in this message, Peer.port and
+     * Peer.ip. These fields are optionally populated by those services utilizing
+     * the IAM condition feature.
+     * 
+ * + * .google.rpc.context.AttributeContext.Peer destination_attributes = 8; + * @return The destinationAttributes. + */ + com.google.rpc.context.AttributeContext.Peer getDestinationAttributes(); + /** + *
+     * The destination of a network activity, such as accepting a TCP connection.
+     * In a multi hop network activity, the destination represents the receiver of
+     * the last hop. Only two fields are used in this message, Peer.port and
+     * Peer.ip. These fields are optionally populated by those services utilizing
+     * the IAM condition feature.
+     * 
+ * + * .google.rpc.context.AttributeContext.Peer destination_attributes = 8; + */ + com.google.rpc.context.AttributeContext.PeerOrBuilder getDestinationAttributesOrBuilder(); + } + /** + *
+   * 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_ = ""; + callerNetwork_ = ""; + } + + @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; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + callerNetwork_ = s; + break; + } + case 58: { + com.google.rpc.context.AttributeContext.Request.Builder subBuilder = null; + if (requestAttributes_ != null) { + subBuilder = requestAttributes_.toBuilder(); + } + requestAttributes_ = input.readMessage(com.google.rpc.context.AttributeContext.Request.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(requestAttributes_); + requestAttributes_ = subBuilder.buildPartial(); + } + + break; + } + case 66: { + com.google.rpc.context.AttributeContext.Peer.Builder subBuilder = null; + if (destinationAttributes_ != null) { + subBuilder = destinationAttributes_.toBuilder(); + } + destinationAttributes_ = input.readMessage(com.google.rpc.context.AttributeContext.Peer.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(destinationAttributes_); + destinationAttributes_ = subBuilder.buildPartial(); + } + + 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.
+     * For caller from internet, this will be public IPv4 or IPv6 address.
+     * For caller from a Compute Engine VM with external IP address, this
+     * will be the VM's external IP address. For caller from a Compute
+     * Engine VM without external IP address, if the VM is in the same
+     * organization (or project) as the accessed resource, `caller_ip` will
+     * be the VM's internal IPv4 address, otherwise the `caller_ip` will be
+     * redacted to "gce-internal-ip".
+     * See https://cloud.google.com/compute/docs/vpc/ for more information.
+     * 
+ * + * 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.
+     * For caller from internet, this will be public IPv4 or IPv6 address.
+     * For caller from a Compute Engine VM with external IP address, this
+     * will be the VM's external IP address. For caller from a Compute
+     * Engine VM without external IP address, if the VM is in the same
+     * organization (or project) as the accessed resource, `caller_ip` will
+     * be the VM's internal IPv4 address, otherwise the `caller_ip` will be
+     * redacted to "gce-internal-ip".
+     * See https://cloud.google.com/compute/docs/vpc/ for more information.
+     * 
+ * + * 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; + } + } + + public static final int CALLER_NETWORK_FIELD_NUMBER = 3; + private volatile java.lang.Object callerNetwork_; + /** + *
+     * The network of the caller.
+     * Set only if the network host project is part of the same GCP organization
+     * (or project) as the accessed resource.
+     * See https://cloud.google.com/compute/docs/vpc/ for more information.
+     * This is a scheme-less URI full resource name. For example:
+     *     "//compute.googleapis.com/projects/PROJECT_ID/global/networks/NETWORK_ID"
+     * 
+ * + * string caller_network = 3; + * @return The callerNetwork. + */ + @java.lang.Override + public java.lang.String getCallerNetwork() { + java.lang.Object ref = callerNetwork_; + 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(); + callerNetwork_ = s; + return s; + } + } + /** + *
+     * The network of the caller.
+     * Set only if the network host project is part of the same GCP organization
+     * (or project) as the accessed resource.
+     * See https://cloud.google.com/compute/docs/vpc/ for more information.
+     * This is a scheme-less URI full resource name. For example:
+     *     "//compute.googleapis.com/projects/PROJECT_ID/global/networks/NETWORK_ID"
+     * 
+ * + * string caller_network = 3; + * @return The bytes for callerNetwork. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCallerNetworkBytes() { + java.lang.Object ref = callerNetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + callerNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ATTRIBUTES_FIELD_NUMBER = 7; + private com.google.rpc.context.AttributeContext.Request requestAttributes_; + /** + *
+     * Request attributes used in IAM condition evaluation. This field contains
+     * request attributes like request time and access levels associated with
+     * the request.
+     * To get the whole view of the attributes used in IAM
+     * condition evaluation, the user must also look into
+     * `AuditLog.authentication_info.resource_attributes`.
+     * 
+ * + * .google.rpc.context.AttributeContext.Request request_attributes = 7; + * @return Whether the requestAttributes field is set. + */ + @java.lang.Override + public boolean hasRequestAttributes() { + return requestAttributes_ != null; + } + /** + *
+     * Request attributes used in IAM condition evaluation. This field contains
+     * request attributes like request time and access levels associated with
+     * the request.
+     * To get the whole view of the attributes used in IAM
+     * condition evaluation, the user must also look into
+     * `AuditLog.authentication_info.resource_attributes`.
+     * 
+ * + * .google.rpc.context.AttributeContext.Request request_attributes = 7; + * @return The requestAttributes. + */ + @java.lang.Override + public com.google.rpc.context.AttributeContext.Request getRequestAttributes() { + return requestAttributes_ == null ? com.google.rpc.context.AttributeContext.Request.getDefaultInstance() : requestAttributes_; + } + /** + *
+     * Request attributes used in IAM condition evaluation. This field contains
+     * request attributes like request time and access levels associated with
+     * the request.
+     * To get the whole view of the attributes used in IAM
+     * condition evaluation, the user must also look into
+     * `AuditLog.authentication_info.resource_attributes`.
+     * 
+ * + * .google.rpc.context.AttributeContext.Request request_attributes = 7; + */ + @java.lang.Override + public com.google.rpc.context.AttributeContext.RequestOrBuilder getRequestAttributesOrBuilder() { + return getRequestAttributes(); + } + + public static final int DESTINATION_ATTRIBUTES_FIELD_NUMBER = 8; + private com.google.rpc.context.AttributeContext.Peer destinationAttributes_; + /** + *
+     * The destination of a network activity, such as accepting a TCP connection.
+     * In a multi hop network activity, the destination represents the receiver of
+     * the last hop. Only two fields are used in this message, Peer.port and
+     * Peer.ip. These fields are optionally populated by those services utilizing
+     * the IAM condition feature.
+     * 
+ * + * .google.rpc.context.AttributeContext.Peer destination_attributes = 8; + * @return Whether the destinationAttributes field is set. + */ + @java.lang.Override + public boolean hasDestinationAttributes() { + return destinationAttributes_ != null; + } + /** + *
+     * The destination of a network activity, such as accepting a TCP connection.
+     * In a multi hop network activity, the destination represents the receiver of
+     * the last hop. Only two fields are used in this message, Peer.port and
+     * Peer.ip. These fields are optionally populated by those services utilizing
+     * the IAM condition feature.
+     * 
+ * + * .google.rpc.context.AttributeContext.Peer destination_attributes = 8; + * @return The destinationAttributes. + */ + @java.lang.Override + public com.google.rpc.context.AttributeContext.Peer getDestinationAttributes() { + return destinationAttributes_ == null ? com.google.rpc.context.AttributeContext.Peer.getDefaultInstance() : destinationAttributes_; + } + /** + *
+     * The destination of a network activity, such as accepting a TCP connection.
+     * In a multi hop network activity, the destination represents the receiver of
+     * the last hop. Only two fields are used in this message, Peer.port and
+     * Peer.ip. These fields are optionally populated by those services utilizing
+     * the IAM condition feature.
+     * 
+ * + * .google.rpc.context.AttributeContext.Peer destination_attributes = 8; + */ + @java.lang.Override + public com.google.rpc.context.AttributeContext.PeerOrBuilder getDestinationAttributesOrBuilder() { + return getDestinationAttributes(); + } + + 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_); + } + if (!getCallerNetworkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, callerNetwork_); + } + if (requestAttributes_ != null) { + output.writeMessage(7, getRequestAttributes()); + } + if (destinationAttributes_ != null) { + output.writeMessage(8, getDestinationAttributes()); + } + 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_); + } + if (!getCallerNetworkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, callerNetwork_); + } + if (requestAttributes_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getRequestAttributes()); + } + if (destinationAttributes_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getDestinationAttributes()); + } + 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 (!getCallerNetwork() + .equals(other.getCallerNetwork())) return false; + if (hasRequestAttributes() != other.hasRequestAttributes()) return false; + if (hasRequestAttributes()) { + if (!getRequestAttributes() + .equals(other.getRequestAttributes())) return false; + } + if (hasDestinationAttributes() != other.hasDestinationAttributes()) return false; + if (hasDestinationAttributes()) { + if (!getDestinationAttributes() + .equals(other.getDestinationAttributes())) 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 = (37 * hash) + CALLER_NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getCallerNetwork().hashCode(); + if (hasRequestAttributes()) { + hash = (37 * hash) + REQUEST_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getRequestAttributes().hashCode(); + } + if (hasDestinationAttributes()) { + hash = (37 * hash) + DESTINATION_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getDestinationAttributes().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 implements + // @@protoc_insertion_point(builder_implements:google.events.cloud.audit.v1.RequestMetadata) + google.events.cloud.audit.v1.Data.RequestMetadataOrBuilder { + 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); + } + + // Construct using google.events.cloud.audit.v1.Data.RequestMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + callerIp_ = ""; + + callerSuppliedUserAgent_ = ""; + + callerNetwork_ = ""; + + if (requestAttributesBuilder_ == null) { + requestAttributes_ = null; + } else { + requestAttributes_ = null; + requestAttributesBuilder_ = null; + } + if (destinationAttributesBuilder_ == null) { + destinationAttributes_ = null; + } else { + destinationAttributes_ = null; + destinationAttributesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.events.cloud.audit.v1.Data.internal_static_google_events_cloud_audit_v1_RequestMetadata_descriptor; + } + + @java.lang.Override + public google.events.cloud.audit.v1.Data.RequestMetadata getDefaultInstanceForType() { + return google.events.cloud.audit.v1.Data.RequestMetadata.getDefaultInstance(); + } + + @java.lang.Override + public google.events.cloud.audit.v1.Data.RequestMetadata build() { + google.events.cloud.audit.v1.Data.RequestMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public google.events.cloud.audit.v1.Data.RequestMetadata buildPartial() { + google.events.cloud.audit.v1.Data.RequestMetadata result = new google.events.cloud.audit.v1.Data.RequestMetadata(this); + result.callerIp_ = callerIp_; + result.callerSuppliedUserAgent_ = callerSuppliedUserAgent_; + result.callerNetwork_ = callerNetwork_; + if (requestAttributesBuilder_ == null) { + result.requestAttributes_ = requestAttributes_; + } else { + result.requestAttributes_ = requestAttributesBuilder_.build(); + } + if (destinationAttributesBuilder_ == null) { + result.destinationAttributes_ = destinationAttributes_; + } else { + result.destinationAttributes_ = destinationAttributesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.events.cloud.audit.v1.Data.RequestMetadata) { + return mergeFrom((google.events.cloud.audit.v1.Data.RequestMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(google.events.cloud.audit.v1.Data.RequestMetadata other) { + if (other == google.events.cloud.audit.v1.Data.RequestMetadata.getDefaultInstance()) return this; + if (!other.getCallerIp().isEmpty()) { + callerIp_ = other.callerIp_; + onChanged(); + } + if (!other.getCallerSuppliedUserAgent().isEmpty()) { + callerSuppliedUserAgent_ = other.callerSuppliedUserAgent_; + onChanged(); + } + if (!other.getCallerNetwork().isEmpty()) { + callerNetwork_ = other.callerNetwork_; + onChanged(); + } + if (other.hasRequestAttributes()) { + mergeRequestAttributes(other.getRequestAttributes()); + } + if (other.hasDestinationAttributes()) { + mergeDestinationAttributes(other.getDestinationAttributes()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.events.cloud.audit.v1.Data.RequestMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.events.cloud.audit.v1.Data.RequestMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object callerIp_ = ""; + /** + *
+       * The IP address of the caller.
+       * For caller from internet, this will be public IPv4 or IPv6 address.
+       * For caller from a Compute Engine VM with external IP address, this
+       * will be the VM's external IP address. For caller from a Compute
+       * Engine VM without external IP address, if the VM is in the same
+       * organization (or project) as the accessed resource, `caller_ip` will
+       * be the VM's internal IPv4 address, otherwise the `caller_ip` will be
+       * redacted to "gce-internal-ip".
+       * See https://cloud.google.com/compute/docs/vpc/ for more information.
+       * 
+ * + * 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.
+       * For caller from internet, this will be public IPv4 or IPv6 address.
+       * For caller from a Compute Engine VM with external IP address, this
+       * will be the VM's external IP address. For caller from a Compute
+       * Engine VM without external IP address, if the VM is in the same
+       * organization (or project) as the accessed resource, `caller_ip` will
+       * be the VM's internal IPv4 address, otherwise the `caller_ip` will be
+       * redacted to "gce-internal-ip".
+       * See https://cloud.google.com/compute/docs/vpc/ for more information.
+       * 
+ * + * 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.
+       * For caller from internet, this will be public IPv4 or IPv6 address.
+       * For caller from a Compute Engine VM with external IP address, this
+       * will be the VM's external IP address. For caller from a Compute
+       * Engine VM without external IP address, if the VM is in the same
+       * organization (or project) as the accessed resource, `caller_ip` will
+       * be the VM's internal IPv4 address, otherwise the `caller_ip` will be
+       * redacted to "gce-internal-ip".
+       * See https://cloud.google.com/compute/docs/vpc/ for more information.
+       * 
+ * + * 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.
+       * For caller from internet, this will be public IPv4 or IPv6 address.
+       * For caller from a Compute Engine VM with external IP address, this
+       * will be the VM's external IP address. For caller from a Compute
+       * Engine VM without external IP address, if the VM is in the same
+       * organization (or project) as the accessed resource, `caller_ip` will
+       * be the VM's internal IPv4 address, otherwise the `caller_ip` will be
+       * redacted to "gce-internal-ip".
+       * See https://cloud.google.com/compute/docs/vpc/ for more information.
+       * 
+ * + * string caller_ip = 1; + * @return This builder for chaining. + */ + public Builder clearCallerIp() { + + callerIp_ = getDefaultInstance().getCallerIp(); + onChanged(); + return this; + } + /** + *
+       * The IP address of the caller.
+       * For caller from internet, this will be public IPv4 or IPv6 address.
+       * For caller from a Compute Engine VM with external IP address, this
+       * will be the VM's external IP address. For caller from a Compute
+       * Engine VM without external IP address, if the VM is in the same
+       * organization (or project) as the accessed resource, `caller_ip` will
+       * be the VM's internal IPv4 address, otherwise the `caller_ip` will be
+       * redacted to "gce-internal-ip".
+       * See https://cloud.google.com/compute/docs/vpc/ for more information.
+       * 
+ * + * 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; + } + + private java.lang.Object callerNetwork_ = ""; + /** + *
+       * The network of the caller.
+       * Set only if the network host project is part of the same GCP organization
+       * (or project) as the accessed resource.
+       * See https://cloud.google.com/compute/docs/vpc/ for more information.
+       * This is a scheme-less URI full resource name. For example:
+       *     "//compute.googleapis.com/projects/PROJECT_ID/global/networks/NETWORK_ID"
+       * 
+ * + * string caller_network = 3; + * @return The callerNetwork. + */ + public java.lang.String getCallerNetwork() { + java.lang.Object ref = callerNetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + callerNetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The network of the caller.
+       * Set only if the network host project is part of the same GCP organization
+       * (or project) as the accessed resource.
+       * See https://cloud.google.com/compute/docs/vpc/ for more information.
+       * This is a scheme-less URI full resource name. For example:
+       *     "//compute.googleapis.com/projects/PROJECT_ID/global/networks/NETWORK_ID"
+       * 
+ * + * string caller_network = 3; + * @return The bytes for callerNetwork. + */ + public com.google.protobuf.ByteString + getCallerNetworkBytes() { + java.lang.Object ref = callerNetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + callerNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The network of the caller.
+       * Set only if the network host project is part of the same GCP organization
+       * (or project) as the accessed resource.
+       * See https://cloud.google.com/compute/docs/vpc/ for more information.
+       * This is a scheme-less URI full resource name. For example:
+       *     "//compute.googleapis.com/projects/PROJECT_ID/global/networks/NETWORK_ID"
+       * 
+ * + * string caller_network = 3; + * @param value The callerNetwork to set. + * @return This builder for chaining. + */ + public Builder setCallerNetwork( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + callerNetwork_ = value; + onChanged(); + return this; + } + /** + *
+       * The network of the caller.
+       * Set only if the network host project is part of the same GCP organization
+       * (or project) as the accessed resource.
+       * See https://cloud.google.com/compute/docs/vpc/ for more information.
+       * This is a scheme-less URI full resource name. For example:
+       *     "//compute.googleapis.com/projects/PROJECT_ID/global/networks/NETWORK_ID"
+       * 
+ * + * string caller_network = 3; + * @return This builder for chaining. + */ + public Builder clearCallerNetwork() { + + callerNetwork_ = getDefaultInstance().getCallerNetwork(); + onChanged(); + return this; + } + /** + *
+       * The network of the caller.
+       * Set only if the network host project is part of the same GCP organization
+       * (or project) as the accessed resource.
+       * See https://cloud.google.com/compute/docs/vpc/ for more information.
+       * This is a scheme-less URI full resource name. For example:
+       *     "//compute.googleapis.com/projects/PROJECT_ID/global/networks/NETWORK_ID"
+       * 
+ * + * string caller_network = 3; + * @param value The bytes for callerNetwork to set. + * @return This builder for chaining. + */ + public Builder setCallerNetworkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + callerNetwork_ = value; + onChanged(); + return this; + } + + private com.google.rpc.context.AttributeContext.Request requestAttributes_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.context.AttributeContext.Request, com.google.rpc.context.AttributeContext.Request.Builder, com.google.rpc.context.AttributeContext.RequestOrBuilder> requestAttributesBuilder_; + /** + *
+       * Request attributes used in IAM condition evaluation. This field contains
+       * request attributes like request time and access levels associated with
+       * the request.
+       * To get the whole view of the attributes used in IAM
+       * condition evaluation, the user must also look into
+       * `AuditLog.authentication_info.resource_attributes`.
+       * 
+ * + * .google.rpc.context.AttributeContext.Request request_attributes = 7; + * @return Whether the requestAttributes field is set. + */ + public boolean hasRequestAttributes() { + return requestAttributesBuilder_ != null || requestAttributes_ != null; + } + /** + *
+       * Request attributes used in IAM condition evaluation. This field contains
+       * request attributes like request time and access levels associated with
+       * the request.
+       * To get the whole view of the attributes used in IAM
+       * condition evaluation, the user must also look into
+       * `AuditLog.authentication_info.resource_attributes`.
+       * 
+ * + * .google.rpc.context.AttributeContext.Request request_attributes = 7; + * @return The requestAttributes. + */ + public com.google.rpc.context.AttributeContext.Request getRequestAttributes() { + if (requestAttributesBuilder_ == null) { + return requestAttributes_ == null ? com.google.rpc.context.AttributeContext.Request.getDefaultInstance() : requestAttributes_; + } else { + return requestAttributesBuilder_.getMessage(); + } + } + /** + *
+       * Request attributes used in IAM condition evaluation. This field contains
+       * request attributes like request time and access levels associated with
+       * the request.
+       * To get the whole view of the attributes used in IAM
+       * condition evaluation, the user must also look into
+       * `AuditLog.authentication_info.resource_attributes`.
+       * 
+ * + * .google.rpc.context.AttributeContext.Request request_attributes = 7; + */ + public Builder setRequestAttributes(com.google.rpc.context.AttributeContext.Request value) { + if (requestAttributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + requestAttributes_ = value; + onChanged(); + } else { + requestAttributesBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Request attributes used in IAM condition evaluation. This field contains
+       * request attributes like request time and access levels associated with
+       * the request.
+       * To get the whole view of the attributes used in IAM
+       * condition evaluation, the user must also look into
+       * `AuditLog.authentication_info.resource_attributes`.
+       * 
+ * + * .google.rpc.context.AttributeContext.Request request_attributes = 7; + */ + public Builder setRequestAttributes( + com.google.rpc.context.AttributeContext.Request.Builder builderForValue) { + if (requestAttributesBuilder_ == null) { + requestAttributes_ = builderForValue.build(); + onChanged(); + } else { + requestAttributesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Request attributes used in IAM condition evaluation. This field contains
+       * request attributes like request time and access levels associated with
+       * the request.
+       * To get the whole view of the attributes used in IAM
+       * condition evaluation, the user must also look into
+       * `AuditLog.authentication_info.resource_attributes`.
+       * 
+ * + * .google.rpc.context.AttributeContext.Request request_attributes = 7; + */ + public Builder mergeRequestAttributes(com.google.rpc.context.AttributeContext.Request value) { + if (requestAttributesBuilder_ == null) { + if (requestAttributes_ != null) { + requestAttributes_ = + com.google.rpc.context.AttributeContext.Request.newBuilder(requestAttributes_).mergeFrom(value).buildPartial(); + } else { + requestAttributes_ = value; + } + onChanged(); + } else { + requestAttributesBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Request attributes used in IAM condition evaluation. This field contains
+       * request attributes like request time and access levels associated with
+       * the request.
+       * To get the whole view of the attributes used in IAM
+       * condition evaluation, the user must also look into
+       * `AuditLog.authentication_info.resource_attributes`.
+       * 
+ * + * .google.rpc.context.AttributeContext.Request request_attributes = 7; + */ + public Builder clearRequestAttributes() { + if (requestAttributesBuilder_ == null) { + requestAttributes_ = null; + onChanged(); + } else { + requestAttributes_ = null; + requestAttributesBuilder_ = null; + } + + return this; + } + /** + *
+       * Request attributes used in IAM condition evaluation. This field contains
+       * request attributes like request time and access levels associated with
+       * the request.
+       * To get the whole view of the attributes used in IAM
+       * condition evaluation, the user must also look into
+       * `AuditLog.authentication_info.resource_attributes`.
+       * 
+ * + * .google.rpc.context.AttributeContext.Request request_attributes = 7; + */ + public com.google.rpc.context.AttributeContext.Request.Builder getRequestAttributesBuilder() { + + onChanged(); + return getRequestAttributesFieldBuilder().getBuilder(); + } + /** + *
+       * Request attributes used in IAM condition evaluation. This field contains
+       * request attributes like request time and access levels associated with
+       * the request.
+       * To get the whole view of the attributes used in IAM
+       * condition evaluation, the user must also look into
+       * `AuditLog.authentication_info.resource_attributes`.
+       * 
+ * + * .google.rpc.context.AttributeContext.Request request_attributes = 7; + */ + public com.google.rpc.context.AttributeContext.RequestOrBuilder getRequestAttributesOrBuilder() { + if (requestAttributesBuilder_ != null) { + return requestAttributesBuilder_.getMessageOrBuilder(); + } else { + return requestAttributes_ == null ? + com.google.rpc.context.AttributeContext.Request.getDefaultInstance() : requestAttributes_; + } + } + /** + *
+       * Request attributes used in IAM condition evaluation. This field contains
+       * request attributes like request time and access levels associated with
+       * the request.
+       * To get the whole view of the attributes used in IAM
+       * condition evaluation, the user must also look into
+       * `AuditLog.authentication_info.resource_attributes`.
+       * 
+ * + * .google.rpc.context.AttributeContext.Request request_attributes = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.context.AttributeContext.Request, com.google.rpc.context.AttributeContext.Request.Builder, com.google.rpc.context.AttributeContext.RequestOrBuilder> + getRequestAttributesFieldBuilder() { + if (requestAttributesBuilder_ == null) { + requestAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.context.AttributeContext.Request, com.google.rpc.context.AttributeContext.Request.Builder, com.google.rpc.context.AttributeContext.RequestOrBuilder>( + getRequestAttributes(), getParentForChildren(), isClean()); - serviceData_ = null; + requestAttributes_ = null; } - return serviceDataBuilder_; + return requestAttributesBuilder_; + } + + private com.google.rpc.context.AttributeContext.Peer destinationAttributes_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.context.AttributeContext.Peer, com.google.rpc.context.AttributeContext.Peer.Builder, com.google.rpc.context.AttributeContext.PeerOrBuilder> destinationAttributesBuilder_; + /** + *
+       * The destination of a network activity, such as accepting a TCP connection.
+       * In a multi hop network activity, the destination represents the receiver of
+       * the last hop. Only two fields are used in this message, Peer.port and
+       * Peer.ip. These fields are optionally populated by those services utilizing
+       * the IAM condition feature.
+       * 
+ * + * .google.rpc.context.AttributeContext.Peer destination_attributes = 8; + * @return Whether the destinationAttributes field is set. + */ + public boolean hasDestinationAttributes() { + return destinationAttributesBuilder_ != null || destinationAttributes_ != null; + } + /** + *
+       * The destination of a network activity, such as accepting a TCP connection.
+       * In a multi hop network activity, the destination represents the receiver of
+       * the last hop. Only two fields are used in this message, Peer.port and
+       * Peer.ip. These fields are optionally populated by those services utilizing
+       * the IAM condition feature.
+       * 
+ * + * .google.rpc.context.AttributeContext.Peer destination_attributes = 8; + * @return The destinationAttributes. + */ + public com.google.rpc.context.AttributeContext.Peer getDestinationAttributes() { + if (destinationAttributesBuilder_ == null) { + return destinationAttributes_ == null ? com.google.rpc.context.AttributeContext.Peer.getDefaultInstance() : destinationAttributes_; + } else { + return destinationAttributesBuilder_.getMessage(); + } + } + /** + *
+       * The destination of a network activity, such as accepting a TCP connection.
+       * In a multi hop network activity, the destination represents the receiver of
+       * the last hop. Only two fields are used in this message, Peer.port and
+       * Peer.ip. These fields are optionally populated by those services utilizing
+       * the IAM condition feature.
+       * 
+ * + * .google.rpc.context.AttributeContext.Peer destination_attributes = 8; + */ + public Builder setDestinationAttributes(com.google.rpc.context.AttributeContext.Peer value) { + if (destinationAttributesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + destinationAttributes_ = value; + onChanged(); + } else { + destinationAttributesBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The destination of a network activity, such as accepting a TCP connection.
+       * In a multi hop network activity, the destination represents the receiver of
+       * the last hop. Only two fields are used in this message, Peer.port and
+       * Peer.ip. These fields are optionally populated by those services utilizing
+       * the IAM condition feature.
+       * 
+ * + * .google.rpc.context.AttributeContext.Peer destination_attributes = 8; + */ + public Builder setDestinationAttributes( + com.google.rpc.context.AttributeContext.Peer.Builder builderForValue) { + if (destinationAttributesBuilder_ == null) { + destinationAttributes_ = builderForValue.build(); + onChanged(); + } else { + destinationAttributesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The destination of a network activity, such as accepting a TCP connection.
+       * In a multi hop network activity, the destination represents the receiver of
+       * the last hop. Only two fields are used in this message, Peer.port and
+       * Peer.ip. These fields are optionally populated by those services utilizing
+       * the IAM condition feature.
+       * 
+ * + * .google.rpc.context.AttributeContext.Peer destination_attributes = 8; + */ + public Builder mergeDestinationAttributes(com.google.rpc.context.AttributeContext.Peer value) { + if (destinationAttributesBuilder_ == null) { + if (destinationAttributes_ != null) { + destinationAttributes_ = + com.google.rpc.context.AttributeContext.Peer.newBuilder(destinationAttributes_).mergeFrom(value).buildPartial(); + } else { + destinationAttributes_ = value; + } + onChanged(); + } else { + destinationAttributesBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The destination of a network activity, such as accepting a TCP connection.
+       * In a multi hop network activity, the destination represents the receiver of
+       * the last hop. Only two fields are used in this message, Peer.port and
+       * Peer.ip. These fields are optionally populated by those services utilizing
+       * the IAM condition feature.
+       * 
+ * + * .google.rpc.context.AttributeContext.Peer destination_attributes = 8; + */ + public Builder clearDestinationAttributes() { + if (destinationAttributesBuilder_ == null) { + destinationAttributes_ = null; + onChanged(); + } else { + destinationAttributes_ = null; + destinationAttributesBuilder_ = null; + } + + return this; + } + /** + *
+       * The destination of a network activity, such as accepting a TCP connection.
+       * In a multi hop network activity, the destination represents the receiver of
+       * the last hop. Only two fields are used in this message, Peer.port and
+       * Peer.ip. These fields are optionally populated by those services utilizing
+       * the IAM condition feature.
+       * 
+ * + * .google.rpc.context.AttributeContext.Peer destination_attributes = 8; + */ + public com.google.rpc.context.AttributeContext.Peer.Builder getDestinationAttributesBuilder() { + + onChanged(); + return getDestinationAttributesFieldBuilder().getBuilder(); + } + /** + *
+       * The destination of a network activity, such as accepting a TCP connection.
+       * In a multi hop network activity, the destination represents the receiver of
+       * the last hop. Only two fields are used in this message, Peer.port and
+       * Peer.ip. These fields are optionally populated by those services utilizing
+       * the IAM condition feature.
+       * 
+ * + * .google.rpc.context.AttributeContext.Peer destination_attributes = 8; + */ + public com.google.rpc.context.AttributeContext.PeerOrBuilder getDestinationAttributesOrBuilder() { + if (destinationAttributesBuilder_ != null) { + return destinationAttributesBuilder_.getMessageOrBuilder(); + } else { + return destinationAttributes_ == null ? + com.google.rpc.context.AttributeContext.Peer.getDefaultInstance() : destinationAttributes_; + } + } + /** + *
+       * The destination of a network activity, such as accepting a TCP connection.
+       * In a multi hop network activity, the destination represents the receiver of
+       * the last hop. Only two fields are used in this message, Peer.port and
+       * Peer.ip. These fields are optionally populated by those services utilizing
+       * the IAM condition feature.
+       * 
+ * + * .google.rpc.context.AttributeContext.Peer destination_attributes = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.context.AttributeContext.Peer, com.google.rpc.context.AttributeContext.Peer.Builder, com.google.rpc.context.AttributeContext.PeerOrBuilder> + getDestinationAttributesFieldBuilder() { + if (destinationAttributesBuilder_ == null) { + destinationAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.context.AttributeContext.Peer, com.google.rpc.context.AttributeContext.Peer.Builder, com.google.rpc.context.AttributeContext.PeerOrBuilder>( + getDestinationAttributes(), + getParentForChildren(), + isClean()); + destinationAttributes_ = null; + } + return destinationAttributesBuilder_; } @java.lang.Override public final Builder setUnknownFields( @@ -3457,95 +9584,206 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:google.events.cloud.audit.v1.AuditLogData) + // @@protoc_insertion_point(builder_scope:google.events.cloud.audit.v1.RequestMetadata) } - // @@protoc_insertion_point(class_scope:google.events.cloud.audit.v1.AuditLogData) - private static final google.events.cloud.audit.v1.Data.AuditLogData DEFAULT_INSTANCE; + // @@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.AuditLogData(); + DEFAULT_INSTANCE = new google.events.cloud.audit.v1.Data.RequestMetadata(); } - public static google.events.cloud.audit.v1.Data.AuditLogData getDefaultInstance() { + public static google.events.cloud.audit.v1.Data.RequestMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public AuditLogData parsePartialFrom( + public RequestMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AuditLogData(input, extensionRegistry); + return new RequestMetadata(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public google.events.cloud.audit.v1.Data.AuditLogData getDefaultInstanceForType() { + public google.events.cloud.audit.v1.Data.RequestMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface AuthenticationInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.events.cloud.audit.v1.AuthenticationInfo) + public interface ResourceLocationOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.cloud.audit.v1.ResourceLocation) com.google.protobuf.MessageOrBuilder { /** *
-     * The email address of the authenticated user making the request.
+     * The locations of a resource after the execution of the operation.
+     * Requests to create or delete a location based resource must populate
+     * the 'current_locations' field and not the 'original_locations' field.
+     * For example:
+     *     "europe-west1-a"
+     *     "us-east1"
+     *     "nam3"
+     * 
+ * + * repeated string current_locations = 1; + * @return A list containing the currentLocations. + */ + java.util.List + getCurrentLocationsList(); + /** + *
+     * The locations of a resource after the execution of the operation.
+     * Requests to create or delete a location based resource must populate
+     * the 'current_locations' field and not the 'original_locations' field.
+     * For example:
+     *     "europe-west1-a"
+     *     "us-east1"
+     *     "nam3"
+     * 
+ * + * repeated string current_locations = 1; + * @return The count of currentLocations. + */ + int getCurrentLocationsCount(); + /** + *
+     * The locations of a resource after the execution of the operation.
+     * Requests to create or delete a location based resource must populate
+     * the 'current_locations' field and not the 'original_locations' field.
+     * For example:
+     *     "europe-west1-a"
+     *     "us-east1"
+     *     "nam3"
+     * 
+ * + * repeated string current_locations = 1; + * @param index The index of the element to return. + * @return The currentLocations at the given index. + */ + java.lang.String getCurrentLocations(int index); + /** + *
+     * The locations of a resource after the execution of the operation.
+     * Requests to create or delete a location based resource must populate
+     * the 'current_locations' field and not the 'original_locations' field.
+     * For example:
+     *     "europe-west1-a"
+     *     "us-east1"
+     *     "nam3"
+     * 
+ * + * repeated string current_locations = 1; + * @param index The index of the value to return. + * @return The bytes of the currentLocations at the given index. + */ + com.google.protobuf.ByteString + getCurrentLocationsBytes(int index); + + /** + *
+     * The locations of a resource prior to the execution of the operation.
+     * Requests that mutate the resource's location must populate both the
+     * 'original_locations' as well as the 'current_locations' fields.
+     * For example:
+     *     "europe-west1-a"
+     *     "us-east1"
+     *     "nam3"
      * 
* - * string principal_email = 1; - * @return The principalEmail. + * repeated string original_locations = 2; + * @return A list containing the originalLocations. */ - java.lang.String getPrincipalEmail(); + java.util.List + getOriginalLocationsList(); /** *
-     * The email address of the authenticated user making the request.
+     * The locations of a resource prior to the execution of the operation.
+     * Requests that mutate the resource's location must populate both the
+     * 'original_locations' as well as the 'current_locations' fields.
+     * For example:
+     *     "europe-west1-a"
+     *     "us-east1"
+     *     "nam3"
      * 
* - * string principal_email = 1; - * @return The bytes for principalEmail. + * repeated string original_locations = 2; + * @return The count of originalLocations. + */ + int getOriginalLocationsCount(); + /** + *
+     * The locations of a resource prior to the execution of the operation.
+     * Requests that mutate the resource's location must populate both the
+     * 'original_locations' as well as the 'current_locations' fields.
+     * For example:
+     *     "europe-west1-a"
+     *     "us-east1"
+     *     "nam3"
+     * 
+ * + * repeated string original_locations = 2; + * @param index The index of the element to return. + * @return The originalLocations at the given index. + */ + java.lang.String getOriginalLocations(int index); + /** + *
+     * The locations of a resource prior to the execution of the operation.
+     * Requests that mutate the resource's location must populate both the
+     * 'original_locations' as well as the 'current_locations' fields.
+     * For example:
+     *     "europe-west1-a"
+     *     "us-east1"
+     *     "nam3"
+     * 
+ * + * repeated string original_locations = 2; + * @param index The index of the value to return. + * @return The bytes of the originalLocations at the given index. */ com.google.protobuf.ByteString - getPrincipalEmailBytes(); + getOriginalLocationsBytes(int index); } /** *
-   * Authentication information for the operation.
+   * Location information about a resource.
    * 
* - * Protobuf type {@code google.events.cloud.audit.v1.AuthenticationInfo} + * Protobuf type {@code google.events.cloud.audit.v1.ResourceLocation} */ - public static final class AuthenticationInfo extends + public static final class ResourceLocation extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.events.cloud.audit.v1.AuthenticationInfo) - AuthenticationInfoOrBuilder { + // @@protoc_insertion_point(message_implements:google.events.cloud.audit.v1.ResourceLocation) + ResourceLocationOrBuilder { private static final long serialVersionUID = 0L; - // Use AuthenticationInfo.newBuilder() to construct. - private AuthenticationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ResourceLocation.newBuilder() to construct. + private ResourceLocation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AuthenticationInfo() { - principalEmail_ = ""; + private ResourceLocation() { + currentLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + originalLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new AuthenticationInfo(); + return new ResourceLocation(); } @java.lang.Override @@ -3553,7 +9791,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private AuthenticationInfo( + private ResourceLocation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -3561,6 +9799,7 @@ private AuthenticationInfo( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -3573,8 +9812,20 @@ private AuthenticationInfo( break; case 10: { java.lang.String s = input.readStringRequireUtf8(); - - principalEmail_ = s; + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + currentLocations_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + currentLocations_.add(s); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + originalLocations_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + originalLocations_.add(s); break; } default: { @@ -3592,67 +9843,177 @@ private AuthenticationInfo( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + currentLocations_ = currentLocations_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + originalLocations_ = originalLocations_.getUnmodifiableView(); + } 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; + return google.events.cloud.audit.v1.Data.internal_static_google_events_cloud_audit_v1_ResourceLocation_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 + return google.events.cloud.audit.v1.Data.internal_static_google_events_cloud_audit_v1_ResourceLocation_fieldAccessorTable .ensureFieldAccessorsInitialized( - google.events.cloud.audit.v1.Data.AuthenticationInfo.class, google.events.cloud.audit.v1.Data.AuthenticationInfo.Builder.class); + google.events.cloud.audit.v1.Data.ResourceLocation.class, google.events.cloud.audit.v1.Data.ResourceLocation.Builder.class); } - public static final int PRINCIPAL_EMAIL_FIELD_NUMBER = 1; - private volatile java.lang.Object principalEmail_; + public static final int CURRENT_LOCATIONS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList currentLocations_; /** *
-     * The email address of the authenticated user making the request.
+     * The locations of a resource after the execution of the operation.
+     * Requests to create or delete a location based resource must populate
+     * the 'current_locations' field and not the 'original_locations' field.
+     * For example:
+     *     "europe-west1-a"
+     *     "us-east1"
+     *     "nam3"
      * 
* - * string principal_email = 1; - * @return The principalEmail. + * repeated string current_locations = 1; + * @return A list containing the currentLocations. */ - @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; - } + public com.google.protobuf.ProtocolStringList + getCurrentLocationsList() { + return currentLocations_; } /** *
-     * The email address of the authenticated user making the request.
+     * The locations of a resource after the execution of the operation.
+     * Requests to create or delete a location based resource must populate
+     * the 'current_locations' field and not the 'original_locations' field.
+     * For example:
+     *     "europe-west1-a"
+     *     "us-east1"
+     *     "nam3"
      * 
* - * string principal_email = 1; - * @return The bytes for principalEmail. + * repeated string current_locations = 1; + * @return The count of currentLocations. + */ + public int getCurrentLocationsCount() { + return currentLocations_.size(); + } + /** + *
+     * The locations of a resource after the execution of the operation.
+     * Requests to create or delete a location based resource must populate
+     * the 'current_locations' field and not the 'original_locations' field.
+     * For example:
+     *     "europe-west1-a"
+     *     "us-east1"
+     *     "nam3"
+     * 
+ * + * repeated string current_locations = 1; + * @param index The index of the element to return. + * @return The currentLocations at the given index. + */ + public java.lang.String getCurrentLocations(int index) { + return currentLocations_.get(index); + } + /** + *
+     * The locations of a resource after the execution of the operation.
+     * Requests to create or delete a location based resource must populate
+     * the 'current_locations' field and not the 'original_locations' field.
+     * For example:
+     *     "europe-west1-a"
+     *     "us-east1"
+     *     "nam3"
+     * 
+ * + * repeated string current_locations = 1; + * @param index The index of the value to return. + * @return The bytes of the currentLocations at the given index. */ - @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; - } + getCurrentLocationsBytes(int index) { + return currentLocations_.getByteString(index); + } + + public static final int ORIGINAL_LOCATIONS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList originalLocations_; + /** + *
+     * The locations of a resource prior to the execution of the operation.
+     * Requests that mutate the resource's location must populate both the
+     * 'original_locations' as well as the 'current_locations' fields.
+     * For example:
+     *     "europe-west1-a"
+     *     "us-east1"
+     *     "nam3"
+     * 
+ * + * repeated string original_locations = 2; + * @return A list containing the originalLocations. + */ + public com.google.protobuf.ProtocolStringList + getOriginalLocationsList() { + return originalLocations_; + } + /** + *
+     * The locations of a resource prior to the execution of the operation.
+     * Requests that mutate the resource's location must populate both the
+     * 'original_locations' as well as the 'current_locations' fields.
+     * For example:
+     *     "europe-west1-a"
+     *     "us-east1"
+     *     "nam3"
+     * 
+ * + * repeated string original_locations = 2; + * @return The count of originalLocations. + */ + public int getOriginalLocationsCount() { + return originalLocations_.size(); + } + /** + *
+     * The locations of a resource prior to the execution of the operation.
+     * Requests that mutate the resource's location must populate both the
+     * 'original_locations' as well as the 'current_locations' fields.
+     * For example:
+     *     "europe-west1-a"
+     *     "us-east1"
+     *     "nam3"
+     * 
+ * + * repeated string original_locations = 2; + * @param index The index of the element to return. + * @return The originalLocations at the given index. + */ + public java.lang.String getOriginalLocations(int index) { + return originalLocations_.get(index); + } + /** + *
+     * The locations of a resource prior to the execution of the operation.
+     * Requests that mutate the resource's location must populate both the
+     * 'original_locations' as well as the 'current_locations' fields.
+     * For example:
+     *     "europe-west1-a"
+     *     "us-east1"
+     *     "nam3"
+     * 
+ * + * repeated string original_locations = 2; + * @param index The index of the value to return. + * @return The bytes of the originalLocations at the given index. + */ + public com.google.protobuf.ByteString + getOriginalLocationsBytes(int index) { + return originalLocations_.getByteString(index); } private byte memoizedIsInitialized = -1; @@ -3669,8 +10030,11 @@ public final boolean isInitialized() { @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_); + for (int i = 0; i < currentLocations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, currentLocations_.getRaw(i)); + } + for (int i = 0; i < originalLocations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, originalLocations_.getRaw(i)); } unknownFields.writeTo(output); } @@ -3681,8 +10045,21 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getPrincipalEmailBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, principalEmail_); + { + int dataSize = 0; + for (int i = 0; i < currentLocations_.size(); i++) { + dataSize += computeStringSizeNoTag(currentLocations_.getRaw(i)); + } + size += dataSize; + size += 1 * getCurrentLocationsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < originalLocations_.size(); i++) { + dataSize += computeStringSizeNoTag(originalLocations_.getRaw(i)); + } + size += dataSize; + size += 1 * getOriginalLocationsList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3694,13 +10071,15 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof google.events.cloud.audit.v1.Data.AuthenticationInfo)) { + if (!(obj instanceof google.events.cloud.audit.v1.Data.ResourceLocation)) { return super.equals(obj); } - google.events.cloud.audit.v1.Data.AuthenticationInfo other = (google.events.cloud.audit.v1.Data.AuthenticationInfo) obj; + google.events.cloud.audit.v1.Data.ResourceLocation other = (google.events.cloud.audit.v1.Data.ResourceLocation) obj; - if (!getPrincipalEmail() - .equals(other.getPrincipalEmail())) return false; + if (!getCurrentLocationsList() + .equals(other.getCurrentLocationsList())) return false; + if (!getOriginalLocationsList() + .equals(other.getOriginalLocationsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3712,76 +10091,82 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PRINCIPAL_EMAIL_FIELD_NUMBER; - hash = (53 * hash) + getPrincipalEmail().hashCode(); + if (getCurrentLocationsCount() > 0) { + hash = (37 * hash) + CURRENT_LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getCurrentLocationsList().hashCode(); + } + if (getOriginalLocationsCount() > 0) { + hash = (37 * hash) + ORIGINAL_LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getOriginalLocationsList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static google.events.cloud.audit.v1.Data.AuthenticationInfo parseFrom( + public static google.events.cloud.audit.v1.Data.ResourceLocation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static google.events.cloud.audit.v1.Data.AuthenticationInfo parseFrom( + public static google.events.cloud.audit.v1.Data.ResourceLocation 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( + public static google.events.cloud.audit.v1.Data.ResourceLocation 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( + public static google.events.cloud.audit.v1.Data.ResourceLocation 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) + public static google.events.cloud.audit.v1.Data.ResourceLocation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static google.events.cloud.audit.v1.Data.AuthenticationInfo parseFrom( + public static google.events.cloud.audit.v1.Data.ResourceLocation 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) + public static google.events.cloud.audit.v1.Data.ResourceLocation 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( + public static google.events.cloud.audit.v1.Data.ResourceLocation 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) + public static google.events.cloud.audit.v1.Data.ResourceLocation 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( + public static google.events.cloud.audit.v1.Data.ResourceLocation 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( + public static google.events.cloud.audit.v1.Data.ResourceLocation 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( + public static google.events.cloud.audit.v1.Data.ResourceLocation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -3794,7 +10179,7 @@ public static google.events.cloud.audit.v1.Data.AuthenticationInfo parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(google.events.cloud.audit.v1.Data.AuthenticationInfo prototype) { + public static Builder newBuilder(google.events.cloud.audit.v1.Data.ResourceLocation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -3811,29 +10196,29 @@ protected Builder newBuilderForType( } /** *
-     * Authentication information for the operation.
+     * Location information about a resource.
      * 
* - * Protobuf type {@code google.events.cloud.audit.v1.AuthenticationInfo} + * Protobuf type {@code google.events.cloud.audit.v1.ResourceLocation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.events.cloud.audit.v1.AuthenticationInfo) - google.events.cloud.audit.v1.Data.AuthenticationInfoOrBuilder { + // @@protoc_insertion_point(builder_implements:google.events.cloud.audit.v1.ResourceLocation) + google.events.cloud.audit.v1.Data.ResourceLocationOrBuilder { 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; + return google.events.cloud.audit.v1.Data.internal_static_google_events_cloud_audit_v1_ResourceLocation_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 + return google.events.cloud.audit.v1.Data.internal_static_google_events_cloud_audit_v1_ResourceLocation_fieldAccessorTable .ensureFieldAccessorsInitialized( - google.events.cloud.audit.v1.Data.AuthenticationInfo.class, google.events.cloud.audit.v1.Data.AuthenticationInfo.Builder.class); + google.events.cloud.audit.v1.Data.ResourceLocation.class, google.events.cloud.audit.v1.Data.ResourceLocation.Builder.class); } - // Construct using google.events.cloud.audit.v1.Data.AuthenticationInfo.newBuilder() + // Construct using google.events.cloud.audit.v1.Data.ResourceLocation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -3851,25 +10236,27 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - principalEmail_ = ""; - + currentLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + originalLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return google.events.cloud.audit.v1.Data.internal_static_google_events_cloud_audit_v1_AuthenticationInfo_descriptor; + return google.events.cloud.audit.v1.Data.internal_static_google_events_cloud_audit_v1_ResourceLocation_descriptor; } @java.lang.Override - public google.events.cloud.audit.v1.Data.AuthenticationInfo getDefaultInstanceForType() { - return google.events.cloud.audit.v1.Data.AuthenticationInfo.getDefaultInstance(); + public google.events.cloud.audit.v1.Data.ResourceLocation getDefaultInstanceForType() { + return google.events.cloud.audit.v1.Data.ResourceLocation.getDefaultInstance(); } @java.lang.Override - public google.events.cloud.audit.v1.Data.AuthenticationInfo build() { - google.events.cloud.audit.v1.Data.AuthenticationInfo result = buildPartial(); + public google.events.cloud.audit.v1.Data.ResourceLocation build() { + google.events.cloud.audit.v1.Data.ResourceLocation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3877,9 +10264,19 @@ public google.events.cloud.audit.v1.Data.AuthenticationInfo build() { } @java.lang.Override - public google.events.cloud.audit.v1.Data.AuthenticationInfo buildPartial() { - google.events.cloud.audit.v1.Data.AuthenticationInfo result = new google.events.cloud.audit.v1.Data.AuthenticationInfo(this); - result.principalEmail_ = principalEmail_; + public google.events.cloud.audit.v1.Data.ResourceLocation buildPartial() { + google.events.cloud.audit.v1.Data.ResourceLocation result = new google.events.cloud.audit.v1.Data.ResourceLocation(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + currentLocations_ = currentLocations_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.currentLocations_ = currentLocations_; + if (((bitField0_ & 0x00000002) != 0)) { + originalLocations_ = originalLocations_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.originalLocations_ = originalLocations_; onBuilt(); return result; } @@ -3918,18 +10315,34 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof google.events.cloud.audit.v1.Data.AuthenticationInfo) { - return mergeFrom((google.events.cloud.audit.v1.Data.AuthenticationInfo)other); + if (other instanceof google.events.cloud.audit.v1.Data.ResourceLocation) { + return mergeFrom((google.events.cloud.audit.v1.Data.ResourceLocation)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(google.events.cloud.audit.v1.Data.AuthenticationInfo other) { - if (other == google.events.cloud.audit.v1.Data.AuthenticationInfo.getDefaultInstance()) return this; - if (!other.getPrincipalEmail().isEmpty()) { - principalEmail_ = other.principalEmail_; + public Builder mergeFrom(google.events.cloud.audit.v1.Data.ResourceLocation other) { + if (other == google.events.cloud.audit.v1.Data.ResourceLocation.getDefaultInstance()) return this; + if (!other.currentLocations_.isEmpty()) { + if (currentLocations_.isEmpty()) { + currentLocations_ = other.currentLocations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCurrentLocationsIsMutable(); + currentLocations_.addAll(other.currentLocations_); + } + onChanged(); + } + if (!other.originalLocations_.isEmpty()) { + if (originalLocations_.isEmpty()) { + originalLocations_ = other.originalLocations_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureOriginalLocationsIsMutable(); + originalLocations_.addAll(other.originalLocations_); + } onChanged(); } this.mergeUnknownFields(other.unknownFields); @@ -3947,11 +10360,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - google.events.cloud.audit.v1.Data.AuthenticationInfo parsedMessage = null; + google.events.cloud.audit.v1.Data.ResourceLocation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (google.events.cloud.audit.v1.Data.AuthenticationInfo) e.getUnfinishedMessage(); + parsedMessage = (google.events.cloud.audit.v1.Data.ResourceLocation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3960,99 +10373,404 @@ public Builder mergeFrom( } return this; } - - private java.lang.Object principalEmail_ = ""; + private int bitField0_; + + private com.google.protobuf.LazyStringList currentLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureCurrentLocationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + currentLocations_ = new com.google.protobuf.LazyStringArrayList(currentLocations_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * The locations of a resource after the execution of the operation.
+       * Requests to create or delete a location based resource must populate
+       * the 'current_locations' field and not the 'original_locations' field.
+       * For example:
+       *     "europe-west1-a"
+       *     "us-east1"
+       *     "nam3"
+       * 
+ * + * repeated string current_locations = 1; + * @return A list containing the currentLocations. + */ + public com.google.protobuf.ProtocolStringList + getCurrentLocationsList() { + return currentLocations_.getUnmodifiableView(); + } + /** + *
+       * The locations of a resource after the execution of the operation.
+       * Requests to create or delete a location based resource must populate
+       * the 'current_locations' field and not the 'original_locations' field.
+       * For example:
+       *     "europe-west1-a"
+       *     "us-east1"
+       *     "nam3"
+       * 
+ * + * repeated string current_locations = 1; + * @return The count of currentLocations. + */ + public int getCurrentLocationsCount() { + return currentLocations_.size(); + } + /** + *
+       * The locations of a resource after the execution of the operation.
+       * Requests to create or delete a location based resource must populate
+       * the 'current_locations' field and not the 'original_locations' field.
+       * For example:
+       *     "europe-west1-a"
+       *     "us-east1"
+       *     "nam3"
+       * 
+ * + * repeated string current_locations = 1; + * @param index The index of the element to return. + * @return The currentLocations at the given index. + */ + public java.lang.String getCurrentLocations(int index) { + return currentLocations_.get(index); + } + /** + *
+       * The locations of a resource after the execution of the operation.
+       * Requests to create or delete a location based resource must populate
+       * the 'current_locations' field and not the 'original_locations' field.
+       * For example:
+       *     "europe-west1-a"
+       *     "us-east1"
+       *     "nam3"
+       * 
+ * + * repeated string current_locations = 1; + * @param index The index of the value to return. + * @return The bytes of the currentLocations at the given index. + */ + public com.google.protobuf.ByteString + getCurrentLocationsBytes(int index) { + return currentLocations_.getByteString(index); + } + /** + *
+       * The locations of a resource after the execution of the operation.
+       * Requests to create or delete a location based resource must populate
+       * the 'current_locations' field and not the 'original_locations' field.
+       * For example:
+       *     "europe-west1-a"
+       *     "us-east1"
+       *     "nam3"
+       * 
+ * + * repeated string current_locations = 1; + * @param index The index to set the value at. + * @param value The currentLocations to set. + * @return This builder for chaining. + */ + public Builder setCurrentLocations( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCurrentLocationsIsMutable(); + currentLocations_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * The locations of a resource after the execution of the operation.
+       * Requests to create or delete a location based resource must populate
+       * the 'current_locations' field and not the 'original_locations' field.
+       * For example:
+       *     "europe-west1-a"
+       *     "us-east1"
+       *     "nam3"
+       * 
+ * + * repeated string current_locations = 1; + * @param value The currentLocations to add. + * @return This builder for chaining. + */ + public Builder addCurrentLocations( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCurrentLocationsIsMutable(); + currentLocations_.add(value); + onChanged(); + return this; + } + /** + *
+       * The locations of a resource after the execution of the operation.
+       * Requests to create or delete a location based resource must populate
+       * the 'current_locations' field and not the 'original_locations' field.
+       * For example:
+       *     "europe-west1-a"
+       *     "us-east1"
+       *     "nam3"
+       * 
+ * + * repeated string current_locations = 1; + * @param values The currentLocations to add. + * @return This builder for chaining. + */ + public Builder addAllCurrentLocations( + java.lang.Iterable values) { + ensureCurrentLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, currentLocations_); + onChanged(); + return this; + } + /** + *
+       * The locations of a resource after the execution of the operation.
+       * Requests to create or delete a location based resource must populate
+       * the 'current_locations' field and not the 'original_locations' field.
+       * For example:
+       *     "europe-west1-a"
+       *     "us-east1"
+       *     "nam3"
+       * 
+ * + * repeated string current_locations = 1; + * @return This builder for chaining. + */ + public Builder clearCurrentLocations() { + currentLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * The locations of a resource after the execution of the operation.
+       * Requests to create or delete a location based resource must populate
+       * the 'current_locations' field and not the 'original_locations' field.
+       * For example:
+       *     "europe-west1-a"
+       *     "us-east1"
+       *     "nam3"
+       * 
+ * + * repeated string current_locations = 1; + * @param value The bytes of the currentLocations to add. + * @return This builder for chaining. + */ + public Builder addCurrentLocationsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCurrentLocationsIsMutable(); + currentLocations_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList originalLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureOriginalLocationsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + originalLocations_ = new com.google.protobuf.LazyStringArrayList(originalLocations_); + bitField0_ |= 0x00000002; + } + } + /** + *
+       * The locations of a resource prior to the execution of the operation.
+       * Requests that mutate the resource's location must populate both the
+       * 'original_locations' as well as the 'current_locations' fields.
+       * For example:
+       *     "europe-west1-a"
+       *     "us-east1"
+       *     "nam3"
+       * 
+ * + * repeated string original_locations = 2; + * @return A list containing the originalLocations. + */ + public com.google.protobuf.ProtocolStringList + getOriginalLocationsList() { + return originalLocations_.getUnmodifiableView(); + } /** *
-       * The email address of the authenticated user making the request.
+       * The locations of a resource prior to the execution of the operation.
+       * Requests that mutate the resource's location must populate both the
+       * 'original_locations' as well as the 'current_locations' fields.
+       * For example:
+       *     "europe-west1-a"
+       *     "us-east1"
+       *     "nam3"
        * 
* - * string principal_email = 1; - * @return The principalEmail. + * repeated string original_locations = 2; + * @return The count of originalLocations. */ - 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; - } + public int getOriginalLocationsCount() { + return originalLocations_.size(); } /** *
-       * The email address of the authenticated user making the request.
+       * The locations of a resource prior to the execution of the operation.
+       * Requests that mutate the resource's location must populate both the
+       * 'original_locations' as well as the 'current_locations' fields.
+       * For example:
+       *     "europe-west1-a"
+       *     "us-east1"
+       *     "nam3"
        * 
* - * string principal_email = 1; - * @return The bytes for principalEmail. + * repeated string original_locations = 2; + * @param index The index of the element to return. + * @return The originalLocations at the given index. + */ + public java.lang.String getOriginalLocations(int index) { + return originalLocations_.get(index); + } + /** + *
+       * The locations of a resource prior to the execution of the operation.
+       * Requests that mutate the resource's location must populate both the
+       * 'original_locations' as well as the 'current_locations' fields.
+       * For example:
+       *     "europe-west1-a"
+       *     "us-east1"
+       *     "nam3"
+       * 
+ * + * repeated string original_locations = 2; + * @param index The index of the value to return. + * @return The bytes of the originalLocations at the given index. */ 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; - } + getOriginalLocationsBytes(int index) { + return originalLocations_.getByteString(index); } /** *
-       * The email address of the authenticated user making the request.
+       * The locations of a resource prior to the execution of the operation.
+       * Requests that mutate the resource's location must populate both the
+       * 'original_locations' as well as the 'current_locations' fields.
+       * For example:
+       *     "europe-west1-a"
+       *     "us-east1"
+       *     "nam3"
        * 
* - * string principal_email = 1; - * @param value The principalEmail to set. + * repeated string original_locations = 2; + * @param index The index to set the value at. + * @param value The originalLocations to set. * @return This builder for chaining. */ - public Builder setPrincipalEmail( + public Builder setOriginalLocations( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOriginalLocationsIsMutable(); + originalLocations_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * The locations of a resource prior to the execution of the operation.
+       * Requests that mutate the resource's location must populate both the
+       * 'original_locations' as well as the 'current_locations' fields.
+       * For example:
+       *     "europe-west1-a"
+       *     "us-east1"
+       *     "nam3"
+       * 
+ * + * repeated string original_locations = 2; + * @param value The originalLocations to add. + * @return This builder for chaining. + */ + public Builder addOriginalLocations( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - - principalEmail_ = value; + ensureOriginalLocationsIsMutable(); + originalLocations_.add(value); onChanged(); return this; } /** *
-       * The email address of the authenticated user making the request.
+       * The locations of a resource prior to the execution of the operation.
+       * Requests that mutate the resource's location must populate both the
+       * 'original_locations' as well as the 'current_locations' fields.
+       * For example:
+       *     "europe-west1-a"
+       *     "us-east1"
+       *     "nam3"
        * 
* - * string principal_email = 1; + * repeated string original_locations = 2; + * @param values The originalLocations to add. * @return This builder for chaining. */ - public Builder clearPrincipalEmail() { - - principalEmail_ = getDefaultInstance().getPrincipalEmail(); + public Builder addAllOriginalLocations( + java.lang.Iterable values) { + ensureOriginalLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, originalLocations_); + onChanged(); + return this; + } + /** + *
+       * The locations of a resource prior to the execution of the operation.
+       * Requests that mutate the resource's location must populate both the
+       * 'original_locations' as well as the 'current_locations' fields.
+       * For example:
+       *     "europe-west1-a"
+       *     "us-east1"
+       *     "nam3"
+       * 
+ * + * repeated string original_locations = 2; + * @return This builder for chaining. + */ + public Builder clearOriginalLocations() { + originalLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
-       * The email address of the authenticated user making the request.
+       * The locations of a resource prior to the execution of the operation.
+       * Requests that mutate the resource's location must populate both the
+       * 'original_locations' as well as the 'current_locations' fields.
+       * For example:
+       *     "europe-west1-a"
+       *     "us-east1"
+       *     "nam3"
        * 
* - * string principal_email = 1; - * @param value The bytes for principalEmail to set. + * repeated string original_locations = 2; + * @param value The bytes of the originalLocations to add. * @return This builder for chaining. */ - public Builder setPrincipalEmailBytes( + public Builder addOriginalLocationsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - - principalEmail_ = value; + ensureOriginalLocationsIsMutable(); + originalLocations_.add(value); onChanged(); return this; } @@ -4069,1214 +10787,1904 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:google.events.cloud.audit.v1.AuthenticationInfo) + // @@protoc_insertion_point(builder_scope:google.events.cloud.audit.v1.ResourceLocation) } - // @@protoc_insertion_point(class_scope:google.events.cloud.audit.v1.AuthenticationInfo) - private static final google.events.cloud.audit.v1.Data.AuthenticationInfo DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.events.cloud.audit.v1.ResourceLocation) + private static final google.events.cloud.audit.v1.Data.ResourceLocation 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 - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuthenticationInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AuthenticationInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public google.events.cloud.audit.v1.Data.AuthenticationInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AuthorizationInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.events.cloud.audit.v1.AuthorizationInfo) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * 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(); + DEFAULT_INSTANCE = new google.events.cloud.audit.v1.Data.ResourceLocation(); + } + + public static google.events.cloud.audit.v1.Data.ResourceLocation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceLocation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceLocation(input, extensionRegistry); } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; } - 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 + public com.google.protobuf.Parser getParserForType() { + return PARSER; } @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 google.events.cloud.audit.v1.Data.ResourceLocation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - public static final int RESOURCE_FIELD_NUMBER = 1; - private volatile java.lang.Object resource_; + } + + public interface ServiceAccountDelegationInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.cloud.audit.v1.ServiceAccountDelegationInfo) + com.google.protobuf.MessageOrBuilder { + /** *
-     * The resource being accessed, as a REST-style string. For example:
-     *     bigquery.googlapis.com/projects/PROJECTID/datasets/DATASETID
+     * First party (Google) identity as the real authority.
      * 
* - * string resource = 1; - * @return The resource. + * .google.events.cloud.audit.v1.ServiceAccountDelegationInfo.FirstPartyPrincipal first_party_principal = 1; + * @return Whether the firstPartyPrincipal field is set. */ - @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; - } - } + boolean hasFirstPartyPrincipal(); /** *
-     * The resource being accessed, as a REST-style string. For example:
-     *     bigquery.googlapis.com/projects/PROJECTID/datasets/DATASETID
+     * First party (Google) identity as the real authority.
      * 
* - * string resource = 1; - * @return The bytes for resource. + * .google.events.cloud.audit.v1.ServiceAccountDelegationInfo.FirstPartyPrincipal first_party_principal = 1; + * @return The firstPartyPrincipal. */ - @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; - } - } + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal getFirstPartyPrincipal(); + /** + *
+     * First party (Google) identity as the real authority.
+     * 
+ * + * .google.events.cloud.audit.v1.ServiceAccountDelegationInfo.FirstPartyPrincipal first_party_principal = 1; + */ + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipalOrBuilder getFirstPartyPrincipalOrBuilder(); - public static final int PERMISSION_FIELD_NUMBER = 2; - private volatile java.lang.Object permission_; /** *
-     * The required IAM permission.
+     * Third party identity as the real authority.
      * 
* - * string permission = 2; - * @return The permission. + * .google.events.cloud.audit.v1.ServiceAccountDelegationInfo.ThirdPartyPrincipal third_party_principal = 2; + * @return Whether the thirdPartyPrincipal field is set. */ - @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; - } - } + boolean hasThirdPartyPrincipal(); /** *
-     * The required IAM permission.
+     * Third party identity as the real authority.
      * 
* - * string permission = 2; - * @return The bytes for permission. + * .google.events.cloud.audit.v1.ServiceAccountDelegationInfo.ThirdPartyPrincipal third_party_principal = 2; + * @return The thirdPartyPrincipal. */ - @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_; + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal getThirdPartyPrincipal(); /** *
-     * Whether or not authorization for `resource` and `permission`
-     * was granted.
+     * Third party identity as the real authority.
      * 
* - * bool granted = 3; - * @return The granted. + * .google.events.cloud.audit.v1.ServiceAccountDelegationInfo.ThirdPartyPrincipal third_party_principal = 2; */ - @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; - } + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipalOrBuilder getThirdPartyPrincipalOrBuilder(); - 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 google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.AuthorityCase getAuthorityCase(); + } + /** + *
+   * Identity delegation history of an authenticated service account.
+   * 
+ * + * Protobuf type {@code google.events.cloud.audit.v1.ServiceAccountDelegationInfo} + */ + public static final class ServiceAccountDelegationInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.cloud.audit.v1.ServiceAccountDelegationInfo) + ServiceAccountDelegationInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use ServiceAccountDelegationInfo.newBuilder() to construct. + private ServiceAccountDelegationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - 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); + private ServiceAccountDelegationInfo() { } - 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 + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ServiceAccountDelegationInfo(); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; } - public static Builder newBuilder(google.events.cloud.audit.v1.Data.AuthorizationInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + private ServiceAccountDelegationInfo( + 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.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal.Builder subBuilder = null; + if (authorityCase_ == 1) { + subBuilder = ((google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal) authority_).toBuilder(); + } + authority_ = + input.readMessage(google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal) authority_); + authority_ = subBuilder.buildPartial(); + } + authorityCase_ = 1; + break; + } + case 18: { + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal.Builder subBuilder = null; + if (authorityCase_ == 2) { + subBuilder = ((google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal) authority_).toBuilder(); + } + authority_ = + input.readMessage(google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal) authority_); + authority_ = subBuilder.buildPartial(); + } + authorityCase_ = 2; + 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(); + } } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.cloud.audit.v1.Data.internal_static_google_events_cloud_audit_v1_ServiceAccountDelegationInfo_descriptor; } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.audit.v1.Data.internal_static_google_events_cloud_audit_v1_ServiceAccountDelegationInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.class, google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.Builder.class); + } + + public interface FirstPartyPrincipalOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.cloud.audit.v1.ServiceAccountDelegationInfo.FirstPartyPrincipal) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * The email address of a Google account.
+       * 
+ * + * string principal_email = 1; + * @return The principalEmail. + */ + java.lang.String getPrincipalEmail(); + /** + *
+       * The email address of a Google account.
+       * 
+ * + * string principal_email = 1; + * @return The bytes for principalEmail. + */ + com.google.protobuf.ByteString + getPrincipalEmailBytes(); + + /** + *
+       * Metadata about the service that uses the service account.
+       * 
+ * + * .google.protobuf.Struct service_metadata = 2; + * @return Whether the serviceMetadata field is set. + */ + boolean hasServiceMetadata(); + /** + *
+       * Metadata about the service that uses the service account.
+       * 
+ * + * .google.protobuf.Struct service_metadata = 2; + * @return The serviceMetadata. + */ + com.google.protobuf.Struct getServiceMetadata(); + /** + *
+       * Metadata about the service that uses the service account.
+       * 
+ * + * .google.protobuf.Struct service_metadata = 2; + */ + com.google.protobuf.StructOrBuilder getServiceMetadataOrBuilder(); } /** *
-     * Authorization information for the operation.
+     * First party identity principal.
      * 
* - * Protobuf type {@code google.events.cloud.audit.v1.AuthorizationInfo} + * Protobuf type {@code google.events.cloud.audit.v1.ServiceAccountDelegationInfo.FirstPartyPrincipal} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.events.cloud.audit.v1.AuthorizationInfo) - google.events.cloud.audit.v1.Data.AuthorizationInfoOrBuilder { - 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; + public static final class FirstPartyPrincipal extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.cloud.audit.v1.ServiceAccountDelegationInfo.FirstPartyPrincipal) + FirstPartyPrincipalOrBuilder { + private static final long serialVersionUID = 0L; + // Use FirstPartyPrincipal.newBuilder() to construct. + private FirstPartyPrincipal(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FirstPartyPrincipal() { + principalEmail_ = ""; } @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); - } - - // Construct using google.events.cloud.audit.v1.Data.AuthorizationInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FirstPartyPrincipal(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + private FirstPartyPrincipal( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); } - } - @java.lang.Override - public Builder clear() { - super.clear(); - resource_ = ""; - - permission_ = ""; - - granted_ = false; + 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(); - return this; + principalEmail_ = s; + break; + } + case 18: { + com.google.protobuf.Struct.Builder subBuilder = null; + if (serviceMetadata_ != null) { + subBuilder = serviceMetadata_.toBuilder(); + } + serviceMetadata_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(serviceMetadata_); + serviceMetadata_ = subBuilder.buildPartial(); + } + + 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(); + } } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return google.events.cloud.audit.v1.Data.internal_static_google_events_cloud_audit_v1_AuthorizationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.cloud.audit.v1.Data.internal_static_google_events_cloud_audit_v1_ServiceAccountDelegationInfo_FirstPartyPrincipal_descriptor; } @java.lang.Override - public google.events.cloud.audit.v1.Data.AuthorizationInfo getDefaultInstanceForType() { - return google.events.cloud.audit.v1.Data.AuthorizationInfo.getDefaultInstance(); + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.audit.v1.Data.internal_static_google_events_cloud_audit_v1_ServiceAccountDelegationInfo_FirstPartyPrincipal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal.class, google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal.Builder.class); } + public static final int PRINCIPAL_EMAIL_FIELD_NUMBER = 1; + private volatile java.lang.Object principalEmail_; + /** + *
+       * The email address of a Google account.
+       * 
+ * + * string principal_email = 1; + * @return The principalEmail. + */ @java.lang.Override - public google.events.cloud.audit.v1.Data.AuthorizationInfo build() { - google.events.cloud.audit.v1.Data.AuthorizationInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + 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; } - return result; } - + /** + *
+       * The email address of a Google account.
+       * 
+ * + * string principal_email = 1; + * @return The bytes for principalEmail. + */ @java.lang.Override - public google.events.cloud.audit.v1.Data.AuthorizationInfo buildPartial() { - google.events.cloud.audit.v1.Data.AuthorizationInfo result = new google.events.cloud.audit.v1.Data.AuthorizationInfo(this); - result.resource_ = resource_; - result.permission_ = permission_; - result.granted_ = granted_; - onBuilt(); - return result; + 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; + } } + public static final int SERVICE_METADATA_FIELD_NUMBER = 2; + private com.google.protobuf.Struct serviceMetadata_; + /** + *
+       * Metadata about the service that uses the service account.
+       * 
+ * + * .google.protobuf.Struct service_metadata = 2; + * @return Whether the serviceMetadata field is set. + */ @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + public boolean hasServiceMetadata() { + return serviceMetadata_ != null; } + /** + *
+       * Metadata about the service that uses the service account.
+       * 
+ * + * .google.protobuf.Struct service_metadata = 2; + * @return The serviceMetadata. + */ @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + public com.google.protobuf.Struct getServiceMetadata() { + return serviceMetadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : serviceMetadata_; } + /** + *
+       * Metadata about the service that uses the service account.
+       * 
+ * + * .google.protobuf.Struct service_metadata = 2; + */ @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + public com.google.protobuf.StructOrBuilder getServiceMetadataOrBuilder() { + return getServiceMetadata(); } + + private byte memoizedIsInitialized = -1; @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + 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 Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof google.events.cloud.audit.v1.Data.AuthorizationInfo) { - return mergeFrom((google.events.cloud.audit.v1.Data.AuthorizationInfo)other); - } else { - super.mergeFrom(other); - return this; + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getPrincipalEmailBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, principalEmail_); } + if (serviceMetadata_ != null) { + output.writeMessage(2, getServiceMetadata()); + } + unknownFields.writeTo(output); } - public Builder mergeFrom(google.events.cloud.audit.v1.Data.AuthorizationInfo other) { - if (other == google.events.cloud.audit.v1.Data.AuthorizationInfo.getDefaultInstance()) return this; - if (!other.getResource().isEmpty()) { - resource_ = other.resource_; - onChanged(); - } - if (!other.getPermission().isEmpty()) { - permission_ = other.permission_; - onChanged(); + @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_); } - if (other.getGranted() != false) { - setGranted(other.getGranted()); + if (serviceMetadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getServiceMetadata()); } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; } @java.lang.Override - public final boolean isInitialized() { + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal)) { + return super.equals(obj); + } + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal other = (google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal) obj; + + if (!getPrincipalEmail() + .equals(other.getPrincipalEmail())) return false; + if (hasServiceMetadata() != other.hasServiceMetadata()) return false; + if (hasServiceMetadata()) { + if (!getServiceMetadata() + .equals(other.getServiceMetadata())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override - public Builder mergeFrom( + 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(); + if (hasServiceMetadata()) { + hash = (37 * hash) + SERVICE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getServiceMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal 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.ServiceAccountDelegationInfo.FirstPartyPrincipal parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal 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.ServiceAccountDelegationInfo.FirstPartyPrincipal parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal 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.ServiceAccountDelegationInfo.FirstPartyPrincipal 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.ServiceAccountDelegationInfo.FirstPartyPrincipal 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.ServiceAccountDelegationInfo.FirstPartyPrincipal 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.ServiceAccountDelegationInfo.FirstPartyPrincipal 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.ServiceAccountDelegationInfo.FirstPartyPrincipal 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.ServiceAccountDelegationInfo.FirstPartyPrincipal parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - google.events.cloud.audit.v1.Data.AuthorizationInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (google.events.cloud.audit.v1.Data.AuthorizationInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - private java.lang.Object resource_ = ""; + @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.ServiceAccountDelegationInfo.FirstPartyPrincipal 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 resource being accessed, as a REST-style string. For example:
-       *     bigquery.googlapis.com/projects/PROJECTID/datasets/DATASETID
+       * First party identity principal.
        * 
* - * string resource = 1; - * @return The resource. + * Protobuf type {@code google.events.cloud.audit.v1.ServiceAccountDelegationInfo.FirstPartyPrincipal} */ - 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; + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.events.cloud.audit.v1.ServiceAccountDelegationInfo.FirstPartyPrincipal) + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipalOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.cloud.audit.v1.Data.internal_static_google_events_cloud_audit_v1_ServiceAccountDelegationInfo_FirstPartyPrincipal_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_ServiceAccountDelegationInfo_FirstPartyPrincipal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal.class, google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal.Builder.class); + } + + // Construct using google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + principalEmail_ = ""; + + if (serviceMetadataBuilder_ == null) { + serviceMetadata_ = null; + } else { + serviceMetadata_ = null; + serviceMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.events.cloud.audit.v1.Data.internal_static_google_events_cloud_audit_v1_ServiceAccountDelegationInfo_FirstPartyPrincipal_descriptor; + } + + @java.lang.Override + public google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal getDefaultInstanceForType() { + return google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal.getDefaultInstance(); + } + + @java.lang.Override + public google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal build() { + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal buildPartial() { + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal result = new google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal(this); + result.principalEmail_ = principalEmail_; + if (serviceMetadataBuilder_ == null) { + result.serviceMetadata_ = serviceMetadata_; + } else { + result.serviceMetadata_ = serviceMetadataBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal) { + return mergeFrom((google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal other) { + if (other == google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal.getDefaultInstance()) return this; + if (!other.getPrincipalEmail().isEmpty()) { + principalEmail_ = other.principalEmail_; + onChanged(); + } + if (other.hasServiceMetadata()) { + mergeServiceMetadata(other.getServiceMetadata()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object principalEmail_ = ""; + /** + *
+         * The email address of a Google account.
+         * 
+ * + * 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 a Google account.
+         * 
+ * + * 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 a Google account.
+         * 
+ * + * 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 a Google account.
+         * 
+ * + * string principal_email = 1; + * @return This builder for chaining. + */ + public Builder clearPrincipalEmail() { + + principalEmail_ = getDefaultInstance().getPrincipalEmail(); + onChanged(); + return this; + } + /** + *
+         * The email address of a Google account.
+         * 
+ * + * 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; + } + + private com.google.protobuf.Struct serviceMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> serviceMetadataBuilder_; + /** + *
+         * Metadata about the service that uses the service account.
+         * 
+ * + * .google.protobuf.Struct service_metadata = 2; + * @return Whether the serviceMetadata field is set. + */ + public boolean hasServiceMetadata() { + return serviceMetadataBuilder_ != null || serviceMetadata_ != null; + } + /** + *
+         * Metadata about the service that uses the service account.
+         * 
+ * + * .google.protobuf.Struct service_metadata = 2; + * @return The serviceMetadata. + */ + public com.google.protobuf.Struct getServiceMetadata() { + if (serviceMetadataBuilder_ == null) { + return serviceMetadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : serviceMetadata_; + } else { + return serviceMetadataBuilder_.getMessage(); + } + } + /** + *
+         * Metadata about the service that uses the service account.
+         * 
+ * + * .google.protobuf.Struct service_metadata = 2; + */ + public Builder setServiceMetadata(com.google.protobuf.Struct value) { + if (serviceMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serviceMetadata_ = value; + onChanged(); + } else { + serviceMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+         * Metadata about the service that uses the service account.
+         * 
+ * + * .google.protobuf.Struct service_metadata = 2; + */ + public Builder setServiceMetadata( + com.google.protobuf.Struct.Builder builderForValue) { + if (serviceMetadataBuilder_ == null) { + serviceMetadata_ = builderForValue.build(); + onChanged(); + } else { + serviceMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+         * Metadata about the service that uses the service account.
+         * 
+ * + * .google.protobuf.Struct service_metadata = 2; + */ + public Builder mergeServiceMetadata(com.google.protobuf.Struct value) { + if (serviceMetadataBuilder_ == null) { + if (serviceMetadata_ != null) { + serviceMetadata_ = + com.google.protobuf.Struct.newBuilder(serviceMetadata_).mergeFrom(value).buildPartial(); + } else { + serviceMetadata_ = value; + } + onChanged(); + } else { + serviceMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+         * Metadata about the service that uses the service account.
+         * 
+ * + * .google.protobuf.Struct service_metadata = 2; + */ + public Builder clearServiceMetadata() { + if (serviceMetadataBuilder_ == null) { + serviceMetadata_ = null; + onChanged(); + } else { + serviceMetadata_ = null; + serviceMetadataBuilder_ = null; + } + + return this; + } + /** + *
+         * Metadata about the service that uses the service account.
+         * 
+ * + * .google.protobuf.Struct service_metadata = 2; + */ + public com.google.protobuf.Struct.Builder getServiceMetadataBuilder() { + + onChanged(); + return getServiceMetadataFieldBuilder().getBuilder(); + } + /** + *
+         * Metadata about the service that uses the service account.
+         * 
+ * + * .google.protobuf.Struct service_metadata = 2; + */ + public com.google.protobuf.StructOrBuilder getServiceMetadataOrBuilder() { + if (serviceMetadataBuilder_ != null) { + return serviceMetadataBuilder_.getMessageOrBuilder(); + } else { + return serviceMetadata_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : serviceMetadata_; + } + } + /** + *
+         * Metadata about the service that uses the service account.
+         * 
+ * + * .google.protobuf.Struct service_metadata = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getServiceMetadataFieldBuilder() { + if (serviceMetadataBuilder_ == null) { + serviceMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getServiceMetadata(), + getParentForChildren(), + isClean()); + serviceMetadata_ = null; + } + return serviceMetadataBuilder_; + } + @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.ServiceAccountDelegationInfo.FirstPartyPrincipal) } - /** - *
-       * 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; + + // @@protoc_insertion_point(class_scope:google.events.cloud.audit.v1.ServiceAccountDelegationInfo.FirstPartyPrincipal) + private static final google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal(); + } + + public static google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FirstPartyPrincipal parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FirstPartyPrincipal(input, extensionRegistry); } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + + @java.lang.Override + public google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ThirdPartyPrincipalOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.cloud.audit.v1.ServiceAccountDelegationInfo.ThirdPartyPrincipal) + com.google.protobuf.MessageOrBuilder { + /** *
-       * The resource being accessed, as a REST-style string. For example:
-       *     bigquery.googlapis.com/projects/PROJECTID/datasets/DATASETID
+       * Metadata about third party identity.
        * 
* - * string resource = 1; - * @param value The resource to set. - * @return This builder for chaining. + * .google.protobuf.Struct third_party_claims = 1; + * @return Whether the thirdPartyClaims field is set. */ - public Builder setResource( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - resource_ = value; - onChanged(); - return this; - } + boolean hasThirdPartyClaims(); /** *
-       * The resource being accessed, as a REST-style string. For example:
-       *     bigquery.googlapis.com/projects/PROJECTID/datasets/DATASETID
+       * Metadata about third party identity.
        * 
* - * string resource = 1; - * @return This builder for chaining. + * .google.protobuf.Struct third_party_claims = 1; + * @return The thirdPartyClaims. */ - public Builder clearResource() { - - resource_ = getDefaultInstance().getResource(); - onChanged(); - return this; - } + com.google.protobuf.Struct getThirdPartyClaims(); /** *
-       * The resource being accessed, as a REST-style string. For example:
-       *     bigquery.googlapis.com/projects/PROJECTID/datasets/DATASETID
+       * Metadata about third party identity.
        * 
* - * string resource = 1; - * @param value The bytes for resource to set. - * @return This builder for chaining. + * .google.protobuf.Struct third_party_claims = 1; */ - public Builder setResourceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - resource_ = value; - onChanged(); - return this; + com.google.protobuf.StructOrBuilder getThirdPartyClaimsOrBuilder(); + } + /** + *
+     * Third party identity principal.
+     * 
+ * + * Protobuf type {@code google.events.cloud.audit.v1.ServiceAccountDelegationInfo.ThirdPartyPrincipal} + */ + public static final class ThirdPartyPrincipal extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.cloud.audit.v1.ServiceAccountDelegationInfo.ThirdPartyPrincipal) + ThirdPartyPrincipalOrBuilder { + private static final long serialVersionUID = 0L; + // Use ThirdPartyPrincipal.newBuilder() to construct. + private ThirdPartyPrincipal(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ThirdPartyPrincipal() { } - 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; - } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ThirdPartyPrincipal(); } - /** - *
-       * 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; - } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; } - /** - *
-       * 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; + private ThirdPartyPrincipal( + 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: { + com.google.protobuf.Struct.Builder subBuilder = null; + if (thirdPartyClaims_ != null) { + subBuilder = thirdPartyClaims_.toBuilder(); + } + thirdPartyClaims_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(thirdPartyClaims_); + thirdPartyClaims_ = subBuilder.buildPartial(); + } + + 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(); + } } - /** - *
-       * The required IAM permission.
-       * 
- * - * string permission = 2; - * @return This builder for chaining. - */ - public Builder clearPermission() { - - permission_ = getDefaultInstance().getPermission(); - onChanged(); - return this; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.cloud.audit.v1.Data.internal_static_google_events_cloud_audit_v1_ServiceAccountDelegationInfo_ThirdPartyPrincipal_descriptor; } - /** - *
-       * 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; + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.audit.v1.Data.internal_static_google_events_cloud_audit_v1_ServiceAccountDelegationInfo_ThirdPartyPrincipal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal.class, google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal.Builder.class); } - private boolean granted_ ; + public static final int THIRD_PARTY_CLAIMS_FIELD_NUMBER = 1; + private com.google.protobuf.Struct thirdPartyClaims_; /** *
-       * Whether or not authorization for `resource` and `permission`
-       * was granted.
+       * Metadata about third party identity.
        * 
* - * bool granted = 3; - * @return The granted. + * .google.protobuf.Struct third_party_claims = 1; + * @return Whether the thirdPartyClaims field is set. */ @java.lang.Override - public boolean getGranted() { - return granted_; + public boolean hasThirdPartyClaims() { + return thirdPartyClaims_ != null; } /** *
-       * Whether or not authorization for `resource` and `permission`
-       * was granted.
+       * Metadata about third party identity.
        * 
* - * bool granted = 3; - * @param value The granted to set. - * @return This builder for chaining. + * .google.protobuf.Struct third_party_claims = 1; + * @return The thirdPartyClaims. */ - public Builder setGranted(boolean value) { - - granted_ = value; - onChanged(); - return this; + @java.lang.Override + public com.google.protobuf.Struct getThirdPartyClaims() { + return thirdPartyClaims_ == null ? com.google.protobuf.Struct.getDefaultInstance() : thirdPartyClaims_; } /** *
-       * Whether or not authorization for `resource` and `permission`
-       * was granted.
+       * Metadata about third party identity.
        * 
* - * bool granted = 3; - * @return This builder for chaining. + * .google.protobuf.Struct third_party_claims = 1; */ - public Builder clearGranted() { - - granted_ = false; - onChanged(); - return this; + @java.lang.Override + public com.google.protobuf.StructOrBuilder getThirdPartyClaimsOrBuilder() { + return getThirdPartyClaims(); } + + private byte memoizedIsInitialized = -1; @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + 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 final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (thirdPartyClaims_ != null) { + output.writeMessage(1, getThirdPartyClaims()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (thirdPartyClaims_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getThirdPartyClaims()); + } + 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.ServiceAccountDelegationInfo.ThirdPartyPrincipal)) { + return super.equals(obj); + } + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal other = (google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal) obj; - // @@protoc_insertion_point(builder_scope:google.events.cloud.audit.v1.AuthorizationInfo) - } + if (hasThirdPartyClaims() != other.hasThirdPartyClaims()) return false; + if (hasThirdPartyClaims()) { + if (!getThirdPartyClaims() + .equals(other.getThirdPartyClaims())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } - // @@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(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasThirdPartyClaims()) { + hash = (37 * hash) + THIRD_PARTY_CLAIMS_FIELD_NUMBER; + hash = (53 * hash) + getThirdPartyClaims().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal 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.ServiceAccountDelegationInfo.ThirdPartyPrincipal parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal 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.ServiceAccountDelegationInfo.ThirdPartyPrincipal parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal 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.ServiceAccountDelegationInfo.ThirdPartyPrincipal 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.ServiceAccountDelegationInfo.ThirdPartyPrincipal 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.ServiceAccountDelegationInfo.ThirdPartyPrincipal 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.ServiceAccountDelegationInfo.ThirdPartyPrincipal 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.ServiceAccountDelegationInfo.ThirdPartyPrincipal 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.ServiceAccountDelegationInfo.ThirdPartyPrincipal parseFrom( + com.google.protobuf.CodedInputStream 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 getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @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.ServiceAccountDelegationInfo.ThirdPartyPrincipal prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public AuthorizationInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AuthorizationInfo(input, extensionRegistry); + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } - }; + /** + *
+       * Third party identity principal.
+       * 
+ * + * Protobuf type {@code google.events.cloud.audit.v1.ServiceAccountDelegationInfo.ThirdPartyPrincipal} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.events.cloud.audit.v1.ServiceAccountDelegationInfo.ThirdPartyPrincipal) + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipalOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.cloud.audit.v1.Data.internal_static_google_events_cloud_audit_v1_ServiceAccountDelegationInfo_ThirdPartyPrincipal_descriptor; + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.audit.v1.Data.internal_static_google_events_cloud_audit_v1_ServiceAccountDelegationInfo_ThirdPartyPrincipal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal.class, google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal.Builder.class); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + // Construct using google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - public google.events.cloud.audit.v1.Data.AuthorizationInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (thirdPartyClaimsBuilder_ == null) { + thirdPartyClaims_ = null; + } else { + thirdPartyClaims_ = null; + thirdPartyClaimsBuilder_ = null; + } + return this; + } - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.events.cloud.audit.v1.Data.internal_static_google_events_cloud_audit_v1_ServiceAccountDelegationInfo_ThirdPartyPrincipal_descriptor; + } - public interface RequestMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.events.cloud.audit.v1.RequestMetadata) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal getDefaultInstanceForType() { + return google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal.getDefaultInstance(); + } - /** - *
-     * 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(); + @java.lang.Override + public google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal build() { + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - /** - *
-     * 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 + public google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal buildPartial() { + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal result = new google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal(this); + if (thirdPartyClaimsBuilder_ == null) { + result.thirdPartyClaims_ = thirdPartyClaims_; + } else { + result.thirdPartyClaims_ = thirdPartyClaimsBuilder_.build(); + } + onBuilt(); + return result; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RequestMetadata(); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal) { + return mergeFrom((google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal)other); + } else { + super.mergeFrom(other); + return this; + } + } - @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(); + public Builder mergeFrom(google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal other) { + if (other == google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal.getDefaultInstance()) return this; + if (other.hasThirdPartyClaims()) { + mergeThirdPartyClaims(other.getThirdPartyClaims()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } - callerIp_ = s; - break; + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + } + return this; + } - callerSuppliedUserAgent_ = s; - break; + private com.google.protobuf.Struct thirdPartyClaims_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> thirdPartyClaimsBuilder_; + /** + *
+         * Metadata about third party identity.
+         * 
+ * + * .google.protobuf.Struct third_party_claims = 1; + * @return Whether the thirdPartyClaims field is set. + */ + public boolean hasThirdPartyClaims() { + return thirdPartyClaimsBuilder_ != null || thirdPartyClaims_ != null; + } + /** + *
+         * Metadata about third party identity.
+         * 
+ * + * .google.protobuf.Struct third_party_claims = 1; + * @return The thirdPartyClaims. + */ + public com.google.protobuf.Struct getThirdPartyClaims() { + if (thirdPartyClaimsBuilder_ == null) { + return thirdPartyClaims_ == null ? com.google.protobuf.Struct.getDefaultInstance() : thirdPartyClaims_; + } else { + return thirdPartyClaimsBuilder_.getMessage(); + } + } + /** + *
+         * Metadata about third party identity.
+         * 
+ * + * .google.protobuf.Struct third_party_claims = 1; + */ + public Builder setThirdPartyClaims(com.google.protobuf.Struct value) { + if (thirdPartyClaimsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + thirdPartyClaims_ = value; + onChanged(); + } else { + thirdPartyClaimsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+         * Metadata about third party identity.
+         * 
+ * + * .google.protobuf.Struct third_party_claims = 1; + */ + public Builder setThirdPartyClaims( + com.google.protobuf.Struct.Builder builderForValue) { + if (thirdPartyClaimsBuilder_ == null) { + thirdPartyClaims_ = builderForValue.build(); + onChanged(); + } else { + thirdPartyClaimsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+         * Metadata about third party identity.
+         * 
+ * + * .google.protobuf.Struct third_party_claims = 1; + */ + public Builder mergeThirdPartyClaims(com.google.protobuf.Struct value) { + if (thirdPartyClaimsBuilder_ == null) { + if (thirdPartyClaims_ != null) { + thirdPartyClaims_ = + com.google.protobuf.Struct.newBuilder(thirdPartyClaims_).mergeFrom(value).buildPartial(); + } else { + thirdPartyClaims_ = value; } + onChanged(); + } else { + thirdPartyClaimsBuilder_.mergeFrom(value); } + + return this; } - } 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(); + /** + *
+         * Metadata about third party identity.
+         * 
+ * + * .google.protobuf.Struct third_party_claims = 1; + */ + public Builder clearThirdPartyClaims() { + if (thirdPartyClaimsBuilder_ == null) { + thirdPartyClaims_ = null; + onChanged(); + } else { + thirdPartyClaims_ = null; + thirdPartyClaimsBuilder_ = null; + } + + return this; + } + /** + *
+         * Metadata about third party identity.
+         * 
+ * + * .google.protobuf.Struct third_party_claims = 1; + */ + public com.google.protobuf.Struct.Builder getThirdPartyClaimsBuilder() { + + onChanged(); + return getThirdPartyClaimsFieldBuilder().getBuilder(); + } + /** + *
+         * Metadata about third party identity.
+         * 
+ * + * .google.protobuf.Struct third_party_claims = 1; + */ + public com.google.protobuf.StructOrBuilder getThirdPartyClaimsOrBuilder() { + if (thirdPartyClaimsBuilder_ != null) { + return thirdPartyClaimsBuilder_.getMessageOrBuilder(); + } else { + return thirdPartyClaims_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : thirdPartyClaims_; + } + } + /** + *
+         * Metadata about third party identity.
+         * 
+ * + * .google.protobuf.Struct third_party_claims = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getThirdPartyClaimsFieldBuilder() { + if (thirdPartyClaimsBuilder_ == null) { + thirdPartyClaimsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getThirdPartyClaims(), + getParentForChildren(), + isClean()); + thirdPartyClaims_ = null; + } + return thirdPartyClaimsBuilder_; + } + @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.ServiceAccountDelegationInfo.ThirdPartyPrincipal) + } + + // @@protoc_insertion_point(class_scope:google.events.cloud.audit.v1.ServiceAccountDelegationInfo.ThirdPartyPrincipal) + private static final google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal(); + } + + public static google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ThirdPartyPrincipal parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ThirdPartyPrincipal(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } - 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; + + private int authorityCase_ = 0; + private java.lang.Object authority_; + public enum AuthorityCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + FIRST_PARTY_PRINCIPAL(1), + THIRD_PARTY_PRINCIPAL(2), + AUTHORITY_NOT_SET(0); + private final int value; + private AuthorityCase(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 AuthorityCase valueOf(int value) { + return forNumber(value); + } + + public static AuthorityCase forNumber(int value) { + switch (value) { + case 1: return FIRST_PARTY_PRINCIPAL; + case 2: return THIRD_PARTY_PRINCIPAL; + case 0: return AUTHORITY_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public AuthorityCase + getAuthorityCase() { + return AuthorityCase.forNumber( + authorityCase_); } + public static final int FIRST_PARTY_PRINCIPAL_FIELD_NUMBER = 1; + /** + *
+     * First party (Google) identity as the real authority.
+     * 
+ * + * .google.events.cloud.audit.v1.ServiceAccountDelegationInfo.FirstPartyPrincipal first_party_principal = 1; + * @return Whether the firstPartyPrincipal field is set. + */ @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 boolean hasFirstPartyPrincipal() { + return authorityCase_ == 1; } - - public static final int CALLER_IP_FIELD_NUMBER = 1; - private volatile java.lang.Object callerIp_; /** *
-     * The IP address of the caller.
+     * First party (Google) identity as the real authority.
      * 
* - * string caller_ip = 1; - * @return The callerIp. + * .google.events.cloud.audit.v1.ServiceAccountDelegationInfo.FirstPartyPrincipal first_party_principal = 1; + * @return The firstPartyPrincipal. */ @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; + public google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal getFirstPartyPrincipal() { + if (authorityCase_ == 1) { + return (google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal) authority_; } + return google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal.getDefaultInstance(); } /** *
-     * The IP address of the caller.
+     * First party (Google) identity as the real authority.
      * 
* - * string caller_ip = 1; - * @return The bytes for callerIp. + * .google.events.cloud.audit.v1.ServiceAccountDelegationInfo.FirstPartyPrincipal first_party_principal = 1; */ @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 google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipalOrBuilder getFirstPartyPrincipalOrBuilder() { + if (authorityCase_ == 1) { + return (google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal) authority_; } + return google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal.getDefaultInstance(); } - public static final int CALLER_SUPPLIED_USER_AGENT_FIELD_NUMBER = 2; - private volatile java.lang.Object callerSuppliedUserAgent_; + public static final int THIRD_PARTY_PRINCIPAL_FIELD_NUMBER = 2; /** *
-     * 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.
+     * Third party identity as the real authority.
      * 
* - * string caller_supplied_user_agent = 2; - * @return The callerSuppliedUserAgent. + * .google.events.cloud.audit.v1.ServiceAccountDelegationInfo.ThirdPartyPrincipal third_party_principal = 2; + * @return Whether the thirdPartyPrincipal field is set. */ @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; + public boolean hasThirdPartyPrincipal() { + return authorityCase_ == 2; + } + /** + *
+     * Third party identity as the real authority.
+     * 
+ * + * .google.events.cloud.audit.v1.ServiceAccountDelegationInfo.ThirdPartyPrincipal third_party_principal = 2; + * @return The thirdPartyPrincipal. + */ + @java.lang.Override + public google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal getThirdPartyPrincipal() { + if (authorityCase_ == 2) { + return (google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal) authority_; } + return google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal.getDefaultInstance(); } /** *
-     * 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.
+     * Third party identity as the real authority.
      * 
* - * string caller_supplied_user_agent = 2; - * @return The bytes for callerSuppliedUserAgent. + * .google.events.cloud.audit.v1.ServiceAccountDelegationInfo.ThirdPartyPrincipal third_party_principal = 2; */ @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; + public google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipalOrBuilder getThirdPartyPrincipalOrBuilder() { + if (authorityCase_ == 2) { + return (google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal) authority_; } + return google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @@ -5293,11 +12701,11 @@ public final boolean isInitialized() { @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 (authorityCase_ == 1) { + output.writeMessage(1, (google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal) authority_); } - if (!getCallerSuppliedUserAgentBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, callerSuppliedUserAgent_); + if (authorityCase_ == 2) { + output.writeMessage(2, (google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal) authority_); } unknownFields.writeTo(output); } @@ -5308,11 +12716,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getCallerIpBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, callerIp_); + if (authorityCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal) authority_); } - if (!getCallerSuppliedUserAgentBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, callerSuppliedUserAgent_); + if (authorityCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal) authority_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -5324,15 +12734,24 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof google.events.cloud.audit.v1.Data.RequestMetadata)) { + if (!(obj instanceof google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo)) { 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; + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo other = (google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo) obj; + + if (!getAuthorityCase().equals(other.getAuthorityCase())) return false; + switch (authorityCase_) { + case 1: + if (!getFirstPartyPrincipal() + .equals(other.getFirstPartyPrincipal())) return false; + break; + case 2: + if (!getThirdPartyPrincipal() + .equals(other.getThirdPartyPrincipal())) return false; + break; + case 0: + default: + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -5344,78 +12763,86 @@ public int hashCode() { } 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(); + switch (authorityCase_) { + case 1: + hash = (37 * hash) + FIRST_PARTY_PRINCIPAL_FIELD_NUMBER; + hash = (53 * hash) + getFirstPartyPrincipal().hashCode(); + break; + case 2: + hash = (37 * hash) + THIRD_PARTY_PRINCIPAL_FIELD_NUMBER; + hash = (53 * hash) + getThirdPartyPrincipal().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static google.events.cloud.audit.v1.Data.RequestMetadata parseFrom( + public static google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static google.events.cloud.audit.v1.Data.RequestMetadata parseFrom( + public static google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo 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( + public static google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo 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( + public static google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo 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) + public static google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static google.events.cloud.audit.v1.Data.RequestMetadata parseFrom( + public static google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo 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) + public static google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo 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( + public static google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo 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) + public static google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo 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( + public static google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo 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( + public static google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo 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( + public static google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -5428,7 +12855,7 @@ public static google.events.cloud.audit.v1.Data.RequestMetadata parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(google.events.cloud.audit.v1.Data.RequestMetadata prototype) { + public static Builder newBuilder(google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -5445,29 +12872,29 @@ protected Builder newBuilderForType( } /** *
-     * Metadata about the request.
+     * Identity delegation history of an authenticated service account.
      * 
* - * Protobuf type {@code google.events.cloud.audit.v1.RequestMetadata} + * Protobuf type {@code google.events.cloud.audit.v1.ServiceAccountDelegationInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.events.cloud.audit.v1.RequestMetadata) - google.events.cloud.audit.v1.Data.RequestMetadataOrBuilder { + // @@protoc_insertion_point(builder_implements:google.events.cloud.audit.v1.ServiceAccountDelegationInfo) + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfoOrBuilder { 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; + return google.events.cloud.audit.v1.Data.internal_static_google_events_cloud_audit_v1_ServiceAccountDelegationInfo_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 + return google.events.cloud.audit.v1.Data.internal_static_google_events_cloud_audit_v1_ServiceAccountDelegationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - google.events.cloud.audit.v1.Data.RequestMetadata.class, google.events.cloud.audit.v1.Data.RequestMetadata.Builder.class); + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.class, google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.Builder.class); } - // Construct using google.events.cloud.audit.v1.Data.RequestMetadata.newBuilder() + // Construct using google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -5485,27 +12912,25 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - callerIp_ = ""; - - callerSuppliedUserAgent_ = ""; - + authorityCase_ = 0; + authority_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return google.events.cloud.audit.v1.Data.internal_static_google_events_cloud_audit_v1_RequestMetadata_descriptor; + return google.events.cloud.audit.v1.Data.internal_static_google_events_cloud_audit_v1_ServiceAccountDelegationInfo_descriptor; } @java.lang.Override - public google.events.cloud.audit.v1.Data.RequestMetadata getDefaultInstanceForType() { - return google.events.cloud.audit.v1.Data.RequestMetadata.getDefaultInstance(); + public google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo getDefaultInstanceForType() { + return google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.getDefaultInstance(); } @java.lang.Override - public google.events.cloud.audit.v1.Data.RequestMetadata build() { - google.events.cloud.audit.v1.Data.RequestMetadata result = buildPartial(); + public google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo build() { + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -5513,10 +12938,23 @@ public google.events.cloud.audit.v1.Data.RequestMetadata build() { } @java.lang.Override - public google.events.cloud.audit.v1.Data.RequestMetadata buildPartial() { - google.events.cloud.audit.v1.Data.RequestMetadata result = new google.events.cloud.audit.v1.Data.RequestMetadata(this); - result.callerIp_ = callerIp_; - result.callerSuppliedUserAgent_ = callerSuppliedUserAgent_; + public google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo buildPartial() { + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo result = new google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo(this); + if (authorityCase_ == 1) { + if (firstPartyPrincipalBuilder_ == null) { + result.authority_ = authority_; + } else { + result.authority_ = firstPartyPrincipalBuilder_.build(); + } + } + if (authorityCase_ == 2) { + if (thirdPartyPrincipalBuilder_ == null) { + result.authority_ = authority_; + } else { + result.authority_ = thirdPartyPrincipalBuilder_.build(); + } + } + result.authorityCase_ = authorityCase_; onBuilt(); return result; } @@ -5555,23 +12993,28 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof google.events.cloud.audit.v1.Data.RequestMetadata) { - return mergeFrom((google.events.cloud.audit.v1.Data.RequestMetadata)other); + if (other instanceof google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo) { + return mergeFrom((google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(google.events.cloud.audit.v1.Data.RequestMetadata other) { - if (other == google.events.cloud.audit.v1.Data.RequestMetadata.getDefaultInstance()) return this; - if (!other.getCallerIp().isEmpty()) { - callerIp_ = other.callerIp_; - onChanged(); - } - if (!other.getCallerSuppliedUserAgent().isEmpty()) { - callerSuppliedUserAgent_ = other.callerSuppliedUserAgent_; - onChanged(); + public Builder mergeFrom(google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo other) { + if (other == google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.getDefaultInstance()) return this; + switch (other.getAuthorityCase()) { + case FIRST_PARTY_PRINCIPAL: { + mergeFirstPartyPrincipal(other.getFirstPartyPrincipal()); + break; + } + case THIRD_PARTY_PRINCIPAL: { + mergeThirdPartyPrincipal(other.getThirdPartyPrincipal()); + break; + } + case AUTHORITY_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -5588,11 +13031,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - google.events.cloud.audit.v1.Data.RequestMetadata parsedMessage = null; + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (google.events.cloud.audit.v1.Data.RequestMetadata) e.getUnfinishedMessage(); + parsedMessage = (google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -5601,242 +13044,374 @@ public Builder mergeFrom( } return this; } - - private java.lang.Object callerIp_ = ""; + private int authorityCase_ = 0; + private java.lang.Object authority_; + public AuthorityCase + getAuthorityCase() { + return AuthorityCase.forNumber( + authorityCase_); + } + + public Builder clearAuthority() { + authorityCase_ = 0; + authority_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal, google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal.Builder, google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipalOrBuilder> firstPartyPrincipalBuilder_; + /** + *
+       * First party (Google) identity as the real authority.
+       * 
+ * + * .google.events.cloud.audit.v1.ServiceAccountDelegationInfo.FirstPartyPrincipal first_party_principal = 1; + * @return Whether the firstPartyPrincipal field is set. + */ + @java.lang.Override + public boolean hasFirstPartyPrincipal() { + return authorityCase_ == 1; + } + /** + *
+       * First party (Google) identity as the real authority.
+       * 
+ * + * .google.events.cloud.audit.v1.ServiceAccountDelegationInfo.FirstPartyPrincipal first_party_principal = 1; + * @return The firstPartyPrincipal. + */ + @java.lang.Override + public google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal getFirstPartyPrincipal() { + if (firstPartyPrincipalBuilder_ == null) { + if (authorityCase_ == 1) { + return (google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal) authority_; + } + return google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal.getDefaultInstance(); + } else { + if (authorityCase_ == 1) { + return firstPartyPrincipalBuilder_.getMessage(); + } + return google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal.getDefaultInstance(); + } + } + /** + *
+       * First party (Google) identity as the real authority.
+       * 
+ * + * .google.events.cloud.audit.v1.ServiceAccountDelegationInfo.FirstPartyPrincipal first_party_principal = 1; + */ + public Builder setFirstPartyPrincipal(google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal value) { + if (firstPartyPrincipalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authority_ = value; + onChanged(); + } else { + firstPartyPrincipalBuilder_.setMessage(value); + } + authorityCase_ = 1; + return this; + } + /** + *
+       * First party (Google) identity as the real authority.
+       * 
+ * + * .google.events.cloud.audit.v1.ServiceAccountDelegationInfo.FirstPartyPrincipal first_party_principal = 1; + */ + public Builder setFirstPartyPrincipal( + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal.Builder builderForValue) { + if (firstPartyPrincipalBuilder_ == null) { + authority_ = builderForValue.build(); + onChanged(); + } else { + firstPartyPrincipalBuilder_.setMessage(builderForValue.build()); + } + authorityCase_ = 1; + return this; + } + /** + *
+       * First party (Google) identity as the real authority.
+       * 
+ * + * .google.events.cloud.audit.v1.ServiceAccountDelegationInfo.FirstPartyPrincipal first_party_principal = 1; + */ + public Builder mergeFirstPartyPrincipal(google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal value) { + if (firstPartyPrincipalBuilder_ == null) { + if (authorityCase_ == 1 && + authority_ != google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal.getDefaultInstance()) { + authority_ = google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal.newBuilder((google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal) authority_) + .mergeFrom(value).buildPartial(); + } else { + authority_ = value; + } + onChanged(); + } else { + if (authorityCase_ == 1) { + firstPartyPrincipalBuilder_.mergeFrom(value); + } + firstPartyPrincipalBuilder_.setMessage(value); + } + authorityCase_ = 1; + return this; + } + /** + *
+       * First party (Google) identity as the real authority.
+       * 
+ * + * .google.events.cloud.audit.v1.ServiceAccountDelegationInfo.FirstPartyPrincipal first_party_principal = 1; + */ + public Builder clearFirstPartyPrincipal() { + if (firstPartyPrincipalBuilder_ == null) { + if (authorityCase_ == 1) { + authorityCase_ = 0; + authority_ = null; + onChanged(); + } + } else { + if (authorityCase_ == 1) { + authorityCase_ = 0; + authority_ = null; + } + firstPartyPrincipalBuilder_.clear(); + } + return this; + } /** *
-       * The IP address of the caller.
+       * First party (Google) identity as the real authority.
        * 
* - * string caller_ip = 1; - * @return The callerIp. + * .google.events.cloud.audit.v1.ServiceAccountDelegationInfo.FirstPartyPrincipal first_party_principal = 1; */ - 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; + public google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal.Builder getFirstPartyPrincipalBuilder() { + return getFirstPartyPrincipalFieldBuilder().getBuilder(); + } + /** + *
+       * First party (Google) identity as the real authority.
+       * 
+ * + * .google.events.cloud.audit.v1.ServiceAccountDelegationInfo.FirstPartyPrincipal first_party_principal = 1; + */ + @java.lang.Override + public google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipalOrBuilder getFirstPartyPrincipalOrBuilder() { + if ((authorityCase_ == 1) && (firstPartyPrincipalBuilder_ != null)) { + return firstPartyPrincipalBuilder_.getMessageOrBuilder(); } else { - return (java.lang.String) ref; + if (authorityCase_ == 1) { + return (google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal) authority_; + } + return google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal.getDefaultInstance(); } } /** *
-       * The IP address of the caller.
+       * First party (Google) identity as the real authority.
        * 
* - * string caller_ip = 1; - * @return The bytes for callerIp. + * .google.events.cloud.audit.v1.ServiceAccountDelegationInfo.FirstPartyPrincipal first_party_principal = 1; */ - 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; + private com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal, google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal.Builder, google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipalOrBuilder> + getFirstPartyPrincipalFieldBuilder() { + if (firstPartyPrincipalBuilder_ == null) { + if (!(authorityCase_ == 1)) { + authority_ = google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal.getDefaultInstance(); + } + firstPartyPrincipalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal, google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal.Builder, google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipalOrBuilder>( + (google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.FirstPartyPrincipal) authority_, + getParentForChildren(), + isClean()); + authority_ = null; } + authorityCase_ = 1; + onChanged();; + return firstPartyPrincipalBuilder_; } + + private com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal, google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal.Builder, google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipalOrBuilder> thirdPartyPrincipalBuilder_; /** *
-       * The IP address of the caller.
+       * Third party identity as the real authority.
        * 
* - * string caller_ip = 1; - * @param value The callerIp to set. - * @return This builder for chaining. + * .google.events.cloud.audit.v1.ServiceAccountDelegationInfo.ThirdPartyPrincipal third_party_principal = 2; + * @return Whether the thirdPartyPrincipal field is set. */ - public Builder setCallerIp( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - callerIp_ = value; - onChanged(); - return this; + @java.lang.Override + public boolean hasThirdPartyPrincipal() { + return authorityCase_ == 2; } /** *
-       * The IP address of the caller.
+       * Third party identity as the real authority.
        * 
* - * string caller_ip = 1; - * @return This builder for chaining. + * .google.events.cloud.audit.v1.ServiceAccountDelegationInfo.ThirdPartyPrincipal third_party_principal = 2; + * @return The thirdPartyPrincipal. */ - public Builder clearCallerIp() { - - callerIp_ = getDefaultInstance().getCallerIp(); - onChanged(); - return this; + @java.lang.Override + public google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal getThirdPartyPrincipal() { + if (thirdPartyPrincipalBuilder_ == null) { + if (authorityCase_ == 2) { + return (google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal) authority_; + } + return google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal.getDefaultInstance(); + } else { + if (authorityCase_ == 2) { + return thirdPartyPrincipalBuilder_.getMessage(); + } + return google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal.getDefaultInstance(); + } } /** *
-       * The IP address of the caller.
+       * Third party identity as the real authority.
        * 
* - * string caller_ip = 1; - * @param value The bytes for callerIp to set. - * @return This builder for chaining. + * .google.events.cloud.audit.v1.ServiceAccountDelegationInfo.ThirdPartyPrincipal third_party_principal = 2; */ - public Builder setCallerIpBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - callerIp_ = value; - onChanged(); + public Builder setThirdPartyPrincipal(google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal value) { + if (thirdPartyPrincipalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authority_ = value; + onChanged(); + } else { + thirdPartyPrincipalBuilder_.setMessage(value); + } + authorityCase_ = 2; 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.
+       * Third party identity as the real authority.
        * 
* - * string caller_supplied_user_agent = 2; - * @return The callerSuppliedUserAgent. + * .google.events.cloud.audit.v1.ServiceAccountDelegationInfo.ThirdPartyPrincipal third_party_principal = 2; */ - 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; + public Builder setThirdPartyPrincipal( + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal.Builder builderForValue) { + if (thirdPartyPrincipalBuilder_ == null) { + authority_ = builderForValue.build(); + onChanged(); } else { - return (java.lang.String) ref; + thirdPartyPrincipalBuilder_.setMessage(builderForValue.build()); } + authorityCase_ = 2; + 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.
+       * Third party identity as the real authority.
        * 
* - * string caller_supplied_user_agent = 2; - * @return The bytes for callerSuppliedUserAgent. + * .google.events.cloud.audit.v1.ServiceAccountDelegationInfo.ThirdPartyPrincipal third_party_principal = 2; */ - 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; + public Builder mergeThirdPartyPrincipal(google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal value) { + if (thirdPartyPrincipalBuilder_ == null) { + if (authorityCase_ == 2 && + authority_ != google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal.getDefaultInstance()) { + authority_ = google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal.newBuilder((google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal) authority_) + .mergeFrom(value).buildPartial(); + } else { + authority_ = value; + } + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + if (authorityCase_ == 2) { + thirdPartyPrincipalBuilder_.mergeFrom(value); + } + thirdPartyPrincipalBuilder_.setMessage(value); } + authorityCase_ = 2; + 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.
+       * Third party identity as the real authority.
        * 
* - * string caller_supplied_user_agent = 2; - * @param value The callerSuppliedUserAgent to set. - * @return This builder for chaining. + * .google.events.cloud.audit.v1.ServiceAccountDelegationInfo.ThirdPartyPrincipal third_party_principal = 2; */ - public Builder setCallerSuppliedUserAgent( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - callerSuppliedUserAgent_ = value; - onChanged(); + public Builder clearThirdPartyPrincipal() { + if (thirdPartyPrincipalBuilder_ == null) { + if (authorityCase_ == 2) { + authorityCase_ = 0; + authority_ = null; + onChanged(); + } + } else { + if (authorityCase_ == 2) { + authorityCase_ = 0; + authority_ = null; + } + thirdPartyPrincipalBuilder_.clear(); + } 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.
+       * Third party identity as the real authority.
        * 
* - * string caller_supplied_user_agent = 2; - * @return This builder for chaining. + * .google.events.cloud.audit.v1.ServiceAccountDelegationInfo.ThirdPartyPrincipal third_party_principal = 2; */ - public Builder clearCallerSuppliedUserAgent() { - - callerSuppliedUserAgent_ = getDefaultInstance().getCallerSuppliedUserAgent(); - onChanged(); - return this; + public google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal.Builder getThirdPartyPrincipalBuilder() { + return getThirdPartyPrincipalFieldBuilder().getBuilder(); } /** *
-       * 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.
+       * Third party identity as the real authority.
        * 
* - * string caller_supplied_user_agent = 2; - * @param value The bytes for callerSuppliedUserAgent to set. - * @return This builder for chaining. + * .google.events.cloud.audit.v1.ServiceAccountDelegationInfo.ThirdPartyPrincipal third_party_principal = 2; */ - 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 google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipalOrBuilder getThirdPartyPrincipalOrBuilder() { + if ((authorityCase_ == 2) && (thirdPartyPrincipalBuilder_ != null)) { + return thirdPartyPrincipalBuilder_.getMessageOrBuilder(); + } else { + if (authorityCase_ == 2) { + return (google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal) authority_; + } + return google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal.getDefaultInstance(); + } + } + /** + *
+       * Third party identity as the real authority.
+       * 
+ * + * .google.events.cloud.audit.v1.ServiceAccountDelegationInfo.ThirdPartyPrincipal third_party_principal = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal, google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal.Builder, google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipalOrBuilder> + getThirdPartyPrincipalFieldBuilder() { + if (thirdPartyPrincipalBuilder_ == null) { + if (!(authorityCase_ == 2)) { + authority_ = google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal.getDefaultInstance(); + } + thirdPartyPrincipalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal, google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal.Builder, google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipalOrBuilder>( + (google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo.ThirdPartyPrincipal) authority_, + getParentForChildren(), + isClean()); + authority_ = null; + } + authorityCase_ = 2; + onChanged();; + return thirdPartyPrincipalBuilder_; } @java.lang.Override public final Builder setUnknownFields( @@ -5851,41 +13426,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:google.events.cloud.audit.v1.RequestMetadata) + // @@protoc_insertion_point(builder_scope:google.events.cloud.audit.v1.ServiceAccountDelegationInfo) } - // @@protoc_insertion_point(class_scope:google.events.cloud.audit.v1.RequestMetadata) - private static final google.events.cloud.audit.v1.Data.RequestMetadata DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.events.cloud.audit.v1.ServiceAccountDelegationInfo) + private static final google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new google.events.cloud.audit.v1.Data.RequestMetadata(); + DEFAULT_INSTANCE = new google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo(); } - public static google.events.cloud.audit.v1.Data.RequestMetadata getDefaultInstance() { + public static google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public RequestMetadata parsePartialFrom( + public ServiceAccountDelegationInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RequestMetadata(input, extensionRegistry); + return new ServiceAccountDelegationInfo(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public google.events.cloud.audit.v1.Data.RequestMetadata getDefaultInstanceForType() { + public google.events.cloud.audit.v1.Data.ServiceAccountDelegationInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -5911,6 +13486,26 @@ public google.events.cloud.audit.v1.Data.RequestMetadata getDefaultInstanceForTy private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_events_cloud_audit_v1_RequestMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_cloud_audit_v1_ResourceLocation_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_cloud_audit_v1_ResourceLocation_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_cloud_audit_v1_ServiceAccountDelegationInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_cloud_audit_v1_ServiceAccountDelegationInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_cloud_audit_v1_ServiceAccountDelegationInfo_FirstPartyPrincipal_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_cloud_audit_v1_ServiceAccountDelegationInfo_FirstPartyPrincipal_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_cloud_audit_v1_ServiceAccountDelegationInfo_ThirdPartyPrincipal_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_cloud_audit_v1_ServiceAccountDelegationInfo_ThirdPartyPrincipal_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -5922,25 +13517,56 @@ public google.events.cloud.audit.v1.Data.RequestMetadata getDefaultInstanceForTy java.lang.String[] descriptorData = { "\n\'google/events/cloud/audit/v1/data.prot" + "o\022\034google.events.cloud.audit.v1\032\034google/" + - "protobuf/struct.proto\032\027google/rpc/status" + - ".proto\"\371\003\n\014AuditLogData\022\024\n\014service_name\030" + - "\007 \001(\t\022\023\n\013method_name\030\010 \001(\t\022\025\n\rresource_n" + - "ame\030\013 \001(\t\022\032\n\022num_response_items\030\014 \001(\003\022\"\n" + - "\006status\030\002 \001(\0132\022.google.rpc.Status\022M\n\023aut" + - "hentication_info\030\003 \001(\01320.google.events.c" + - "loud.audit.v1.AuthenticationInfo\022K\n\022auth" + - "orization_info\030\t \003(\0132/.google.events.clo" + - "ud.audit.v1.AuthorizationInfo\022G\n\020request" + - "_metadata\030\004 \001(\0132-.google.events.cloud.au" + - "dit.v1.RequestMetadata\022(\n\007request\030\020 \001(\0132" + - "\027.google.protobuf.Struct\022)\n\010response\030\021 \001" + - "(\0132\027.google.protobuf.Struct\022-\n\014service_d" + - "ata\030\017 \001(\0132\027.google.protobuf.Struct\"-\n\022Au" + - "thenticationInfo\022\027\n\017principal_email\030\001 \001(" + - "\t\"J\n\021AuthorizationInfo\022\020\n\010resource\030\001 \001(\t" + - "\022\022\n\npermission\030\002 \001(\t\022\017\n\007granted\030\003 \001(\010\"H\n" + - "\017RequestMetadata\022\021\n\tcaller_ip\030\001 \001(\t\022\"\n\032c" + - "aller_supplied_user_agent\030\002 \001(\tB(\252\002%Goog" + + "protobuf/struct.proto\032*google/rpc/contex" + + "t/attribute_context.proto\032\027google/rpc/st" + + "atus.proto\"\251\005\n\014AuditLogData\022\024\n\014service_n" + + "ame\030\007 \001(\t\022\023\n\013method_name\030\010 \001(\t\022\025\n\rresour" + + "ce_name\030\013 \001(\t\022I\n\021resource_location\030\024 \001(\013" + + "2..google.events.cloud.audit.v1.Resource" + + "Location\0228\n\027resource_original_state\030\023 \001(" + + "\0132\027.google.protobuf.Struct\022\032\n\022num_respon" + + "se_items\030\014 \001(\003\022\"\n\006status\030\002 \001(\0132\022.google." + + "rpc.Status\022M\n\023authentication_info\030\003 \001(\0132" + + "0.google.events.cloud.audit.v1.Authentic" + + "ationInfo\022K\n\022authorization_info\030\t \003(\0132/." + + "google.events.cloud.audit.v1.Authorizati" + + "onInfo\022G\n\020request_metadata\030\004 \001(\0132-.googl" + + "e.events.cloud.audit.v1.RequestMetadata\022" + + "(\n\007request\030\020 \001(\0132\027.google.protobuf.Struc" + + "t\022)\n\010response\030\021 \001(\0132\027.google.protobuf.St" + + "ruct\022)\n\010metadata\030\022 \001(\0132\027.google.protobuf" + + ".Struct\022-\n\014service_data\030\017 \001(\0132\027.google.p" + + "rotobuf.Struct\"\243\002\n\022AuthenticationInfo\022\027\n" + + "\017principal_email\030\001 \001(\t\022\032\n\022authority_sele" + + "ctor\030\002 \001(\t\0226\n\025third_party_principal\030\004 \001(" + + "\0132\027.google.protobuf.Struct\022 \n\030service_ac" + + "count_key_name\030\005 \001(\t\022c\n\037service_account_" + + "delegation_info\030\006 \003(\0132:.google.events.cl" + + "oud.audit.v1.ServiceAccountDelegationInf" + + "o\022\031\n\021principal_subject\030\010 \001(\t\"\226\001\n\021Authori" + + "zationInfo\022\020\n\010resource\030\001 \001(\t\022\022\n\npermissi" + + "on\030\002 \001(\t\022\017\n\007granted\030\003 \001(\010\022J\n\023resource_at" + + "tributes\030\005 \001(\0132-.google.rpc.context.Attr" + + "ibuteContext.Resource\"\365\001\n\017RequestMetadat" + + "a\022\021\n\tcaller_ip\030\001 \001(\t\022\"\n\032caller_supplied_" + + "user_agent\030\002 \001(\t\022\026\n\016caller_network\030\003 \001(\t" + + "\022H\n\022request_attributes\030\007 \001(\0132,.google.rp" + + "c.context.AttributeContext.Request\022I\n\026de" + + "stination_attributes\030\010 \001(\0132).google.rpc." + + "context.AttributeContext.Peer\"I\n\020Resourc" + + "eLocation\022\031\n\021current_locations\030\001 \003(\t\022\032\n\022" + + "original_locations\030\002 \003(\t\"\274\003\n\034ServiceAcco" + + "untDelegationInfo\022o\n\025first_party_princip" + + "al\030\001 \001(\0132N.google.events.cloud.audit.v1." + + "ServiceAccountDelegationInfo.FirstPartyP" + + "rincipalH\000\022o\n\025third_party_principal\030\002 \001(" + + "\0132N.google.events.cloud.audit.v1.Service" + + "AccountDelegationInfo.ThirdPartyPrincipa" + + "lH\000\032a\n\023FirstPartyPrincipal\022\027\n\017principal_" + + "email\030\001 \001(\t\0221\n\020service_metadata\030\002 \001(\0132\027." + + "google.protobuf.Struct\032J\n\023ThirdPartyPrin" + + "cipal\0223\n\022third_party_claims\030\001 \001(\0132\027.goog" + + "le.protobuf.StructB\013\n\tAuthorityB(\252\002%Goog" + "le.Events.Protobuf.Cloud.Audit.V1b\006proto" + "3" }; @@ -5948,6 +13574,7 @@ public google.events.cloud.audit.v1.Data.RequestMetadata getDefaultInstanceForTy .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.StructProto.getDescriptor(), + com.google.rpc.context.AttributeContextProto.getDescriptor(), com.google.rpc.StatusProto.getDescriptor(), }); internal_static_google_events_cloud_audit_v1_AuditLogData_descriptor = @@ -5955,26 +13582,51 @@ public google.events.cloud.audit.v1.Data.RequestMetadata getDefaultInstanceForTy internal_static_google_events_cloud_audit_v1_AuditLogData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_events_cloud_audit_v1_AuditLogData_descriptor, - new java.lang.String[] { "ServiceName", "MethodName", "ResourceName", "NumResponseItems", "Status", "AuthenticationInfo", "AuthorizationInfo", "RequestMetadata", "Request", "Response", "ServiceData", }); + new java.lang.String[] { "ServiceName", "MethodName", "ResourceName", "ResourceLocation", "ResourceOriginalState", "NumResponseItems", "Status", "AuthenticationInfo", "AuthorizationInfo", "RequestMetadata", "Request", "Response", "Metadata", "ServiceData", }); internal_static_google_events_cloud_audit_v1_AuthenticationInfo_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_google_events_cloud_audit_v1_AuthenticationInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_events_cloud_audit_v1_AuthenticationInfo_descriptor, - new java.lang.String[] { "PrincipalEmail", }); + new java.lang.String[] { "PrincipalEmail", "AuthoritySelector", "ThirdPartyPrincipal", "ServiceAccountKeyName", "ServiceAccountDelegationInfo", "PrincipalSubject", }); internal_static_google_events_cloud_audit_v1_AuthorizationInfo_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_events_cloud_audit_v1_AuthorizationInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_events_cloud_audit_v1_AuthorizationInfo_descriptor, - new java.lang.String[] { "Resource", "Permission", "Granted", }); + new java.lang.String[] { "Resource", "Permission", "Granted", "ResourceAttributes", }); internal_static_google_events_cloud_audit_v1_RequestMetadata_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_google_events_cloud_audit_v1_RequestMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_events_cloud_audit_v1_RequestMetadata_descriptor, - new java.lang.String[] { "CallerIp", "CallerSuppliedUserAgent", }); + new java.lang.String[] { "CallerIp", "CallerSuppliedUserAgent", "CallerNetwork", "RequestAttributes", "DestinationAttributes", }); + internal_static_google_events_cloud_audit_v1_ResourceLocation_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_events_cloud_audit_v1_ResourceLocation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_cloud_audit_v1_ResourceLocation_descriptor, + new java.lang.String[] { "CurrentLocations", "OriginalLocations", }); + internal_static_google_events_cloud_audit_v1_ServiceAccountDelegationInfo_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_events_cloud_audit_v1_ServiceAccountDelegationInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_cloud_audit_v1_ServiceAccountDelegationInfo_descriptor, + new java.lang.String[] { "FirstPartyPrincipal", "ThirdPartyPrincipal", "Authority", }); + internal_static_google_events_cloud_audit_v1_ServiceAccountDelegationInfo_FirstPartyPrincipal_descriptor = + internal_static_google_events_cloud_audit_v1_ServiceAccountDelegationInfo_descriptor.getNestedTypes().get(0); + internal_static_google_events_cloud_audit_v1_ServiceAccountDelegationInfo_FirstPartyPrincipal_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_cloud_audit_v1_ServiceAccountDelegationInfo_FirstPartyPrincipal_descriptor, + new java.lang.String[] { "PrincipalEmail", "ServiceMetadata", }); + internal_static_google_events_cloud_audit_v1_ServiceAccountDelegationInfo_ThirdPartyPrincipal_descriptor = + internal_static_google_events_cloud_audit_v1_ServiceAccountDelegationInfo_descriptor.getNestedTypes().get(1); + internal_static_google_events_cloud_audit_v1_ServiceAccountDelegationInfo_ThirdPartyPrincipal_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_cloud_audit_v1_ServiceAccountDelegationInfo_ThirdPartyPrincipal_descriptor, + new java.lang.String[] { "ThirdPartyClaims", }); com.google.protobuf.StructProto.getDescriptor(); + com.google.rpc.context.AttributeContextProto.getDescriptor(); com.google.rpc.StatusProto.getDescriptor(); } diff --git a/src/google/events/cloud/build/v1/Data.java b/src/google/events/cloud/build/v1/Data.java new file mode 100644 index 00000000..4b9e28ab --- /dev/null +++ b/src/google/events/cloud/build/v1/Data.java @@ -0,0 +1,31591 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/events/cloud/build/v1/data.proto + +package google.events.cloud.build.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 BuildEventDataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.cloud.build.v1.BuildEventData) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique identifier of the build.
+     * 
+ * + * string id = 1; + * @return The id. + */ + java.lang.String getId(); + /** + *
+     * Unique identifier of the build.
+     * 
+ * + * string id = 1; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+     * ID of the project.
+     * 
+ * + * string project_id = 16; + * @return The projectId. + */ + java.lang.String getProjectId(); + /** + *
+     * ID of the project.
+     * 
+ * + * string project_id = 16; + * @return The bytes for projectId. + */ + com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+     * Status of the build.
+     * 
+ * + * .google.events.cloud.build.v1.BuildEventData.Status status = 2; + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + *
+     * Status of the build.
+     * 
+ * + * .google.events.cloud.build.v1.BuildEventData.Status status = 2; + * @return The status. + */ + google.events.cloud.build.v1.Data.BuildEventData.Status getStatus(); + + /** + *
+     * Customer-readable message about the current status.
+     * 
+ * + * string status_detail = 24; + * @return The statusDetail. + */ + java.lang.String getStatusDetail(); + /** + *
+     * Customer-readable message about the current status.
+     * 
+ * + * string status_detail = 24; + * @return The bytes for statusDetail. + */ + com.google.protobuf.ByteString + getStatusDetailBytes(); + + /** + *
+     * The location of the source files to build.
+     * 
+ * + * .google.events.cloud.build.v1.Source source = 3; + * @return Whether the source field is set. + */ + boolean hasSource(); + /** + *
+     * The location of the source files to build.
+     * 
+ * + * .google.events.cloud.build.v1.Source source = 3; + * @return The source. + */ + google.events.cloud.build.v1.Data.Source getSource(); + /** + *
+     * The location of the source files to build.
+     * 
+ * + * .google.events.cloud.build.v1.Source source = 3; + */ + google.events.cloud.build.v1.Data.SourceOrBuilder getSourceOrBuilder(); + + /** + *
+     * The operations to be performed on the workspace.
+     * 
+ * + * repeated .google.events.cloud.build.v1.BuildStep steps = 11; + */ + java.util.List + getStepsList(); + /** + *
+     * The operations to be performed on the workspace.
+     * 
+ * + * repeated .google.events.cloud.build.v1.BuildStep steps = 11; + */ + google.events.cloud.build.v1.Data.BuildStep getSteps(int index); + /** + *
+     * The operations to be performed on the workspace.
+     * 
+ * + * repeated .google.events.cloud.build.v1.BuildStep steps = 11; + */ + int getStepsCount(); + /** + *
+     * The operations to be performed on the workspace.
+     * 
+ * + * repeated .google.events.cloud.build.v1.BuildStep steps = 11; + */ + java.util.List + getStepsOrBuilderList(); + /** + *
+     * The operations to be performed on the workspace.
+     * 
+ * + * repeated .google.events.cloud.build.v1.BuildStep steps = 11; + */ + google.events.cloud.build.v1.Data.BuildStepOrBuilder getStepsOrBuilder( + int index); + + /** + *
+     * Results of the build.
+     * 
+ * + * .google.events.cloud.build.v1.Results results = 10; + * @return Whether the results field is set. + */ + boolean hasResults(); + /** + *
+     * Results of the build.
+     * 
+ * + * .google.events.cloud.build.v1.Results results = 10; + * @return The results. + */ + google.events.cloud.build.v1.Data.Results getResults(); + /** + *
+     * Results of the build.
+     * 
+ * + * .google.events.cloud.build.v1.Results results = 10; + */ + google.events.cloud.build.v1.Data.ResultsOrBuilder getResultsOrBuilder(); + + /** + *
+     * Time at which the request to create the build was received.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6; + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + *
+     * Time at which the request to create the build was received.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6; + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + *
+     * Time at which the request to create the build was received.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + *
+     * Time at which execution of the build was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7; + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + *
+     * Time at which execution of the build was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7; + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + *
+     * Time at which execution of the build was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + *
+     * Time at which execution of the build was finished.
+     * The difference between finish_time and start_time is the duration of the
+     * build's execution.
+     * 
+ * + * .google.protobuf.Timestamp finish_time = 8; + * @return Whether the finishTime field is set. + */ + boolean hasFinishTime(); + /** + *
+     * Time at which execution of the build was finished.
+     * The difference between finish_time and start_time is the duration of the
+     * build's execution.
+     * 
+ * + * .google.protobuf.Timestamp finish_time = 8; + * @return The finishTime. + */ + com.google.protobuf.Timestamp getFinishTime(); + /** + *
+     * Time at which execution of the build was finished.
+     * The difference between finish_time and start_time is the duration of the
+     * build's execution.
+     * 
+ * + * .google.protobuf.Timestamp finish_time = 8; + */ + com.google.protobuf.TimestampOrBuilder getFinishTimeOrBuilder(); + + /** + *
+     * Amount of time that this build should be allowed to run, to second
+     * granularity. If this amount of time elapses, work on the build will cease
+     * and the build status will be `TIMEOUT`.
+     * 
+ * + * .google.protobuf.Duration timeout = 12; + * @return Whether the timeout field is set. + */ + boolean hasTimeout(); + /** + *
+     * Amount of time that this build should be allowed to run, to second
+     * granularity. If this amount of time elapses, work on the build will cease
+     * and the build status will be `TIMEOUT`.
+     * 
+ * + * .google.protobuf.Duration timeout = 12; + * @return The timeout. + */ + com.google.protobuf.Duration getTimeout(); + /** + *
+     * Amount of time that this build should be allowed to run, to second
+     * granularity. If this amount of time elapses, work on the build will cease
+     * and the build status will be `TIMEOUT`.
+     * 
+ * + * .google.protobuf.Duration timeout = 12; + */ + com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder(); + + /** + *
+     * A list of images to be pushed upon the successful completion of all build
+     * steps.
+     * The images are pushed using the builder service account's credentials.
+     * The digests of the pushed images will be stored in the `Build` resource's
+     * results field.
+     * If any of the images fail to be pushed, the build status is marked
+     * `FAILURE`.
+     * 
+ * + * repeated string images = 13; + * @return A list containing the images. + */ + java.util.List + getImagesList(); + /** + *
+     * A list of images to be pushed upon the successful completion of all build
+     * steps.
+     * The images are pushed using the builder service account's credentials.
+     * The digests of the pushed images will be stored in the `Build` resource's
+     * results field.
+     * If any of the images fail to be pushed, the build status is marked
+     * `FAILURE`.
+     * 
+ * + * repeated string images = 13; + * @return The count of images. + */ + int getImagesCount(); + /** + *
+     * A list of images to be pushed upon the successful completion of all build
+     * steps.
+     * The images are pushed using the builder service account's credentials.
+     * The digests of the pushed images will be stored in the `Build` resource's
+     * results field.
+     * If any of the images fail to be pushed, the build status is marked
+     * `FAILURE`.
+     * 
+ * + * repeated string images = 13; + * @param index The index of the element to return. + * @return The images at the given index. + */ + java.lang.String getImages(int index); + /** + *
+     * A list of images to be pushed upon the successful completion of all build
+     * steps.
+     * The images are pushed using the builder service account's credentials.
+     * The digests of the pushed images will be stored in the `Build` resource's
+     * results field.
+     * If any of the images fail to be pushed, the build status is marked
+     * `FAILURE`.
+     * 
+ * + * repeated string images = 13; + * @param index The index of the value to return. + * @return The bytes of the images at the given index. + */ + com.google.protobuf.ByteString + getImagesBytes(int index); + + /** + *
+     * TTL in queue for this build. If provided and the build is enqueued longer
+     * than this value, the build will expire and the build status will be
+     * `EXPIRED`.
+     * The TTL starts ticking from create_time.
+     * 
+ * + * .google.protobuf.Duration queue_ttl = 40; + * @return Whether the queueTtl field is set. + */ + boolean hasQueueTtl(); + /** + *
+     * TTL in queue for this build. If provided and the build is enqueued longer
+     * than this value, the build will expire and the build status will be
+     * `EXPIRED`.
+     * The TTL starts ticking from create_time.
+     * 
+ * + * .google.protobuf.Duration queue_ttl = 40; + * @return The queueTtl. + */ + com.google.protobuf.Duration getQueueTtl(); + /** + *
+     * TTL in queue for this build. If provided and the build is enqueued longer
+     * than this value, the build will expire and the build status will be
+     * `EXPIRED`.
+     * The TTL starts ticking from create_time.
+     * 
+ * + * .google.protobuf.Duration queue_ttl = 40; + */ + com.google.protobuf.DurationOrBuilder getQueueTtlOrBuilder(); + + /** + *
+     * Artifacts produced by the build that should be uploaded upon
+     * successful completion of all build steps.
+     * 
+ * + * .google.events.cloud.build.v1.Artifacts artifacts = 37; + * @return Whether the artifacts field is set. + */ + boolean hasArtifacts(); + /** + *
+     * Artifacts produced by the build that should be uploaded upon
+     * successful completion of all build steps.
+     * 
+ * + * .google.events.cloud.build.v1.Artifacts artifacts = 37; + * @return The artifacts. + */ + google.events.cloud.build.v1.Data.Artifacts getArtifacts(); + /** + *
+     * Artifacts produced by the build that should be uploaded upon
+     * successful completion of all build steps.
+     * 
+ * + * .google.events.cloud.build.v1.Artifacts artifacts = 37; + */ + google.events.cloud.build.v1.Data.ArtifactsOrBuilder getArtifactsOrBuilder(); + + /** + *
+     * Google Cloud Storage bucket where logs should be written (see
+     * [Bucket Name
+     * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
+     * Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
+     * 
+ * + * string logs_bucket = 19; + * @return The logsBucket. + */ + java.lang.String getLogsBucket(); + /** + *
+     * Google Cloud Storage bucket where logs should be written (see
+     * [Bucket Name
+     * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
+     * Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
+     * 
+ * + * string logs_bucket = 19; + * @return The bytes for logsBucket. + */ + com.google.protobuf.ByteString + getLogsBucketBytes(); + + /** + *
+     * A permanent fixed identifier for source.
+     * 
+ * + * .google.events.cloud.build.v1.SourceProvenance source_provenance = 21; + * @return Whether the sourceProvenance field is set. + */ + boolean hasSourceProvenance(); + /** + *
+     * A permanent fixed identifier for source.
+     * 
+ * + * .google.events.cloud.build.v1.SourceProvenance source_provenance = 21; + * @return The sourceProvenance. + */ + google.events.cloud.build.v1.Data.SourceProvenance getSourceProvenance(); + /** + *
+     * A permanent fixed identifier for source.
+     * 
+ * + * .google.events.cloud.build.v1.SourceProvenance source_provenance = 21; + */ + google.events.cloud.build.v1.Data.SourceProvenanceOrBuilder getSourceProvenanceOrBuilder(); + + /** + *
+     * The ID of the `BuildTrigger` that triggered this build, if it
+     * was triggered automatically.
+     * 
+ * + * string build_trigger_id = 22; + * @return The buildTriggerId. + */ + java.lang.String getBuildTriggerId(); + /** + *
+     * The ID of the `BuildTrigger` that triggered this build, if it
+     * was triggered automatically.
+     * 
+ * + * string build_trigger_id = 22; + * @return The bytes for buildTriggerId. + */ + com.google.protobuf.ByteString + getBuildTriggerIdBytes(); + + /** + *
+     * Special options for this build.
+     * 
+ * + * .google.events.cloud.build.v1.BuildOptions options = 23; + * @return Whether the options field is set. + */ + boolean hasOptions(); + /** + *
+     * Special options for this build.
+     * 
+ * + * .google.events.cloud.build.v1.BuildOptions options = 23; + * @return The options. + */ + google.events.cloud.build.v1.Data.BuildOptions getOptions(); + /** + *
+     * Special options for this build.
+     * 
+ * + * .google.events.cloud.build.v1.BuildOptions options = 23; + */ + google.events.cloud.build.v1.Data.BuildOptionsOrBuilder getOptionsOrBuilder(); + + /** + *
+     * URL to logs for this build in Google Cloud Console.
+     * 
+ * + * string log_url = 25; + * @return The logUrl. + */ + java.lang.String getLogUrl(); + /** + *
+     * URL to logs for this build in Google Cloud Console.
+     * 
+ * + * string log_url = 25; + * @return The bytes for logUrl. + */ + com.google.protobuf.ByteString + getLogUrlBytes(); + + /** + *
+     * Substitutions data for `Build` resource.
+     * 
+ * + * map<string, string> substitutions = 29; + */ + int getSubstitutionsCount(); + /** + *
+     * Substitutions data for `Build` resource.
+     * 
+ * + * map<string, string> substitutions = 29; + */ + boolean containsSubstitutions( + java.lang.String key); + /** + * Use {@link #getSubstitutionsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getSubstitutions(); + /** + *
+     * Substitutions data for `Build` resource.
+     * 
+ * + * map<string, string> substitutions = 29; + */ + java.util.Map + getSubstitutionsMap(); + /** + *
+     * Substitutions data for `Build` resource.
+     * 
+ * + * map<string, string> substitutions = 29; + */ + + java.lang.String getSubstitutionsOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+     * Substitutions data for `Build` resource.
+     * 
+ * + * map<string, string> substitutions = 29; + */ + + java.lang.String getSubstitutionsOrThrow( + java.lang.String key); + + /** + *
+     * Tags for annotation of a `Build`. These are not docker tags.
+     * 
+ * + * repeated string tags = 31; + * @return A list containing the tags. + */ + java.util.List + getTagsList(); + /** + *
+     * Tags for annotation of a `Build`. These are not docker tags.
+     * 
+ * + * repeated string tags = 31; + * @return The count of tags. + */ + int getTagsCount(); + /** + *
+     * Tags for annotation of a `Build`. These are not docker tags.
+     * 
+ * + * repeated string tags = 31; + * @param index The index of the element to return. + * @return The tags at the given index. + */ + java.lang.String getTags(int index); + /** + *
+     * Tags for annotation of a `Build`. These are not docker tags.
+     * 
+ * + * repeated string tags = 31; + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + com.google.protobuf.ByteString + getTagsBytes(int index); + + /** + *
+     * Secrets to decrypt using Cloud Key Management Service.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Secret secrets = 32; + */ + java.util.List + getSecretsList(); + /** + *
+     * Secrets to decrypt using Cloud Key Management Service.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Secret secrets = 32; + */ + google.events.cloud.build.v1.Data.Secret getSecrets(int index); + /** + *
+     * Secrets to decrypt using Cloud Key Management Service.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Secret secrets = 32; + */ + int getSecretsCount(); + /** + *
+     * Secrets to decrypt using Cloud Key Management Service.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Secret secrets = 32; + */ + java.util.List + getSecretsOrBuilderList(); + /** + *
+     * Secrets to decrypt using Cloud Key Management Service.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Secret secrets = 32; + */ + google.events.cloud.build.v1.Data.SecretOrBuilder getSecretsOrBuilder( + int index); + + /** + *
+     * Stores timing information for phases of the build. Valid keys
+     * are:
+     * * BUILD: time to execute all build steps
+     * * PUSH: time to push all specified images.
+     * * FETCHSOURCE: time to fetch source.
+     * If the build does not specify source or images,
+     * these keys will not be included.
+     * 
+ * + * map<string, .google.events.cloud.build.v1.TimeSpan> timing = 33; + */ + int getTimingCount(); + /** + *
+     * Stores timing information for phases of the build. Valid keys
+     * are:
+     * * BUILD: time to execute all build steps
+     * * PUSH: time to push all specified images.
+     * * FETCHSOURCE: time to fetch source.
+     * If the build does not specify source or images,
+     * these keys will not be included.
+     * 
+ * + * map<string, .google.events.cloud.build.v1.TimeSpan> timing = 33; + */ + boolean containsTiming( + java.lang.String key); + /** + * Use {@link #getTimingMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getTiming(); + /** + *
+     * Stores timing information for phases of the build. Valid keys
+     * are:
+     * * BUILD: time to execute all build steps
+     * * PUSH: time to push all specified images.
+     * * FETCHSOURCE: time to fetch source.
+     * If the build does not specify source or images,
+     * these keys will not be included.
+     * 
+ * + * map<string, .google.events.cloud.build.v1.TimeSpan> timing = 33; + */ + java.util.Map + getTimingMap(); + /** + *
+     * Stores timing information for phases of the build. Valid keys
+     * are:
+     * * BUILD: time to execute all build steps
+     * * PUSH: time to push all specified images.
+     * * FETCHSOURCE: time to fetch source.
+     * If the build does not specify source or images,
+     * these keys will not be included.
+     * 
+ * + * map<string, .google.events.cloud.build.v1.TimeSpan> timing = 33; + */ + + google.events.cloud.build.v1.Data.TimeSpan getTimingOrDefault( + java.lang.String key, + google.events.cloud.build.v1.Data.TimeSpan defaultValue); + /** + *
+     * Stores timing information for phases of the build. Valid keys
+     * are:
+     * * BUILD: time to execute all build steps
+     * * PUSH: time to push all specified images.
+     * * FETCHSOURCE: time to fetch source.
+     * If the build does not specify source or images,
+     * these keys will not be included.
+     * 
+ * + * map<string, .google.events.cloud.build.v1.TimeSpan> timing = 33; + */ + + google.events.cloud.build.v1.Data.TimeSpan getTimingOrThrow( + java.lang.String key); + } + /** + *
+   * Build event data
+   * Common build format for Google Cloud Platform API operations.
+   * Copied from
+   * https://github.com/googleapis/googleapis/blob/master/google/devtools/cloudbuild/v1/cloudbuild.proto.
+   * 
+ * + * Protobuf type {@code google.events.cloud.build.v1.BuildEventData} + */ + public static final class BuildEventData extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.cloud.build.v1.BuildEventData) + BuildEventDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use BuildEventData.newBuilder() to construct. + private BuildEventData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BuildEventData() { + id_ = ""; + projectId_ = ""; + status_ = 0; + statusDetail_ = ""; + steps_ = java.util.Collections.emptyList(); + images_ = com.google.protobuf.LazyStringArrayList.EMPTY; + logsBucket_ = ""; + buildTriggerId_ = ""; + logUrl_ = ""; + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + secrets_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BuildEventData(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BuildEventData( + 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(); + + id_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + case 26: { + google.events.cloud.build.v1.Data.Source.Builder subBuilder = null; + if (source_ != null) { + subBuilder = source_.toBuilder(); + } + source_ = input.readMessage(google.events.cloud.build.v1.Data.Source.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(source_); + source_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; + } + case 66: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (finishTime_ != null) { + subBuilder = finishTime_.toBuilder(); + } + finishTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(finishTime_); + finishTime_ = subBuilder.buildPartial(); + } + + break; + } + case 82: { + google.events.cloud.build.v1.Data.Results.Builder subBuilder = null; + if (results_ != null) { + subBuilder = results_.toBuilder(); + } + results_ = input.readMessage(google.events.cloud.build.v1.Data.Results.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(results_); + results_ = subBuilder.buildPartial(); + } + + break; + } + case 90: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + steps_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + steps_.add( + input.readMessage(google.events.cloud.build.v1.Data.BuildStep.parser(), extensionRegistry)); + break; + } + case 98: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (timeout_ != null) { + subBuilder = timeout_.toBuilder(); + } + timeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeout_); + timeout_ = subBuilder.buildPartial(); + } + + break; + } + case 106: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + images_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + images_.add(s); + break; + } + case 130: { + java.lang.String s = input.readStringRequireUtf8(); + + projectId_ = s; + break; + } + case 154: { + java.lang.String s = input.readStringRequireUtf8(); + + logsBucket_ = s; + break; + } + case 170: { + google.events.cloud.build.v1.Data.SourceProvenance.Builder subBuilder = null; + if (sourceProvenance_ != null) { + subBuilder = sourceProvenance_.toBuilder(); + } + sourceProvenance_ = input.readMessage(google.events.cloud.build.v1.Data.SourceProvenance.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sourceProvenance_); + sourceProvenance_ = subBuilder.buildPartial(); + } + + break; + } + case 178: { + java.lang.String s = input.readStringRequireUtf8(); + + buildTriggerId_ = s; + break; + } + case 186: { + google.events.cloud.build.v1.Data.BuildOptions.Builder subBuilder = null; + if (options_ != null) { + subBuilder = options_.toBuilder(); + } + options_ = input.readMessage(google.events.cloud.build.v1.Data.BuildOptions.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(options_); + options_ = subBuilder.buildPartial(); + } + + break; + } + case 194: { + java.lang.String s = input.readStringRequireUtf8(); + + statusDetail_ = s; + break; + } + case 202: { + java.lang.String s = input.readStringRequireUtf8(); + + logUrl_ = s; + break; + } + case 234: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + substitutions_ = com.google.protobuf.MapField.newMapField( + SubstitutionsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; + } + com.google.protobuf.MapEntry + substitutions__ = input.readMessage( + SubstitutionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + substitutions_.getMutableMap().put( + substitutions__.getKey(), substitutions__.getValue()); + break; + } + case 250: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000008; + } + tags_.add(s); + break; + } + case 258: { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + secrets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + secrets_.add( + input.readMessage(google.events.cloud.build.v1.Data.Secret.parser(), extensionRegistry)); + break; + } + case 266: { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { + timing_ = com.google.protobuf.MapField.newMapField( + TimingDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000020; + } + com.google.protobuf.MapEntry + timing__ = input.readMessage( + TimingDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + timing_.getMutableMap().put( + timing__.getKey(), timing__.getValue()); + break; + } + case 298: { + google.events.cloud.build.v1.Data.Artifacts.Builder subBuilder = null; + if (artifacts_ != null) { + subBuilder = artifacts_.toBuilder(); + } + artifacts_ = input.readMessage(google.events.cloud.build.v1.Data.Artifacts.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(artifacts_); + artifacts_ = subBuilder.buildPartial(); + } + + break; + } + case 322: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (queueTtl_ != null) { + subBuilder = queueTtl_.toBuilder(); + } + queueTtl_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(queueTtl_); + queueTtl_ = subBuilder.buildPartial(); + } + + 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)) { + steps_ = java.util.Collections.unmodifiableList(steps_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + images_ = images_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000008) != 0)) { + tags_ = tags_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000010) != 0)) { + secrets_ = java.util.Collections.unmodifiableList(secrets_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_BuildEventData_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 29: + return internalGetSubstitutions(); + case 33: + return internalGetTiming(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_BuildEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.build.v1.Data.BuildEventData.class, google.events.cloud.build.v1.Data.BuildEventData.Builder.class); + } + + /** + *
+     * Possible status of a build or build step.
+     * 
+ * + * Protobuf enum {@code google.events.cloud.build.v1.BuildEventData.Status} + */ + public enum Status + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * Status of the build is unknown.
+       * 
+ * + * STATUS_UNKNOWN = 0; + */ + STATUS_UNKNOWN(0), + /** + *
+       * Build or step is queued; work has not yet begun.
+       * 
+ * + * QUEUED = 1; + */ + QUEUED(1), + /** + *
+       * Build or step is being executed.
+       * 
+ * + * WORKING = 2; + */ + WORKING(2), + /** + *
+       * Build or step finished successfully.
+       * 
+ * + * SUCCESS = 3; + */ + SUCCESS(3), + /** + *
+       * Build or step failed to complete successfully.
+       * 
+ * + * FAILURE = 4; + */ + FAILURE(4), + /** + *
+       * Build or step failed due to an internal cause.
+       * 
+ * + * INTERNAL_ERROR = 5; + */ + INTERNAL_ERROR(5), + /** + *
+       * Build or step took longer than was allowed.
+       * 
+ * + * TIMEOUT = 6; + */ + TIMEOUT(6), + /** + *
+       * Build or step was canceled by a user.
+       * 
+ * + * CANCELLED = 7; + */ + CANCELLED(7), + /** + *
+       * Build was enqueued for longer than the value of `queue_ttl`.
+       * 
+ * + * EXPIRED = 9; + */ + EXPIRED(9), + UNRECOGNIZED(-1), + ; + + /** + *
+       * Status of the build is unknown.
+       * 
+ * + * STATUS_UNKNOWN = 0; + */ + public static final int STATUS_UNKNOWN_VALUE = 0; + /** + *
+       * Build or step is queued; work has not yet begun.
+       * 
+ * + * QUEUED = 1; + */ + public static final int QUEUED_VALUE = 1; + /** + *
+       * Build or step is being executed.
+       * 
+ * + * WORKING = 2; + */ + public static final int WORKING_VALUE = 2; + /** + *
+       * Build or step finished successfully.
+       * 
+ * + * SUCCESS = 3; + */ + public static final int SUCCESS_VALUE = 3; + /** + *
+       * Build or step failed to complete successfully.
+       * 
+ * + * FAILURE = 4; + */ + public static final int FAILURE_VALUE = 4; + /** + *
+       * Build or step failed due to an internal cause.
+       * 
+ * + * INTERNAL_ERROR = 5; + */ + public static final int INTERNAL_ERROR_VALUE = 5; + /** + *
+       * Build or step took longer than was allowed.
+       * 
+ * + * TIMEOUT = 6; + */ + public static final int TIMEOUT_VALUE = 6; + /** + *
+       * Build or step was canceled by a user.
+       * 
+ * + * CANCELLED = 7; + */ + public static final int CANCELLED_VALUE = 7; + /** + *
+       * Build was enqueued for longer than the value of `queue_ttl`.
+       * 
+ * + * EXPIRED = 9; + */ + public static final int EXPIRED_VALUE = 9; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Status valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Status forNumber(int value) { + switch (value) { + case 0: return STATUS_UNKNOWN; + case 1: return QUEUED; + case 2: return WORKING; + case 3: return SUCCESS; + case 4: return FAILURE; + case 5: return INTERNAL_ERROR; + case 6: return TIMEOUT; + case 7: return CANCELLED; + case 9: return EXPIRED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Status> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Status findValueByNumber(int number) { + return Status.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return google.events.cloud.build.v1.Data.BuildEventData.getDescriptor().getEnumTypes().get(0); + } + + private static final Status[] VALUES = values(); + + public static Status valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Status(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.events.cloud.build.v1.BuildEventData.Status) + } + + public static final int ID_FIELD_NUMBER = 1; + private volatile java.lang.Object id_; + /** + *
+     * Unique identifier of the build.
+     * 
+ * + * string id = 1; + * @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; + } + } + /** + *
+     * Unique identifier of the build.
+     * 
+ * + * string id = 1; + * @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 PROJECT_ID_FIELD_NUMBER = 16; + private volatile java.lang.Object projectId_; + /** + *
+     * ID of the project.
+     * 
+ * + * string project_id = 16; + * @return The projectId. + */ + @java.lang.Override + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + 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(); + projectId_ = s; + return s; + } + } + /** + *
+     * ID of the project.
+     * 
+ * + * string project_id = 16; + * @return The bytes for projectId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 2; + private int status_; + /** + *
+     * Status of the build.
+     * 
+ * + * .google.events.cloud.build.v1.BuildEventData.Status status = 2; + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + *
+     * Status of the build.
+     * 
+ * + * .google.events.cloud.build.v1.BuildEventData.Status status = 2; + * @return The status. + */ + @java.lang.Override public google.events.cloud.build.v1.Data.BuildEventData.Status getStatus() { + @SuppressWarnings("deprecation") + google.events.cloud.build.v1.Data.BuildEventData.Status result = google.events.cloud.build.v1.Data.BuildEventData.Status.valueOf(status_); + return result == null ? google.events.cloud.build.v1.Data.BuildEventData.Status.UNRECOGNIZED : result; + } + + public static final int STATUS_DETAIL_FIELD_NUMBER = 24; + private volatile java.lang.Object statusDetail_; + /** + *
+     * Customer-readable message about the current status.
+     * 
+ * + * string status_detail = 24; + * @return The statusDetail. + */ + @java.lang.Override + public java.lang.String getStatusDetail() { + java.lang.Object ref = statusDetail_; + 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(); + statusDetail_ = s; + return s; + } + } + /** + *
+     * Customer-readable message about the current status.
+     * 
+ * + * string status_detail = 24; + * @return The bytes for statusDetail. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getStatusDetailBytes() { + java.lang.Object ref = statusDetail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusDetail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_FIELD_NUMBER = 3; + private google.events.cloud.build.v1.Data.Source source_; + /** + *
+     * The location of the source files to build.
+     * 
+ * + * .google.events.cloud.build.v1.Source source = 3; + * @return Whether the source field is set. + */ + @java.lang.Override + public boolean hasSource() { + return source_ != null; + } + /** + *
+     * The location of the source files to build.
+     * 
+ * + * .google.events.cloud.build.v1.Source source = 3; + * @return The source. + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.Source getSource() { + return source_ == null ? google.events.cloud.build.v1.Data.Source.getDefaultInstance() : source_; + } + /** + *
+     * The location of the source files to build.
+     * 
+ * + * .google.events.cloud.build.v1.Source source = 3; + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.SourceOrBuilder getSourceOrBuilder() { + return getSource(); + } + + public static final int STEPS_FIELD_NUMBER = 11; + private java.util.List steps_; + /** + *
+     * The operations to be performed on the workspace.
+     * 
+ * + * repeated .google.events.cloud.build.v1.BuildStep steps = 11; + */ + @java.lang.Override + public java.util.List getStepsList() { + return steps_; + } + /** + *
+     * The operations to be performed on the workspace.
+     * 
+ * + * repeated .google.events.cloud.build.v1.BuildStep steps = 11; + */ + @java.lang.Override + public java.util.List + getStepsOrBuilderList() { + return steps_; + } + /** + *
+     * The operations to be performed on the workspace.
+     * 
+ * + * repeated .google.events.cloud.build.v1.BuildStep steps = 11; + */ + @java.lang.Override + public int getStepsCount() { + return steps_.size(); + } + /** + *
+     * The operations to be performed on the workspace.
+     * 
+ * + * repeated .google.events.cloud.build.v1.BuildStep steps = 11; + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.BuildStep getSteps(int index) { + return steps_.get(index); + } + /** + *
+     * The operations to be performed on the workspace.
+     * 
+ * + * repeated .google.events.cloud.build.v1.BuildStep steps = 11; + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.BuildStepOrBuilder getStepsOrBuilder( + int index) { + return steps_.get(index); + } + + public static final int RESULTS_FIELD_NUMBER = 10; + private google.events.cloud.build.v1.Data.Results results_; + /** + *
+     * Results of the build.
+     * 
+ * + * .google.events.cloud.build.v1.Results results = 10; + * @return Whether the results field is set. + */ + @java.lang.Override + public boolean hasResults() { + return results_ != null; + } + /** + *
+     * Results of the build.
+     * 
+ * + * .google.events.cloud.build.v1.Results results = 10; + * @return The results. + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.Results getResults() { + return results_ == null ? google.events.cloud.build.v1.Data.Results.getDefaultInstance() : results_; + } + /** + *
+     * Results of the build.
+     * 
+ * + * .google.events.cloud.build.v1.Results results = 10; + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.ResultsOrBuilder getResultsOrBuilder() { + return getResults(); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp createTime_; + /** + *
+     * Time at which the request to create the build was received.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6; + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + *
+     * Time at which the request to create the build was received.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6; + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + *
+     * Time at which the request to create the build was received.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int START_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp startTime_; + /** + *
+     * Time at which execution of the build was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7; + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return startTime_ != null; + } + /** + *
+     * Time at which execution of the build was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7; + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + *
+     * Time at which execution of the build was started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 7; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return getStartTime(); + } + + public static final int FINISH_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp finishTime_; + /** + *
+     * Time at which execution of the build was finished.
+     * The difference between finish_time and start_time is the duration of the
+     * build's execution.
+     * 
+ * + * .google.protobuf.Timestamp finish_time = 8; + * @return Whether the finishTime field is set. + */ + @java.lang.Override + public boolean hasFinishTime() { + return finishTime_ != null; + } + /** + *
+     * Time at which execution of the build was finished.
+     * The difference between finish_time and start_time is the duration of the
+     * build's execution.
+     * 
+ * + * .google.protobuf.Timestamp finish_time = 8; + * @return The finishTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getFinishTime() { + return finishTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : finishTime_; + } + /** + *
+     * Time at which execution of the build was finished.
+     * The difference between finish_time and start_time is the duration of the
+     * build's execution.
+     * 
+ * + * .google.protobuf.Timestamp finish_time = 8; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getFinishTimeOrBuilder() { + return getFinishTime(); + } + + public static final int TIMEOUT_FIELD_NUMBER = 12; + private com.google.protobuf.Duration timeout_; + /** + *
+     * Amount of time that this build should be allowed to run, to second
+     * granularity. If this amount of time elapses, work on the build will cease
+     * and the build status will be `TIMEOUT`.
+     * 
+ * + * .google.protobuf.Duration timeout = 12; + * @return Whether the timeout field is set. + */ + @java.lang.Override + public boolean hasTimeout() { + return timeout_ != null; + } + /** + *
+     * Amount of time that this build should be allowed to run, to second
+     * granularity. If this amount of time elapses, work on the build will cease
+     * and the build status will be `TIMEOUT`.
+     * 
+ * + * .google.protobuf.Duration timeout = 12; + * @return The timeout. + */ + @java.lang.Override + public com.google.protobuf.Duration getTimeout() { + return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } + /** + *
+     * Amount of time that this build should be allowed to run, to second
+     * granularity. If this amount of time elapses, work on the build will cease
+     * and the build status will be `TIMEOUT`.
+     * 
+ * + * .google.protobuf.Duration timeout = 12; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { + return getTimeout(); + } + + public static final int IMAGES_FIELD_NUMBER = 13; + private com.google.protobuf.LazyStringList images_; + /** + *
+     * A list of images to be pushed upon the successful completion of all build
+     * steps.
+     * The images are pushed using the builder service account's credentials.
+     * The digests of the pushed images will be stored in the `Build` resource's
+     * results field.
+     * If any of the images fail to be pushed, the build status is marked
+     * `FAILURE`.
+     * 
+ * + * repeated string images = 13; + * @return A list containing the images. + */ + public com.google.protobuf.ProtocolStringList + getImagesList() { + return images_; + } + /** + *
+     * A list of images to be pushed upon the successful completion of all build
+     * steps.
+     * The images are pushed using the builder service account's credentials.
+     * The digests of the pushed images will be stored in the `Build` resource's
+     * results field.
+     * If any of the images fail to be pushed, the build status is marked
+     * `FAILURE`.
+     * 
+ * + * repeated string images = 13; + * @return The count of images. + */ + public int getImagesCount() { + return images_.size(); + } + /** + *
+     * A list of images to be pushed upon the successful completion of all build
+     * steps.
+     * The images are pushed using the builder service account's credentials.
+     * The digests of the pushed images will be stored in the `Build` resource's
+     * results field.
+     * If any of the images fail to be pushed, the build status is marked
+     * `FAILURE`.
+     * 
+ * + * repeated string images = 13; + * @param index The index of the element to return. + * @return The images at the given index. + */ + public java.lang.String getImages(int index) { + return images_.get(index); + } + /** + *
+     * A list of images to be pushed upon the successful completion of all build
+     * steps.
+     * The images are pushed using the builder service account's credentials.
+     * The digests of the pushed images will be stored in the `Build` resource's
+     * results field.
+     * If any of the images fail to be pushed, the build status is marked
+     * `FAILURE`.
+     * 
+ * + * repeated string images = 13; + * @param index The index of the value to return. + * @return The bytes of the images at the given index. + */ + public com.google.protobuf.ByteString + getImagesBytes(int index) { + return images_.getByteString(index); + } + + public static final int QUEUE_TTL_FIELD_NUMBER = 40; + private com.google.protobuf.Duration queueTtl_; + /** + *
+     * TTL in queue for this build. If provided and the build is enqueued longer
+     * than this value, the build will expire and the build status will be
+     * `EXPIRED`.
+     * The TTL starts ticking from create_time.
+     * 
+ * + * .google.protobuf.Duration queue_ttl = 40; + * @return Whether the queueTtl field is set. + */ + @java.lang.Override + public boolean hasQueueTtl() { + return queueTtl_ != null; + } + /** + *
+     * TTL in queue for this build. If provided and the build is enqueued longer
+     * than this value, the build will expire and the build status will be
+     * `EXPIRED`.
+     * The TTL starts ticking from create_time.
+     * 
+ * + * .google.protobuf.Duration queue_ttl = 40; + * @return The queueTtl. + */ + @java.lang.Override + public com.google.protobuf.Duration getQueueTtl() { + return queueTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : queueTtl_; + } + /** + *
+     * TTL in queue for this build. If provided and the build is enqueued longer
+     * than this value, the build will expire and the build status will be
+     * `EXPIRED`.
+     * The TTL starts ticking from create_time.
+     * 
+ * + * .google.protobuf.Duration queue_ttl = 40; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getQueueTtlOrBuilder() { + return getQueueTtl(); + } + + public static final int ARTIFACTS_FIELD_NUMBER = 37; + private google.events.cloud.build.v1.Data.Artifacts artifacts_; + /** + *
+     * Artifacts produced by the build that should be uploaded upon
+     * successful completion of all build steps.
+     * 
+ * + * .google.events.cloud.build.v1.Artifacts artifacts = 37; + * @return Whether the artifacts field is set. + */ + @java.lang.Override + public boolean hasArtifacts() { + return artifacts_ != null; + } + /** + *
+     * Artifacts produced by the build that should be uploaded upon
+     * successful completion of all build steps.
+     * 
+ * + * .google.events.cloud.build.v1.Artifacts artifacts = 37; + * @return The artifacts. + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.Artifacts getArtifacts() { + return artifacts_ == null ? google.events.cloud.build.v1.Data.Artifacts.getDefaultInstance() : artifacts_; + } + /** + *
+     * Artifacts produced by the build that should be uploaded upon
+     * successful completion of all build steps.
+     * 
+ * + * .google.events.cloud.build.v1.Artifacts artifacts = 37; + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.ArtifactsOrBuilder getArtifactsOrBuilder() { + return getArtifacts(); + } + + public static final int LOGS_BUCKET_FIELD_NUMBER = 19; + private volatile java.lang.Object logsBucket_; + /** + *
+     * Google Cloud Storage bucket where logs should be written (see
+     * [Bucket Name
+     * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
+     * Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
+     * 
+ * + * string logs_bucket = 19; + * @return The logsBucket. + */ + @java.lang.Override + public java.lang.String getLogsBucket() { + java.lang.Object ref = logsBucket_; + 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(); + logsBucket_ = s; + return s; + } + } + /** + *
+     * Google Cloud Storage bucket where logs should be written (see
+     * [Bucket Name
+     * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
+     * Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
+     * 
+ * + * string logs_bucket = 19; + * @return The bytes for logsBucket. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getLogsBucketBytes() { + java.lang.Object ref = logsBucket_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + logsBucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_PROVENANCE_FIELD_NUMBER = 21; + private google.events.cloud.build.v1.Data.SourceProvenance sourceProvenance_; + /** + *
+     * A permanent fixed identifier for source.
+     * 
+ * + * .google.events.cloud.build.v1.SourceProvenance source_provenance = 21; + * @return Whether the sourceProvenance field is set. + */ + @java.lang.Override + public boolean hasSourceProvenance() { + return sourceProvenance_ != null; + } + /** + *
+     * A permanent fixed identifier for source.
+     * 
+ * + * .google.events.cloud.build.v1.SourceProvenance source_provenance = 21; + * @return The sourceProvenance. + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.SourceProvenance getSourceProvenance() { + return sourceProvenance_ == null ? google.events.cloud.build.v1.Data.SourceProvenance.getDefaultInstance() : sourceProvenance_; + } + /** + *
+     * A permanent fixed identifier for source.
+     * 
+ * + * .google.events.cloud.build.v1.SourceProvenance source_provenance = 21; + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.SourceProvenanceOrBuilder getSourceProvenanceOrBuilder() { + return getSourceProvenance(); + } + + public static final int BUILD_TRIGGER_ID_FIELD_NUMBER = 22; + private volatile java.lang.Object buildTriggerId_; + /** + *
+     * The ID of the `BuildTrigger` that triggered this build, if it
+     * was triggered automatically.
+     * 
+ * + * string build_trigger_id = 22; + * @return The buildTriggerId. + */ + @java.lang.Override + public java.lang.String getBuildTriggerId() { + java.lang.Object ref = buildTriggerId_; + 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(); + buildTriggerId_ = s; + return s; + } + } + /** + *
+     * The ID of the `BuildTrigger` that triggered this build, if it
+     * was triggered automatically.
+     * 
+ * + * string build_trigger_id = 22; + * @return The bytes for buildTriggerId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBuildTriggerIdBytes() { + java.lang.Object ref = buildTriggerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + buildTriggerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPTIONS_FIELD_NUMBER = 23; + private google.events.cloud.build.v1.Data.BuildOptions options_; + /** + *
+     * Special options for this build.
+     * 
+ * + * .google.events.cloud.build.v1.BuildOptions options = 23; + * @return Whether the options field is set. + */ + @java.lang.Override + public boolean hasOptions() { + return options_ != null; + } + /** + *
+     * Special options for this build.
+     * 
+ * + * .google.events.cloud.build.v1.BuildOptions options = 23; + * @return The options. + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.BuildOptions getOptions() { + return options_ == null ? google.events.cloud.build.v1.Data.BuildOptions.getDefaultInstance() : options_; + } + /** + *
+     * Special options for this build.
+     * 
+ * + * .google.events.cloud.build.v1.BuildOptions options = 23; + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.BuildOptionsOrBuilder getOptionsOrBuilder() { + return getOptions(); + } + + public static final int LOG_URL_FIELD_NUMBER = 25; + private volatile java.lang.Object logUrl_; + /** + *
+     * URL to logs for this build in Google Cloud Console.
+     * 
+ * + * string log_url = 25; + * @return The logUrl. + */ + @java.lang.Override + public java.lang.String getLogUrl() { + java.lang.Object ref = logUrl_; + 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(); + logUrl_ = s; + return s; + } + } + /** + *
+     * URL to logs for this build in Google Cloud Console.
+     * 
+ * + * string log_url = 25; + * @return The bytes for logUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getLogUrlBytes() { + java.lang.Object ref = logUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + logUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUBSTITUTIONS_FIELD_NUMBER = 29; + private static final class SubstitutionsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_BuildEventData_SubstitutionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> substitutions_; + private com.google.protobuf.MapField + internalGetSubstitutions() { + if (substitutions_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SubstitutionsDefaultEntryHolder.defaultEntry); + } + return substitutions_; + } + + public int getSubstitutionsCount() { + return internalGetSubstitutions().getMap().size(); + } + /** + *
+     * Substitutions data for `Build` resource.
+     * 
+ * + * map<string, string> substitutions = 29; + */ + + @java.lang.Override + public boolean containsSubstitutions( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetSubstitutions().getMap().containsKey(key); + } + /** + * Use {@link #getSubstitutionsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getSubstitutions() { + return getSubstitutionsMap(); + } + /** + *
+     * Substitutions data for `Build` resource.
+     * 
+ * + * map<string, string> substitutions = 29; + */ + @java.lang.Override + + public java.util.Map getSubstitutionsMap() { + return internalGetSubstitutions().getMap(); + } + /** + *
+     * Substitutions data for `Build` resource.
+     * 
+ * + * map<string, string> substitutions = 29; + */ + @java.lang.Override + + public java.lang.String getSubstitutionsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetSubstitutions().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Substitutions data for `Build` resource.
+     * 
+ * + * map<string, string> substitutions = 29; + */ + @java.lang.Override + + public java.lang.String getSubstitutionsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetSubstitutions().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int TAGS_FIELD_NUMBER = 31; + private com.google.protobuf.LazyStringList tags_; + /** + *
+     * Tags for annotation of a `Build`. These are not docker tags.
+     * 
+ * + * repeated string tags = 31; + * @return A list containing the tags. + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_; + } + /** + *
+     * Tags for annotation of a `Build`. These are not docker tags.
+     * 
+ * + * repeated string tags = 31; + * @return The count of tags. + */ + public int getTagsCount() { + return tags_.size(); + } + /** + *
+     * Tags for annotation of a `Build`. These are not docker tags.
+     * 
+ * + * repeated string tags = 31; + * @param index The index of the element to return. + * @return The tags at the given index. + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + *
+     * Tags for annotation of a `Build`. These are not docker tags.
+     * 
+ * + * repeated string tags = 31; + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + + public static final int SECRETS_FIELD_NUMBER = 32; + private java.util.List secrets_; + /** + *
+     * Secrets to decrypt using Cloud Key Management Service.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Secret secrets = 32; + */ + @java.lang.Override + public java.util.List getSecretsList() { + return secrets_; + } + /** + *
+     * Secrets to decrypt using Cloud Key Management Service.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Secret secrets = 32; + */ + @java.lang.Override + public java.util.List + getSecretsOrBuilderList() { + return secrets_; + } + /** + *
+     * Secrets to decrypt using Cloud Key Management Service.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Secret secrets = 32; + */ + @java.lang.Override + public int getSecretsCount() { + return secrets_.size(); + } + /** + *
+     * Secrets to decrypt using Cloud Key Management Service.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Secret secrets = 32; + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.Secret getSecrets(int index) { + return secrets_.get(index); + } + /** + *
+     * Secrets to decrypt using Cloud Key Management Service.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Secret secrets = 32; + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.SecretOrBuilder getSecretsOrBuilder( + int index) { + return secrets_.get(index); + } + + public static final int TIMING_FIELD_NUMBER = 33; + private static final class TimingDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, google.events.cloud.build.v1.Data.TimeSpan> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_BuildEventData_TimingEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + google.events.cloud.build.v1.Data.TimeSpan.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, google.events.cloud.build.v1.Data.TimeSpan> timing_; + private com.google.protobuf.MapField + internalGetTiming() { + if (timing_ == null) { + return com.google.protobuf.MapField.emptyMapField( + TimingDefaultEntryHolder.defaultEntry); + } + return timing_; + } + + public int getTimingCount() { + return internalGetTiming().getMap().size(); + } + /** + *
+     * Stores timing information for phases of the build. Valid keys
+     * are:
+     * * BUILD: time to execute all build steps
+     * * PUSH: time to push all specified images.
+     * * FETCHSOURCE: time to fetch source.
+     * If the build does not specify source or images,
+     * these keys will not be included.
+     * 
+ * + * map<string, .google.events.cloud.build.v1.TimeSpan> timing = 33; + */ + + @java.lang.Override + public boolean containsTiming( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetTiming().getMap().containsKey(key); + } + /** + * Use {@link #getTimingMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTiming() { + return getTimingMap(); + } + /** + *
+     * Stores timing information for phases of the build. Valid keys
+     * are:
+     * * BUILD: time to execute all build steps
+     * * PUSH: time to push all specified images.
+     * * FETCHSOURCE: time to fetch source.
+     * If the build does not specify source or images,
+     * these keys will not be included.
+     * 
+ * + * map<string, .google.events.cloud.build.v1.TimeSpan> timing = 33; + */ + @java.lang.Override + + public java.util.Map getTimingMap() { + return internalGetTiming().getMap(); + } + /** + *
+     * Stores timing information for phases of the build. Valid keys
+     * are:
+     * * BUILD: time to execute all build steps
+     * * PUSH: time to push all specified images.
+     * * FETCHSOURCE: time to fetch source.
+     * If the build does not specify source or images,
+     * these keys will not be included.
+     * 
+ * + * map<string, .google.events.cloud.build.v1.TimeSpan> timing = 33; + */ + @java.lang.Override + + public google.events.cloud.build.v1.Data.TimeSpan getTimingOrDefault( + java.lang.String key, + google.events.cloud.build.v1.Data.TimeSpan defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetTiming().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Stores timing information for phases of the build. Valid keys
+     * are:
+     * * BUILD: time to execute all build steps
+     * * PUSH: time to push all specified images.
+     * * FETCHSOURCE: time to fetch source.
+     * If the build does not specify source or images,
+     * these keys will not be included.
+     * 
+ * + * map<string, .google.events.cloud.build.v1.TimeSpan> timing = 33; + */ + @java.lang.Override + + public google.events.cloud.build.v1.Data.TimeSpan getTimingOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetTiming().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (status_ != google.events.cloud.build.v1.Data.BuildEventData.Status.STATUS_UNKNOWN.getNumber()) { + output.writeEnum(2, status_); + } + if (source_ != null) { + output.writeMessage(3, getSource()); + } + if (createTime_ != null) { + output.writeMessage(6, getCreateTime()); + } + if (startTime_ != null) { + output.writeMessage(7, getStartTime()); + } + if (finishTime_ != null) { + output.writeMessage(8, getFinishTime()); + } + if (results_ != null) { + output.writeMessage(10, getResults()); + } + for (int i = 0; i < steps_.size(); i++) { + output.writeMessage(11, steps_.get(i)); + } + if (timeout_ != null) { + output.writeMessage(12, getTimeout()); + } + for (int i = 0; i < images_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, images_.getRaw(i)); + } + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, projectId_); + } + if (!getLogsBucketBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 19, logsBucket_); + } + if (sourceProvenance_ != null) { + output.writeMessage(21, getSourceProvenance()); + } + if (!getBuildTriggerIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 22, buildTriggerId_); + } + if (options_ != null) { + output.writeMessage(23, getOptions()); + } + if (!getStatusDetailBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 24, statusDetail_); + } + if (!getLogUrlBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 25, logUrl_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetSubstitutions(), + SubstitutionsDefaultEntryHolder.defaultEntry, + 29); + for (int i = 0; i < tags_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 31, tags_.getRaw(i)); + } + for (int i = 0; i < secrets_.size(); i++) { + output.writeMessage(32, secrets_.get(i)); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetTiming(), + TimingDefaultEntryHolder.defaultEntry, + 33); + if (artifacts_ != null) { + output.writeMessage(37, getArtifacts()); + } + if (queueTtl_ != null) { + output.writeMessage(40, getQueueTtl()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (status_ != google.events.cloud.build.v1.Data.BuildEventData.Status.STATUS_UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, status_); + } + if (source_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSource()); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCreateTime()); + } + if (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getStartTime()); + } + if (finishTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getFinishTime()); + } + if (results_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getResults()); + } + for (int i = 0; i < steps_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, steps_.get(i)); + } + if (timeout_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getTimeout()); + } + { + int dataSize = 0; + for (int i = 0; i < images_.size(); i++) { + dataSize += computeStringSizeNoTag(images_.getRaw(i)); + } + size += dataSize; + size += 1 * getImagesList().size(); + } + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, projectId_); + } + if (!getLogsBucketBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, logsBucket_); + } + if (sourceProvenance_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, getSourceProvenance()); + } + if (!getBuildTriggerIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, buildTriggerId_); + } + if (options_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(23, getOptions()); + } + if (!getStatusDetailBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, statusDetail_); + } + if (!getLogUrlBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, logUrl_); + } + for (java.util.Map.Entry entry + : internalGetSubstitutions().getMap().entrySet()) { + com.google.protobuf.MapEntry + substitutions__ = SubstitutionsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(29, substitutions__); + } + { + int dataSize = 0; + for (int i = 0; i < tags_.size(); i++) { + dataSize += computeStringSizeNoTag(tags_.getRaw(i)); + } + size += dataSize; + size += 2 * getTagsList().size(); + } + for (int i = 0; i < secrets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(32, secrets_.get(i)); + } + for (java.util.Map.Entry entry + : internalGetTiming().getMap().entrySet()) { + com.google.protobuf.MapEntry + timing__ = TimingDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(33, timing__); + } + if (artifacts_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(37, getArtifacts()); + } + if (queueTtl_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(40, getQueueTtl()); + } + 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.build.v1.Data.BuildEventData)) { + return super.equals(obj); + } + google.events.cloud.build.v1.Data.BuildEventData other = (google.events.cloud.build.v1.Data.BuildEventData) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (status_ != other.status_) return false; + if (!getStatusDetail() + .equals(other.getStatusDetail())) return false; + if (hasSource() != other.hasSource()) return false; + if (hasSource()) { + if (!getSource() + .equals(other.getSource())) return false; + } + if (!getStepsList() + .equals(other.getStepsList())) return false; + if (hasResults() != other.hasResults()) return false; + if (hasResults()) { + if (!getResults() + .equals(other.getResults())) return false; + } + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime() + .equals(other.getCreateTime())) return false; + } + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime() + .equals(other.getStartTime())) return false; + } + if (hasFinishTime() != other.hasFinishTime()) return false; + if (hasFinishTime()) { + if (!getFinishTime() + .equals(other.getFinishTime())) return false; + } + if (hasTimeout() != other.hasTimeout()) return false; + if (hasTimeout()) { + if (!getTimeout() + .equals(other.getTimeout())) return false; + } + if (!getImagesList() + .equals(other.getImagesList())) return false; + if (hasQueueTtl() != other.hasQueueTtl()) return false; + if (hasQueueTtl()) { + if (!getQueueTtl() + .equals(other.getQueueTtl())) return false; + } + if (hasArtifacts() != other.hasArtifacts()) return false; + if (hasArtifacts()) { + if (!getArtifacts() + .equals(other.getArtifacts())) return false; + } + if (!getLogsBucket() + .equals(other.getLogsBucket())) return false; + if (hasSourceProvenance() != other.hasSourceProvenance()) return false; + if (hasSourceProvenance()) { + if (!getSourceProvenance() + .equals(other.getSourceProvenance())) return false; + } + if (!getBuildTriggerId() + .equals(other.getBuildTriggerId())) return false; + if (hasOptions() != other.hasOptions()) return false; + if (hasOptions()) { + if (!getOptions() + .equals(other.getOptions())) return false; + } + if (!getLogUrl() + .equals(other.getLogUrl())) return false; + if (!internalGetSubstitutions().equals( + other.internalGetSubstitutions())) return false; + if (!getTagsList() + .equals(other.getTagsList())) return false; + if (!getSecretsList() + .equals(other.getSecretsList())) return false; + if (!internalGetTiming().equals( + other.internalGetTiming())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (37 * hash) + STATUS_DETAIL_FIELD_NUMBER; + hash = (53 * hash) + getStatusDetail().hashCode(); + if (hasSource()) { + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + } + if (getStepsCount() > 0) { + hash = (37 * hash) + STEPS_FIELD_NUMBER; + hash = (53 * hash) + getStepsList().hashCode(); + } + if (hasResults()) { + hash = (37 * hash) + RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getResults().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasFinishTime()) { + hash = (37 * hash) + FINISH_TIME_FIELD_NUMBER; + hash = (53 * hash) + getFinishTime().hashCode(); + } + if (hasTimeout()) { + hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getTimeout().hashCode(); + } + if (getImagesCount() > 0) { + hash = (37 * hash) + IMAGES_FIELD_NUMBER; + hash = (53 * hash) + getImagesList().hashCode(); + } + if (hasQueueTtl()) { + hash = (37 * hash) + QUEUE_TTL_FIELD_NUMBER; + hash = (53 * hash) + getQueueTtl().hashCode(); + } + if (hasArtifacts()) { + hash = (37 * hash) + ARTIFACTS_FIELD_NUMBER; + hash = (53 * hash) + getArtifacts().hashCode(); + } + hash = (37 * hash) + LOGS_BUCKET_FIELD_NUMBER; + hash = (53 * hash) + getLogsBucket().hashCode(); + if (hasSourceProvenance()) { + hash = (37 * hash) + SOURCE_PROVENANCE_FIELD_NUMBER; + hash = (53 * hash) + getSourceProvenance().hashCode(); + } + hash = (37 * hash) + BUILD_TRIGGER_ID_FIELD_NUMBER; + hash = (53 * hash) + getBuildTriggerId().hashCode(); + if (hasOptions()) { + hash = (37 * hash) + OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getOptions().hashCode(); + } + hash = (37 * hash) + LOG_URL_FIELD_NUMBER; + hash = (53 * hash) + getLogUrl().hashCode(); + if (!internalGetSubstitutions().getMap().isEmpty()) { + hash = (37 * hash) + SUBSTITUTIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetSubstitutions().hashCode(); + } + if (getTagsCount() > 0) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + getTagsList().hashCode(); + } + if (getSecretsCount() > 0) { + hash = (37 * hash) + SECRETS_FIELD_NUMBER; + hash = (53 * hash) + getSecretsList().hashCode(); + } + if (!internalGetTiming().getMap().isEmpty()) { + hash = (37 * hash) + TIMING_FIELD_NUMBER; + hash = (53 * hash) + internalGetTiming().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static google.events.cloud.build.v1.Data.BuildEventData parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.BuildEventData 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.build.v1.Data.BuildEventData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.BuildEventData 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.build.v1.Data.BuildEventData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.BuildEventData parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.cloud.build.v1.Data.BuildEventData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.BuildEventData 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.build.v1.Data.BuildEventData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.BuildEventData 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.build.v1.Data.BuildEventData parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.BuildEventData 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.build.v1.Data.BuildEventData 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; + } + /** + *
+     * Build event data
+     * Common build format for Google Cloud Platform API operations.
+     * Copied from
+     * https://github.com/googleapis/googleapis/blob/master/google/devtools/cloudbuild/v1/cloudbuild.proto.
+     * 
+ * + * Protobuf type {@code google.events.cloud.build.v1.BuildEventData} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.events.cloud.build.v1.BuildEventData) + google.events.cloud.build.v1.Data.BuildEventDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_BuildEventData_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 29: + return internalGetSubstitutions(); + case 33: + return internalGetTiming(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 29: + return internalGetMutableSubstitutions(); + case 33: + return internalGetMutableTiming(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_BuildEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.build.v1.Data.BuildEventData.class, google.events.cloud.build.v1.Data.BuildEventData.Builder.class); + } + + // Construct using google.events.cloud.build.v1.Data.BuildEventData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getStepsFieldBuilder(); + getSecretsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + id_ = ""; + + projectId_ = ""; + + status_ = 0; + + statusDetail_ = ""; + + if (sourceBuilder_ == null) { + source_ = null; + } else { + source_ = null; + sourceBuilder_ = null; + } + if (stepsBuilder_ == null) { + steps_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + stepsBuilder_.clear(); + } + if (resultsBuilder_ == null) { + results_ = null; + } else { + results_ = null; + resultsBuilder_ = null; + } + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (startTimeBuilder_ == null) { + startTime_ = null; + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + if (finishTimeBuilder_ == null) { + finishTime_ = null; + } else { + finishTime_ = null; + finishTimeBuilder_ = null; + } + if (timeoutBuilder_ == null) { + timeout_ = null; + } else { + timeout_ = null; + timeoutBuilder_ = null; + } + images_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + if (queueTtlBuilder_ == null) { + queueTtl_ = null; + } else { + queueTtl_ = null; + queueTtlBuilder_ = null; + } + if (artifactsBuilder_ == null) { + artifacts_ = null; + } else { + artifacts_ = null; + artifactsBuilder_ = null; + } + logsBucket_ = ""; + + if (sourceProvenanceBuilder_ == null) { + sourceProvenance_ = null; + } else { + sourceProvenance_ = null; + sourceProvenanceBuilder_ = null; + } + buildTriggerId_ = ""; + + if (optionsBuilder_ == null) { + options_ = null; + } else { + options_ = null; + optionsBuilder_ = null; + } + logUrl_ = ""; + + internalGetMutableSubstitutions().clear(); + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + if (secretsBuilder_ == null) { + secrets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + secretsBuilder_.clear(); + } + internalGetMutableTiming().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_BuildEventData_descriptor; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.BuildEventData getDefaultInstanceForType() { + return google.events.cloud.build.v1.Data.BuildEventData.getDefaultInstance(); + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.BuildEventData build() { + google.events.cloud.build.v1.Data.BuildEventData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.BuildEventData buildPartial() { + google.events.cloud.build.v1.Data.BuildEventData result = new google.events.cloud.build.v1.Data.BuildEventData(this); + int from_bitField0_ = bitField0_; + result.id_ = id_; + result.projectId_ = projectId_; + result.status_ = status_; + result.statusDetail_ = statusDetail_; + if (sourceBuilder_ == null) { + result.source_ = source_; + } else { + result.source_ = sourceBuilder_.build(); + } + if (stepsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + steps_ = java.util.Collections.unmodifiableList(steps_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.steps_ = steps_; + } else { + result.steps_ = stepsBuilder_.build(); + } + if (resultsBuilder_ == null) { + result.results_ = results_; + } else { + result.results_ = resultsBuilder_.build(); + } + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (startTimeBuilder_ == null) { + result.startTime_ = startTime_; + } else { + result.startTime_ = startTimeBuilder_.build(); + } + if (finishTimeBuilder_ == null) { + result.finishTime_ = finishTime_; + } else { + result.finishTime_ = finishTimeBuilder_.build(); + } + if (timeoutBuilder_ == null) { + result.timeout_ = timeout_; + } else { + result.timeout_ = timeoutBuilder_.build(); + } + if (((bitField0_ & 0x00000002) != 0)) { + images_ = images_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.images_ = images_; + if (queueTtlBuilder_ == null) { + result.queueTtl_ = queueTtl_; + } else { + result.queueTtl_ = queueTtlBuilder_.build(); + } + if (artifactsBuilder_ == null) { + result.artifacts_ = artifacts_; + } else { + result.artifacts_ = artifactsBuilder_.build(); + } + result.logsBucket_ = logsBucket_; + if (sourceProvenanceBuilder_ == null) { + result.sourceProvenance_ = sourceProvenance_; + } else { + result.sourceProvenance_ = sourceProvenanceBuilder_.build(); + } + result.buildTriggerId_ = buildTriggerId_; + if (optionsBuilder_ == null) { + result.options_ = options_; + } else { + result.options_ = optionsBuilder_.build(); + } + result.logUrl_ = logUrl_; + result.substitutions_ = internalGetSubstitutions(); + result.substitutions_.makeImmutable(); + if (((bitField0_ & 0x00000008) != 0)) { + tags_ = tags_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.tags_ = tags_; + if (secretsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + secrets_ = java.util.Collections.unmodifiableList(secrets_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.secrets_ = secrets_; + } else { + result.secrets_ = secretsBuilder_.build(); + } + result.timing_ = internalGetTiming(); + result.timing_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.events.cloud.build.v1.Data.BuildEventData) { + return mergeFrom((google.events.cloud.build.v1.Data.BuildEventData)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(google.events.cloud.build.v1.Data.BuildEventData other) { + if (other == google.events.cloud.build.v1.Data.BuildEventData.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (!other.getStatusDetail().isEmpty()) { + statusDetail_ = other.statusDetail_; + onChanged(); + } + if (other.hasSource()) { + mergeSource(other.getSource()); + } + if (stepsBuilder_ == null) { + if (!other.steps_.isEmpty()) { + if (steps_.isEmpty()) { + steps_ = other.steps_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureStepsIsMutable(); + steps_.addAll(other.steps_); + } + onChanged(); + } + } else { + if (!other.steps_.isEmpty()) { + if (stepsBuilder_.isEmpty()) { + stepsBuilder_.dispose(); + stepsBuilder_ = null; + steps_ = other.steps_; + bitField0_ = (bitField0_ & ~0x00000001); + stepsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStepsFieldBuilder() : null; + } else { + stepsBuilder_.addAllMessages(other.steps_); + } + } + } + if (other.hasResults()) { + mergeResults(other.getResults()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasFinishTime()) { + mergeFinishTime(other.getFinishTime()); + } + if (other.hasTimeout()) { + mergeTimeout(other.getTimeout()); + } + if (!other.images_.isEmpty()) { + if (images_.isEmpty()) { + images_ = other.images_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureImagesIsMutable(); + images_.addAll(other.images_); + } + onChanged(); + } + if (other.hasQueueTtl()) { + mergeQueueTtl(other.getQueueTtl()); + } + if (other.hasArtifacts()) { + mergeArtifacts(other.getArtifacts()); + } + if (!other.getLogsBucket().isEmpty()) { + logsBucket_ = other.logsBucket_; + onChanged(); + } + if (other.hasSourceProvenance()) { + mergeSourceProvenance(other.getSourceProvenance()); + } + if (!other.getBuildTriggerId().isEmpty()) { + buildTriggerId_ = other.buildTriggerId_; + onChanged(); + } + if (other.hasOptions()) { + mergeOptions(other.getOptions()); + } + if (!other.getLogUrl().isEmpty()) { + logUrl_ = other.logUrl_; + onChanged(); + } + internalGetMutableSubstitutions().mergeFrom( + other.internalGetSubstitutions()); + if (!other.tags_.isEmpty()) { + if (tags_.isEmpty()) { + tags_ = other.tags_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); + } + onChanged(); + } + if (secretsBuilder_ == null) { + if (!other.secrets_.isEmpty()) { + if (secrets_.isEmpty()) { + secrets_ = other.secrets_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureSecretsIsMutable(); + secrets_.addAll(other.secrets_); + } + onChanged(); + } + } else { + if (!other.secrets_.isEmpty()) { + if (secretsBuilder_.isEmpty()) { + secretsBuilder_.dispose(); + secretsBuilder_ = null; + secrets_ = other.secrets_; + bitField0_ = (bitField0_ & ~0x00000010); + secretsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSecretsFieldBuilder() : null; + } else { + secretsBuilder_.addAllMessages(other.secrets_); + } + } + } + internalGetMutableTiming().mergeFrom( + other.internalGetTiming()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.events.cloud.build.v1.Data.BuildEventData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.events.cloud.build.v1.Data.BuildEventData) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + *
+       * Unique identifier of the build.
+       * 
+ * + * string id = 1; + * @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; + } + } + /** + *
+       * Unique identifier of the build.
+       * 
+ * + * string id = 1; + * @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; + } + } + /** + *
+       * Unique identifier of the build.
+       * 
+ * + * string id = 1; + * @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; + } + /** + *
+       * Unique identifier of the build.
+       * 
+ * + * string id = 1; + * @return This builder for chaining. + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + *
+       * Unique identifier of the build.
+       * 
+ * + * string id = 1; + * @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 projectId_ = ""; + /** + *
+       * ID of the project.
+       * 
+ * + * string project_id = 16; + * @return The projectId. + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * ID of the project.
+       * 
+ * + * string project_id = 16; + * @return The bytes for projectId. + */ + public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * ID of the project.
+       * 
+ * + * string project_id = 16; + * @param value The projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+       * ID of the project.
+       * 
+ * + * string project_id = 16; + * @return This builder for chaining. + */ + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+       * ID of the project.
+       * 
+ * + * string project_id = 16; + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private int status_ = 0; + /** + *
+       * Status of the build.
+       * 
+ * + * .google.events.cloud.build.v1.BuildEventData.Status status = 2; + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + *
+       * Status of the build.
+       * 
+ * + * .google.events.cloud.build.v1.BuildEventData.Status status = 2; + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + + status_ = value; + onChanged(); + return this; + } + /** + *
+       * Status of the build.
+       * 
+ * + * .google.events.cloud.build.v1.BuildEventData.Status status = 2; + * @return The status. + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.BuildEventData.Status getStatus() { + @SuppressWarnings("deprecation") + google.events.cloud.build.v1.Data.BuildEventData.Status result = google.events.cloud.build.v1.Data.BuildEventData.Status.valueOf(status_); + return result == null ? google.events.cloud.build.v1.Data.BuildEventData.Status.UNRECOGNIZED : result; + } + /** + *
+       * Status of the build.
+       * 
+ * + * .google.events.cloud.build.v1.BuildEventData.Status status = 2; + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(google.events.cloud.build.v1.Data.BuildEventData.Status value) { + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Status of the build.
+       * 
+ * + * .google.events.cloud.build.v1.BuildEventData.Status status = 2; + * @return This builder for chaining. + */ + public Builder clearStatus() { + + status_ = 0; + onChanged(); + return this; + } + + private java.lang.Object statusDetail_ = ""; + /** + *
+       * Customer-readable message about the current status.
+       * 
+ * + * string status_detail = 24; + * @return The statusDetail. + */ + public java.lang.String getStatusDetail() { + java.lang.Object ref = statusDetail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusDetail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Customer-readable message about the current status.
+       * 
+ * + * string status_detail = 24; + * @return The bytes for statusDetail. + */ + public com.google.protobuf.ByteString + getStatusDetailBytes() { + java.lang.Object ref = statusDetail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusDetail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Customer-readable message about the current status.
+       * 
+ * + * string status_detail = 24; + * @param value The statusDetail to set. + * @return This builder for chaining. + */ + public Builder setStatusDetail( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + statusDetail_ = value; + onChanged(); + return this; + } + /** + *
+       * Customer-readable message about the current status.
+       * 
+ * + * string status_detail = 24; + * @return This builder for chaining. + */ + public Builder clearStatusDetail() { + + statusDetail_ = getDefaultInstance().getStatusDetail(); + onChanged(); + return this; + } + /** + *
+       * Customer-readable message about the current status.
+       * 
+ * + * string status_detail = 24; + * @param value The bytes for statusDetail to set. + * @return This builder for chaining. + */ + public Builder setStatusDetailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + statusDetail_ = value; + onChanged(); + return this; + } + + private google.events.cloud.build.v1.Data.Source source_; + private com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.Source, google.events.cloud.build.v1.Data.Source.Builder, google.events.cloud.build.v1.Data.SourceOrBuilder> sourceBuilder_; + /** + *
+       * The location of the source files to build.
+       * 
+ * + * .google.events.cloud.build.v1.Source source = 3; + * @return Whether the source field is set. + */ + public boolean hasSource() { + return sourceBuilder_ != null || source_ != null; + } + /** + *
+       * The location of the source files to build.
+       * 
+ * + * .google.events.cloud.build.v1.Source source = 3; + * @return The source. + */ + public google.events.cloud.build.v1.Data.Source getSource() { + if (sourceBuilder_ == null) { + return source_ == null ? google.events.cloud.build.v1.Data.Source.getDefaultInstance() : source_; + } else { + return sourceBuilder_.getMessage(); + } + } + /** + *
+       * The location of the source files to build.
+       * 
+ * + * .google.events.cloud.build.v1.Source source = 3; + */ + public Builder setSource(google.events.cloud.build.v1.Data.Source value) { + if (sourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + sourceBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The location of the source files to build.
+       * 
+ * + * .google.events.cloud.build.v1.Source source = 3; + */ + public Builder setSource( + google.events.cloud.build.v1.Data.Source.Builder builderForValue) { + if (sourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + sourceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The location of the source files to build.
+       * 
+ * + * .google.events.cloud.build.v1.Source source = 3; + */ + public Builder mergeSource(google.events.cloud.build.v1.Data.Source value) { + if (sourceBuilder_ == null) { + if (source_ != null) { + source_ = + google.events.cloud.build.v1.Data.Source.newBuilder(source_).mergeFrom(value).buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + sourceBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The location of the source files to build.
+       * 
+ * + * .google.events.cloud.build.v1.Source source = 3; + */ + public Builder clearSource() { + if (sourceBuilder_ == null) { + source_ = null; + onChanged(); + } else { + source_ = null; + sourceBuilder_ = null; + } + + return this; + } + /** + *
+       * The location of the source files to build.
+       * 
+ * + * .google.events.cloud.build.v1.Source source = 3; + */ + public google.events.cloud.build.v1.Data.Source.Builder getSourceBuilder() { + + onChanged(); + return getSourceFieldBuilder().getBuilder(); + } + /** + *
+       * The location of the source files to build.
+       * 
+ * + * .google.events.cloud.build.v1.Source source = 3; + */ + public google.events.cloud.build.v1.Data.SourceOrBuilder getSourceOrBuilder() { + if (sourceBuilder_ != null) { + return sourceBuilder_.getMessageOrBuilder(); + } else { + return source_ == null ? + google.events.cloud.build.v1.Data.Source.getDefaultInstance() : source_; + } + } + /** + *
+       * The location of the source files to build.
+       * 
+ * + * .google.events.cloud.build.v1.Source source = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.Source, google.events.cloud.build.v1.Data.Source.Builder, google.events.cloud.build.v1.Data.SourceOrBuilder> + getSourceFieldBuilder() { + if (sourceBuilder_ == null) { + sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.Source, google.events.cloud.build.v1.Data.Source.Builder, google.events.cloud.build.v1.Data.SourceOrBuilder>( + getSource(), + getParentForChildren(), + isClean()); + source_ = null; + } + return sourceBuilder_; + } + + private java.util.List steps_ = + java.util.Collections.emptyList(); + private void ensureStepsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + steps_ = new java.util.ArrayList(steps_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + google.events.cloud.build.v1.Data.BuildStep, google.events.cloud.build.v1.Data.BuildStep.Builder, google.events.cloud.build.v1.Data.BuildStepOrBuilder> stepsBuilder_; + + /** + *
+       * The operations to be performed on the workspace.
+       * 
+ * + * repeated .google.events.cloud.build.v1.BuildStep steps = 11; + */ + public java.util.List getStepsList() { + if (stepsBuilder_ == null) { + return java.util.Collections.unmodifiableList(steps_); + } else { + return stepsBuilder_.getMessageList(); + } + } + /** + *
+       * The operations to be performed on the workspace.
+       * 
+ * + * repeated .google.events.cloud.build.v1.BuildStep steps = 11; + */ + public int getStepsCount() { + if (stepsBuilder_ == null) { + return steps_.size(); + } else { + return stepsBuilder_.getCount(); + } + } + /** + *
+       * The operations to be performed on the workspace.
+       * 
+ * + * repeated .google.events.cloud.build.v1.BuildStep steps = 11; + */ + public google.events.cloud.build.v1.Data.BuildStep getSteps(int index) { + if (stepsBuilder_ == null) { + return steps_.get(index); + } else { + return stepsBuilder_.getMessage(index); + } + } + /** + *
+       * The operations to be performed on the workspace.
+       * 
+ * + * repeated .google.events.cloud.build.v1.BuildStep steps = 11; + */ + public Builder setSteps( + int index, google.events.cloud.build.v1.Data.BuildStep value) { + if (stepsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStepsIsMutable(); + steps_.set(index, value); + onChanged(); + } else { + stepsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * The operations to be performed on the workspace.
+       * 
+ * + * repeated .google.events.cloud.build.v1.BuildStep steps = 11; + */ + public Builder setSteps( + int index, google.events.cloud.build.v1.Data.BuildStep.Builder builderForValue) { + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + steps_.set(index, builderForValue.build()); + onChanged(); + } else { + stepsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The operations to be performed on the workspace.
+       * 
+ * + * repeated .google.events.cloud.build.v1.BuildStep steps = 11; + */ + public Builder addSteps(google.events.cloud.build.v1.Data.BuildStep value) { + if (stepsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStepsIsMutable(); + steps_.add(value); + onChanged(); + } else { + stepsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * The operations to be performed on the workspace.
+       * 
+ * + * repeated .google.events.cloud.build.v1.BuildStep steps = 11; + */ + public Builder addSteps( + int index, google.events.cloud.build.v1.Data.BuildStep value) { + if (stepsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStepsIsMutable(); + steps_.add(index, value); + onChanged(); + } else { + stepsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * The operations to be performed on the workspace.
+       * 
+ * + * repeated .google.events.cloud.build.v1.BuildStep steps = 11; + */ + public Builder addSteps( + google.events.cloud.build.v1.Data.BuildStep.Builder builderForValue) { + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + steps_.add(builderForValue.build()); + onChanged(); + } else { + stepsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * The operations to be performed on the workspace.
+       * 
+ * + * repeated .google.events.cloud.build.v1.BuildStep steps = 11; + */ + public Builder addSteps( + int index, google.events.cloud.build.v1.Data.BuildStep.Builder builderForValue) { + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + steps_.add(index, builderForValue.build()); + onChanged(); + } else { + stepsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The operations to be performed on the workspace.
+       * 
+ * + * repeated .google.events.cloud.build.v1.BuildStep steps = 11; + */ + public Builder addAllSteps( + java.lang.Iterable values) { + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, steps_); + onChanged(); + } else { + stepsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * The operations to be performed on the workspace.
+       * 
+ * + * repeated .google.events.cloud.build.v1.BuildStep steps = 11; + */ + public Builder clearSteps() { + if (stepsBuilder_ == null) { + steps_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + stepsBuilder_.clear(); + } + return this; + } + /** + *
+       * The operations to be performed on the workspace.
+       * 
+ * + * repeated .google.events.cloud.build.v1.BuildStep steps = 11; + */ + public Builder removeSteps(int index) { + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + steps_.remove(index); + onChanged(); + } else { + stepsBuilder_.remove(index); + } + return this; + } + /** + *
+       * The operations to be performed on the workspace.
+       * 
+ * + * repeated .google.events.cloud.build.v1.BuildStep steps = 11; + */ + public google.events.cloud.build.v1.Data.BuildStep.Builder getStepsBuilder( + int index) { + return getStepsFieldBuilder().getBuilder(index); + } + /** + *
+       * The operations to be performed on the workspace.
+       * 
+ * + * repeated .google.events.cloud.build.v1.BuildStep steps = 11; + */ + public google.events.cloud.build.v1.Data.BuildStepOrBuilder getStepsOrBuilder( + int index) { + if (stepsBuilder_ == null) { + return steps_.get(index); } else { + return stepsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * The operations to be performed on the workspace.
+       * 
+ * + * repeated .google.events.cloud.build.v1.BuildStep steps = 11; + */ + public java.util.List + getStepsOrBuilderList() { + if (stepsBuilder_ != null) { + return stepsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(steps_); + } + } + /** + *
+       * The operations to be performed on the workspace.
+       * 
+ * + * repeated .google.events.cloud.build.v1.BuildStep steps = 11; + */ + public google.events.cloud.build.v1.Data.BuildStep.Builder addStepsBuilder() { + return getStepsFieldBuilder().addBuilder( + google.events.cloud.build.v1.Data.BuildStep.getDefaultInstance()); + } + /** + *
+       * The operations to be performed on the workspace.
+       * 
+ * + * repeated .google.events.cloud.build.v1.BuildStep steps = 11; + */ + public google.events.cloud.build.v1.Data.BuildStep.Builder addStepsBuilder( + int index) { + return getStepsFieldBuilder().addBuilder( + index, google.events.cloud.build.v1.Data.BuildStep.getDefaultInstance()); + } + /** + *
+       * The operations to be performed on the workspace.
+       * 
+ * + * repeated .google.events.cloud.build.v1.BuildStep steps = 11; + */ + public java.util.List + getStepsBuilderList() { + return getStepsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + google.events.cloud.build.v1.Data.BuildStep, google.events.cloud.build.v1.Data.BuildStep.Builder, google.events.cloud.build.v1.Data.BuildStepOrBuilder> + getStepsFieldBuilder() { + if (stepsBuilder_ == null) { + stepsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + google.events.cloud.build.v1.Data.BuildStep, google.events.cloud.build.v1.Data.BuildStep.Builder, google.events.cloud.build.v1.Data.BuildStepOrBuilder>( + steps_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + steps_ = null; + } + return stepsBuilder_; + } + + private google.events.cloud.build.v1.Data.Results results_; + private com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.Results, google.events.cloud.build.v1.Data.Results.Builder, google.events.cloud.build.v1.Data.ResultsOrBuilder> resultsBuilder_; + /** + *
+       * Results of the build.
+       * 
+ * + * .google.events.cloud.build.v1.Results results = 10; + * @return Whether the results field is set. + */ + public boolean hasResults() { + return resultsBuilder_ != null || results_ != null; + } + /** + *
+       * Results of the build.
+       * 
+ * + * .google.events.cloud.build.v1.Results results = 10; + * @return The results. + */ + public google.events.cloud.build.v1.Data.Results getResults() { + if (resultsBuilder_ == null) { + return results_ == null ? google.events.cloud.build.v1.Data.Results.getDefaultInstance() : results_; + } else { + return resultsBuilder_.getMessage(); + } + } + /** + *
+       * Results of the build.
+       * 
+ * + * .google.events.cloud.build.v1.Results results = 10; + */ + public Builder setResults(google.events.cloud.build.v1.Data.Results value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + results_ = value; + onChanged(); + } else { + resultsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Results of the build.
+       * 
+ * + * .google.events.cloud.build.v1.Results results = 10; + */ + public Builder setResults( + google.events.cloud.build.v1.Data.Results.Builder builderForValue) { + if (resultsBuilder_ == null) { + results_ = builderForValue.build(); + onChanged(); + } else { + resultsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Results of the build.
+       * 
+ * + * .google.events.cloud.build.v1.Results results = 10; + */ + public Builder mergeResults(google.events.cloud.build.v1.Data.Results value) { + if (resultsBuilder_ == null) { + if (results_ != null) { + results_ = + google.events.cloud.build.v1.Data.Results.newBuilder(results_).mergeFrom(value).buildPartial(); + } else { + results_ = value; + } + onChanged(); + } else { + resultsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Results of the build.
+       * 
+ * + * .google.events.cloud.build.v1.Results results = 10; + */ + public Builder clearResults() { + if (resultsBuilder_ == null) { + results_ = null; + onChanged(); + } else { + results_ = null; + resultsBuilder_ = null; + } + + return this; + } + /** + *
+       * Results of the build.
+       * 
+ * + * .google.events.cloud.build.v1.Results results = 10; + */ + public google.events.cloud.build.v1.Data.Results.Builder getResultsBuilder() { + + onChanged(); + return getResultsFieldBuilder().getBuilder(); + } + /** + *
+       * Results of the build.
+       * 
+ * + * .google.events.cloud.build.v1.Results results = 10; + */ + public google.events.cloud.build.v1.Data.ResultsOrBuilder getResultsOrBuilder() { + if (resultsBuilder_ != null) { + return resultsBuilder_.getMessageOrBuilder(); + } else { + return results_ == null ? + google.events.cloud.build.v1.Data.Results.getDefaultInstance() : results_; + } + } + /** + *
+       * Results of the build.
+       * 
+ * + * .google.events.cloud.build.v1.Results results = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.Results, google.events.cloud.build.v1.Data.Results.Builder, google.events.cloud.build.v1.Data.ResultsOrBuilder> + getResultsFieldBuilder() { + if (resultsBuilder_ == null) { + resultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.Results, google.events.cloud.build.v1.Data.Results.Builder, google.events.cloud.build.v1.Data.ResultsOrBuilder>( + getResults(), + getParentForChildren(), + isClean()); + results_ = null; + } + return resultsBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + /** + *
+       * Time at which the request to create the build was received.
+       * 
+ * + * .google.protobuf.Timestamp create_time = 6; + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + *
+       * Time at which the request to create the build was received.
+       * 
+ * + * .google.protobuf.Timestamp create_time = 6; + * @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(); + } + } + /** + *
+       * Time at which the request to create the build was received.
+       * 
+ * + * .google.protobuf.Timestamp create_time = 6; + */ + 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; + } + /** + *
+       * Time at which the request to create the build was received.
+       * 
+ * + * .google.protobuf.Timestamp create_time = 6; + */ + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the request to create the build was received.
+       * 
+ * + * .google.protobuf.Timestamp create_time = 6; + */ + 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; + } + /** + *
+       * Time at which the request to create the build was received.
+       * 
+ * + * .google.protobuf.Timestamp create_time = 6; + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the request to create the build was received.
+       * 
+ * + * .google.protobuf.Timestamp create_time = 6; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the request to create the build was received.
+       * 
+ * + * .google.protobuf.Timestamp create_time = 6; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + } + /** + *
+       * Time at which the request to create the build was received.
+       * 
+ * + * .google.protobuf.Timestamp create_time = 6; + */ + 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 startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + /** + *
+       * Time at which execution of the build was started.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 7; + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return startTimeBuilder_ != null || startTime_ != null; + } + /** + *
+       * Time at which execution of the build was started.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 7; + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + *
+       * Time at which execution of the build was started.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 7; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + onChanged(); + } else { + startTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Time at which execution of the build was started.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 7; + */ + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + onChanged(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which execution of the build was started.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 7; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (startTime_ != null) { + startTime_ = + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + } else { + startTime_ = value; + } + onChanged(); + } else { + startTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Time at which execution of the build was started.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 7; + */ + public Builder clearStartTime() { + if (startTimeBuilder_ == null) { + startTime_ = null; + onChanged(); + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which execution of the build was started.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 7; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which execution of the build was started.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 7; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + *
+       * Time at which execution of the build was started.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp finishTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> finishTimeBuilder_; + /** + *
+       * Time at which execution of the build was finished.
+       * The difference between finish_time and start_time is the duration of the
+       * build's execution.
+       * 
+ * + * .google.protobuf.Timestamp finish_time = 8; + * @return Whether the finishTime field is set. + */ + public boolean hasFinishTime() { + return finishTimeBuilder_ != null || finishTime_ != null; + } + /** + *
+       * Time at which execution of the build was finished.
+       * The difference between finish_time and start_time is the duration of the
+       * build's execution.
+       * 
+ * + * .google.protobuf.Timestamp finish_time = 8; + * @return The finishTime. + */ + public com.google.protobuf.Timestamp getFinishTime() { + if (finishTimeBuilder_ == null) { + return finishTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : finishTime_; + } else { + return finishTimeBuilder_.getMessage(); + } + } + /** + *
+       * Time at which execution of the build was finished.
+       * The difference between finish_time and start_time is the duration of the
+       * build's execution.
+       * 
+ * + * .google.protobuf.Timestamp finish_time = 8; + */ + public Builder setFinishTime(com.google.protobuf.Timestamp value) { + if (finishTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + finishTime_ = value; + onChanged(); + } else { + finishTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Time at which execution of the build was finished.
+       * The difference between finish_time and start_time is the duration of the
+       * build's execution.
+       * 
+ * + * .google.protobuf.Timestamp finish_time = 8; + */ + public Builder setFinishTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (finishTimeBuilder_ == null) { + finishTime_ = builderForValue.build(); + onChanged(); + } else { + finishTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which execution of the build was finished.
+       * The difference between finish_time and start_time is the duration of the
+       * build's execution.
+       * 
+ * + * .google.protobuf.Timestamp finish_time = 8; + */ + public Builder mergeFinishTime(com.google.protobuf.Timestamp value) { + if (finishTimeBuilder_ == null) { + if (finishTime_ != null) { + finishTime_ = + com.google.protobuf.Timestamp.newBuilder(finishTime_).mergeFrom(value).buildPartial(); + } else { + finishTime_ = value; + } + onChanged(); + } else { + finishTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Time at which execution of the build was finished.
+       * The difference between finish_time and start_time is the duration of the
+       * build's execution.
+       * 
+ * + * .google.protobuf.Timestamp finish_time = 8; + */ + public Builder clearFinishTime() { + if (finishTimeBuilder_ == null) { + finishTime_ = null; + onChanged(); + } else { + finishTime_ = null; + finishTimeBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which execution of the build was finished.
+       * The difference between finish_time and start_time is the duration of the
+       * build's execution.
+       * 
+ * + * .google.protobuf.Timestamp finish_time = 8; + */ + public com.google.protobuf.Timestamp.Builder getFinishTimeBuilder() { + + onChanged(); + return getFinishTimeFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which execution of the build was finished.
+       * The difference between finish_time and start_time is the duration of the
+       * build's execution.
+       * 
+ * + * .google.protobuf.Timestamp finish_time = 8; + */ + public com.google.protobuf.TimestampOrBuilder getFinishTimeOrBuilder() { + if (finishTimeBuilder_ != null) { + return finishTimeBuilder_.getMessageOrBuilder(); + } else { + return finishTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : finishTime_; + } + } + /** + *
+       * Time at which execution of the build was finished.
+       * The difference between finish_time and start_time is the duration of the
+       * build's execution.
+       * 
+ * + * .google.protobuf.Timestamp finish_time = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getFinishTimeFieldBuilder() { + if (finishTimeBuilder_ == null) { + finishTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getFinishTime(), + getParentForChildren(), + isClean()); + finishTime_ = null; + } + return finishTimeBuilder_; + } + + private com.google.protobuf.Duration timeout_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeoutBuilder_; + /** + *
+       * Amount of time that this build should be allowed to run, to second
+       * granularity. If this amount of time elapses, work on the build will cease
+       * and the build status will be `TIMEOUT`.
+       * 
+ * + * .google.protobuf.Duration timeout = 12; + * @return Whether the timeout field is set. + */ + public boolean hasTimeout() { + return timeoutBuilder_ != null || timeout_ != null; + } + /** + *
+       * Amount of time that this build should be allowed to run, to second
+       * granularity. If this amount of time elapses, work on the build will cease
+       * and the build status will be `TIMEOUT`.
+       * 
+ * + * .google.protobuf.Duration timeout = 12; + * @return The timeout. + */ + public com.google.protobuf.Duration getTimeout() { + if (timeoutBuilder_ == null) { + return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } else { + return timeoutBuilder_.getMessage(); + } + } + /** + *
+       * Amount of time that this build should be allowed to run, to second
+       * granularity. If this amount of time elapses, work on the build will cease
+       * and the build status will be `TIMEOUT`.
+       * 
+ * + * .google.protobuf.Duration timeout = 12; + */ + public Builder setTimeout(com.google.protobuf.Duration value) { + if (timeoutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeout_ = value; + onChanged(); + } else { + timeoutBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Amount of time that this build should be allowed to run, to second
+       * granularity. If this amount of time elapses, work on the build will cease
+       * and the build status will be `TIMEOUT`.
+       * 
+ * + * .google.protobuf.Duration timeout = 12; + */ + public Builder setTimeout( + com.google.protobuf.Duration.Builder builderForValue) { + if (timeoutBuilder_ == null) { + timeout_ = builderForValue.build(); + onChanged(); + } else { + timeoutBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Amount of time that this build should be allowed to run, to second
+       * granularity. If this amount of time elapses, work on the build will cease
+       * and the build status will be `TIMEOUT`.
+       * 
+ * + * .google.protobuf.Duration timeout = 12; + */ + public Builder mergeTimeout(com.google.protobuf.Duration value) { + if (timeoutBuilder_ == null) { + if (timeout_ != null) { + timeout_ = + com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial(); + } else { + timeout_ = value; + } + onChanged(); + } else { + timeoutBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Amount of time that this build should be allowed to run, to second
+       * granularity. If this amount of time elapses, work on the build will cease
+       * and the build status will be `TIMEOUT`.
+       * 
+ * + * .google.protobuf.Duration timeout = 12; + */ + public Builder clearTimeout() { + if (timeoutBuilder_ == null) { + timeout_ = null; + onChanged(); + } else { + timeout_ = null; + timeoutBuilder_ = null; + } + + return this; + } + /** + *
+       * Amount of time that this build should be allowed to run, to second
+       * granularity. If this amount of time elapses, work on the build will cease
+       * and the build status will be `TIMEOUT`.
+       * 
+ * + * .google.protobuf.Duration timeout = 12; + */ + public com.google.protobuf.Duration.Builder getTimeoutBuilder() { + + onChanged(); + return getTimeoutFieldBuilder().getBuilder(); + } + /** + *
+       * Amount of time that this build should be allowed to run, to second
+       * granularity. If this amount of time elapses, work on the build will cease
+       * and the build status will be `TIMEOUT`.
+       * 
+ * + * .google.protobuf.Duration timeout = 12; + */ + public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { + if (timeoutBuilder_ != null) { + return timeoutBuilder_.getMessageOrBuilder(); + } else { + return timeout_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } + } + /** + *
+       * Amount of time that this build should be allowed to run, to second
+       * granularity. If this amount of time elapses, work on the build will cease
+       * and the build status will be `TIMEOUT`.
+       * 
+ * + * .google.protobuf.Duration timeout = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getTimeoutFieldBuilder() { + if (timeoutBuilder_ == null) { + timeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getTimeout(), + getParentForChildren(), + isClean()); + timeout_ = null; + } + return timeoutBuilder_; + } + + private com.google.protobuf.LazyStringList images_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureImagesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + images_ = new com.google.protobuf.LazyStringArrayList(images_); + bitField0_ |= 0x00000002; + } + } + /** + *
+       * A list of images to be pushed upon the successful completion of all build
+       * steps.
+       * The images are pushed using the builder service account's credentials.
+       * The digests of the pushed images will be stored in the `Build` resource's
+       * results field.
+       * If any of the images fail to be pushed, the build status is marked
+       * `FAILURE`.
+       * 
+ * + * repeated string images = 13; + * @return A list containing the images. + */ + public com.google.protobuf.ProtocolStringList + getImagesList() { + return images_.getUnmodifiableView(); + } + /** + *
+       * A list of images to be pushed upon the successful completion of all build
+       * steps.
+       * The images are pushed using the builder service account's credentials.
+       * The digests of the pushed images will be stored in the `Build` resource's
+       * results field.
+       * If any of the images fail to be pushed, the build status is marked
+       * `FAILURE`.
+       * 
+ * + * repeated string images = 13; + * @return The count of images. + */ + public int getImagesCount() { + return images_.size(); + } + /** + *
+       * A list of images to be pushed upon the successful completion of all build
+       * steps.
+       * The images are pushed using the builder service account's credentials.
+       * The digests of the pushed images will be stored in the `Build` resource's
+       * results field.
+       * If any of the images fail to be pushed, the build status is marked
+       * `FAILURE`.
+       * 
+ * + * repeated string images = 13; + * @param index The index of the element to return. + * @return The images at the given index. + */ + public java.lang.String getImages(int index) { + return images_.get(index); + } + /** + *
+       * A list of images to be pushed upon the successful completion of all build
+       * steps.
+       * The images are pushed using the builder service account's credentials.
+       * The digests of the pushed images will be stored in the `Build` resource's
+       * results field.
+       * If any of the images fail to be pushed, the build status is marked
+       * `FAILURE`.
+       * 
+ * + * repeated string images = 13; + * @param index The index of the value to return. + * @return The bytes of the images at the given index. + */ + public com.google.protobuf.ByteString + getImagesBytes(int index) { + return images_.getByteString(index); + } + /** + *
+       * A list of images to be pushed upon the successful completion of all build
+       * steps.
+       * The images are pushed using the builder service account's credentials.
+       * The digests of the pushed images will be stored in the `Build` resource's
+       * results field.
+       * If any of the images fail to be pushed, the build status is marked
+       * `FAILURE`.
+       * 
+ * + * repeated string images = 13; + * @param index The index to set the value at. + * @param value The images to set. + * @return This builder for chaining. + */ + public Builder setImages( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureImagesIsMutable(); + images_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * A list of images to be pushed upon the successful completion of all build
+       * steps.
+       * The images are pushed using the builder service account's credentials.
+       * The digests of the pushed images will be stored in the `Build` resource's
+       * results field.
+       * If any of the images fail to be pushed, the build status is marked
+       * `FAILURE`.
+       * 
+ * + * repeated string images = 13; + * @param value The images to add. + * @return This builder for chaining. + */ + public Builder addImages( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureImagesIsMutable(); + images_.add(value); + onChanged(); + return this; + } + /** + *
+       * A list of images to be pushed upon the successful completion of all build
+       * steps.
+       * The images are pushed using the builder service account's credentials.
+       * The digests of the pushed images will be stored in the `Build` resource's
+       * results field.
+       * If any of the images fail to be pushed, the build status is marked
+       * `FAILURE`.
+       * 
+ * + * repeated string images = 13; + * @param values The images to add. + * @return This builder for chaining. + */ + public Builder addAllImages( + java.lang.Iterable values) { + ensureImagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, images_); + onChanged(); + return this; + } + /** + *
+       * A list of images to be pushed upon the successful completion of all build
+       * steps.
+       * The images are pushed using the builder service account's credentials.
+       * The digests of the pushed images will be stored in the `Build` resource's
+       * results field.
+       * If any of the images fail to be pushed, the build status is marked
+       * `FAILURE`.
+       * 
+ * + * repeated string images = 13; + * @return This builder for chaining. + */ + public Builder clearImages() { + images_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * A list of images to be pushed upon the successful completion of all build
+       * steps.
+       * The images are pushed using the builder service account's credentials.
+       * The digests of the pushed images will be stored in the `Build` resource's
+       * results field.
+       * If any of the images fail to be pushed, the build status is marked
+       * `FAILURE`.
+       * 
+ * + * repeated string images = 13; + * @param value The bytes of the images to add. + * @return This builder for chaining. + */ + public Builder addImagesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureImagesIsMutable(); + images_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.Duration queueTtl_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> queueTtlBuilder_; + /** + *
+       * TTL in queue for this build. If provided and the build is enqueued longer
+       * than this value, the build will expire and the build status will be
+       * `EXPIRED`.
+       * The TTL starts ticking from create_time.
+       * 
+ * + * .google.protobuf.Duration queue_ttl = 40; + * @return Whether the queueTtl field is set. + */ + public boolean hasQueueTtl() { + return queueTtlBuilder_ != null || queueTtl_ != null; + } + /** + *
+       * TTL in queue for this build. If provided and the build is enqueued longer
+       * than this value, the build will expire and the build status will be
+       * `EXPIRED`.
+       * The TTL starts ticking from create_time.
+       * 
+ * + * .google.protobuf.Duration queue_ttl = 40; + * @return The queueTtl. + */ + public com.google.protobuf.Duration getQueueTtl() { + if (queueTtlBuilder_ == null) { + return queueTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : queueTtl_; + } else { + return queueTtlBuilder_.getMessage(); + } + } + /** + *
+       * TTL in queue for this build. If provided and the build is enqueued longer
+       * than this value, the build will expire and the build status will be
+       * `EXPIRED`.
+       * The TTL starts ticking from create_time.
+       * 
+ * + * .google.protobuf.Duration queue_ttl = 40; + */ + public Builder setQueueTtl(com.google.protobuf.Duration value) { + if (queueTtlBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + queueTtl_ = value; + onChanged(); + } else { + queueTtlBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * TTL in queue for this build. If provided and the build is enqueued longer
+       * than this value, the build will expire and the build status will be
+       * `EXPIRED`.
+       * The TTL starts ticking from create_time.
+       * 
+ * + * .google.protobuf.Duration queue_ttl = 40; + */ + public Builder setQueueTtl( + com.google.protobuf.Duration.Builder builderForValue) { + if (queueTtlBuilder_ == null) { + queueTtl_ = builderForValue.build(); + onChanged(); + } else { + queueTtlBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * TTL in queue for this build. If provided and the build is enqueued longer
+       * than this value, the build will expire and the build status will be
+       * `EXPIRED`.
+       * The TTL starts ticking from create_time.
+       * 
+ * + * .google.protobuf.Duration queue_ttl = 40; + */ + public Builder mergeQueueTtl(com.google.protobuf.Duration value) { + if (queueTtlBuilder_ == null) { + if (queueTtl_ != null) { + queueTtl_ = + com.google.protobuf.Duration.newBuilder(queueTtl_).mergeFrom(value).buildPartial(); + } else { + queueTtl_ = value; + } + onChanged(); + } else { + queueTtlBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * TTL in queue for this build. If provided and the build is enqueued longer
+       * than this value, the build will expire and the build status will be
+       * `EXPIRED`.
+       * The TTL starts ticking from create_time.
+       * 
+ * + * .google.protobuf.Duration queue_ttl = 40; + */ + public Builder clearQueueTtl() { + if (queueTtlBuilder_ == null) { + queueTtl_ = null; + onChanged(); + } else { + queueTtl_ = null; + queueTtlBuilder_ = null; + } + + return this; + } + /** + *
+       * TTL in queue for this build. If provided and the build is enqueued longer
+       * than this value, the build will expire and the build status will be
+       * `EXPIRED`.
+       * The TTL starts ticking from create_time.
+       * 
+ * + * .google.protobuf.Duration queue_ttl = 40; + */ + public com.google.protobuf.Duration.Builder getQueueTtlBuilder() { + + onChanged(); + return getQueueTtlFieldBuilder().getBuilder(); + } + /** + *
+       * TTL in queue for this build. If provided and the build is enqueued longer
+       * than this value, the build will expire and the build status will be
+       * `EXPIRED`.
+       * The TTL starts ticking from create_time.
+       * 
+ * + * .google.protobuf.Duration queue_ttl = 40; + */ + public com.google.protobuf.DurationOrBuilder getQueueTtlOrBuilder() { + if (queueTtlBuilder_ != null) { + return queueTtlBuilder_.getMessageOrBuilder(); + } else { + return queueTtl_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : queueTtl_; + } + } + /** + *
+       * TTL in queue for this build. If provided and the build is enqueued longer
+       * than this value, the build will expire and the build status will be
+       * `EXPIRED`.
+       * The TTL starts ticking from create_time.
+       * 
+ * + * .google.protobuf.Duration queue_ttl = 40; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getQueueTtlFieldBuilder() { + if (queueTtlBuilder_ == null) { + queueTtlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getQueueTtl(), + getParentForChildren(), + isClean()); + queueTtl_ = null; + } + return queueTtlBuilder_; + } + + private google.events.cloud.build.v1.Data.Artifacts artifacts_; + private com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.Artifacts, google.events.cloud.build.v1.Data.Artifacts.Builder, google.events.cloud.build.v1.Data.ArtifactsOrBuilder> artifactsBuilder_; + /** + *
+       * Artifacts produced by the build that should be uploaded upon
+       * successful completion of all build steps.
+       * 
+ * + * .google.events.cloud.build.v1.Artifacts artifacts = 37; + * @return Whether the artifacts field is set. + */ + public boolean hasArtifacts() { + return artifactsBuilder_ != null || artifacts_ != null; + } + /** + *
+       * Artifacts produced by the build that should be uploaded upon
+       * successful completion of all build steps.
+       * 
+ * + * .google.events.cloud.build.v1.Artifacts artifacts = 37; + * @return The artifacts. + */ + public google.events.cloud.build.v1.Data.Artifacts getArtifacts() { + if (artifactsBuilder_ == null) { + return artifacts_ == null ? google.events.cloud.build.v1.Data.Artifacts.getDefaultInstance() : artifacts_; + } else { + return artifactsBuilder_.getMessage(); + } + } + /** + *
+       * Artifacts produced by the build that should be uploaded upon
+       * successful completion of all build steps.
+       * 
+ * + * .google.events.cloud.build.v1.Artifacts artifacts = 37; + */ + public Builder setArtifacts(google.events.cloud.build.v1.Data.Artifacts value) { + if (artifactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + artifacts_ = value; + onChanged(); + } else { + artifactsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Artifacts produced by the build that should be uploaded upon
+       * successful completion of all build steps.
+       * 
+ * + * .google.events.cloud.build.v1.Artifacts artifacts = 37; + */ + public Builder setArtifacts( + google.events.cloud.build.v1.Data.Artifacts.Builder builderForValue) { + if (artifactsBuilder_ == null) { + artifacts_ = builderForValue.build(); + onChanged(); + } else { + artifactsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Artifacts produced by the build that should be uploaded upon
+       * successful completion of all build steps.
+       * 
+ * + * .google.events.cloud.build.v1.Artifacts artifacts = 37; + */ + public Builder mergeArtifacts(google.events.cloud.build.v1.Data.Artifacts value) { + if (artifactsBuilder_ == null) { + if (artifacts_ != null) { + artifacts_ = + google.events.cloud.build.v1.Data.Artifacts.newBuilder(artifacts_).mergeFrom(value).buildPartial(); + } else { + artifacts_ = value; + } + onChanged(); + } else { + artifactsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Artifacts produced by the build that should be uploaded upon
+       * successful completion of all build steps.
+       * 
+ * + * .google.events.cloud.build.v1.Artifacts artifacts = 37; + */ + public Builder clearArtifacts() { + if (artifactsBuilder_ == null) { + artifacts_ = null; + onChanged(); + } else { + artifacts_ = null; + artifactsBuilder_ = null; + } + + return this; + } + /** + *
+       * Artifacts produced by the build that should be uploaded upon
+       * successful completion of all build steps.
+       * 
+ * + * .google.events.cloud.build.v1.Artifacts artifacts = 37; + */ + public google.events.cloud.build.v1.Data.Artifacts.Builder getArtifactsBuilder() { + + onChanged(); + return getArtifactsFieldBuilder().getBuilder(); + } + /** + *
+       * Artifacts produced by the build that should be uploaded upon
+       * successful completion of all build steps.
+       * 
+ * + * .google.events.cloud.build.v1.Artifacts artifacts = 37; + */ + public google.events.cloud.build.v1.Data.ArtifactsOrBuilder getArtifactsOrBuilder() { + if (artifactsBuilder_ != null) { + return artifactsBuilder_.getMessageOrBuilder(); + } else { + return artifacts_ == null ? + google.events.cloud.build.v1.Data.Artifacts.getDefaultInstance() : artifacts_; + } + } + /** + *
+       * Artifacts produced by the build that should be uploaded upon
+       * successful completion of all build steps.
+       * 
+ * + * .google.events.cloud.build.v1.Artifacts artifacts = 37; + */ + private com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.Artifacts, google.events.cloud.build.v1.Data.Artifacts.Builder, google.events.cloud.build.v1.Data.ArtifactsOrBuilder> + getArtifactsFieldBuilder() { + if (artifactsBuilder_ == null) { + artifactsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.Artifacts, google.events.cloud.build.v1.Data.Artifacts.Builder, google.events.cloud.build.v1.Data.ArtifactsOrBuilder>( + getArtifacts(), + getParentForChildren(), + isClean()); + artifacts_ = null; + } + return artifactsBuilder_; + } + + private java.lang.Object logsBucket_ = ""; + /** + *
+       * Google Cloud Storage bucket where logs should be written (see
+       * [Bucket Name
+       * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
+       * Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
+       * 
+ * + * string logs_bucket = 19; + * @return The logsBucket. + */ + public java.lang.String getLogsBucket() { + java.lang.Object ref = logsBucket_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + logsBucket_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Google Cloud Storage bucket where logs should be written (see
+       * [Bucket Name
+       * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
+       * Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
+       * 
+ * + * string logs_bucket = 19; + * @return The bytes for logsBucket. + */ + public com.google.protobuf.ByteString + getLogsBucketBytes() { + java.lang.Object ref = logsBucket_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + logsBucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Google Cloud Storage bucket where logs should be written (see
+       * [Bucket Name
+       * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
+       * Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
+       * 
+ * + * string logs_bucket = 19; + * @param value The logsBucket to set. + * @return This builder for chaining. + */ + public Builder setLogsBucket( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + logsBucket_ = value; + onChanged(); + return this; + } + /** + *
+       * Google Cloud Storage bucket where logs should be written (see
+       * [Bucket Name
+       * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
+       * Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
+       * 
+ * + * string logs_bucket = 19; + * @return This builder for chaining. + */ + public Builder clearLogsBucket() { + + logsBucket_ = getDefaultInstance().getLogsBucket(); + onChanged(); + return this; + } + /** + *
+       * Google Cloud Storage bucket where logs should be written (see
+       * [Bucket Name
+       * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
+       * Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
+       * 
+ * + * string logs_bucket = 19; + * @param value The bytes for logsBucket to set. + * @return This builder for chaining. + */ + public Builder setLogsBucketBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + logsBucket_ = value; + onChanged(); + return this; + } + + private google.events.cloud.build.v1.Data.SourceProvenance sourceProvenance_; + private com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.SourceProvenance, google.events.cloud.build.v1.Data.SourceProvenance.Builder, google.events.cloud.build.v1.Data.SourceProvenanceOrBuilder> sourceProvenanceBuilder_; + /** + *
+       * A permanent fixed identifier for source.
+       * 
+ * + * .google.events.cloud.build.v1.SourceProvenance source_provenance = 21; + * @return Whether the sourceProvenance field is set. + */ + public boolean hasSourceProvenance() { + return sourceProvenanceBuilder_ != null || sourceProvenance_ != null; + } + /** + *
+       * A permanent fixed identifier for source.
+       * 
+ * + * .google.events.cloud.build.v1.SourceProvenance source_provenance = 21; + * @return The sourceProvenance. + */ + public google.events.cloud.build.v1.Data.SourceProvenance getSourceProvenance() { + if (sourceProvenanceBuilder_ == null) { + return sourceProvenance_ == null ? google.events.cloud.build.v1.Data.SourceProvenance.getDefaultInstance() : sourceProvenance_; + } else { + return sourceProvenanceBuilder_.getMessage(); + } + } + /** + *
+       * A permanent fixed identifier for source.
+       * 
+ * + * .google.events.cloud.build.v1.SourceProvenance source_provenance = 21; + */ + public Builder setSourceProvenance(google.events.cloud.build.v1.Data.SourceProvenance value) { + if (sourceProvenanceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceProvenance_ = value; + onChanged(); + } else { + sourceProvenanceBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * A permanent fixed identifier for source.
+       * 
+ * + * .google.events.cloud.build.v1.SourceProvenance source_provenance = 21; + */ + public Builder setSourceProvenance( + google.events.cloud.build.v1.Data.SourceProvenance.Builder builderForValue) { + if (sourceProvenanceBuilder_ == null) { + sourceProvenance_ = builderForValue.build(); + onChanged(); + } else { + sourceProvenanceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * A permanent fixed identifier for source.
+       * 
+ * + * .google.events.cloud.build.v1.SourceProvenance source_provenance = 21; + */ + public Builder mergeSourceProvenance(google.events.cloud.build.v1.Data.SourceProvenance value) { + if (sourceProvenanceBuilder_ == null) { + if (sourceProvenance_ != null) { + sourceProvenance_ = + google.events.cloud.build.v1.Data.SourceProvenance.newBuilder(sourceProvenance_).mergeFrom(value).buildPartial(); + } else { + sourceProvenance_ = value; + } + onChanged(); + } else { + sourceProvenanceBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * A permanent fixed identifier for source.
+       * 
+ * + * .google.events.cloud.build.v1.SourceProvenance source_provenance = 21; + */ + public Builder clearSourceProvenance() { + if (sourceProvenanceBuilder_ == null) { + sourceProvenance_ = null; + onChanged(); + } else { + sourceProvenance_ = null; + sourceProvenanceBuilder_ = null; + } + + return this; + } + /** + *
+       * A permanent fixed identifier for source.
+       * 
+ * + * .google.events.cloud.build.v1.SourceProvenance source_provenance = 21; + */ + public google.events.cloud.build.v1.Data.SourceProvenance.Builder getSourceProvenanceBuilder() { + + onChanged(); + return getSourceProvenanceFieldBuilder().getBuilder(); + } + /** + *
+       * A permanent fixed identifier for source.
+       * 
+ * + * .google.events.cloud.build.v1.SourceProvenance source_provenance = 21; + */ + public google.events.cloud.build.v1.Data.SourceProvenanceOrBuilder getSourceProvenanceOrBuilder() { + if (sourceProvenanceBuilder_ != null) { + return sourceProvenanceBuilder_.getMessageOrBuilder(); + } else { + return sourceProvenance_ == null ? + google.events.cloud.build.v1.Data.SourceProvenance.getDefaultInstance() : sourceProvenance_; + } + } + /** + *
+       * A permanent fixed identifier for source.
+       * 
+ * + * .google.events.cloud.build.v1.SourceProvenance source_provenance = 21; + */ + private com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.SourceProvenance, google.events.cloud.build.v1.Data.SourceProvenance.Builder, google.events.cloud.build.v1.Data.SourceProvenanceOrBuilder> + getSourceProvenanceFieldBuilder() { + if (sourceProvenanceBuilder_ == null) { + sourceProvenanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.SourceProvenance, google.events.cloud.build.v1.Data.SourceProvenance.Builder, google.events.cloud.build.v1.Data.SourceProvenanceOrBuilder>( + getSourceProvenance(), + getParentForChildren(), + isClean()); + sourceProvenance_ = null; + } + return sourceProvenanceBuilder_; + } + + private java.lang.Object buildTriggerId_ = ""; + /** + *
+       * The ID of the `BuildTrigger` that triggered this build, if it
+       * was triggered automatically.
+       * 
+ * + * string build_trigger_id = 22; + * @return The buildTriggerId. + */ + public java.lang.String getBuildTriggerId() { + java.lang.Object ref = buildTriggerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + buildTriggerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The ID of the `BuildTrigger` that triggered this build, if it
+       * was triggered automatically.
+       * 
+ * + * string build_trigger_id = 22; + * @return The bytes for buildTriggerId. + */ + public com.google.protobuf.ByteString + getBuildTriggerIdBytes() { + java.lang.Object ref = buildTriggerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + buildTriggerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The ID of the `BuildTrigger` that triggered this build, if it
+       * was triggered automatically.
+       * 
+ * + * string build_trigger_id = 22; + * @param value The buildTriggerId to set. + * @return This builder for chaining. + */ + public Builder setBuildTriggerId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + buildTriggerId_ = value; + onChanged(); + return this; + } + /** + *
+       * The ID of the `BuildTrigger` that triggered this build, if it
+       * was triggered automatically.
+       * 
+ * + * string build_trigger_id = 22; + * @return This builder for chaining. + */ + public Builder clearBuildTriggerId() { + + buildTriggerId_ = getDefaultInstance().getBuildTriggerId(); + onChanged(); + return this; + } + /** + *
+       * The ID of the `BuildTrigger` that triggered this build, if it
+       * was triggered automatically.
+       * 
+ * + * string build_trigger_id = 22; + * @param value The bytes for buildTriggerId to set. + * @return This builder for chaining. + */ + public Builder setBuildTriggerIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + buildTriggerId_ = value; + onChanged(); + return this; + } + + private google.events.cloud.build.v1.Data.BuildOptions options_; + private com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.BuildOptions, google.events.cloud.build.v1.Data.BuildOptions.Builder, google.events.cloud.build.v1.Data.BuildOptionsOrBuilder> optionsBuilder_; + /** + *
+       * Special options for this build.
+       * 
+ * + * .google.events.cloud.build.v1.BuildOptions options = 23; + * @return Whether the options field is set. + */ + public boolean hasOptions() { + return optionsBuilder_ != null || options_ != null; + } + /** + *
+       * Special options for this build.
+       * 
+ * + * .google.events.cloud.build.v1.BuildOptions options = 23; + * @return The options. + */ + public google.events.cloud.build.v1.Data.BuildOptions getOptions() { + if (optionsBuilder_ == null) { + return options_ == null ? google.events.cloud.build.v1.Data.BuildOptions.getDefaultInstance() : options_; + } else { + return optionsBuilder_.getMessage(); + } + } + /** + *
+       * Special options for this build.
+       * 
+ * + * .google.events.cloud.build.v1.BuildOptions options = 23; + */ + public Builder setOptions(google.events.cloud.build.v1.Data.BuildOptions value) { + if (optionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + options_ = value; + onChanged(); + } else { + optionsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Special options for this build.
+       * 
+ * + * .google.events.cloud.build.v1.BuildOptions options = 23; + */ + public Builder setOptions( + google.events.cloud.build.v1.Data.BuildOptions.Builder builderForValue) { + if (optionsBuilder_ == null) { + options_ = builderForValue.build(); + onChanged(); + } else { + optionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Special options for this build.
+       * 
+ * + * .google.events.cloud.build.v1.BuildOptions options = 23; + */ + public Builder mergeOptions(google.events.cloud.build.v1.Data.BuildOptions value) { + if (optionsBuilder_ == null) { + if (options_ != null) { + options_ = + google.events.cloud.build.v1.Data.BuildOptions.newBuilder(options_).mergeFrom(value).buildPartial(); + } else { + options_ = value; + } + onChanged(); + } else { + optionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Special options for this build.
+       * 
+ * + * .google.events.cloud.build.v1.BuildOptions options = 23; + */ + public Builder clearOptions() { + if (optionsBuilder_ == null) { + options_ = null; + onChanged(); + } else { + options_ = null; + optionsBuilder_ = null; + } + + return this; + } + /** + *
+       * Special options for this build.
+       * 
+ * + * .google.events.cloud.build.v1.BuildOptions options = 23; + */ + public google.events.cloud.build.v1.Data.BuildOptions.Builder getOptionsBuilder() { + + onChanged(); + return getOptionsFieldBuilder().getBuilder(); + } + /** + *
+       * Special options for this build.
+       * 
+ * + * .google.events.cloud.build.v1.BuildOptions options = 23; + */ + public google.events.cloud.build.v1.Data.BuildOptionsOrBuilder getOptionsOrBuilder() { + if (optionsBuilder_ != null) { + return optionsBuilder_.getMessageOrBuilder(); + } else { + return options_ == null ? + google.events.cloud.build.v1.Data.BuildOptions.getDefaultInstance() : options_; + } + } + /** + *
+       * Special options for this build.
+       * 
+ * + * .google.events.cloud.build.v1.BuildOptions options = 23; + */ + private com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.BuildOptions, google.events.cloud.build.v1.Data.BuildOptions.Builder, google.events.cloud.build.v1.Data.BuildOptionsOrBuilder> + getOptionsFieldBuilder() { + if (optionsBuilder_ == null) { + optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.BuildOptions, google.events.cloud.build.v1.Data.BuildOptions.Builder, google.events.cloud.build.v1.Data.BuildOptionsOrBuilder>( + getOptions(), + getParentForChildren(), + isClean()); + options_ = null; + } + return optionsBuilder_; + } + + private java.lang.Object logUrl_ = ""; + /** + *
+       * URL to logs for this build in Google Cloud Console.
+       * 
+ * + * string log_url = 25; + * @return The logUrl. + */ + public java.lang.String getLogUrl() { + java.lang.Object ref = logUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + logUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * URL to logs for this build in Google Cloud Console.
+       * 
+ * + * string log_url = 25; + * @return The bytes for logUrl. + */ + public com.google.protobuf.ByteString + getLogUrlBytes() { + java.lang.Object ref = logUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + logUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * URL to logs for this build in Google Cloud Console.
+       * 
+ * + * string log_url = 25; + * @param value The logUrl to set. + * @return This builder for chaining. + */ + public Builder setLogUrl( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + logUrl_ = value; + onChanged(); + return this; + } + /** + *
+       * URL to logs for this build in Google Cloud Console.
+       * 
+ * + * string log_url = 25; + * @return This builder for chaining. + */ + public Builder clearLogUrl() { + + logUrl_ = getDefaultInstance().getLogUrl(); + onChanged(); + return this; + } + /** + *
+       * URL to logs for this build in Google Cloud Console.
+       * 
+ * + * string log_url = 25; + * @param value The bytes for logUrl to set. + * @return This builder for chaining. + */ + public Builder setLogUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + logUrl_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> substitutions_; + private com.google.protobuf.MapField + internalGetSubstitutions() { + if (substitutions_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SubstitutionsDefaultEntryHolder.defaultEntry); + } + return substitutions_; + } + private com.google.protobuf.MapField + internalGetMutableSubstitutions() { + onChanged();; + if (substitutions_ == null) { + substitutions_ = com.google.protobuf.MapField.newMapField( + SubstitutionsDefaultEntryHolder.defaultEntry); + } + if (!substitutions_.isMutable()) { + substitutions_ = substitutions_.copy(); + } + return substitutions_; + } + + public int getSubstitutionsCount() { + return internalGetSubstitutions().getMap().size(); + } + /** + *
+       * Substitutions data for `Build` resource.
+       * 
+ * + * map<string, string> substitutions = 29; + */ + + @java.lang.Override + public boolean containsSubstitutions( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetSubstitutions().getMap().containsKey(key); + } + /** + * Use {@link #getSubstitutionsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getSubstitutions() { + return getSubstitutionsMap(); + } + /** + *
+       * Substitutions data for `Build` resource.
+       * 
+ * + * map<string, string> substitutions = 29; + */ + @java.lang.Override + + public java.util.Map getSubstitutionsMap() { + return internalGetSubstitutions().getMap(); + } + /** + *
+       * Substitutions data for `Build` resource.
+       * 
+ * + * map<string, string> substitutions = 29; + */ + @java.lang.Override + + public java.lang.String getSubstitutionsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetSubstitutions().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Substitutions data for `Build` resource.
+       * 
+ * + * map<string, string> substitutions = 29; + */ + @java.lang.Override + + public java.lang.String getSubstitutionsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetSubstitutions().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearSubstitutions() { + internalGetMutableSubstitutions().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Substitutions data for `Build` resource.
+       * 
+ * + * map<string, string> substitutions = 29; + */ + + public Builder removeSubstitutions( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableSubstitutions().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableSubstitutions() { + return internalGetMutableSubstitutions().getMutableMap(); + } + /** + *
+       * Substitutions data for `Build` resource.
+       * 
+ * + * map<string, string> substitutions = 29; + */ + public Builder putSubstitutions( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableSubstitutions().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Substitutions data for `Build` resource.
+       * 
+ * + * map<string, string> substitutions = 29; + */ + + public Builder putAllSubstitutions( + java.util.Map values) { + internalGetMutableSubstitutions().getMutableMap() + .putAll(values); + return this; + } + + private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTagsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + bitField0_ |= 0x00000008; + } + } + /** + *
+       * Tags for annotation of a `Build`. These are not docker tags.
+       * 
+ * + * repeated string tags = 31; + * @return A list containing the tags. + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_.getUnmodifiableView(); + } + /** + *
+       * Tags for annotation of a `Build`. These are not docker tags.
+       * 
+ * + * repeated string tags = 31; + * @return The count of tags. + */ + public int getTagsCount() { + return tags_.size(); + } + /** + *
+       * Tags for annotation of a `Build`. These are not docker tags.
+       * 
+ * + * repeated string tags = 31; + * @param index The index of the element to return. + * @return The tags at the given index. + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + *
+       * Tags for annotation of a `Build`. These are not docker tags.
+       * 
+ * + * repeated string tags = 31; + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + /** + *
+       * Tags for annotation of a `Build`. These are not docker tags.
+       * 
+ * + * repeated string tags = 31; + * @param index The index to set the value at. + * @param value The tags to set. + * @return This builder for chaining. + */ + public Builder setTags( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Tags for annotation of a `Build`. These are not docker tags.
+       * 
+ * + * repeated string tags = 31; + * @param value The tags to add. + * @return This builder for chaining. + */ + public Builder addTags( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + /** + *
+       * Tags for annotation of a `Build`. These are not docker tags.
+       * 
+ * + * repeated string tags = 31; + * @param values The tags to add. + * @return This builder for chaining. + */ + public Builder addAllTags( + java.lang.Iterable values) { + ensureTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tags_); + onChanged(); + return this; + } + /** + *
+       * Tags for annotation of a `Build`. These are not docker tags.
+       * 
+ * + * repeated string tags = 31; + * @return This builder for chaining. + */ + public Builder clearTags() { + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+       * Tags for annotation of a `Build`. These are not docker tags.
+       * 
+ * + * repeated string tags = 31; + * @param value The bytes of the tags to add. + * @return This builder for chaining. + */ + public Builder addTagsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + + private java.util.List secrets_ = + java.util.Collections.emptyList(); + private void ensureSecretsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + secrets_ = new java.util.ArrayList(secrets_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + google.events.cloud.build.v1.Data.Secret, google.events.cloud.build.v1.Data.Secret.Builder, google.events.cloud.build.v1.Data.SecretOrBuilder> secretsBuilder_; + + /** + *
+       * Secrets to decrypt using Cloud Key Management Service.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Secret secrets = 32; + */ + public java.util.List getSecretsList() { + if (secretsBuilder_ == null) { + return java.util.Collections.unmodifiableList(secrets_); + } else { + return secretsBuilder_.getMessageList(); + } + } + /** + *
+       * Secrets to decrypt using Cloud Key Management Service.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Secret secrets = 32; + */ + public int getSecretsCount() { + if (secretsBuilder_ == null) { + return secrets_.size(); + } else { + return secretsBuilder_.getCount(); + } + } + /** + *
+       * Secrets to decrypt using Cloud Key Management Service.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Secret secrets = 32; + */ + public google.events.cloud.build.v1.Data.Secret getSecrets(int index) { + if (secretsBuilder_ == null) { + return secrets_.get(index); + } else { + return secretsBuilder_.getMessage(index); + } + } + /** + *
+       * Secrets to decrypt using Cloud Key Management Service.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Secret secrets = 32; + */ + public Builder setSecrets( + int index, google.events.cloud.build.v1.Data.Secret value) { + if (secretsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecretsIsMutable(); + secrets_.set(index, value); + onChanged(); + } else { + secretsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Secrets to decrypt using Cloud Key Management Service.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Secret secrets = 32; + */ + public Builder setSecrets( + int index, google.events.cloud.build.v1.Data.Secret.Builder builderForValue) { + if (secretsBuilder_ == null) { + ensureSecretsIsMutable(); + secrets_.set(index, builderForValue.build()); + onChanged(); + } else { + secretsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Secrets to decrypt using Cloud Key Management Service.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Secret secrets = 32; + */ + public Builder addSecrets(google.events.cloud.build.v1.Data.Secret value) { + if (secretsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecretsIsMutable(); + secrets_.add(value); + onChanged(); + } else { + secretsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Secrets to decrypt using Cloud Key Management Service.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Secret secrets = 32; + */ + public Builder addSecrets( + int index, google.events.cloud.build.v1.Data.Secret value) { + if (secretsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecretsIsMutable(); + secrets_.add(index, value); + onChanged(); + } else { + secretsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Secrets to decrypt using Cloud Key Management Service.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Secret secrets = 32; + */ + public Builder addSecrets( + google.events.cloud.build.v1.Data.Secret.Builder builderForValue) { + if (secretsBuilder_ == null) { + ensureSecretsIsMutable(); + secrets_.add(builderForValue.build()); + onChanged(); + } else { + secretsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Secrets to decrypt using Cloud Key Management Service.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Secret secrets = 32; + */ + public Builder addSecrets( + int index, google.events.cloud.build.v1.Data.Secret.Builder builderForValue) { + if (secretsBuilder_ == null) { + ensureSecretsIsMutable(); + secrets_.add(index, builderForValue.build()); + onChanged(); + } else { + secretsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Secrets to decrypt using Cloud Key Management Service.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Secret secrets = 32; + */ + public Builder addAllSecrets( + java.lang.Iterable values) { + if (secretsBuilder_ == null) { + ensureSecretsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, secrets_); + onChanged(); + } else { + secretsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Secrets to decrypt using Cloud Key Management Service.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Secret secrets = 32; + */ + public Builder clearSecrets() { + if (secretsBuilder_ == null) { + secrets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + secretsBuilder_.clear(); + } + return this; + } + /** + *
+       * Secrets to decrypt using Cloud Key Management Service.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Secret secrets = 32; + */ + public Builder removeSecrets(int index) { + if (secretsBuilder_ == null) { + ensureSecretsIsMutable(); + secrets_.remove(index); + onChanged(); + } else { + secretsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Secrets to decrypt using Cloud Key Management Service.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Secret secrets = 32; + */ + public google.events.cloud.build.v1.Data.Secret.Builder getSecretsBuilder( + int index) { + return getSecretsFieldBuilder().getBuilder(index); + } + /** + *
+       * Secrets to decrypt using Cloud Key Management Service.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Secret secrets = 32; + */ + public google.events.cloud.build.v1.Data.SecretOrBuilder getSecretsOrBuilder( + int index) { + if (secretsBuilder_ == null) { + return secrets_.get(index); } else { + return secretsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Secrets to decrypt using Cloud Key Management Service.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Secret secrets = 32; + */ + public java.util.List + getSecretsOrBuilderList() { + if (secretsBuilder_ != null) { + return secretsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(secrets_); + } + } + /** + *
+       * Secrets to decrypt using Cloud Key Management Service.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Secret secrets = 32; + */ + public google.events.cloud.build.v1.Data.Secret.Builder addSecretsBuilder() { + return getSecretsFieldBuilder().addBuilder( + google.events.cloud.build.v1.Data.Secret.getDefaultInstance()); + } + /** + *
+       * Secrets to decrypt using Cloud Key Management Service.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Secret secrets = 32; + */ + public google.events.cloud.build.v1.Data.Secret.Builder addSecretsBuilder( + int index) { + return getSecretsFieldBuilder().addBuilder( + index, google.events.cloud.build.v1.Data.Secret.getDefaultInstance()); + } + /** + *
+       * Secrets to decrypt using Cloud Key Management Service.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Secret secrets = 32; + */ + public java.util.List + getSecretsBuilderList() { + return getSecretsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + google.events.cloud.build.v1.Data.Secret, google.events.cloud.build.v1.Data.Secret.Builder, google.events.cloud.build.v1.Data.SecretOrBuilder> + getSecretsFieldBuilder() { + if (secretsBuilder_ == null) { + secretsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + google.events.cloud.build.v1.Data.Secret, google.events.cloud.build.v1.Data.Secret.Builder, google.events.cloud.build.v1.Data.SecretOrBuilder>( + secrets_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + secrets_ = null; + } + return secretsBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, google.events.cloud.build.v1.Data.TimeSpan> timing_; + private com.google.protobuf.MapField + internalGetTiming() { + if (timing_ == null) { + return com.google.protobuf.MapField.emptyMapField( + TimingDefaultEntryHolder.defaultEntry); + } + return timing_; + } + private com.google.protobuf.MapField + internalGetMutableTiming() { + onChanged();; + if (timing_ == null) { + timing_ = com.google.protobuf.MapField.newMapField( + TimingDefaultEntryHolder.defaultEntry); + } + if (!timing_.isMutable()) { + timing_ = timing_.copy(); + } + return timing_; + } + + public int getTimingCount() { + return internalGetTiming().getMap().size(); + } + /** + *
+       * Stores timing information for phases of the build. Valid keys
+       * are:
+       * * BUILD: time to execute all build steps
+       * * PUSH: time to push all specified images.
+       * * FETCHSOURCE: time to fetch source.
+       * If the build does not specify source or images,
+       * these keys will not be included.
+       * 
+ * + * map<string, .google.events.cloud.build.v1.TimeSpan> timing = 33; + */ + + @java.lang.Override + public boolean containsTiming( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetTiming().getMap().containsKey(key); + } + /** + * Use {@link #getTimingMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTiming() { + return getTimingMap(); + } + /** + *
+       * Stores timing information for phases of the build. Valid keys
+       * are:
+       * * BUILD: time to execute all build steps
+       * * PUSH: time to push all specified images.
+       * * FETCHSOURCE: time to fetch source.
+       * If the build does not specify source or images,
+       * these keys will not be included.
+       * 
+ * + * map<string, .google.events.cloud.build.v1.TimeSpan> timing = 33; + */ + @java.lang.Override + + public java.util.Map getTimingMap() { + return internalGetTiming().getMap(); + } + /** + *
+       * Stores timing information for phases of the build. Valid keys
+       * are:
+       * * BUILD: time to execute all build steps
+       * * PUSH: time to push all specified images.
+       * * FETCHSOURCE: time to fetch source.
+       * If the build does not specify source or images,
+       * these keys will not be included.
+       * 
+ * + * map<string, .google.events.cloud.build.v1.TimeSpan> timing = 33; + */ + @java.lang.Override + + public google.events.cloud.build.v1.Data.TimeSpan getTimingOrDefault( + java.lang.String key, + google.events.cloud.build.v1.Data.TimeSpan defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetTiming().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Stores timing information for phases of the build. Valid keys
+       * are:
+       * * BUILD: time to execute all build steps
+       * * PUSH: time to push all specified images.
+       * * FETCHSOURCE: time to fetch source.
+       * If the build does not specify source or images,
+       * these keys will not be included.
+       * 
+ * + * map<string, .google.events.cloud.build.v1.TimeSpan> timing = 33; + */ + @java.lang.Override + + public google.events.cloud.build.v1.Data.TimeSpan getTimingOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetTiming().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearTiming() { + internalGetMutableTiming().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Stores timing information for phases of the build. Valid keys
+       * are:
+       * * BUILD: time to execute all build steps
+       * * PUSH: time to push all specified images.
+       * * FETCHSOURCE: time to fetch source.
+       * If the build does not specify source or images,
+       * these keys will not be included.
+       * 
+ * + * map<string, .google.events.cloud.build.v1.TimeSpan> timing = 33; + */ + + public Builder removeTiming( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableTiming().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableTiming() { + return internalGetMutableTiming().getMutableMap(); + } + /** + *
+       * Stores timing information for phases of the build. Valid keys
+       * are:
+       * * BUILD: time to execute all build steps
+       * * PUSH: time to push all specified images.
+       * * FETCHSOURCE: time to fetch source.
+       * If the build does not specify source or images,
+       * these keys will not be included.
+       * 
+ * + * map<string, .google.events.cloud.build.v1.TimeSpan> timing = 33; + */ + public Builder putTiming( + java.lang.String key, + google.events.cloud.build.v1.Data.TimeSpan value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableTiming().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Stores timing information for phases of the build. Valid keys
+       * are:
+       * * BUILD: time to execute all build steps
+       * * PUSH: time to push all specified images.
+       * * FETCHSOURCE: time to fetch source.
+       * If the build does not specify source or images,
+       * these keys will not be included.
+       * 
+ * + * map<string, .google.events.cloud.build.v1.TimeSpan> timing = 33; + */ + + public Builder putAllTiming( + java.util.Map values) { + internalGetMutableTiming().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.events.cloud.build.v1.BuildEventData) + } + + // @@protoc_insertion_point(class_scope:google.events.cloud.build.v1.BuildEventData) + private static final google.events.cloud.build.v1.Data.BuildEventData DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new google.events.cloud.build.v1.Data.BuildEventData(); + } + + public static google.events.cloud.build.v1.Data.BuildEventData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BuildEventData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BuildEventData(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.BuildEventData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SourceOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.cloud.build.v1.Source) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * If provided, get the source from this location in Google Cloud Storage.
+     * 
+ * + * .google.events.cloud.build.v1.StorageSource storage_source = 2; + * @return Whether the storageSource field is set. + */ + boolean hasStorageSource(); + /** + *
+     * If provided, get the source from this location in Google Cloud Storage.
+     * 
+ * + * .google.events.cloud.build.v1.StorageSource storage_source = 2; + * @return The storageSource. + */ + google.events.cloud.build.v1.Data.StorageSource getStorageSource(); + /** + *
+     * If provided, get the source from this location in Google Cloud Storage.
+     * 
+ * + * .google.events.cloud.build.v1.StorageSource storage_source = 2; + */ + google.events.cloud.build.v1.Data.StorageSourceOrBuilder getStorageSourceOrBuilder(); + + /** + *
+     * If provided, get the source from this location in a Cloud Source
+     * Repository.
+     * 
+ * + * .google.events.cloud.build.v1.RepoSource repo_source = 3; + * @return Whether the repoSource field is set. + */ + boolean hasRepoSource(); + /** + *
+     * If provided, get the source from this location in a Cloud Source
+     * Repository.
+     * 
+ * + * .google.events.cloud.build.v1.RepoSource repo_source = 3; + * @return The repoSource. + */ + google.events.cloud.build.v1.Data.RepoSource getRepoSource(); + /** + *
+     * If provided, get the source from this location in a Cloud Source
+     * Repository.
+     * 
+ * + * .google.events.cloud.build.v1.RepoSource repo_source = 3; + */ + google.events.cloud.build.v1.Data.RepoSourceOrBuilder getRepoSourceOrBuilder(); + + public google.events.cloud.build.v1.Data.Source.SourceCase getSourceCase(); + } + /** + * Protobuf type {@code google.events.cloud.build.v1.Source} + */ + public static final class Source extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.cloud.build.v1.Source) + SourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use Source.newBuilder() to construct. + private Source(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Source() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Source(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Source( + 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 18: { + google.events.cloud.build.v1.Data.StorageSource.Builder subBuilder = null; + if (sourceCase_ == 2) { + subBuilder = ((google.events.cloud.build.v1.Data.StorageSource) source_).toBuilder(); + } + source_ = + input.readMessage(google.events.cloud.build.v1.Data.StorageSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((google.events.cloud.build.v1.Data.StorageSource) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 2; + break; + } + case 26: { + google.events.cloud.build.v1.Data.RepoSource.Builder subBuilder = null; + if (sourceCase_ == 3) { + subBuilder = ((google.events.cloud.build.v1.Data.RepoSource) source_).toBuilder(); + } + source_ = + input.readMessage(google.events.cloud.build.v1.Data.RepoSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((google.events.cloud.build.v1.Data.RepoSource) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 3; + 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.build.v1.Data.internal_static_google_events_cloud_build_v1_Source_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_Source_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.build.v1.Data.Source.class, google.events.cloud.build.v1.Data.Source.Builder.class); + } + + private int sourceCase_ = 0; + private java.lang.Object source_; + public enum SourceCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + STORAGE_SOURCE(2), + REPO_SOURCE(3), + SOURCE_NOT_SET(0); + private final int value; + private SourceCase(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 SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 2: return STORAGE_SOURCE; + case 3: return REPO_SOURCE; + case 0: return SOURCE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); + } + + public static final int STORAGE_SOURCE_FIELD_NUMBER = 2; + /** + *
+     * If provided, get the source from this location in Google Cloud Storage.
+     * 
+ * + * .google.events.cloud.build.v1.StorageSource storage_source = 2; + * @return Whether the storageSource field is set. + */ + @java.lang.Override + public boolean hasStorageSource() { + return sourceCase_ == 2; + } + /** + *
+     * If provided, get the source from this location in Google Cloud Storage.
+     * 
+ * + * .google.events.cloud.build.v1.StorageSource storage_source = 2; + * @return The storageSource. + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.StorageSource getStorageSource() { + if (sourceCase_ == 2) { + return (google.events.cloud.build.v1.Data.StorageSource) source_; + } + return google.events.cloud.build.v1.Data.StorageSource.getDefaultInstance(); + } + /** + *
+     * If provided, get the source from this location in Google Cloud Storage.
+     * 
+ * + * .google.events.cloud.build.v1.StorageSource storage_source = 2; + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.StorageSourceOrBuilder getStorageSourceOrBuilder() { + if (sourceCase_ == 2) { + return (google.events.cloud.build.v1.Data.StorageSource) source_; + } + return google.events.cloud.build.v1.Data.StorageSource.getDefaultInstance(); + } + + public static final int REPO_SOURCE_FIELD_NUMBER = 3; + /** + *
+     * If provided, get the source from this location in a Cloud Source
+     * Repository.
+     * 
+ * + * .google.events.cloud.build.v1.RepoSource repo_source = 3; + * @return Whether the repoSource field is set. + */ + @java.lang.Override + public boolean hasRepoSource() { + return sourceCase_ == 3; + } + /** + *
+     * If provided, get the source from this location in a Cloud Source
+     * Repository.
+     * 
+ * + * .google.events.cloud.build.v1.RepoSource repo_source = 3; + * @return The repoSource. + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.RepoSource getRepoSource() { + if (sourceCase_ == 3) { + return (google.events.cloud.build.v1.Data.RepoSource) source_; + } + return google.events.cloud.build.v1.Data.RepoSource.getDefaultInstance(); + } + /** + *
+     * If provided, get the source from this location in a Cloud Source
+     * Repository.
+     * 
+ * + * .google.events.cloud.build.v1.RepoSource repo_source = 3; + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.RepoSourceOrBuilder getRepoSourceOrBuilder() { + if (sourceCase_ == 3) { + return (google.events.cloud.build.v1.Data.RepoSource) source_; + } + return google.events.cloud.build.v1.Data.RepoSource.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 (sourceCase_ == 2) { + output.writeMessage(2, (google.events.cloud.build.v1.Data.StorageSource) source_); + } + if (sourceCase_ == 3) { + output.writeMessage(3, (google.events.cloud.build.v1.Data.RepoSource) source_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (sourceCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (google.events.cloud.build.v1.Data.StorageSource) source_); + } + if (sourceCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (google.events.cloud.build.v1.Data.RepoSource) source_); + } + 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.build.v1.Data.Source)) { + return super.equals(obj); + } + google.events.cloud.build.v1.Data.Source other = (google.events.cloud.build.v1.Data.Source) obj; + + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 2: + if (!getStorageSource() + .equals(other.getStorageSource())) return false; + break; + case 3: + if (!getRepoSource() + .equals(other.getRepoSource())) 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 (sourceCase_) { + case 2: + hash = (37 * hash) + STORAGE_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getStorageSource().hashCode(); + break; + case 3: + hash = (37 * hash) + REPO_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getRepoSource().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static google.events.cloud.build.v1.Data.Source parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.Source 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.build.v1.Data.Source parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.Source 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.build.v1.Data.Source parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.Source parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.cloud.build.v1.Data.Source parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.Source 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.build.v1.Data.Source parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.Source 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.build.v1.Data.Source parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.Source 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.build.v1.Data.Source prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code google.events.cloud.build.v1.Source} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.events.cloud.build.v1.Source) + google.events.cloud.build.v1.Data.SourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_Source_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_Source_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.build.v1.Data.Source.class, google.events.cloud.build.v1.Data.Source.Builder.class); + } + + // Construct using google.events.cloud.build.v1.Data.Source.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_Source_descriptor; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.Source getDefaultInstanceForType() { + return google.events.cloud.build.v1.Data.Source.getDefaultInstance(); + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.Source build() { + google.events.cloud.build.v1.Data.Source result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.Source buildPartial() { + google.events.cloud.build.v1.Data.Source result = new google.events.cloud.build.v1.Data.Source(this); + if (sourceCase_ == 2) { + if (storageSourceBuilder_ == null) { + result.source_ = source_; + } else { + result.source_ = storageSourceBuilder_.build(); + } + } + if (sourceCase_ == 3) { + if (repoSourceBuilder_ == null) { + result.source_ = source_; + } else { + result.source_ = repoSourceBuilder_.build(); + } + } + result.sourceCase_ = sourceCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.events.cloud.build.v1.Data.Source) { + return mergeFrom((google.events.cloud.build.v1.Data.Source)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(google.events.cloud.build.v1.Data.Source other) { + if (other == google.events.cloud.build.v1.Data.Source.getDefaultInstance()) return this; + switch (other.getSourceCase()) { + case STORAGE_SOURCE: { + mergeStorageSource(other.getStorageSource()); + break; + } + case REPO_SOURCE: { + mergeRepoSource(other.getRepoSource()); + break; + } + case SOURCE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.events.cloud.build.v1.Data.Source parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.events.cloud.build.v1.Data.Source) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int sourceCase_ = 0; + private java.lang.Object source_; + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.StorageSource, google.events.cloud.build.v1.Data.StorageSource.Builder, google.events.cloud.build.v1.Data.StorageSourceOrBuilder> storageSourceBuilder_; + /** + *
+       * If provided, get the source from this location in Google Cloud Storage.
+       * 
+ * + * .google.events.cloud.build.v1.StorageSource storage_source = 2; + * @return Whether the storageSource field is set. + */ + @java.lang.Override + public boolean hasStorageSource() { + return sourceCase_ == 2; + } + /** + *
+       * If provided, get the source from this location in Google Cloud Storage.
+       * 
+ * + * .google.events.cloud.build.v1.StorageSource storage_source = 2; + * @return The storageSource. + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.StorageSource getStorageSource() { + if (storageSourceBuilder_ == null) { + if (sourceCase_ == 2) { + return (google.events.cloud.build.v1.Data.StorageSource) source_; + } + return google.events.cloud.build.v1.Data.StorageSource.getDefaultInstance(); + } else { + if (sourceCase_ == 2) { + return storageSourceBuilder_.getMessage(); + } + return google.events.cloud.build.v1.Data.StorageSource.getDefaultInstance(); + } + } + /** + *
+       * If provided, get the source from this location in Google Cloud Storage.
+       * 
+ * + * .google.events.cloud.build.v1.StorageSource storage_source = 2; + */ + public Builder setStorageSource(google.events.cloud.build.v1.Data.StorageSource value) { + if (storageSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + storageSourceBuilder_.setMessage(value); + } + sourceCase_ = 2; + return this; + } + /** + *
+       * If provided, get the source from this location in Google Cloud Storage.
+       * 
+ * + * .google.events.cloud.build.v1.StorageSource storage_source = 2; + */ + public Builder setStorageSource( + google.events.cloud.build.v1.Data.StorageSource.Builder builderForValue) { + if (storageSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + storageSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 2; + return this; + } + /** + *
+       * If provided, get the source from this location in Google Cloud Storage.
+       * 
+ * + * .google.events.cloud.build.v1.StorageSource storage_source = 2; + */ + public Builder mergeStorageSource(google.events.cloud.build.v1.Data.StorageSource value) { + if (storageSourceBuilder_ == null) { + if (sourceCase_ == 2 && + source_ != google.events.cloud.build.v1.Data.StorageSource.getDefaultInstance()) { + source_ = google.events.cloud.build.v1.Data.StorageSource.newBuilder((google.events.cloud.build.v1.Data.StorageSource) source_) + .mergeFrom(value).buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 2) { + storageSourceBuilder_.mergeFrom(value); + } + storageSourceBuilder_.setMessage(value); + } + sourceCase_ = 2; + return this; + } + /** + *
+       * If provided, get the source from this location in Google Cloud Storage.
+       * 
+ * + * .google.events.cloud.build.v1.StorageSource storage_source = 2; + */ + public Builder clearStorageSource() { + if (storageSourceBuilder_ == null) { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + } + storageSourceBuilder_.clear(); + } + return this; + } + /** + *
+       * If provided, get the source from this location in Google Cloud Storage.
+       * 
+ * + * .google.events.cloud.build.v1.StorageSource storage_source = 2; + */ + public google.events.cloud.build.v1.Data.StorageSource.Builder getStorageSourceBuilder() { + return getStorageSourceFieldBuilder().getBuilder(); + } + /** + *
+       * If provided, get the source from this location in Google Cloud Storage.
+       * 
+ * + * .google.events.cloud.build.v1.StorageSource storage_source = 2; + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.StorageSourceOrBuilder getStorageSourceOrBuilder() { + if ((sourceCase_ == 2) && (storageSourceBuilder_ != null)) { + return storageSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 2) { + return (google.events.cloud.build.v1.Data.StorageSource) source_; + } + return google.events.cloud.build.v1.Data.StorageSource.getDefaultInstance(); + } + } + /** + *
+       * If provided, get the source from this location in Google Cloud Storage.
+       * 
+ * + * .google.events.cloud.build.v1.StorageSource storage_source = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.StorageSource, google.events.cloud.build.v1.Data.StorageSource.Builder, google.events.cloud.build.v1.Data.StorageSourceOrBuilder> + getStorageSourceFieldBuilder() { + if (storageSourceBuilder_ == null) { + if (!(sourceCase_ == 2)) { + source_ = google.events.cloud.build.v1.Data.StorageSource.getDefaultInstance(); + } + storageSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.StorageSource, google.events.cloud.build.v1.Data.StorageSource.Builder, google.events.cloud.build.v1.Data.StorageSourceOrBuilder>( + (google.events.cloud.build.v1.Data.StorageSource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 2; + onChanged();; + return storageSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.RepoSource, google.events.cloud.build.v1.Data.RepoSource.Builder, google.events.cloud.build.v1.Data.RepoSourceOrBuilder> repoSourceBuilder_; + /** + *
+       * If provided, get the source from this location in a Cloud Source
+       * Repository.
+       * 
+ * + * .google.events.cloud.build.v1.RepoSource repo_source = 3; + * @return Whether the repoSource field is set. + */ + @java.lang.Override + public boolean hasRepoSource() { + return sourceCase_ == 3; + } + /** + *
+       * If provided, get the source from this location in a Cloud Source
+       * Repository.
+       * 
+ * + * .google.events.cloud.build.v1.RepoSource repo_source = 3; + * @return The repoSource. + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.RepoSource getRepoSource() { + if (repoSourceBuilder_ == null) { + if (sourceCase_ == 3) { + return (google.events.cloud.build.v1.Data.RepoSource) source_; + } + return google.events.cloud.build.v1.Data.RepoSource.getDefaultInstance(); + } else { + if (sourceCase_ == 3) { + return repoSourceBuilder_.getMessage(); + } + return google.events.cloud.build.v1.Data.RepoSource.getDefaultInstance(); + } + } + /** + *
+       * If provided, get the source from this location in a Cloud Source
+       * Repository.
+       * 
+ * + * .google.events.cloud.build.v1.RepoSource repo_source = 3; + */ + public Builder setRepoSource(google.events.cloud.build.v1.Data.RepoSource value) { + if (repoSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + repoSourceBuilder_.setMessage(value); + } + sourceCase_ = 3; + return this; + } + /** + *
+       * If provided, get the source from this location in a Cloud Source
+       * Repository.
+       * 
+ * + * .google.events.cloud.build.v1.RepoSource repo_source = 3; + */ + public Builder setRepoSource( + google.events.cloud.build.v1.Data.RepoSource.Builder builderForValue) { + if (repoSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + repoSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 3; + return this; + } + /** + *
+       * If provided, get the source from this location in a Cloud Source
+       * Repository.
+       * 
+ * + * .google.events.cloud.build.v1.RepoSource repo_source = 3; + */ + public Builder mergeRepoSource(google.events.cloud.build.v1.Data.RepoSource value) { + if (repoSourceBuilder_ == null) { + if (sourceCase_ == 3 && + source_ != google.events.cloud.build.v1.Data.RepoSource.getDefaultInstance()) { + source_ = google.events.cloud.build.v1.Data.RepoSource.newBuilder((google.events.cloud.build.v1.Data.RepoSource) source_) + .mergeFrom(value).buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 3) { + repoSourceBuilder_.mergeFrom(value); + } + repoSourceBuilder_.setMessage(value); + } + sourceCase_ = 3; + return this; + } + /** + *
+       * If provided, get the source from this location in a Cloud Source
+       * Repository.
+       * 
+ * + * .google.events.cloud.build.v1.RepoSource repo_source = 3; + */ + public Builder clearRepoSource() { + if (repoSourceBuilder_ == null) { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + } + repoSourceBuilder_.clear(); + } + return this; + } + /** + *
+       * If provided, get the source from this location in a Cloud Source
+       * Repository.
+       * 
+ * + * .google.events.cloud.build.v1.RepoSource repo_source = 3; + */ + public google.events.cloud.build.v1.Data.RepoSource.Builder getRepoSourceBuilder() { + return getRepoSourceFieldBuilder().getBuilder(); + } + /** + *
+       * If provided, get the source from this location in a Cloud Source
+       * Repository.
+       * 
+ * + * .google.events.cloud.build.v1.RepoSource repo_source = 3; + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.RepoSourceOrBuilder getRepoSourceOrBuilder() { + if ((sourceCase_ == 3) && (repoSourceBuilder_ != null)) { + return repoSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 3) { + return (google.events.cloud.build.v1.Data.RepoSource) source_; + } + return google.events.cloud.build.v1.Data.RepoSource.getDefaultInstance(); + } + } + /** + *
+       * If provided, get the source from this location in a Cloud Source
+       * Repository.
+       * 
+ * + * .google.events.cloud.build.v1.RepoSource repo_source = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.RepoSource, google.events.cloud.build.v1.Data.RepoSource.Builder, google.events.cloud.build.v1.Data.RepoSourceOrBuilder> + getRepoSourceFieldBuilder() { + if (repoSourceBuilder_ == null) { + if (!(sourceCase_ == 3)) { + source_ = google.events.cloud.build.v1.Data.RepoSource.getDefaultInstance(); + } + repoSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.RepoSource, google.events.cloud.build.v1.Data.RepoSource.Builder, google.events.cloud.build.v1.Data.RepoSourceOrBuilder>( + (google.events.cloud.build.v1.Data.RepoSource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 3; + onChanged();; + return repoSourceBuilder_; + } + @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.build.v1.Source) + } + + // @@protoc_insertion_point(class_scope:google.events.cloud.build.v1.Source) + private static final google.events.cloud.build.v1.Data.Source DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new google.events.cloud.build.v1.Data.Source(); + } + + public static google.events.cloud.build.v1.Data.Source getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Source parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Source(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.Source getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StorageSourceOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.cloud.build.v1.StorageSource) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Google Cloud Storage bucket containing the source (see
+     * [Bucket Name
+     * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
+     * 
+ * + * string bucket = 1; + * @return The bucket. + */ + java.lang.String getBucket(); + /** + *
+     * Google Cloud Storage bucket containing the source (see
+     * [Bucket Name
+     * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
+     * 
+ * + * string bucket = 1; + * @return The bytes for bucket. + */ + com.google.protobuf.ByteString + getBucketBytes(); + + /** + *
+     * Google Cloud Storage object containing the source.
+     * 
+ * + * string object = 2; + * @return The object. + */ + java.lang.String getObject(); + /** + *
+     * Google Cloud Storage object containing the source.
+     * 
+ * + * string object = 2; + * @return The bytes for object. + */ + com.google.protobuf.ByteString + getObjectBytes(); + + /** + *
+     * Google Cloud Storage generation for the object. If the generation is
+     * omitted, the latest generation will be used.
+     * 
+ * + * int64 generation = 3; + * @return The generation. + */ + long getGeneration(); + } + /** + *
+   * Location of the source in an archive file in Google Cloud Storage.
+   * 
+ * + * Protobuf type {@code google.events.cloud.build.v1.StorageSource} + */ + public static final class StorageSource extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.cloud.build.v1.StorageSource) + StorageSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use StorageSource.newBuilder() to construct. + private StorageSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StorageSource() { + bucket_ = ""; + object_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StorageSource(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StorageSource( + 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(); + + bucket_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + object_ = s; + break; + } + case 24: { + + generation_ = input.readInt64(); + 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.build.v1.Data.internal_static_google_events_cloud_build_v1_StorageSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_StorageSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.build.v1.Data.StorageSource.class, google.events.cloud.build.v1.Data.StorageSource.Builder.class); + } + + public static final int BUCKET_FIELD_NUMBER = 1; + private volatile java.lang.Object bucket_; + /** + *
+     * Google Cloud Storage bucket containing the source (see
+     * [Bucket Name
+     * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
+     * 
+ * + * string bucket = 1; + * @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; + } + } + /** + *
+     * Google Cloud Storage bucket containing the source (see
+     * [Bucket Name
+     * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
+     * 
+ * + * string bucket = 1; + * @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 OBJECT_FIELD_NUMBER = 2; + private volatile java.lang.Object object_; + /** + *
+     * Google Cloud Storage object containing the source.
+     * 
+ * + * string object = 2; + * @return The object. + */ + @java.lang.Override + public java.lang.String getObject() { + java.lang.Object ref = object_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + object_ = s; + return s; + } + } + /** + *
+     * Google Cloud Storage object containing the source.
+     * 
+ * + * string object = 2; + * @return The bytes for object. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getObjectBytes() { + java.lang.Object ref = object_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + object_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GENERATION_FIELD_NUMBER = 3; + private long generation_; + /** + *
+     * Google Cloud Storage generation for the object. If the generation is
+     * omitted, the latest generation will be used.
+     * 
+ * + * int64 generation = 3; + * @return The generation. + */ + @java.lang.Override + public long getGeneration() { + return generation_; + } + + 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 (!getBucketBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_); + } + if (!getObjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, object_); + } + if (generation_ != 0L) { + output.writeInt64(3, generation_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getBucketBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, bucket_); + } + if (!getObjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, object_); + } + if (generation_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, generation_); + } + 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.build.v1.Data.StorageSource)) { + return super.equals(obj); + } + google.events.cloud.build.v1.Data.StorageSource other = (google.events.cloud.build.v1.Data.StorageSource) obj; + + if (!getBucket() + .equals(other.getBucket())) return false; + if (!getObject() + .equals(other.getObject())) return false; + if (getGeneration() + != other.getGeneration()) 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) + BUCKET_FIELD_NUMBER; + hash = (53 * hash) + getBucket().hashCode(); + hash = (37 * hash) + OBJECT_FIELD_NUMBER; + hash = (53 * hash) + getObject().hashCode(); + hash = (37 * hash) + GENERATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getGeneration()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static google.events.cloud.build.v1.Data.StorageSource parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.StorageSource 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.build.v1.Data.StorageSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.StorageSource 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.build.v1.Data.StorageSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.StorageSource parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.cloud.build.v1.Data.StorageSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.StorageSource 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.build.v1.Data.StorageSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.StorageSource 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.build.v1.Data.StorageSource parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.StorageSource 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.build.v1.Data.StorageSource 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; + } + /** + *
+     * Location of the source in an archive file in Google Cloud Storage.
+     * 
+ * + * Protobuf type {@code google.events.cloud.build.v1.StorageSource} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.events.cloud.build.v1.StorageSource) + google.events.cloud.build.v1.Data.StorageSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_StorageSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_StorageSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.build.v1.Data.StorageSource.class, google.events.cloud.build.v1.Data.StorageSource.Builder.class); + } + + // Construct using google.events.cloud.build.v1.Data.StorageSource.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bucket_ = ""; + + object_ = ""; + + generation_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_StorageSource_descriptor; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.StorageSource getDefaultInstanceForType() { + return google.events.cloud.build.v1.Data.StorageSource.getDefaultInstance(); + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.StorageSource build() { + google.events.cloud.build.v1.Data.StorageSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.StorageSource buildPartial() { + google.events.cloud.build.v1.Data.StorageSource result = new google.events.cloud.build.v1.Data.StorageSource(this); + result.bucket_ = bucket_; + result.object_ = object_; + result.generation_ = generation_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.events.cloud.build.v1.Data.StorageSource) { + return mergeFrom((google.events.cloud.build.v1.Data.StorageSource)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(google.events.cloud.build.v1.Data.StorageSource other) { + if (other == google.events.cloud.build.v1.Data.StorageSource.getDefaultInstance()) return this; + if (!other.getBucket().isEmpty()) { + bucket_ = other.bucket_; + onChanged(); + } + if (!other.getObject().isEmpty()) { + object_ = other.object_; + onChanged(); + } + if (other.getGeneration() != 0L) { + setGeneration(other.getGeneration()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.events.cloud.build.v1.Data.StorageSource parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.events.cloud.build.v1.Data.StorageSource) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object bucket_ = ""; + /** + *
+       * Google Cloud Storage bucket containing the source (see
+       * [Bucket Name
+       * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
+       * 
+ * + * string bucket = 1; + * @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; + } + } + /** + *
+       * Google Cloud Storage bucket containing the source (see
+       * [Bucket Name
+       * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
+       * 
+ * + * string bucket = 1; + * @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; + } + } + /** + *
+       * Google Cloud Storage bucket containing the source (see
+       * [Bucket Name
+       * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
+       * 
+ * + * string bucket = 1; + * @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; + } + /** + *
+       * Google Cloud Storage bucket containing the source (see
+       * [Bucket Name
+       * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
+       * 
+ * + * string bucket = 1; + * @return This builder for chaining. + */ + public Builder clearBucket() { + + bucket_ = getDefaultInstance().getBucket(); + onChanged(); + return this; + } + /** + *
+       * Google Cloud Storage bucket containing the source (see
+       * [Bucket Name
+       * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
+       * 
+ * + * string bucket = 1; + * @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 java.lang.Object object_ = ""; + /** + *
+       * Google Cloud Storage object containing the source.
+       * 
+ * + * string object = 2; + * @return The object. + */ + public java.lang.String getObject() { + java.lang.Object ref = object_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + object_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Google Cloud Storage object containing the source.
+       * 
+ * + * string object = 2; + * @return The bytes for object. + */ + public com.google.protobuf.ByteString + getObjectBytes() { + java.lang.Object ref = object_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + object_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Google Cloud Storage object containing the source.
+       * 
+ * + * string object = 2; + * @param value The object to set. + * @return This builder for chaining. + */ + public Builder setObject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + object_ = value; + onChanged(); + return this; + } + /** + *
+       * Google Cloud Storage object containing the source.
+       * 
+ * + * string object = 2; + * @return This builder for chaining. + */ + public Builder clearObject() { + + object_ = getDefaultInstance().getObject(); + onChanged(); + return this; + } + /** + *
+       * Google Cloud Storage object containing the source.
+       * 
+ * + * string object = 2; + * @param value The bytes for object to set. + * @return This builder for chaining. + */ + public Builder setObjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + object_ = value; + onChanged(); + return this; + } + + private long generation_ ; + /** + *
+       * Google Cloud Storage generation for the object. If the generation is
+       * omitted, the latest generation will be used.
+       * 
+ * + * int64 generation = 3; + * @return The generation. + */ + @java.lang.Override + public long getGeneration() { + return generation_; + } + /** + *
+       * Google Cloud Storage generation for the object. If the generation is
+       * omitted, the latest generation will be used.
+       * 
+ * + * int64 generation = 3; + * @param value The generation to set. + * @return This builder for chaining. + */ + public Builder setGeneration(long value) { + + generation_ = value; + onChanged(); + return this; + } + /** + *
+       * Google Cloud Storage generation for the object. If the generation is
+       * omitted, the latest generation will be used.
+       * 
+ * + * int64 generation = 3; + * @return This builder for chaining. + */ + public Builder clearGeneration() { + + generation_ = 0L; + 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.build.v1.StorageSource) + } + + // @@protoc_insertion_point(class_scope:google.events.cloud.build.v1.StorageSource) + private static final google.events.cloud.build.v1.Data.StorageSource DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new google.events.cloud.build.v1.Data.StorageSource(); + } + + public static google.events.cloud.build.v1.Data.StorageSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StorageSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StorageSource(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.StorageSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RepoSourceOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.cloud.build.v1.RepoSource) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * ID of the project that owns the Cloud Source Repository.
+     * 
+ * + * string project_id = 1; + * @return The projectId. + */ + java.lang.String getProjectId(); + /** + *
+     * ID of the project that owns the Cloud Source Repository.
+     * 
+ * + * string project_id = 1; + * @return The bytes for projectId. + */ + com.google.protobuf.ByteString + getProjectIdBytes(); + + /** + *
+     * Name of the Cloud Source Repository.
+     * 
+ * + * string repo_name = 2; + * @return The repoName. + */ + java.lang.String getRepoName(); + /** + *
+     * Name of the Cloud Source Repository.
+     * 
+ * + * string repo_name = 2; + * @return The bytes for repoName. + */ + com.google.protobuf.ByteString + getRepoNameBytes(); + + /** + *
+     * Regex matching branches to build.
+     * The syntax of the regular expressions accepted is the syntax accepted by
+     * RE2 and described at https://github.com/google/re2/wiki/Syntax
+     * 
+ * + * string branch_name = 3; + * @return The branchName. + */ + java.lang.String getBranchName(); + /** + *
+     * Regex matching branches to build.
+     * The syntax of the regular expressions accepted is the syntax accepted by
+     * RE2 and described at https://github.com/google/re2/wiki/Syntax
+     * 
+ * + * string branch_name = 3; + * @return The bytes for branchName. + */ + com.google.protobuf.ByteString + getBranchNameBytes(); + + /** + *
+     * Regex matching tags to build.
+     * The syntax of the regular expressions accepted is the syntax accepted by
+     * RE2 and described at https://github.com/google/re2/wiki/Syntax
+     * 
+ * + * string tag_name = 4; + * @return The tagName. + */ + java.lang.String getTagName(); + /** + *
+     * Regex matching tags to build.
+     * The syntax of the regular expressions accepted is the syntax accepted by
+     * RE2 and described at https://github.com/google/re2/wiki/Syntax
+     * 
+ * + * string tag_name = 4; + * @return The bytes for tagName. + */ + com.google.protobuf.ByteString + getTagNameBytes(); + + /** + *
+     * Explicit commit SHA to build.
+     * 
+ * + * string commit_sha = 5; + * @return The commitSha. + */ + java.lang.String getCommitSha(); + /** + *
+     * Explicit commit SHA to build.
+     * 
+ * + * string commit_sha = 5; + * @return The bytes for commitSha. + */ + com.google.protobuf.ByteString + getCommitShaBytes(); + + /** + *
+     * Directory, relative to the source root, in which to run the build.
+     * This must be a relative path. If a step's `dir` is specified and is an
+     * absolute path, this value is ignored for that step's execution.
+     * 
+ * + * string dir = 7; + * @return The dir. + */ + java.lang.String getDir(); + /** + *
+     * Directory, relative to the source root, in which to run the build.
+     * This must be a relative path. If a step's `dir` is specified and is an
+     * absolute path, this value is ignored for that step's execution.
+     * 
+ * + * string dir = 7; + * @return The bytes for dir. + */ + com.google.protobuf.ByteString + getDirBytes(); + + /** + *
+     * Only trigger a build if the revision regex does NOT match the revision
+     * regex.
+     * 
+ * + * bool invert_regex = 8; + * @return The invertRegex. + */ + boolean getInvertRegex(); + + /** + *
+     * Substitutions to use in a triggered build.
+     * Should only be used with RunBuildTrigger
+     * 
+ * + * map<string, string> substitutions = 9; + */ + int getSubstitutionsCount(); + /** + *
+     * Substitutions to use in a triggered build.
+     * Should only be used with RunBuildTrigger
+     * 
+ * + * map<string, string> substitutions = 9; + */ + boolean containsSubstitutions( + java.lang.String key); + /** + * Use {@link #getSubstitutionsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getSubstitutions(); + /** + *
+     * Substitutions to use in a triggered build.
+     * Should only be used with RunBuildTrigger
+     * 
+ * + * map<string, string> substitutions = 9; + */ + java.util.Map + getSubstitutionsMap(); + /** + *
+     * Substitutions to use in a triggered build.
+     * Should only be used with RunBuildTrigger
+     * 
+ * + * map<string, string> substitutions = 9; + */ + + java.lang.String getSubstitutionsOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+     * Substitutions to use in a triggered build.
+     * Should only be used with RunBuildTrigger
+     * 
+ * + * map<string, string> substitutions = 9; + */ + + java.lang.String getSubstitutionsOrThrow( + java.lang.String key); + + public google.events.cloud.build.v1.Data.RepoSource.RevisionCase getRevisionCase(); + } + /** + *
+   * Location of the source in a Google Cloud Source Repository.
+   * 
+ * + * Protobuf type {@code google.events.cloud.build.v1.RepoSource} + */ + public static final class RepoSource extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.cloud.build.v1.RepoSource) + RepoSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use RepoSource.newBuilder() to construct. + private RepoSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RepoSource() { + projectId_ = ""; + repoName_ = ""; + dir_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RepoSource(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RepoSource( + 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(); + + projectId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + repoName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + revisionCase_ = 3; + revision_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + revisionCase_ = 4; + revision_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + revisionCase_ = 5; + revision_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + dir_ = s; + break; + } + case 64: { + + invertRegex_ = input.readBool(); + break; + } + case 74: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + substitutions_ = com.google.protobuf.MapField.newMapField( + SubstitutionsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + substitutions__ = input.readMessage( + SubstitutionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + substitutions_.getMutableMap().put( + substitutions__.getKey(), substitutions__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_RepoSource_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 9: + return internalGetSubstitutions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_RepoSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.build.v1.Data.RepoSource.class, google.events.cloud.build.v1.Data.RepoSource.Builder.class); + } + + private int revisionCase_ = 0; + private java.lang.Object revision_; + public enum RevisionCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + BRANCH_NAME(3), + TAG_NAME(4), + COMMIT_SHA(5), + REVISION_NOT_SET(0); + private final int value; + private RevisionCase(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 RevisionCase valueOf(int value) { + return forNumber(value); + } + + public static RevisionCase forNumber(int value) { + switch (value) { + case 3: return BRANCH_NAME; + case 4: return TAG_NAME; + case 5: return COMMIT_SHA; + case 0: return REVISION_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public RevisionCase + getRevisionCase() { + return RevisionCase.forNumber( + revisionCase_); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object projectId_; + /** + *
+     * ID of the project that owns the Cloud Source Repository.
+     * 
+ * + * string project_id = 1; + * @return The projectId. + */ + @java.lang.Override + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + 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(); + projectId_ = s; + return s; + } + } + /** + *
+     * ID of the project that owns the Cloud Source Repository.
+     * 
+ * + * string project_id = 1; + * @return The bytes for projectId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REPO_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object repoName_; + /** + *
+     * Name of the Cloud Source Repository.
+     * 
+ * + * string repo_name = 2; + * @return The repoName. + */ + @java.lang.Override + public java.lang.String getRepoName() { + java.lang.Object ref = repoName_; + 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(); + repoName_ = s; + return s; + } + } + /** + *
+     * Name of the Cloud Source Repository.
+     * 
+ * + * string repo_name = 2; + * @return The bytes for repoName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRepoNameBytes() { + java.lang.Object ref = repoName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + repoName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BRANCH_NAME_FIELD_NUMBER = 3; + /** + *
+     * Regex matching branches to build.
+     * The syntax of the regular expressions accepted is the syntax accepted by
+     * RE2 and described at https://github.com/google/re2/wiki/Syntax
+     * 
+ * + * string branch_name = 3; + * @return The branchName. + */ + public java.lang.String getBranchName() { + java.lang.Object ref = ""; + if (revisionCase_ == 3) { + ref = revision_; + } + 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 (revisionCase_ == 3) { + revision_ = s; + } + return s; + } + } + /** + *
+     * Regex matching branches to build.
+     * The syntax of the regular expressions accepted is the syntax accepted by
+     * RE2 and described at https://github.com/google/re2/wiki/Syntax
+     * 
+ * + * string branch_name = 3; + * @return The bytes for branchName. + */ + public com.google.protobuf.ByteString + getBranchNameBytes() { + java.lang.Object ref = ""; + if (revisionCase_ == 3) { + ref = revision_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (revisionCase_ == 3) { + revision_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TAG_NAME_FIELD_NUMBER = 4; + /** + *
+     * Regex matching tags to build.
+     * The syntax of the regular expressions accepted is the syntax accepted by
+     * RE2 and described at https://github.com/google/re2/wiki/Syntax
+     * 
+ * + * string tag_name = 4; + * @return The tagName. + */ + public java.lang.String getTagName() { + java.lang.Object ref = ""; + if (revisionCase_ == 4) { + ref = revision_; + } + 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 (revisionCase_ == 4) { + revision_ = s; + } + return s; + } + } + /** + *
+     * Regex matching tags to build.
+     * The syntax of the regular expressions accepted is the syntax accepted by
+     * RE2 and described at https://github.com/google/re2/wiki/Syntax
+     * 
+ * + * string tag_name = 4; + * @return The bytes for tagName. + */ + public com.google.protobuf.ByteString + getTagNameBytes() { + java.lang.Object ref = ""; + if (revisionCase_ == 4) { + ref = revision_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (revisionCase_ == 4) { + revision_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMMIT_SHA_FIELD_NUMBER = 5; + /** + *
+     * Explicit commit SHA to build.
+     * 
+ * + * string commit_sha = 5; + * @return The commitSha. + */ + public java.lang.String getCommitSha() { + java.lang.Object ref = ""; + if (revisionCase_ == 5) { + ref = revision_; + } + 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 (revisionCase_ == 5) { + revision_ = s; + } + return s; + } + } + /** + *
+     * Explicit commit SHA to build.
+     * 
+ * + * string commit_sha = 5; + * @return The bytes for commitSha. + */ + public com.google.protobuf.ByteString + getCommitShaBytes() { + java.lang.Object ref = ""; + if (revisionCase_ == 5) { + ref = revision_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (revisionCase_ == 5) { + revision_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIR_FIELD_NUMBER = 7; + private volatile java.lang.Object dir_; + /** + *
+     * Directory, relative to the source root, in which to run the build.
+     * This must be a relative path. If a step's `dir` is specified and is an
+     * absolute path, this value is ignored for that step's execution.
+     * 
+ * + * string dir = 7; + * @return The dir. + */ + @java.lang.Override + public java.lang.String getDir() { + java.lang.Object ref = dir_; + 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(); + dir_ = s; + return s; + } + } + /** + *
+     * Directory, relative to the source root, in which to run the build.
+     * This must be a relative path. If a step's `dir` is specified and is an
+     * absolute path, this value is ignored for that step's execution.
+     * 
+ * + * string dir = 7; + * @return The bytes for dir. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDirBytes() { + java.lang.Object ref = dir_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + dir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INVERT_REGEX_FIELD_NUMBER = 8; + private boolean invertRegex_; + /** + *
+     * Only trigger a build if the revision regex does NOT match the revision
+     * regex.
+     * 
+ * + * bool invert_regex = 8; + * @return The invertRegex. + */ + @java.lang.Override + public boolean getInvertRegex() { + return invertRegex_; + } + + public static final int SUBSTITUTIONS_FIELD_NUMBER = 9; + private static final class SubstitutionsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_RepoSource_SubstitutionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> substitutions_; + private com.google.protobuf.MapField + internalGetSubstitutions() { + if (substitutions_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SubstitutionsDefaultEntryHolder.defaultEntry); + } + return substitutions_; + } + + public int getSubstitutionsCount() { + return internalGetSubstitutions().getMap().size(); + } + /** + *
+     * Substitutions to use in a triggered build.
+     * Should only be used with RunBuildTrigger
+     * 
+ * + * map<string, string> substitutions = 9; + */ + + @java.lang.Override + public boolean containsSubstitutions( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetSubstitutions().getMap().containsKey(key); + } + /** + * Use {@link #getSubstitutionsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getSubstitutions() { + return getSubstitutionsMap(); + } + /** + *
+     * Substitutions to use in a triggered build.
+     * Should only be used with RunBuildTrigger
+     * 
+ * + * map<string, string> substitutions = 9; + */ + @java.lang.Override + + public java.util.Map getSubstitutionsMap() { + return internalGetSubstitutions().getMap(); + } + /** + *
+     * Substitutions to use in a triggered build.
+     * Should only be used with RunBuildTrigger
+     * 
+ * + * map<string, string> substitutions = 9; + */ + @java.lang.Override + + public java.lang.String getSubstitutionsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetSubstitutions().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Substitutions to use in a triggered build.
+     * Should only be used with RunBuildTrigger
+     * 
+ * + * map<string, string> substitutions = 9; + */ + @java.lang.Override + + public java.lang.String getSubstitutionsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetSubstitutions().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!getRepoNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, repoName_); + } + if (revisionCase_ == 3) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, revision_); + } + if (revisionCase_ == 4) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, revision_); + } + if (revisionCase_ == 5) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, revision_); + } + if (!getDirBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, dir_); + } + if (invertRegex_ != false) { + output.writeBool(8, invertRegex_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetSubstitutions(), + SubstitutionsDefaultEntryHolder.defaultEntry, + 9); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!getRepoNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, repoName_); + } + if (revisionCase_ == 3) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, revision_); + } + if (revisionCase_ == 4) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, revision_); + } + if (revisionCase_ == 5) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, revision_); + } + if (!getDirBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, dir_); + } + if (invertRegex_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, invertRegex_); + } + for (java.util.Map.Entry entry + : internalGetSubstitutions().getMap().entrySet()) { + com.google.protobuf.MapEntry + substitutions__ = SubstitutionsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, substitutions__); + } + 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.build.v1.Data.RepoSource)) { + return super.equals(obj); + } + google.events.cloud.build.v1.Data.RepoSource other = (google.events.cloud.build.v1.Data.RepoSource) obj; + + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getRepoName() + .equals(other.getRepoName())) return false; + if (!getDir() + .equals(other.getDir())) return false; + if (getInvertRegex() + != other.getInvertRegex()) return false; + if (!internalGetSubstitutions().equals( + other.internalGetSubstitutions())) return false; + if (!getRevisionCase().equals(other.getRevisionCase())) return false; + switch (revisionCase_) { + case 3: + if (!getBranchName() + .equals(other.getBranchName())) return false; + break; + case 4: + if (!getTagName() + .equals(other.getTagName())) return false; + break; + case 5: + if (!getCommitSha() + .equals(other.getCommitSha())) 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(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + REPO_NAME_FIELD_NUMBER; + hash = (53 * hash) + getRepoName().hashCode(); + hash = (37 * hash) + DIR_FIELD_NUMBER; + hash = (53 * hash) + getDir().hashCode(); + hash = (37 * hash) + INVERT_REGEX_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInvertRegex()); + if (!internalGetSubstitutions().getMap().isEmpty()) { + hash = (37 * hash) + SUBSTITUTIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetSubstitutions().hashCode(); + } + switch (revisionCase_) { + case 3: + hash = (37 * hash) + BRANCH_NAME_FIELD_NUMBER; + hash = (53 * hash) + getBranchName().hashCode(); + break; + case 4: + hash = (37 * hash) + TAG_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTagName().hashCode(); + break; + case 5: + hash = (37 * hash) + COMMIT_SHA_FIELD_NUMBER; + hash = (53 * hash) + getCommitSha().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static google.events.cloud.build.v1.Data.RepoSource parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.RepoSource 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.build.v1.Data.RepoSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.RepoSource 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.build.v1.Data.RepoSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.RepoSource parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.cloud.build.v1.Data.RepoSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.RepoSource 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.build.v1.Data.RepoSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.RepoSource 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.build.v1.Data.RepoSource parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.RepoSource 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.build.v1.Data.RepoSource 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; + } + /** + *
+     * Location of the source in a Google Cloud Source Repository.
+     * 
+ * + * Protobuf type {@code google.events.cloud.build.v1.RepoSource} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.events.cloud.build.v1.RepoSource) + google.events.cloud.build.v1.Data.RepoSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_RepoSource_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 9: + return internalGetSubstitutions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 9: + return internalGetMutableSubstitutions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_RepoSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.build.v1.Data.RepoSource.class, google.events.cloud.build.v1.Data.RepoSource.Builder.class); + } + + // Construct using google.events.cloud.build.v1.Data.RepoSource.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + projectId_ = ""; + + repoName_ = ""; + + dir_ = ""; + + invertRegex_ = false; + + internalGetMutableSubstitutions().clear(); + revisionCase_ = 0; + revision_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_RepoSource_descriptor; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.RepoSource getDefaultInstanceForType() { + return google.events.cloud.build.v1.Data.RepoSource.getDefaultInstance(); + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.RepoSource build() { + google.events.cloud.build.v1.Data.RepoSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.RepoSource buildPartial() { + google.events.cloud.build.v1.Data.RepoSource result = new google.events.cloud.build.v1.Data.RepoSource(this); + int from_bitField0_ = bitField0_; + result.projectId_ = projectId_; + result.repoName_ = repoName_; + if (revisionCase_ == 3) { + result.revision_ = revision_; + } + if (revisionCase_ == 4) { + result.revision_ = revision_; + } + if (revisionCase_ == 5) { + result.revision_ = revision_; + } + result.dir_ = dir_; + result.invertRegex_ = invertRegex_; + result.substitutions_ = internalGetSubstitutions(); + result.substitutions_.makeImmutable(); + result.revisionCase_ = revisionCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.events.cloud.build.v1.Data.RepoSource) { + return mergeFrom((google.events.cloud.build.v1.Data.RepoSource)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(google.events.cloud.build.v1.Data.RepoSource other) { + if (other == google.events.cloud.build.v1.Data.RepoSource.getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + onChanged(); + } + if (!other.getRepoName().isEmpty()) { + repoName_ = other.repoName_; + onChanged(); + } + if (!other.getDir().isEmpty()) { + dir_ = other.dir_; + onChanged(); + } + if (other.getInvertRegex() != false) { + setInvertRegex(other.getInvertRegex()); + } + internalGetMutableSubstitutions().mergeFrom( + other.internalGetSubstitutions()); + switch (other.getRevisionCase()) { + case BRANCH_NAME: { + revisionCase_ = 3; + revision_ = other.revision_; + onChanged(); + break; + } + case TAG_NAME: { + revisionCase_ = 4; + revision_ = other.revision_; + onChanged(); + break; + } + case COMMIT_SHA: { + revisionCase_ = 5; + revision_ = other.revision_; + onChanged(); + break; + } + case REVISION_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.events.cloud.build.v1.Data.RepoSource parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.events.cloud.build.v1.Data.RepoSource) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int revisionCase_ = 0; + private java.lang.Object revision_; + public RevisionCase + getRevisionCase() { + return RevisionCase.forNumber( + revisionCase_); + } + + public Builder clearRevision() { + revisionCase_ = 0; + revision_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + *
+       * ID of the project that owns the Cloud Source Repository.
+       * 
+ * + * string project_id = 1; + * @return The projectId. + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * ID of the project that owns the Cloud Source Repository.
+       * 
+ * + * string project_id = 1; + * @return The bytes for projectId. + */ + public com.google.protobuf.ByteString + getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * ID of the project that owns the Cloud Source Repository.
+       * 
+ * + * string project_id = 1; + * @param value The projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + projectId_ = value; + onChanged(); + return this; + } + /** + *
+       * ID of the project that owns the Cloud Source Repository.
+       * 
+ * + * string project_id = 1; + * @return This builder for chaining. + */ + public Builder clearProjectId() { + + projectId_ = getDefaultInstance().getProjectId(); + onChanged(); + return this; + } + /** + *
+       * ID of the project that owns the Cloud Source Repository.
+       * 
+ * + * string project_id = 1; + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + projectId_ = value; + onChanged(); + return this; + } + + private java.lang.Object repoName_ = ""; + /** + *
+       * Name of the Cloud Source Repository.
+       * 
+ * + * string repo_name = 2; + * @return The repoName. + */ + public java.lang.String getRepoName() { + java.lang.Object ref = repoName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + repoName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the Cloud Source Repository.
+       * 
+ * + * string repo_name = 2; + * @return The bytes for repoName. + */ + public com.google.protobuf.ByteString + getRepoNameBytes() { + java.lang.Object ref = repoName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + repoName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the Cloud Source Repository.
+       * 
+ * + * string repo_name = 2; + * @param value The repoName to set. + * @return This builder for chaining. + */ + public Builder setRepoName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + repoName_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the Cloud Source Repository.
+       * 
+ * + * string repo_name = 2; + * @return This builder for chaining. + */ + public Builder clearRepoName() { + + repoName_ = getDefaultInstance().getRepoName(); + onChanged(); + return this; + } + /** + *
+       * Name of the Cloud Source Repository.
+       * 
+ * + * string repo_name = 2; + * @param value The bytes for repoName to set. + * @return This builder for chaining. + */ + public Builder setRepoNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + repoName_ = value; + onChanged(); + return this; + } + + /** + *
+       * Regex matching branches to build.
+       * The syntax of the regular expressions accepted is the syntax accepted by
+       * RE2 and described at https://github.com/google/re2/wiki/Syntax
+       * 
+ * + * string branch_name = 3; + * @return The branchName. + */ + @java.lang.Override + public java.lang.String getBranchName() { + java.lang.Object ref = ""; + if (revisionCase_ == 3) { + ref = revision_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (revisionCase_ == 3) { + revision_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Regex matching branches to build.
+       * The syntax of the regular expressions accepted is the syntax accepted by
+       * RE2 and described at https://github.com/google/re2/wiki/Syntax
+       * 
+ * + * string branch_name = 3; + * @return The bytes for branchName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getBranchNameBytes() { + java.lang.Object ref = ""; + if (revisionCase_ == 3) { + ref = revision_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (revisionCase_ == 3) { + revision_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Regex matching branches to build.
+       * The syntax of the regular expressions accepted is the syntax accepted by
+       * RE2 and described at https://github.com/google/re2/wiki/Syntax
+       * 
+ * + * string branch_name = 3; + * @param value The branchName to set. + * @return This builder for chaining. + */ + public Builder setBranchName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + revisionCase_ = 3; + revision_ = value; + onChanged(); + return this; + } + /** + *
+       * Regex matching branches to build.
+       * The syntax of the regular expressions accepted is the syntax accepted by
+       * RE2 and described at https://github.com/google/re2/wiki/Syntax
+       * 
+ * + * string branch_name = 3; + * @return This builder for chaining. + */ + public Builder clearBranchName() { + if (revisionCase_ == 3) { + revisionCase_ = 0; + revision_ = null; + onChanged(); + } + return this; + } + /** + *
+       * Regex matching branches to build.
+       * The syntax of the regular expressions accepted is the syntax accepted by
+       * RE2 and described at https://github.com/google/re2/wiki/Syntax
+       * 
+ * + * string branch_name = 3; + * @param value The bytes for branchName to set. + * @return This builder for chaining. + */ + public Builder setBranchNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + revisionCase_ = 3; + revision_ = value; + onChanged(); + return this; + } + + /** + *
+       * Regex matching tags to build.
+       * The syntax of the regular expressions accepted is the syntax accepted by
+       * RE2 and described at https://github.com/google/re2/wiki/Syntax
+       * 
+ * + * string tag_name = 4; + * @return The tagName. + */ + @java.lang.Override + public java.lang.String getTagName() { + java.lang.Object ref = ""; + if (revisionCase_ == 4) { + ref = revision_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (revisionCase_ == 4) { + revision_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Regex matching tags to build.
+       * The syntax of the regular expressions accepted is the syntax accepted by
+       * RE2 and described at https://github.com/google/re2/wiki/Syntax
+       * 
+ * + * string tag_name = 4; + * @return The bytes for tagName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTagNameBytes() { + java.lang.Object ref = ""; + if (revisionCase_ == 4) { + ref = revision_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (revisionCase_ == 4) { + revision_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Regex matching tags to build.
+       * The syntax of the regular expressions accepted is the syntax accepted by
+       * RE2 and described at https://github.com/google/re2/wiki/Syntax
+       * 
+ * + * string tag_name = 4; + * @param value The tagName to set. + * @return This builder for chaining. + */ + public Builder setTagName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + revisionCase_ = 4; + revision_ = value; + onChanged(); + return this; + } + /** + *
+       * Regex matching tags to build.
+       * The syntax of the regular expressions accepted is the syntax accepted by
+       * RE2 and described at https://github.com/google/re2/wiki/Syntax
+       * 
+ * + * string tag_name = 4; + * @return This builder for chaining. + */ + public Builder clearTagName() { + if (revisionCase_ == 4) { + revisionCase_ = 0; + revision_ = null; + onChanged(); + } + return this; + } + /** + *
+       * Regex matching tags to build.
+       * The syntax of the regular expressions accepted is the syntax accepted by
+       * RE2 and described at https://github.com/google/re2/wiki/Syntax
+       * 
+ * + * string tag_name = 4; + * @param value The bytes for tagName to set. + * @return This builder for chaining. + */ + public Builder setTagNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + revisionCase_ = 4; + revision_ = value; + onChanged(); + return this; + } + + /** + *
+       * Explicit commit SHA to build.
+       * 
+ * + * string commit_sha = 5; + * @return The commitSha. + */ + @java.lang.Override + public java.lang.String getCommitSha() { + java.lang.Object ref = ""; + if (revisionCase_ == 5) { + ref = revision_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (revisionCase_ == 5) { + revision_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Explicit commit SHA to build.
+       * 
+ * + * string commit_sha = 5; + * @return The bytes for commitSha. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCommitShaBytes() { + java.lang.Object ref = ""; + if (revisionCase_ == 5) { + ref = revision_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (revisionCase_ == 5) { + revision_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Explicit commit SHA to build.
+       * 
+ * + * string commit_sha = 5; + * @param value The commitSha to set. + * @return This builder for chaining. + */ + public Builder setCommitSha( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + revisionCase_ = 5; + revision_ = value; + onChanged(); + return this; + } + /** + *
+       * Explicit commit SHA to build.
+       * 
+ * + * string commit_sha = 5; + * @return This builder for chaining. + */ + public Builder clearCommitSha() { + if (revisionCase_ == 5) { + revisionCase_ = 0; + revision_ = null; + onChanged(); + } + return this; + } + /** + *
+       * Explicit commit SHA to build.
+       * 
+ * + * string commit_sha = 5; + * @param value The bytes for commitSha to set. + * @return This builder for chaining. + */ + public Builder setCommitShaBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + revisionCase_ = 5; + revision_ = value; + onChanged(); + return this; + } + + private java.lang.Object dir_ = ""; + /** + *
+       * Directory, relative to the source root, in which to run the build.
+       * This must be a relative path. If a step's `dir` is specified and is an
+       * absolute path, this value is ignored for that step's execution.
+       * 
+ * + * string dir = 7; + * @return The dir. + */ + public java.lang.String getDir() { + java.lang.Object ref = dir_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dir_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Directory, relative to the source root, in which to run the build.
+       * This must be a relative path. If a step's `dir` is specified and is an
+       * absolute path, this value is ignored for that step's execution.
+       * 
+ * + * string dir = 7; + * @return The bytes for dir. + */ + public com.google.protobuf.ByteString + getDirBytes() { + java.lang.Object ref = dir_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + dir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Directory, relative to the source root, in which to run the build.
+       * This must be a relative path. If a step's `dir` is specified and is an
+       * absolute path, this value is ignored for that step's execution.
+       * 
+ * + * string dir = 7; + * @param value The dir to set. + * @return This builder for chaining. + */ + public Builder setDir( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + dir_ = value; + onChanged(); + return this; + } + /** + *
+       * Directory, relative to the source root, in which to run the build.
+       * This must be a relative path. If a step's `dir` is specified and is an
+       * absolute path, this value is ignored for that step's execution.
+       * 
+ * + * string dir = 7; + * @return This builder for chaining. + */ + public Builder clearDir() { + + dir_ = getDefaultInstance().getDir(); + onChanged(); + return this; + } + /** + *
+       * Directory, relative to the source root, in which to run the build.
+       * This must be a relative path. If a step's `dir` is specified and is an
+       * absolute path, this value is ignored for that step's execution.
+       * 
+ * + * string dir = 7; + * @param value The bytes for dir to set. + * @return This builder for chaining. + */ + public Builder setDirBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + dir_ = value; + onChanged(); + return this; + } + + private boolean invertRegex_ ; + /** + *
+       * Only trigger a build if the revision regex does NOT match the revision
+       * regex.
+       * 
+ * + * bool invert_regex = 8; + * @return The invertRegex. + */ + @java.lang.Override + public boolean getInvertRegex() { + return invertRegex_; + } + /** + *
+       * Only trigger a build if the revision regex does NOT match the revision
+       * regex.
+       * 
+ * + * bool invert_regex = 8; + * @param value The invertRegex to set. + * @return This builder for chaining. + */ + public Builder setInvertRegex(boolean value) { + + invertRegex_ = value; + onChanged(); + return this; + } + /** + *
+       * Only trigger a build if the revision regex does NOT match the revision
+       * regex.
+       * 
+ * + * bool invert_regex = 8; + * @return This builder for chaining. + */ + public Builder clearInvertRegex() { + + invertRegex_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> substitutions_; + private com.google.protobuf.MapField + internalGetSubstitutions() { + if (substitutions_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SubstitutionsDefaultEntryHolder.defaultEntry); + } + return substitutions_; + } + private com.google.protobuf.MapField + internalGetMutableSubstitutions() { + onChanged();; + if (substitutions_ == null) { + substitutions_ = com.google.protobuf.MapField.newMapField( + SubstitutionsDefaultEntryHolder.defaultEntry); + } + if (!substitutions_.isMutable()) { + substitutions_ = substitutions_.copy(); + } + return substitutions_; + } + + public int getSubstitutionsCount() { + return internalGetSubstitutions().getMap().size(); + } + /** + *
+       * Substitutions to use in a triggered build.
+       * Should only be used with RunBuildTrigger
+       * 
+ * + * map<string, string> substitutions = 9; + */ + + @java.lang.Override + public boolean containsSubstitutions( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetSubstitutions().getMap().containsKey(key); + } + /** + * Use {@link #getSubstitutionsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getSubstitutions() { + return getSubstitutionsMap(); + } + /** + *
+       * Substitutions to use in a triggered build.
+       * Should only be used with RunBuildTrigger
+       * 
+ * + * map<string, string> substitutions = 9; + */ + @java.lang.Override + + public java.util.Map getSubstitutionsMap() { + return internalGetSubstitutions().getMap(); + } + /** + *
+       * Substitutions to use in a triggered build.
+       * Should only be used with RunBuildTrigger
+       * 
+ * + * map<string, string> substitutions = 9; + */ + @java.lang.Override + + public java.lang.String getSubstitutionsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetSubstitutions().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Substitutions to use in a triggered build.
+       * Should only be used with RunBuildTrigger
+       * 
+ * + * map<string, string> substitutions = 9; + */ + @java.lang.Override + + public java.lang.String getSubstitutionsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetSubstitutions().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearSubstitutions() { + internalGetMutableSubstitutions().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Substitutions to use in a triggered build.
+       * Should only be used with RunBuildTrigger
+       * 
+ * + * map<string, string> substitutions = 9; + */ + + public Builder removeSubstitutions( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableSubstitutions().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableSubstitutions() { + return internalGetMutableSubstitutions().getMutableMap(); + } + /** + *
+       * Substitutions to use in a triggered build.
+       * Should only be used with RunBuildTrigger
+       * 
+ * + * map<string, string> substitutions = 9; + */ + public Builder putSubstitutions( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableSubstitutions().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Substitutions to use in a triggered build.
+       * Should only be used with RunBuildTrigger
+       * 
+ * + * map<string, string> substitutions = 9; + */ + + public Builder putAllSubstitutions( + java.util.Map values) { + internalGetMutableSubstitutions().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.events.cloud.build.v1.RepoSource) + } + + // @@protoc_insertion_point(class_scope:google.events.cloud.build.v1.RepoSource) + private static final google.events.cloud.build.v1.Data.RepoSource DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new google.events.cloud.build.v1.Data.RepoSource(); + } + + public static google.events.cloud.build.v1.Data.RepoSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RepoSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RepoSource(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.RepoSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BuildStepOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.cloud.build.v1.BuildStep) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The name of the container image that will run this particular
+     * build step.
+     * If the image is available in the host's Docker daemon's cache, it
+     * will be run directly. If not, the host will attempt to pull the image
+     * first, using the builder service account's credentials if necessary.
+     * The Docker daemon's cache will already have the latest versions of all of
+     * the officially supported build steps
+     * ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)).
+     * The Docker daemon will also have cached many of the layers for some popular
+     * images, like "ubuntu", "debian", but they will be refreshed at the time you
+     * attempt to use them.
+     * If you built an image in a previous build step, it will be stored in the
+     * host's Docker daemon's cache and is available to use as the name for a
+     * later build step.
+     * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+     * The name of the container image that will run this particular
+     * build step.
+     * If the image is available in the host's Docker daemon's cache, it
+     * will be run directly. If not, the host will attempt to pull the image
+     * first, using the builder service account's credentials if necessary.
+     * The Docker daemon's cache will already have the latest versions of all of
+     * the officially supported build steps
+     * ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)).
+     * The Docker daemon will also have cached many of the layers for some popular
+     * images, like "ubuntu", "debian", but they will be refreshed at the time you
+     * attempt to use them.
+     * If you built an image in a previous build step, it will be stored in the
+     * host's Docker daemon's cache and is available to use as the name for a
+     * later build step.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * A list of environment variable definitions to be used when running a step.
+     * The elements are of the form "KEY=VALUE" for the environment variable "KEY"
+     * being given the value "VALUE".
+     * 
+ * + * repeated string env = 2; + * @return A list containing the env. + */ + java.util.List + getEnvList(); + /** + *
+     * A list of environment variable definitions to be used when running a step.
+     * The elements are of the form "KEY=VALUE" for the environment variable "KEY"
+     * being given the value "VALUE".
+     * 
+ * + * repeated string env = 2; + * @return The count of env. + */ + int getEnvCount(); + /** + *
+     * A list of environment variable definitions to be used when running a step.
+     * The elements are of the form "KEY=VALUE" for the environment variable "KEY"
+     * being given the value "VALUE".
+     * 
+ * + * repeated string env = 2; + * @param index The index of the element to return. + * @return The env at the given index. + */ + java.lang.String getEnv(int index); + /** + *
+     * A list of environment variable definitions to be used when running a step.
+     * The elements are of the form "KEY=VALUE" for the environment variable "KEY"
+     * being given the value "VALUE".
+     * 
+ * + * repeated string env = 2; + * @param index The index of the value to return. + * @return The bytes of the env at the given index. + */ + com.google.protobuf.ByteString + getEnvBytes(int index); + + /** + *
+     * A list of arguments that will be presented to the step when it is started.
+     * If the image used to run the step's container has an entrypoint, the `args`
+     * are used as arguments to that entrypoint. If the image does not define
+     * an entrypoint, the first element in args is used as the entrypoint,
+     * and the remainder will be used as arguments.
+     * 
+ * + * repeated string args = 3; + * @return A list containing the args. + */ + java.util.List + getArgsList(); + /** + *
+     * A list of arguments that will be presented to the step when it is started.
+     * If the image used to run the step's container has an entrypoint, the `args`
+     * are used as arguments to that entrypoint. If the image does not define
+     * an entrypoint, the first element in args is used as the entrypoint,
+     * and the remainder will be used as arguments.
+     * 
+ * + * repeated string args = 3; + * @return The count of args. + */ + int getArgsCount(); + /** + *
+     * A list of arguments that will be presented to the step when it is started.
+     * If the image used to run the step's container has an entrypoint, the `args`
+     * are used as arguments to that entrypoint. If the image does not define
+     * an entrypoint, the first element in args is used as the entrypoint,
+     * and the remainder will be used as arguments.
+     * 
+ * + * repeated string args = 3; + * @param index The index of the element to return. + * @return The args at the given index. + */ + java.lang.String getArgs(int index); + /** + *
+     * A list of arguments that will be presented to the step when it is started.
+     * If the image used to run the step's container has an entrypoint, the `args`
+     * are used as arguments to that entrypoint. If the image does not define
+     * an entrypoint, the first element in args is used as the entrypoint,
+     * and the remainder will be used as arguments.
+     * 
+ * + * repeated string args = 3; + * @param index The index of the value to return. + * @return The bytes of the args at the given index. + */ + com.google.protobuf.ByteString + getArgsBytes(int index); + + /** + *
+     * Working directory to use when running this step's container.
+     * If this value is a relative path, it is relative to the build's working
+     * directory. If this value is absolute, it may be outside the build's working
+     * directory, in which case the contents of the path may not be persisted
+     * across build step executions, unless a `volume` for that path is specified.
+     * If the build specifies a `RepoSource` with `dir` and a step with a `dir`,
+     * which specifies an absolute path, the `RepoSource` `dir` is ignored for
+     * the step's execution.
+     * 
+ * + * string dir = 4; + * @return The dir. + */ + java.lang.String getDir(); + /** + *
+     * Working directory to use when running this step's container.
+     * If this value is a relative path, it is relative to the build's working
+     * directory. If this value is absolute, it may be outside the build's working
+     * directory, in which case the contents of the path may not be persisted
+     * across build step executions, unless a `volume` for that path is specified.
+     * If the build specifies a `RepoSource` with `dir` and a step with a `dir`,
+     * which specifies an absolute path, the `RepoSource` `dir` is ignored for
+     * the step's execution.
+     * 
+ * + * string dir = 4; + * @return The bytes for dir. + */ + com.google.protobuf.ByteString + getDirBytes(); + + /** + *
+     * Unique identifier for this build step, used in `wait_for` to
+     * reference this build step as a dependency.
+     * 
+ * + * string id = 5; + * @return The id. + */ + java.lang.String getId(); + /** + *
+     * Unique identifier for this build step, used in `wait_for` to
+     * reference this build step as a dependency.
+     * 
+ * + * string id = 5; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+     * The ID(s) of the step(s) that this build step depends on.
+     * This build step will not start until all the build steps in `wait_for`
+     * have completed successfully. If `wait_for` is empty, this build step will
+     * start when all previous build steps in the `Build.Steps` list have
+     * completed successfully.
+     * 
+ * + * repeated string wait_for = 6; + * @return A list containing the waitFor. + */ + java.util.List + getWaitForList(); + /** + *
+     * The ID(s) of the step(s) that this build step depends on.
+     * This build step will not start until all the build steps in `wait_for`
+     * have completed successfully. If `wait_for` is empty, this build step will
+     * start when all previous build steps in the `Build.Steps` list have
+     * completed successfully.
+     * 
+ * + * repeated string wait_for = 6; + * @return The count of waitFor. + */ + int getWaitForCount(); + /** + *
+     * The ID(s) of the step(s) that this build step depends on.
+     * This build step will not start until all the build steps in `wait_for`
+     * have completed successfully. If `wait_for` is empty, this build step will
+     * start when all previous build steps in the `Build.Steps` list have
+     * completed successfully.
+     * 
+ * + * repeated string wait_for = 6; + * @param index The index of the element to return. + * @return The waitFor at the given index. + */ + java.lang.String getWaitFor(int index); + /** + *
+     * The ID(s) of the step(s) that this build step depends on.
+     * This build step will not start until all the build steps in `wait_for`
+     * have completed successfully. If `wait_for` is empty, this build step will
+     * start when all previous build steps in the `Build.Steps` list have
+     * completed successfully.
+     * 
+ * + * repeated string wait_for = 6; + * @param index The index of the value to return. + * @return The bytes of the waitFor at the given index. + */ + com.google.protobuf.ByteString + getWaitForBytes(int index); + + /** + *
+     * Entrypoint to be used instead of the build step image's default entrypoint.
+     * If unset, the image's default entrypoint is used.
+     * 
+ * + * string entrypoint = 7; + * @return The entrypoint. + */ + java.lang.String getEntrypoint(); + /** + *
+     * Entrypoint to be used instead of the build step image's default entrypoint.
+     * If unset, the image's default entrypoint is used.
+     * 
+ * + * string entrypoint = 7; + * @return The bytes for entrypoint. + */ + com.google.protobuf.ByteString + getEntrypointBytes(); + + /** + *
+     * A list of environment variables which are encrypted using a Cloud Key
+     * Management Service crypto key. These values must be specified in the
+     * build's `Secret`.
+     * 
+ * + * repeated string secret_env = 8; + * @return A list containing the secretEnv. + */ + java.util.List + getSecretEnvList(); + /** + *
+     * A list of environment variables which are encrypted using a Cloud Key
+     * Management Service crypto key. These values must be specified in the
+     * build's `Secret`.
+     * 
+ * + * repeated string secret_env = 8; + * @return The count of secretEnv. + */ + int getSecretEnvCount(); + /** + *
+     * A list of environment variables which are encrypted using a Cloud Key
+     * Management Service crypto key. These values must be specified in the
+     * build's `Secret`.
+     * 
+ * + * repeated string secret_env = 8; + * @param index The index of the element to return. + * @return The secretEnv at the given index. + */ + java.lang.String getSecretEnv(int index); + /** + *
+     * A list of environment variables which are encrypted using a Cloud Key
+     * Management Service crypto key. These values must be specified in the
+     * build's `Secret`.
+     * 
+ * + * repeated string secret_env = 8; + * @param index The index of the value to return. + * @return The bytes of the secretEnv at the given index. + */ + com.google.protobuf.ByteString + getSecretEnvBytes(int index); + + /** + *
+     * List of volumes to mount into the build step.
+     * Each volume is created as an empty volume prior to execution of the
+     * build step. Upon completion of the build, volumes and their contents are
+     * discarded.
+     * Using a named volume in only one step is not valid as it is indicative
+     * of a build request with an incorrect configuration.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 9; + */ + java.util.List + getVolumesList(); + /** + *
+     * List of volumes to mount into the build step.
+     * Each volume is created as an empty volume prior to execution of the
+     * build step. Upon completion of the build, volumes and their contents are
+     * discarded.
+     * Using a named volume in only one step is not valid as it is indicative
+     * of a build request with an incorrect configuration.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 9; + */ + google.events.cloud.build.v1.Data.Volume getVolumes(int index); + /** + *
+     * List of volumes to mount into the build step.
+     * Each volume is created as an empty volume prior to execution of the
+     * build step. Upon completion of the build, volumes and their contents are
+     * discarded.
+     * Using a named volume in only one step is not valid as it is indicative
+     * of a build request with an incorrect configuration.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 9; + */ + int getVolumesCount(); + /** + *
+     * List of volumes to mount into the build step.
+     * Each volume is created as an empty volume prior to execution of the
+     * build step. Upon completion of the build, volumes and their contents are
+     * discarded.
+     * Using a named volume in only one step is not valid as it is indicative
+     * of a build request with an incorrect configuration.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 9; + */ + java.util.List + getVolumesOrBuilderList(); + /** + *
+     * List of volumes to mount into the build step.
+     * Each volume is created as an empty volume prior to execution of the
+     * build step. Upon completion of the build, volumes and their contents are
+     * discarded.
+     * Using a named volume in only one step is not valid as it is indicative
+     * of a build request with an incorrect configuration.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 9; + */ + google.events.cloud.build.v1.Data.VolumeOrBuilder getVolumesOrBuilder( + int index); + + /** + *
+     * Stores timing information for executing this build step.
+     * 
+ * + * .google.events.cloud.build.v1.TimeSpan timing = 10; + * @return Whether the timing field is set. + */ + boolean hasTiming(); + /** + *
+     * Stores timing information for executing this build step.
+     * 
+ * + * .google.events.cloud.build.v1.TimeSpan timing = 10; + * @return The timing. + */ + google.events.cloud.build.v1.Data.TimeSpan getTiming(); + /** + *
+     * Stores timing information for executing this build step.
+     * 
+ * + * .google.events.cloud.build.v1.TimeSpan timing = 10; + */ + google.events.cloud.build.v1.Data.TimeSpanOrBuilder getTimingOrBuilder(); + + /** + *
+     * Stores timing information for pulling this build step's
+     * builder image only.
+     * 
+ * + * .google.events.cloud.build.v1.TimeSpan pull_timing = 13; + * @return Whether the pullTiming field is set. + */ + boolean hasPullTiming(); + /** + *
+     * Stores timing information for pulling this build step's
+     * builder image only.
+     * 
+ * + * .google.events.cloud.build.v1.TimeSpan pull_timing = 13; + * @return The pullTiming. + */ + google.events.cloud.build.v1.Data.TimeSpan getPullTiming(); + /** + *
+     * Stores timing information for pulling this build step's
+     * builder image only.
+     * 
+ * + * .google.events.cloud.build.v1.TimeSpan pull_timing = 13; + */ + google.events.cloud.build.v1.Data.TimeSpanOrBuilder getPullTimingOrBuilder(); + + /** + *
+     * Time limit for executing this build step. If not defined, the step has no
+     * time limit and will be allowed to continue to run until either it completes
+     * or the build itself times out.
+     * 
+ * + * .google.protobuf.Duration timeout = 11; + * @return Whether the timeout field is set. + */ + boolean hasTimeout(); + /** + *
+     * Time limit for executing this build step. If not defined, the step has no
+     * time limit and will be allowed to continue to run until either it completes
+     * or the build itself times out.
+     * 
+ * + * .google.protobuf.Duration timeout = 11; + * @return The timeout. + */ + com.google.protobuf.Duration getTimeout(); + /** + *
+     * Time limit for executing this build step. If not defined, the step has no
+     * time limit and will be allowed to continue to run until either it completes
+     * or the build itself times out.
+     * 
+ * + * .google.protobuf.Duration timeout = 11; + */ + com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder(); + + /** + *
+     * Status of the build step. At this time, build step status is
+     * only updated on build completion; step status is not updated in real-time
+     * as the build progresses.
+     * 
+ * + * .google.events.cloud.build.v1.BuildEventData.Status status = 12; + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + /** + *
+     * Status of the build step. At this time, build step status is
+     * only updated on build completion; step status is not updated in real-time
+     * as the build progresses.
+     * 
+ * + * .google.events.cloud.build.v1.BuildEventData.Status status = 12; + * @return The status. + */ + google.events.cloud.build.v1.Data.BuildEventData.Status getStatus(); + } + /** + *
+   * A step in the build pipeline.
+   * 
+ * + * Protobuf type {@code google.events.cloud.build.v1.BuildStep} + */ + public static final class BuildStep extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.cloud.build.v1.BuildStep) + BuildStepOrBuilder { + private static final long serialVersionUID = 0L; + // Use BuildStep.newBuilder() to construct. + private BuildStep(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BuildStep() { + name_ = ""; + env_ = com.google.protobuf.LazyStringArrayList.EMPTY; + args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + dir_ = ""; + id_ = ""; + waitFor_ = com.google.protobuf.LazyStringArrayList.EMPTY; + entrypoint_ = ""; + secretEnv_ = com.google.protobuf.LazyStringArrayList.EMPTY; + volumes_ = java.util.Collections.emptyList(); + status_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BuildStep(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BuildStep( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + env_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + env_.add(s); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + args_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + args_.add(s); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + dir_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + waitFor_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + waitFor_.add(s); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + entrypoint_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + secretEnv_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000008; + } + secretEnv_.add(s); + break; + } + case 74: { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + volumes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + volumes_.add( + input.readMessage(google.events.cloud.build.v1.Data.Volume.parser(), extensionRegistry)); + break; + } + case 82: { + google.events.cloud.build.v1.Data.TimeSpan.Builder subBuilder = null; + if (timing_ != null) { + subBuilder = timing_.toBuilder(); + } + timing_ = input.readMessage(google.events.cloud.build.v1.Data.TimeSpan.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timing_); + timing_ = subBuilder.buildPartial(); + } + + break; + } + case 90: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (timeout_ != null) { + subBuilder = timeout_.toBuilder(); + } + timeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeout_); + timeout_ = subBuilder.buildPartial(); + } + + break; + } + case 96: { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + case 106: { + google.events.cloud.build.v1.Data.TimeSpan.Builder subBuilder = null; + if (pullTiming_ != null) { + subBuilder = pullTiming_.toBuilder(); + } + pullTiming_ = input.readMessage(google.events.cloud.build.v1.Data.TimeSpan.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pullTiming_); + pullTiming_ = subBuilder.buildPartial(); + } + + 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)) { + env_ = env_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + args_ = args_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + waitFor_ = waitFor_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000008) != 0)) { + secretEnv_ = secretEnv_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000010) != 0)) { + volumes_ = java.util.Collections.unmodifiableList(volumes_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_BuildStep_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_BuildStep_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.build.v1.Data.BuildStep.class, google.events.cloud.build.v1.Data.BuildStep.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+     * The name of the container image that will run this particular
+     * build step.
+     * If the image is available in the host's Docker daemon's cache, it
+     * will be run directly. If not, the host will attempt to pull the image
+     * first, using the builder service account's credentials if necessary.
+     * The Docker daemon's cache will already have the latest versions of all of
+     * the officially supported build steps
+     * ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)).
+     * The Docker daemon will also have cached many of the layers for some popular
+     * images, like "ubuntu", "debian", but they will be refreshed at the time you
+     * attempt to use them.
+     * If you built an image in a previous build step, it will be stored in the
+     * host's Docker daemon's cache and is available to use as the name for a
+     * later build step.
+     * 
+ * + * 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 name of the container image that will run this particular
+     * build step.
+     * If the image is available in the host's Docker daemon's cache, it
+     * will be run directly. If not, the host will attempt to pull the image
+     * first, using the builder service account's credentials if necessary.
+     * The Docker daemon's cache will already have the latest versions of all of
+     * the officially supported build steps
+     * ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)).
+     * The Docker daemon will also have cached many of the layers for some popular
+     * images, like "ubuntu", "debian", but they will be refreshed at the time you
+     * attempt to use them.
+     * If you built an image in a previous build step, it will be stored in the
+     * host's Docker daemon's cache and is available to use as the name for a
+     * later build step.
+     * 
+ * + * 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 ENV_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList env_; + /** + *
+     * A list of environment variable definitions to be used when running a step.
+     * The elements are of the form "KEY=VALUE" for the environment variable "KEY"
+     * being given the value "VALUE".
+     * 
+ * + * repeated string env = 2; + * @return A list containing the env. + */ + public com.google.protobuf.ProtocolStringList + getEnvList() { + return env_; + } + /** + *
+     * A list of environment variable definitions to be used when running a step.
+     * The elements are of the form "KEY=VALUE" for the environment variable "KEY"
+     * being given the value "VALUE".
+     * 
+ * + * repeated string env = 2; + * @return The count of env. + */ + public int getEnvCount() { + return env_.size(); + } + /** + *
+     * A list of environment variable definitions to be used when running a step.
+     * The elements are of the form "KEY=VALUE" for the environment variable "KEY"
+     * being given the value "VALUE".
+     * 
+ * + * repeated string env = 2; + * @param index The index of the element to return. + * @return The env at the given index. + */ + public java.lang.String getEnv(int index) { + return env_.get(index); + } + /** + *
+     * A list of environment variable definitions to be used when running a step.
+     * The elements are of the form "KEY=VALUE" for the environment variable "KEY"
+     * being given the value "VALUE".
+     * 
+ * + * repeated string env = 2; + * @param index The index of the value to return. + * @return The bytes of the env at the given index. + */ + public com.google.protobuf.ByteString + getEnvBytes(int index) { + return env_.getByteString(index); + } + + public static final int ARGS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList args_; + /** + *
+     * A list of arguments that will be presented to the step when it is started.
+     * If the image used to run the step's container has an entrypoint, the `args`
+     * are used as arguments to that entrypoint. If the image does not define
+     * an entrypoint, the first element in args is used as the entrypoint,
+     * and the remainder will be used as arguments.
+     * 
+ * + * repeated string args = 3; + * @return A list containing the args. + */ + public com.google.protobuf.ProtocolStringList + getArgsList() { + return args_; + } + /** + *
+     * A list of arguments that will be presented to the step when it is started.
+     * If the image used to run the step's container has an entrypoint, the `args`
+     * are used as arguments to that entrypoint. If the image does not define
+     * an entrypoint, the first element in args is used as the entrypoint,
+     * and the remainder will be used as arguments.
+     * 
+ * + * repeated string args = 3; + * @return The count of args. + */ + public int getArgsCount() { + return args_.size(); + } + /** + *
+     * A list of arguments that will be presented to the step when it is started.
+     * If the image used to run the step's container has an entrypoint, the `args`
+     * are used as arguments to that entrypoint. If the image does not define
+     * an entrypoint, the first element in args is used as the entrypoint,
+     * and the remainder will be used as arguments.
+     * 
+ * + * repeated string args = 3; + * @param index The index of the element to return. + * @return The args at the given index. + */ + public java.lang.String getArgs(int index) { + return args_.get(index); + } + /** + *
+     * A list of arguments that will be presented to the step when it is started.
+     * If the image used to run the step's container has an entrypoint, the `args`
+     * are used as arguments to that entrypoint. If the image does not define
+     * an entrypoint, the first element in args is used as the entrypoint,
+     * and the remainder will be used as arguments.
+     * 
+ * + * repeated string args = 3; + * @param index The index of the value to return. + * @return The bytes of the args at the given index. + */ + public com.google.protobuf.ByteString + getArgsBytes(int index) { + return args_.getByteString(index); + } + + public static final int DIR_FIELD_NUMBER = 4; + private volatile java.lang.Object dir_; + /** + *
+     * Working directory to use when running this step's container.
+     * If this value is a relative path, it is relative to the build's working
+     * directory. If this value is absolute, it may be outside the build's working
+     * directory, in which case the contents of the path may not be persisted
+     * across build step executions, unless a `volume` for that path is specified.
+     * If the build specifies a `RepoSource` with `dir` and a step with a `dir`,
+     * which specifies an absolute path, the `RepoSource` `dir` is ignored for
+     * the step's execution.
+     * 
+ * + * string dir = 4; + * @return The dir. + */ + @java.lang.Override + public java.lang.String getDir() { + java.lang.Object ref = dir_; + 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(); + dir_ = s; + return s; + } + } + /** + *
+     * Working directory to use when running this step's container.
+     * If this value is a relative path, it is relative to the build's working
+     * directory. If this value is absolute, it may be outside the build's working
+     * directory, in which case the contents of the path may not be persisted
+     * across build step executions, unless a `volume` for that path is specified.
+     * If the build specifies a `RepoSource` with `dir` and a step with a `dir`,
+     * which specifies an absolute path, the `RepoSource` `dir` is ignored for
+     * the step's execution.
+     * 
+ * + * string dir = 4; + * @return The bytes for dir. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDirBytes() { + java.lang.Object ref = dir_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + dir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ID_FIELD_NUMBER = 5; + private volatile java.lang.Object id_; + /** + *
+     * Unique identifier for this build step, used in `wait_for` to
+     * reference this build step as a dependency.
+     * 
+ * + * string id = 5; + * @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; + } + } + /** + *
+     * Unique identifier for this build step, used in `wait_for` to
+     * reference this build step as a dependency.
+     * 
+ * + * string id = 5; + * @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 WAIT_FOR_FIELD_NUMBER = 6; + private com.google.protobuf.LazyStringList waitFor_; + /** + *
+     * The ID(s) of the step(s) that this build step depends on.
+     * This build step will not start until all the build steps in `wait_for`
+     * have completed successfully. If `wait_for` is empty, this build step will
+     * start when all previous build steps in the `Build.Steps` list have
+     * completed successfully.
+     * 
+ * + * repeated string wait_for = 6; + * @return A list containing the waitFor. + */ + public com.google.protobuf.ProtocolStringList + getWaitForList() { + return waitFor_; + } + /** + *
+     * The ID(s) of the step(s) that this build step depends on.
+     * This build step will not start until all the build steps in `wait_for`
+     * have completed successfully. If `wait_for` is empty, this build step will
+     * start when all previous build steps in the `Build.Steps` list have
+     * completed successfully.
+     * 
+ * + * repeated string wait_for = 6; + * @return The count of waitFor. + */ + public int getWaitForCount() { + return waitFor_.size(); + } + /** + *
+     * The ID(s) of the step(s) that this build step depends on.
+     * This build step will not start until all the build steps in `wait_for`
+     * have completed successfully. If `wait_for` is empty, this build step will
+     * start when all previous build steps in the `Build.Steps` list have
+     * completed successfully.
+     * 
+ * + * repeated string wait_for = 6; + * @param index The index of the element to return. + * @return The waitFor at the given index. + */ + public java.lang.String getWaitFor(int index) { + return waitFor_.get(index); + } + /** + *
+     * The ID(s) of the step(s) that this build step depends on.
+     * This build step will not start until all the build steps in `wait_for`
+     * have completed successfully. If `wait_for` is empty, this build step will
+     * start when all previous build steps in the `Build.Steps` list have
+     * completed successfully.
+     * 
+ * + * repeated string wait_for = 6; + * @param index The index of the value to return. + * @return The bytes of the waitFor at the given index. + */ + public com.google.protobuf.ByteString + getWaitForBytes(int index) { + return waitFor_.getByteString(index); + } + + public static final int ENTRYPOINT_FIELD_NUMBER = 7; + private volatile java.lang.Object entrypoint_; + /** + *
+     * Entrypoint to be used instead of the build step image's default entrypoint.
+     * If unset, the image's default entrypoint is used.
+     * 
+ * + * string entrypoint = 7; + * @return The entrypoint. + */ + @java.lang.Override + public java.lang.String getEntrypoint() { + java.lang.Object ref = entrypoint_; + 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(); + entrypoint_ = s; + return s; + } + } + /** + *
+     * Entrypoint to be used instead of the build step image's default entrypoint.
+     * If unset, the image's default entrypoint is used.
+     * 
+ * + * string entrypoint = 7; + * @return The bytes for entrypoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEntrypointBytes() { + java.lang.Object ref = entrypoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + entrypoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECRET_ENV_FIELD_NUMBER = 8; + private com.google.protobuf.LazyStringList secretEnv_; + /** + *
+     * A list of environment variables which are encrypted using a Cloud Key
+     * Management Service crypto key. These values must be specified in the
+     * build's `Secret`.
+     * 
+ * + * repeated string secret_env = 8; + * @return A list containing the secretEnv. + */ + public com.google.protobuf.ProtocolStringList + getSecretEnvList() { + return secretEnv_; + } + /** + *
+     * A list of environment variables which are encrypted using a Cloud Key
+     * Management Service crypto key. These values must be specified in the
+     * build's `Secret`.
+     * 
+ * + * repeated string secret_env = 8; + * @return The count of secretEnv. + */ + public int getSecretEnvCount() { + return secretEnv_.size(); + } + /** + *
+     * A list of environment variables which are encrypted using a Cloud Key
+     * Management Service crypto key. These values must be specified in the
+     * build's `Secret`.
+     * 
+ * + * repeated string secret_env = 8; + * @param index The index of the element to return. + * @return The secretEnv at the given index. + */ + public java.lang.String getSecretEnv(int index) { + return secretEnv_.get(index); + } + /** + *
+     * A list of environment variables which are encrypted using a Cloud Key
+     * Management Service crypto key. These values must be specified in the
+     * build's `Secret`.
+     * 
+ * + * repeated string secret_env = 8; + * @param index The index of the value to return. + * @return The bytes of the secretEnv at the given index. + */ + public com.google.protobuf.ByteString + getSecretEnvBytes(int index) { + return secretEnv_.getByteString(index); + } + + public static final int VOLUMES_FIELD_NUMBER = 9; + private java.util.List volumes_; + /** + *
+     * List of volumes to mount into the build step.
+     * Each volume is created as an empty volume prior to execution of the
+     * build step. Upon completion of the build, volumes and their contents are
+     * discarded.
+     * Using a named volume in only one step is not valid as it is indicative
+     * of a build request with an incorrect configuration.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 9; + */ + @java.lang.Override + public java.util.List getVolumesList() { + return volumes_; + } + /** + *
+     * List of volumes to mount into the build step.
+     * Each volume is created as an empty volume prior to execution of the
+     * build step. Upon completion of the build, volumes and their contents are
+     * discarded.
+     * Using a named volume in only one step is not valid as it is indicative
+     * of a build request with an incorrect configuration.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 9; + */ + @java.lang.Override + public java.util.List + getVolumesOrBuilderList() { + return volumes_; + } + /** + *
+     * List of volumes to mount into the build step.
+     * Each volume is created as an empty volume prior to execution of the
+     * build step. Upon completion of the build, volumes and their contents are
+     * discarded.
+     * Using a named volume in only one step is not valid as it is indicative
+     * of a build request with an incorrect configuration.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 9; + */ + @java.lang.Override + public int getVolumesCount() { + return volumes_.size(); + } + /** + *
+     * List of volumes to mount into the build step.
+     * Each volume is created as an empty volume prior to execution of the
+     * build step. Upon completion of the build, volumes and their contents are
+     * discarded.
+     * Using a named volume in only one step is not valid as it is indicative
+     * of a build request with an incorrect configuration.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 9; + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.Volume getVolumes(int index) { + return volumes_.get(index); + } + /** + *
+     * List of volumes to mount into the build step.
+     * Each volume is created as an empty volume prior to execution of the
+     * build step. Upon completion of the build, volumes and their contents are
+     * discarded.
+     * Using a named volume in only one step is not valid as it is indicative
+     * of a build request with an incorrect configuration.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 9; + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.VolumeOrBuilder getVolumesOrBuilder( + int index) { + return volumes_.get(index); + } + + public static final int TIMING_FIELD_NUMBER = 10; + private google.events.cloud.build.v1.Data.TimeSpan timing_; + /** + *
+     * Stores timing information for executing this build step.
+     * 
+ * + * .google.events.cloud.build.v1.TimeSpan timing = 10; + * @return Whether the timing field is set. + */ + @java.lang.Override + public boolean hasTiming() { + return timing_ != null; + } + /** + *
+     * Stores timing information for executing this build step.
+     * 
+ * + * .google.events.cloud.build.v1.TimeSpan timing = 10; + * @return The timing. + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.TimeSpan getTiming() { + return timing_ == null ? google.events.cloud.build.v1.Data.TimeSpan.getDefaultInstance() : timing_; + } + /** + *
+     * Stores timing information for executing this build step.
+     * 
+ * + * .google.events.cloud.build.v1.TimeSpan timing = 10; + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.TimeSpanOrBuilder getTimingOrBuilder() { + return getTiming(); + } + + public static final int PULL_TIMING_FIELD_NUMBER = 13; + private google.events.cloud.build.v1.Data.TimeSpan pullTiming_; + /** + *
+     * Stores timing information for pulling this build step's
+     * builder image only.
+     * 
+ * + * .google.events.cloud.build.v1.TimeSpan pull_timing = 13; + * @return Whether the pullTiming field is set. + */ + @java.lang.Override + public boolean hasPullTiming() { + return pullTiming_ != null; + } + /** + *
+     * Stores timing information for pulling this build step's
+     * builder image only.
+     * 
+ * + * .google.events.cloud.build.v1.TimeSpan pull_timing = 13; + * @return The pullTiming. + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.TimeSpan getPullTiming() { + return pullTiming_ == null ? google.events.cloud.build.v1.Data.TimeSpan.getDefaultInstance() : pullTiming_; + } + /** + *
+     * Stores timing information for pulling this build step's
+     * builder image only.
+     * 
+ * + * .google.events.cloud.build.v1.TimeSpan pull_timing = 13; + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.TimeSpanOrBuilder getPullTimingOrBuilder() { + return getPullTiming(); + } + + public static final int TIMEOUT_FIELD_NUMBER = 11; + private com.google.protobuf.Duration timeout_; + /** + *
+     * Time limit for executing this build step. If not defined, the step has no
+     * time limit and will be allowed to continue to run until either it completes
+     * or the build itself times out.
+     * 
+ * + * .google.protobuf.Duration timeout = 11; + * @return Whether the timeout field is set. + */ + @java.lang.Override + public boolean hasTimeout() { + return timeout_ != null; + } + /** + *
+     * Time limit for executing this build step. If not defined, the step has no
+     * time limit and will be allowed to continue to run until either it completes
+     * or the build itself times out.
+     * 
+ * + * .google.protobuf.Duration timeout = 11; + * @return The timeout. + */ + @java.lang.Override + public com.google.protobuf.Duration getTimeout() { + return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } + /** + *
+     * Time limit for executing this build step. If not defined, the step has no
+     * time limit and will be allowed to continue to run until either it completes
+     * or the build itself times out.
+     * 
+ * + * .google.protobuf.Duration timeout = 11; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { + return getTimeout(); + } + + public static final int STATUS_FIELD_NUMBER = 12; + private int status_; + /** + *
+     * Status of the build step. At this time, build step status is
+     * only updated on build completion; step status is not updated in real-time
+     * as the build progresses.
+     * 
+ * + * .google.events.cloud.build.v1.BuildEventData.Status status = 12; + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + *
+     * Status of the build step. At this time, build step status is
+     * only updated on build completion; step status is not updated in real-time
+     * as the build progresses.
+     * 
+ * + * .google.events.cloud.build.v1.BuildEventData.Status status = 12; + * @return The status. + */ + @java.lang.Override public google.events.cloud.build.v1.Data.BuildEventData.Status getStatus() { + @SuppressWarnings("deprecation") + google.events.cloud.build.v1.Data.BuildEventData.Status result = google.events.cloud.build.v1.Data.BuildEventData.Status.valueOf(status_); + return result == null ? google.events.cloud.build.v1.Data.BuildEventData.Status.UNRECOGNIZED : result; + } + + 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_); + } + for (int i = 0; i < env_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, env_.getRaw(i)); + } + for (int i = 0; i < args_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, args_.getRaw(i)); + } + if (!getDirBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, dir_); + } + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, id_); + } + for (int i = 0; i < waitFor_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, waitFor_.getRaw(i)); + } + if (!getEntrypointBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, entrypoint_); + } + for (int i = 0; i < secretEnv_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, secretEnv_.getRaw(i)); + } + for (int i = 0; i < volumes_.size(); i++) { + output.writeMessage(9, volumes_.get(i)); + } + if (timing_ != null) { + output.writeMessage(10, getTiming()); + } + if (timeout_ != null) { + output.writeMessage(11, getTimeout()); + } + if (status_ != google.events.cloud.build.v1.Data.BuildEventData.Status.STATUS_UNKNOWN.getNumber()) { + output.writeEnum(12, status_); + } + if (pullTiming_ != null) { + output.writeMessage(13, getPullTiming()); + } + 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_); + } + { + int dataSize = 0; + for (int i = 0; i < env_.size(); i++) { + dataSize += computeStringSizeNoTag(env_.getRaw(i)); + } + size += dataSize; + size += 1 * getEnvList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < args_.size(); i++) { + dataSize += computeStringSizeNoTag(args_.getRaw(i)); + } + size += dataSize; + size += 1 * getArgsList().size(); + } + if (!getDirBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, dir_); + } + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, id_); + } + { + int dataSize = 0; + for (int i = 0; i < waitFor_.size(); i++) { + dataSize += computeStringSizeNoTag(waitFor_.getRaw(i)); + } + size += dataSize; + size += 1 * getWaitForList().size(); + } + if (!getEntrypointBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, entrypoint_); + } + { + int dataSize = 0; + for (int i = 0; i < secretEnv_.size(); i++) { + dataSize += computeStringSizeNoTag(secretEnv_.getRaw(i)); + } + size += dataSize; + size += 1 * getSecretEnvList().size(); + } + for (int i = 0; i < volumes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, volumes_.get(i)); + } + if (timing_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getTiming()); + } + if (timeout_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getTimeout()); + } + if (status_ != google.events.cloud.build.v1.Data.BuildEventData.Status.STATUS_UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(12, status_); + } + if (pullTiming_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getPullTiming()); + } + 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.build.v1.Data.BuildStep)) { + return super.equals(obj); + } + google.events.cloud.build.v1.Data.BuildStep other = (google.events.cloud.build.v1.Data.BuildStep) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getEnvList() + .equals(other.getEnvList())) return false; + if (!getArgsList() + .equals(other.getArgsList())) return false; + if (!getDir() + .equals(other.getDir())) return false; + if (!getId() + .equals(other.getId())) return false; + if (!getWaitForList() + .equals(other.getWaitForList())) return false; + if (!getEntrypoint() + .equals(other.getEntrypoint())) return false; + if (!getSecretEnvList() + .equals(other.getSecretEnvList())) return false; + if (!getVolumesList() + .equals(other.getVolumesList())) return false; + if (hasTiming() != other.hasTiming()) return false; + if (hasTiming()) { + if (!getTiming() + .equals(other.getTiming())) return false; + } + if (hasPullTiming() != other.hasPullTiming()) return false; + if (hasPullTiming()) { + if (!getPullTiming() + .equals(other.getPullTiming())) return false; + } + if (hasTimeout() != other.hasTimeout()) return false; + if (hasTimeout()) { + if (!getTimeout() + .equals(other.getTimeout())) return false; + } + if (status_ != other.status_) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getEnvCount() > 0) { + hash = (37 * hash) + ENV_FIELD_NUMBER; + hash = (53 * hash) + getEnvList().hashCode(); + } + if (getArgsCount() > 0) { + hash = (37 * hash) + ARGS_FIELD_NUMBER; + hash = (53 * hash) + getArgsList().hashCode(); + } + hash = (37 * hash) + DIR_FIELD_NUMBER; + hash = (53 * hash) + getDir().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + if (getWaitForCount() > 0) { + hash = (37 * hash) + WAIT_FOR_FIELD_NUMBER; + hash = (53 * hash) + getWaitForList().hashCode(); + } + hash = (37 * hash) + ENTRYPOINT_FIELD_NUMBER; + hash = (53 * hash) + getEntrypoint().hashCode(); + if (getSecretEnvCount() > 0) { + hash = (37 * hash) + SECRET_ENV_FIELD_NUMBER; + hash = (53 * hash) + getSecretEnvList().hashCode(); + } + if (getVolumesCount() > 0) { + hash = (37 * hash) + VOLUMES_FIELD_NUMBER; + hash = (53 * hash) + getVolumesList().hashCode(); + } + if (hasTiming()) { + hash = (37 * hash) + TIMING_FIELD_NUMBER; + hash = (53 * hash) + getTiming().hashCode(); + } + if (hasPullTiming()) { + hash = (37 * hash) + PULL_TIMING_FIELD_NUMBER; + hash = (53 * hash) + getPullTiming().hashCode(); + } + if (hasTimeout()) { + hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getTimeout().hashCode(); + } + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static google.events.cloud.build.v1.Data.BuildStep parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.BuildStep 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.build.v1.Data.BuildStep parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.BuildStep 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.build.v1.Data.BuildStep parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.BuildStep parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.cloud.build.v1.Data.BuildStep parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.BuildStep 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.build.v1.Data.BuildStep parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.BuildStep 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.build.v1.Data.BuildStep parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.BuildStep 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.build.v1.Data.BuildStep 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 step in the build pipeline.
+     * 
+ * + * Protobuf type {@code google.events.cloud.build.v1.BuildStep} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.events.cloud.build.v1.BuildStep) + google.events.cloud.build.v1.Data.BuildStepOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_BuildStep_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_BuildStep_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.build.v1.Data.BuildStep.class, google.events.cloud.build.v1.Data.BuildStep.Builder.class); + } + + // Construct using google.events.cloud.build.v1.Data.BuildStep.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getVolumesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + env_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + dir_ = ""; + + id_ = ""; + + waitFor_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + entrypoint_ = ""; + + secretEnv_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + if (volumesBuilder_ == null) { + volumes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + volumesBuilder_.clear(); + } + if (timingBuilder_ == null) { + timing_ = null; + } else { + timing_ = null; + timingBuilder_ = null; + } + if (pullTimingBuilder_ == null) { + pullTiming_ = null; + } else { + pullTiming_ = null; + pullTimingBuilder_ = null; + } + if (timeoutBuilder_ == null) { + timeout_ = null; + } else { + timeout_ = null; + timeoutBuilder_ = null; + } + status_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_BuildStep_descriptor; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.BuildStep getDefaultInstanceForType() { + return google.events.cloud.build.v1.Data.BuildStep.getDefaultInstance(); + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.BuildStep build() { + google.events.cloud.build.v1.Data.BuildStep result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.BuildStep buildPartial() { + google.events.cloud.build.v1.Data.BuildStep result = new google.events.cloud.build.v1.Data.BuildStep(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + if (((bitField0_ & 0x00000001) != 0)) { + env_ = env_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.env_ = env_; + if (((bitField0_ & 0x00000002) != 0)) { + args_ = args_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.args_ = args_; + result.dir_ = dir_; + result.id_ = id_; + if (((bitField0_ & 0x00000004) != 0)) { + waitFor_ = waitFor_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.waitFor_ = waitFor_; + result.entrypoint_ = entrypoint_; + if (((bitField0_ & 0x00000008) != 0)) { + secretEnv_ = secretEnv_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.secretEnv_ = secretEnv_; + if (volumesBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + volumes_ = java.util.Collections.unmodifiableList(volumes_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.volumes_ = volumes_; + } else { + result.volumes_ = volumesBuilder_.build(); + } + if (timingBuilder_ == null) { + result.timing_ = timing_; + } else { + result.timing_ = timingBuilder_.build(); + } + if (pullTimingBuilder_ == null) { + result.pullTiming_ = pullTiming_; + } else { + result.pullTiming_ = pullTimingBuilder_.build(); + } + if (timeoutBuilder_ == null) { + result.timeout_ = timeout_; + } else { + result.timeout_ = timeoutBuilder_.build(); + } + result.status_ = status_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.events.cloud.build.v1.Data.BuildStep) { + return mergeFrom((google.events.cloud.build.v1.Data.BuildStep)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(google.events.cloud.build.v1.Data.BuildStep other) { + if (other == google.events.cloud.build.v1.Data.BuildStep.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.env_.isEmpty()) { + if (env_.isEmpty()) { + env_ = other.env_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEnvIsMutable(); + env_.addAll(other.env_); + } + onChanged(); + } + if (!other.args_.isEmpty()) { + if (args_.isEmpty()) { + args_ = other.args_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureArgsIsMutable(); + args_.addAll(other.args_); + } + onChanged(); + } + if (!other.getDir().isEmpty()) { + dir_ = other.dir_; + onChanged(); + } + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (!other.waitFor_.isEmpty()) { + if (waitFor_.isEmpty()) { + waitFor_ = other.waitFor_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureWaitForIsMutable(); + waitFor_.addAll(other.waitFor_); + } + onChanged(); + } + if (!other.getEntrypoint().isEmpty()) { + entrypoint_ = other.entrypoint_; + onChanged(); + } + if (!other.secretEnv_.isEmpty()) { + if (secretEnv_.isEmpty()) { + secretEnv_ = other.secretEnv_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureSecretEnvIsMutable(); + secretEnv_.addAll(other.secretEnv_); + } + onChanged(); + } + if (volumesBuilder_ == null) { + if (!other.volumes_.isEmpty()) { + if (volumes_.isEmpty()) { + volumes_ = other.volumes_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureVolumesIsMutable(); + volumes_.addAll(other.volumes_); + } + onChanged(); + } + } else { + if (!other.volumes_.isEmpty()) { + if (volumesBuilder_.isEmpty()) { + volumesBuilder_.dispose(); + volumesBuilder_ = null; + volumes_ = other.volumes_; + bitField0_ = (bitField0_ & ~0x00000010); + volumesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVolumesFieldBuilder() : null; + } else { + volumesBuilder_.addAllMessages(other.volumes_); + } + } + } + if (other.hasTiming()) { + mergeTiming(other.getTiming()); + } + if (other.hasPullTiming()) { + mergePullTiming(other.getPullTiming()); + } + if (other.hasTimeout()) { + mergeTimeout(other.getTimeout()); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.events.cloud.build.v1.Data.BuildStep parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.events.cloud.build.v1.Data.BuildStep) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+       * The name of the container image that will run this particular
+       * build step.
+       * If the image is available in the host's Docker daemon's cache, it
+       * will be run directly. If not, the host will attempt to pull the image
+       * first, using the builder service account's credentials if necessary.
+       * The Docker daemon's cache will already have the latest versions of all of
+       * the officially supported build steps
+       * ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)).
+       * The Docker daemon will also have cached many of the layers for some popular
+       * images, like "ubuntu", "debian", but they will be refreshed at the time you
+       * attempt to use them.
+       * If you built an image in a previous build step, it will be stored in the
+       * host's Docker daemon's cache and is available to use as the name for a
+       * later build step.
+       * 
+ * + * 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 name of the container image that will run this particular
+       * build step.
+       * If the image is available in the host's Docker daemon's cache, it
+       * will be run directly. If not, the host will attempt to pull the image
+       * first, using the builder service account's credentials if necessary.
+       * The Docker daemon's cache will already have the latest versions of all of
+       * the officially supported build steps
+       * ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)).
+       * The Docker daemon will also have cached many of the layers for some popular
+       * images, like "ubuntu", "debian", but they will be refreshed at the time you
+       * attempt to use them.
+       * If you built an image in a previous build step, it will be stored in the
+       * host's Docker daemon's cache and is available to use as the name for a
+       * later build step.
+       * 
+ * + * 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 name of the container image that will run this particular
+       * build step.
+       * If the image is available in the host's Docker daemon's cache, it
+       * will be run directly. If not, the host will attempt to pull the image
+       * first, using the builder service account's credentials if necessary.
+       * The Docker daemon's cache will already have the latest versions of all of
+       * the officially supported build steps
+       * ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)).
+       * The Docker daemon will also have cached many of the layers for some popular
+       * images, like "ubuntu", "debian", but they will be refreshed at the time you
+       * attempt to use them.
+       * If you built an image in a previous build step, it will be stored in the
+       * host's Docker daemon's cache and is available to use as the name for a
+       * later build step.
+       * 
+ * + * 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 name of the container image that will run this particular
+       * build step.
+       * If the image is available in the host's Docker daemon's cache, it
+       * will be run directly. If not, the host will attempt to pull the image
+       * first, using the builder service account's credentials if necessary.
+       * The Docker daemon's cache will already have the latest versions of all of
+       * the officially supported build steps
+       * ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)).
+       * The Docker daemon will also have cached many of the layers for some popular
+       * images, like "ubuntu", "debian", but they will be refreshed at the time you
+       * attempt to use them.
+       * If you built an image in a previous build step, it will be stored in the
+       * host's Docker daemon's cache and is available to use as the name for a
+       * later build step.
+       * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * The name of the container image that will run this particular
+       * build step.
+       * If the image is available in the host's Docker daemon's cache, it
+       * will be run directly. If not, the host will attempt to pull the image
+       * first, using the builder service account's credentials if necessary.
+       * The Docker daemon's cache will already have the latest versions of all of
+       * the officially supported build steps
+       * ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)).
+       * The Docker daemon will also have cached many of the layers for some popular
+       * images, like "ubuntu", "debian", but they will be refreshed at the time you
+       * attempt to use them.
+       * If you built an image in a previous build step, it will be stored in the
+       * host's Docker daemon's cache and is available to use as the name for a
+       * later build step.
+       * 
+ * + * 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.LazyStringList env_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureEnvIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + env_ = new com.google.protobuf.LazyStringArrayList(env_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * A list of environment variable definitions to be used when running a step.
+       * The elements are of the form "KEY=VALUE" for the environment variable "KEY"
+       * being given the value "VALUE".
+       * 
+ * + * repeated string env = 2; + * @return A list containing the env. + */ + public com.google.protobuf.ProtocolStringList + getEnvList() { + return env_.getUnmodifiableView(); + } + /** + *
+       * A list of environment variable definitions to be used when running a step.
+       * The elements are of the form "KEY=VALUE" for the environment variable "KEY"
+       * being given the value "VALUE".
+       * 
+ * + * repeated string env = 2; + * @return The count of env. + */ + public int getEnvCount() { + return env_.size(); + } + /** + *
+       * A list of environment variable definitions to be used when running a step.
+       * The elements are of the form "KEY=VALUE" for the environment variable "KEY"
+       * being given the value "VALUE".
+       * 
+ * + * repeated string env = 2; + * @param index The index of the element to return. + * @return The env at the given index. + */ + public java.lang.String getEnv(int index) { + return env_.get(index); + } + /** + *
+       * A list of environment variable definitions to be used when running a step.
+       * The elements are of the form "KEY=VALUE" for the environment variable "KEY"
+       * being given the value "VALUE".
+       * 
+ * + * repeated string env = 2; + * @param index The index of the value to return. + * @return The bytes of the env at the given index. + */ + public com.google.protobuf.ByteString + getEnvBytes(int index) { + return env_.getByteString(index); + } + /** + *
+       * A list of environment variable definitions to be used when running a step.
+       * The elements are of the form "KEY=VALUE" for the environment variable "KEY"
+       * being given the value "VALUE".
+       * 
+ * + * repeated string env = 2; + * @param index The index to set the value at. + * @param value The env to set. + * @return This builder for chaining. + */ + public Builder setEnv( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvIsMutable(); + env_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * A list of environment variable definitions to be used when running a step.
+       * The elements are of the form "KEY=VALUE" for the environment variable "KEY"
+       * being given the value "VALUE".
+       * 
+ * + * repeated string env = 2; + * @param value The env to add. + * @return This builder for chaining. + */ + public Builder addEnv( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvIsMutable(); + env_.add(value); + onChanged(); + return this; + } + /** + *
+       * A list of environment variable definitions to be used when running a step.
+       * The elements are of the form "KEY=VALUE" for the environment variable "KEY"
+       * being given the value "VALUE".
+       * 
+ * + * repeated string env = 2; + * @param values The env to add. + * @return This builder for chaining. + */ + public Builder addAllEnv( + java.lang.Iterable values) { + ensureEnvIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, env_); + onChanged(); + return this; + } + /** + *
+       * A list of environment variable definitions to be used when running a step.
+       * The elements are of the form "KEY=VALUE" for the environment variable "KEY"
+       * being given the value "VALUE".
+       * 
+ * + * repeated string env = 2; + * @return This builder for chaining. + */ + public Builder clearEnv() { + env_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * A list of environment variable definitions to be used when running a step.
+       * The elements are of the form "KEY=VALUE" for the environment variable "KEY"
+       * being given the value "VALUE".
+       * 
+ * + * repeated string env = 2; + * @param value The bytes of the env to add. + * @return This builder for chaining. + */ + public Builder addEnvBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureEnvIsMutable(); + env_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureArgsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + args_ = new com.google.protobuf.LazyStringArrayList(args_); + bitField0_ |= 0x00000002; + } + } + /** + *
+       * A list of arguments that will be presented to the step when it is started.
+       * If the image used to run the step's container has an entrypoint, the `args`
+       * are used as arguments to that entrypoint. If the image does not define
+       * an entrypoint, the first element in args is used as the entrypoint,
+       * and the remainder will be used as arguments.
+       * 
+ * + * repeated string args = 3; + * @return A list containing the args. + */ + public com.google.protobuf.ProtocolStringList + getArgsList() { + return args_.getUnmodifiableView(); + } + /** + *
+       * A list of arguments that will be presented to the step when it is started.
+       * If the image used to run the step's container has an entrypoint, the `args`
+       * are used as arguments to that entrypoint. If the image does not define
+       * an entrypoint, the first element in args is used as the entrypoint,
+       * and the remainder will be used as arguments.
+       * 
+ * + * repeated string args = 3; + * @return The count of args. + */ + public int getArgsCount() { + return args_.size(); + } + /** + *
+       * A list of arguments that will be presented to the step when it is started.
+       * If the image used to run the step's container has an entrypoint, the `args`
+       * are used as arguments to that entrypoint. If the image does not define
+       * an entrypoint, the first element in args is used as the entrypoint,
+       * and the remainder will be used as arguments.
+       * 
+ * + * repeated string args = 3; + * @param index The index of the element to return. + * @return The args at the given index. + */ + public java.lang.String getArgs(int index) { + return args_.get(index); + } + /** + *
+       * A list of arguments that will be presented to the step when it is started.
+       * If the image used to run the step's container has an entrypoint, the `args`
+       * are used as arguments to that entrypoint. If the image does not define
+       * an entrypoint, the first element in args is used as the entrypoint,
+       * and the remainder will be used as arguments.
+       * 
+ * + * repeated string args = 3; + * @param index The index of the value to return. + * @return The bytes of the args at the given index. + */ + public com.google.protobuf.ByteString + getArgsBytes(int index) { + return args_.getByteString(index); + } + /** + *
+       * A list of arguments that will be presented to the step when it is started.
+       * If the image used to run the step's container has an entrypoint, the `args`
+       * are used as arguments to that entrypoint. If the image does not define
+       * an entrypoint, the first element in args is used as the entrypoint,
+       * and the remainder will be used as arguments.
+       * 
+ * + * repeated string args = 3; + * @param index The index to set the value at. + * @param value The args to set. + * @return This builder for chaining. + */ + public Builder setArgs( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureArgsIsMutable(); + args_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * A list of arguments that will be presented to the step when it is started.
+       * If the image used to run the step's container has an entrypoint, the `args`
+       * are used as arguments to that entrypoint. If the image does not define
+       * an entrypoint, the first element in args is used as the entrypoint,
+       * and the remainder will be used as arguments.
+       * 
+ * + * repeated string args = 3; + * @param value The args to add. + * @return This builder for chaining. + */ + public Builder addArgs( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureArgsIsMutable(); + args_.add(value); + onChanged(); + return this; + } + /** + *
+       * A list of arguments that will be presented to the step when it is started.
+       * If the image used to run the step's container has an entrypoint, the `args`
+       * are used as arguments to that entrypoint. If the image does not define
+       * an entrypoint, the first element in args is used as the entrypoint,
+       * and the remainder will be used as arguments.
+       * 
+ * + * repeated string args = 3; + * @param values The args to add. + * @return This builder for chaining. + */ + public Builder addAllArgs( + java.lang.Iterable values) { + ensureArgsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, args_); + onChanged(); + return this; + } + /** + *
+       * A list of arguments that will be presented to the step when it is started.
+       * If the image used to run the step's container has an entrypoint, the `args`
+       * are used as arguments to that entrypoint. If the image does not define
+       * an entrypoint, the first element in args is used as the entrypoint,
+       * and the remainder will be used as arguments.
+       * 
+ * + * repeated string args = 3; + * @return This builder for chaining. + */ + public Builder clearArgs() { + args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * A list of arguments that will be presented to the step when it is started.
+       * If the image used to run the step's container has an entrypoint, the `args`
+       * are used as arguments to that entrypoint. If the image does not define
+       * an entrypoint, the first element in args is used as the entrypoint,
+       * and the remainder will be used as arguments.
+       * 
+ * + * repeated string args = 3; + * @param value The bytes of the args to add. + * @return This builder for chaining. + */ + public Builder addArgsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureArgsIsMutable(); + args_.add(value); + onChanged(); + return this; + } + + private java.lang.Object dir_ = ""; + /** + *
+       * Working directory to use when running this step's container.
+       * If this value is a relative path, it is relative to the build's working
+       * directory. If this value is absolute, it may be outside the build's working
+       * directory, in which case the contents of the path may not be persisted
+       * across build step executions, unless a `volume` for that path is specified.
+       * If the build specifies a `RepoSource` with `dir` and a step with a `dir`,
+       * which specifies an absolute path, the `RepoSource` `dir` is ignored for
+       * the step's execution.
+       * 
+ * + * string dir = 4; + * @return The dir. + */ + public java.lang.String getDir() { + java.lang.Object ref = dir_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dir_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Working directory to use when running this step's container.
+       * If this value is a relative path, it is relative to the build's working
+       * directory. If this value is absolute, it may be outside the build's working
+       * directory, in which case the contents of the path may not be persisted
+       * across build step executions, unless a `volume` for that path is specified.
+       * If the build specifies a `RepoSource` with `dir` and a step with a `dir`,
+       * which specifies an absolute path, the `RepoSource` `dir` is ignored for
+       * the step's execution.
+       * 
+ * + * string dir = 4; + * @return The bytes for dir. + */ + public com.google.protobuf.ByteString + getDirBytes() { + java.lang.Object ref = dir_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + dir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Working directory to use when running this step's container.
+       * If this value is a relative path, it is relative to the build's working
+       * directory. If this value is absolute, it may be outside the build's working
+       * directory, in which case the contents of the path may not be persisted
+       * across build step executions, unless a `volume` for that path is specified.
+       * If the build specifies a `RepoSource` with `dir` and a step with a `dir`,
+       * which specifies an absolute path, the `RepoSource` `dir` is ignored for
+       * the step's execution.
+       * 
+ * + * string dir = 4; + * @param value The dir to set. + * @return This builder for chaining. + */ + public Builder setDir( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + dir_ = value; + onChanged(); + return this; + } + /** + *
+       * Working directory to use when running this step's container.
+       * If this value is a relative path, it is relative to the build's working
+       * directory. If this value is absolute, it may be outside the build's working
+       * directory, in which case the contents of the path may not be persisted
+       * across build step executions, unless a `volume` for that path is specified.
+       * If the build specifies a `RepoSource` with `dir` and a step with a `dir`,
+       * which specifies an absolute path, the `RepoSource` `dir` is ignored for
+       * the step's execution.
+       * 
+ * + * string dir = 4; + * @return This builder for chaining. + */ + public Builder clearDir() { + + dir_ = getDefaultInstance().getDir(); + onChanged(); + return this; + } + /** + *
+       * Working directory to use when running this step's container.
+       * If this value is a relative path, it is relative to the build's working
+       * directory. If this value is absolute, it may be outside the build's working
+       * directory, in which case the contents of the path may not be persisted
+       * across build step executions, unless a `volume` for that path is specified.
+       * If the build specifies a `RepoSource` with `dir` and a step with a `dir`,
+       * which specifies an absolute path, the `RepoSource` `dir` is ignored for
+       * the step's execution.
+       * 
+ * + * string dir = 4; + * @param value The bytes for dir to set. + * @return This builder for chaining. + */ + public Builder setDirBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + dir_ = value; + onChanged(); + return this; + } + + private java.lang.Object id_ = ""; + /** + *
+       * Unique identifier for this build step, used in `wait_for` to
+       * reference this build step as a dependency.
+       * 
+ * + * string id = 5; + * @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; + } + } + /** + *
+       * Unique identifier for this build step, used in `wait_for` to
+       * reference this build step as a dependency.
+       * 
+ * + * string id = 5; + * @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; + } + } + /** + *
+       * Unique identifier for this build step, used in `wait_for` to
+       * reference this build step as a dependency.
+       * 
+ * + * string id = 5; + * @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; + } + /** + *
+       * Unique identifier for this build step, used in `wait_for` to
+       * reference this build step as a dependency.
+       * 
+ * + * string id = 5; + * @return This builder for chaining. + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + *
+       * Unique identifier for this build step, used in `wait_for` to
+       * reference this build step as a dependency.
+       * 
+ * + * string id = 5; + * @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 com.google.protobuf.LazyStringList waitFor_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureWaitForIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + waitFor_ = new com.google.protobuf.LazyStringArrayList(waitFor_); + bitField0_ |= 0x00000004; + } + } + /** + *
+       * The ID(s) of the step(s) that this build step depends on.
+       * This build step will not start until all the build steps in `wait_for`
+       * have completed successfully. If `wait_for` is empty, this build step will
+       * start when all previous build steps in the `Build.Steps` list have
+       * completed successfully.
+       * 
+ * + * repeated string wait_for = 6; + * @return A list containing the waitFor. + */ + public com.google.protobuf.ProtocolStringList + getWaitForList() { + return waitFor_.getUnmodifiableView(); + } + /** + *
+       * The ID(s) of the step(s) that this build step depends on.
+       * This build step will not start until all the build steps in `wait_for`
+       * have completed successfully. If `wait_for` is empty, this build step will
+       * start when all previous build steps in the `Build.Steps` list have
+       * completed successfully.
+       * 
+ * + * repeated string wait_for = 6; + * @return The count of waitFor. + */ + public int getWaitForCount() { + return waitFor_.size(); + } + /** + *
+       * The ID(s) of the step(s) that this build step depends on.
+       * This build step will not start until all the build steps in `wait_for`
+       * have completed successfully. If `wait_for` is empty, this build step will
+       * start when all previous build steps in the `Build.Steps` list have
+       * completed successfully.
+       * 
+ * + * repeated string wait_for = 6; + * @param index The index of the element to return. + * @return The waitFor at the given index. + */ + public java.lang.String getWaitFor(int index) { + return waitFor_.get(index); + } + /** + *
+       * The ID(s) of the step(s) that this build step depends on.
+       * This build step will not start until all the build steps in `wait_for`
+       * have completed successfully. If `wait_for` is empty, this build step will
+       * start when all previous build steps in the `Build.Steps` list have
+       * completed successfully.
+       * 
+ * + * repeated string wait_for = 6; + * @param index The index of the value to return. + * @return The bytes of the waitFor at the given index. + */ + public com.google.protobuf.ByteString + getWaitForBytes(int index) { + return waitFor_.getByteString(index); + } + /** + *
+       * The ID(s) of the step(s) that this build step depends on.
+       * This build step will not start until all the build steps in `wait_for`
+       * have completed successfully. If `wait_for` is empty, this build step will
+       * start when all previous build steps in the `Build.Steps` list have
+       * completed successfully.
+       * 
+ * + * repeated string wait_for = 6; + * @param index The index to set the value at. + * @param value The waitFor to set. + * @return This builder for chaining. + */ + public Builder setWaitFor( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureWaitForIsMutable(); + waitFor_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * The ID(s) of the step(s) that this build step depends on.
+       * This build step will not start until all the build steps in `wait_for`
+       * have completed successfully. If `wait_for` is empty, this build step will
+       * start when all previous build steps in the `Build.Steps` list have
+       * completed successfully.
+       * 
+ * + * repeated string wait_for = 6; + * @param value The waitFor to add. + * @return This builder for chaining. + */ + public Builder addWaitFor( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureWaitForIsMutable(); + waitFor_.add(value); + onChanged(); + return this; + } + /** + *
+       * The ID(s) of the step(s) that this build step depends on.
+       * This build step will not start until all the build steps in `wait_for`
+       * have completed successfully. If `wait_for` is empty, this build step will
+       * start when all previous build steps in the `Build.Steps` list have
+       * completed successfully.
+       * 
+ * + * repeated string wait_for = 6; + * @param values The waitFor to add. + * @return This builder for chaining. + */ + public Builder addAllWaitFor( + java.lang.Iterable values) { + ensureWaitForIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, waitFor_); + onChanged(); + return this; + } + /** + *
+       * The ID(s) of the step(s) that this build step depends on.
+       * This build step will not start until all the build steps in `wait_for`
+       * have completed successfully. If `wait_for` is empty, this build step will
+       * start when all previous build steps in the `Build.Steps` list have
+       * completed successfully.
+       * 
+ * + * repeated string wait_for = 6; + * @return This builder for chaining. + */ + public Builder clearWaitFor() { + waitFor_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * The ID(s) of the step(s) that this build step depends on.
+       * This build step will not start until all the build steps in `wait_for`
+       * have completed successfully. If `wait_for` is empty, this build step will
+       * start when all previous build steps in the `Build.Steps` list have
+       * completed successfully.
+       * 
+ * + * repeated string wait_for = 6; + * @param value The bytes of the waitFor to add. + * @return This builder for chaining. + */ + public Builder addWaitForBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureWaitForIsMutable(); + waitFor_.add(value); + onChanged(); + return this; + } + + private java.lang.Object entrypoint_ = ""; + /** + *
+       * Entrypoint to be used instead of the build step image's default entrypoint.
+       * If unset, the image's default entrypoint is used.
+       * 
+ * + * string entrypoint = 7; + * @return The entrypoint. + */ + public java.lang.String getEntrypoint() { + java.lang.Object ref = entrypoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entrypoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Entrypoint to be used instead of the build step image's default entrypoint.
+       * If unset, the image's default entrypoint is used.
+       * 
+ * + * string entrypoint = 7; + * @return The bytes for entrypoint. + */ + public com.google.protobuf.ByteString + getEntrypointBytes() { + java.lang.Object ref = entrypoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + entrypoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Entrypoint to be used instead of the build step image's default entrypoint.
+       * If unset, the image's default entrypoint is used.
+       * 
+ * + * string entrypoint = 7; + * @param value The entrypoint to set. + * @return This builder for chaining. + */ + public Builder setEntrypoint( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + entrypoint_ = value; + onChanged(); + return this; + } + /** + *
+       * Entrypoint to be used instead of the build step image's default entrypoint.
+       * If unset, the image's default entrypoint is used.
+       * 
+ * + * string entrypoint = 7; + * @return This builder for chaining. + */ + public Builder clearEntrypoint() { + + entrypoint_ = getDefaultInstance().getEntrypoint(); + onChanged(); + return this; + } + /** + *
+       * Entrypoint to be used instead of the build step image's default entrypoint.
+       * If unset, the image's default entrypoint is used.
+       * 
+ * + * string entrypoint = 7; + * @param value The bytes for entrypoint to set. + * @return This builder for chaining. + */ + public Builder setEntrypointBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + entrypoint_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList secretEnv_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureSecretEnvIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + secretEnv_ = new com.google.protobuf.LazyStringArrayList(secretEnv_); + bitField0_ |= 0x00000008; + } + } + /** + *
+       * A list of environment variables which are encrypted using a Cloud Key
+       * Management Service crypto key. These values must be specified in the
+       * build's `Secret`.
+       * 
+ * + * repeated string secret_env = 8; + * @return A list containing the secretEnv. + */ + public com.google.protobuf.ProtocolStringList + getSecretEnvList() { + return secretEnv_.getUnmodifiableView(); + } + /** + *
+       * A list of environment variables which are encrypted using a Cloud Key
+       * Management Service crypto key. These values must be specified in the
+       * build's `Secret`.
+       * 
+ * + * repeated string secret_env = 8; + * @return The count of secretEnv. + */ + public int getSecretEnvCount() { + return secretEnv_.size(); + } + /** + *
+       * A list of environment variables which are encrypted using a Cloud Key
+       * Management Service crypto key. These values must be specified in the
+       * build's `Secret`.
+       * 
+ * + * repeated string secret_env = 8; + * @param index The index of the element to return. + * @return The secretEnv at the given index. + */ + public java.lang.String getSecretEnv(int index) { + return secretEnv_.get(index); + } + /** + *
+       * A list of environment variables which are encrypted using a Cloud Key
+       * Management Service crypto key. These values must be specified in the
+       * build's `Secret`.
+       * 
+ * + * repeated string secret_env = 8; + * @param index The index of the value to return. + * @return The bytes of the secretEnv at the given index. + */ + public com.google.protobuf.ByteString + getSecretEnvBytes(int index) { + return secretEnv_.getByteString(index); + } + /** + *
+       * A list of environment variables which are encrypted using a Cloud Key
+       * Management Service crypto key. These values must be specified in the
+       * build's `Secret`.
+       * 
+ * + * repeated string secret_env = 8; + * @param index The index to set the value at. + * @param value The secretEnv to set. + * @return This builder for chaining. + */ + public Builder setSecretEnv( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecretEnvIsMutable(); + secretEnv_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * A list of environment variables which are encrypted using a Cloud Key
+       * Management Service crypto key. These values must be specified in the
+       * build's `Secret`.
+       * 
+ * + * repeated string secret_env = 8; + * @param value The secretEnv to add. + * @return This builder for chaining. + */ + public Builder addSecretEnv( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecretEnvIsMutable(); + secretEnv_.add(value); + onChanged(); + return this; + } + /** + *
+       * A list of environment variables which are encrypted using a Cloud Key
+       * Management Service crypto key. These values must be specified in the
+       * build's `Secret`.
+       * 
+ * + * repeated string secret_env = 8; + * @param values The secretEnv to add. + * @return This builder for chaining. + */ + public Builder addAllSecretEnv( + java.lang.Iterable values) { + ensureSecretEnvIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, secretEnv_); + onChanged(); + return this; + } + /** + *
+       * A list of environment variables which are encrypted using a Cloud Key
+       * Management Service crypto key. These values must be specified in the
+       * build's `Secret`.
+       * 
+ * + * repeated string secret_env = 8; + * @return This builder for chaining. + */ + public Builder clearSecretEnv() { + secretEnv_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+       * A list of environment variables which are encrypted using a Cloud Key
+       * Management Service crypto key. These values must be specified in the
+       * build's `Secret`.
+       * 
+ * + * repeated string secret_env = 8; + * @param value The bytes of the secretEnv to add. + * @return This builder for chaining. + */ + public Builder addSecretEnvBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSecretEnvIsMutable(); + secretEnv_.add(value); + onChanged(); + return this; + } + + private java.util.List volumes_ = + java.util.Collections.emptyList(); + private void ensureVolumesIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + volumes_ = new java.util.ArrayList(volumes_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + google.events.cloud.build.v1.Data.Volume, google.events.cloud.build.v1.Data.Volume.Builder, google.events.cloud.build.v1.Data.VolumeOrBuilder> volumesBuilder_; + + /** + *
+       * List of volumes to mount into the build step.
+       * Each volume is created as an empty volume prior to execution of the
+       * build step. Upon completion of the build, volumes and their contents are
+       * discarded.
+       * Using a named volume in only one step is not valid as it is indicative
+       * of a build request with an incorrect configuration.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 9; + */ + public java.util.List getVolumesList() { + if (volumesBuilder_ == null) { + return java.util.Collections.unmodifiableList(volumes_); + } else { + return volumesBuilder_.getMessageList(); + } + } + /** + *
+       * List of volumes to mount into the build step.
+       * Each volume is created as an empty volume prior to execution of the
+       * build step. Upon completion of the build, volumes and their contents are
+       * discarded.
+       * Using a named volume in only one step is not valid as it is indicative
+       * of a build request with an incorrect configuration.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 9; + */ + public int getVolumesCount() { + if (volumesBuilder_ == null) { + return volumes_.size(); + } else { + return volumesBuilder_.getCount(); + } + } + /** + *
+       * List of volumes to mount into the build step.
+       * Each volume is created as an empty volume prior to execution of the
+       * build step. Upon completion of the build, volumes and their contents are
+       * discarded.
+       * Using a named volume in only one step is not valid as it is indicative
+       * of a build request with an incorrect configuration.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 9; + */ + public google.events.cloud.build.v1.Data.Volume getVolumes(int index) { + if (volumesBuilder_ == null) { + return volumes_.get(index); + } else { + return volumesBuilder_.getMessage(index); + } + } + /** + *
+       * List of volumes to mount into the build step.
+       * Each volume is created as an empty volume prior to execution of the
+       * build step. Upon completion of the build, volumes and their contents are
+       * discarded.
+       * Using a named volume in only one step is not valid as it is indicative
+       * of a build request with an incorrect configuration.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 9; + */ + public Builder setVolumes( + int index, google.events.cloud.build.v1.Data.Volume value) { + if (volumesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVolumesIsMutable(); + volumes_.set(index, value); + onChanged(); + } else { + volumesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * List of volumes to mount into the build step.
+       * Each volume is created as an empty volume prior to execution of the
+       * build step. Upon completion of the build, volumes and their contents are
+       * discarded.
+       * Using a named volume in only one step is not valid as it is indicative
+       * of a build request with an incorrect configuration.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 9; + */ + public Builder setVolumes( + int index, google.events.cloud.build.v1.Data.Volume.Builder builderForValue) { + if (volumesBuilder_ == null) { + ensureVolumesIsMutable(); + volumes_.set(index, builderForValue.build()); + onChanged(); + } else { + volumesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * List of volumes to mount into the build step.
+       * Each volume is created as an empty volume prior to execution of the
+       * build step. Upon completion of the build, volumes and their contents are
+       * discarded.
+       * Using a named volume in only one step is not valid as it is indicative
+       * of a build request with an incorrect configuration.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 9; + */ + public Builder addVolumes(google.events.cloud.build.v1.Data.Volume value) { + if (volumesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVolumesIsMutable(); + volumes_.add(value); + onChanged(); + } else { + volumesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * List of volumes to mount into the build step.
+       * Each volume is created as an empty volume prior to execution of the
+       * build step. Upon completion of the build, volumes and their contents are
+       * discarded.
+       * Using a named volume in only one step is not valid as it is indicative
+       * of a build request with an incorrect configuration.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 9; + */ + public Builder addVolumes( + int index, google.events.cloud.build.v1.Data.Volume value) { + if (volumesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVolumesIsMutable(); + volumes_.add(index, value); + onChanged(); + } else { + volumesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * List of volumes to mount into the build step.
+       * Each volume is created as an empty volume prior to execution of the
+       * build step. Upon completion of the build, volumes and their contents are
+       * discarded.
+       * Using a named volume in only one step is not valid as it is indicative
+       * of a build request with an incorrect configuration.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 9; + */ + public Builder addVolumes( + google.events.cloud.build.v1.Data.Volume.Builder builderForValue) { + if (volumesBuilder_ == null) { + ensureVolumesIsMutable(); + volumes_.add(builderForValue.build()); + onChanged(); + } else { + volumesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * List of volumes to mount into the build step.
+       * Each volume is created as an empty volume prior to execution of the
+       * build step. Upon completion of the build, volumes and their contents are
+       * discarded.
+       * Using a named volume in only one step is not valid as it is indicative
+       * of a build request with an incorrect configuration.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 9; + */ + public Builder addVolumes( + int index, google.events.cloud.build.v1.Data.Volume.Builder builderForValue) { + if (volumesBuilder_ == null) { + ensureVolumesIsMutable(); + volumes_.add(index, builderForValue.build()); + onChanged(); + } else { + volumesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * List of volumes to mount into the build step.
+       * Each volume is created as an empty volume prior to execution of the
+       * build step. Upon completion of the build, volumes and their contents are
+       * discarded.
+       * Using a named volume in only one step is not valid as it is indicative
+       * of a build request with an incorrect configuration.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 9; + */ + public Builder addAllVolumes( + java.lang.Iterable values) { + if (volumesBuilder_ == null) { + ensureVolumesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, volumes_); + onChanged(); + } else { + volumesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * List of volumes to mount into the build step.
+       * Each volume is created as an empty volume prior to execution of the
+       * build step. Upon completion of the build, volumes and their contents are
+       * discarded.
+       * Using a named volume in only one step is not valid as it is indicative
+       * of a build request with an incorrect configuration.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 9; + */ + public Builder clearVolumes() { + if (volumesBuilder_ == null) { + volumes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + volumesBuilder_.clear(); + } + return this; + } + /** + *
+       * List of volumes to mount into the build step.
+       * Each volume is created as an empty volume prior to execution of the
+       * build step. Upon completion of the build, volumes and their contents are
+       * discarded.
+       * Using a named volume in only one step is not valid as it is indicative
+       * of a build request with an incorrect configuration.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 9; + */ + public Builder removeVolumes(int index) { + if (volumesBuilder_ == null) { + ensureVolumesIsMutable(); + volumes_.remove(index); + onChanged(); + } else { + volumesBuilder_.remove(index); + } + return this; + } + /** + *
+       * List of volumes to mount into the build step.
+       * Each volume is created as an empty volume prior to execution of the
+       * build step. Upon completion of the build, volumes and their contents are
+       * discarded.
+       * Using a named volume in only one step is not valid as it is indicative
+       * of a build request with an incorrect configuration.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 9; + */ + public google.events.cloud.build.v1.Data.Volume.Builder getVolumesBuilder( + int index) { + return getVolumesFieldBuilder().getBuilder(index); + } + /** + *
+       * List of volumes to mount into the build step.
+       * Each volume is created as an empty volume prior to execution of the
+       * build step. Upon completion of the build, volumes and their contents are
+       * discarded.
+       * Using a named volume in only one step is not valid as it is indicative
+       * of a build request with an incorrect configuration.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 9; + */ + public google.events.cloud.build.v1.Data.VolumeOrBuilder getVolumesOrBuilder( + int index) { + if (volumesBuilder_ == null) { + return volumes_.get(index); } else { + return volumesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * List of volumes to mount into the build step.
+       * Each volume is created as an empty volume prior to execution of the
+       * build step. Upon completion of the build, volumes and their contents are
+       * discarded.
+       * Using a named volume in only one step is not valid as it is indicative
+       * of a build request with an incorrect configuration.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 9; + */ + public java.util.List + getVolumesOrBuilderList() { + if (volumesBuilder_ != null) { + return volumesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(volumes_); + } + } + /** + *
+       * List of volumes to mount into the build step.
+       * Each volume is created as an empty volume prior to execution of the
+       * build step. Upon completion of the build, volumes and their contents are
+       * discarded.
+       * Using a named volume in only one step is not valid as it is indicative
+       * of a build request with an incorrect configuration.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 9; + */ + public google.events.cloud.build.v1.Data.Volume.Builder addVolumesBuilder() { + return getVolumesFieldBuilder().addBuilder( + google.events.cloud.build.v1.Data.Volume.getDefaultInstance()); + } + /** + *
+       * List of volumes to mount into the build step.
+       * Each volume is created as an empty volume prior to execution of the
+       * build step. Upon completion of the build, volumes and their contents are
+       * discarded.
+       * Using a named volume in only one step is not valid as it is indicative
+       * of a build request with an incorrect configuration.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 9; + */ + public google.events.cloud.build.v1.Data.Volume.Builder addVolumesBuilder( + int index) { + return getVolumesFieldBuilder().addBuilder( + index, google.events.cloud.build.v1.Data.Volume.getDefaultInstance()); + } + /** + *
+       * List of volumes to mount into the build step.
+       * Each volume is created as an empty volume prior to execution of the
+       * build step. Upon completion of the build, volumes and their contents are
+       * discarded.
+       * Using a named volume in only one step is not valid as it is indicative
+       * of a build request with an incorrect configuration.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 9; + */ + public java.util.List + getVolumesBuilderList() { + return getVolumesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + google.events.cloud.build.v1.Data.Volume, google.events.cloud.build.v1.Data.Volume.Builder, google.events.cloud.build.v1.Data.VolumeOrBuilder> + getVolumesFieldBuilder() { + if (volumesBuilder_ == null) { + volumesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + google.events.cloud.build.v1.Data.Volume, google.events.cloud.build.v1.Data.Volume.Builder, google.events.cloud.build.v1.Data.VolumeOrBuilder>( + volumes_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + volumes_ = null; + } + return volumesBuilder_; + } + + private google.events.cloud.build.v1.Data.TimeSpan timing_; + private com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.TimeSpan, google.events.cloud.build.v1.Data.TimeSpan.Builder, google.events.cloud.build.v1.Data.TimeSpanOrBuilder> timingBuilder_; + /** + *
+       * Stores timing information for executing this build step.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan timing = 10; + * @return Whether the timing field is set. + */ + public boolean hasTiming() { + return timingBuilder_ != null || timing_ != null; + } + /** + *
+       * Stores timing information for executing this build step.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan timing = 10; + * @return The timing. + */ + public google.events.cloud.build.v1.Data.TimeSpan getTiming() { + if (timingBuilder_ == null) { + return timing_ == null ? google.events.cloud.build.v1.Data.TimeSpan.getDefaultInstance() : timing_; + } else { + return timingBuilder_.getMessage(); + } + } + /** + *
+       * Stores timing information for executing this build step.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan timing = 10; + */ + public Builder setTiming(google.events.cloud.build.v1.Data.TimeSpan value) { + if (timingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timing_ = value; + onChanged(); + } else { + timingBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Stores timing information for executing this build step.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan timing = 10; + */ + public Builder setTiming( + google.events.cloud.build.v1.Data.TimeSpan.Builder builderForValue) { + if (timingBuilder_ == null) { + timing_ = builderForValue.build(); + onChanged(); + } else { + timingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Stores timing information for executing this build step.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan timing = 10; + */ + public Builder mergeTiming(google.events.cloud.build.v1.Data.TimeSpan value) { + if (timingBuilder_ == null) { + if (timing_ != null) { + timing_ = + google.events.cloud.build.v1.Data.TimeSpan.newBuilder(timing_).mergeFrom(value).buildPartial(); + } else { + timing_ = value; + } + onChanged(); + } else { + timingBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Stores timing information for executing this build step.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan timing = 10; + */ + public Builder clearTiming() { + if (timingBuilder_ == null) { + timing_ = null; + onChanged(); + } else { + timing_ = null; + timingBuilder_ = null; + } + + return this; + } + /** + *
+       * Stores timing information for executing this build step.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan timing = 10; + */ + public google.events.cloud.build.v1.Data.TimeSpan.Builder getTimingBuilder() { + + onChanged(); + return getTimingFieldBuilder().getBuilder(); + } + /** + *
+       * Stores timing information for executing this build step.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan timing = 10; + */ + public google.events.cloud.build.v1.Data.TimeSpanOrBuilder getTimingOrBuilder() { + if (timingBuilder_ != null) { + return timingBuilder_.getMessageOrBuilder(); + } else { + return timing_ == null ? + google.events.cloud.build.v1.Data.TimeSpan.getDefaultInstance() : timing_; + } + } + /** + *
+       * Stores timing information for executing this build step.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan timing = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.TimeSpan, google.events.cloud.build.v1.Data.TimeSpan.Builder, google.events.cloud.build.v1.Data.TimeSpanOrBuilder> + getTimingFieldBuilder() { + if (timingBuilder_ == null) { + timingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.TimeSpan, google.events.cloud.build.v1.Data.TimeSpan.Builder, google.events.cloud.build.v1.Data.TimeSpanOrBuilder>( + getTiming(), + getParentForChildren(), + isClean()); + timing_ = null; + } + return timingBuilder_; + } + + private google.events.cloud.build.v1.Data.TimeSpan pullTiming_; + private com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.TimeSpan, google.events.cloud.build.v1.Data.TimeSpan.Builder, google.events.cloud.build.v1.Data.TimeSpanOrBuilder> pullTimingBuilder_; + /** + *
+       * Stores timing information for pulling this build step's
+       * builder image only.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan pull_timing = 13; + * @return Whether the pullTiming field is set. + */ + public boolean hasPullTiming() { + return pullTimingBuilder_ != null || pullTiming_ != null; + } + /** + *
+       * Stores timing information for pulling this build step's
+       * builder image only.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan pull_timing = 13; + * @return The pullTiming. + */ + public google.events.cloud.build.v1.Data.TimeSpan getPullTiming() { + if (pullTimingBuilder_ == null) { + return pullTiming_ == null ? google.events.cloud.build.v1.Data.TimeSpan.getDefaultInstance() : pullTiming_; + } else { + return pullTimingBuilder_.getMessage(); + } + } + /** + *
+       * Stores timing information for pulling this build step's
+       * builder image only.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan pull_timing = 13; + */ + public Builder setPullTiming(google.events.cloud.build.v1.Data.TimeSpan value) { + if (pullTimingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pullTiming_ = value; + onChanged(); + } else { + pullTimingBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Stores timing information for pulling this build step's
+       * builder image only.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan pull_timing = 13; + */ + public Builder setPullTiming( + google.events.cloud.build.v1.Data.TimeSpan.Builder builderForValue) { + if (pullTimingBuilder_ == null) { + pullTiming_ = builderForValue.build(); + onChanged(); + } else { + pullTimingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Stores timing information for pulling this build step's
+       * builder image only.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan pull_timing = 13; + */ + public Builder mergePullTiming(google.events.cloud.build.v1.Data.TimeSpan value) { + if (pullTimingBuilder_ == null) { + if (pullTiming_ != null) { + pullTiming_ = + google.events.cloud.build.v1.Data.TimeSpan.newBuilder(pullTiming_).mergeFrom(value).buildPartial(); + } else { + pullTiming_ = value; + } + onChanged(); + } else { + pullTimingBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Stores timing information for pulling this build step's
+       * builder image only.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan pull_timing = 13; + */ + public Builder clearPullTiming() { + if (pullTimingBuilder_ == null) { + pullTiming_ = null; + onChanged(); + } else { + pullTiming_ = null; + pullTimingBuilder_ = null; + } + + return this; + } + /** + *
+       * Stores timing information for pulling this build step's
+       * builder image only.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan pull_timing = 13; + */ + public google.events.cloud.build.v1.Data.TimeSpan.Builder getPullTimingBuilder() { + + onChanged(); + return getPullTimingFieldBuilder().getBuilder(); + } + /** + *
+       * Stores timing information for pulling this build step's
+       * builder image only.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan pull_timing = 13; + */ + public google.events.cloud.build.v1.Data.TimeSpanOrBuilder getPullTimingOrBuilder() { + if (pullTimingBuilder_ != null) { + return pullTimingBuilder_.getMessageOrBuilder(); + } else { + return pullTiming_ == null ? + google.events.cloud.build.v1.Data.TimeSpan.getDefaultInstance() : pullTiming_; + } + } + /** + *
+       * Stores timing information for pulling this build step's
+       * builder image only.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan pull_timing = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.TimeSpan, google.events.cloud.build.v1.Data.TimeSpan.Builder, google.events.cloud.build.v1.Data.TimeSpanOrBuilder> + getPullTimingFieldBuilder() { + if (pullTimingBuilder_ == null) { + pullTimingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.TimeSpan, google.events.cloud.build.v1.Data.TimeSpan.Builder, google.events.cloud.build.v1.Data.TimeSpanOrBuilder>( + getPullTiming(), + getParentForChildren(), + isClean()); + pullTiming_ = null; + } + return pullTimingBuilder_; + } + + private com.google.protobuf.Duration timeout_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeoutBuilder_; + /** + *
+       * Time limit for executing this build step. If not defined, the step has no
+       * time limit and will be allowed to continue to run until either it completes
+       * or the build itself times out.
+       * 
+ * + * .google.protobuf.Duration timeout = 11; + * @return Whether the timeout field is set. + */ + public boolean hasTimeout() { + return timeoutBuilder_ != null || timeout_ != null; + } + /** + *
+       * Time limit for executing this build step. If not defined, the step has no
+       * time limit and will be allowed to continue to run until either it completes
+       * or the build itself times out.
+       * 
+ * + * .google.protobuf.Duration timeout = 11; + * @return The timeout. + */ + public com.google.protobuf.Duration getTimeout() { + if (timeoutBuilder_ == null) { + return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } else { + return timeoutBuilder_.getMessage(); + } + } + /** + *
+       * Time limit for executing this build step. If not defined, the step has no
+       * time limit and will be allowed to continue to run until either it completes
+       * or the build itself times out.
+       * 
+ * + * .google.protobuf.Duration timeout = 11; + */ + public Builder setTimeout(com.google.protobuf.Duration value) { + if (timeoutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeout_ = value; + onChanged(); + } else { + timeoutBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Time limit for executing this build step. If not defined, the step has no
+       * time limit and will be allowed to continue to run until either it completes
+       * or the build itself times out.
+       * 
+ * + * .google.protobuf.Duration timeout = 11; + */ + public Builder setTimeout( + com.google.protobuf.Duration.Builder builderForValue) { + if (timeoutBuilder_ == null) { + timeout_ = builderForValue.build(); + onChanged(); + } else { + timeoutBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time limit for executing this build step. If not defined, the step has no
+       * time limit and will be allowed to continue to run until either it completes
+       * or the build itself times out.
+       * 
+ * + * .google.protobuf.Duration timeout = 11; + */ + public Builder mergeTimeout(com.google.protobuf.Duration value) { + if (timeoutBuilder_ == null) { + if (timeout_ != null) { + timeout_ = + com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial(); + } else { + timeout_ = value; + } + onChanged(); + } else { + timeoutBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Time limit for executing this build step. If not defined, the step has no
+       * time limit and will be allowed to continue to run until either it completes
+       * or the build itself times out.
+       * 
+ * + * .google.protobuf.Duration timeout = 11; + */ + public Builder clearTimeout() { + if (timeoutBuilder_ == null) { + timeout_ = null; + onChanged(); + } else { + timeout_ = null; + timeoutBuilder_ = null; + } + + return this; + } + /** + *
+       * Time limit for executing this build step. If not defined, the step has no
+       * time limit and will be allowed to continue to run until either it completes
+       * or the build itself times out.
+       * 
+ * + * .google.protobuf.Duration timeout = 11; + */ + public com.google.protobuf.Duration.Builder getTimeoutBuilder() { + + onChanged(); + return getTimeoutFieldBuilder().getBuilder(); + } + /** + *
+       * Time limit for executing this build step. If not defined, the step has no
+       * time limit and will be allowed to continue to run until either it completes
+       * or the build itself times out.
+       * 
+ * + * .google.protobuf.Duration timeout = 11; + */ + public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { + if (timeoutBuilder_ != null) { + return timeoutBuilder_.getMessageOrBuilder(); + } else { + return timeout_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } + } + /** + *
+       * Time limit for executing this build step. If not defined, the step has no
+       * time limit and will be allowed to continue to run until either it completes
+       * or the build itself times out.
+       * 
+ * + * .google.protobuf.Duration timeout = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getTimeoutFieldBuilder() { + if (timeoutBuilder_ == null) { + timeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getTimeout(), + getParentForChildren(), + isClean()); + timeout_ = null; + } + return timeoutBuilder_; + } + + private int status_ = 0; + /** + *
+       * Status of the build step. At this time, build step status is
+       * only updated on build completion; step status is not updated in real-time
+       * as the build progresses.
+       * 
+ * + * .google.events.cloud.build.v1.BuildEventData.Status status = 12; + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override public int getStatusValue() { + return status_; + } + /** + *
+       * Status of the build step. At this time, build step status is
+       * only updated on build completion; step status is not updated in real-time
+       * as the build progresses.
+       * 
+ * + * .google.events.cloud.build.v1.BuildEventData.Status status = 12; + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + + status_ = value; + onChanged(); + return this; + } + /** + *
+       * Status of the build step. At this time, build step status is
+       * only updated on build completion; step status is not updated in real-time
+       * as the build progresses.
+       * 
+ * + * .google.events.cloud.build.v1.BuildEventData.Status status = 12; + * @return The status. + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.BuildEventData.Status getStatus() { + @SuppressWarnings("deprecation") + google.events.cloud.build.v1.Data.BuildEventData.Status result = google.events.cloud.build.v1.Data.BuildEventData.Status.valueOf(status_); + return result == null ? google.events.cloud.build.v1.Data.BuildEventData.Status.UNRECOGNIZED : result; + } + /** + *
+       * Status of the build step. At this time, build step status is
+       * only updated on build completion; step status is not updated in real-time
+       * as the build progresses.
+       * 
+ * + * .google.events.cloud.build.v1.BuildEventData.Status status = 12; + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(google.events.cloud.build.v1.Data.BuildEventData.Status value) { + if (value == null) { + throw new NullPointerException(); + } + + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Status of the build step. At this time, build step status is
+       * only updated on build completion; step status is not updated in real-time
+       * as the build progresses.
+       * 
+ * + * .google.events.cloud.build.v1.BuildEventData.Status status = 12; + * @return This builder for chaining. + */ + public Builder clearStatus() { + + status_ = 0; + 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.build.v1.BuildStep) + } + + // @@protoc_insertion_point(class_scope:google.events.cloud.build.v1.BuildStep) + private static final google.events.cloud.build.v1.Data.BuildStep DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new google.events.cloud.build.v1.Data.BuildStep(); + } + + public static google.events.cloud.build.v1.Data.BuildStep getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BuildStep parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BuildStep(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.BuildStep getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface VolumeOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.cloud.build.v1.Volume) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Name of the volume to mount.
+     * Volume names must be unique per build step and must be valid names for
+     * Docker volumes. Each named volume must be used by at least two build steps.
+     * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+     * Name of the volume to mount.
+     * Volume names must be unique per build step and must be valid names for
+     * Docker volumes. Each named volume must be used by at least two build steps.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * Path at which to mount the volume.
+     * Paths must be absolute and cannot conflict with other volume paths on the
+     * same build step or with certain reserved volume paths.
+     * 
+ * + * string path = 2; + * @return The path. + */ + java.lang.String getPath(); + /** + *
+     * Path at which to mount the volume.
+     * Paths must be absolute and cannot conflict with other volume paths on the
+     * same build step or with certain reserved volume paths.
+     * 
+ * + * string path = 2; + * @return The bytes for path. + */ + com.google.protobuf.ByteString + getPathBytes(); + } + /** + *
+   * Volume describes a Docker container volume which is mounted into build steps
+   * in order to persist files across build step execution.
+   * 
+ * + * Protobuf type {@code google.events.cloud.build.v1.Volume} + */ + public static final class Volume extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.cloud.build.v1.Volume) + VolumeOrBuilder { + private static final long serialVersionUID = 0L; + // Use Volume.newBuilder() to construct. + private Volume(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Volume() { + name_ = ""; + path_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Volume(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Volume( + 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(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + path_ = 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.build.v1.Data.internal_static_google_events_cloud_build_v1_Volume_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_Volume_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.build.v1.Data.Volume.class, google.events.cloud.build.v1.Data.Volume.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+     * Name of the volume to mount.
+     * Volume names must be unique per build step and must be valid names for
+     * Docker volumes. Each named volume must be used by at least two build steps.
+     * 
+ * + * 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; + } + } + /** + *
+     * Name of the volume to mount.
+     * Volume names must be unique per build step and must be valid names for
+     * Docker volumes. Each named volume must be used by at least two build steps.
+     * 
+ * + * 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 PATH_FIELD_NUMBER = 2; + private volatile java.lang.Object path_; + /** + *
+     * Path at which to mount the volume.
+     * Paths must be absolute and cannot conflict with other volume paths on the
+     * same build step or with certain reserved volume paths.
+     * 
+ * + * string path = 2; + * @return The path. + */ + @java.lang.Override + public java.lang.String getPath() { + java.lang.Object ref = path_; + 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(); + path_ = s; + return s; + } + } + /** + *
+     * Path at which to mount the volume.
+     * Paths must be absolute and cannot conflict with other volume paths on the
+     * same build step or with certain reserved volume paths.
+     * 
+ * + * string path = 2; + * @return The bytes for path. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + path_ = 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getPathBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_); + } + 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_); + } + if (!getPathBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_); + } + 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.build.v1.Data.Volume)) { + return super.equals(obj); + } + google.events.cloud.build.v1.Data.Volume other = (google.events.cloud.build.v1.Data.Volume) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getPath() + .equals(other.getPath())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PATH_FIELD_NUMBER; + hash = (53 * hash) + getPath().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static google.events.cloud.build.v1.Data.Volume parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.Volume 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.build.v1.Data.Volume parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.Volume 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.build.v1.Data.Volume parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.Volume parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.cloud.build.v1.Data.Volume parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.Volume 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.build.v1.Data.Volume parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.Volume 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.build.v1.Data.Volume parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.Volume 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.build.v1.Data.Volume 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; + } + /** + *
+     * Volume describes a Docker container volume which is mounted into build steps
+     * in order to persist files across build step execution.
+     * 
+ * + * Protobuf type {@code google.events.cloud.build.v1.Volume} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.events.cloud.build.v1.Volume) + google.events.cloud.build.v1.Data.VolumeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_Volume_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_Volume_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.build.v1.Data.Volume.class, google.events.cloud.build.v1.Data.Volume.Builder.class); + } + + // Construct using google.events.cloud.build.v1.Data.Volume.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + path_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_Volume_descriptor; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.Volume getDefaultInstanceForType() { + return google.events.cloud.build.v1.Data.Volume.getDefaultInstance(); + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.Volume build() { + google.events.cloud.build.v1.Data.Volume result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.Volume buildPartial() { + google.events.cloud.build.v1.Data.Volume result = new google.events.cloud.build.v1.Data.Volume(this); + result.name_ = name_; + result.path_ = path_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.events.cloud.build.v1.Data.Volume) { + return mergeFrom((google.events.cloud.build.v1.Data.Volume)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(google.events.cloud.build.v1.Data.Volume other) { + if (other == google.events.cloud.build.v1.Data.Volume.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getPath().isEmpty()) { + path_ = other.path_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.events.cloud.build.v1.Data.Volume parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.events.cloud.build.v1.Data.Volume) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * Name of the volume to mount.
+       * Volume names must be unique per build step and must be valid names for
+       * Docker volumes. Each named volume must be used by at least two build steps.
+       * 
+ * + * 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; + } + } + /** + *
+       * Name of the volume to mount.
+       * Volume names must be unique per build step and must be valid names for
+       * Docker volumes. Each named volume must be used by at least two build steps.
+       * 
+ * + * 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; + } + } + /** + *
+       * Name of the volume to mount.
+       * Volume names must be unique per build step and must be valid names for
+       * Docker volumes. Each named volume must be used by at least two build steps.
+       * 
+ * + * 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; + } + /** + *
+       * Name of the volume to mount.
+       * Volume names must be unique per build step and must be valid names for
+       * Docker volumes. Each named volume must be used by at least two build steps.
+       * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * Name of the volume to mount.
+       * Volume names must be unique per build step and must be valid names for
+       * Docker volumes. Each named volume must be used by at least two build steps.
+       * 
+ * + * 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 java.lang.Object path_ = ""; + /** + *
+       * Path at which to mount the volume.
+       * Paths must be absolute and cannot conflict with other volume paths on the
+       * same build step or with certain reserved volume paths.
+       * 
+ * + * string path = 2; + * @return The path. + */ + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + path_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Path at which to mount the volume.
+       * Paths must be absolute and cannot conflict with other volume paths on the
+       * same build step or with certain reserved volume paths.
+       * 
+ * + * string path = 2; + * @return The bytes for path. + */ + public com.google.protobuf.ByteString + getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Path at which to mount the volume.
+       * Paths must be absolute and cannot conflict with other volume paths on the
+       * same build step or with certain reserved volume paths.
+       * 
+ * + * string path = 2; + * @param value The path to set. + * @return This builder for chaining. + */ + public Builder setPath( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + path_ = value; + onChanged(); + return this; + } + /** + *
+       * Path at which to mount the volume.
+       * Paths must be absolute and cannot conflict with other volume paths on the
+       * same build step or with certain reserved volume paths.
+       * 
+ * + * string path = 2; + * @return This builder for chaining. + */ + public Builder clearPath() { + + path_ = getDefaultInstance().getPath(); + onChanged(); + return this; + } + /** + *
+       * Path at which to mount the volume.
+       * Paths must be absolute and cannot conflict with other volume paths on the
+       * same build step or with certain reserved volume paths.
+       * 
+ * + * string path = 2; + * @param value The bytes for path to set. + * @return This builder for chaining. + */ + public Builder setPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + path_ = 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.build.v1.Volume) + } + + // @@protoc_insertion_point(class_scope:google.events.cloud.build.v1.Volume) + private static final google.events.cloud.build.v1.Data.Volume DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new google.events.cloud.build.v1.Data.Volume(); + } + + public static google.events.cloud.build.v1.Data.Volume getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Volume parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Volume(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.Volume getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ResultsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.cloud.build.v1.Results) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Container images that were built as a part of the build.
+     * 
+ * + * repeated .google.events.cloud.build.v1.BuiltImage images = 2; + */ + java.util.List + getImagesList(); + /** + *
+     * Container images that were built as a part of the build.
+     * 
+ * + * repeated .google.events.cloud.build.v1.BuiltImage images = 2; + */ + google.events.cloud.build.v1.Data.BuiltImage getImages(int index); + /** + *
+     * Container images that were built as a part of the build.
+     * 
+ * + * repeated .google.events.cloud.build.v1.BuiltImage images = 2; + */ + int getImagesCount(); + /** + *
+     * Container images that were built as a part of the build.
+     * 
+ * + * repeated .google.events.cloud.build.v1.BuiltImage images = 2; + */ + java.util.List + getImagesOrBuilderList(); + /** + *
+     * Container images that were built as a part of the build.
+     * 
+ * + * repeated .google.events.cloud.build.v1.BuiltImage images = 2; + */ + google.events.cloud.build.v1.Data.BuiltImageOrBuilder getImagesOrBuilder( + int index); + + /** + *
+     * List of build step digests, in the order corresponding to build step
+     * indices.
+     * 
+ * + * repeated string build_step_images = 3; + * @return A list containing the buildStepImages. + */ + java.util.List + getBuildStepImagesList(); + /** + *
+     * List of build step digests, in the order corresponding to build step
+     * indices.
+     * 
+ * + * repeated string build_step_images = 3; + * @return The count of buildStepImages. + */ + int getBuildStepImagesCount(); + /** + *
+     * List of build step digests, in the order corresponding to build step
+     * indices.
+     * 
+ * + * repeated string build_step_images = 3; + * @param index The index of the element to return. + * @return The buildStepImages at the given index. + */ + java.lang.String getBuildStepImages(int index); + /** + *
+     * List of build step digests, in the order corresponding to build step
+     * indices.
+     * 
+ * + * repeated string build_step_images = 3; + * @param index The index of the value to return. + * @return The bytes of the buildStepImages at the given index. + */ + com.google.protobuf.ByteString + getBuildStepImagesBytes(int index); + + /** + *
+     * Path to the artifact manifest. Only populated when artifacts are uploaded.
+     * 
+ * + * string artifact_manifest = 4; + * @return The artifactManifest. + */ + java.lang.String getArtifactManifest(); + /** + *
+     * Path to the artifact manifest. Only populated when artifacts are uploaded.
+     * 
+ * + * string artifact_manifest = 4; + * @return The bytes for artifactManifest. + */ + com.google.protobuf.ByteString + getArtifactManifestBytes(); + + /** + *
+     * Number of artifacts uploaded. Only populated when artifacts are uploaded.
+     * 
+ * + * int64 num_artifacts = 5; + * @return The numArtifacts. + */ + long getNumArtifacts(); + + /** + *
+     * List of build step outputs, produced by builder images, in the order
+     * corresponding to build step indices.
+     * [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders)
+     * can produce this output by writing to `$BUILDER_OUTPUT/output`.
+     * Only the first 4KB of data is stored.
+     * 
+ * + * repeated bytes build_step_outputs = 6; + * @return A list containing the buildStepOutputs. + */ + java.util.List getBuildStepOutputsList(); + /** + *
+     * List of build step outputs, produced by builder images, in the order
+     * corresponding to build step indices.
+     * [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders)
+     * can produce this output by writing to `$BUILDER_OUTPUT/output`.
+     * Only the first 4KB of data is stored.
+     * 
+ * + * repeated bytes build_step_outputs = 6; + * @return The count of buildStepOutputs. + */ + int getBuildStepOutputsCount(); + /** + *
+     * List of build step outputs, produced by builder images, in the order
+     * corresponding to build step indices.
+     * [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders)
+     * can produce this output by writing to `$BUILDER_OUTPUT/output`.
+     * Only the first 4KB of data is stored.
+     * 
+ * + * repeated bytes build_step_outputs = 6; + * @param index The index of the element to return. + * @return The buildStepOutputs at the given index. + */ + com.google.protobuf.ByteString getBuildStepOutputs(int index); + + /** + *
+     * Time to push all non-container artifacts.
+     * 
+ * + * .google.events.cloud.build.v1.TimeSpan artifact_timing = 7; + * @return Whether the artifactTiming field is set. + */ + boolean hasArtifactTiming(); + /** + *
+     * Time to push all non-container artifacts.
+     * 
+ * + * .google.events.cloud.build.v1.TimeSpan artifact_timing = 7; + * @return The artifactTiming. + */ + google.events.cloud.build.v1.Data.TimeSpan getArtifactTiming(); + /** + *
+     * Time to push all non-container artifacts.
+     * 
+ * + * .google.events.cloud.build.v1.TimeSpan artifact_timing = 7; + */ + google.events.cloud.build.v1.Data.TimeSpanOrBuilder getArtifactTimingOrBuilder(); + } + /** + *
+   * Artifacts created by the build pipeline.
+   * 
+ * + * Protobuf type {@code google.events.cloud.build.v1.Results} + */ + public static final class Results extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.cloud.build.v1.Results) + ResultsOrBuilder { + private static final long serialVersionUID = 0L; + // Use Results.newBuilder() to construct. + private Results(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Results() { + images_ = java.util.Collections.emptyList(); + buildStepImages_ = com.google.protobuf.LazyStringArrayList.EMPTY; + artifactManifest_ = ""; + buildStepOutputs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Results(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Results( + 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: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + images_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + images_.add( + input.readMessage(google.events.cloud.build.v1.Data.BuiltImage.parser(), extensionRegistry)); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + buildStepImages_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + buildStepImages_.add(s); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + artifactManifest_ = s; + break; + } + case 40: { + + numArtifacts_ = input.readInt64(); + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + buildStepOutputs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + buildStepOutputs_.add(input.readBytes()); + break; + } + case 58: { + google.events.cloud.build.v1.Data.TimeSpan.Builder subBuilder = null; + if (artifactTiming_ != null) { + subBuilder = artifactTiming_.toBuilder(); + } + artifactTiming_ = input.readMessage(google.events.cloud.build.v1.Data.TimeSpan.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(artifactTiming_); + artifactTiming_ = subBuilder.buildPartial(); + } + + 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)) { + images_ = java.util.Collections.unmodifiableList(images_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + buildStepImages_ = buildStepImages_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + buildStepOutputs_ = java.util.Collections.unmodifiableList(buildStepOutputs_); // C + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_Results_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_Results_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.build.v1.Data.Results.class, google.events.cloud.build.v1.Data.Results.Builder.class); + } + + public static final int IMAGES_FIELD_NUMBER = 2; + private java.util.List images_; + /** + *
+     * Container images that were built as a part of the build.
+     * 
+ * + * repeated .google.events.cloud.build.v1.BuiltImage images = 2; + */ + @java.lang.Override + public java.util.List getImagesList() { + return images_; + } + /** + *
+     * Container images that were built as a part of the build.
+     * 
+ * + * repeated .google.events.cloud.build.v1.BuiltImage images = 2; + */ + @java.lang.Override + public java.util.List + getImagesOrBuilderList() { + return images_; + } + /** + *
+     * Container images that were built as a part of the build.
+     * 
+ * + * repeated .google.events.cloud.build.v1.BuiltImage images = 2; + */ + @java.lang.Override + public int getImagesCount() { + return images_.size(); + } + /** + *
+     * Container images that were built as a part of the build.
+     * 
+ * + * repeated .google.events.cloud.build.v1.BuiltImage images = 2; + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.BuiltImage getImages(int index) { + return images_.get(index); + } + /** + *
+     * Container images that were built as a part of the build.
+     * 
+ * + * repeated .google.events.cloud.build.v1.BuiltImage images = 2; + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.BuiltImageOrBuilder getImagesOrBuilder( + int index) { + return images_.get(index); + } + + public static final int BUILD_STEP_IMAGES_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList buildStepImages_; + /** + *
+     * List of build step digests, in the order corresponding to build step
+     * indices.
+     * 
+ * + * repeated string build_step_images = 3; + * @return A list containing the buildStepImages. + */ + public com.google.protobuf.ProtocolStringList + getBuildStepImagesList() { + return buildStepImages_; + } + /** + *
+     * List of build step digests, in the order corresponding to build step
+     * indices.
+     * 
+ * + * repeated string build_step_images = 3; + * @return The count of buildStepImages. + */ + public int getBuildStepImagesCount() { + return buildStepImages_.size(); + } + /** + *
+     * List of build step digests, in the order corresponding to build step
+     * indices.
+     * 
+ * + * repeated string build_step_images = 3; + * @param index The index of the element to return. + * @return The buildStepImages at the given index. + */ + public java.lang.String getBuildStepImages(int index) { + return buildStepImages_.get(index); + } + /** + *
+     * List of build step digests, in the order corresponding to build step
+     * indices.
+     * 
+ * + * repeated string build_step_images = 3; + * @param index The index of the value to return. + * @return The bytes of the buildStepImages at the given index. + */ + public com.google.protobuf.ByteString + getBuildStepImagesBytes(int index) { + return buildStepImages_.getByteString(index); + } + + public static final int ARTIFACT_MANIFEST_FIELD_NUMBER = 4; + private volatile java.lang.Object artifactManifest_; + /** + *
+     * Path to the artifact manifest. Only populated when artifacts are uploaded.
+     * 
+ * + * string artifact_manifest = 4; + * @return The artifactManifest. + */ + @java.lang.Override + public java.lang.String getArtifactManifest() { + java.lang.Object ref = artifactManifest_; + 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(); + artifactManifest_ = s; + return s; + } + } + /** + *
+     * Path to the artifact manifest. Only populated when artifacts are uploaded.
+     * 
+ * + * string artifact_manifest = 4; + * @return The bytes for artifactManifest. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getArtifactManifestBytes() { + java.lang.Object ref = artifactManifest_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + artifactManifest_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NUM_ARTIFACTS_FIELD_NUMBER = 5; + private long numArtifacts_; + /** + *
+     * Number of artifacts uploaded. Only populated when artifacts are uploaded.
+     * 
+ * + * int64 num_artifacts = 5; + * @return The numArtifacts. + */ + @java.lang.Override + public long getNumArtifacts() { + return numArtifacts_; + } + + public static final int BUILD_STEP_OUTPUTS_FIELD_NUMBER = 6; + private java.util.List buildStepOutputs_; + /** + *
+     * List of build step outputs, produced by builder images, in the order
+     * corresponding to build step indices.
+     * [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders)
+     * can produce this output by writing to `$BUILDER_OUTPUT/output`.
+     * Only the first 4KB of data is stored.
+     * 
+ * + * repeated bytes build_step_outputs = 6; + * @return A list containing the buildStepOutputs. + */ + @java.lang.Override + public java.util.List + getBuildStepOutputsList() { + return buildStepOutputs_; + } + /** + *
+     * List of build step outputs, produced by builder images, in the order
+     * corresponding to build step indices.
+     * [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders)
+     * can produce this output by writing to `$BUILDER_OUTPUT/output`.
+     * Only the first 4KB of data is stored.
+     * 
+ * + * repeated bytes build_step_outputs = 6; + * @return The count of buildStepOutputs. + */ + public int getBuildStepOutputsCount() { + return buildStepOutputs_.size(); + } + /** + *
+     * List of build step outputs, produced by builder images, in the order
+     * corresponding to build step indices.
+     * [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders)
+     * can produce this output by writing to `$BUILDER_OUTPUT/output`.
+     * Only the first 4KB of data is stored.
+     * 
+ * + * repeated bytes build_step_outputs = 6; + * @param index The index of the element to return. + * @return The buildStepOutputs at the given index. + */ + public com.google.protobuf.ByteString getBuildStepOutputs(int index) { + return buildStepOutputs_.get(index); + } + + public static final int ARTIFACT_TIMING_FIELD_NUMBER = 7; + private google.events.cloud.build.v1.Data.TimeSpan artifactTiming_; + /** + *
+     * Time to push all non-container artifacts.
+     * 
+ * + * .google.events.cloud.build.v1.TimeSpan artifact_timing = 7; + * @return Whether the artifactTiming field is set. + */ + @java.lang.Override + public boolean hasArtifactTiming() { + return artifactTiming_ != null; + } + /** + *
+     * Time to push all non-container artifacts.
+     * 
+ * + * .google.events.cloud.build.v1.TimeSpan artifact_timing = 7; + * @return The artifactTiming. + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.TimeSpan getArtifactTiming() { + return artifactTiming_ == null ? google.events.cloud.build.v1.Data.TimeSpan.getDefaultInstance() : artifactTiming_; + } + /** + *
+     * Time to push all non-container artifacts.
+     * 
+ * + * .google.events.cloud.build.v1.TimeSpan artifact_timing = 7; + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.TimeSpanOrBuilder getArtifactTimingOrBuilder() { + return getArtifactTiming(); + } + + 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 < images_.size(); i++) { + output.writeMessage(2, images_.get(i)); + } + for (int i = 0; i < buildStepImages_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, buildStepImages_.getRaw(i)); + } + if (!getArtifactManifestBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, artifactManifest_); + } + if (numArtifacts_ != 0L) { + output.writeInt64(5, numArtifacts_); + } + for (int i = 0; i < buildStepOutputs_.size(); i++) { + output.writeBytes(6, buildStepOutputs_.get(i)); + } + if (artifactTiming_ != null) { + output.writeMessage(7, getArtifactTiming()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < images_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, images_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < buildStepImages_.size(); i++) { + dataSize += computeStringSizeNoTag(buildStepImages_.getRaw(i)); + } + size += dataSize; + size += 1 * getBuildStepImagesList().size(); + } + if (!getArtifactManifestBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, artifactManifest_); + } + if (numArtifacts_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, numArtifacts_); + } + { + int dataSize = 0; + for (int i = 0; i < buildStepOutputs_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(buildStepOutputs_.get(i)); + } + size += dataSize; + size += 1 * getBuildStepOutputsList().size(); + } + if (artifactTiming_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getArtifactTiming()); + } + 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.build.v1.Data.Results)) { + return super.equals(obj); + } + google.events.cloud.build.v1.Data.Results other = (google.events.cloud.build.v1.Data.Results) obj; + + if (!getImagesList() + .equals(other.getImagesList())) return false; + if (!getBuildStepImagesList() + .equals(other.getBuildStepImagesList())) return false; + if (!getArtifactManifest() + .equals(other.getArtifactManifest())) return false; + if (getNumArtifacts() + != other.getNumArtifacts()) return false; + if (!getBuildStepOutputsList() + .equals(other.getBuildStepOutputsList())) return false; + if (hasArtifactTiming() != other.hasArtifactTiming()) return false; + if (hasArtifactTiming()) { + if (!getArtifactTiming() + .equals(other.getArtifactTiming())) 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 (getImagesCount() > 0) { + hash = (37 * hash) + IMAGES_FIELD_NUMBER; + hash = (53 * hash) + getImagesList().hashCode(); + } + if (getBuildStepImagesCount() > 0) { + hash = (37 * hash) + BUILD_STEP_IMAGES_FIELD_NUMBER; + hash = (53 * hash) + getBuildStepImagesList().hashCode(); + } + hash = (37 * hash) + ARTIFACT_MANIFEST_FIELD_NUMBER; + hash = (53 * hash) + getArtifactManifest().hashCode(); + hash = (37 * hash) + NUM_ARTIFACTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getNumArtifacts()); + if (getBuildStepOutputsCount() > 0) { + hash = (37 * hash) + BUILD_STEP_OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getBuildStepOutputsList().hashCode(); + } + if (hasArtifactTiming()) { + hash = (37 * hash) + ARTIFACT_TIMING_FIELD_NUMBER; + hash = (53 * hash) + getArtifactTiming().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static google.events.cloud.build.v1.Data.Results parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.Results 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.build.v1.Data.Results parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.Results 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.build.v1.Data.Results parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.Results parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.cloud.build.v1.Data.Results parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.Results 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.build.v1.Data.Results parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.Results 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.build.v1.Data.Results parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.Results 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.build.v1.Data.Results 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; + } + /** + *
+     * Artifacts created by the build pipeline.
+     * 
+ * + * Protobuf type {@code google.events.cloud.build.v1.Results} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.events.cloud.build.v1.Results) + google.events.cloud.build.v1.Data.ResultsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_Results_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_Results_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.build.v1.Data.Results.class, google.events.cloud.build.v1.Data.Results.Builder.class); + } + + // Construct using google.events.cloud.build.v1.Data.Results.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getImagesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (imagesBuilder_ == null) { + images_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + imagesBuilder_.clear(); + } + buildStepImages_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + artifactManifest_ = ""; + + numArtifacts_ = 0L; + + buildStepOutputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + if (artifactTimingBuilder_ == null) { + artifactTiming_ = null; + } else { + artifactTiming_ = null; + artifactTimingBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_Results_descriptor; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.Results getDefaultInstanceForType() { + return google.events.cloud.build.v1.Data.Results.getDefaultInstance(); + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.Results build() { + google.events.cloud.build.v1.Data.Results result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.Results buildPartial() { + google.events.cloud.build.v1.Data.Results result = new google.events.cloud.build.v1.Data.Results(this); + int from_bitField0_ = bitField0_; + if (imagesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + images_ = java.util.Collections.unmodifiableList(images_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.images_ = images_; + } else { + result.images_ = imagesBuilder_.build(); + } + if (((bitField0_ & 0x00000002) != 0)) { + buildStepImages_ = buildStepImages_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.buildStepImages_ = buildStepImages_; + result.artifactManifest_ = artifactManifest_; + result.numArtifacts_ = numArtifacts_; + if (((bitField0_ & 0x00000004) != 0)) { + buildStepOutputs_ = java.util.Collections.unmodifiableList(buildStepOutputs_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.buildStepOutputs_ = buildStepOutputs_; + if (artifactTimingBuilder_ == null) { + result.artifactTiming_ = artifactTiming_; + } else { + result.artifactTiming_ = artifactTimingBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.events.cloud.build.v1.Data.Results) { + return mergeFrom((google.events.cloud.build.v1.Data.Results)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(google.events.cloud.build.v1.Data.Results other) { + if (other == google.events.cloud.build.v1.Data.Results.getDefaultInstance()) return this; + if (imagesBuilder_ == null) { + if (!other.images_.isEmpty()) { + if (images_.isEmpty()) { + images_ = other.images_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureImagesIsMutable(); + images_.addAll(other.images_); + } + onChanged(); + } + } else { + if (!other.images_.isEmpty()) { + if (imagesBuilder_.isEmpty()) { + imagesBuilder_.dispose(); + imagesBuilder_ = null; + images_ = other.images_; + bitField0_ = (bitField0_ & ~0x00000001); + imagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getImagesFieldBuilder() : null; + } else { + imagesBuilder_.addAllMessages(other.images_); + } + } + } + if (!other.buildStepImages_.isEmpty()) { + if (buildStepImages_.isEmpty()) { + buildStepImages_ = other.buildStepImages_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureBuildStepImagesIsMutable(); + buildStepImages_.addAll(other.buildStepImages_); + } + onChanged(); + } + if (!other.getArtifactManifest().isEmpty()) { + artifactManifest_ = other.artifactManifest_; + onChanged(); + } + if (other.getNumArtifacts() != 0L) { + setNumArtifacts(other.getNumArtifacts()); + } + if (!other.buildStepOutputs_.isEmpty()) { + if (buildStepOutputs_.isEmpty()) { + buildStepOutputs_ = other.buildStepOutputs_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureBuildStepOutputsIsMutable(); + buildStepOutputs_.addAll(other.buildStepOutputs_); + } + onChanged(); + } + if (other.hasArtifactTiming()) { + mergeArtifactTiming(other.getArtifactTiming()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.events.cloud.build.v1.Data.Results parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.events.cloud.build.v1.Data.Results) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List images_ = + java.util.Collections.emptyList(); + private void ensureImagesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + images_ = new java.util.ArrayList(images_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + google.events.cloud.build.v1.Data.BuiltImage, google.events.cloud.build.v1.Data.BuiltImage.Builder, google.events.cloud.build.v1.Data.BuiltImageOrBuilder> imagesBuilder_; + + /** + *
+       * Container images that were built as a part of the build.
+       * 
+ * + * repeated .google.events.cloud.build.v1.BuiltImage images = 2; + */ + public java.util.List getImagesList() { + if (imagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(images_); + } else { + return imagesBuilder_.getMessageList(); + } + } + /** + *
+       * Container images that were built as a part of the build.
+       * 
+ * + * repeated .google.events.cloud.build.v1.BuiltImage images = 2; + */ + public int getImagesCount() { + if (imagesBuilder_ == null) { + return images_.size(); + } else { + return imagesBuilder_.getCount(); + } + } + /** + *
+       * Container images that were built as a part of the build.
+       * 
+ * + * repeated .google.events.cloud.build.v1.BuiltImage images = 2; + */ + public google.events.cloud.build.v1.Data.BuiltImage getImages(int index) { + if (imagesBuilder_ == null) { + return images_.get(index); + } else { + return imagesBuilder_.getMessage(index); + } + } + /** + *
+       * Container images that were built as a part of the build.
+       * 
+ * + * repeated .google.events.cloud.build.v1.BuiltImage images = 2; + */ + public Builder setImages( + int index, google.events.cloud.build.v1.Data.BuiltImage value) { + if (imagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureImagesIsMutable(); + images_.set(index, value); + onChanged(); + } else { + imagesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Container images that were built as a part of the build.
+       * 
+ * + * repeated .google.events.cloud.build.v1.BuiltImage images = 2; + */ + public Builder setImages( + int index, google.events.cloud.build.v1.Data.BuiltImage.Builder builderForValue) { + if (imagesBuilder_ == null) { + ensureImagesIsMutable(); + images_.set(index, builderForValue.build()); + onChanged(); + } else { + imagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Container images that were built as a part of the build.
+       * 
+ * + * repeated .google.events.cloud.build.v1.BuiltImage images = 2; + */ + public Builder addImages(google.events.cloud.build.v1.Data.BuiltImage value) { + if (imagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureImagesIsMutable(); + images_.add(value); + onChanged(); + } else { + imagesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Container images that were built as a part of the build.
+       * 
+ * + * repeated .google.events.cloud.build.v1.BuiltImage images = 2; + */ + public Builder addImages( + int index, google.events.cloud.build.v1.Data.BuiltImage value) { + if (imagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureImagesIsMutable(); + images_.add(index, value); + onChanged(); + } else { + imagesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Container images that were built as a part of the build.
+       * 
+ * + * repeated .google.events.cloud.build.v1.BuiltImage images = 2; + */ + public Builder addImages( + google.events.cloud.build.v1.Data.BuiltImage.Builder builderForValue) { + if (imagesBuilder_ == null) { + ensureImagesIsMutable(); + images_.add(builderForValue.build()); + onChanged(); + } else { + imagesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Container images that were built as a part of the build.
+       * 
+ * + * repeated .google.events.cloud.build.v1.BuiltImage images = 2; + */ + public Builder addImages( + int index, google.events.cloud.build.v1.Data.BuiltImage.Builder builderForValue) { + if (imagesBuilder_ == null) { + ensureImagesIsMutable(); + images_.add(index, builderForValue.build()); + onChanged(); + } else { + imagesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Container images that were built as a part of the build.
+       * 
+ * + * repeated .google.events.cloud.build.v1.BuiltImage images = 2; + */ + public Builder addAllImages( + java.lang.Iterable values) { + if (imagesBuilder_ == null) { + ensureImagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, images_); + onChanged(); + } else { + imagesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Container images that were built as a part of the build.
+       * 
+ * + * repeated .google.events.cloud.build.v1.BuiltImage images = 2; + */ + public Builder clearImages() { + if (imagesBuilder_ == null) { + images_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + imagesBuilder_.clear(); + } + return this; + } + /** + *
+       * Container images that were built as a part of the build.
+       * 
+ * + * repeated .google.events.cloud.build.v1.BuiltImage images = 2; + */ + public Builder removeImages(int index) { + if (imagesBuilder_ == null) { + ensureImagesIsMutable(); + images_.remove(index); + onChanged(); + } else { + imagesBuilder_.remove(index); + } + return this; + } + /** + *
+       * Container images that were built as a part of the build.
+       * 
+ * + * repeated .google.events.cloud.build.v1.BuiltImage images = 2; + */ + public google.events.cloud.build.v1.Data.BuiltImage.Builder getImagesBuilder( + int index) { + return getImagesFieldBuilder().getBuilder(index); + } + /** + *
+       * Container images that were built as a part of the build.
+       * 
+ * + * repeated .google.events.cloud.build.v1.BuiltImage images = 2; + */ + public google.events.cloud.build.v1.Data.BuiltImageOrBuilder getImagesOrBuilder( + int index) { + if (imagesBuilder_ == null) { + return images_.get(index); } else { + return imagesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Container images that were built as a part of the build.
+       * 
+ * + * repeated .google.events.cloud.build.v1.BuiltImage images = 2; + */ + public java.util.List + getImagesOrBuilderList() { + if (imagesBuilder_ != null) { + return imagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(images_); + } + } + /** + *
+       * Container images that were built as a part of the build.
+       * 
+ * + * repeated .google.events.cloud.build.v1.BuiltImage images = 2; + */ + public google.events.cloud.build.v1.Data.BuiltImage.Builder addImagesBuilder() { + return getImagesFieldBuilder().addBuilder( + google.events.cloud.build.v1.Data.BuiltImage.getDefaultInstance()); + } + /** + *
+       * Container images that were built as a part of the build.
+       * 
+ * + * repeated .google.events.cloud.build.v1.BuiltImage images = 2; + */ + public google.events.cloud.build.v1.Data.BuiltImage.Builder addImagesBuilder( + int index) { + return getImagesFieldBuilder().addBuilder( + index, google.events.cloud.build.v1.Data.BuiltImage.getDefaultInstance()); + } + /** + *
+       * Container images that were built as a part of the build.
+       * 
+ * + * repeated .google.events.cloud.build.v1.BuiltImage images = 2; + */ + public java.util.List + getImagesBuilderList() { + return getImagesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + google.events.cloud.build.v1.Data.BuiltImage, google.events.cloud.build.v1.Data.BuiltImage.Builder, google.events.cloud.build.v1.Data.BuiltImageOrBuilder> + getImagesFieldBuilder() { + if (imagesBuilder_ == null) { + imagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + google.events.cloud.build.v1.Data.BuiltImage, google.events.cloud.build.v1.Data.BuiltImage.Builder, google.events.cloud.build.v1.Data.BuiltImageOrBuilder>( + images_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + images_ = null; + } + return imagesBuilder_; + } + + private com.google.protobuf.LazyStringList buildStepImages_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureBuildStepImagesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + buildStepImages_ = new com.google.protobuf.LazyStringArrayList(buildStepImages_); + bitField0_ |= 0x00000002; + } + } + /** + *
+       * List of build step digests, in the order corresponding to build step
+       * indices.
+       * 
+ * + * repeated string build_step_images = 3; + * @return A list containing the buildStepImages. + */ + public com.google.protobuf.ProtocolStringList + getBuildStepImagesList() { + return buildStepImages_.getUnmodifiableView(); + } + /** + *
+       * List of build step digests, in the order corresponding to build step
+       * indices.
+       * 
+ * + * repeated string build_step_images = 3; + * @return The count of buildStepImages. + */ + public int getBuildStepImagesCount() { + return buildStepImages_.size(); + } + /** + *
+       * List of build step digests, in the order corresponding to build step
+       * indices.
+       * 
+ * + * repeated string build_step_images = 3; + * @param index The index of the element to return. + * @return The buildStepImages at the given index. + */ + public java.lang.String getBuildStepImages(int index) { + return buildStepImages_.get(index); + } + /** + *
+       * List of build step digests, in the order corresponding to build step
+       * indices.
+       * 
+ * + * repeated string build_step_images = 3; + * @param index The index of the value to return. + * @return The bytes of the buildStepImages at the given index. + */ + public com.google.protobuf.ByteString + getBuildStepImagesBytes(int index) { + return buildStepImages_.getByteString(index); + } + /** + *
+       * List of build step digests, in the order corresponding to build step
+       * indices.
+       * 
+ * + * repeated string build_step_images = 3; + * @param index The index to set the value at. + * @param value The buildStepImages to set. + * @return This builder for chaining. + */ + public Builder setBuildStepImages( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBuildStepImagesIsMutable(); + buildStepImages_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * List of build step digests, in the order corresponding to build step
+       * indices.
+       * 
+ * + * repeated string build_step_images = 3; + * @param value The buildStepImages to add. + * @return This builder for chaining. + */ + public Builder addBuildStepImages( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBuildStepImagesIsMutable(); + buildStepImages_.add(value); + onChanged(); + return this; + } + /** + *
+       * List of build step digests, in the order corresponding to build step
+       * indices.
+       * 
+ * + * repeated string build_step_images = 3; + * @param values The buildStepImages to add. + * @return This builder for chaining. + */ + public Builder addAllBuildStepImages( + java.lang.Iterable values) { + ensureBuildStepImagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, buildStepImages_); + onChanged(); + return this; + } + /** + *
+       * List of build step digests, in the order corresponding to build step
+       * indices.
+       * 
+ * + * repeated string build_step_images = 3; + * @return This builder for chaining. + */ + public Builder clearBuildStepImages() { + buildStepImages_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * List of build step digests, in the order corresponding to build step
+       * indices.
+       * 
+ * + * repeated string build_step_images = 3; + * @param value The bytes of the buildStepImages to add. + * @return This builder for chaining. + */ + public Builder addBuildStepImagesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureBuildStepImagesIsMutable(); + buildStepImages_.add(value); + onChanged(); + return this; + } + + private java.lang.Object artifactManifest_ = ""; + /** + *
+       * Path to the artifact manifest. Only populated when artifacts are uploaded.
+       * 
+ * + * string artifact_manifest = 4; + * @return The artifactManifest. + */ + public java.lang.String getArtifactManifest() { + java.lang.Object ref = artifactManifest_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + artifactManifest_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Path to the artifact manifest. Only populated when artifacts are uploaded.
+       * 
+ * + * string artifact_manifest = 4; + * @return The bytes for artifactManifest. + */ + public com.google.protobuf.ByteString + getArtifactManifestBytes() { + java.lang.Object ref = artifactManifest_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + artifactManifest_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Path to the artifact manifest. Only populated when artifacts are uploaded.
+       * 
+ * + * string artifact_manifest = 4; + * @param value The artifactManifest to set. + * @return This builder for chaining. + */ + public Builder setArtifactManifest( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + artifactManifest_ = value; + onChanged(); + return this; + } + /** + *
+       * Path to the artifact manifest. Only populated when artifacts are uploaded.
+       * 
+ * + * string artifact_manifest = 4; + * @return This builder for chaining. + */ + public Builder clearArtifactManifest() { + + artifactManifest_ = getDefaultInstance().getArtifactManifest(); + onChanged(); + return this; + } + /** + *
+       * Path to the artifact manifest. Only populated when artifacts are uploaded.
+       * 
+ * + * string artifact_manifest = 4; + * @param value The bytes for artifactManifest to set. + * @return This builder for chaining. + */ + public Builder setArtifactManifestBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + artifactManifest_ = value; + onChanged(); + return this; + } + + private long numArtifacts_ ; + /** + *
+       * Number of artifacts uploaded. Only populated when artifacts are uploaded.
+       * 
+ * + * int64 num_artifacts = 5; + * @return The numArtifacts. + */ + @java.lang.Override + public long getNumArtifacts() { + return numArtifacts_; + } + /** + *
+       * Number of artifacts uploaded. Only populated when artifacts are uploaded.
+       * 
+ * + * int64 num_artifacts = 5; + * @param value The numArtifacts to set. + * @return This builder for chaining. + */ + public Builder setNumArtifacts(long value) { + + numArtifacts_ = value; + onChanged(); + return this; + } + /** + *
+       * Number of artifacts uploaded. Only populated when artifacts are uploaded.
+       * 
+ * + * int64 num_artifacts = 5; + * @return This builder for chaining. + */ + public Builder clearNumArtifacts() { + + numArtifacts_ = 0L; + onChanged(); + return this; + } + + private java.util.List buildStepOutputs_ = java.util.Collections.emptyList(); + private void ensureBuildStepOutputsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + buildStepOutputs_ = new java.util.ArrayList(buildStepOutputs_); + bitField0_ |= 0x00000004; + } + } + /** + *
+       * List of build step outputs, produced by builder images, in the order
+       * corresponding to build step indices.
+       * [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders)
+       * can produce this output by writing to `$BUILDER_OUTPUT/output`.
+       * Only the first 4KB of data is stored.
+       * 
+ * + * repeated bytes build_step_outputs = 6; + * @return A list containing the buildStepOutputs. + */ + public java.util.List + getBuildStepOutputsList() { + return ((bitField0_ & 0x00000004) != 0) ? + java.util.Collections.unmodifiableList(buildStepOutputs_) : buildStepOutputs_; + } + /** + *
+       * List of build step outputs, produced by builder images, in the order
+       * corresponding to build step indices.
+       * [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders)
+       * can produce this output by writing to `$BUILDER_OUTPUT/output`.
+       * Only the first 4KB of data is stored.
+       * 
+ * + * repeated bytes build_step_outputs = 6; + * @return The count of buildStepOutputs. + */ + public int getBuildStepOutputsCount() { + return buildStepOutputs_.size(); + } + /** + *
+       * List of build step outputs, produced by builder images, in the order
+       * corresponding to build step indices.
+       * [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders)
+       * can produce this output by writing to `$BUILDER_OUTPUT/output`.
+       * Only the first 4KB of data is stored.
+       * 
+ * + * repeated bytes build_step_outputs = 6; + * @param index The index of the element to return. + * @return The buildStepOutputs at the given index. + */ + public com.google.protobuf.ByteString getBuildStepOutputs(int index) { + return buildStepOutputs_.get(index); + } + /** + *
+       * List of build step outputs, produced by builder images, in the order
+       * corresponding to build step indices.
+       * [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders)
+       * can produce this output by writing to `$BUILDER_OUTPUT/output`.
+       * Only the first 4KB of data is stored.
+       * 
+ * + * repeated bytes build_step_outputs = 6; + * @param index The index to set the value at. + * @param value The buildStepOutputs to set. + * @return This builder for chaining. + */ + public Builder setBuildStepOutputs( + int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBuildStepOutputsIsMutable(); + buildStepOutputs_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * List of build step outputs, produced by builder images, in the order
+       * corresponding to build step indices.
+       * [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders)
+       * can produce this output by writing to `$BUILDER_OUTPUT/output`.
+       * Only the first 4KB of data is stored.
+       * 
+ * + * repeated bytes build_step_outputs = 6; + * @param value The buildStepOutputs to add. + * @return This builder for chaining. + */ + public Builder addBuildStepOutputs(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBuildStepOutputsIsMutable(); + buildStepOutputs_.add(value); + onChanged(); + return this; + } + /** + *
+       * List of build step outputs, produced by builder images, in the order
+       * corresponding to build step indices.
+       * [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders)
+       * can produce this output by writing to `$BUILDER_OUTPUT/output`.
+       * Only the first 4KB of data is stored.
+       * 
+ * + * repeated bytes build_step_outputs = 6; + * @param values The buildStepOutputs to add. + * @return This builder for chaining. + */ + public Builder addAllBuildStepOutputs( + java.lang.Iterable values) { + ensureBuildStepOutputsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, buildStepOutputs_); + onChanged(); + return this; + } + /** + *
+       * List of build step outputs, produced by builder images, in the order
+       * corresponding to build step indices.
+       * [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders)
+       * can produce this output by writing to `$BUILDER_OUTPUT/output`.
+       * Only the first 4KB of data is stored.
+       * 
+ * + * repeated bytes build_step_outputs = 6; + * @return This builder for chaining. + */ + public Builder clearBuildStepOutputs() { + buildStepOutputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + private google.events.cloud.build.v1.Data.TimeSpan artifactTiming_; + private com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.TimeSpan, google.events.cloud.build.v1.Data.TimeSpan.Builder, google.events.cloud.build.v1.Data.TimeSpanOrBuilder> artifactTimingBuilder_; + /** + *
+       * Time to push all non-container artifacts.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan artifact_timing = 7; + * @return Whether the artifactTiming field is set. + */ + public boolean hasArtifactTiming() { + return artifactTimingBuilder_ != null || artifactTiming_ != null; + } + /** + *
+       * Time to push all non-container artifacts.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan artifact_timing = 7; + * @return The artifactTiming. + */ + public google.events.cloud.build.v1.Data.TimeSpan getArtifactTiming() { + if (artifactTimingBuilder_ == null) { + return artifactTiming_ == null ? google.events.cloud.build.v1.Data.TimeSpan.getDefaultInstance() : artifactTiming_; + } else { + return artifactTimingBuilder_.getMessage(); + } + } + /** + *
+       * Time to push all non-container artifacts.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan artifact_timing = 7; + */ + public Builder setArtifactTiming(google.events.cloud.build.v1.Data.TimeSpan value) { + if (artifactTimingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + artifactTiming_ = value; + onChanged(); + } else { + artifactTimingBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Time to push all non-container artifacts.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan artifact_timing = 7; + */ + public Builder setArtifactTiming( + google.events.cloud.build.v1.Data.TimeSpan.Builder builderForValue) { + if (artifactTimingBuilder_ == null) { + artifactTiming_ = builderForValue.build(); + onChanged(); + } else { + artifactTimingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time to push all non-container artifacts.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan artifact_timing = 7; + */ + public Builder mergeArtifactTiming(google.events.cloud.build.v1.Data.TimeSpan value) { + if (artifactTimingBuilder_ == null) { + if (artifactTiming_ != null) { + artifactTiming_ = + google.events.cloud.build.v1.Data.TimeSpan.newBuilder(artifactTiming_).mergeFrom(value).buildPartial(); + } else { + artifactTiming_ = value; + } + onChanged(); + } else { + artifactTimingBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Time to push all non-container artifacts.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan artifact_timing = 7; + */ + public Builder clearArtifactTiming() { + if (artifactTimingBuilder_ == null) { + artifactTiming_ = null; + onChanged(); + } else { + artifactTiming_ = null; + artifactTimingBuilder_ = null; + } + + return this; + } + /** + *
+       * Time to push all non-container artifacts.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan artifact_timing = 7; + */ + public google.events.cloud.build.v1.Data.TimeSpan.Builder getArtifactTimingBuilder() { + + onChanged(); + return getArtifactTimingFieldBuilder().getBuilder(); + } + /** + *
+       * Time to push all non-container artifacts.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan artifact_timing = 7; + */ + public google.events.cloud.build.v1.Data.TimeSpanOrBuilder getArtifactTimingOrBuilder() { + if (artifactTimingBuilder_ != null) { + return artifactTimingBuilder_.getMessageOrBuilder(); + } else { + return artifactTiming_ == null ? + google.events.cloud.build.v1.Data.TimeSpan.getDefaultInstance() : artifactTiming_; + } + } + /** + *
+       * Time to push all non-container artifacts.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan artifact_timing = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.TimeSpan, google.events.cloud.build.v1.Data.TimeSpan.Builder, google.events.cloud.build.v1.Data.TimeSpanOrBuilder> + getArtifactTimingFieldBuilder() { + if (artifactTimingBuilder_ == null) { + artifactTimingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.TimeSpan, google.events.cloud.build.v1.Data.TimeSpan.Builder, google.events.cloud.build.v1.Data.TimeSpanOrBuilder>( + getArtifactTiming(), + getParentForChildren(), + isClean()); + artifactTiming_ = null; + } + return artifactTimingBuilder_; + } + @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.build.v1.Results) + } + + // @@protoc_insertion_point(class_scope:google.events.cloud.build.v1.Results) + private static final google.events.cloud.build.v1.Data.Results DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new google.events.cloud.build.v1.Data.Results(); + } + + public static google.events.cloud.build.v1.Data.Results getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Results parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Results(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.Results getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BuiltImageOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.cloud.build.v1.BuiltImage) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Name used to push the container image to Google Container Registry, as
+     * presented to `docker push`.
+     * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+     * Name used to push the container image to Google Container Registry, as
+     * presented to `docker push`.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * Docker Registry 2.0 digest.
+     * 
+ * + * string digest = 3; + * @return The digest. + */ + java.lang.String getDigest(); + /** + *
+     * Docker Registry 2.0 digest.
+     * 
+ * + * string digest = 3; + * @return The bytes for digest. + */ + com.google.protobuf.ByteString + getDigestBytes(); + + /** + *
+     * Stores timing information for pushing the specified image.
+     * 
+ * + * .google.events.cloud.build.v1.TimeSpan push_timing = 4; + * @return Whether the pushTiming field is set. + */ + boolean hasPushTiming(); + /** + *
+     * Stores timing information for pushing the specified image.
+     * 
+ * + * .google.events.cloud.build.v1.TimeSpan push_timing = 4; + * @return The pushTiming. + */ + google.events.cloud.build.v1.Data.TimeSpan getPushTiming(); + /** + *
+     * Stores timing information for pushing the specified image.
+     * 
+ * + * .google.events.cloud.build.v1.TimeSpan push_timing = 4; + */ + google.events.cloud.build.v1.Data.TimeSpanOrBuilder getPushTimingOrBuilder(); + } + /** + *
+   * An image built by the pipeline.
+   * 
+ * + * Protobuf type {@code google.events.cloud.build.v1.BuiltImage} + */ + public static final class BuiltImage extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.cloud.build.v1.BuiltImage) + BuiltImageOrBuilder { + private static final long serialVersionUID = 0L; + // Use BuiltImage.newBuilder() to construct. + private BuiltImage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BuiltImage() { + name_ = ""; + digest_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BuiltImage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BuiltImage( + 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(); + + name_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + digest_ = s; + break; + } + case 34: { + google.events.cloud.build.v1.Data.TimeSpan.Builder subBuilder = null; + if (pushTiming_ != null) { + subBuilder = pushTiming_.toBuilder(); + } + pushTiming_ = input.readMessage(google.events.cloud.build.v1.Data.TimeSpan.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pushTiming_); + pushTiming_ = subBuilder.buildPartial(); + } + + 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.build.v1.Data.internal_static_google_events_cloud_build_v1_BuiltImage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_BuiltImage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.build.v1.Data.BuiltImage.class, google.events.cloud.build.v1.Data.BuiltImage.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+     * Name used to push the container image to Google Container Registry, as
+     * presented to `docker push`.
+     * 
+ * + * 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; + } + } + /** + *
+     * Name used to push the container image to Google Container Registry, as
+     * presented to `docker push`.
+     * 
+ * + * 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 DIGEST_FIELD_NUMBER = 3; + private volatile java.lang.Object digest_; + /** + *
+     * Docker Registry 2.0 digest.
+     * 
+ * + * string digest = 3; + * @return The digest. + */ + @java.lang.Override + public java.lang.String getDigest() { + java.lang.Object ref = digest_; + 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(); + digest_ = s; + return s; + } + } + /** + *
+     * Docker Registry 2.0 digest.
+     * 
+ * + * string digest = 3; + * @return The bytes for digest. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDigestBytes() { + java.lang.Object ref = digest_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + digest_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PUSH_TIMING_FIELD_NUMBER = 4; + private google.events.cloud.build.v1.Data.TimeSpan pushTiming_; + /** + *
+     * Stores timing information for pushing the specified image.
+     * 
+ * + * .google.events.cloud.build.v1.TimeSpan push_timing = 4; + * @return Whether the pushTiming field is set. + */ + @java.lang.Override + public boolean hasPushTiming() { + return pushTiming_ != null; + } + /** + *
+     * Stores timing information for pushing the specified image.
+     * 
+ * + * .google.events.cloud.build.v1.TimeSpan push_timing = 4; + * @return The pushTiming. + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.TimeSpan getPushTiming() { + return pushTiming_ == null ? google.events.cloud.build.v1.Data.TimeSpan.getDefaultInstance() : pushTiming_; + } + /** + *
+     * Stores timing information for pushing the specified image.
+     * 
+ * + * .google.events.cloud.build.v1.TimeSpan push_timing = 4; + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.TimeSpanOrBuilder getPushTimingOrBuilder() { + return getPushTiming(); + } + + 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_); + } + if (!getDigestBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, digest_); + } + if (pushTiming_ != null) { + output.writeMessage(4, getPushTiming()); + } + 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_); + } + if (!getDigestBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, digest_); + } + if (pushTiming_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getPushTiming()); + } + 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.build.v1.Data.BuiltImage)) { + return super.equals(obj); + } + google.events.cloud.build.v1.Data.BuiltImage other = (google.events.cloud.build.v1.Data.BuiltImage) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getDigest() + .equals(other.getDigest())) return false; + if (hasPushTiming() != other.hasPushTiming()) return false; + if (hasPushTiming()) { + if (!getPushTiming() + .equals(other.getPushTiming())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DIGEST_FIELD_NUMBER; + hash = (53 * hash) + getDigest().hashCode(); + if (hasPushTiming()) { + hash = (37 * hash) + PUSH_TIMING_FIELD_NUMBER; + hash = (53 * hash) + getPushTiming().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static google.events.cloud.build.v1.Data.BuiltImage parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.BuiltImage 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.build.v1.Data.BuiltImage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.BuiltImage 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.build.v1.Data.BuiltImage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.BuiltImage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.cloud.build.v1.Data.BuiltImage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.BuiltImage 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.build.v1.Data.BuiltImage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.BuiltImage 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.build.v1.Data.BuiltImage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.BuiltImage 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.build.v1.Data.BuiltImage 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 image built by the pipeline.
+     * 
+ * + * Protobuf type {@code google.events.cloud.build.v1.BuiltImage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.events.cloud.build.v1.BuiltImage) + google.events.cloud.build.v1.Data.BuiltImageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_BuiltImage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_BuiltImage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.build.v1.Data.BuiltImage.class, google.events.cloud.build.v1.Data.BuiltImage.Builder.class); + } + + // Construct using google.events.cloud.build.v1.Data.BuiltImage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + digest_ = ""; + + if (pushTimingBuilder_ == null) { + pushTiming_ = null; + } else { + pushTiming_ = null; + pushTimingBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_BuiltImage_descriptor; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.BuiltImage getDefaultInstanceForType() { + return google.events.cloud.build.v1.Data.BuiltImage.getDefaultInstance(); + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.BuiltImage build() { + google.events.cloud.build.v1.Data.BuiltImage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.BuiltImage buildPartial() { + google.events.cloud.build.v1.Data.BuiltImage result = new google.events.cloud.build.v1.Data.BuiltImage(this); + result.name_ = name_; + result.digest_ = digest_; + if (pushTimingBuilder_ == null) { + result.pushTiming_ = pushTiming_; + } else { + result.pushTiming_ = pushTimingBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.events.cloud.build.v1.Data.BuiltImage) { + return mergeFrom((google.events.cloud.build.v1.Data.BuiltImage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(google.events.cloud.build.v1.Data.BuiltImage other) { + if (other == google.events.cloud.build.v1.Data.BuiltImage.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDigest().isEmpty()) { + digest_ = other.digest_; + onChanged(); + } + if (other.hasPushTiming()) { + mergePushTiming(other.getPushTiming()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.events.cloud.build.v1.Data.BuiltImage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.events.cloud.build.v1.Data.BuiltImage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * Name used to push the container image to Google Container Registry, as
+       * presented to `docker push`.
+       * 
+ * + * 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; + } + } + /** + *
+       * Name used to push the container image to Google Container Registry, as
+       * presented to `docker push`.
+       * 
+ * + * 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; + } + } + /** + *
+       * Name used to push the container image to Google Container Registry, as
+       * presented to `docker push`.
+       * 
+ * + * 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; + } + /** + *
+       * Name used to push the container image to Google Container Registry, as
+       * presented to `docker push`.
+       * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * Name used to push the container image to Google Container Registry, as
+       * presented to `docker push`.
+       * 
+ * + * 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 java.lang.Object digest_ = ""; + /** + *
+       * Docker Registry 2.0 digest.
+       * 
+ * + * string digest = 3; + * @return The digest. + */ + public java.lang.String getDigest() { + java.lang.Object ref = digest_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + digest_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Docker Registry 2.0 digest.
+       * 
+ * + * string digest = 3; + * @return The bytes for digest. + */ + public com.google.protobuf.ByteString + getDigestBytes() { + java.lang.Object ref = digest_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + digest_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Docker Registry 2.0 digest.
+       * 
+ * + * string digest = 3; + * @param value The digest to set. + * @return This builder for chaining. + */ + public Builder setDigest( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + digest_ = value; + onChanged(); + return this; + } + /** + *
+       * Docker Registry 2.0 digest.
+       * 
+ * + * string digest = 3; + * @return This builder for chaining. + */ + public Builder clearDigest() { + + digest_ = getDefaultInstance().getDigest(); + onChanged(); + return this; + } + /** + *
+       * Docker Registry 2.0 digest.
+       * 
+ * + * string digest = 3; + * @param value The bytes for digest to set. + * @return This builder for chaining. + */ + public Builder setDigestBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + digest_ = value; + onChanged(); + return this; + } + + private google.events.cloud.build.v1.Data.TimeSpan pushTiming_; + private com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.TimeSpan, google.events.cloud.build.v1.Data.TimeSpan.Builder, google.events.cloud.build.v1.Data.TimeSpanOrBuilder> pushTimingBuilder_; + /** + *
+       * Stores timing information for pushing the specified image.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan push_timing = 4; + * @return Whether the pushTiming field is set. + */ + public boolean hasPushTiming() { + return pushTimingBuilder_ != null || pushTiming_ != null; + } + /** + *
+       * Stores timing information for pushing the specified image.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan push_timing = 4; + * @return The pushTiming. + */ + public google.events.cloud.build.v1.Data.TimeSpan getPushTiming() { + if (pushTimingBuilder_ == null) { + return pushTiming_ == null ? google.events.cloud.build.v1.Data.TimeSpan.getDefaultInstance() : pushTiming_; + } else { + return pushTimingBuilder_.getMessage(); + } + } + /** + *
+       * Stores timing information for pushing the specified image.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan push_timing = 4; + */ + public Builder setPushTiming(google.events.cloud.build.v1.Data.TimeSpan value) { + if (pushTimingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pushTiming_ = value; + onChanged(); + } else { + pushTimingBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Stores timing information for pushing the specified image.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan push_timing = 4; + */ + public Builder setPushTiming( + google.events.cloud.build.v1.Data.TimeSpan.Builder builderForValue) { + if (pushTimingBuilder_ == null) { + pushTiming_ = builderForValue.build(); + onChanged(); + } else { + pushTimingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Stores timing information for pushing the specified image.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan push_timing = 4; + */ + public Builder mergePushTiming(google.events.cloud.build.v1.Data.TimeSpan value) { + if (pushTimingBuilder_ == null) { + if (pushTiming_ != null) { + pushTiming_ = + google.events.cloud.build.v1.Data.TimeSpan.newBuilder(pushTiming_).mergeFrom(value).buildPartial(); + } else { + pushTiming_ = value; + } + onChanged(); + } else { + pushTimingBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Stores timing information for pushing the specified image.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan push_timing = 4; + */ + public Builder clearPushTiming() { + if (pushTimingBuilder_ == null) { + pushTiming_ = null; + onChanged(); + } else { + pushTiming_ = null; + pushTimingBuilder_ = null; + } + + return this; + } + /** + *
+       * Stores timing information for pushing the specified image.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan push_timing = 4; + */ + public google.events.cloud.build.v1.Data.TimeSpan.Builder getPushTimingBuilder() { + + onChanged(); + return getPushTimingFieldBuilder().getBuilder(); + } + /** + *
+       * Stores timing information for pushing the specified image.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan push_timing = 4; + */ + public google.events.cloud.build.v1.Data.TimeSpanOrBuilder getPushTimingOrBuilder() { + if (pushTimingBuilder_ != null) { + return pushTimingBuilder_.getMessageOrBuilder(); + } else { + return pushTiming_ == null ? + google.events.cloud.build.v1.Data.TimeSpan.getDefaultInstance() : pushTiming_; + } + } + /** + *
+       * Stores timing information for pushing the specified image.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan push_timing = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.TimeSpan, google.events.cloud.build.v1.Data.TimeSpan.Builder, google.events.cloud.build.v1.Data.TimeSpanOrBuilder> + getPushTimingFieldBuilder() { + if (pushTimingBuilder_ == null) { + pushTimingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.TimeSpan, google.events.cloud.build.v1.Data.TimeSpan.Builder, google.events.cloud.build.v1.Data.TimeSpanOrBuilder>( + getPushTiming(), + getParentForChildren(), + isClean()); + pushTiming_ = null; + } + return pushTimingBuilder_; + } + @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.build.v1.BuiltImage) + } + + // @@protoc_insertion_point(class_scope:google.events.cloud.build.v1.BuiltImage) + private static final google.events.cloud.build.v1.Data.BuiltImage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new google.events.cloud.build.v1.Data.BuiltImage(); + } + + public static google.events.cloud.build.v1.Data.BuiltImage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BuiltImage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BuiltImage(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.BuiltImage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ArtifactsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.cloud.build.v1.Artifacts) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A list of images to be pushed upon the successful completion of all build
+     * steps.
+     * The images will be pushed using the builder service account's credentials.
+     * The digests of the pushed images will be stored in the Build resource's
+     * results field.
+     * If any of the images fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * repeated string images = 1; + * @return A list containing the images. + */ + java.util.List + getImagesList(); + /** + *
+     * A list of images to be pushed upon the successful completion of all build
+     * steps.
+     * The images will be pushed using the builder service account's credentials.
+     * The digests of the pushed images will be stored in the Build resource's
+     * results field.
+     * If any of the images fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * repeated string images = 1; + * @return The count of images. + */ + int getImagesCount(); + /** + *
+     * A list of images to be pushed upon the successful completion of all build
+     * steps.
+     * The images will be pushed using the builder service account's credentials.
+     * The digests of the pushed images will be stored in the Build resource's
+     * results field.
+     * If any of the images fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * repeated string images = 1; + * @param index The index of the element to return. + * @return The images at the given index. + */ + java.lang.String getImages(int index); + /** + *
+     * A list of images to be pushed upon the successful completion of all build
+     * steps.
+     * The images will be pushed using the builder service account's credentials.
+     * The digests of the pushed images will be stored in the Build resource's
+     * results field.
+     * If any of the images fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * repeated string images = 1; + * @param index The index of the value to return. + * @return The bytes of the images at the given index. + */ + com.google.protobuf.ByteString + getImagesBytes(int index); + + /** + *
+     * A list of objects to be uploaded to Cloud Storage upon successful
+     * completion of all build steps.
+     * Files in the workspace matching specified paths globs will be uploaded to
+     * the specified Cloud Storage location using the builder service account's
+     * credentials.
+     * The location and generation of the uploaded objects will be stored in the
+     * Build resource's results field.
+     * If any objects fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * .google.events.cloud.build.v1.Artifacts.ArtifactObjects objects = 2; + * @return Whether the objects field is set. + */ + boolean hasObjects(); + /** + *
+     * A list of objects to be uploaded to Cloud Storage upon successful
+     * completion of all build steps.
+     * Files in the workspace matching specified paths globs will be uploaded to
+     * the specified Cloud Storage location using the builder service account's
+     * credentials.
+     * The location and generation of the uploaded objects will be stored in the
+     * Build resource's results field.
+     * If any objects fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * .google.events.cloud.build.v1.Artifacts.ArtifactObjects objects = 2; + * @return The objects. + */ + google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects getObjects(); + /** + *
+     * A list of objects to be uploaded to Cloud Storage upon successful
+     * completion of all build steps.
+     * Files in the workspace matching specified paths globs will be uploaded to
+     * the specified Cloud Storage location using the builder service account's
+     * credentials.
+     * The location and generation of the uploaded objects will be stored in the
+     * Build resource's results field.
+     * If any objects fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * .google.events.cloud.build.v1.Artifacts.ArtifactObjects objects = 2; + */ + google.events.cloud.build.v1.Data.Artifacts.ArtifactObjectsOrBuilder getObjectsOrBuilder(); + } + /** + *
+   * Artifacts produced by a build that should be uploaded upon
+   * successful completion of all build steps.
+   * 
+ * + * Protobuf type {@code google.events.cloud.build.v1.Artifacts} + */ + public static final class Artifacts extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.cloud.build.v1.Artifacts) + ArtifactsOrBuilder { + private static final long serialVersionUID = 0L; + // Use Artifacts.newBuilder() to construct. + private Artifacts(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Artifacts() { + images_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Artifacts(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Artifacts( + 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)) { + images_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + images_.add(s); + break; + } + case 18: { + google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects.Builder subBuilder = null; + if (objects_ != null) { + subBuilder = objects_.toBuilder(); + } + objects_ = input.readMessage(google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(objects_); + objects_ = subBuilder.buildPartial(); + } + + 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)) { + images_ = images_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_Artifacts_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_Artifacts_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.build.v1.Data.Artifacts.class, google.events.cloud.build.v1.Data.Artifacts.Builder.class); + } + + public interface ArtifactObjectsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.cloud.build.v1.Artifacts.ArtifactObjects) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * Cloud Storage bucket and optional object path, in the form
+       * "gs://bucket/path/to/somewhere/". (see [Bucket Name
+       * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
+       * Files in the workspace matching any path pattern will be uploaded to
+       * Cloud Storage with this location as a prefix.
+       * 
+ * + * string location = 1; + * @return The location. + */ + java.lang.String getLocation(); + /** + *
+       * Cloud Storage bucket and optional object path, in the form
+       * "gs://bucket/path/to/somewhere/". (see [Bucket Name
+       * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
+       * Files in the workspace matching any path pattern will be uploaded to
+       * Cloud Storage with this location as a prefix.
+       * 
+ * + * string location = 1; + * @return The bytes for location. + */ + com.google.protobuf.ByteString + getLocationBytes(); + + /** + *
+       * Path globs used to match files in the build's workspace.
+       * 
+ * + * repeated string paths = 2; + * @return A list containing the paths. + */ + java.util.List + getPathsList(); + /** + *
+       * Path globs used to match files in the build's workspace.
+       * 
+ * + * repeated string paths = 2; + * @return The count of paths. + */ + int getPathsCount(); + /** + *
+       * Path globs used to match files in the build's workspace.
+       * 
+ * + * repeated string paths = 2; + * @param index The index of the element to return. + * @return The paths at the given index. + */ + java.lang.String getPaths(int index); + /** + *
+       * Path globs used to match files in the build's workspace.
+       * 
+ * + * repeated string paths = 2; + * @param index The index of the value to return. + * @return The bytes of the paths at the given index. + */ + com.google.protobuf.ByteString + getPathsBytes(int index); + + /** + *
+       * Stores timing information for pushing all artifact objects.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan timing = 3; + * @return Whether the timing field is set. + */ + boolean hasTiming(); + /** + *
+       * Stores timing information for pushing all artifact objects.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan timing = 3; + * @return The timing. + */ + google.events.cloud.build.v1.Data.TimeSpan getTiming(); + /** + *
+       * Stores timing information for pushing all artifact objects.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan timing = 3; + */ + google.events.cloud.build.v1.Data.TimeSpanOrBuilder getTimingOrBuilder(); + } + /** + *
+     * Files in the workspace to upload to Cloud Storage upon successful
+     * completion of all build steps.
+     * 
+ * + * Protobuf type {@code google.events.cloud.build.v1.Artifacts.ArtifactObjects} + */ + public static final class ArtifactObjects extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.cloud.build.v1.Artifacts.ArtifactObjects) + ArtifactObjectsOrBuilder { + private static final long serialVersionUID = 0L; + // Use ArtifactObjects.newBuilder() to construct. + private ArtifactObjects(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ArtifactObjects() { + location_ = ""; + paths_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ArtifactObjects(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ArtifactObjects( + 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(); + + location_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + paths_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + paths_.add(s); + break; + } + case 26: { + google.events.cloud.build.v1.Data.TimeSpan.Builder subBuilder = null; + if (timing_ != null) { + subBuilder = timing_.toBuilder(); + } + timing_ = input.readMessage(google.events.cloud.build.v1.Data.TimeSpan.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timing_); + timing_ = subBuilder.buildPartial(); + } + + 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)) { + paths_ = paths_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_Artifacts_ArtifactObjects_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_Artifacts_ArtifactObjects_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects.class, google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects.Builder.class); + } + + public static final int LOCATION_FIELD_NUMBER = 1; + private volatile java.lang.Object location_; + /** + *
+       * Cloud Storage bucket and optional object path, in the form
+       * "gs://bucket/path/to/somewhere/". (see [Bucket Name
+       * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
+       * Files in the workspace matching any path pattern will be uploaded to
+       * Cloud Storage with this location as a prefix.
+       * 
+ * + * string location = 1; + * @return The location. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + 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(); + location_ = s; + return s; + } + } + /** + *
+       * Cloud Storage bucket and optional object path, in the form
+       * "gs://bucket/path/to/somewhere/". (see [Bucket Name
+       * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
+       * Files in the workspace matching any path pattern will be uploaded to
+       * Cloud Storage with this location as a prefix.
+       * 
+ * + * string location = 1; + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PATHS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList paths_; + /** + *
+       * Path globs used to match files in the build's workspace.
+       * 
+ * + * repeated string paths = 2; + * @return A list containing the paths. + */ + public com.google.protobuf.ProtocolStringList + getPathsList() { + return paths_; + } + /** + *
+       * Path globs used to match files in the build's workspace.
+       * 
+ * + * repeated string paths = 2; + * @return The count of paths. + */ + public int getPathsCount() { + return paths_.size(); + } + /** + *
+       * Path globs used to match files in the build's workspace.
+       * 
+ * + * repeated string paths = 2; + * @param index The index of the element to return. + * @return The paths at the given index. + */ + public java.lang.String getPaths(int index) { + return paths_.get(index); + } + /** + *
+       * Path globs used to match files in the build's workspace.
+       * 
+ * + * repeated string paths = 2; + * @param index The index of the value to return. + * @return The bytes of the paths at the given index. + */ + public com.google.protobuf.ByteString + getPathsBytes(int index) { + return paths_.getByteString(index); + } + + public static final int TIMING_FIELD_NUMBER = 3; + private google.events.cloud.build.v1.Data.TimeSpan timing_; + /** + *
+       * Stores timing information for pushing all artifact objects.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan timing = 3; + * @return Whether the timing field is set. + */ + @java.lang.Override + public boolean hasTiming() { + return timing_ != null; + } + /** + *
+       * Stores timing information for pushing all artifact objects.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan timing = 3; + * @return The timing. + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.TimeSpan getTiming() { + return timing_ == null ? google.events.cloud.build.v1.Data.TimeSpan.getDefaultInstance() : timing_; + } + /** + *
+       * Stores timing information for pushing all artifact objects.
+       * 
+ * + * .google.events.cloud.build.v1.TimeSpan timing = 3; + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.TimeSpanOrBuilder getTimingOrBuilder() { + return getTiming(); + } + + 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 (!getLocationBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, location_); + } + for (int i = 0; i < paths_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, paths_.getRaw(i)); + } + if (timing_ != null) { + output.writeMessage(3, getTiming()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getLocationBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, location_); + } + { + int dataSize = 0; + for (int i = 0; i < paths_.size(); i++) { + dataSize += computeStringSizeNoTag(paths_.getRaw(i)); + } + size += dataSize; + size += 1 * getPathsList().size(); + } + if (timing_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getTiming()); + } + 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.build.v1.Data.Artifacts.ArtifactObjects)) { + return super.equals(obj); + } + google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects other = (google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects) obj; + + if (!getLocation() + .equals(other.getLocation())) return false; + if (!getPathsList() + .equals(other.getPathsList())) return false; + if (hasTiming() != other.hasTiming()) return false; + if (hasTiming()) { + if (!getTiming() + .equals(other.getTiming())) 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) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + if (getPathsCount() > 0) { + hash = (37 * hash) + PATHS_FIELD_NUMBER; + hash = (53 * hash) + getPathsList().hashCode(); + } + if (hasTiming()) { + hash = (37 * hash) + TIMING_FIELD_NUMBER; + hash = (53 * hash) + getTiming().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects 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.build.v1.Data.Artifacts.ArtifactObjects parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects 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.build.v1.Data.Artifacts.ArtifactObjects parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects 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.build.v1.Data.Artifacts.ArtifactObjects parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects 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.build.v1.Data.Artifacts.ArtifactObjects parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects 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.build.v1.Data.Artifacts.ArtifactObjects 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; + } + /** + *
+       * Files in the workspace to upload to Cloud Storage upon successful
+       * completion of all build steps.
+       * 
+ * + * Protobuf type {@code google.events.cloud.build.v1.Artifacts.ArtifactObjects} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.events.cloud.build.v1.Artifacts.ArtifactObjects) + google.events.cloud.build.v1.Data.Artifacts.ArtifactObjectsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_Artifacts_ArtifactObjects_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_Artifacts_ArtifactObjects_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects.class, google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects.Builder.class); + } + + // Construct using google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + location_ = ""; + + paths_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (timingBuilder_ == null) { + timing_ = null; + } else { + timing_ = null; + timingBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_Artifacts_ArtifactObjects_descriptor; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects getDefaultInstanceForType() { + return google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects.getDefaultInstance(); + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects build() { + google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects buildPartial() { + google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects result = new google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects(this); + int from_bitField0_ = bitField0_; + result.location_ = location_; + if (((bitField0_ & 0x00000001) != 0)) { + paths_ = paths_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.paths_ = paths_; + if (timingBuilder_ == null) { + result.timing_ = timing_; + } else { + result.timing_ = timingBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects) { + return mergeFrom((google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects other) { + if (other == google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects.getDefaultInstance()) return this; + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + onChanged(); + } + if (!other.paths_.isEmpty()) { + if (paths_.isEmpty()) { + paths_ = other.paths_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePathsIsMutable(); + paths_.addAll(other.paths_); + } + onChanged(); + } + if (other.hasTiming()) { + mergeTiming(other.getTiming()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object location_ = ""; + /** + *
+         * Cloud Storage bucket and optional object path, in the form
+         * "gs://bucket/path/to/somewhere/". (see [Bucket Name
+         * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
+         * Files in the workspace matching any path pattern will be uploaded to
+         * Cloud Storage with this location as a prefix.
+         * 
+ * + * string location = 1; + * @return The location. + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * Cloud Storage bucket and optional object path, in the form
+         * "gs://bucket/path/to/somewhere/". (see [Bucket Name
+         * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
+         * Files in the workspace matching any path pattern will be uploaded to
+         * Cloud Storage with this location as a prefix.
+         * 
+ * + * string location = 1; + * @return The bytes for location. + */ + public com.google.protobuf.ByteString + getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * Cloud Storage bucket and optional object path, in the form
+         * "gs://bucket/path/to/somewhere/". (see [Bucket Name
+         * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
+         * Files in the workspace matching any path pattern will be uploaded to
+         * Cloud Storage with this location as a prefix.
+         * 
+ * + * string location = 1; + * @param value The location to set. + * @return This builder for chaining. + */ + public Builder setLocation( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + location_ = value; + onChanged(); + return this; + } + /** + *
+         * Cloud Storage bucket and optional object path, in the form
+         * "gs://bucket/path/to/somewhere/". (see [Bucket Name
+         * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
+         * Files in the workspace matching any path pattern will be uploaded to
+         * Cloud Storage with this location as a prefix.
+         * 
+ * + * string location = 1; + * @return This builder for chaining. + */ + public Builder clearLocation() { + + location_ = getDefaultInstance().getLocation(); + onChanged(); + return this; + } + /** + *
+         * Cloud Storage bucket and optional object path, in the form
+         * "gs://bucket/path/to/somewhere/". (see [Bucket Name
+         * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
+         * Files in the workspace matching any path pattern will be uploaded to
+         * Cloud Storage with this location as a prefix.
+         * 
+ * + * string location = 1; + * @param value The bytes for location to set. + * @return This builder for chaining. + */ + public Builder setLocationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + location_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList paths_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensurePathsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + paths_ = new com.google.protobuf.LazyStringArrayList(paths_); + bitField0_ |= 0x00000001; + } + } + /** + *
+         * Path globs used to match files in the build's workspace.
+         * 
+ * + * repeated string paths = 2; + * @return A list containing the paths. + */ + public com.google.protobuf.ProtocolStringList + getPathsList() { + return paths_.getUnmodifiableView(); + } + /** + *
+         * Path globs used to match files in the build's workspace.
+         * 
+ * + * repeated string paths = 2; + * @return The count of paths. + */ + public int getPathsCount() { + return paths_.size(); + } + /** + *
+         * Path globs used to match files in the build's workspace.
+         * 
+ * + * repeated string paths = 2; + * @param index The index of the element to return. + * @return The paths at the given index. + */ + public java.lang.String getPaths(int index) { + return paths_.get(index); + } + /** + *
+         * Path globs used to match files in the build's workspace.
+         * 
+ * + * repeated string paths = 2; + * @param index The index of the value to return. + * @return The bytes of the paths at the given index. + */ + public com.google.protobuf.ByteString + getPathsBytes(int index) { + return paths_.getByteString(index); + } + /** + *
+         * Path globs used to match files in the build's workspace.
+         * 
+ * + * repeated string paths = 2; + * @param index The index to set the value at. + * @param value The paths to set. + * @return This builder for chaining. + */ + public Builder setPaths( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePathsIsMutable(); + paths_.set(index, value); + onChanged(); + return this; + } + /** + *
+         * Path globs used to match files in the build's workspace.
+         * 
+ * + * repeated string paths = 2; + * @param value The paths to add. + * @return This builder for chaining. + */ + public Builder addPaths( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePathsIsMutable(); + paths_.add(value); + onChanged(); + return this; + } + /** + *
+         * Path globs used to match files in the build's workspace.
+         * 
+ * + * repeated string paths = 2; + * @param values The paths to add. + * @return This builder for chaining. + */ + public Builder addAllPaths( + java.lang.Iterable values) { + ensurePathsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, paths_); + onChanged(); + return this; + } + /** + *
+         * Path globs used to match files in the build's workspace.
+         * 
+ * + * repeated string paths = 2; + * @return This builder for chaining. + */ + public Builder clearPaths() { + paths_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+         * Path globs used to match files in the build's workspace.
+         * 
+ * + * repeated string paths = 2; + * @param value The bytes of the paths to add. + * @return This builder for chaining. + */ + public Builder addPathsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePathsIsMutable(); + paths_.add(value); + onChanged(); + return this; + } + + private google.events.cloud.build.v1.Data.TimeSpan timing_; + private com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.TimeSpan, google.events.cloud.build.v1.Data.TimeSpan.Builder, google.events.cloud.build.v1.Data.TimeSpanOrBuilder> timingBuilder_; + /** + *
+         * Stores timing information for pushing all artifact objects.
+         * 
+ * + * .google.events.cloud.build.v1.TimeSpan timing = 3; + * @return Whether the timing field is set. + */ + public boolean hasTiming() { + return timingBuilder_ != null || timing_ != null; + } + /** + *
+         * Stores timing information for pushing all artifact objects.
+         * 
+ * + * .google.events.cloud.build.v1.TimeSpan timing = 3; + * @return The timing. + */ + public google.events.cloud.build.v1.Data.TimeSpan getTiming() { + if (timingBuilder_ == null) { + return timing_ == null ? google.events.cloud.build.v1.Data.TimeSpan.getDefaultInstance() : timing_; + } else { + return timingBuilder_.getMessage(); + } + } + /** + *
+         * Stores timing information for pushing all artifact objects.
+         * 
+ * + * .google.events.cloud.build.v1.TimeSpan timing = 3; + */ + public Builder setTiming(google.events.cloud.build.v1.Data.TimeSpan value) { + if (timingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timing_ = value; + onChanged(); + } else { + timingBuilder_.setMessage(value); + } + + return this; + } + /** + *
+         * Stores timing information for pushing all artifact objects.
+         * 
+ * + * .google.events.cloud.build.v1.TimeSpan timing = 3; + */ + public Builder setTiming( + google.events.cloud.build.v1.Data.TimeSpan.Builder builderForValue) { + if (timingBuilder_ == null) { + timing_ = builderForValue.build(); + onChanged(); + } else { + timingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+         * Stores timing information for pushing all artifact objects.
+         * 
+ * + * .google.events.cloud.build.v1.TimeSpan timing = 3; + */ + public Builder mergeTiming(google.events.cloud.build.v1.Data.TimeSpan value) { + if (timingBuilder_ == null) { + if (timing_ != null) { + timing_ = + google.events.cloud.build.v1.Data.TimeSpan.newBuilder(timing_).mergeFrom(value).buildPartial(); + } else { + timing_ = value; + } + onChanged(); + } else { + timingBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+         * Stores timing information for pushing all artifact objects.
+         * 
+ * + * .google.events.cloud.build.v1.TimeSpan timing = 3; + */ + public Builder clearTiming() { + if (timingBuilder_ == null) { + timing_ = null; + onChanged(); + } else { + timing_ = null; + timingBuilder_ = null; + } + + return this; + } + /** + *
+         * Stores timing information for pushing all artifact objects.
+         * 
+ * + * .google.events.cloud.build.v1.TimeSpan timing = 3; + */ + public google.events.cloud.build.v1.Data.TimeSpan.Builder getTimingBuilder() { + + onChanged(); + return getTimingFieldBuilder().getBuilder(); + } + /** + *
+         * Stores timing information for pushing all artifact objects.
+         * 
+ * + * .google.events.cloud.build.v1.TimeSpan timing = 3; + */ + public google.events.cloud.build.v1.Data.TimeSpanOrBuilder getTimingOrBuilder() { + if (timingBuilder_ != null) { + return timingBuilder_.getMessageOrBuilder(); + } else { + return timing_ == null ? + google.events.cloud.build.v1.Data.TimeSpan.getDefaultInstance() : timing_; + } + } + /** + *
+         * Stores timing information for pushing all artifact objects.
+         * 
+ * + * .google.events.cloud.build.v1.TimeSpan timing = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.TimeSpan, google.events.cloud.build.v1.Data.TimeSpan.Builder, google.events.cloud.build.v1.Data.TimeSpanOrBuilder> + getTimingFieldBuilder() { + if (timingBuilder_ == null) { + timingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.TimeSpan, google.events.cloud.build.v1.Data.TimeSpan.Builder, google.events.cloud.build.v1.Data.TimeSpanOrBuilder>( + getTiming(), + getParentForChildren(), + isClean()); + timing_ = null; + } + return timingBuilder_; + } + @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.build.v1.Artifacts.ArtifactObjects) + } + + // @@protoc_insertion_point(class_scope:google.events.cloud.build.v1.Artifacts.ArtifactObjects) + private static final google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects(); + } + + public static google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArtifactObjects parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ArtifactObjects(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int IMAGES_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList images_; + /** + *
+     * A list of images to be pushed upon the successful completion of all build
+     * steps.
+     * The images will be pushed using the builder service account's credentials.
+     * The digests of the pushed images will be stored in the Build resource's
+     * results field.
+     * If any of the images fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * repeated string images = 1; + * @return A list containing the images. + */ + public com.google.protobuf.ProtocolStringList + getImagesList() { + return images_; + } + /** + *
+     * A list of images to be pushed upon the successful completion of all build
+     * steps.
+     * The images will be pushed using the builder service account's credentials.
+     * The digests of the pushed images will be stored in the Build resource's
+     * results field.
+     * If any of the images fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * repeated string images = 1; + * @return The count of images. + */ + public int getImagesCount() { + return images_.size(); + } + /** + *
+     * A list of images to be pushed upon the successful completion of all build
+     * steps.
+     * The images will be pushed using the builder service account's credentials.
+     * The digests of the pushed images will be stored in the Build resource's
+     * results field.
+     * If any of the images fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * repeated string images = 1; + * @param index The index of the element to return. + * @return The images at the given index. + */ + public java.lang.String getImages(int index) { + return images_.get(index); + } + /** + *
+     * A list of images to be pushed upon the successful completion of all build
+     * steps.
+     * The images will be pushed using the builder service account's credentials.
+     * The digests of the pushed images will be stored in the Build resource's
+     * results field.
+     * If any of the images fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * repeated string images = 1; + * @param index The index of the value to return. + * @return The bytes of the images at the given index. + */ + public com.google.protobuf.ByteString + getImagesBytes(int index) { + return images_.getByteString(index); + } + + public static final int OBJECTS_FIELD_NUMBER = 2; + private google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects objects_; + /** + *
+     * A list of objects to be uploaded to Cloud Storage upon successful
+     * completion of all build steps.
+     * Files in the workspace matching specified paths globs will be uploaded to
+     * the specified Cloud Storage location using the builder service account's
+     * credentials.
+     * The location and generation of the uploaded objects will be stored in the
+     * Build resource's results field.
+     * If any objects fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * .google.events.cloud.build.v1.Artifacts.ArtifactObjects objects = 2; + * @return Whether the objects field is set. + */ + @java.lang.Override + public boolean hasObjects() { + return objects_ != null; + } + /** + *
+     * A list of objects to be uploaded to Cloud Storage upon successful
+     * completion of all build steps.
+     * Files in the workspace matching specified paths globs will be uploaded to
+     * the specified Cloud Storage location using the builder service account's
+     * credentials.
+     * The location and generation of the uploaded objects will be stored in the
+     * Build resource's results field.
+     * If any objects fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * .google.events.cloud.build.v1.Artifacts.ArtifactObjects objects = 2; + * @return The objects. + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects getObjects() { + return objects_ == null ? google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects.getDefaultInstance() : objects_; + } + /** + *
+     * A list of objects to be uploaded to Cloud Storage upon successful
+     * completion of all build steps.
+     * Files in the workspace matching specified paths globs will be uploaded to
+     * the specified Cloud Storage location using the builder service account's
+     * credentials.
+     * The location and generation of the uploaded objects will be stored in the
+     * Build resource's results field.
+     * If any objects fail to be pushed, the build is marked FAILURE.
+     * 
+ * + * .google.events.cloud.build.v1.Artifacts.ArtifactObjects objects = 2; + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.Artifacts.ArtifactObjectsOrBuilder getObjectsOrBuilder() { + return getObjects(); + } + + 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 < images_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, images_.getRaw(i)); + } + if (objects_ != null) { + output.writeMessage(2, getObjects()); + } + 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 < images_.size(); i++) { + dataSize += computeStringSizeNoTag(images_.getRaw(i)); + } + size += dataSize; + size += 1 * getImagesList().size(); + } + if (objects_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getObjects()); + } + 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.build.v1.Data.Artifacts)) { + return super.equals(obj); + } + google.events.cloud.build.v1.Data.Artifacts other = (google.events.cloud.build.v1.Data.Artifacts) obj; + + if (!getImagesList() + .equals(other.getImagesList())) return false; + if (hasObjects() != other.hasObjects()) return false; + if (hasObjects()) { + if (!getObjects() + .equals(other.getObjects())) 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 (getImagesCount() > 0) { + hash = (37 * hash) + IMAGES_FIELD_NUMBER; + hash = (53 * hash) + getImagesList().hashCode(); + } + if (hasObjects()) { + hash = (37 * hash) + OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getObjects().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static google.events.cloud.build.v1.Data.Artifacts parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.Artifacts 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.build.v1.Data.Artifacts parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.Artifacts 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.build.v1.Data.Artifacts parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.Artifacts parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.cloud.build.v1.Data.Artifacts parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.Artifacts 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.build.v1.Data.Artifacts parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.Artifacts 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.build.v1.Data.Artifacts parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.Artifacts 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.build.v1.Data.Artifacts 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; + } + /** + *
+     * Artifacts produced by a build that should be uploaded upon
+     * successful completion of all build steps.
+     * 
+ * + * Protobuf type {@code google.events.cloud.build.v1.Artifacts} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.events.cloud.build.v1.Artifacts) + google.events.cloud.build.v1.Data.ArtifactsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_Artifacts_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_Artifacts_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.build.v1.Data.Artifacts.class, google.events.cloud.build.v1.Data.Artifacts.Builder.class); + } + + // Construct using google.events.cloud.build.v1.Data.Artifacts.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + images_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (objectsBuilder_ == null) { + objects_ = null; + } else { + objects_ = null; + objectsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_Artifacts_descriptor; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.Artifacts getDefaultInstanceForType() { + return google.events.cloud.build.v1.Data.Artifacts.getDefaultInstance(); + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.Artifacts build() { + google.events.cloud.build.v1.Data.Artifacts result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.Artifacts buildPartial() { + google.events.cloud.build.v1.Data.Artifacts result = new google.events.cloud.build.v1.Data.Artifacts(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + images_ = images_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.images_ = images_; + if (objectsBuilder_ == null) { + result.objects_ = objects_; + } else { + result.objects_ = objectsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.events.cloud.build.v1.Data.Artifacts) { + return mergeFrom((google.events.cloud.build.v1.Data.Artifacts)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(google.events.cloud.build.v1.Data.Artifacts other) { + if (other == google.events.cloud.build.v1.Data.Artifacts.getDefaultInstance()) return this; + if (!other.images_.isEmpty()) { + if (images_.isEmpty()) { + images_ = other.images_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureImagesIsMutable(); + images_.addAll(other.images_); + } + onChanged(); + } + if (other.hasObjects()) { + mergeObjects(other.getObjects()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.events.cloud.build.v1.Data.Artifacts parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.events.cloud.build.v1.Data.Artifacts) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList images_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureImagesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + images_ = new com.google.protobuf.LazyStringArrayList(images_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * A list of images to be pushed upon the successful completion of all build
+       * steps.
+       * The images will be pushed using the builder service account's credentials.
+       * The digests of the pushed images will be stored in the Build resource's
+       * results field.
+       * If any of the images fail to be pushed, the build is marked FAILURE.
+       * 
+ * + * repeated string images = 1; + * @return A list containing the images. + */ + public com.google.protobuf.ProtocolStringList + getImagesList() { + return images_.getUnmodifiableView(); + } + /** + *
+       * A list of images to be pushed upon the successful completion of all build
+       * steps.
+       * The images will be pushed using the builder service account's credentials.
+       * The digests of the pushed images will be stored in the Build resource's
+       * results field.
+       * If any of the images fail to be pushed, the build is marked FAILURE.
+       * 
+ * + * repeated string images = 1; + * @return The count of images. + */ + public int getImagesCount() { + return images_.size(); + } + /** + *
+       * A list of images to be pushed upon the successful completion of all build
+       * steps.
+       * The images will be pushed using the builder service account's credentials.
+       * The digests of the pushed images will be stored in the Build resource's
+       * results field.
+       * If any of the images fail to be pushed, the build is marked FAILURE.
+       * 
+ * + * repeated string images = 1; + * @param index The index of the element to return. + * @return The images at the given index. + */ + public java.lang.String getImages(int index) { + return images_.get(index); + } + /** + *
+       * A list of images to be pushed upon the successful completion of all build
+       * steps.
+       * The images will be pushed using the builder service account's credentials.
+       * The digests of the pushed images will be stored in the Build resource's
+       * results field.
+       * If any of the images fail to be pushed, the build is marked FAILURE.
+       * 
+ * + * repeated string images = 1; + * @param index The index of the value to return. + * @return The bytes of the images at the given index. + */ + public com.google.protobuf.ByteString + getImagesBytes(int index) { + return images_.getByteString(index); + } + /** + *
+       * A list of images to be pushed upon the successful completion of all build
+       * steps.
+       * The images will be pushed using the builder service account's credentials.
+       * The digests of the pushed images will be stored in the Build resource's
+       * results field.
+       * If any of the images fail to be pushed, the build is marked FAILURE.
+       * 
+ * + * repeated string images = 1; + * @param index The index to set the value at. + * @param value The images to set. + * @return This builder for chaining. + */ + public Builder setImages( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureImagesIsMutable(); + images_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * A list of images to be pushed upon the successful completion of all build
+       * steps.
+       * The images will be pushed using the builder service account's credentials.
+       * The digests of the pushed images will be stored in the Build resource's
+       * results field.
+       * If any of the images fail to be pushed, the build is marked FAILURE.
+       * 
+ * + * repeated string images = 1; + * @param value The images to add. + * @return This builder for chaining. + */ + public Builder addImages( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureImagesIsMutable(); + images_.add(value); + onChanged(); + return this; + } + /** + *
+       * A list of images to be pushed upon the successful completion of all build
+       * steps.
+       * The images will be pushed using the builder service account's credentials.
+       * The digests of the pushed images will be stored in the Build resource's
+       * results field.
+       * If any of the images fail to be pushed, the build is marked FAILURE.
+       * 
+ * + * repeated string images = 1; + * @param values The images to add. + * @return This builder for chaining. + */ + public Builder addAllImages( + java.lang.Iterable values) { + ensureImagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, images_); + onChanged(); + return this; + } + /** + *
+       * A list of images to be pushed upon the successful completion of all build
+       * steps.
+       * The images will be pushed using the builder service account's credentials.
+       * The digests of the pushed images will be stored in the Build resource's
+       * results field.
+       * If any of the images fail to be pushed, the build is marked FAILURE.
+       * 
+ * + * repeated string images = 1; + * @return This builder for chaining. + */ + public Builder clearImages() { + images_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * A list of images to be pushed upon the successful completion of all build
+       * steps.
+       * The images will be pushed using the builder service account's credentials.
+       * The digests of the pushed images will be stored in the Build resource's
+       * results field.
+       * If any of the images fail to be pushed, the build is marked FAILURE.
+       * 
+ * + * repeated string images = 1; + * @param value The bytes of the images to add. + * @return This builder for chaining. + */ + public Builder addImagesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureImagesIsMutable(); + images_.add(value); + onChanged(); + return this; + } + + private google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects objects_; + private com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects, google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects.Builder, google.events.cloud.build.v1.Data.Artifacts.ArtifactObjectsOrBuilder> objectsBuilder_; + /** + *
+       * A list of objects to be uploaded to Cloud Storage upon successful
+       * completion of all build steps.
+       * Files in the workspace matching specified paths globs will be uploaded to
+       * the specified Cloud Storage location using the builder service account's
+       * credentials.
+       * The location and generation of the uploaded objects will be stored in the
+       * Build resource's results field.
+       * If any objects fail to be pushed, the build is marked FAILURE.
+       * 
+ * + * .google.events.cloud.build.v1.Artifacts.ArtifactObjects objects = 2; + * @return Whether the objects field is set. + */ + public boolean hasObjects() { + return objectsBuilder_ != null || objects_ != null; + } + /** + *
+       * A list of objects to be uploaded to Cloud Storage upon successful
+       * completion of all build steps.
+       * Files in the workspace matching specified paths globs will be uploaded to
+       * the specified Cloud Storage location using the builder service account's
+       * credentials.
+       * The location and generation of the uploaded objects will be stored in the
+       * Build resource's results field.
+       * If any objects fail to be pushed, the build is marked FAILURE.
+       * 
+ * + * .google.events.cloud.build.v1.Artifacts.ArtifactObjects objects = 2; + * @return The objects. + */ + public google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects getObjects() { + if (objectsBuilder_ == null) { + return objects_ == null ? google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects.getDefaultInstance() : objects_; + } else { + return objectsBuilder_.getMessage(); + } + } + /** + *
+       * A list of objects to be uploaded to Cloud Storage upon successful
+       * completion of all build steps.
+       * Files in the workspace matching specified paths globs will be uploaded to
+       * the specified Cloud Storage location using the builder service account's
+       * credentials.
+       * The location and generation of the uploaded objects will be stored in the
+       * Build resource's results field.
+       * If any objects fail to be pushed, the build is marked FAILURE.
+       * 
+ * + * .google.events.cloud.build.v1.Artifacts.ArtifactObjects objects = 2; + */ + public Builder setObjects(google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects value) { + if (objectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + objects_ = value; + onChanged(); + } else { + objectsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * A list of objects to be uploaded to Cloud Storage upon successful
+       * completion of all build steps.
+       * Files in the workspace matching specified paths globs will be uploaded to
+       * the specified Cloud Storage location using the builder service account's
+       * credentials.
+       * The location and generation of the uploaded objects will be stored in the
+       * Build resource's results field.
+       * If any objects fail to be pushed, the build is marked FAILURE.
+       * 
+ * + * .google.events.cloud.build.v1.Artifacts.ArtifactObjects objects = 2; + */ + public Builder setObjects( + google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects.Builder builderForValue) { + if (objectsBuilder_ == null) { + objects_ = builderForValue.build(); + onChanged(); + } else { + objectsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * A list of objects to be uploaded to Cloud Storage upon successful
+       * completion of all build steps.
+       * Files in the workspace matching specified paths globs will be uploaded to
+       * the specified Cloud Storage location using the builder service account's
+       * credentials.
+       * The location and generation of the uploaded objects will be stored in the
+       * Build resource's results field.
+       * If any objects fail to be pushed, the build is marked FAILURE.
+       * 
+ * + * .google.events.cloud.build.v1.Artifacts.ArtifactObjects objects = 2; + */ + public Builder mergeObjects(google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects value) { + if (objectsBuilder_ == null) { + if (objects_ != null) { + objects_ = + google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects.newBuilder(objects_).mergeFrom(value).buildPartial(); + } else { + objects_ = value; + } + onChanged(); + } else { + objectsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * A list of objects to be uploaded to Cloud Storage upon successful
+       * completion of all build steps.
+       * Files in the workspace matching specified paths globs will be uploaded to
+       * the specified Cloud Storage location using the builder service account's
+       * credentials.
+       * The location and generation of the uploaded objects will be stored in the
+       * Build resource's results field.
+       * If any objects fail to be pushed, the build is marked FAILURE.
+       * 
+ * + * .google.events.cloud.build.v1.Artifacts.ArtifactObjects objects = 2; + */ + public Builder clearObjects() { + if (objectsBuilder_ == null) { + objects_ = null; + onChanged(); + } else { + objects_ = null; + objectsBuilder_ = null; + } + + return this; + } + /** + *
+       * A list of objects to be uploaded to Cloud Storage upon successful
+       * completion of all build steps.
+       * Files in the workspace matching specified paths globs will be uploaded to
+       * the specified Cloud Storage location using the builder service account's
+       * credentials.
+       * The location and generation of the uploaded objects will be stored in the
+       * Build resource's results field.
+       * If any objects fail to be pushed, the build is marked FAILURE.
+       * 
+ * + * .google.events.cloud.build.v1.Artifacts.ArtifactObjects objects = 2; + */ + public google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects.Builder getObjectsBuilder() { + + onChanged(); + return getObjectsFieldBuilder().getBuilder(); + } + /** + *
+       * A list of objects to be uploaded to Cloud Storage upon successful
+       * completion of all build steps.
+       * Files in the workspace matching specified paths globs will be uploaded to
+       * the specified Cloud Storage location using the builder service account's
+       * credentials.
+       * The location and generation of the uploaded objects will be stored in the
+       * Build resource's results field.
+       * If any objects fail to be pushed, the build is marked FAILURE.
+       * 
+ * + * .google.events.cloud.build.v1.Artifacts.ArtifactObjects objects = 2; + */ + public google.events.cloud.build.v1.Data.Artifacts.ArtifactObjectsOrBuilder getObjectsOrBuilder() { + if (objectsBuilder_ != null) { + return objectsBuilder_.getMessageOrBuilder(); + } else { + return objects_ == null ? + google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects.getDefaultInstance() : objects_; + } + } + /** + *
+       * A list of objects to be uploaded to Cloud Storage upon successful
+       * completion of all build steps.
+       * Files in the workspace matching specified paths globs will be uploaded to
+       * the specified Cloud Storage location using the builder service account's
+       * credentials.
+       * The location and generation of the uploaded objects will be stored in the
+       * Build resource's results field.
+       * If any objects fail to be pushed, the build is marked FAILURE.
+       * 
+ * + * .google.events.cloud.build.v1.Artifacts.ArtifactObjects objects = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects, google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects.Builder, google.events.cloud.build.v1.Data.Artifacts.ArtifactObjectsOrBuilder> + getObjectsFieldBuilder() { + if (objectsBuilder_ == null) { + objectsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects, google.events.cloud.build.v1.Data.Artifacts.ArtifactObjects.Builder, google.events.cloud.build.v1.Data.Artifacts.ArtifactObjectsOrBuilder>( + getObjects(), + getParentForChildren(), + isClean()); + objects_ = null; + } + return objectsBuilder_; + } + @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.build.v1.Artifacts) + } + + // @@protoc_insertion_point(class_scope:google.events.cloud.build.v1.Artifacts) + private static final google.events.cloud.build.v1.Data.Artifacts DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new google.events.cloud.build.v1.Data.Artifacts(); + } + + public static google.events.cloud.build.v1.Data.Artifacts getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Artifacts parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Artifacts(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.Artifacts getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TimeSpanOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.cloud.build.v1.TimeSpan) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Start of time span.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + *
+     * Start of time span.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + *
+     * Start of time span.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + *
+     * End of time span.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + *
+     * End of time span.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + *
+     * End of time span.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + } + /** + *
+   * Start and end times for a build execution phase.
+   * 
+ * + * Protobuf type {@code google.events.cloud.build.v1.TimeSpan} + */ + public static final class TimeSpan extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.cloud.build.v1.TimeSpan) + TimeSpanOrBuilder { + private static final long serialVersionUID = 0L; + // Use TimeSpan.newBuilder() to construct. + private TimeSpan(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TimeSpan() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TimeSpan(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TimeSpan( + 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: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + 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.build.v1.Data.internal_static_google_events_cloud_build_v1_TimeSpan_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_TimeSpan_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.build.v1.Data.TimeSpan.class, google.events.cloud.build.v1.Data.TimeSpan.Builder.class); + } + + public static final int START_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp startTime_; + /** + *
+     * Start of time span.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return startTime_ != null; + } + /** + *
+     * Start of time span.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + *
+     * Start of time span.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return getStartTime(); + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + /** + *
+     * End of time span.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return endTime_ != null; + } + /** + *
+     * End of time span.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + *
+     * End of time span.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return getEndTime(); + } + + 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 (startTime_ != null) { + output.writeMessage(1, getStartTime()); + } + if (endTime_ != null) { + output.writeMessage(2, getEndTime()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStartTime()); + } + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); + } + 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.build.v1.Data.TimeSpan)) { + return super.equals(obj); + } + google.events.cloud.build.v1.Data.TimeSpan other = (google.events.cloud.build.v1.Data.TimeSpan) obj; + + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime() + .equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime() + .equals(other.getEndTime())) 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 (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static google.events.cloud.build.v1.Data.TimeSpan parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.TimeSpan 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.build.v1.Data.TimeSpan parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.TimeSpan 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.build.v1.Data.TimeSpan parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.TimeSpan parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.cloud.build.v1.Data.TimeSpan parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.TimeSpan 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.build.v1.Data.TimeSpan parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.TimeSpan 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.build.v1.Data.TimeSpan parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.TimeSpan 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.build.v1.Data.TimeSpan 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; + } + /** + *
+     * Start and end times for a build execution phase.
+     * 
+ * + * Protobuf type {@code google.events.cloud.build.v1.TimeSpan} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.events.cloud.build.v1.TimeSpan) + google.events.cloud.build.v1.Data.TimeSpanOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_TimeSpan_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_TimeSpan_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.build.v1.Data.TimeSpan.class, google.events.cloud.build.v1.Data.TimeSpan.Builder.class); + } + + // Construct using google.events.cloud.build.v1.Data.TimeSpan.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (startTimeBuilder_ == null) { + startTime_ = null; + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + if (endTimeBuilder_ == null) { + endTime_ = null; + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_TimeSpan_descriptor; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.TimeSpan getDefaultInstanceForType() { + return google.events.cloud.build.v1.Data.TimeSpan.getDefaultInstance(); + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.TimeSpan build() { + google.events.cloud.build.v1.Data.TimeSpan result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.TimeSpan buildPartial() { + google.events.cloud.build.v1.Data.TimeSpan result = new google.events.cloud.build.v1.Data.TimeSpan(this); + if (startTimeBuilder_ == null) { + result.startTime_ = startTime_; + } else { + result.startTime_ = startTimeBuilder_.build(); + } + if (endTimeBuilder_ == null) { + result.endTime_ = endTime_; + } else { + result.endTime_ = endTimeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.events.cloud.build.v1.Data.TimeSpan) { + return mergeFrom((google.events.cloud.build.v1.Data.TimeSpan)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(google.events.cloud.build.v1.Data.TimeSpan other) { + if (other == google.events.cloud.build.v1.Data.TimeSpan.getDefaultInstance()) return this; + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.events.cloud.build.v1.Data.TimeSpan parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.events.cloud.build.v1.Data.TimeSpan) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + /** + *
+       * Start of time span.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 1; + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return startTimeBuilder_ != null || startTime_ != null; + } + /** + *
+       * Start of time span.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 1; + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + *
+       * Start of time span.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + onChanged(); + } else { + startTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Start of time span.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + onChanged(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Start of time span.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (startTime_ != null) { + startTime_ = + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + } else { + startTime_ = value; + } + onChanged(); + } else { + startTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Start of time span.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder clearStartTime() { + if (startTimeBuilder_ == null) { + startTime_ = null; + onChanged(); + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + + return this; + } + /** + *
+       * Start of time span.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + *
+       * Start of time span.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + *
+       * Start of time span.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + /** + *
+       * End of time span.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return endTimeBuilder_ != null || endTime_ != null; + } + /** + *
+       * End of time span.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + *
+       * End of time span.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + onChanged(); + } else { + endTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * End of time span.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * End of time span.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (endTime_ != null) { + endTime_ = + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + } else { + endTime_ = value; + } + onChanged(); + } else { + endTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * End of time span.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + endTime_ = null; + onChanged(); + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + + return this; + } + /** + *
+       * End of time span.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + *
+       * End of time span.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + *
+       * End of time span.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + @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.build.v1.TimeSpan) + } + + // @@protoc_insertion_point(class_scope:google.events.cloud.build.v1.TimeSpan) + private static final google.events.cloud.build.v1.Data.TimeSpan DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new google.events.cloud.build.v1.Data.TimeSpan(); + } + + public static google.events.cloud.build.v1.Data.TimeSpan getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeSpan parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TimeSpan(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.TimeSpan getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SourceProvenanceOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.cloud.build.v1.SourceProvenance) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A copy of the build's `source.storage_source`, if exists, with any
+     * generations resolved.
+     * 
+ * + * .google.events.cloud.build.v1.StorageSource resolved_storage_source = 3; + * @return Whether the resolvedStorageSource field is set. + */ + boolean hasResolvedStorageSource(); + /** + *
+     * A copy of the build's `source.storage_source`, if exists, with any
+     * generations resolved.
+     * 
+ * + * .google.events.cloud.build.v1.StorageSource resolved_storage_source = 3; + * @return The resolvedStorageSource. + */ + google.events.cloud.build.v1.Data.StorageSource getResolvedStorageSource(); + /** + *
+     * A copy of the build's `source.storage_source`, if exists, with any
+     * generations resolved.
+     * 
+ * + * .google.events.cloud.build.v1.StorageSource resolved_storage_source = 3; + */ + google.events.cloud.build.v1.Data.StorageSourceOrBuilder getResolvedStorageSourceOrBuilder(); + + /** + *
+     * A copy of the build's `source.repo_source`, if exists, with any
+     * revisions resolved.
+     * 
+ * + * .google.events.cloud.build.v1.RepoSource resolved_repo_source = 6; + * @return Whether the resolvedRepoSource field is set. + */ + boolean hasResolvedRepoSource(); + /** + *
+     * A copy of the build's `source.repo_source`, if exists, with any
+     * revisions resolved.
+     * 
+ * + * .google.events.cloud.build.v1.RepoSource resolved_repo_source = 6; + * @return The resolvedRepoSource. + */ + google.events.cloud.build.v1.Data.RepoSource getResolvedRepoSource(); + /** + *
+     * A copy of the build's `source.repo_source`, if exists, with any
+     * revisions resolved.
+     * 
+ * + * .google.events.cloud.build.v1.RepoSource resolved_repo_source = 6; + */ + google.events.cloud.build.v1.Data.RepoSourceOrBuilder getResolvedRepoSourceOrBuilder(); + + /** + *
+     * Hash(es) of the build source, which can be used to verify that
+     * the original source integrity was maintained in the build. Note that
+     * `FileHashes` will only be populated if `BuildOptions` has requested a
+     * `SourceProvenanceHash`.
+     * The keys to this map are file paths used as build source and the values
+     * contain the hash values for those files.
+     * If the build source came in a single package such as a gzipped tarfile
+     * (`.tar.gz`), the `FileHash` will be for the single path to that file.
+     * 
+ * + * map<string, .google.events.cloud.build.v1.FileHashes> file_hashes = 4; + */ + int getFileHashesCount(); + /** + *
+     * Hash(es) of the build source, which can be used to verify that
+     * the original source integrity was maintained in the build. Note that
+     * `FileHashes` will only be populated if `BuildOptions` has requested a
+     * `SourceProvenanceHash`.
+     * The keys to this map are file paths used as build source and the values
+     * contain the hash values for those files.
+     * If the build source came in a single package such as a gzipped tarfile
+     * (`.tar.gz`), the `FileHash` will be for the single path to that file.
+     * 
+ * + * map<string, .google.events.cloud.build.v1.FileHashes> file_hashes = 4; + */ + boolean containsFileHashes( + java.lang.String key); + /** + * Use {@link #getFileHashesMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getFileHashes(); + /** + *
+     * Hash(es) of the build source, which can be used to verify that
+     * the original source integrity was maintained in the build. Note that
+     * `FileHashes` will only be populated if `BuildOptions` has requested a
+     * `SourceProvenanceHash`.
+     * The keys to this map are file paths used as build source and the values
+     * contain the hash values for those files.
+     * If the build source came in a single package such as a gzipped tarfile
+     * (`.tar.gz`), the `FileHash` will be for the single path to that file.
+     * 
+ * + * map<string, .google.events.cloud.build.v1.FileHashes> file_hashes = 4; + */ + java.util.Map + getFileHashesMap(); + /** + *
+     * Hash(es) of the build source, which can be used to verify that
+     * the original source integrity was maintained in the build. Note that
+     * `FileHashes` will only be populated if `BuildOptions` has requested a
+     * `SourceProvenanceHash`.
+     * The keys to this map are file paths used as build source and the values
+     * contain the hash values for those files.
+     * If the build source came in a single package such as a gzipped tarfile
+     * (`.tar.gz`), the `FileHash` will be for the single path to that file.
+     * 
+ * + * map<string, .google.events.cloud.build.v1.FileHashes> file_hashes = 4; + */ + + google.events.cloud.build.v1.Data.FileHashes getFileHashesOrDefault( + java.lang.String key, + google.events.cloud.build.v1.Data.FileHashes defaultValue); + /** + *
+     * Hash(es) of the build source, which can be used to verify that
+     * the original source integrity was maintained in the build. Note that
+     * `FileHashes` will only be populated if `BuildOptions` has requested a
+     * `SourceProvenanceHash`.
+     * The keys to this map are file paths used as build source and the values
+     * contain the hash values for those files.
+     * If the build source came in a single package such as a gzipped tarfile
+     * (`.tar.gz`), the `FileHash` will be for the single path to that file.
+     * 
+ * + * map<string, .google.events.cloud.build.v1.FileHashes> file_hashes = 4; + */ + + google.events.cloud.build.v1.Data.FileHashes getFileHashesOrThrow( + java.lang.String key); + } + /** + *
+   * Provenance of the source. Ways to find the original source, or verify that
+   * some source was used for this build.
+   * 
+ * + * Protobuf type {@code google.events.cloud.build.v1.SourceProvenance} + */ + public static final class SourceProvenance extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.cloud.build.v1.SourceProvenance) + SourceProvenanceOrBuilder { + private static final long serialVersionUID = 0L; + // Use SourceProvenance.newBuilder() to construct. + private SourceProvenance(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SourceProvenance() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SourceProvenance(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SourceProvenance( + 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 26: { + google.events.cloud.build.v1.Data.StorageSource.Builder subBuilder = null; + if (resolvedStorageSource_ != null) { + subBuilder = resolvedStorageSource_.toBuilder(); + } + resolvedStorageSource_ = input.readMessage(google.events.cloud.build.v1.Data.StorageSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resolvedStorageSource_); + resolvedStorageSource_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + fileHashes_ = com.google.protobuf.MapField.newMapField( + FileHashesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + fileHashes__ = input.readMessage( + FileHashesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + fileHashes_.getMutableMap().put( + fileHashes__.getKey(), fileHashes__.getValue()); + break; + } + case 50: { + google.events.cloud.build.v1.Data.RepoSource.Builder subBuilder = null; + if (resolvedRepoSource_ != null) { + subBuilder = resolvedRepoSource_.toBuilder(); + } + resolvedRepoSource_ = input.readMessage(google.events.cloud.build.v1.Data.RepoSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resolvedRepoSource_); + resolvedRepoSource_ = subBuilder.buildPartial(); + } + + 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.build.v1.Data.internal_static_google_events_cloud_build_v1_SourceProvenance_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetFileHashes(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_SourceProvenance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.build.v1.Data.SourceProvenance.class, google.events.cloud.build.v1.Data.SourceProvenance.Builder.class); + } + + public static final int RESOLVED_STORAGE_SOURCE_FIELD_NUMBER = 3; + private google.events.cloud.build.v1.Data.StorageSource resolvedStorageSource_; + /** + *
+     * A copy of the build's `source.storage_source`, if exists, with any
+     * generations resolved.
+     * 
+ * + * .google.events.cloud.build.v1.StorageSource resolved_storage_source = 3; + * @return Whether the resolvedStorageSource field is set. + */ + @java.lang.Override + public boolean hasResolvedStorageSource() { + return resolvedStorageSource_ != null; + } + /** + *
+     * A copy of the build's `source.storage_source`, if exists, with any
+     * generations resolved.
+     * 
+ * + * .google.events.cloud.build.v1.StorageSource resolved_storage_source = 3; + * @return The resolvedStorageSource. + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.StorageSource getResolvedStorageSource() { + return resolvedStorageSource_ == null ? google.events.cloud.build.v1.Data.StorageSource.getDefaultInstance() : resolvedStorageSource_; + } + /** + *
+     * A copy of the build's `source.storage_source`, if exists, with any
+     * generations resolved.
+     * 
+ * + * .google.events.cloud.build.v1.StorageSource resolved_storage_source = 3; + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.StorageSourceOrBuilder getResolvedStorageSourceOrBuilder() { + return getResolvedStorageSource(); + } + + public static final int RESOLVED_REPO_SOURCE_FIELD_NUMBER = 6; + private google.events.cloud.build.v1.Data.RepoSource resolvedRepoSource_; + /** + *
+     * A copy of the build's `source.repo_source`, if exists, with any
+     * revisions resolved.
+     * 
+ * + * .google.events.cloud.build.v1.RepoSource resolved_repo_source = 6; + * @return Whether the resolvedRepoSource field is set. + */ + @java.lang.Override + public boolean hasResolvedRepoSource() { + return resolvedRepoSource_ != null; + } + /** + *
+     * A copy of the build's `source.repo_source`, if exists, with any
+     * revisions resolved.
+     * 
+ * + * .google.events.cloud.build.v1.RepoSource resolved_repo_source = 6; + * @return The resolvedRepoSource. + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.RepoSource getResolvedRepoSource() { + return resolvedRepoSource_ == null ? google.events.cloud.build.v1.Data.RepoSource.getDefaultInstance() : resolvedRepoSource_; + } + /** + *
+     * A copy of the build's `source.repo_source`, if exists, with any
+     * revisions resolved.
+     * 
+ * + * .google.events.cloud.build.v1.RepoSource resolved_repo_source = 6; + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.RepoSourceOrBuilder getResolvedRepoSourceOrBuilder() { + return getResolvedRepoSource(); + } + + public static final int FILE_HASHES_FIELD_NUMBER = 4; + private static final class FileHashesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, google.events.cloud.build.v1.Data.FileHashes> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_SourceProvenance_FileHashesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + google.events.cloud.build.v1.Data.FileHashes.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, google.events.cloud.build.v1.Data.FileHashes> fileHashes_; + private com.google.protobuf.MapField + internalGetFileHashes() { + if (fileHashes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FileHashesDefaultEntryHolder.defaultEntry); + } + return fileHashes_; + } + + public int getFileHashesCount() { + return internalGetFileHashes().getMap().size(); + } + /** + *
+     * Hash(es) of the build source, which can be used to verify that
+     * the original source integrity was maintained in the build. Note that
+     * `FileHashes` will only be populated if `BuildOptions` has requested a
+     * `SourceProvenanceHash`.
+     * The keys to this map are file paths used as build source and the values
+     * contain the hash values for those files.
+     * If the build source came in a single package such as a gzipped tarfile
+     * (`.tar.gz`), the `FileHash` will be for the single path to that file.
+     * 
+ * + * map<string, .google.events.cloud.build.v1.FileHashes> file_hashes = 4; + */ + + @java.lang.Override + public boolean containsFileHashes( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetFileHashes().getMap().containsKey(key); + } + /** + * Use {@link #getFileHashesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getFileHashes() { + return getFileHashesMap(); + } + /** + *
+     * Hash(es) of the build source, which can be used to verify that
+     * the original source integrity was maintained in the build. Note that
+     * `FileHashes` will only be populated if `BuildOptions` has requested a
+     * `SourceProvenanceHash`.
+     * The keys to this map are file paths used as build source and the values
+     * contain the hash values for those files.
+     * If the build source came in a single package such as a gzipped tarfile
+     * (`.tar.gz`), the `FileHash` will be for the single path to that file.
+     * 
+ * + * map<string, .google.events.cloud.build.v1.FileHashes> file_hashes = 4; + */ + @java.lang.Override + + public java.util.Map getFileHashesMap() { + return internalGetFileHashes().getMap(); + } + /** + *
+     * Hash(es) of the build source, which can be used to verify that
+     * the original source integrity was maintained in the build. Note that
+     * `FileHashes` will only be populated if `BuildOptions` has requested a
+     * `SourceProvenanceHash`.
+     * The keys to this map are file paths used as build source and the values
+     * contain the hash values for those files.
+     * If the build source came in a single package such as a gzipped tarfile
+     * (`.tar.gz`), the `FileHash` will be for the single path to that file.
+     * 
+ * + * map<string, .google.events.cloud.build.v1.FileHashes> file_hashes = 4; + */ + @java.lang.Override + + public google.events.cloud.build.v1.Data.FileHashes getFileHashesOrDefault( + java.lang.String key, + google.events.cloud.build.v1.Data.FileHashes defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetFileHashes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Hash(es) of the build source, which can be used to verify that
+     * the original source integrity was maintained in the build. Note that
+     * `FileHashes` will only be populated if `BuildOptions` has requested a
+     * `SourceProvenanceHash`.
+     * The keys to this map are file paths used as build source and the values
+     * contain the hash values for those files.
+     * If the build source came in a single package such as a gzipped tarfile
+     * (`.tar.gz`), the `FileHash` will be for the single path to that file.
+     * 
+ * + * map<string, .google.events.cloud.build.v1.FileHashes> file_hashes = 4; + */ + @java.lang.Override + + public google.events.cloud.build.v1.Data.FileHashes getFileHashesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetFileHashes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (resolvedStorageSource_ != null) { + output.writeMessage(3, getResolvedStorageSource()); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetFileHashes(), + FileHashesDefaultEntryHolder.defaultEntry, + 4); + if (resolvedRepoSource_ != null) { + output.writeMessage(6, getResolvedRepoSource()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resolvedStorageSource_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getResolvedStorageSource()); + } + for (java.util.Map.Entry entry + : internalGetFileHashes().getMap().entrySet()) { + com.google.protobuf.MapEntry + fileHashes__ = FileHashesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, fileHashes__); + } + if (resolvedRepoSource_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getResolvedRepoSource()); + } + 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.build.v1.Data.SourceProvenance)) { + return super.equals(obj); + } + google.events.cloud.build.v1.Data.SourceProvenance other = (google.events.cloud.build.v1.Data.SourceProvenance) obj; + + if (hasResolvedStorageSource() != other.hasResolvedStorageSource()) return false; + if (hasResolvedStorageSource()) { + if (!getResolvedStorageSource() + .equals(other.getResolvedStorageSource())) return false; + } + if (hasResolvedRepoSource() != other.hasResolvedRepoSource()) return false; + if (hasResolvedRepoSource()) { + if (!getResolvedRepoSource() + .equals(other.getResolvedRepoSource())) return false; + } + if (!internalGetFileHashes().equals( + other.internalGetFileHashes())) 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 (hasResolvedStorageSource()) { + hash = (37 * hash) + RESOLVED_STORAGE_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResolvedStorageSource().hashCode(); + } + if (hasResolvedRepoSource()) { + hash = (37 * hash) + RESOLVED_REPO_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResolvedRepoSource().hashCode(); + } + if (!internalGetFileHashes().getMap().isEmpty()) { + hash = (37 * hash) + FILE_HASHES_FIELD_NUMBER; + hash = (53 * hash) + internalGetFileHashes().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static google.events.cloud.build.v1.Data.SourceProvenance parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.SourceProvenance 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.build.v1.Data.SourceProvenance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.SourceProvenance 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.build.v1.Data.SourceProvenance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.SourceProvenance parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.cloud.build.v1.Data.SourceProvenance parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.SourceProvenance 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.build.v1.Data.SourceProvenance parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.SourceProvenance 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.build.v1.Data.SourceProvenance parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.SourceProvenance 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.build.v1.Data.SourceProvenance 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; + } + /** + *
+     * Provenance of the source. Ways to find the original source, or verify that
+     * some source was used for this build.
+     * 
+ * + * Protobuf type {@code google.events.cloud.build.v1.SourceProvenance} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.events.cloud.build.v1.SourceProvenance) + google.events.cloud.build.v1.Data.SourceProvenanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_SourceProvenance_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetFileHashes(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 4: + return internalGetMutableFileHashes(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_SourceProvenance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.build.v1.Data.SourceProvenance.class, google.events.cloud.build.v1.Data.SourceProvenance.Builder.class); + } + + // Construct using google.events.cloud.build.v1.Data.SourceProvenance.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (resolvedStorageSourceBuilder_ == null) { + resolvedStorageSource_ = null; + } else { + resolvedStorageSource_ = null; + resolvedStorageSourceBuilder_ = null; + } + if (resolvedRepoSourceBuilder_ == null) { + resolvedRepoSource_ = null; + } else { + resolvedRepoSource_ = null; + resolvedRepoSourceBuilder_ = null; + } + internalGetMutableFileHashes().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_SourceProvenance_descriptor; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.SourceProvenance getDefaultInstanceForType() { + return google.events.cloud.build.v1.Data.SourceProvenance.getDefaultInstance(); + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.SourceProvenance build() { + google.events.cloud.build.v1.Data.SourceProvenance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.SourceProvenance buildPartial() { + google.events.cloud.build.v1.Data.SourceProvenance result = new google.events.cloud.build.v1.Data.SourceProvenance(this); + int from_bitField0_ = bitField0_; + if (resolvedStorageSourceBuilder_ == null) { + result.resolvedStorageSource_ = resolvedStorageSource_; + } else { + result.resolvedStorageSource_ = resolvedStorageSourceBuilder_.build(); + } + if (resolvedRepoSourceBuilder_ == null) { + result.resolvedRepoSource_ = resolvedRepoSource_; + } else { + result.resolvedRepoSource_ = resolvedRepoSourceBuilder_.build(); + } + result.fileHashes_ = internalGetFileHashes(); + result.fileHashes_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.events.cloud.build.v1.Data.SourceProvenance) { + return mergeFrom((google.events.cloud.build.v1.Data.SourceProvenance)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(google.events.cloud.build.v1.Data.SourceProvenance other) { + if (other == google.events.cloud.build.v1.Data.SourceProvenance.getDefaultInstance()) return this; + if (other.hasResolvedStorageSource()) { + mergeResolvedStorageSource(other.getResolvedStorageSource()); + } + if (other.hasResolvedRepoSource()) { + mergeResolvedRepoSource(other.getResolvedRepoSource()); + } + internalGetMutableFileHashes().mergeFrom( + other.internalGetFileHashes()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.events.cloud.build.v1.Data.SourceProvenance parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.events.cloud.build.v1.Data.SourceProvenance) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private google.events.cloud.build.v1.Data.StorageSource resolvedStorageSource_; + private com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.StorageSource, google.events.cloud.build.v1.Data.StorageSource.Builder, google.events.cloud.build.v1.Data.StorageSourceOrBuilder> resolvedStorageSourceBuilder_; + /** + *
+       * A copy of the build's `source.storage_source`, if exists, with any
+       * generations resolved.
+       * 
+ * + * .google.events.cloud.build.v1.StorageSource resolved_storage_source = 3; + * @return Whether the resolvedStorageSource field is set. + */ + public boolean hasResolvedStorageSource() { + return resolvedStorageSourceBuilder_ != null || resolvedStorageSource_ != null; + } + /** + *
+       * A copy of the build's `source.storage_source`, if exists, with any
+       * generations resolved.
+       * 
+ * + * .google.events.cloud.build.v1.StorageSource resolved_storage_source = 3; + * @return The resolvedStorageSource. + */ + public google.events.cloud.build.v1.Data.StorageSource getResolvedStorageSource() { + if (resolvedStorageSourceBuilder_ == null) { + return resolvedStorageSource_ == null ? google.events.cloud.build.v1.Data.StorageSource.getDefaultInstance() : resolvedStorageSource_; + } else { + return resolvedStorageSourceBuilder_.getMessage(); + } + } + /** + *
+       * A copy of the build's `source.storage_source`, if exists, with any
+       * generations resolved.
+       * 
+ * + * .google.events.cloud.build.v1.StorageSource resolved_storage_source = 3; + */ + public Builder setResolvedStorageSource(google.events.cloud.build.v1.Data.StorageSource value) { + if (resolvedStorageSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resolvedStorageSource_ = value; + onChanged(); + } else { + resolvedStorageSourceBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * A copy of the build's `source.storage_source`, if exists, with any
+       * generations resolved.
+       * 
+ * + * .google.events.cloud.build.v1.StorageSource resolved_storage_source = 3; + */ + public Builder setResolvedStorageSource( + google.events.cloud.build.v1.Data.StorageSource.Builder builderForValue) { + if (resolvedStorageSourceBuilder_ == null) { + resolvedStorageSource_ = builderForValue.build(); + onChanged(); + } else { + resolvedStorageSourceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * A copy of the build's `source.storage_source`, if exists, with any
+       * generations resolved.
+       * 
+ * + * .google.events.cloud.build.v1.StorageSource resolved_storage_source = 3; + */ + public Builder mergeResolvedStorageSource(google.events.cloud.build.v1.Data.StorageSource value) { + if (resolvedStorageSourceBuilder_ == null) { + if (resolvedStorageSource_ != null) { + resolvedStorageSource_ = + google.events.cloud.build.v1.Data.StorageSource.newBuilder(resolvedStorageSource_).mergeFrom(value).buildPartial(); + } else { + resolvedStorageSource_ = value; + } + onChanged(); + } else { + resolvedStorageSourceBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * A copy of the build's `source.storage_source`, if exists, with any
+       * generations resolved.
+       * 
+ * + * .google.events.cloud.build.v1.StorageSource resolved_storage_source = 3; + */ + public Builder clearResolvedStorageSource() { + if (resolvedStorageSourceBuilder_ == null) { + resolvedStorageSource_ = null; + onChanged(); + } else { + resolvedStorageSource_ = null; + resolvedStorageSourceBuilder_ = null; + } + + return this; + } + /** + *
+       * A copy of the build's `source.storage_source`, if exists, with any
+       * generations resolved.
+       * 
+ * + * .google.events.cloud.build.v1.StorageSource resolved_storage_source = 3; + */ + public google.events.cloud.build.v1.Data.StorageSource.Builder getResolvedStorageSourceBuilder() { + + onChanged(); + return getResolvedStorageSourceFieldBuilder().getBuilder(); + } + /** + *
+       * A copy of the build's `source.storage_source`, if exists, with any
+       * generations resolved.
+       * 
+ * + * .google.events.cloud.build.v1.StorageSource resolved_storage_source = 3; + */ + public google.events.cloud.build.v1.Data.StorageSourceOrBuilder getResolvedStorageSourceOrBuilder() { + if (resolvedStorageSourceBuilder_ != null) { + return resolvedStorageSourceBuilder_.getMessageOrBuilder(); + } else { + return resolvedStorageSource_ == null ? + google.events.cloud.build.v1.Data.StorageSource.getDefaultInstance() : resolvedStorageSource_; + } + } + /** + *
+       * A copy of the build's `source.storage_source`, if exists, with any
+       * generations resolved.
+       * 
+ * + * .google.events.cloud.build.v1.StorageSource resolved_storage_source = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.StorageSource, google.events.cloud.build.v1.Data.StorageSource.Builder, google.events.cloud.build.v1.Data.StorageSourceOrBuilder> + getResolvedStorageSourceFieldBuilder() { + if (resolvedStorageSourceBuilder_ == null) { + resolvedStorageSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.StorageSource, google.events.cloud.build.v1.Data.StorageSource.Builder, google.events.cloud.build.v1.Data.StorageSourceOrBuilder>( + getResolvedStorageSource(), + getParentForChildren(), + isClean()); + resolvedStorageSource_ = null; + } + return resolvedStorageSourceBuilder_; + } + + private google.events.cloud.build.v1.Data.RepoSource resolvedRepoSource_; + private com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.RepoSource, google.events.cloud.build.v1.Data.RepoSource.Builder, google.events.cloud.build.v1.Data.RepoSourceOrBuilder> resolvedRepoSourceBuilder_; + /** + *
+       * A copy of the build's `source.repo_source`, if exists, with any
+       * revisions resolved.
+       * 
+ * + * .google.events.cloud.build.v1.RepoSource resolved_repo_source = 6; + * @return Whether the resolvedRepoSource field is set. + */ + public boolean hasResolvedRepoSource() { + return resolvedRepoSourceBuilder_ != null || resolvedRepoSource_ != null; + } + /** + *
+       * A copy of the build's `source.repo_source`, if exists, with any
+       * revisions resolved.
+       * 
+ * + * .google.events.cloud.build.v1.RepoSource resolved_repo_source = 6; + * @return The resolvedRepoSource. + */ + public google.events.cloud.build.v1.Data.RepoSource getResolvedRepoSource() { + if (resolvedRepoSourceBuilder_ == null) { + return resolvedRepoSource_ == null ? google.events.cloud.build.v1.Data.RepoSource.getDefaultInstance() : resolvedRepoSource_; + } else { + return resolvedRepoSourceBuilder_.getMessage(); + } + } + /** + *
+       * A copy of the build's `source.repo_source`, if exists, with any
+       * revisions resolved.
+       * 
+ * + * .google.events.cloud.build.v1.RepoSource resolved_repo_source = 6; + */ + public Builder setResolvedRepoSource(google.events.cloud.build.v1.Data.RepoSource value) { + if (resolvedRepoSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resolvedRepoSource_ = value; + onChanged(); + } else { + resolvedRepoSourceBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * A copy of the build's `source.repo_source`, if exists, with any
+       * revisions resolved.
+       * 
+ * + * .google.events.cloud.build.v1.RepoSource resolved_repo_source = 6; + */ + public Builder setResolvedRepoSource( + google.events.cloud.build.v1.Data.RepoSource.Builder builderForValue) { + if (resolvedRepoSourceBuilder_ == null) { + resolvedRepoSource_ = builderForValue.build(); + onChanged(); + } else { + resolvedRepoSourceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * A copy of the build's `source.repo_source`, if exists, with any
+       * revisions resolved.
+       * 
+ * + * .google.events.cloud.build.v1.RepoSource resolved_repo_source = 6; + */ + public Builder mergeResolvedRepoSource(google.events.cloud.build.v1.Data.RepoSource value) { + if (resolvedRepoSourceBuilder_ == null) { + if (resolvedRepoSource_ != null) { + resolvedRepoSource_ = + google.events.cloud.build.v1.Data.RepoSource.newBuilder(resolvedRepoSource_).mergeFrom(value).buildPartial(); + } else { + resolvedRepoSource_ = value; + } + onChanged(); + } else { + resolvedRepoSourceBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * A copy of the build's `source.repo_source`, if exists, with any
+       * revisions resolved.
+       * 
+ * + * .google.events.cloud.build.v1.RepoSource resolved_repo_source = 6; + */ + public Builder clearResolvedRepoSource() { + if (resolvedRepoSourceBuilder_ == null) { + resolvedRepoSource_ = null; + onChanged(); + } else { + resolvedRepoSource_ = null; + resolvedRepoSourceBuilder_ = null; + } + + return this; + } + /** + *
+       * A copy of the build's `source.repo_source`, if exists, with any
+       * revisions resolved.
+       * 
+ * + * .google.events.cloud.build.v1.RepoSource resolved_repo_source = 6; + */ + public google.events.cloud.build.v1.Data.RepoSource.Builder getResolvedRepoSourceBuilder() { + + onChanged(); + return getResolvedRepoSourceFieldBuilder().getBuilder(); + } + /** + *
+       * A copy of the build's `source.repo_source`, if exists, with any
+       * revisions resolved.
+       * 
+ * + * .google.events.cloud.build.v1.RepoSource resolved_repo_source = 6; + */ + public google.events.cloud.build.v1.Data.RepoSourceOrBuilder getResolvedRepoSourceOrBuilder() { + if (resolvedRepoSourceBuilder_ != null) { + return resolvedRepoSourceBuilder_.getMessageOrBuilder(); + } else { + return resolvedRepoSource_ == null ? + google.events.cloud.build.v1.Data.RepoSource.getDefaultInstance() : resolvedRepoSource_; + } + } + /** + *
+       * A copy of the build's `source.repo_source`, if exists, with any
+       * revisions resolved.
+       * 
+ * + * .google.events.cloud.build.v1.RepoSource resolved_repo_source = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.RepoSource, google.events.cloud.build.v1.Data.RepoSource.Builder, google.events.cloud.build.v1.Data.RepoSourceOrBuilder> + getResolvedRepoSourceFieldBuilder() { + if (resolvedRepoSourceBuilder_ == null) { + resolvedRepoSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + google.events.cloud.build.v1.Data.RepoSource, google.events.cloud.build.v1.Data.RepoSource.Builder, google.events.cloud.build.v1.Data.RepoSourceOrBuilder>( + getResolvedRepoSource(), + getParentForChildren(), + isClean()); + resolvedRepoSource_ = null; + } + return resolvedRepoSourceBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, google.events.cloud.build.v1.Data.FileHashes> fileHashes_; + private com.google.protobuf.MapField + internalGetFileHashes() { + if (fileHashes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FileHashesDefaultEntryHolder.defaultEntry); + } + return fileHashes_; + } + private com.google.protobuf.MapField + internalGetMutableFileHashes() { + onChanged();; + if (fileHashes_ == null) { + fileHashes_ = com.google.protobuf.MapField.newMapField( + FileHashesDefaultEntryHolder.defaultEntry); + } + if (!fileHashes_.isMutable()) { + fileHashes_ = fileHashes_.copy(); + } + return fileHashes_; + } + + public int getFileHashesCount() { + return internalGetFileHashes().getMap().size(); + } + /** + *
+       * Hash(es) of the build source, which can be used to verify that
+       * the original source integrity was maintained in the build. Note that
+       * `FileHashes` will only be populated if `BuildOptions` has requested a
+       * `SourceProvenanceHash`.
+       * The keys to this map are file paths used as build source and the values
+       * contain the hash values for those files.
+       * If the build source came in a single package such as a gzipped tarfile
+       * (`.tar.gz`), the `FileHash` will be for the single path to that file.
+       * 
+ * + * map<string, .google.events.cloud.build.v1.FileHashes> file_hashes = 4; + */ + + @java.lang.Override + public boolean containsFileHashes( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetFileHashes().getMap().containsKey(key); + } + /** + * Use {@link #getFileHashesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getFileHashes() { + return getFileHashesMap(); + } + /** + *
+       * Hash(es) of the build source, which can be used to verify that
+       * the original source integrity was maintained in the build. Note that
+       * `FileHashes` will only be populated if `BuildOptions` has requested a
+       * `SourceProvenanceHash`.
+       * The keys to this map are file paths used as build source and the values
+       * contain the hash values for those files.
+       * If the build source came in a single package such as a gzipped tarfile
+       * (`.tar.gz`), the `FileHash` will be for the single path to that file.
+       * 
+ * + * map<string, .google.events.cloud.build.v1.FileHashes> file_hashes = 4; + */ + @java.lang.Override + + public java.util.Map getFileHashesMap() { + return internalGetFileHashes().getMap(); + } + /** + *
+       * Hash(es) of the build source, which can be used to verify that
+       * the original source integrity was maintained in the build. Note that
+       * `FileHashes` will only be populated if `BuildOptions` has requested a
+       * `SourceProvenanceHash`.
+       * The keys to this map are file paths used as build source and the values
+       * contain the hash values for those files.
+       * If the build source came in a single package such as a gzipped tarfile
+       * (`.tar.gz`), the `FileHash` will be for the single path to that file.
+       * 
+ * + * map<string, .google.events.cloud.build.v1.FileHashes> file_hashes = 4; + */ + @java.lang.Override + + public google.events.cloud.build.v1.Data.FileHashes getFileHashesOrDefault( + java.lang.String key, + google.events.cloud.build.v1.Data.FileHashes defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetFileHashes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Hash(es) of the build source, which can be used to verify that
+       * the original source integrity was maintained in the build. Note that
+       * `FileHashes` will only be populated if `BuildOptions` has requested a
+       * `SourceProvenanceHash`.
+       * The keys to this map are file paths used as build source and the values
+       * contain the hash values for those files.
+       * If the build source came in a single package such as a gzipped tarfile
+       * (`.tar.gz`), the `FileHash` will be for the single path to that file.
+       * 
+ * + * map<string, .google.events.cloud.build.v1.FileHashes> file_hashes = 4; + */ + @java.lang.Override + + public google.events.cloud.build.v1.Data.FileHashes getFileHashesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetFileHashes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearFileHashes() { + internalGetMutableFileHashes().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Hash(es) of the build source, which can be used to verify that
+       * the original source integrity was maintained in the build. Note that
+       * `FileHashes` will only be populated if `BuildOptions` has requested a
+       * `SourceProvenanceHash`.
+       * The keys to this map are file paths used as build source and the values
+       * contain the hash values for those files.
+       * If the build source came in a single package such as a gzipped tarfile
+       * (`.tar.gz`), the `FileHash` will be for the single path to that file.
+       * 
+ * + * map<string, .google.events.cloud.build.v1.FileHashes> file_hashes = 4; + */ + + public Builder removeFileHashes( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableFileHashes().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableFileHashes() { + return internalGetMutableFileHashes().getMutableMap(); + } + /** + *
+       * Hash(es) of the build source, which can be used to verify that
+       * the original source integrity was maintained in the build. Note that
+       * `FileHashes` will only be populated if `BuildOptions` has requested a
+       * `SourceProvenanceHash`.
+       * The keys to this map are file paths used as build source and the values
+       * contain the hash values for those files.
+       * If the build source came in a single package such as a gzipped tarfile
+       * (`.tar.gz`), the `FileHash` will be for the single path to that file.
+       * 
+ * + * map<string, .google.events.cloud.build.v1.FileHashes> file_hashes = 4; + */ + public Builder putFileHashes( + java.lang.String key, + google.events.cloud.build.v1.Data.FileHashes value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableFileHashes().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Hash(es) of the build source, which can be used to verify that
+       * the original source integrity was maintained in the build. Note that
+       * `FileHashes` will only be populated if `BuildOptions` has requested a
+       * `SourceProvenanceHash`.
+       * The keys to this map are file paths used as build source and the values
+       * contain the hash values for those files.
+       * If the build source came in a single package such as a gzipped tarfile
+       * (`.tar.gz`), the `FileHash` will be for the single path to that file.
+       * 
+ * + * map<string, .google.events.cloud.build.v1.FileHashes> file_hashes = 4; + */ + + public Builder putAllFileHashes( + java.util.Map values) { + internalGetMutableFileHashes().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.events.cloud.build.v1.SourceProvenance) + } + + // @@protoc_insertion_point(class_scope:google.events.cloud.build.v1.SourceProvenance) + private static final google.events.cloud.build.v1.Data.SourceProvenance DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new google.events.cloud.build.v1.Data.SourceProvenance(); + } + + public static google.events.cloud.build.v1.Data.SourceProvenance getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SourceProvenance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SourceProvenance(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.SourceProvenance getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface FileHashesOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.cloud.build.v1.FileHashes) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Collection of file hashes.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Hash file_hash = 1; + */ + java.util.List + getFileHashList(); + /** + *
+     * Collection of file hashes.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Hash file_hash = 1; + */ + google.events.cloud.build.v1.Data.Hash getFileHash(int index); + /** + *
+     * Collection of file hashes.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Hash file_hash = 1; + */ + int getFileHashCount(); + /** + *
+     * Collection of file hashes.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Hash file_hash = 1; + */ + java.util.List + getFileHashOrBuilderList(); + /** + *
+     * Collection of file hashes.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Hash file_hash = 1; + */ + google.events.cloud.build.v1.Data.HashOrBuilder getFileHashOrBuilder( + int index); + } + /** + *
+   * Container message for hashes of byte content of files, used in
+   * SourceProvenance messages to verify integrity of source input to the build.
+   * 
+ * + * Protobuf type {@code google.events.cloud.build.v1.FileHashes} + */ + public static final class FileHashes extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.cloud.build.v1.FileHashes) + FileHashesOrBuilder { + private static final long serialVersionUID = 0L; + // Use FileHashes.newBuilder() to construct. + private FileHashes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FileHashes() { + fileHash_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FileHashes(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FileHashes( + 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)) { + fileHash_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + fileHash_.add( + input.readMessage(google.events.cloud.build.v1.Data.Hash.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + fileHash_ = java.util.Collections.unmodifiableList(fileHash_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_FileHashes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_FileHashes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.build.v1.Data.FileHashes.class, google.events.cloud.build.v1.Data.FileHashes.Builder.class); + } + + public static final int FILE_HASH_FIELD_NUMBER = 1; + private java.util.List fileHash_; + /** + *
+     * Collection of file hashes.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Hash file_hash = 1; + */ + @java.lang.Override + public java.util.List getFileHashList() { + return fileHash_; + } + /** + *
+     * Collection of file hashes.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Hash file_hash = 1; + */ + @java.lang.Override + public java.util.List + getFileHashOrBuilderList() { + return fileHash_; + } + /** + *
+     * Collection of file hashes.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Hash file_hash = 1; + */ + @java.lang.Override + public int getFileHashCount() { + return fileHash_.size(); + } + /** + *
+     * Collection of file hashes.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Hash file_hash = 1; + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.Hash getFileHash(int index) { + return fileHash_.get(index); + } + /** + *
+     * Collection of file hashes.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Hash file_hash = 1; + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.HashOrBuilder getFileHashOrBuilder( + int index) { + return fileHash_.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 < fileHash_.size(); i++) { + output.writeMessage(1, fileHash_.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 < fileHash_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, fileHash_.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.build.v1.Data.FileHashes)) { + return super.equals(obj); + } + google.events.cloud.build.v1.Data.FileHashes other = (google.events.cloud.build.v1.Data.FileHashes) obj; + + if (!getFileHashList() + .equals(other.getFileHashList())) 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 (getFileHashCount() > 0) { + hash = (37 * hash) + FILE_HASH_FIELD_NUMBER; + hash = (53 * hash) + getFileHashList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static google.events.cloud.build.v1.Data.FileHashes parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.FileHashes 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.build.v1.Data.FileHashes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.FileHashes 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.build.v1.Data.FileHashes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.FileHashes parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.cloud.build.v1.Data.FileHashes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.FileHashes 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.build.v1.Data.FileHashes parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.FileHashes 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.build.v1.Data.FileHashes parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.FileHashes 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.build.v1.Data.FileHashes 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; + } + /** + *
+     * Container message for hashes of byte content of files, used in
+     * SourceProvenance messages to verify integrity of source input to the build.
+     * 
+ * + * Protobuf type {@code google.events.cloud.build.v1.FileHashes} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.events.cloud.build.v1.FileHashes) + google.events.cloud.build.v1.Data.FileHashesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_FileHashes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_FileHashes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.build.v1.Data.FileHashes.class, google.events.cloud.build.v1.Data.FileHashes.Builder.class); + } + + // Construct using google.events.cloud.build.v1.Data.FileHashes.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getFileHashFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (fileHashBuilder_ == null) { + fileHash_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + fileHashBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_FileHashes_descriptor; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.FileHashes getDefaultInstanceForType() { + return google.events.cloud.build.v1.Data.FileHashes.getDefaultInstance(); + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.FileHashes build() { + google.events.cloud.build.v1.Data.FileHashes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.FileHashes buildPartial() { + google.events.cloud.build.v1.Data.FileHashes result = new google.events.cloud.build.v1.Data.FileHashes(this); + int from_bitField0_ = bitField0_; + if (fileHashBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + fileHash_ = java.util.Collections.unmodifiableList(fileHash_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.fileHash_ = fileHash_; + } else { + result.fileHash_ = fileHashBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.events.cloud.build.v1.Data.FileHashes) { + return mergeFrom((google.events.cloud.build.v1.Data.FileHashes)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(google.events.cloud.build.v1.Data.FileHashes other) { + if (other == google.events.cloud.build.v1.Data.FileHashes.getDefaultInstance()) return this; + if (fileHashBuilder_ == null) { + if (!other.fileHash_.isEmpty()) { + if (fileHash_.isEmpty()) { + fileHash_ = other.fileHash_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFileHashIsMutable(); + fileHash_.addAll(other.fileHash_); + } + onChanged(); + } + } else { + if (!other.fileHash_.isEmpty()) { + if (fileHashBuilder_.isEmpty()) { + fileHashBuilder_.dispose(); + fileHashBuilder_ = null; + fileHash_ = other.fileHash_; + bitField0_ = (bitField0_ & ~0x00000001); + fileHashBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFileHashFieldBuilder() : null; + } else { + fileHashBuilder_.addAllMessages(other.fileHash_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.events.cloud.build.v1.Data.FileHashes parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.events.cloud.build.v1.Data.FileHashes) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List fileHash_ = + java.util.Collections.emptyList(); + private void ensureFileHashIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + fileHash_ = new java.util.ArrayList(fileHash_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + google.events.cloud.build.v1.Data.Hash, google.events.cloud.build.v1.Data.Hash.Builder, google.events.cloud.build.v1.Data.HashOrBuilder> fileHashBuilder_; + + /** + *
+       * Collection of file hashes.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Hash file_hash = 1; + */ + public java.util.List getFileHashList() { + if (fileHashBuilder_ == null) { + return java.util.Collections.unmodifiableList(fileHash_); + } else { + return fileHashBuilder_.getMessageList(); + } + } + /** + *
+       * Collection of file hashes.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Hash file_hash = 1; + */ + public int getFileHashCount() { + if (fileHashBuilder_ == null) { + return fileHash_.size(); + } else { + return fileHashBuilder_.getCount(); + } + } + /** + *
+       * Collection of file hashes.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Hash file_hash = 1; + */ + public google.events.cloud.build.v1.Data.Hash getFileHash(int index) { + if (fileHashBuilder_ == null) { + return fileHash_.get(index); + } else { + return fileHashBuilder_.getMessage(index); + } + } + /** + *
+       * Collection of file hashes.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Hash file_hash = 1; + */ + public Builder setFileHash( + int index, google.events.cloud.build.v1.Data.Hash value) { + if (fileHashBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFileHashIsMutable(); + fileHash_.set(index, value); + onChanged(); + } else { + fileHashBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Collection of file hashes.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Hash file_hash = 1; + */ + public Builder setFileHash( + int index, google.events.cloud.build.v1.Data.Hash.Builder builderForValue) { + if (fileHashBuilder_ == null) { + ensureFileHashIsMutable(); + fileHash_.set(index, builderForValue.build()); + onChanged(); + } else { + fileHashBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Collection of file hashes.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Hash file_hash = 1; + */ + public Builder addFileHash(google.events.cloud.build.v1.Data.Hash value) { + if (fileHashBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFileHashIsMutable(); + fileHash_.add(value); + onChanged(); + } else { + fileHashBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Collection of file hashes.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Hash file_hash = 1; + */ + public Builder addFileHash( + int index, google.events.cloud.build.v1.Data.Hash value) { + if (fileHashBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFileHashIsMutable(); + fileHash_.add(index, value); + onChanged(); + } else { + fileHashBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Collection of file hashes.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Hash file_hash = 1; + */ + public Builder addFileHash( + google.events.cloud.build.v1.Data.Hash.Builder builderForValue) { + if (fileHashBuilder_ == null) { + ensureFileHashIsMutable(); + fileHash_.add(builderForValue.build()); + onChanged(); + } else { + fileHashBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Collection of file hashes.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Hash file_hash = 1; + */ + public Builder addFileHash( + int index, google.events.cloud.build.v1.Data.Hash.Builder builderForValue) { + if (fileHashBuilder_ == null) { + ensureFileHashIsMutable(); + fileHash_.add(index, builderForValue.build()); + onChanged(); + } else { + fileHashBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Collection of file hashes.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Hash file_hash = 1; + */ + public Builder addAllFileHash( + java.lang.Iterable values) { + if (fileHashBuilder_ == null) { + ensureFileHashIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fileHash_); + onChanged(); + } else { + fileHashBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Collection of file hashes.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Hash file_hash = 1; + */ + public Builder clearFileHash() { + if (fileHashBuilder_ == null) { + fileHash_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + fileHashBuilder_.clear(); + } + return this; + } + /** + *
+       * Collection of file hashes.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Hash file_hash = 1; + */ + public Builder removeFileHash(int index) { + if (fileHashBuilder_ == null) { + ensureFileHashIsMutable(); + fileHash_.remove(index); + onChanged(); + } else { + fileHashBuilder_.remove(index); + } + return this; + } + /** + *
+       * Collection of file hashes.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Hash file_hash = 1; + */ + public google.events.cloud.build.v1.Data.Hash.Builder getFileHashBuilder( + int index) { + return getFileHashFieldBuilder().getBuilder(index); + } + /** + *
+       * Collection of file hashes.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Hash file_hash = 1; + */ + public google.events.cloud.build.v1.Data.HashOrBuilder getFileHashOrBuilder( + int index) { + if (fileHashBuilder_ == null) { + return fileHash_.get(index); } else { + return fileHashBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Collection of file hashes.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Hash file_hash = 1; + */ + public java.util.List + getFileHashOrBuilderList() { + if (fileHashBuilder_ != null) { + return fileHashBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(fileHash_); + } + } + /** + *
+       * Collection of file hashes.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Hash file_hash = 1; + */ + public google.events.cloud.build.v1.Data.Hash.Builder addFileHashBuilder() { + return getFileHashFieldBuilder().addBuilder( + google.events.cloud.build.v1.Data.Hash.getDefaultInstance()); + } + /** + *
+       * Collection of file hashes.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Hash file_hash = 1; + */ + public google.events.cloud.build.v1.Data.Hash.Builder addFileHashBuilder( + int index) { + return getFileHashFieldBuilder().addBuilder( + index, google.events.cloud.build.v1.Data.Hash.getDefaultInstance()); + } + /** + *
+       * Collection of file hashes.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Hash file_hash = 1; + */ + public java.util.List + getFileHashBuilderList() { + return getFileHashFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + google.events.cloud.build.v1.Data.Hash, google.events.cloud.build.v1.Data.Hash.Builder, google.events.cloud.build.v1.Data.HashOrBuilder> + getFileHashFieldBuilder() { + if (fileHashBuilder_ == null) { + fileHashBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + google.events.cloud.build.v1.Data.Hash, google.events.cloud.build.v1.Data.Hash.Builder, google.events.cloud.build.v1.Data.HashOrBuilder>( + fileHash_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + fileHash_ = null; + } + return fileHashBuilder_; + } + @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.build.v1.FileHashes) + } + + // @@protoc_insertion_point(class_scope:google.events.cloud.build.v1.FileHashes) + private static final google.events.cloud.build.v1.Data.FileHashes DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new google.events.cloud.build.v1.Data.FileHashes(); + } + + public static google.events.cloud.build.v1.Data.FileHashes getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FileHashes parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FileHashes(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.FileHashes getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface HashOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.cloud.build.v1.Hash) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The type of hash that was performed.
+     * 
+ * + * .google.events.cloud.build.v1.Hash.HashType type = 1; + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + *
+     * The type of hash that was performed.
+     * 
+ * + * .google.events.cloud.build.v1.Hash.HashType type = 1; + * @return The type. + */ + google.events.cloud.build.v1.Data.Hash.HashType getType(); + + /** + *
+     * The hash value.
+     * 
+ * + * bytes value = 2; + * @return The value. + */ + com.google.protobuf.ByteString getValue(); + } + /** + *
+   * Container message for hash values.
+   * 
+ * + * Protobuf type {@code google.events.cloud.build.v1.Hash} + */ + public static final class Hash extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.cloud.build.v1.Hash) + HashOrBuilder { + private static final long serialVersionUID = 0L; + // Use Hash.newBuilder() to construct. + private Hash(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Hash() { + type_ = 0; + value_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Hash(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Hash( + 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: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 18: { + + value_ = 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.build.v1.Data.internal_static_google_events_cloud_build_v1_Hash_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_Hash_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.build.v1.Data.Hash.class, google.events.cloud.build.v1.Data.Hash.Builder.class); + } + + /** + *
+     * Specifies the hash algorithm, if any.
+     * 
+ * + * Protobuf enum {@code google.events.cloud.build.v1.Hash.HashType} + */ + public enum HashType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * No hash requested.
+       * 
+ * + * NONE = 0; + */ + NONE(0), + /** + *
+       * Use a sha256 hash.
+       * 
+ * + * SHA256 = 1; + */ + SHA256(1), + /** + *
+       * Use a md5 hash.
+       * 
+ * + * MD5 = 2; + */ + MD5(2), + UNRECOGNIZED(-1), + ; + + /** + *
+       * No hash requested.
+       * 
+ * + * NONE = 0; + */ + public static final int NONE_VALUE = 0; + /** + *
+       * Use a sha256 hash.
+       * 
+ * + * SHA256 = 1; + */ + public static final int SHA256_VALUE = 1; + /** + *
+       * Use a md5 hash.
+       * 
+ * + * MD5 = 2; + */ + public static final int MD5_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static HashType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static HashType forNumber(int value) { + switch (value) { + case 0: return NONE; + case 1: return SHA256; + case 2: return MD5; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + HashType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HashType findValueByNumber(int number) { + return HashType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return google.events.cloud.build.v1.Data.Hash.getDescriptor().getEnumTypes().get(0); + } + + private static final HashType[] VALUES = values(); + + public static HashType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private HashType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.events.cloud.build.v1.Hash.HashType) + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + *
+     * The type of hash that was performed.
+     * 
+ * + * .google.events.cloud.build.v1.Hash.HashType type = 1; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + *
+     * The type of hash that was performed.
+     * 
+ * + * .google.events.cloud.build.v1.Hash.HashType type = 1; + * @return The type. + */ + @java.lang.Override public google.events.cloud.build.v1.Data.Hash.HashType getType() { + @SuppressWarnings("deprecation") + google.events.cloud.build.v1.Data.Hash.HashType result = google.events.cloud.build.v1.Data.Hash.HashType.valueOf(type_); + return result == null ? google.events.cloud.build.v1.Data.Hash.HashType.UNRECOGNIZED : result; + } + + public static final int VALUE_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString value_; + /** + *
+     * The hash value.
+     * 
+ * + * bytes value = 2; + * @return The value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValue() { + return value_; + } + + 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 (type_ != google.events.cloud.build.v1.Data.Hash.HashType.NONE.getNumber()) { + output.writeEnum(1, type_); + } + if (!value_.isEmpty()) { + output.writeBytes(2, value_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ != google.events.cloud.build.v1.Data.Hash.HashType.NONE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); + } + if (!value_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, value_); + } + 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.build.v1.Data.Hash)) { + return super.equals(obj); + } + google.events.cloud.build.v1.Data.Hash other = (google.events.cloud.build.v1.Data.Hash) obj; + + if (type_ != other.type_) return false; + if (!getValue() + .equals(other.getValue())) 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) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static google.events.cloud.build.v1.Data.Hash parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.Hash 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.build.v1.Data.Hash parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.Hash 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.build.v1.Data.Hash parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.Hash parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.cloud.build.v1.Data.Hash parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.Hash 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.build.v1.Data.Hash parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.Hash 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.build.v1.Data.Hash parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.Hash 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.build.v1.Data.Hash 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; + } + /** + *
+     * Container message for hash values.
+     * 
+ * + * Protobuf type {@code google.events.cloud.build.v1.Hash} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.events.cloud.build.v1.Hash) + google.events.cloud.build.v1.Data.HashOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_Hash_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_Hash_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.build.v1.Data.Hash.class, google.events.cloud.build.v1.Data.Hash.Builder.class); + } + + // Construct using google.events.cloud.build.v1.Data.Hash.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = 0; + + value_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_Hash_descriptor; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.Hash getDefaultInstanceForType() { + return google.events.cloud.build.v1.Data.Hash.getDefaultInstance(); + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.Hash build() { + google.events.cloud.build.v1.Data.Hash result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.Hash buildPartial() { + google.events.cloud.build.v1.Data.Hash result = new google.events.cloud.build.v1.Data.Hash(this); + result.type_ = type_; + result.value_ = value_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.events.cloud.build.v1.Data.Hash) { + return mergeFrom((google.events.cloud.build.v1.Data.Hash)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(google.events.cloud.build.v1.Data.Hash other) { + if (other == google.events.cloud.build.v1.Data.Hash.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { + setValue(other.getValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.events.cloud.build.v1.Data.Hash parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.events.cloud.build.v1.Data.Hash) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int type_ = 0; + /** + *
+       * The type of hash that was performed.
+       * 
+ * + * .google.events.cloud.build.v1.Hash.HashType type = 1; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + *
+       * The type of hash that was performed.
+       * 
+ * + * .google.events.cloud.build.v1.Hash.HashType type = 1; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + + type_ = value; + onChanged(); + return this; + } + /** + *
+       * The type of hash that was performed.
+       * 
+ * + * .google.events.cloud.build.v1.Hash.HashType type = 1; + * @return The type. + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.Hash.HashType getType() { + @SuppressWarnings("deprecation") + google.events.cloud.build.v1.Data.Hash.HashType result = google.events.cloud.build.v1.Data.Hash.HashType.valueOf(type_); + return result == null ? google.events.cloud.build.v1.Data.Hash.HashType.UNRECOGNIZED : result; + } + /** + *
+       * The type of hash that was performed.
+       * 
+ * + * .google.events.cloud.build.v1.Hash.HashType type = 1; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(google.events.cloud.build.v1.Data.Hash.HashType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * The type of hash that was performed.
+       * 
+ * + * .google.events.cloud.build.v1.Hash.HashType type = 1; + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+       * The hash value.
+       * 
+ * + * bytes value = 2; + * @return The value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValue() { + return value_; + } + /** + *
+       * The hash value.
+       * 
+ * + * bytes value = 2; + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + *
+       * The hash value.
+       * 
+ * + * bytes value = 2; + * @return This builder for chaining. + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + 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.build.v1.Hash) + } + + // @@protoc_insertion_point(class_scope:google.events.cloud.build.v1.Hash) + private static final google.events.cloud.build.v1.Data.Hash DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new google.events.cloud.build.v1.Data.Hash(); + } + + public static google.events.cloud.build.v1.Data.Hash getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Hash parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Hash(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.Hash getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SecretOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.cloud.build.v1.Secret) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Cloud KMS key name to use to decrypt these envs.
+     * 
+ * + * string kms_key_name = 1; + * @return The kmsKeyName. + */ + java.lang.String getKmsKeyName(); + /** + *
+     * Cloud KMS key name to use to decrypt these envs.
+     * 
+ * + * string kms_key_name = 1; + * @return The bytes for kmsKeyName. + */ + com.google.protobuf.ByteString + getKmsKeyNameBytes(); + + /** + *
+     * Map of environment variable name to its encrypted value.
+     * Secret environment variables must be unique across all of a build's
+     * secrets, and must be used by at least one build step. Values can be at most
+     * 64 KB in size. There can be at most 100 secret values across all of a
+     * build's secrets.
+     * 
+ * + * map<string, bytes> secret_env = 3; + */ + int getSecretEnvCount(); + /** + *
+     * Map of environment variable name to its encrypted value.
+     * Secret environment variables must be unique across all of a build's
+     * secrets, and must be used by at least one build step. Values can be at most
+     * 64 KB in size. There can be at most 100 secret values across all of a
+     * build's secrets.
+     * 
+ * + * map<string, bytes> secret_env = 3; + */ + boolean containsSecretEnv( + java.lang.String key); + /** + * Use {@link #getSecretEnvMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getSecretEnv(); + /** + *
+     * Map of environment variable name to its encrypted value.
+     * Secret environment variables must be unique across all of a build's
+     * secrets, and must be used by at least one build step. Values can be at most
+     * 64 KB in size. There can be at most 100 secret values across all of a
+     * build's secrets.
+     * 
+ * + * map<string, bytes> secret_env = 3; + */ + java.util.Map + getSecretEnvMap(); + /** + *
+     * Map of environment variable name to its encrypted value.
+     * Secret environment variables must be unique across all of a build's
+     * secrets, and must be used by at least one build step. Values can be at most
+     * 64 KB in size. There can be at most 100 secret values across all of a
+     * build's secrets.
+     * 
+ * + * map<string, bytes> secret_env = 3; + */ + + com.google.protobuf.ByteString getSecretEnvOrDefault( + java.lang.String key, + com.google.protobuf.ByteString defaultValue); + /** + *
+     * Map of environment variable name to its encrypted value.
+     * Secret environment variables must be unique across all of a build's
+     * secrets, and must be used by at least one build step. Values can be at most
+     * 64 KB in size. There can be at most 100 secret values across all of a
+     * build's secrets.
+     * 
+ * + * map<string, bytes> secret_env = 3; + */ + + com.google.protobuf.ByteString getSecretEnvOrThrow( + java.lang.String key); + } + /** + *
+   * Pairs a set of secret environment variables containing encrypted
+   * values with the Cloud KMS key to use to decrypt the value.
+   * 
+ * + * Protobuf type {@code google.events.cloud.build.v1.Secret} + */ + public static final class Secret extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.cloud.build.v1.Secret) + SecretOrBuilder { + private static final long serialVersionUID = 0L; + // Use Secret.newBuilder() to construct. + private Secret(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Secret() { + kmsKeyName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Secret(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Secret( + 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(); + + kmsKeyName_ = s; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + secretEnv_ = com.google.protobuf.MapField.newMapField( + SecretEnvDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + secretEnv__ = input.readMessage( + SecretEnvDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + secretEnv_.getMutableMap().put( + secretEnv__.getKey(), secretEnv__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_Secret_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 3: + return internalGetSecretEnv(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_Secret_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.build.v1.Data.Secret.class, google.events.cloud.build.v1.Data.Secret.Builder.class); + } + + public static final int KMS_KEY_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object kmsKeyName_; + /** + *
+     * Cloud KMS key name to use to decrypt these envs.
+     * 
+ * + * string kms_key_name = 1; + * @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 name to use to decrypt these envs.
+     * 
+ * + * string kms_key_name = 1; + * @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 SECRET_ENV_FIELD_NUMBER = 3; + private static final class SecretEnvDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.protobuf.ByteString> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_Secret_SecretEnvEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.BYTES, + com.google.protobuf.ByteString.EMPTY); + } + private com.google.protobuf.MapField< + java.lang.String, com.google.protobuf.ByteString> secretEnv_; + private com.google.protobuf.MapField + internalGetSecretEnv() { + if (secretEnv_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SecretEnvDefaultEntryHolder.defaultEntry); + } + return secretEnv_; + } + + public int getSecretEnvCount() { + return internalGetSecretEnv().getMap().size(); + } + /** + *
+     * Map of environment variable name to its encrypted value.
+     * Secret environment variables must be unique across all of a build's
+     * secrets, and must be used by at least one build step. Values can be at most
+     * 64 KB in size. There can be at most 100 secret values across all of a
+     * build's secrets.
+     * 
+ * + * map<string, bytes> secret_env = 3; + */ + + @java.lang.Override + public boolean containsSecretEnv( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetSecretEnv().getMap().containsKey(key); + } + /** + * Use {@link #getSecretEnvMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getSecretEnv() { + return getSecretEnvMap(); + } + /** + *
+     * Map of environment variable name to its encrypted value.
+     * Secret environment variables must be unique across all of a build's
+     * secrets, and must be used by at least one build step. Values can be at most
+     * 64 KB in size. There can be at most 100 secret values across all of a
+     * build's secrets.
+     * 
+ * + * map<string, bytes> secret_env = 3; + */ + @java.lang.Override + + public java.util.Map getSecretEnvMap() { + return internalGetSecretEnv().getMap(); + } + /** + *
+     * Map of environment variable name to its encrypted value.
+     * Secret environment variables must be unique across all of a build's
+     * secrets, and must be used by at least one build step. Values can be at most
+     * 64 KB in size. There can be at most 100 secret values across all of a
+     * build's secrets.
+     * 
+ * + * map<string, bytes> secret_env = 3; + */ + @java.lang.Override + + public com.google.protobuf.ByteString getSecretEnvOrDefault( + java.lang.String key, + com.google.protobuf.ByteString defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetSecretEnv().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Map of environment variable name to its encrypted value.
+     * Secret environment variables must be unique across all of a build's
+     * secrets, and must be used by at least one build step. Values can be at most
+     * 64 KB in size. There can be at most 100 secret values across all of a
+     * build's secrets.
+     * 
+ * + * map<string, bytes> secret_env = 3; + */ + @java.lang.Override + + public com.google.protobuf.ByteString getSecretEnvOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetSecretEnv().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getKmsKeyNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kmsKeyName_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetSecretEnv(), + SecretEnvDefaultEntryHolder.defaultEntry, + 3); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getKmsKeyNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kmsKeyName_); + } + for (java.util.Map.Entry entry + : internalGetSecretEnv().getMap().entrySet()) { + com.google.protobuf.MapEntry + secretEnv__ = SecretEnvDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, secretEnv__); + } + 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.build.v1.Data.Secret)) { + return super.equals(obj); + } + google.events.cloud.build.v1.Data.Secret other = (google.events.cloud.build.v1.Data.Secret) obj; + + if (!getKmsKeyName() + .equals(other.getKmsKeyName())) return false; + if (!internalGetSecretEnv().equals( + other.internalGetSecretEnv())) 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) + KMS_KEY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getKmsKeyName().hashCode(); + if (!internalGetSecretEnv().getMap().isEmpty()) { + hash = (37 * hash) + SECRET_ENV_FIELD_NUMBER; + hash = (53 * hash) + internalGetSecretEnv().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static google.events.cloud.build.v1.Data.Secret parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.Secret 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.build.v1.Data.Secret parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.Secret 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.build.v1.Data.Secret parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.Secret parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.cloud.build.v1.Data.Secret parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.Secret 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.build.v1.Data.Secret parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.Secret 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.build.v1.Data.Secret parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.Secret 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.build.v1.Data.Secret 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; + } + /** + *
+     * Pairs a set of secret environment variables containing encrypted
+     * values with the Cloud KMS key to use to decrypt the value.
+     * 
+ * + * Protobuf type {@code google.events.cloud.build.v1.Secret} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.events.cloud.build.v1.Secret) + google.events.cloud.build.v1.Data.SecretOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_Secret_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 3: + return internalGetSecretEnv(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 3: + return internalGetMutableSecretEnv(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_Secret_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.build.v1.Data.Secret.class, google.events.cloud.build.v1.Data.Secret.Builder.class); + } + + // Construct using google.events.cloud.build.v1.Data.Secret.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + kmsKeyName_ = ""; + + internalGetMutableSecretEnv().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_Secret_descriptor; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.Secret getDefaultInstanceForType() { + return google.events.cloud.build.v1.Data.Secret.getDefaultInstance(); + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.Secret build() { + google.events.cloud.build.v1.Data.Secret result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.Secret buildPartial() { + google.events.cloud.build.v1.Data.Secret result = new google.events.cloud.build.v1.Data.Secret(this); + int from_bitField0_ = bitField0_; + result.kmsKeyName_ = kmsKeyName_; + result.secretEnv_ = internalGetSecretEnv(); + result.secretEnv_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.events.cloud.build.v1.Data.Secret) { + return mergeFrom((google.events.cloud.build.v1.Data.Secret)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(google.events.cloud.build.v1.Data.Secret other) { + if (other == google.events.cloud.build.v1.Data.Secret.getDefaultInstance()) return this; + if (!other.getKmsKeyName().isEmpty()) { + kmsKeyName_ = other.kmsKeyName_; + onChanged(); + } + internalGetMutableSecretEnv().mergeFrom( + other.internalGetSecretEnv()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.events.cloud.build.v1.Data.Secret parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.events.cloud.build.v1.Data.Secret) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object kmsKeyName_ = ""; + /** + *
+       * Cloud KMS key name to use to decrypt these envs.
+       * 
+ * + * string kms_key_name = 1; + * @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 name to use to decrypt these envs.
+       * 
+ * + * string kms_key_name = 1; + * @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 name to use to decrypt these envs.
+       * 
+ * + * string kms_key_name = 1; + * @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 name to use to decrypt these envs.
+       * 
+ * + * string kms_key_name = 1; + * @return This builder for chaining. + */ + public Builder clearKmsKeyName() { + + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); + onChanged(); + return this; + } + /** + *
+       * Cloud KMS key name to use to decrypt these envs.
+       * 
+ * + * string kms_key_name = 1; + * @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.MapField< + java.lang.String, com.google.protobuf.ByteString> secretEnv_; + private com.google.protobuf.MapField + internalGetSecretEnv() { + if (secretEnv_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SecretEnvDefaultEntryHolder.defaultEntry); + } + return secretEnv_; + } + private com.google.protobuf.MapField + internalGetMutableSecretEnv() { + onChanged();; + if (secretEnv_ == null) { + secretEnv_ = com.google.protobuf.MapField.newMapField( + SecretEnvDefaultEntryHolder.defaultEntry); + } + if (!secretEnv_.isMutable()) { + secretEnv_ = secretEnv_.copy(); + } + return secretEnv_; + } + + public int getSecretEnvCount() { + return internalGetSecretEnv().getMap().size(); + } + /** + *
+       * Map of environment variable name to its encrypted value.
+       * Secret environment variables must be unique across all of a build's
+       * secrets, and must be used by at least one build step. Values can be at most
+       * 64 KB in size. There can be at most 100 secret values across all of a
+       * build's secrets.
+       * 
+ * + * map<string, bytes> secret_env = 3; + */ + + @java.lang.Override + public boolean containsSecretEnv( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetSecretEnv().getMap().containsKey(key); + } + /** + * Use {@link #getSecretEnvMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getSecretEnv() { + return getSecretEnvMap(); + } + /** + *
+       * Map of environment variable name to its encrypted value.
+       * Secret environment variables must be unique across all of a build's
+       * secrets, and must be used by at least one build step. Values can be at most
+       * 64 KB in size. There can be at most 100 secret values across all of a
+       * build's secrets.
+       * 
+ * + * map<string, bytes> secret_env = 3; + */ + @java.lang.Override + + public java.util.Map getSecretEnvMap() { + return internalGetSecretEnv().getMap(); + } + /** + *
+       * Map of environment variable name to its encrypted value.
+       * Secret environment variables must be unique across all of a build's
+       * secrets, and must be used by at least one build step. Values can be at most
+       * 64 KB in size. There can be at most 100 secret values across all of a
+       * build's secrets.
+       * 
+ * + * map<string, bytes> secret_env = 3; + */ + @java.lang.Override + + public com.google.protobuf.ByteString getSecretEnvOrDefault( + java.lang.String key, + com.google.protobuf.ByteString defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetSecretEnv().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Map of environment variable name to its encrypted value.
+       * Secret environment variables must be unique across all of a build's
+       * secrets, and must be used by at least one build step. Values can be at most
+       * 64 KB in size. There can be at most 100 secret values across all of a
+       * build's secrets.
+       * 
+ * + * map<string, bytes> secret_env = 3; + */ + @java.lang.Override + + public com.google.protobuf.ByteString getSecretEnvOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetSecretEnv().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearSecretEnv() { + internalGetMutableSecretEnv().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Map of environment variable name to its encrypted value.
+       * Secret environment variables must be unique across all of a build's
+       * secrets, and must be used by at least one build step. Values can be at most
+       * 64 KB in size. There can be at most 100 secret values across all of a
+       * build's secrets.
+       * 
+ * + * map<string, bytes> secret_env = 3; + */ + + public Builder removeSecretEnv( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableSecretEnv().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableSecretEnv() { + return internalGetMutableSecretEnv().getMutableMap(); + } + /** + *
+       * Map of environment variable name to its encrypted value.
+       * Secret environment variables must be unique across all of a build's
+       * secrets, and must be used by at least one build step. Values can be at most
+       * 64 KB in size. There can be at most 100 secret values across all of a
+       * build's secrets.
+       * 
+ * + * map<string, bytes> secret_env = 3; + */ + public Builder putSecretEnv( + java.lang.String key, + com.google.protobuf.ByteString value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableSecretEnv().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Map of environment variable name to its encrypted value.
+       * Secret environment variables must be unique across all of a build's
+       * secrets, and must be used by at least one build step. Values can be at most
+       * 64 KB in size. There can be at most 100 secret values across all of a
+       * build's secrets.
+       * 
+ * + * map<string, bytes> secret_env = 3; + */ + + public Builder putAllSecretEnv( + java.util.Map values) { + internalGetMutableSecretEnv().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.events.cloud.build.v1.Secret) + } + + // @@protoc_insertion_point(class_scope:google.events.cloud.build.v1.Secret) + private static final google.events.cloud.build.v1.Data.Secret DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new google.events.cloud.build.v1.Data.Secret(); + } + + public static google.events.cloud.build.v1.Data.Secret getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Secret parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Secret(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.Secret getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BuildOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.cloud.build.v1.BuildOptions) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Requested hash for SourceProvenance.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Hash.HashType source_provenance_hash = 1; + * @return A list containing the sourceProvenanceHash. + */ + java.util.List getSourceProvenanceHashList(); + /** + *
+     * Requested hash for SourceProvenance.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Hash.HashType source_provenance_hash = 1; + * @return The count of sourceProvenanceHash. + */ + int getSourceProvenanceHashCount(); + /** + *
+     * Requested hash for SourceProvenance.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Hash.HashType source_provenance_hash = 1; + * @param index The index of the element to return. + * @return The sourceProvenanceHash at the given index. + */ + google.events.cloud.build.v1.Data.Hash.HashType getSourceProvenanceHash(int index); + /** + *
+     * Requested hash for SourceProvenance.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Hash.HashType source_provenance_hash = 1; + * @return A list containing the enum numeric values on the wire for sourceProvenanceHash. + */ + java.util.List + getSourceProvenanceHashValueList(); + /** + *
+     * Requested hash for SourceProvenance.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Hash.HashType source_provenance_hash = 1; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of sourceProvenanceHash at the given index. + */ + int getSourceProvenanceHashValue(int index); + + /** + *
+     * Requested verifiability options.
+     * 
+ * + * .google.events.cloud.build.v1.BuildOptions.VerifyOption requested_verify_option = 2; + * @return The enum numeric value on the wire for requestedVerifyOption. + */ + int getRequestedVerifyOptionValue(); + /** + *
+     * Requested verifiability options.
+     * 
+ * + * .google.events.cloud.build.v1.BuildOptions.VerifyOption requested_verify_option = 2; + * @return The requestedVerifyOption. + */ + google.events.cloud.build.v1.Data.BuildOptions.VerifyOption getRequestedVerifyOption(); + + /** + *
+     * Compute Engine machine type on which to run the build.
+     * 
+ * + * .google.events.cloud.build.v1.BuildOptions.MachineType machine_type = 3; + * @return The enum numeric value on the wire for machineType. + */ + int getMachineTypeValue(); + /** + *
+     * Compute Engine machine type on which to run the build.
+     * 
+ * + * .google.events.cloud.build.v1.BuildOptions.MachineType machine_type = 3; + * @return The machineType. + */ + google.events.cloud.build.v1.Data.BuildOptions.MachineType getMachineType(); + + /** + *
+     * Requested disk size for the VM that runs the build. Note that this is *NOT*
+     * "disk free"; some of the space will be used by the operating system and
+     * build utilities. Also note that this is the minimum disk size that will be
+     * allocated for the build -- the build may run with a larger disk than
+     * requested. At present, the maximum disk size is 1000GB; builds that request
+     * more than the maximum are rejected with an error.
+     * 
+ * + * int64 disk_size_gb = 6; + * @return The diskSizeGb. + */ + long getDiskSizeGb(); + + /** + *
+     * Option to specify behavior when there is an error in the substitution
+     * checks.
+     * 
+ * + * .google.events.cloud.build.v1.BuildOptions.SubstitutionOption substitution_option = 4; + * @return The enum numeric value on the wire for substitutionOption. + */ + int getSubstitutionOptionValue(); + /** + *
+     * Option to specify behavior when there is an error in the substitution
+     * checks.
+     * 
+ * + * .google.events.cloud.build.v1.BuildOptions.SubstitutionOption substitution_option = 4; + * @return The substitutionOption. + */ + google.events.cloud.build.v1.Data.BuildOptions.SubstitutionOption getSubstitutionOption(); + + /** + *
+     * Option to define build log streaming behavior to Google Cloud
+     * Storage.
+     * 
+ * + * .google.events.cloud.build.v1.BuildOptions.LogStreamingOption log_streaming_option = 5; + * @return The enum numeric value on the wire for logStreamingOption. + */ + int getLogStreamingOptionValue(); + /** + *
+     * Option to define build log streaming behavior to Google Cloud
+     * Storage.
+     * 
+ * + * .google.events.cloud.build.v1.BuildOptions.LogStreamingOption log_streaming_option = 5; + * @return The logStreamingOption. + */ + google.events.cloud.build.v1.Data.BuildOptions.LogStreamingOption getLogStreamingOption(); + + /** + *
+     * Option to specify a `WorkerPool` for the build.
+     * Format: projects/{project}/locations/{location}/workerPools/{workerPool}
+     * 
+ * + * string worker_pool = 7; + * @return The workerPool. + */ + java.lang.String getWorkerPool(); + /** + *
+     * Option to specify a `WorkerPool` for the build.
+     * Format: projects/{project}/locations/{location}/workerPools/{workerPool}
+     * 
+ * + * string worker_pool = 7; + * @return The bytes for workerPool. + */ + com.google.protobuf.ByteString + getWorkerPoolBytes(); + + /** + *
+     * Option to specify the logging mode, which determines where the logs are
+     * stored.
+     * 
+ * + * .google.events.cloud.build.v1.BuildOptions.LoggingMode logging = 11; + * @return The enum numeric value on the wire for logging. + */ + int getLoggingValue(); + /** + *
+     * Option to specify the logging mode, which determines where the logs are
+     * stored.
+     * 
+ * + * .google.events.cloud.build.v1.BuildOptions.LoggingMode logging = 11; + * @return The logging. + */ + google.events.cloud.build.v1.Data.BuildOptions.LoggingMode getLogging(); + + /** + *
+     * A list of global environment variable definitions that will exist for all
+     * build steps in this build. If a variable is defined in both globally and in
+     * a build step, the variable will use the build step value.
+     * The elements are of the form "KEY=VALUE" for the environment variable "KEY"
+     * being given the value "VALUE".
+     * 
+ * + * repeated string env = 12; + * @return A list containing the env. + */ + java.util.List + getEnvList(); + /** + *
+     * A list of global environment variable definitions that will exist for all
+     * build steps in this build. If a variable is defined in both globally and in
+     * a build step, the variable will use the build step value.
+     * The elements are of the form "KEY=VALUE" for the environment variable "KEY"
+     * being given the value "VALUE".
+     * 
+ * + * repeated string env = 12; + * @return The count of env. + */ + int getEnvCount(); + /** + *
+     * A list of global environment variable definitions that will exist for all
+     * build steps in this build. If a variable is defined in both globally and in
+     * a build step, the variable will use the build step value.
+     * The elements are of the form "KEY=VALUE" for the environment variable "KEY"
+     * being given the value "VALUE".
+     * 
+ * + * repeated string env = 12; + * @param index The index of the element to return. + * @return The env at the given index. + */ + java.lang.String getEnv(int index); + /** + *
+     * A list of global environment variable definitions that will exist for all
+     * build steps in this build. If a variable is defined in both globally and in
+     * a build step, the variable will use the build step value.
+     * The elements are of the form "KEY=VALUE" for the environment variable "KEY"
+     * being given the value "VALUE".
+     * 
+ * + * repeated string env = 12; + * @param index The index of the value to return. + * @return The bytes of the env at the given index. + */ + com.google.protobuf.ByteString + getEnvBytes(int index); + + /** + *
+     * A list of global environment variables, which are encrypted using a Cloud
+     * Key Management Service crypto key. These values must be specified in the
+     * build's `Secret`. These variables will be available to all build steps
+     * in this build.
+     * 
+ * + * repeated string secret_env = 13; + * @return A list containing the secretEnv. + */ + java.util.List + getSecretEnvList(); + /** + *
+     * A list of global environment variables, which are encrypted using a Cloud
+     * Key Management Service crypto key. These values must be specified in the
+     * build's `Secret`. These variables will be available to all build steps
+     * in this build.
+     * 
+ * + * repeated string secret_env = 13; + * @return The count of secretEnv. + */ + int getSecretEnvCount(); + /** + *
+     * A list of global environment variables, which are encrypted using a Cloud
+     * Key Management Service crypto key. These values must be specified in the
+     * build's `Secret`. These variables will be available to all build steps
+     * in this build.
+     * 
+ * + * repeated string secret_env = 13; + * @param index The index of the element to return. + * @return The secretEnv at the given index. + */ + java.lang.String getSecretEnv(int index); + /** + *
+     * A list of global environment variables, which are encrypted using a Cloud
+     * Key Management Service crypto key. These values must be specified in the
+     * build's `Secret`. These variables will be available to all build steps
+     * in this build.
+     * 
+ * + * repeated string secret_env = 13; + * @param index The index of the value to return. + * @return The bytes of the secretEnv at the given index. + */ + com.google.protobuf.ByteString + getSecretEnvBytes(int index); + + /** + *
+     * Global list of volumes to mount for ALL build steps
+     * Each volume is created as an empty volume prior to starting the build
+     * process. Upon completion of the build, volumes and their contents are
+     * discarded. Global volume names and paths cannot conflict with the volumes
+     * defined a build step.
+     * Using a global volume in a build with only one step is not valid as
+     * it is indicative of a build request with an incorrect configuration.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 14; + */ + java.util.List + getVolumesList(); + /** + *
+     * Global list of volumes to mount for ALL build steps
+     * Each volume is created as an empty volume prior to starting the build
+     * process. Upon completion of the build, volumes and their contents are
+     * discarded. Global volume names and paths cannot conflict with the volumes
+     * defined a build step.
+     * Using a global volume in a build with only one step is not valid as
+     * it is indicative of a build request with an incorrect configuration.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 14; + */ + google.events.cloud.build.v1.Data.Volume getVolumes(int index); + /** + *
+     * Global list of volumes to mount for ALL build steps
+     * Each volume is created as an empty volume prior to starting the build
+     * process. Upon completion of the build, volumes and their contents are
+     * discarded. Global volume names and paths cannot conflict with the volumes
+     * defined a build step.
+     * Using a global volume in a build with only one step is not valid as
+     * it is indicative of a build request with an incorrect configuration.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 14; + */ + int getVolumesCount(); + /** + *
+     * Global list of volumes to mount for ALL build steps
+     * Each volume is created as an empty volume prior to starting the build
+     * process. Upon completion of the build, volumes and their contents are
+     * discarded. Global volume names and paths cannot conflict with the volumes
+     * defined a build step.
+     * Using a global volume in a build with only one step is not valid as
+     * it is indicative of a build request with an incorrect configuration.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 14; + */ + java.util.List + getVolumesOrBuilderList(); + /** + *
+     * Global list of volumes to mount for ALL build steps
+     * Each volume is created as an empty volume prior to starting the build
+     * process. Upon completion of the build, volumes and their contents are
+     * discarded. Global volume names and paths cannot conflict with the volumes
+     * defined a build step.
+     * Using a global volume in a build with only one step is not valid as
+     * it is indicative of a build request with an incorrect configuration.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 14; + */ + google.events.cloud.build.v1.Data.VolumeOrBuilder getVolumesOrBuilder( + int index); + } + /** + *
+   * Optional arguments to enable specific features of builds.
+   * 
+ * + * Protobuf type {@code google.events.cloud.build.v1.BuildOptions} + */ + public static final class BuildOptions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.cloud.build.v1.BuildOptions) + BuildOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use BuildOptions.newBuilder() to construct. + private BuildOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BuildOptions() { + sourceProvenanceHash_ = java.util.Collections.emptyList(); + requestedVerifyOption_ = 0; + machineType_ = 0; + substitutionOption_ = 0; + logStreamingOption_ = 0; + workerPool_ = ""; + logging_ = 0; + env_ = com.google.protobuf.LazyStringArrayList.EMPTY; + secretEnv_ = com.google.protobuf.LazyStringArrayList.EMPTY; + volumes_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BuildOptions(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BuildOptions( + 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 8: { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + sourceProvenanceHash_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + sourceProvenanceHash_.add(rawValue); + break; + } + case 10: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + sourceProvenanceHash_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + sourceProvenanceHash_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + case 16: { + int rawValue = input.readEnum(); + + requestedVerifyOption_ = rawValue; + break; + } + case 24: { + int rawValue = input.readEnum(); + + machineType_ = rawValue; + break; + } + case 32: { + int rawValue = input.readEnum(); + + substitutionOption_ = rawValue; + break; + } + case 40: { + int rawValue = input.readEnum(); + + logStreamingOption_ = rawValue; + break; + } + case 48: { + + diskSizeGb_ = input.readInt64(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + workerPool_ = s; + break; + } + case 88: { + int rawValue = input.readEnum(); + + logging_ = rawValue; + break; + } + case 98: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + env_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + env_.add(s); + break; + } + case 106: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + secretEnv_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + secretEnv_.add(s); + break; + } + case 114: { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + volumes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + volumes_.add( + input.readMessage(google.events.cloud.build.v1.Data.Volume.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + sourceProvenanceHash_ = java.util.Collections.unmodifiableList(sourceProvenanceHash_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + env_ = env_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + secretEnv_ = secretEnv_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000008) != 0)) { + volumes_ = java.util.Collections.unmodifiableList(volumes_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_BuildOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_BuildOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.build.v1.Data.BuildOptions.class, google.events.cloud.build.v1.Data.BuildOptions.Builder.class); + } + + /** + *
+     * Specifies the manner in which the build should be verified, if at all.
+     * 
+ * + * Protobuf enum {@code google.events.cloud.build.v1.BuildOptions.VerifyOption} + */ + public enum VerifyOption + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * Not a verifiable build. (default)
+       * 
+ * + * NOT_VERIFIED = 0; + */ + NOT_VERIFIED(0), + /** + *
+       * Verified build.
+       * 
+ * + * VERIFIED = 1; + */ + VERIFIED(1), + UNRECOGNIZED(-1), + ; + + /** + *
+       * Not a verifiable build. (default)
+       * 
+ * + * NOT_VERIFIED = 0; + */ + public static final int NOT_VERIFIED_VALUE = 0; + /** + *
+       * Verified build.
+       * 
+ * + * VERIFIED = 1; + */ + public static final int VERIFIED_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static VerifyOption valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static VerifyOption forNumber(int value) { + switch (value) { + case 0: return NOT_VERIFIED; + case 1: return VERIFIED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + VerifyOption> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public VerifyOption findValueByNumber(int number) { + return VerifyOption.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return google.events.cloud.build.v1.Data.BuildOptions.getDescriptor().getEnumTypes().get(0); + } + + private static final VerifyOption[] VALUES = values(); + + public static VerifyOption valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private VerifyOption(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.events.cloud.build.v1.BuildOptions.VerifyOption) + } + + /** + *
+     * Supported VM sizes.
+     * 
+ * + * Protobuf enum {@code google.events.cloud.build.v1.BuildOptions.MachineType} + */ + public enum MachineType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * Standard machine type.
+       * 
+ * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + *
+       * Highcpu machine with 8 CPUs.
+       * 
+ * + * N1_HIGHCPU_8 = 1; + */ + N1_HIGHCPU_8(1), + /** + *
+       * Highcpu machine with 32 CPUs.
+       * 
+ * + * N1_HIGHCPU_32 = 2; + */ + N1_HIGHCPU_32(2), + UNRECOGNIZED(-1), + ; + + /** + *
+       * Standard machine type.
+       * 
+ * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + *
+       * Highcpu machine with 8 CPUs.
+       * 
+ * + * N1_HIGHCPU_8 = 1; + */ + public static final int N1_HIGHCPU_8_VALUE = 1; + /** + *
+       * Highcpu machine with 32 CPUs.
+       * 
+ * + * N1_HIGHCPU_32 = 2; + */ + public static final int N1_HIGHCPU_32_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MachineType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static MachineType forNumber(int value) { + switch (value) { + case 0: return UNSPECIFIED; + case 1: return N1_HIGHCPU_8; + case 2: return N1_HIGHCPU_32; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + MachineType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MachineType findValueByNumber(int number) { + return MachineType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return google.events.cloud.build.v1.Data.BuildOptions.getDescriptor().getEnumTypes().get(1); + } + + private static final MachineType[] VALUES = values(); + + public static MachineType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private MachineType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.events.cloud.build.v1.BuildOptions.MachineType) + } + + /** + *
+     * Specifies the behavior when there is an error in the substitution checks.
+     * 
+ * + * Protobuf enum {@code google.events.cloud.build.v1.BuildOptions.SubstitutionOption} + */ + public enum SubstitutionOption + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * Fails the build if error in substitutions checks, like missing
+       * a substitution in the template or in the map.
+       * 
+ * + * MUST_MATCH = 0; + */ + MUST_MATCH(0), + /** + *
+       * Do not fail the build if error in substitutions checks.
+       * 
+ * + * ALLOW_LOOSE = 1; + */ + ALLOW_LOOSE(1), + UNRECOGNIZED(-1), + ; + + /** + *
+       * Fails the build if error in substitutions checks, like missing
+       * a substitution in the template or in the map.
+       * 
+ * + * MUST_MATCH = 0; + */ + public static final int MUST_MATCH_VALUE = 0; + /** + *
+       * Do not fail the build if error in substitutions checks.
+       * 
+ * + * ALLOW_LOOSE = 1; + */ + public static final int ALLOW_LOOSE_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SubstitutionOption valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static SubstitutionOption forNumber(int value) { + switch (value) { + case 0: return MUST_MATCH; + case 1: return ALLOW_LOOSE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + SubstitutionOption> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SubstitutionOption findValueByNumber(int number) { + return SubstitutionOption.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return google.events.cloud.build.v1.Data.BuildOptions.getDescriptor().getEnumTypes().get(2); + } + + private static final SubstitutionOption[] VALUES = values(); + + public static SubstitutionOption valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SubstitutionOption(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.events.cloud.build.v1.BuildOptions.SubstitutionOption) + } + + /** + *
+     * Specifies the behavior when writing build logs to Google Cloud Storage.
+     * 
+ * + * Protobuf enum {@code google.events.cloud.build.v1.BuildOptions.LogStreamingOption} + */ + public enum LogStreamingOption + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * Service may automatically determine build log streaming behavior.
+       * 
+ * + * STREAM_DEFAULT = 0; + */ + STREAM_DEFAULT(0), + /** + *
+       * Build logs should be streamed to Google Cloud Storage.
+       * 
+ * + * STREAM_ON = 1; + */ + STREAM_ON(1), + /** + *
+       * Build logs should not be streamed to Google Cloud Storage; they will be
+       * written when the build is completed.
+       * 
+ * + * STREAM_OFF = 2; + */ + STREAM_OFF(2), + UNRECOGNIZED(-1), + ; + + /** + *
+       * Service may automatically determine build log streaming behavior.
+       * 
+ * + * STREAM_DEFAULT = 0; + */ + public static final int STREAM_DEFAULT_VALUE = 0; + /** + *
+       * Build logs should be streamed to Google Cloud Storage.
+       * 
+ * + * STREAM_ON = 1; + */ + public static final int STREAM_ON_VALUE = 1; + /** + *
+       * Build logs should not be streamed to Google Cloud Storage; they will be
+       * written when the build is completed.
+       * 
+ * + * STREAM_OFF = 2; + */ + public static final int STREAM_OFF_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LogStreamingOption valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static LogStreamingOption forNumber(int value) { + switch (value) { + case 0: return STREAM_DEFAULT; + case 1: return STREAM_ON; + case 2: return STREAM_OFF; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + LogStreamingOption> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LogStreamingOption findValueByNumber(int number) { + return LogStreamingOption.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return google.events.cloud.build.v1.Data.BuildOptions.getDescriptor().getEnumTypes().get(3); + } + + private static final LogStreamingOption[] VALUES = values(); + + public static LogStreamingOption valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private LogStreamingOption(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.events.cloud.build.v1.BuildOptions.LogStreamingOption) + } + + /** + *
+     * Specifies the logging mode.
+     * 
+ * + * Protobuf enum {@code google.events.cloud.build.v1.BuildOptions.LoggingMode} + */ + public enum LoggingMode + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * The service determines the logging mode. The default is `LEGACY`. Do not
+       * rely on the default logging behavior as it may change in the future.
+       * 
+ * + * LOGGING_UNSPECIFIED = 0; + */ + LOGGING_UNSPECIFIED(0), + /** + *
+       * Stackdriver logging and Cloud Storage logging are enabled.
+       * 
+ * + * LEGACY = 1; + */ + LEGACY(1), + /** + *
+       * Only Cloud Storage logging is enabled.
+       * 
+ * + * GCS_ONLY = 2; + */ + GCS_ONLY(2), + UNRECOGNIZED(-1), + ; + + /** + *
+       * The service determines the logging mode. The default is `LEGACY`. Do not
+       * rely on the default logging behavior as it may change in the future.
+       * 
+ * + * LOGGING_UNSPECIFIED = 0; + */ + public static final int LOGGING_UNSPECIFIED_VALUE = 0; + /** + *
+       * Stackdriver logging and Cloud Storage logging are enabled.
+       * 
+ * + * LEGACY = 1; + */ + public static final int LEGACY_VALUE = 1; + /** + *
+       * Only Cloud Storage logging is enabled.
+       * 
+ * + * GCS_ONLY = 2; + */ + public static final int GCS_ONLY_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LoggingMode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static LoggingMode forNumber(int value) { + switch (value) { + case 0: return LOGGING_UNSPECIFIED; + case 1: return LEGACY; + case 2: return GCS_ONLY; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + LoggingMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LoggingMode findValueByNumber(int number) { + return LoggingMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return google.events.cloud.build.v1.Data.BuildOptions.getDescriptor().getEnumTypes().get(4); + } + + private static final LoggingMode[] VALUES = values(); + + public static LoggingMode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private LoggingMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.events.cloud.build.v1.BuildOptions.LoggingMode) + } + + public static final int SOURCE_PROVENANCE_HASH_FIELD_NUMBER = 1; + private java.util.List sourceProvenanceHash_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, google.events.cloud.build.v1.Data.Hash.HashType> sourceProvenanceHash_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, google.events.cloud.build.v1.Data.Hash.HashType>() { + public google.events.cloud.build.v1.Data.Hash.HashType convert(java.lang.Integer from) { + @SuppressWarnings("deprecation") + google.events.cloud.build.v1.Data.Hash.HashType result = google.events.cloud.build.v1.Data.Hash.HashType.valueOf(from); + return result == null ? google.events.cloud.build.v1.Data.Hash.HashType.UNRECOGNIZED : result; + } + }; + /** + *
+     * Requested hash for SourceProvenance.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Hash.HashType source_provenance_hash = 1; + * @return A list containing the sourceProvenanceHash. + */ + @java.lang.Override + public java.util.List getSourceProvenanceHashList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, google.events.cloud.build.v1.Data.Hash.HashType>(sourceProvenanceHash_, sourceProvenanceHash_converter_); + } + /** + *
+     * Requested hash for SourceProvenance.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Hash.HashType source_provenance_hash = 1; + * @return The count of sourceProvenanceHash. + */ + @java.lang.Override + public int getSourceProvenanceHashCount() { + return sourceProvenanceHash_.size(); + } + /** + *
+     * Requested hash for SourceProvenance.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Hash.HashType source_provenance_hash = 1; + * @param index The index of the element to return. + * @return The sourceProvenanceHash at the given index. + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.Hash.HashType getSourceProvenanceHash(int index) { + return sourceProvenanceHash_converter_.convert(sourceProvenanceHash_.get(index)); + } + /** + *
+     * Requested hash for SourceProvenance.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Hash.HashType source_provenance_hash = 1; + * @return A list containing the enum numeric values on the wire for sourceProvenanceHash. + */ + @java.lang.Override + public java.util.List + getSourceProvenanceHashValueList() { + return sourceProvenanceHash_; + } + /** + *
+     * Requested hash for SourceProvenance.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Hash.HashType source_provenance_hash = 1; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of sourceProvenanceHash at the given index. + */ + @java.lang.Override + public int getSourceProvenanceHashValue(int index) { + return sourceProvenanceHash_.get(index); + } + private int sourceProvenanceHashMemoizedSerializedSize; + + public static final int REQUESTED_VERIFY_OPTION_FIELD_NUMBER = 2; + private int requestedVerifyOption_; + /** + *
+     * Requested verifiability options.
+     * 
+ * + * .google.events.cloud.build.v1.BuildOptions.VerifyOption requested_verify_option = 2; + * @return The enum numeric value on the wire for requestedVerifyOption. + */ + @java.lang.Override public int getRequestedVerifyOptionValue() { + return requestedVerifyOption_; + } + /** + *
+     * Requested verifiability options.
+     * 
+ * + * .google.events.cloud.build.v1.BuildOptions.VerifyOption requested_verify_option = 2; + * @return The requestedVerifyOption. + */ + @java.lang.Override public google.events.cloud.build.v1.Data.BuildOptions.VerifyOption getRequestedVerifyOption() { + @SuppressWarnings("deprecation") + google.events.cloud.build.v1.Data.BuildOptions.VerifyOption result = google.events.cloud.build.v1.Data.BuildOptions.VerifyOption.valueOf(requestedVerifyOption_); + return result == null ? google.events.cloud.build.v1.Data.BuildOptions.VerifyOption.UNRECOGNIZED : result; + } + + public static final int MACHINE_TYPE_FIELD_NUMBER = 3; + private int machineType_; + /** + *
+     * Compute Engine machine type on which to run the build.
+     * 
+ * + * .google.events.cloud.build.v1.BuildOptions.MachineType machine_type = 3; + * @return The enum numeric value on the wire for machineType. + */ + @java.lang.Override public int getMachineTypeValue() { + return machineType_; + } + /** + *
+     * Compute Engine machine type on which to run the build.
+     * 
+ * + * .google.events.cloud.build.v1.BuildOptions.MachineType machine_type = 3; + * @return The machineType. + */ + @java.lang.Override public google.events.cloud.build.v1.Data.BuildOptions.MachineType getMachineType() { + @SuppressWarnings("deprecation") + google.events.cloud.build.v1.Data.BuildOptions.MachineType result = google.events.cloud.build.v1.Data.BuildOptions.MachineType.valueOf(machineType_); + return result == null ? google.events.cloud.build.v1.Data.BuildOptions.MachineType.UNRECOGNIZED : result; + } + + public static final int DISK_SIZE_GB_FIELD_NUMBER = 6; + private long diskSizeGb_; + /** + *
+     * Requested disk size for the VM that runs the build. Note that this is *NOT*
+     * "disk free"; some of the space will be used by the operating system and
+     * build utilities. Also note that this is the minimum disk size that will be
+     * allocated for the build -- the build may run with a larger disk than
+     * requested. At present, the maximum disk size is 1000GB; builds that request
+     * more than the maximum are rejected with an error.
+     * 
+ * + * int64 disk_size_gb = 6; + * @return The diskSizeGb. + */ + @java.lang.Override + public long getDiskSizeGb() { + return diskSizeGb_; + } + + public static final int SUBSTITUTION_OPTION_FIELD_NUMBER = 4; + private int substitutionOption_; + /** + *
+     * Option to specify behavior when there is an error in the substitution
+     * checks.
+     * 
+ * + * .google.events.cloud.build.v1.BuildOptions.SubstitutionOption substitution_option = 4; + * @return The enum numeric value on the wire for substitutionOption. + */ + @java.lang.Override public int getSubstitutionOptionValue() { + return substitutionOption_; + } + /** + *
+     * Option to specify behavior when there is an error in the substitution
+     * checks.
+     * 
+ * + * .google.events.cloud.build.v1.BuildOptions.SubstitutionOption substitution_option = 4; + * @return The substitutionOption. + */ + @java.lang.Override public google.events.cloud.build.v1.Data.BuildOptions.SubstitutionOption getSubstitutionOption() { + @SuppressWarnings("deprecation") + google.events.cloud.build.v1.Data.BuildOptions.SubstitutionOption result = google.events.cloud.build.v1.Data.BuildOptions.SubstitutionOption.valueOf(substitutionOption_); + return result == null ? google.events.cloud.build.v1.Data.BuildOptions.SubstitutionOption.UNRECOGNIZED : result; + } + + public static final int LOG_STREAMING_OPTION_FIELD_NUMBER = 5; + private int logStreamingOption_; + /** + *
+     * Option to define build log streaming behavior to Google Cloud
+     * Storage.
+     * 
+ * + * .google.events.cloud.build.v1.BuildOptions.LogStreamingOption log_streaming_option = 5; + * @return The enum numeric value on the wire for logStreamingOption. + */ + @java.lang.Override public int getLogStreamingOptionValue() { + return logStreamingOption_; + } + /** + *
+     * Option to define build log streaming behavior to Google Cloud
+     * Storage.
+     * 
+ * + * .google.events.cloud.build.v1.BuildOptions.LogStreamingOption log_streaming_option = 5; + * @return The logStreamingOption. + */ + @java.lang.Override public google.events.cloud.build.v1.Data.BuildOptions.LogStreamingOption getLogStreamingOption() { + @SuppressWarnings("deprecation") + google.events.cloud.build.v1.Data.BuildOptions.LogStreamingOption result = google.events.cloud.build.v1.Data.BuildOptions.LogStreamingOption.valueOf(logStreamingOption_); + return result == null ? google.events.cloud.build.v1.Data.BuildOptions.LogStreamingOption.UNRECOGNIZED : result; + } + + public static final int WORKER_POOL_FIELD_NUMBER = 7; + private volatile java.lang.Object workerPool_; + /** + *
+     * Option to specify a `WorkerPool` for the build.
+     * Format: projects/{project}/locations/{location}/workerPools/{workerPool}
+     * 
+ * + * string worker_pool = 7; + * @return The workerPool. + */ + @java.lang.Override + public java.lang.String getWorkerPool() { + java.lang.Object ref = workerPool_; + 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(); + workerPool_ = s; + return s; + } + } + /** + *
+     * Option to specify a `WorkerPool` for the build.
+     * Format: projects/{project}/locations/{location}/workerPools/{workerPool}
+     * 
+ * + * string worker_pool = 7; + * @return The bytes for workerPool. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkerPoolBytes() { + java.lang.Object ref = workerPool_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workerPool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOGGING_FIELD_NUMBER = 11; + private int logging_; + /** + *
+     * Option to specify the logging mode, which determines where the logs are
+     * stored.
+     * 
+ * + * .google.events.cloud.build.v1.BuildOptions.LoggingMode logging = 11; + * @return The enum numeric value on the wire for logging. + */ + @java.lang.Override public int getLoggingValue() { + return logging_; + } + /** + *
+     * Option to specify the logging mode, which determines where the logs are
+     * stored.
+     * 
+ * + * .google.events.cloud.build.v1.BuildOptions.LoggingMode logging = 11; + * @return The logging. + */ + @java.lang.Override public google.events.cloud.build.v1.Data.BuildOptions.LoggingMode getLogging() { + @SuppressWarnings("deprecation") + google.events.cloud.build.v1.Data.BuildOptions.LoggingMode result = google.events.cloud.build.v1.Data.BuildOptions.LoggingMode.valueOf(logging_); + return result == null ? google.events.cloud.build.v1.Data.BuildOptions.LoggingMode.UNRECOGNIZED : result; + } + + public static final int ENV_FIELD_NUMBER = 12; + private com.google.protobuf.LazyStringList env_; + /** + *
+     * A list of global environment variable definitions that will exist for all
+     * build steps in this build. If a variable is defined in both globally and in
+     * a build step, the variable will use the build step value.
+     * The elements are of the form "KEY=VALUE" for the environment variable "KEY"
+     * being given the value "VALUE".
+     * 
+ * + * repeated string env = 12; + * @return A list containing the env. + */ + public com.google.protobuf.ProtocolStringList + getEnvList() { + return env_; + } + /** + *
+     * A list of global environment variable definitions that will exist for all
+     * build steps in this build. If a variable is defined in both globally and in
+     * a build step, the variable will use the build step value.
+     * The elements are of the form "KEY=VALUE" for the environment variable "KEY"
+     * being given the value "VALUE".
+     * 
+ * + * repeated string env = 12; + * @return The count of env. + */ + public int getEnvCount() { + return env_.size(); + } + /** + *
+     * A list of global environment variable definitions that will exist for all
+     * build steps in this build. If a variable is defined in both globally and in
+     * a build step, the variable will use the build step value.
+     * The elements are of the form "KEY=VALUE" for the environment variable "KEY"
+     * being given the value "VALUE".
+     * 
+ * + * repeated string env = 12; + * @param index The index of the element to return. + * @return The env at the given index. + */ + public java.lang.String getEnv(int index) { + return env_.get(index); + } + /** + *
+     * A list of global environment variable definitions that will exist for all
+     * build steps in this build. If a variable is defined in both globally and in
+     * a build step, the variable will use the build step value.
+     * The elements are of the form "KEY=VALUE" for the environment variable "KEY"
+     * being given the value "VALUE".
+     * 
+ * + * repeated string env = 12; + * @param index The index of the value to return. + * @return The bytes of the env at the given index. + */ + public com.google.protobuf.ByteString + getEnvBytes(int index) { + return env_.getByteString(index); + } + + public static final int SECRET_ENV_FIELD_NUMBER = 13; + private com.google.protobuf.LazyStringList secretEnv_; + /** + *
+     * A list of global environment variables, which are encrypted using a Cloud
+     * Key Management Service crypto key. These values must be specified in the
+     * build's `Secret`. These variables will be available to all build steps
+     * in this build.
+     * 
+ * + * repeated string secret_env = 13; + * @return A list containing the secretEnv. + */ + public com.google.protobuf.ProtocolStringList + getSecretEnvList() { + return secretEnv_; + } + /** + *
+     * A list of global environment variables, which are encrypted using a Cloud
+     * Key Management Service crypto key. These values must be specified in the
+     * build's `Secret`. These variables will be available to all build steps
+     * in this build.
+     * 
+ * + * repeated string secret_env = 13; + * @return The count of secretEnv. + */ + public int getSecretEnvCount() { + return secretEnv_.size(); + } + /** + *
+     * A list of global environment variables, which are encrypted using a Cloud
+     * Key Management Service crypto key. These values must be specified in the
+     * build's `Secret`. These variables will be available to all build steps
+     * in this build.
+     * 
+ * + * repeated string secret_env = 13; + * @param index The index of the element to return. + * @return The secretEnv at the given index. + */ + public java.lang.String getSecretEnv(int index) { + return secretEnv_.get(index); + } + /** + *
+     * A list of global environment variables, which are encrypted using a Cloud
+     * Key Management Service crypto key. These values must be specified in the
+     * build's `Secret`. These variables will be available to all build steps
+     * in this build.
+     * 
+ * + * repeated string secret_env = 13; + * @param index The index of the value to return. + * @return The bytes of the secretEnv at the given index. + */ + public com.google.protobuf.ByteString + getSecretEnvBytes(int index) { + return secretEnv_.getByteString(index); + } + + public static final int VOLUMES_FIELD_NUMBER = 14; + private java.util.List volumes_; + /** + *
+     * Global list of volumes to mount for ALL build steps
+     * Each volume is created as an empty volume prior to starting the build
+     * process. Upon completion of the build, volumes and their contents are
+     * discarded. Global volume names and paths cannot conflict with the volumes
+     * defined a build step.
+     * Using a global volume in a build with only one step is not valid as
+     * it is indicative of a build request with an incorrect configuration.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 14; + */ + @java.lang.Override + public java.util.List getVolumesList() { + return volumes_; + } + /** + *
+     * Global list of volumes to mount for ALL build steps
+     * Each volume is created as an empty volume prior to starting the build
+     * process. Upon completion of the build, volumes and their contents are
+     * discarded. Global volume names and paths cannot conflict with the volumes
+     * defined a build step.
+     * Using a global volume in a build with only one step is not valid as
+     * it is indicative of a build request with an incorrect configuration.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 14; + */ + @java.lang.Override + public java.util.List + getVolumesOrBuilderList() { + return volumes_; + } + /** + *
+     * Global list of volumes to mount for ALL build steps
+     * Each volume is created as an empty volume prior to starting the build
+     * process. Upon completion of the build, volumes and their contents are
+     * discarded. Global volume names and paths cannot conflict with the volumes
+     * defined a build step.
+     * Using a global volume in a build with only one step is not valid as
+     * it is indicative of a build request with an incorrect configuration.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 14; + */ + @java.lang.Override + public int getVolumesCount() { + return volumes_.size(); + } + /** + *
+     * Global list of volumes to mount for ALL build steps
+     * Each volume is created as an empty volume prior to starting the build
+     * process. Upon completion of the build, volumes and their contents are
+     * discarded. Global volume names and paths cannot conflict with the volumes
+     * defined a build step.
+     * Using a global volume in a build with only one step is not valid as
+     * it is indicative of a build request with an incorrect configuration.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 14; + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.Volume getVolumes(int index) { + return volumes_.get(index); + } + /** + *
+     * Global list of volumes to mount for ALL build steps
+     * Each volume is created as an empty volume prior to starting the build
+     * process. Upon completion of the build, volumes and their contents are
+     * discarded. Global volume names and paths cannot conflict with the volumes
+     * defined a build step.
+     * Using a global volume in a build with only one step is not valid as
+     * it is indicative of a build request with an incorrect configuration.
+     * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 14; + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.VolumeOrBuilder getVolumesOrBuilder( + int index) { + return volumes_.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 { + getSerializedSize(); + if (getSourceProvenanceHashList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(sourceProvenanceHashMemoizedSerializedSize); + } + for (int i = 0; i < sourceProvenanceHash_.size(); i++) { + output.writeEnumNoTag(sourceProvenanceHash_.get(i)); + } + if (requestedVerifyOption_ != google.events.cloud.build.v1.Data.BuildOptions.VerifyOption.NOT_VERIFIED.getNumber()) { + output.writeEnum(2, requestedVerifyOption_); + } + if (machineType_ != google.events.cloud.build.v1.Data.BuildOptions.MachineType.UNSPECIFIED.getNumber()) { + output.writeEnum(3, machineType_); + } + if (substitutionOption_ != google.events.cloud.build.v1.Data.BuildOptions.SubstitutionOption.MUST_MATCH.getNumber()) { + output.writeEnum(4, substitutionOption_); + } + if (logStreamingOption_ != google.events.cloud.build.v1.Data.BuildOptions.LogStreamingOption.STREAM_DEFAULT.getNumber()) { + output.writeEnum(5, logStreamingOption_); + } + if (diskSizeGb_ != 0L) { + output.writeInt64(6, diskSizeGb_); + } + if (!getWorkerPoolBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, workerPool_); + } + if (logging_ != google.events.cloud.build.v1.Data.BuildOptions.LoggingMode.LOGGING_UNSPECIFIED.getNumber()) { + output.writeEnum(11, logging_); + } + for (int i = 0; i < env_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, env_.getRaw(i)); + } + for (int i = 0; i < secretEnv_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, secretEnv_.getRaw(i)); + } + for (int i = 0; i < volumes_.size(); i++) { + output.writeMessage(14, volumes_.get(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 < sourceProvenanceHash_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(sourceProvenanceHash_.get(i)); + } + size += dataSize; + if (!getSourceProvenanceHashList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }sourceProvenanceHashMemoizedSerializedSize = dataSize; + } + if (requestedVerifyOption_ != google.events.cloud.build.v1.Data.BuildOptions.VerifyOption.NOT_VERIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, requestedVerifyOption_); + } + if (machineType_ != google.events.cloud.build.v1.Data.BuildOptions.MachineType.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, machineType_); + } + if (substitutionOption_ != google.events.cloud.build.v1.Data.BuildOptions.SubstitutionOption.MUST_MATCH.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, substitutionOption_); + } + if (logStreamingOption_ != google.events.cloud.build.v1.Data.BuildOptions.LogStreamingOption.STREAM_DEFAULT.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, logStreamingOption_); + } + if (diskSizeGb_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, diskSizeGb_); + } + if (!getWorkerPoolBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, workerPool_); + } + if (logging_ != google.events.cloud.build.v1.Data.BuildOptions.LoggingMode.LOGGING_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(11, logging_); + } + { + int dataSize = 0; + for (int i = 0; i < env_.size(); i++) { + dataSize += computeStringSizeNoTag(env_.getRaw(i)); + } + size += dataSize; + size += 1 * getEnvList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < secretEnv_.size(); i++) { + dataSize += computeStringSizeNoTag(secretEnv_.getRaw(i)); + } + size += dataSize; + size += 1 * getSecretEnvList().size(); + } + for (int i = 0; i < volumes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, volumes_.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.build.v1.Data.BuildOptions)) { + return super.equals(obj); + } + google.events.cloud.build.v1.Data.BuildOptions other = (google.events.cloud.build.v1.Data.BuildOptions) obj; + + if (!sourceProvenanceHash_.equals(other.sourceProvenanceHash_)) return false; + if (requestedVerifyOption_ != other.requestedVerifyOption_) return false; + if (machineType_ != other.machineType_) return false; + if (getDiskSizeGb() + != other.getDiskSizeGb()) return false; + if (substitutionOption_ != other.substitutionOption_) return false; + if (logStreamingOption_ != other.logStreamingOption_) return false; + if (!getWorkerPool() + .equals(other.getWorkerPool())) return false; + if (logging_ != other.logging_) return false; + if (!getEnvList() + .equals(other.getEnvList())) return false; + if (!getSecretEnvList() + .equals(other.getSecretEnvList())) return false; + if (!getVolumesList() + .equals(other.getVolumesList())) 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 (getSourceProvenanceHashCount() > 0) { + hash = (37 * hash) + SOURCE_PROVENANCE_HASH_FIELD_NUMBER; + hash = (53 * hash) + sourceProvenanceHash_.hashCode(); + } + hash = (37 * hash) + REQUESTED_VERIFY_OPTION_FIELD_NUMBER; + hash = (53 * hash) + requestedVerifyOption_; + hash = (37 * hash) + MACHINE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + machineType_; + hash = (37 * hash) + DISK_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDiskSizeGb()); + hash = (37 * hash) + SUBSTITUTION_OPTION_FIELD_NUMBER; + hash = (53 * hash) + substitutionOption_; + hash = (37 * hash) + LOG_STREAMING_OPTION_FIELD_NUMBER; + hash = (53 * hash) + logStreamingOption_; + hash = (37 * hash) + WORKER_POOL_FIELD_NUMBER; + hash = (53 * hash) + getWorkerPool().hashCode(); + hash = (37 * hash) + LOGGING_FIELD_NUMBER; + hash = (53 * hash) + logging_; + if (getEnvCount() > 0) { + hash = (37 * hash) + ENV_FIELD_NUMBER; + hash = (53 * hash) + getEnvList().hashCode(); + } + if (getSecretEnvCount() > 0) { + hash = (37 * hash) + SECRET_ENV_FIELD_NUMBER; + hash = (53 * hash) + getSecretEnvList().hashCode(); + } + if (getVolumesCount() > 0) { + hash = (37 * hash) + VOLUMES_FIELD_NUMBER; + hash = (53 * hash) + getVolumesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static google.events.cloud.build.v1.Data.BuildOptions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.BuildOptions 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.build.v1.Data.BuildOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.BuildOptions 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.build.v1.Data.BuildOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.cloud.build.v1.Data.BuildOptions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.cloud.build.v1.Data.BuildOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.BuildOptions 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.build.v1.Data.BuildOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.BuildOptions 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.build.v1.Data.BuildOptions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.cloud.build.v1.Data.BuildOptions 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.build.v1.Data.BuildOptions 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; + } + /** + *
+     * Optional arguments to enable specific features of builds.
+     * 
+ * + * Protobuf type {@code google.events.cloud.build.v1.BuildOptions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.events.cloud.build.v1.BuildOptions) + google.events.cloud.build.v1.Data.BuildOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_BuildOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_BuildOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.cloud.build.v1.Data.BuildOptions.class, google.events.cloud.build.v1.Data.BuildOptions.Builder.class); + } + + // Construct using google.events.cloud.build.v1.Data.BuildOptions.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getVolumesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + sourceProvenanceHash_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + requestedVerifyOption_ = 0; + + machineType_ = 0; + + diskSizeGb_ = 0L; + + substitutionOption_ = 0; + + logStreamingOption_ = 0; + + workerPool_ = ""; + + logging_ = 0; + + env_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + secretEnv_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + if (volumesBuilder_ == null) { + volumes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + volumesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.events.cloud.build.v1.Data.internal_static_google_events_cloud_build_v1_BuildOptions_descriptor; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.BuildOptions getDefaultInstanceForType() { + return google.events.cloud.build.v1.Data.BuildOptions.getDefaultInstance(); + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.BuildOptions build() { + google.events.cloud.build.v1.Data.BuildOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.BuildOptions buildPartial() { + google.events.cloud.build.v1.Data.BuildOptions result = new google.events.cloud.build.v1.Data.BuildOptions(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + sourceProvenanceHash_ = java.util.Collections.unmodifiableList(sourceProvenanceHash_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.sourceProvenanceHash_ = sourceProvenanceHash_; + result.requestedVerifyOption_ = requestedVerifyOption_; + result.machineType_ = machineType_; + result.diskSizeGb_ = diskSizeGb_; + result.substitutionOption_ = substitutionOption_; + result.logStreamingOption_ = logStreamingOption_; + result.workerPool_ = workerPool_; + result.logging_ = logging_; + if (((bitField0_ & 0x00000002) != 0)) { + env_ = env_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.env_ = env_; + if (((bitField0_ & 0x00000004) != 0)) { + secretEnv_ = secretEnv_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.secretEnv_ = secretEnv_; + if (volumesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + volumes_ = java.util.Collections.unmodifiableList(volumes_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.volumes_ = volumes_; + } else { + result.volumes_ = volumesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.events.cloud.build.v1.Data.BuildOptions) { + return mergeFrom((google.events.cloud.build.v1.Data.BuildOptions)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(google.events.cloud.build.v1.Data.BuildOptions other) { + if (other == google.events.cloud.build.v1.Data.BuildOptions.getDefaultInstance()) return this; + if (!other.sourceProvenanceHash_.isEmpty()) { + if (sourceProvenanceHash_.isEmpty()) { + sourceProvenanceHash_ = other.sourceProvenanceHash_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSourceProvenanceHashIsMutable(); + sourceProvenanceHash_.addAll(other.sourceProvenanceHash_); + } + onChanged(); + } + if (other.requestedVerifyOption_ != 0) { + setRequestedVerifyOptionValue(other.getRequestedVerifyOptionValue()); + } + if (other.machineType_ != 0) { + setMachineTypeValue(other.getMachineTypeValue()); + } + if (other.getDiskSizeGb() != 0L) { + setDiskSizeGb(other.getDiskSizeGb()); + } + if (other.substitutionOption_ != 0) { + setSubstitutionOptionValue(other.getSubstitutionOptionValue()); + } + if (other.logStreamingOption_ != 0) { + setLogStreamingOptionValue(other.getLogStreamingOptionValue()); + } + if (!other.getWorkerPool().isEmpty()) { + workerPool_ = other.workerPool_; + onChanged(); + } + if (other.logging_ != 0) { + setLoggingValue(other.getLoggingValue()); + } + if (!other.env_.isEmpty()) { + if (env_.isEmpty()) { + env_ = other.env_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureEnvIsMutable(); + env_.addAll(other.env_); + } + onChanged(); + } + if (!other.secretEnv_.isEmpty()) { + if (secretEnv_.isEmpty()) { + secretEnv_ = other.secretEnv_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureSecretEnvIsMutable(); + secretEnv_.addAll(other.secretEnv_); + } + onChanged(); + } + if (volumesBuilder_ == null) { + if (!other.volumes_.isEmpty()) { + if (volumes_.isEmpty()) { + volumes_ = other.volumes_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureVolumesIsMutable(); + volumes_.addAll(other.volumes_); + } + onChanged(); + } + } else { + if (!other.volumes_.isEmpty()) { + if (volumesBuilder_.isEmpty()) { + volumesBuilder_.dispose(); + volumesBuilder_ = null; + volumes_ = other.volumes_; + bitField0_ = (bitField0_ & ~0x00000008); + volumesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVolumesFieldBuilder() : null; + } else { + volumesBuilder_.addAllMessages(other.volumes_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.events.cloud.build.v1.Data.BuildOptions parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.events.cloud.build.v1.Data.BuildOptions) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List sourceProvenanceHash_ = + java.util.Collections.emptyList(); + private void ensureSourceProvenanceHashIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + sourceProvenanceHash_ = new java.util.ArrayList(sourceProvenanceHash_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * Requested hash for SourceProvenance.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Hash.HashType source_provenance_hash = 1; + * @return A list containing the sourceProvenanceHash. + */ + public java.util.List getSourceProvenanceHashList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, google.events.cloud.build.v1.Data.Hash.HashType>(sourceProvenanceHash_, sourceProvenanceHash_converter_); + } + /** + *
+       * Requested hash for SourceProvenance.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Hash.HashType source_provenance_hash = 1; + * @return The count of sourceProvenanceHash. + */ + public int getSourceProvenanceHashCount() { + return sourceProvenanceHash_.size(); + } + /** + *
+       * Requested hash for SourceProvenance.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Hash.HashType source_provenance_hash = 1; + * @param index The index of the element to return. + * @return The sourceProvenanceHash at the given index. + */ + public google.events.cloud.build.v1.Data.Hash.HashType getSourceProvenanceHash(int index) { + return sourceProvenanceHash_converter_.convert(sourceProvenanceHash_.get(index)); + } + /** + *
+       * Requested hash for SourceProvenance.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Hash.HashType source_provenance_hash = 1; + * @param index The index to set the value at. + * @param value The sourceProvenanceHash to set. + * @return This builder for chaining. + */ + public Builder setSourceProvenanceHash( + int index, google.events.cloud.build.v1.Data.Hash.HashType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourceProvenanceHashIsMutable(); + sourceProvenanceHash_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + *
+       * Requested hash for SourceProvenance.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Hash.HashType source_provenance_hash = 1; + * @param value The sourceProvenanceHash to add. + * @return This builder for chaining. + */ + public Builder addSourceProvenanceHash(google.events.cloud.build.v1.Data.Hash.HashType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourceProvenanceHashIsMutable(); + sourceProvenanceHash_.add(value.getNumber()); + onChanged(); + return this; + } + /** + *
+       * Requested hash for SourceProvenance.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Hash.HashType source_provenance_hash = 1; + * @param values The sourceProvenanceHash to add. + * @return This builder for chaining. + */ + public Builder addAllSourceProvenanceHash( + java.lang.Iterable values) { + ensureSourceProvenanceHashIsMutable(); + for (google.events.cloud.build.v1.Data.Hash.HashType value : values) { + sourceProvenanceHash_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + *
+       * Requested hash for SourceProvenance.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Hash.HashType source_provenance_hash = 1; + * @return This builder for chaining. + */ + public Builder clearSourceProvenanceHash() { + sourceProvenanceHash_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Requested hash for SourceProvenance.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Hash.HashType source_provenance_hash = 1; + * @return A list containing the enum numeric values on the wire for sourceProvenanceHash. + */ + public java.util.List + getSourceProvenanceHashValueList() { + return java.util.Collections.unmodifiableList(sourceProvenanceHash_); + } + /** + *
+       * Requested hash for SourceProvenance.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Hash.HashType source_provenance_hash = 1; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of sourceProvenanceHash at the given index. + */ + public int getSourceProvenanceHashValue(int index) { + return sourceProvenanceHash_.get(index); + } + /** + *
+       * Requested hash for SourceProvenance.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Hash.HashType source_provenance_hash = 1; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of sourceProvenanceHash at the given index. + * @return This builder for chaining. + */ + public Builder setSourceProvenanceHashValue( + int index, int value) { + ensureSourceProvenanceHashIsMutable(); + sourceProvenanceHash_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Requested hash for SourceProvenance.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Hash.HashType source_provenance_hash = 1; + * @param value The enum numeric value on the wire for sourceProvenanceHash to add. + * @return This builder for chaining. + */ + public Builder addSourceProvenanceHashValue(int value) { + ensureSourceProvenanceHashIsMutable(); + sourceProvenanceHash_.add(value); + onChanged(); + return this; + } + /** + *
+       * Requested hash for SourceProvenance.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Hash.HashType source_provenance_hash = 1; + * @param values The enum numeric values on the wire for sourceProvenanceHash to add. + * @return This builder for chaining. + */ + public Builder addAllSourceProvenanceHashValue( + java.lang.Iterable values) { + ensureSourceProvenanceHashIsMutable(); + for (int value : values) { + sourceProvenanceHash_.add(value); + } + onChanged(); + return this; + } + + private int requestedVerifyOption_ = 0; + /** + *
+       * Requested verifiability options.
+       * 
+ * + * .google.events.cloud.build.v1.BuildOptions.VerifyOption requested_verify_option = 2; + * @return The enum numeric value on the wire for requestedVerifyOption. + */ + @java.lang.Override public int getRequestedVerifyOptionValue() { + return requestedVerifyOption_; + } + /** + *
+       * Requested verifiability options.
+       * 
+ * + * .google.events.cloud.build.v1.BuildOptions.VerifyOption requested_verify_option = 2; + * @param value The enum numeric value on the wire for requestedVerifyOption to set. + * @return This builder for chaining. + */ + public Builder setRequestedVerifyOptionValue(int value) { + + requestedVerifyOption_ = value; + onChanged(); + return this; + } + /** + *
+       * Requested verifiability options.
+       * 
+ * + * .google.events.cloud.build.v1.BuildOptions.VerifyOption requested_verify_option = 2; + * @return The requestedVerifyOption. + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.BuildOptions.VerifyOption getRequestedVerifyOption() { + @SuppressWarnings("deprecation") + google.events.cloud.build.v1.Data.BuildOptions.VerifyOption result = google.events.cloud.build.v1.Data.BuildOptions.VerifyOption.valueOf(requestedVerifyOption_); + return result == null ? google.events.cloud.build.v1.Data.BuildOptions.VerifyOption.UNRECOGNIZED : result; + } + /** + *
+       * Requested verifiability options.
+       * 
+ * + * .google.events.cloud.build.v1.BuildOptions.VerifyOption requested_verify_option = 2; + * @param value The requestedVerifyOption to set. + * @return This builder for chaining. + */ + public Builder setRequestedVerifyOption(google.events.cloud.build.v1.Data.BuildOptions.VerifyOption value) { + if (value == null) { + throw new NullPointerException(); + } + + requestedVerifyOption_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Requested verifiability options.
+       * 
+ * + * .google.events.cloud.build.v1.BuildOptions.VerifyOption requested_verify_option = 2; + * @return This builder for chaining. + */ + public Builder clearRequestedVerifyOption() { + + requestedVerifyOption_ = 0; + onChanged(); + return this; + } + + private int machineType_ = 0; + /** + *
+       * Compute Engine machine type on which to run the build.
+       * 
+ * + * .google.events.cloud.build.v1.BuildOptions.MachineType machine_type = 3; + * @return The enum numeric value on the wire for machineType. + */ + @java.lang.Override public int getMachineTypeValue() { + return machineType_; + } + /** + *
+       * Compute Engine machine type on which to run the build.
+       * 
+ * + * .google.events.cloud.build.v1.BuildOptions.MachineType machine_type = 3; + * @param value The enum numeric value on the wire for machineType to set. + * @return This builder for chaining. + */ + public Builder setMachineTypeValue(int value) { + + machineType_ = value; + onChanged(); + return this; + } + /** + *
+       * Compute Engine machine type on which to run the build.
+       * 
+ * + * .google.events.cloud.build.v1.BuildOptions.MachineType machine_type = 3; + * @return The machineType. + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.BuildOptions.MachineType getMachineType() { + @SuppressWarnings("deprecation") + google.events.cloud.build.v1.Data.BuildOptions.MachineType result = google.events.cloud.build.v1.Data.BuildOptions.MachineType.valueOf(machineType_); + return result == null ? google.events.cloud.build.v1.Data.BuildOptions.MachineType.UNRECOGNIZED : result; + } + /** + *
+       * Compute Engine machine type on which to run the build.
+       * 
+ * + * .google.events.cloud.build.v1.BuildOptions.MachineType machine_type = 3; + * @param value The machineType to set. + * @return This builder for chaining. + */ + public Builder setMachineType(google.events.cloud.build.v1.Data.BuildOptions.MachineType value) { + if (value == null) { + throw new NullPointerException(); + } + + machineType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Compute Engine machine type on which to run the build.
+       * 
+ * + * .google.events.cloud.build.v1.BuildOptions.MachineType machine_type = 3; + * @return This builder for chaining. + */ + public Builder clearMachineType() { + + machineType_ = 0; + onChanged(); + return this; + } + + private long diskSizeGb_ ; + /** + *
+       * Requested disk size for the VM that runs the build. Note that this is *NOT*
+       * "disk free"; some of the space will be used by the operating system and
+       * build utilities. Also note that this is the minimum disk size that will be
+       * allocated for the build -- the build may run with a larger disk than
+       * requested. At present, the maximum disk size is 1000GB; builds that request
+       * more than the maximum are rejected with an error.
+       * 
+ * + * int64 disk_size_gb = 6; + * @return The diskSizeGb. + */ + @java.lang.Override + public long getDiskSizeGb() { + return diskSizeGb_; + } + /** + *
+       * Requested disk size for the VM that runs the build. Note that this is *NOT*
+       * "disk free"; some of the space will be used by the operating system and
+       * build utilities. Also note that this is the minimum disk size that will be
+       * allocated for the build -- the build may run with a larger disk than
+       * requested. At present, the maximum disk size is 1000GB; builds that request
+       * more than the maximum are rejected with an error.
+       * 
+ * + * int64 disk_size_gb = 6; + * @param value The diskSizeGb to set. + * @return This builder for chaining. + */ + public Builder setDiskSizeGb(long value) { + + diskSizeGb_ = value; + onChanged(); + return this; + } + /** + *
+       * Requested disk size for the VM that runs the build. Note that this is *NOT*
+       * "disk free"; some of the space will be used by the operating system and
+       * build utilities. Also note that this is the minimum disk size that will be
+       * allocated for the build -- the build may run with a larger disk than
+       * requested. At present, the maximum disk size is 1000GB; builds that request
+       * more than the maximum are rejected with an error.
+       * 
+ * + * int64 disk_size_gb = 6; + * @return This builder for chaining. + */ + public Builder clearDiskSizeGb() { + + diskSizeGb_ = 0L; + onChanged(); + return this; + } + + private int substitutionOption_ = 0; + /** + *
+       * Option to specify behavior when there is an error in the substitution
+       * checks.
+       * 
+ * + * .google.events.cloud.build.v1.BuildOptions.SubstitutionOption substitution_option = 4; + * @return The enum numeric value on the wire for substitutionOption. + */ + @java.lang.Override public int getSubstitutionOptionValue() { + return substitutionOption_; + } + /** + *
+       * Option to specify behavior when there is an error in the substitution
+       * checks.
+       * 
+ * + * .google.events.cloud.build.v1.BuildOptions.SubstitutionOption substitution_option = 4; + * @param value The enum numeric value on the wire for substitutionOption to set. + * @return This builder for chaining. + */ + public Builder setSubstitutionOptionValue(int value) { + + substitutionOption_ = value; + onChanged(); + return this; + } + /** + *
+       * Option to specify behavior when there is an error in the substitution
+       * checks.
+       * 
+ * + * .google.events.cloud.build.v1.BuildOptions.SubstitutionOption substitution_option = 4; + * @return The substitutionOption. + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.BuildOptions.SubstitutionOption getSubstitutionOption() { + @SuppressWarnings("deprecation") + google.events.cloud.build.v1.Data.BuildOptions.SubstitutionOption result = google.events.cloud.build.v1.Data.BuildOptions.SubstitutionOption.valueOf(substitutionOption_); + return result == null ? google.events.cloud.build.v1.Data.BuildOptions.SubstitutionOption.UNRECOGNIZED : result; + } + /** + *
+       * Option to specify behavior when there is an error in the substitution
+       * checks.
+       * 
+ * + * .google.events.cloud.build.v1.BuildOptions.SubstitutionOption substitution_option = 4; + * @param value The substitutionOption to set. + * @return This builder for chaining. + */ + public Builder setSubstitutionOption(google.events.cloud.build.v1.Data.BuildOptions.SubstitutionOption value) { + if (value == null) { + throw new NullPointerException(); + } + + substitutionOption_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Option to specify behavior when there is an error in the substitution
+       * checks.
+       * 
+ * + * .google.events.cloud.build.v1.BuildOptions.SubstitutionOption substitution_option = 4; + * @return This builder for chaining. + */ + public Builder clearSubstitutionOption() { + + substitutionOption_ = 0; + onChanged(); + return this; + } + + private int logStreamingOption_ = 0; + /** + *
+       * Option to define build log streaming behavior to Google Cloud
+       * Storage.
+       * 
+ * + * .google.events.cloud.build.v1.BuildOptions.LogStreamingOption log_streaming_option = 5; + * @return The enum numeric value on the wire for logStreamingOption. + */ + @java.lang.Override public int getLogStreamingOptionValue() { + return logStreamingOption_; + } + /** + *
+       * Option to define build log streaming behavior to Google Cloud
+       * Storage.
+       * 
+ * + * .google.events.cloud.build.v1.BuildOptions.LogStreamingOption log_streaming_option = 5; + * @param value The enum numeric value on the wire for logStreamingOption to set. + * @return This builder for chaining. + */ + public Builder setLogStreamingOptionValue(int value) { + + logStreamingOption_ = value; + onChanged(); + return this; + } + /** + *
+       * Option to define build log streaming behavior to Google Cloud
+       * Storage.
+       * 
+ * + * .google.events.cloud.build.v1.BuildOptions.LogStreamingOption log_streaming_option = 5; + * @return The logStreamingOption. + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.BuildOptions.LogStreamingOption getLogStreamingOption() { + @SuppressWarnings("deprecation") + google.events.cloud.build.v1.Data.BuildOptions.LogStreamingOption result = google.events.cloud.build.v1.Data.BuildOptions.LogStreamingOption.valueOf(logStreamingOption_); + return result == null ? google.events.cloud.build.v1.Data.BuildOptions.LogStreamingOption.UNRECOGNIZED : result; + } + /** + *
+       * Option to define build log streaming behavior to Google Cloud
+       * Storage.
+       * 
+ * + * .google.events.cloud.build.v1.BuildOptions.LogStreamingOption log_streaming_option = 5; + * @param value The logStreamingOption to set. + * @return This builder for chaining. + */ + public Builder setLogStreamingOption(google.events.cloud.build.v1.Data.BuildOptions.LogStreamingOption value) { + if (value == null) { + throw new NullPointerException(); + } + + logStreamingOption_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Option to define build log streaming behavior to Google Cloud
+       * Storage.
+       * 
+ * + * .google.events.cloud.build.v1.BuildOptions.LogStreamingOption log_streaming_option = 5; + * @return This builder for chaining. + */ + public Builder clearLogStreamingOption() { + + logStreamingOption_ = 0; + onChanged(); + return this; + } + + private java.lang.Object workerPool_ = ""; + /** + *
+       * Option to specify a `WorkerPool` for the build.
+       * Format: projects/{project}/locations/{location}/workerPools/{workerPool}
+       * 
+ * + * string worker_pool = 7; + * @return The workerPool. + */ + public java.lang.String getWorkerPool() { + java.lang.Object ref = workerPool_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workerPool_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Option to specify a `WorkerPool` for the build.
+       * Format: projects/{project}/locations/{location}/workerPools/{workerPool}
+       * 
+ * + * string worker_pool = 7; + * @return The bytes for workerPool. + */ + public com.google.protobuf.ByteString + getWorkerPoolBytes() { + java.lang.Object ref = workerPool_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workerPool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Option to specify a `WorkerPool` for the build.
+       * Format: projects/{project}/locations/{location}/workerPools/{workerPool}
+       * 
+ * + * string worker_pool = 7; + * @param value The workerPool to set. + * @return This builder for chaining. + */ + public Builder setWorkerPool( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + workerPool_ = value; + onChanged(); + return this; + } + /** + *
+       * Option to specify a `WorkerPool` for the build.
+       * Format: projects/{project}/locations/{location}/workerPools/{workerPool}
+       * 
+ * + * string worker_pool = 7; + * @return This builder for chaining. + */ + public Builder clearWorkerPool() { + + workerPool_ = getDefaultInstance().getWorkerPool(); + onChanged(); + return this; + } + /** + *
+       * Option to specify a `WorkerPool` for the build.
+       * Format: projects/{project}/locations/{location}/workerPools/{workerPool}
+       * 
+ * + * string worker_pool = 7; + * @param value The bytes for workerPool to set. + * @return This builder for chaining. + */ + public Builder setWorkerPoolBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + workerPool_ = value; + onChanged(); + return this; + } + + private int logging_ = 0; + /** + *
+       * Option to specify the logging mode, which determines where the logs are
+       * stored.
+       * 
+ * + * .google.events.cloud.build.v1.BuildOptions.LoggingMode logging = 11; + * @return The enum numeric value on the wire for logging. + */ + @java.lang.Override public int getLoggingValue() { + return logging_; + } + /** + *
+       * Option to specify the logging mode, which determines where the logs are
+       * stored.
+       * 
+ * + * .google.events.cloud.build.v1.BuildOptions.LoggingMode logging = 11; + * @param value The enum numeric value on the wire for logging to set. + * @return This builder for chaining. + */ + public Builder setLoggingValue(int value) { + + logging_ = value; + onChanged(); + return this; + } + /** + *
+       * Option to specify the logging mode, which determines where the logs are
+       * stored.
+       * 
+ * + * .google.events.cloud.build.v1.BuildOptions.LoggingMode logging = 11; + * @return The logging. + */ + @java.lang.Override + public google.events.cloud.build.v1.Data.BuildOptions.LoggingMode getLogging() { + @SuppressWarnings("deprecation") + google.events.cloud.build.v1.Data.BuildOptions.LoggingMode result = google.events.cloud.build.v1.Data.BuildOptions.LoggingMode.valueOf(logging_); + return result == null ? google.events.cloud.build.v1.Data.BuildOptions.LoggingMode.UNRECOGNIZED : result; + } + /** + *
+       * Option to specify the logging mode, which determines where the logs are
+       * stored.
+       * 
+ * + * .google.events.cloud.build.v1.BuildOptions.LoggingMode logging = 11; + * @param value The logging to set. + * @return This builder for chaining. + */ + public Builder setLogging(google.events.cloud.build.v1.Data.BuildOptions.LoggingMode value) { + if (value == null) { + throw new NullPointerException(); + } + + logging_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Option to specify the logging mode, which determines where the logs are
+       * stored.
+       * 
+ * + * .google.events.cloud.build.v1.BuildOptions.LoggingMode logging = 11; + * @return This builder for chaining. + */ + public Builder clearLogging() { + + logging_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList env_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureEnvIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + env_ = new com.google.protobuf.LazyStringArrayList(env_); + bitField0_ |= 0x00000002; + } + } + /** + *
+       * A list of global environment variable definitions that will exist for all
+       * build steps in this build. If a variable is defined in both globally and in
+       * a build step, the variable will use the build step value.
+       * The elements are of the form "KEY=VALUE" for the environment variable "KEY"
+       * being given the value "VALUE".
+       * 
+ * + * repeated string env = 12; + * @return A list containing the env. + */ + public com.google.protobuf.ProtocolStringList + getEnvList() { + return env_.getUnmodifiableView(); + } + /** + *
+       * A list of global environment variable definitions that will exist for all
+       * build steps in this build. If a variable is defined in both globally and in
+       * a build step, the variable will use the build step value.
+       * The elements are of the form "KEY=VALUE" for the environment variable "KEY"
+       * being given the value "VALUE".
+       * 
+ * + * repeated string env = 12; + * @return The count of env. + */ + public int getEnvCount() { + return env_.size(); + } + /** + *
+       * A list of global environment variable definitions that will exist for all
+       * build steps in this build. If a variable is defined in both globally and in
+       * a build step, the variable will use the build step value.
+       * The elements are of the form "KEY=VALUE" for the environment variable "KEY"
+       * being given the value "VALUE".
+       * 
+ * + * repeated string env = 12; + * @param index The index of the element to return. + * @return The env at the given index. + */ + public java.lang.String getEnv(int index) { + return env_.get(index); + } + /** + *
+       * A list of global environment variable definitions that will exist for all
+       * build steps in this build. If a variable is defined in both globally and in
+       * a build step, the variable will use the build step value.
+       * The elements are of the form "KEY=VALUE" for the environment variable "KEY"
+       * being given the value "VALUE".
+       * 
+ * + * repeated string env = 12; + * @param index The index of the value to return. + * @return The bytes of the env at the given index. + */ + public com.google.protobuf.ByteString + getEnvBytes(int index) { + return env_.getByteString(index); + } + /** + *
+       * A list of global environment variable definitions that will exist for all
+       * build steps in this build. If a variable is defined in both globally and in
+       * a build step, the variable will use the build step value.
+       * The elements are of the form "KEY=VALUE" for the environment variable "KEY"
+       * being given the value "VALUE".
+       * 
+ * + * repeated string env = 12; + * @param index The index to set the value at. + * @param value The env to set. + * @return This builder for chaining. + */ + public Builder setEnv( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvIsMutable(); + env_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * A list of global environment variable definitions that will exist for all
+       * build steps in this build. If a variable is defined in both globally and in
+       * a build step, the variable will use the build step value.
+       * The elements are of the form "KEY=VALUE" for the environment variable "KEY"
+       * being given the value "VALUE".
+       * 
+ * + * repeated string env = 12; + * @param value The env to add. + * @return This builder for chaining. + */ + public Builder addEnv( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvIsMutable(); + env_.add(value); + onChanged(); + return this; + } + /** + *
+       * A list of global environment variable definitions that will exist for all
+       * build steps in this build. If a variable is defined in both globally and in
+       * a build step, the variable will use the build step value.
+       * The elements are of the form "KEY=VALUE" for the environment variable "KEY"
+       * being given the value "VALUE".
+       * 
+ * + * repeated string env = 12; + * @param values The env to add. + * @return This builder for chaining. + */ + public Builder addAllEnv( + java.lang.Iterable values) { + ensureEnvIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, env_); + onChanged(); + return this; + } + /** + *
+       * A list of global environment variable definitions that will exist for all
+       * build steps in this build. If a variable is defined in both globally and in
+       * a build step, the variable will use the build step value.
+       * The elements are of the form "KEY=VALUE" for the environment variable "KEY"
+       * being given the value "VALUE".
+       * 
+ * + * repeated string env = 12; + * @return This builder for chaining. + */ + public Builder clearEnv() { + env_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * A list of global environment variable definitions that will exist for all
+       * build steps in this build. If a variable is defined in both globally and in
+       * a build step, the variable will use the build step value.
+       * The elements are of the form "KEY=VALUE" for the environment variable "KEY"
+       * being given the value "VALUE".
+       * 
+ * + * repeated string env = 12; + * @param value The bytes of the env to add. + * @return This builder for chaining. + */ + public Builder addEnvBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureEnvIsMutable(); + env_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList secretEnv_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureSecretEnvIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + secretEnv_ = new com.google.protobuf.LazyStringArrayList(secretEnv_); + bitField0_ |= 0x00000004; + } + } + /** + *
+       * A list of global environment variables, which are encrypted using a Cloud
+       * Key Management Service crypto key. These values must be specified in the
+       * build's `Secret`. These variables will be available to all build steps
+       * in this build.
+       * 
+ * + * repeated string secret_env = 13; + * @return A list containing the secretEnv. + */ + public com.google.protobuf.ProtocolStringList + getSecretEnvList() { + return secretEnv_.getUnmodifiableView(); + } + /** + *
+       * A list of global environment variables, which are encrypted using a Cloud
+       * Key Management Service crypto key. These values must be specified in the
+       * build's `Secret`. These variables will be available to all build steps
+       * in this build.
+       * 
+ * + * repeated string secret_env = 13; + * @return The count of secretEnv. + */ + public int getSecretEnvCount() { + return secretEnv_.size(); + } + /** + *
+       * A list of global environment variables, which are encrypted using a Cloud
+       * Key Management Service crypto key. These values must be specified in the
+       * build's `Secret`. These variables will be available to all build steps
+       * in this build.
+       * 
+ * + * repeated string secret_env = 13; + * @param index The index of the element to return. + * @return The secretEnv at the given index. + */ + public java.lang.String getSecretEnv(int index) { + return secretEnv_.get(index); + } + /** + *
+       * A list of global environment variables, which are encrypted using a Cloud
+       * Key Management Service crypto key. These values must be specified in the
+       * build's `Secret`. These variables will be available to all build steps
+       * in this build.
+       * 
+ * + * repeated string secret_env = 13; + * @param index The index of the value to return. + * @return The bytes of the secretEnv at the given index. + */ + public com.google.protobuf.ByteString + getSecretEnvBytes(int index) { + return secretEnv_.getByteString(index); + } + /** + *
+       * A list of global environment variables, which are encrypted using a Cloud
+       * Key Management Service crypto key. These values must be specified in the
+       * build's `Secret`. These variables will be available to all build steps
+       * in this build.
+       * 
+ * + * repeated string secret_env = 13; + * @param index The index to set the value at. + * @param value The secretEnv to set. + * @return This builder for chaining. + */ + public Builder setSecretEnv( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecretEnvIsMutable(); + secretEnv_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * A list of global environment variables, which are encrypted using a Cloud
+       * Key Management Service crypto key. These values must be specified in the
+       * build's `Secret`. These variables will be available to all build steps
+       * in this build.
+       * 
+ * + * repeated string secret_env = 13; + * @param value The secretEnv to add. + * @return This builder for chaining. + */ + public Builder addSecretEnv( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecretEnvIsMutable(); + secretEnv_.add(value); + onChanged(); + return this; + } + /** + *
+       * A list of global environment variables, which are encrypted using a Cloud
+       * Key Management Service crypto key. These values must be specified in the
+       * build's `Secret`. These variables will be available to all build steps
+       * in this build.
+       * 
+ * + * repeated string secret_env = 13; + * @param values The secretEnv to add. + * @return This builder for chaining. + */ + public Builder addAllSecretEnv( + java.lang.Iterable values) { + ensureSecretEnvIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, secretEnv_); + onChanged(); + return this; + } + /** + *
+       * A list of global environment variables, which are encrypted using a Cloud
+       * Key Management Service crypto key. These values must be specified in the
+       * build's `Secret`. These variables will be available to all build steps
+       * in this build.
+       * 
+ * + * repeated string secret_env = 13; + * @return This builder for chaining. + */ + public Builder clearSecretEnv() { + secretEnv_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * A list of global environment variables, which are encrypted using a Cloud
+       * Key Management Service crypto key. These values must be specified in the
+       * build's `Secret`. These variables will be available to all build steps
+       * in this build.
+       * 
+ * + * repeated string secret_env = 13; + * @param value The bytes of the secretEnv to add. + * @return This builder for chaining. + */ + public Builder addSecretEnvBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSecretEnvIsMutable(); + secretEnv_.add(value); + onChanged(); + return this; + } + + private java.util.List volumes_ = + java.util.Collections.emptyList(); + private void ensureVolumesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + volumes_ = new java.util.ArrayList(volumes_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + google.events.cloud.build.v1.Data.Volume, google.events.cloud.build.v1.Data.Volume.Builder, google.events.cloud.build.v1.Data.VolumeOrBuilder> volumesBuilder_; + + /** + *
+       * Global list of volumes to mount for ALL build steps
+       * Each volume is created as an empty volume prior to starting the build
+       * process. Upon completion of the build, volumes and their contents are
+       * discarded. Global volume names and paths cannot conflict with the volumes
+       * defined a build step.
+       * Using a global volume in a build with only one step is not valid as
+       * it is indicative of a build request with an incorrect configuration.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 14; + */ + public java.util.List getVolumesList() { + if (volumesBuilder_ == null) { + return java.util.Collections.unmodifiableList(volumes_); + } else { + return volumesBuilder_.getMessageList(); + } + } + /** + *
+       * Global list of volumes to mount for ALL build steps
+       * Each volume is created as an empty volume prior to starting the build
+       * process. Upon completion of the build, volumes and their contents are
+       * discarded. Global volume names and paths cannot conflict with the volumes
+       * defined a build step.
+       * Using a global volume in a build with only one step is not valid as
+       * it is indicative of a build request with an incorrect configuration.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 14; + */ + public int getVolumesCount() { + if (volumesBuilder_ == null) { + return volumes_.size(); + } else { + return volumesBuilder_.getCount(); + } + } + /** + *
+       * Global list of volumes to mount for ALL build steps
+       * Each volume is created as an empty volume prior to starting the build
+       * process. Upon completion of the build, volumes and their contents are
+       * discarded. Global volume names and paths cannot conflict with the volumes
+       * defined a build step.
+       * Using a global volume in a build with only one step is not valid as
+       * it is indicative of a build request with an incorrect configuration.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 14; + */ + public google.events.cloud.build.v1.Data.Volume getVolumes(int index) { + if (volumesBuilder_ == null) { + return volumes_.get(index); + } else { + return volumesBuilder_.getMessage(index); + } + } + /** + *
+       * Global list of volumes to mount for ALL build steps
+       * Each volume is created as an empty volume prior to starting the build
+       * process. Upon completion of the build, volumes and their contents are
+       * discarded. Global volume names and paths cannot conflict with the volumes
+       * defined a build step.
+       * Using a global volume in a build with only one step is not valid as
+       * it is indicative of a build request with an incorrect configuration.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 14; + */ + public Builder setVolumes( + int index, google.events.cloud.build.v1.Data.Volume value) { + if (volumesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVolumesIsMutable(); + volumes_.set(index, value); + onChanged(); + } else { + volumesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Global list of volumes to mount for ALL build steps
+       * Each volume is created as an empty volume prior to starting the build
+       * process. Upon completion of the build, volumes and their contents are
+       * discarded. Global volume names and paths cannot conflict with the volumes
+       * defined a build step.
+       * Using a global volume in a build with only one step is not valid as
+       * it is indicative of a build request with an incorrect configuration.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 14; + */ + public Builder setVolumes( + int index, google.events.cloud.build.v1.Data.Volume.Builder builderForValue) { + if (volumesBuilder_ == null) { + ensureVolumesIsMutable(); + volumes_.set(index, builderForValue.build()); + onChanged(); + } else { + volumesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Global list of volumes to mount for ALL build steps
+       * Each volume is created as an empty volume prior to starting the build
+       * process. Upon completion of the build, volumes and their contents are
+       * discarded. Global volume names and paths cannot conflict with the volumes
+       * defined a build step.
+       * Using a global volume in a build with only one step is not valid as
+       * it is indicative of a build request with an incorrect configuration.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 14; + */ + public Builder addVolumes(google.events.cloud.build.v1.Data.Volume value) { + if (volumesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVolumesIsMutable(); + volumes_.add(value); + onChanged(); + } else { + volumesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Global list of volumes to mount for ALL build steps
+       * Each volume is created as an empty volume prior to starting the build
+       * process. Upon completion of the build, volumes and their contents are
+       * discarded. Global volume names and paths cannot conflict with the volumes
+       * defined a build step.
+       * Using a global volume in a build with only one step is not valid as
+       * it is indicative of a build request with an incorrect configuration.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 14; + */ + public Builder addVolumes( + int index, google.events.cloud.build.v1.Data.Volume value) { + if (volumesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVolumesIsMutable(); + volumes_.add(index, value); + onChanged(); + } else { + volumesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Global list of volumes to mount for ALL build steps
+       * Each volume is created as an empty volume prior to starting the build
+       * process. Upon completion of the build, volumes and their contents are
+       * discarded. Global volume names and paths cannot conflict with the volumes
+       * defined a build step.
+       * Using a global volume in a build with only one step is not valid as
+       * it is indicative of a build request with an incorrect configuration.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 14; + */ + public Builder addVolumes( + google.events.cloud.build.v1.Data.Volume.Builder builderForValue) { + if (volumesBuilder_ == null) { + ensureVolumesIsMutable(); + volumes_.add(builderForValue.build()); + onChanged(); + } else { + volumesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Global list of volumes to mount for ALL build steps
+       * Each volume is created as an empty volume prior to starting the build
+       * process. Upon completion of the build, volumes and their contents are
+       * discarded. Global volume names and paths cannot conflict with the volumes
+       * defined a build step.
+       * Using a global volume in a build with only one step is not valid as
+       * it is indicative of a build request with an incorrect configuration.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 14; + */ + public Builder addVolumes( + int index, google.events.cloud.build.v1.Data.Volume.Builder builderForValue) { + if (volumesBuilder_ == null) { + ensureVolumesIsMutable(); + volumes_.add(index, builderForValue.build()); + onChanged(); + } else { + volumesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Global list of volumes to mount for ALL build steps
+       * Each volume is created as an empty volume prior to starting the build
+       * process. Upon completion of the build, volumes and their contents are
+       * discarded. Global volume names and paths cannot conflict with the volumes
+       * defined a build step.
+       * Using a global volume in a build with only one step is not valid as
+       * it is indicative of a build request with an incorrect configuration.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 14; + */ + public Builder addAllVolumes( + java.lang.Iterable values) { + if (volumesBuilder_ == null) { + ensureVolumesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, volumes_); + onChanged(); + } else { + volumesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Global list of volumes to mount for ALL build steps
+       * Each volume is created as an empty volume prior to starting the build
+       * process. Upon completion of the build, volumes and their contents are
+       * discarded. Global volume names and paths cannot conflict with the volumes
+       * defined a build step.
+       * Using a global volume in a build with only one step is not valid as
+       * it is indicative of a build request with an incorrect configuration.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 14; + */ + public Builder clearVolumes() { + if (volumesBuilder_ == null) { + volumes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + volumesBuilder_.clear(); + } + return this; + } + /** + *
+       * Global list of volumes to mount for ALL build steps
+       * Each volume is created as an empty volume prior to starting the build
+       * process. Upon completion of the build, volumes and their contents are
+       * discarded. Global volume names and paths cannot conflict with the volumes
+       * defined a build step.
+       * Using a global volume in a build with only one step is not valid as
+       * it is indicative of a build request with an incorrect configuration.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 14; + */ + public Builder removeVolumes(int index) { + if (volumesBuilder_ == null) { + ensureVolumesIsMutable(); + volumes_.remove(index); + onChanged(); + } else { + volumesBuilder_.remove(index); + } + return this; + } + /** + *
+       * Global list of volumes to mount for ALL build steps
+       * Each volume is created as an empty volume prior to starting the build
+       * process. Upon completion of the build, volumes and their contents are
+       * discarded. Global volume names and paths cannot conflict with the volumes
+       * defined a build step.
+       * Using a global volume in a build with only one step is not valid as
+       * it is indicative of a build request with an incorrect configuration.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 14; + */ + public google.events.cloud.build.v1.Data.Volume.Builder getVolumesBuilder( + int index) { + return getVolumesFieldBuilder().getBuilder(index); + } + /** + *
+       * Global list of volumes to mount for ALL build steps
+       * Each volume is created as an empty volume prior to starting the build
+       * process. Upon completion of the build, volumes and their contents are
+       * discarded. Global volume names and paths cannot conflict with the volumes
+       * defined a build step.
+       * Using a global volume in a build with only one step is not valid as
+       * it is indicative of a build request with an incorrect configuration.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 14; + */ + public google.events.cloud.build.v1.Data.VolumeOrBuilder getVolumesOrBuilder( + int index) { + if (volumesBuilder_ == null) { + return volumes_.get(index); } else { + return volumesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Global list of volumes to mount for ALL build steps
+       * Each volume is created as an empty volume prior to starting the build
+       * process. Upon completion of the build, volumes and their contents are
+       * discarded. Global volume names and paths cannot conflict with the volumes
+       * defined a build step.
+       * Using a global volume in a build with only one step is not valid as
+       * it is indicative of a build request with an incorrect configuration.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 14; + */ + public java.util.List + getVolumesOrBuilderList() { + if (volumesBuilder_ != null) { + return volumesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(volumes_); + } + } + /** + *
+       * Global list of volumes to mount for ALL build steps
+       * Each volume is created as an empty volume prior to starting the build
+       * process. Upon completion of the build, volumes and their contents are
+       * discarded. Global volume names and paths cannot conflict with the volumes
+       * defined a build step.
+       * Using a global volume in a build with only one step is not valid as
+       * it is indicative of a build request with an incorrect configuration.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 14; + */ + public google.events.cloud.build.v1.Data.Volume.Builder addVolumesBuilder() { + return getVolumesFieldBuilder().addBuilder( + google.events.cloud.build.v1.Data.Volume.getDefaultInstance()); + } + /** + *
+       * Global list of volumes to mount for ALL build steps
+       * Each volume is created as an empty volume prior to starting the build
+       * process. Upon completion of the build, volumes and their contents are
+       * discarded. Global volume names and paths cannot conflict with the volumes
+       * defined a build step.
+       * Using a global volume in a build with only one step is not valid as
+       * it is indicative of a build request with an incorrect configuration.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 14; + */ + public google.events.cloud.build.v1.Data.Volume.Builder addVolumesBuilder( + int index) { + return getVolumesFieldBuilder().addBuilder( + index, google.events.cloud.build.v1.Data.Volume.getDefaultInstance()); + } + /** + *
+       * Global list of volumes to mount for ALL build steps
+       * Each volume is created as an empty volume prior to starting the build
+       * process. Upon completion of the build, volumes and their contents are
+       * discarded. Global volume names and paths cannot conflict with the volumes
+       * defined a build step.
+       * Using a global volume in a build with only one step is not valid as
+       * it is indicative of a build request with an incorrect configuration.
+       * 
+ * + * repeated .google.events.cloud.build.v1.Volume volumes = 14; + */ + public java.util.List + getVolumesBuilderList() { + return getVolumesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + google.events.cloud.build.v1.Data.Volume, google.events.cloud.build.v1.Data.Volume.Builder, google.events.cloud.build.v1.Data.VolumeOrBuilder> + getVolumesFieldBuilder() { + if (volumesBuilder_ == null) { + volumesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + google.events.cloud.build.v1.Data.Volume, google.events.cloud.build.v1.Data.Volume.Builder, google.events.cloud.build.v1.Data.VolumeOrBuilder>( + volumes_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + volumes_ = null; + } + return volumesBuilder_; + } + @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.build.v1.BuildOptions) + } + + // @@protoc_insertion_point(class_scope:google.events.cloud.build.v1.BuildOptions) + private static final google.events.cloud.build.v1.Data.BuildOptions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new google.events.cloud.build.v1.Data.BuildOptions(); + } + + public static google.events.cloud.build.v1.Data.BuildOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BuildOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BuildOptions(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public google.events.cloud.build.v1.Data.BuildOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_cloud_build_v1_BuildEventData_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_cloud_build_v1_BuildEventData_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_cloud_build_v1_BuildEventData_SubstitutionsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_cloud_build_v1_BuildEventData_SubstitutionsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_cloud_build_v1_BuildEventData_TimingEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_cloud_build_v1_BuildEventData_TimingEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_cloud_build_v1_Source_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_cloud_build_v1_Source_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_cloud_build_v1_StorageSource_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_cloud_build_v1_StorageSource_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_cloud_build_v1_RepoSource_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_cloud_build_v1_RepoSource_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_cloud_build_v1_RepoSource_SubstitutionsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_cloud_build_v1_RepoSource_SubstitutionsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_cloud_build_v1_BuildStep_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_cloud_build_v1_BuildStep_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_cloud_build_v1_Volume_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_cloud_build_v1_Volume_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_cloud_build_v1_Results_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_cloud_build_v1_Results_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_cloud_build_v1_BuiltImage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_cloud_build_v1_BuiltImage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_cloud_build_v1_Artifacts_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_cloud_build_v1_Artifacts_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_cloud_build_v1_Artifacts_ArtifactObjects_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_cloud_build_v1_Artifacts_ArtifactObjects_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_cloud_build_v1_TimeSpan_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_cloud_build_v1_TimeSpan_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_cloud_build_v1_SourceProvenance_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_cloud_build_v1_SourceProvenance_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_cloud_build_v1_SourceProvenance_FileHashesEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_cloud_build_v1_SourceProvenance_FileHashesEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_cloud_build_v1_FileHashes_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_cloud_build_v1_FileHashes_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_cloud_build_v1_Hash_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_cloud_build_v1_Hash_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_cloud_build_v1_Secret_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_cloud_build_v1_Secret_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_cloud_build_v1_Secret_SecretEnvEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_cloud_build_v1_Secret_SecretEnvEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_cloud_build_v1_BuildOptions_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_cloud_build_v1_BuildOptions_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\'google/events/cloud/build/v1/data.prot" + + "o\022\034google.events.cloud.build.v1\032\036google/" + + "protobuf/duration.proto\032\037google/protobuf" + + "/timestamp.proto\"\265\n\n\016BuildEventData\022\n\n\002i" + + "d\030\001 \001(\t\022\022\n\nproject_id\030\020 \001(\t\022C\n\006status\030\002 " + + "\001(\01623.google.events.cloud.build.v1.Build" + + "EventData.Status\022\025\n\rstatus_detail\030\030 \001(\t\022" + + "4\n\006source\030\003 \001(\0132$.google.events.cloud.bu" + + "ild.v1.Source\0226\n\005steps\030\013 \003(\0132\'.google.ev" + + "ents.cloud.build.v1.BuildStep\0226\n\007results" + + "\030\n \001(\0132%.google.events.cloud.build.v1.Re" + + "sults\022/\n\013create_time\030\006 \001(\0132\032.google.prot" + + "obuf.Timestamp\022.\n\nstart_time\030\007 \001(\0132\032.goo" + + "gle.protobuf.Timestamp\022/\n\013finish_time\030\010 " + + "\001(\0132\032.google.protobuf.Timestamp\022*\n\007timeo" + + "ut\030\014 \001(\0132\031.google.protobuf.Duration\022\016\n\006i" + + "mages\030\r \003(\t\022,\n\tqueue_ttl\030( \001(\0132\031.google." + + "protobuf.Duration\022:\n\tartifacts\030% \001(\0132\'.g" + + "oogle.events.cloud.build.v1.Artifacts\022\023\n" + + "\013logs_bucket\030\023 \001(\t\022I\n\021source_provenance\030" + + "\025 \001(\0132..google.events.cloud.build.v1.Sou" + + "rceProvenance\022\030\n\020build_trigger_id\030\026 \001(\t\022" + + ";\n\007options\030\027 \001(\0132*.google.events.cloud.b" + + "uild.v1.BuildOptions\022\017\n\007log_url\030\031 \001(\t\022V\n" + + "\rsubstitutions\030\035 \003(\0132?.google.events.clo" + + "ud.build.v1.BuildEventData.Substitutions" + + "Entry\022\014\n\004tags\030\037 \003(\t\0225\n\007secrets\030 \003(\0132$.g" + + "oogle.events.cloud.build.v1.Secret\022H\n\006ti" + + "ming\030! \003(\01328.google.events.cloud.build.v" + + "1.BuildEventData.TimingEntry\0324\n\022Substitu" + + "tionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001\032U\n\013TimingEntry\022\013\n\003key\030\001 \001(\t\0225\n\005value\030" + + "\002 \001(\0132&.google.events.cloud.build.v1.Tim" + + "eSpan:\0028\001\"\214\001\n\006Status\022\022\n\016STATUS_UNKNOWN\020\000" + + "\022\n\n\006QUEUED\020\001\022\013\n\007WORKING\020\002\022\013\n\007SUCCESS\020\003\022\013" + + "\n\007FAILURE\020\004\022\022\n\016INTERNAL_ERROR\020\005\022\013\n\007TIMEO" + + "UT\020\006\022\r\n\tCANCELLED\020\007\022\013\n\007EXPIRED\020\t\"\232\001\n\006Sou" + + "rce\022E\n\016storage_source\030\002 \001(\0132+.google.eve" + + "nts.cloud.build.v1.StorageSourceH\000\022?\n\013re" + + "po_source\030\003 \001(\0132(.google.events.cloud.bu" + + "ild.v1.RepoSourceH\000B\010\n\006source\"C\n\rStorage" + + "Source\022\016\n\006bucket\030\001 \001(\t\022\016\n\006object\030\002 \001(\t\022\022" + + "\n\ngeneration\030\003 \001(\003\"\255\002\n\nRepoSource\022\022\n\npro" + + "ject_id\030\001 \001(\t\022\021\n\trepo_name\030\002 \001(\t\022\025\n\013bran" + + "ch_name\030\003 \001(\tH\000\022\022\n\010tag_name\030\004 \001(\tH\000\022\024\n\nc" + + "ommit_sha\030\005 \001(\tH\000\022\013\n\003dir\030\007 \001(\t\022\024\n\014invert" + + "_regex\030\010 \001(\010\022R\n\rsubstitutions\030\t \003(\0132;.go" + + "ogle.events.cloud.build.v1.RepoSource.Su" + + "bstitutionsEntry\0324\n\022SubstitutionsEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\n\n\010revisi" + + "on\"\244\003\n\tBuildStep\022\014\n\004name\030\001 \001(\t\022\013\n\003env\030\002 " + + "\003(\t\022\014\n\004args\030\003 \003(\t\022\013\n\003dir\030\004 \001(\t\022\n\n\002id\030\005 \001" + + "(\t\022\020\n\010wait_for\030\006 \003(\t\022\022\n\nentrypoint\030\007 \001(\t" + + "\022\022\n\nsecret_env\030\010 \003(\t\0225\n\007volumes\030\t \003(\0132$." + + "google.events.cloud.build.v1.Volume\0226\n\006t" + + "iming\030\n \001(\0132&.google.events.cloud.build." + + "v1.TimeSpan\022;\n\013pull_timing\030\r \001(\0132&.googl" + + "e.events.cloud.build.v1.TimeSpan\022*\n\007time" + + "out\030\013 \001(\0132\031.google.protobuf.Duration\022C\n\006" + + "status\030\014 \001(\01623.google.events.cloud.build" + + ".v1.BuildEventData.Status\"$\n\006Volume\022\014\n\004n" + + "ame\030\001 \001(\t\022\014\n\004path\030\002 \001(\t\"\355\001\n\007Results\0228\n\006i" + + "mages\030\002 \003(\0132(.google.events.cloud.build." + + "v1.BuiltImage\022\031\n\021build_step_images\030\003 \003(\t" + + "\022\031\n\021artifact_manifest\030\004 \001(\t\022\025\n\rnum_artif" + + "acts\030\005 \001(\003\022\032\n\022build_step_outputs\030\006 \003(\014\022?" + + "\n\017artifact_timing\030\007 \001(\0132&.google.events." + + "cloud.build.v1.TimeSpan\"g\n\nBuiltImage\022\014\n" + + "\004name\030\001 \001(\t\022\016\n\006digest\030\003 \001(\t\022;\n\013push_timi" + + "ng\030\004 \001(\0132&.google.events.cloud.build.v1." + + "TimeSpan\"\321\001\n\tArtifacts\022\016\n\006images\030\001 \003(\t\022H" + + "\n\007objects\030\002 \001(\01327.google.events.cloud.bu" + + "ild.v1.Artifacts.ArtifactObjects\032j\n\017Arti" + + "factObjects\022\020\n\010location\030\001 \001(\t\022\r\n\005paths\030\002" + + " \003(\t\0226\n\006timing\030\003 \001(\0132&.google.events.clo" + + "ud.build.v1.TimeSpan\"h\n\010TimeSpan\022.\n\nstar" + + "t_time\030\001 \001(\0132\032.google.protobuf.Timestamp" + + "\022,\n\010end_time\030\002 \001(\0132\032.google.protobuf.Tim" + + "estamp\"\332\002\n\020SourceProvenance\022L\n\027resolved_" + + "storage_source\030\003 \001(\0132+.google.events.clo" + + "ud.build.v1.StorageSource\022F\n\024resolved_re" + + "po_source\030\006 \001(\0132(.google.events.cloud.bu" + + "ild.v1.RepoSource\022S\n\013file_hashes\030\004 \003(\0132>" + + ".google.events.cloud.build.v1.SourceProv" + + "enance.FileHashesEntry\032[\n\017FileHashesEntr" + + "y\022\013\n\003key\030\001 \001(\t\0227\n\005value\030\002 \001(\0132(.google.e" + + "vents.cloud.build.v1.FileHashes:\0028\001\"C\n\nF" + + "ileHashes\0225\n\tfile_hash\030\001 \003(\0132\".google.ev" + + "ents.cloud.build.v1.Hash\"{\n\004Hash\0229\n\004type" + + "\030\001 \001(\0162+.google.events.cloud.build.v1.Ha" + + "sh.HashType\022\r\n\005value\030\002 \001(\014\")\n\010HashType\022\010" + + "\n\004NONE\020\000\022\n\n\006SHA256\020\001\022\007\n\003MD5\020\002\"\231\001\n\006Secret" + + "\022\024\n\014kms_key_name\030\001 \001(\t\022G\n\nsecret_env\030\003 \003" + + "(\01323.google.events.cloud.build.v1.Secret" + + ".SecretEnvEntry\0320\n\016SecretEnvEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\014:\0028\001\"\277\007\n\014BuildOptio" + + "ns\022K\n\026source_provenance_hash\030\001 \003(\0162+.goo" + + "gle.events.cloud.build.v1.Hash.HashType\022" + + "X\n\027requested_verify_option\030\002 \001(\01627.googl" + + "e.events.cloud.build.v1.BuildOptions.Ver" + + "ifyOption\022L\n\014machine_type\030\003 \001(\01626.google" + + ".events.cloud.build.v1.BuildOptions.Mach" + + "ineType\022\024\n\014disk_size_gb\030\006 \001(\003\022Z\n\023substit" + + "ution_option\030\004 \001(\0162=.google.events.cloud" + + ".build.v1.BuildOptions.SubstitutionOptio" + + "n\022[\n\024log_streaming_option\030\005 \001(\0162=.google" + + ".events.cloud.build.v1.BuildOptions.LogS" + + "treamingOption\022\023\n\013worker_pool\030\007 \001(\t\022G\n\007l" + + "ogging\030\013 \001(\01626.google.events.cloud.build" + + ".v1.BuildOptions.LoggingMode\022\013\n\003env\030\014 \003(" + + "\t\022\022\n\nsecret_env\030\r \003(\t\0225\n\007volumes\030\016 \003(\0132$" + + ".google.events.cloud.build.v1.Volume\".\n\014" + + "VerifyOption\022\020\n\014NOT_VERIFIED\020\000\022\014\n\010VERIFI" + + "ED\020\001\"C\n\013MachineType\022\017\n\013UNSPECIFIED\020\000\022\020\n\014" + + "N1_HIGHCPU_8\020\001\022\021\n\rN1_HIGHCPU_32\020\002\"5\n\022Sub" + + "stitutionOption\022\016\n\nMUST_MATCH\020\000\022\017\n\013ALLOW" + + "_LOOSE\020\001\"G\n\022LogStreamingOption\022\022\n\016STREAM" + + "_DEFAULT\020\000\022\r\n\tSTREAM_ON\020\001\022\016\n\nSTREAM_OFF\020" + + "\002\"@\n\013LoggingMode\022\027\n\023LOGGING_UNSPECIFIED\020" + + "\000\022\n\n\006LEGACY\020\001\022\014\n\010GCS_ONLY\020\002B(\252\002%Google.E" + + "vents.Protobuf.Cloud.Build.V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_events_cloud_build_v1_BuildEventData_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_events_cloud_build_v1_BuildEventData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_cloud_build_v1_BuildEventData_descriptor, + new java.lang.String[] { "Id", "ProjectId", "Status", "StatusDetail", "Source", "Steps", "Results", "CreateTime", "StartTime", "FinishTime", "Timeout", "Images", "QueueTtl", "Artifacts", "LogsBucket", "SourceProvenance", "BuildTriggerId", "Options", "LogUrl", "Substitutions", "Tags", "Secrets", "Timing", }); + internal_static_google_events_cloud_build_v1_BuildEventData_SubstitutionsEntry_descriptor = + internal_static_google_events_cloud_build_v1_BuildEventData_descriptor.getNestedTypes().get(0); + internal_static_google_events_cloud_build_v1_BuildEventData_SubstitutionsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_cloud_build_v1_BuildEventData_SubstitutionsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_events_cloud_build_v1_BuildEventData_TimingEntry_descriptor = + internal_static_google_events_cloud_build_v1_BuildEventData_descriptor.getNestedTypes().get(1); + internal_static_google_events_cloud_build_v1_BuildEventData_TimingEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_cloud_build_v1_BuildEventData_TimingEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_events_cloud_build_v1_Source_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_events_cloud_build_v1_Source_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_cloud_build_v1_Source_descriptor, + new java.lang.String[] { "StorageSource", "RepoSource", "Source", }); + internal_static_google_events_cloud_build_v1_StorageSource_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_events_cloud_build_v1_StorageSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_cloud_build_v1_StorageSource_descriptor, + new java.lang.String[] { "Bucket", "Object", "Generation", }); + internal_static_google_events_cloud_build_v1_RepoSource_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_events_cloud_build_v1_RepoSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_cloud_build_v1_RepoSource_descriptor, + new java.lang.String[] { "ProjectId", "RepoName", "BranchName", "TagName", "CommitSha", "Dir", "InvertRegex", "Substitutions", "Revision", }); + internal_static_google_events_cloud_build_v1_RepoSource_SubstitutionsEntry_descriptor = + internal_static_google_events_cloud_build_v1_RepoSource_descriptor.getNestedTypes().get(0); + internal_static_google_events_cloud_build_v1_RepoSource_SubstitutionsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_cloud_build_v1_RepoSource_SubstitutionsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_events_cloud_build_v1_BuildStep_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_events_cloud_build_v1_BuildStep_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_cloud_build_v1_BuildStep_descriptor, + new java.lang.String[] { "Name", "Env", "Args", "Dir", "Id", "WaitFor", "Entrypoint", "SecretEnv", "Volumes", "Timing", "PullTiming", "Timeout", "Status", }); + internal_static_google_events_cloud_build_v1_Volume_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_events_cloud_build_v1_Volume_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_cloud_build_v1_Volume_descriptor, + new java.lang.String[] { "Name", "Path", }); + internal_static_google_events_cloud_build_v1_Results_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_events_cloud_build_v1_Results_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_cloud_build_v1_Results_descriptor, + new java.lang.String[] { "Images", "BuildStepImages", "ArtifactManifest", "NumArtifacts", "BuildStepOutputs", "ArtifactTiming", }); + internal_static_google_events_cloud_build_v1_BuiltImage_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_events_cloud_build_v1_BuiltImage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_cloud_build_v1_BuiltImage_descriptor, + new java.lang.String[] { "Name", "Digest", "PushTiming", }); + internal_static_google_events_cloud_build_v1_Artifacts_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_events_cloud_build_v1_Artifacts_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_cloud_build_v1_Artifacts_descriptor, + new java.lang.String[] { "Images", "Objects", }); + internal_static_google_events_cloud_build_v1_Artifacts_ArtifactObjects_descriptor = + internal_static_google_events_cloud_build_v1_Artifacts_descriptor.getNestedTypes().get(0); + internal_static_google_events_cloud_build_v1_Artifacts_ArtifactObjects_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_cloud_build_v1_Artifacts_ArtifactObjects_descriptor, + new java.lang.String[] { "Location", "Paths", "Timing", }); + internal_static_google_events_cloud_build_v1_TimeSpan_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_events_cloud_build_v1_TimeSpan_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_cloud_build_v1_TimeSpan_descriptor, + new java.lang.String[] { "StartTime", "EndTime", }); + internal_static_google_events_cloud_build_v1_SourceProvenance_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_events_cloud_build_v1_SourceProvenance_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_cloud_build_v1_SourceProvenance_descriptor, + new java.lang.String[] { "ResolvedStorageSource", "ResolvedRepoSource", "FileHashes", }); + internal_static_google_events_cloud_build_v1_SourceProvenance_FileHashesEntry_descriptor = + internal_static_google_events_cloud_build_v1_SourceProvenance_descriptor.getNestedTypes().get(0); + internal_static_google_events_cloud_build_v1_SourceProvenance_FileHashesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_cloud_build_v1_SourceProvenance_FileHashesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_events_cloud_build_v1_FileHashes_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_events_cloud_build_v1_FileHashes_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_cloud_build_v1_FileHashes_descriptor, + new java.lang.String[] { "FileHash", }); + internal_static_google_events_cloud_build_v1_Hash_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_events_cloud_build_v1_Hash_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_cloud_build_v1_Hash_descriptor, + new java.lang.String[] { "Type", "Value", }); + internal_static_google_events_cloud_build_v1_Secret_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_events_cloud_build_v1_Secret_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_cloud_build_v1_Secret_descriptor, + new java.lang.String[] { "KmsKeyName", "SecretEnv", }); + internal_static_google_events_cloud_build_v1_Secret_SecretEnvEntry_descriptor = + internal_static_google_events_cloud_build_v1_Secret_descriptor.getNestedTypes().get(0); + internal_static_google_events_cloud_build_v1_Secret_SecretEnvEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_cloud_build_v1_Secret_SecretEnvEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_events_cloud_build_v1_BuildOptions_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_events_cloud_build_v1_BuildOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_cloud_build_v1_BuildOptions_descriptor, + new java.lang.String[] { "SourceProvenanceHash", "RequestedVerifyOption", "MachineType", "DiskSizeGb", "SubstitutionOption", "LogStreamingOption", "WorkerPool", "Logging", "Env", "SecretEnv", "Volumes", }); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/google/events/cloud/firestore/v1/Data.java b/src/google/events/cloud/firestore/v1/Data.java index b7efa0e8..1dec5598 100644 --- a/src/google/events/cloud/firestore/v1/Data.java +++ b/src/google/events/cloud/firestore/v1/Data.java @@ -107,90 +107,6 @@ public interface DocumentEventDataOrBuilder extends * .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 - getWildcards(); - /** - *
-     * 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 - getWildcardsMap(); - /** - *
-     * 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); } /** *
@@ -231,7 +147,6 @@ private DocumentEventData(
       if (extensionRegistry == null) {
         throw new java.lang.NullPointerException();
       }
-      int mutable_bitField0_ = 0;
       com.google.protobuf.UnknownFieldSet.Builder unknownFields =
           com.google.protobuf.UnknownFieldSet.newBuilder();
       try {
@@ -281,19 +196,6 @@ private DocumentEventData(
 
               break;
             }
-            case 34: {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                wildcards_ = com.google.protobuf.MapField.newMapField(
-                    WildcardsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry
-              wildcards__ = input.readMessage(
-                  WildcardsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              wildcards_.getMutableMap().put(
-                  wildcards__.getKey(), wildcards__.getValue());
-              break;
-            }
             default: {
               if (!parseUnknownField(
                   input, unknownFields, extensionRegistry, tag)) {
@@ -318,18 +220,6 @@ private DocumentEventData(
       return google.events.cloud.firestore.v1.Data.internal_static_google_events_cloud_firestore_v1_DocumentEventData_descriptor;
     }
 
-    @SuppressWarnings({"rawtypes"})
-    @java.lang.Override
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
-      switch (number) {
-        case 4:
-          return internalGetWildcards();
-        default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
-      }
-    }
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
@@ -461,127 +351,6 @@ public google.events.cloud.firestore.v1.Data.DocumentMaskOrBuilder getUpdateMask
       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
-              .newDefaultInstance(
-                  google.events.cloud.firestore.v1.Data.internal_static_google_events_cloud_firestore_v1_DocumentEventData_WildcardsEntry_descriptor, 
-                  com.google.protobuf.WireFormat.FieldType.STRING,
-                  "",
-                  com.google.protobuf.WireFormat.FieldType.STRING,
-                  "");
-    }
-    private com.google.protobuf.MapField<
-        java.lang.String, java.lang.String> wildcards_;
-    private com.google.protobuf.MapField
-    internalGetWildcards() {
-      if (wildcards_ == null) {
-        return com.google.protobuf.MapField.emptyMapField(
-            WildcardsDefaultEntryHolder.defaultEntry);
-      }
-      return wildcards_;
-    }
-
-    public int getWildcardsCount() {
-      return internalGetWildcards().getMap().size();
-    }
-    /**
-     * 
-     * 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 getWildcards() { - return getWildcardsMap(); - } - /** - *
-     * 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 getWildcardsMap() { - return internalGetWildcards().getMap(); - } - /** - *
-     * 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 map = - internalGetWildcards().getMap(); - return map.containsKey(key) ? map.get(key) : 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.Override - - public java.lang.String getWildcardsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetWildcards().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -605,12 +374,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (updateMask_ != null) { output.writeMessage(3, getUpdateMask()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetWildcards(), - WildcardsDefaultEntryHolder.defaultEntry, - 4); unknownFields.writeTo(output); } @@ -632,16 +395,6 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getUpdateMask()); } - for (java.util.Map.Entry entry - : internalGetWildcards().getMap().entrySet()) { - com.google.protobuf.MapEntry - wildcards__ = WildcardsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, wildcards__); - } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -672,8 +425,6 @@ public boolean equals(final java.lang.Object obj) { if (!getUpdateMask() .equals(other.getUpdateMask())) return false; } - if (!internalGetWildcards().equals( - other.internalGetWildcards())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -697,10 +448,6 @@ public int hashCode() { hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; hash = (53 * hash) + getUpdateMask().hashCode(); } - if (!internalGetWildcards().getMap().isEmpty()) { - hash = (37 * hash) + WILDCARDS_FIELD_NUMBER; - hash = (53 * hash) + internalGetWildcards().hashCode(); - } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -812,28 +559,6 @@ public static final class Builder extends return google.events.cloud.firestore.v1.Data.internal_static_google_events_cloud_firestore_v1_DocumentEventData_descriptor; } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 4: - return internalGetWildcards(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 4: - return internalGetMutableWildcards(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -878,7 +603,6 @@ public Builder clear() { updateMask_ = null; updateMaskBuilder_ = null; } - internalGetMutableWildcards().clear(); return this; } @@ -905,7 +629,6 @@ public google.events.cloud.firestore.v1.Data.DocumentEventData build() { @java.lang.Override public google.events.cloud.firestore.v1.Data.DocumentEventData buildPartial() { google.events.cloud.firestore.v1.Data.DocumentEventData result = new google.events.cloud.firestore.v1.Data.DocumentEventData(this); - int from_bitField0_ = bitField0_; if (valueBuilder_ == null) { result.value_ = value_; } else { @@ -921,8 +644,6 @@ public google.events.cloud.firestore.v1.Data.DocumentEventData buildPartial() { } else { result.updateMask_ = updateMaskBuilder_.build(); } - result.wildcards_ = internalGetWildcards(); - result.wildcards_.makeImmutable(); onBuilt(); return result; } @@ -980,8 +701,6 @@ public Builder mergeFrom(google.events.cloud.firestore.v1.Data.DocumentEventData if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } - internalGetMutableWildcards().mergeFrom( - other.internalGetWildcards()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1010,7 +729,6 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private google.events.cloud.firestore.v1.Data.Document value_; private com.google.protobuf.SingleFieldBuilderV3< @@ -1503,204 +1221,6 @@ public google.events.cloud.firestore.v1.Data.DocumentMaskOrBuilder getUpdateMask } return updateMaskBuilder_; } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> wildcards_; - private com.google.protobuf.MapField - internalGetWildcards() { - if (wildcards_ == null) { - return com.google.protobuf.MapField.emptyMapField( - WildcardsDefaultEntryHolder.defaultEntry); - } - return wildcards_; - } - private com.google.protobuf.MapField - internalGetMutableWildcards() { - onChanged();; - if (wildcards_ == null) { - wildcards_ = com.google.protobuf.MapField.newMapField( - WildcardsDefaultEntryHolder.defaultEntry); - } - if (!wildcards_.isMutable()) { - wildcards_ = wildcards_.copy(); - } - return wildcards_; - } - - public int getWildcardsCount() { - return internalGetWildcards().getMap().size(); - } - /** - *
-       * 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 getWildcards() { - return getWildcardsMap(); - } - /** - *
-       * 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 getWildcardsMap() { - return internalGetWildcards().getMap(); - } - /** - *
-       * 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 map = - internalGetWildcards().getMap(); - return map.containsKey(key) ? map.get(key) : 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.Override - - public java.lang.String getWildcardsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetWildcards().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearWildcards() { - internalGetMutableWildcards().getMutableMap() - .clear(); - 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 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 - getMutableWildcards() { - return internalGetMutableWildcards().getMutableMap(); - } - /** - *
-       * 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 values) { - internalGetMutableWildcards().getMutableMap() - .putAll(values); - return this; - } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -8976,11 +8496,6 @@ public google.events.cloud.firestore.v1.Data.MapValue getDefaultInstanceForType( private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_events_cloud_firestore_v1_DocumentEventData_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_events_cloud_firestore_v1_DocumentEventData_WildcardsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_events_cloud_firestore_v1_DocumentEventData_WildcardsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_events_cloud_firestore_v1_DocumentMask_descriptor; private static final @@ -9029,42 +8544,39 @@ public google.events.cloud.firestore.v1.Data.MapValue getDefaultInstanceForType( "proto\022 google.events.cloud.firestore.v1\032" + "\034google/protobuf/struct.proto\032\037google/pr" + "otobuf/timestamp.proto\032\030google/type/latl" + - "ng.proto\"\333\002\n\021DocumentEventData\0229\n\005value\030" + + "ng.proto\"\322\001\n\021DocumentEventData\0229\n\005value\030" + "\001 \001(\0132*.google.events.cloud.firestore.v1" + ".Document\022=\n\told_value\030\002 \001(\0132*.google.ev" + "ents.cloud.firestore.v1.Document\022C\n\013upda" + "te_mask\030\003 \001(\0132..google.events.cloud.fire" + - "store.v1.DocumentMask\022U\n\twildcards\030\004 \003(\013" + - "2B.google.events.cloud.firestore.v1.Docu" + - "mentEventData.WildcardsEntry\0320\n\016Wildcard" + - "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"#" + - "\n\014DocumentMask\022\023\n\013field_paths\030\001 \003(\t\"\232\002\n\010" + - "Document\022\014\n\004name\030\001 \001(\t\022F\n\006fields\030\002 \003(\01326" + - ".google.events.cloud.firestore.v1.Docume" + - "nt.FieldsEntry\022/\n\013create_time\030\003 \001(\0132\032.go" + - "ogle.protobuf.Timestamp\022/\n\013update_time\030\004" + - " \001(\0132\032.google.protobuf.Timestamp\032V\n\013Fiel" + - "dsEntry\022\013\n\003key\030\001 \001(\t\0226\n\005value\030\002 \001(\0132\'.go" + - "ogle.events.cloud.firestore.v1.Value:\0028\001" + - "\"\310\003\n\005Value\0220\n\nnull_value\030\013 \001(\0162\032.google." + - "protobuf.NullValueH\000\022\027\n\rboolean_value\030\001 " + - "\001(\010H\000\022\027\n\rinteger_value\030\002 \001(\003H\000\022\026\n\014double" + - "_value\030\003 \001(\001H\000\0225\n\017timestamp_value\030\n \001(\0132" + - "\032.google.protobuf.TimestampH\000\022\026\n\014string_" + - "value\030\021 \001(\tH\000\022\025\n\013bytes_value\030\022 \001(\014H\000\022\031\n\017" + - "reference_value\030\005 \001(\tH\000\022.\n\017geo_point_val" + - "ue\030\010 \001(\0132\023.google.type.LatLngH\000\022C\n\013array" + - "_value\030\t \001(\0132,.google.events.cloud.fires" + - "tore.v1.ArrayValueH\000\022?\n\tmap_value\030\006 \001(\0132" + - "*.google.events.cloud.firestore.v1.MapVa" + - "lueH\000B\014\n\nvalue_type\"E\n\nArrayValue\0227\n\006val" + - "ues\030\001 \003(\0132\'.google.events.cloud.firestor" + - "e.v1.Value\"\252\001\n\010MapValue\022F\n\006fields\030\001 \003(\0132" + - "6.google.events.cloud.firestore.v1.MapVa" + - "lue.FieldsEntry\032V\n\013FieldsEntry\022\013\n\003key\030\001 " + + "store.v1.DocumentMask\"#\n\014DocumentMask\022\023\n" + + "\013field_paths\030\001 \003(\t\"\232\002\n\010Document\022\014\n\004name\030" + + "\001 \001(\t\022F\n\006fields\030\002 \003(\01326.google.events.cl" + + "oud.firestore.v1.Document.FieldsEntry\022/\n" + + "\013create_time\030\003 \001(\0132\032.google.protobuf.Tim" + + "estamp\022/\n\013update_time\030\004 \001(\0132\032.google.pro" + + "tobuf.Timestamp\032V\n\013FieldsEntry\022\013\n\003key\030\001 " + "\001(\t\0226\n\005value\030\002 \001(\0132\'.google.events.cloud" + - ".firestore.v1.Value:\0028\001B,\252\002)Google.Event" + - "s.Protobuf.Cloud.Firestore.V1b\006proto3" + ".firestore.v1.Value:\0028\001\"\310\003\n\005Value\0220\n\nnul" + + "l_value\030\013 \001(\0162\032.google.protobuf.NullValu" + + "eH\000\022\027\n\rboolean_value\030\001 \001(\010H\000\022\027\n\rinteger_" + + "value\030\002 \001(\003H\000\022\026\n\014double_value\030\003 \001(\001H\000\0225\n" + + "\017timestamp_value\030\n \001(\0132\032.google.protobuf" + + ".TimestampH\000\022\026\n\014string_value\030\021 \001(\tH\000\022\025\n\013" + + "bytes_value\030\022 \001(\014H\000\022\031\n\017reference_value\030\005" + + " \001(\tH\000\022.\n\017geo_point_value\030\010 \001(\0132\023.google" + + ".type.LatLngH\000\022C\n\013array_value\030\t \001(\0132,.go" + + "ogle.events.cloud.firestore.v1.ArrayValu" + + "eH\000\022?\n\tmap_value\030\006 \001(\0132*.google.events.c" + + "loud.firestore.v1.MapValueH\000B\014\n\nvalue_ty" + + "pe\"E\n\nArrayValue\0227\n\006values\030\001 \003(\0132\'.googl" + + "e.events.cloud.firestore.v1.Value\"\252\001\n\010Ma" + + "pValue\022F\n\006fields\030\001 \003(\01326.google.events.c" + + "loud.firestore.v1.MapValue.FieldsEntry\032V" + + "\n\013FieldsEntry\022\013\n\003key\030\001 \001(\t\0226\n\005value\030\002 \001(" + + "\0132\'.google.events.cloud.firestore.v1.Val" + + "ue:\0028\001B,\252\002)Google.Events.Protobuf.Cloud." + + "Firestore.V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -9078,13 +8590,7 @@ public google.events.cloud.firestore.v1.Data.MapValue getDefaultInstanceForType( internal_static_google_events_cloud_firestore_v1_DocumentEventData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_events_cloud_firestore_v1_DocumentEventData_descriptor, - new java.lang.String[] { "Value", "OldValue", "UpdateMask", "Wildcards", }); - internal_static_google_events_cloud_firestore_v1_DocumentEventData_WildcardsEntry_descriptor = - internal_static_google_events_cloud_firestore_v1_DocumentEventData_descriptor.getNestedTypes().get(0); - internal_static_google_events_cloud_firestore_v1_DocumentEventData_WildcardsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_events_cloud_firestore_v1_DocumentEventData_WildcardsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); + new java.lang.String[] { "Value", "OldValue", "UpdateMask", }); internal_static_google_events_cloud_firestore_v1_DocumentMask_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_google_events_cloud_firestore_v1_DocumentMask_fieldAccessorTable = new diff --git a/src/google/events/cloud/storage/v1/Data.java b/src/google/events/cloud/storage/v1/Data.java index da0ec48b..d485c1c3 100644 --- a/src/google/events/cloud/storage/v1/Data.java +++ b/src/google/events/cloud/storage/v1/Data.java @@ -609,7 +609,7 @@ java.lang.String getMetadataOrThrow( /** *
-     * The link to this object.
+     * Media download link.
      * 
* * string media_link = 100; @@ -618,7 +618,7 @@ java.lang.String getMetadataOrThrow( java.lang.String getMediaLink(); /** *
-     * The link to this object.
+     * Media download link.
      * 
* * string media_link = 100; @@ -629,7 +629,7 @@ java.lang.String getMetadataOrThrow( /** *
-     * Media download link.
+     * The link to this object.
      * 
* * string self_link = 101; @@ -638,7 +638,7 @@ java.lang.String getMetadataOrThrow( java.lang.String getSelfLink(); /** *
-     * Media download link.
+     * The link to this object.
      * 
* * string self_link = 101; @@ -646,6 +646,26 @@ java.lang.String getMetadataOrThrow( */ com.google.protobuf.ByteString getSelfLinkBytes(); + + /** + *
+     * The kind of item this is. For objects, this is always "storage#object".
+     * 
+ * + * string kind = 102; + * @return The kind. + */ + java.lang.String getKind(); + /** + *
+     * The kind of item this is. For objects, this is always "storage#object".
+     * 
+ * + * string kind = 102; + * @return The bytes for kind. + */ + com.google.protobuf.ByteString + getKindBytes(); } /** *
@@ -679,6 +699,7 @@ private StorageObjectData() {
       bucket_ = "";
       mediaLink_ = "";
       selfLink_ = "";
+      kind_ = "";
     }
 
     @java.lang.Override
@@ -923,6 +944,12 @@ private StorageObjectData(
               selfLink_ = s;
               break;
             }
+            case 818: {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              kind_ = s;
+              break;
+            }
             default: {
               if (!parseUnknownField(
                   input, unknownFields, extensionRegistry, tag)) {
@@ -2835,7 +2862,7 @@ public google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryptionO
     private volatile java.lang.Object mediaLink_;
     /**
      * 
-     * The link to this object.
+     * Media download link.
      * 
* * string media_link = 100; @@ -2856,7 +2883,7 @@ public java.lang.String getMediaLink() { } /** *
-     * The link to this object.
+     * Media download link.
      * 
* * string media_link = 100; @@ -2881,7 +2908,7 @@ public java.lang.String getMediaLink() { private volatile java.lang.Object selfLink_; /** *
-     * Media download link.
+     * The link to this object.
      * 
* * string self_link = 101; @@ -2902,7 +2929,7 @@ public java.lang.String getSelfLink() { } /** *
-     * Media download link.
+     * The link to this object.
      * 
* * string self_link = 101; @@ -2923,6 +2950,52 @@ public java.lang.String getSelfLink() { } } + public static final int KIND_FIELD_NUMBER = 102; + private volatile java.lang.Object kind_; + /** + *
+     * The kind of item this is. For objects, this is always "storage#object".
+     * 
+ * + * string kind = 102; + * @return The kind. + */ + @java.lang.Override + public java.lang.String getKind() { + java.lang.Object ref = kind_; + 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(); + kind_ = s; + return s; + } + } + /** + *
+     * The kind of item this is. For objects, this is always "storage#object".
+     * 
+ * + * string kind = 102; + * @return The bytes for kind. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getKindBytes() { + java.lang.Object ref = kind_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -3024,6 +3097,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getSelfLinkBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 101, selfLink_); } + if (!getKindBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 102, kind_); + } unknownFields.writeTo(output); } @@ -3136,6 +3212,9 @@ public int getSerializedSize() { if (!getSelfLinkBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(101, selfLink_); } + if (!getKindBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(102, kind_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -3225,6 +3304,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getMediaLink())) return false; if (!getSelfLink() .equals(other.getSelfLink())) return false; + if (!getKind() + .equals(other.getKind())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3311,6 +3392,8 @@ public int hashCode() { hash = (53 * hash) + getMediaLink().hashCode(); hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; hash = (53 * hash) + getSelfLink().hashCode(); + hash = (37 * hash) + KIND_FIELD_NUMBER; + hash = (53 * hash) + getKind().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -3549,6 +3632,8 @@ public Builder clear() { selfLink_ = ""; + kind_ = ""; + return this; } @@ -3629,6 +3714,7 @@ public google.events.cloud.storage.v1.Data.StorageObjectData buildPartial() { } result.mediaLink_ = mediaLink_; result.selfLink_ = selfLink_; + result.kind_ = kind_; onBuilt(); return result; } @@ -3775,6 +3861,10 @@ public Builder mergeFrom(google.events.cloud.storage.v1.Data.StorageObjectData o selfLink_ = other.selfLink_; onChanged(); } + if (!other.getKind().isEmpty()) { + kind_ = other.kind_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -6542,7 +6632,7 @@ public google.events.cloud.storage.v1.Data.StorageObjectData.CustomerEncryptionO private java.lang.Object mediaLink_ = ""; /** *
-       * The link to this object.
+       * Media download link.
        * 
* * string media_link = 100; @@ -6562,7 +6652,7 @@ public java.lang.String getMediaLink() { } /** *
-       * The link to this object.
+       * Media download link.
        * 
* * string media_link = 100; @@ -6583,7 +6673,7 @@ public java.lang.String getMediaLink() { } /** *
-       * The link to this object.
+       * Media download link.
        * 
* * string media_link = 100; @@ -6602,7 +6692,7 @@ public Builder setMediaLink( } /** *
-       * The link to this object.
+       * Media download link.
        * 
* * string media_link = 100; @@ -6616,7 +6706,7 @@ public Builder clearMediaLink() { } /** *
-       * The link to this object.
+       * Media download link.
        * 
* * string media_link = 100; @@ -6638,7 +6728,7 @@ public Builder setMediaLinkBytes( private java.lang.Object selfLink_ = ""; /** *
-       * Media download link.
+       * The link to this object.
        * 
* * string self_link = 101; @@ -6658,7 +6748,7 @@ public java.lang.String getSelfLink() { } /** *
-       * Media download link.
+       * The link to this object.
        * 
* * string self_link = 101; @@ -6679,7 +6769,7 @@ public java.lang.String getSelfLink() { } /** *
-       * Media download link.
+       * The link to this object.
        * 
* * string self_link = 101; @@ -6698,7 +6788,7 @@ public Builder setSelfLink( } /** *
-       * Media download link.
+       * The link to this object.
        * 
* * string self_link = 101; @@ -6712,7 +6802,7 @@ public Builder clearSelfLink() { } /** *
-       * Media download link.
+       * The link to this object.
        * 
* * string self_link = 101; @@ -6730,6 +6820,102 @@ public Builder setSelfLinkBytes( onChanged(); return this; } + + private java.lang.Object kind_ = ""; + /** + *
+       * The kind of item this is. For objects, this is always "storage#object".
+       * 
+ * + * string kind = 102; + * @return The kind. + */ + public java.lang.String getKind() { + java.lang.Object ref = kind_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kind_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The kind of item this is. For objects, this is always "storage#object".
+       * 
+ * + * string kind = 102; + * @return The bytes for kind. + */ + public com.google.protobuf.ByteString + getKindBytes() { + java.lang.Object ref = kind_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The kind of item this is. For objects, this is always "storage#object".
+       * 
+ * + * string kind = 102; + * @param value The kind to set. + * @return This builder for chaining. + */ + public Builder setKind( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + kind_ = value; + onChanged(); + return this; + } + /** + *
+       * The kind of item this is. For objects, this is always "storage#object".
+       * 
+ * + * string kind = 102; + * @return This builder for chaining. + */ + public Builder clearKind() { + + kind_ = getDefaultInstance().getKind(); + onChanged(); + return this; + } + /** + *
+       * The kind of item this is. For objects, this is always "storage#object".
+       * 
+ * + * string kind = 102; + * @param value The bytes for kind to set. + * @return This builder for chaining. + */ + public Builder setKindBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + kind_ = value; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6809,7 +6995,7 @@ public google.events.cloud.storage.v1.Data.StorageObjectData getDefaultInstanceF java.lang.String[] descriptorData = { "\n)google/events/cloud/storage/v1/data.pr" + "oto\022\036google.events.cloud.storage.v1\032\037goo" + - "gle/protobuf/timestamp.proto\"\203\010\n\021Storage" + + "gle/protobuf/timestamp.proto\"\221\010\n\021Storage" + "ObjectData\022\030\n\020content_encoding\030\001 \001(\t\022\033\n\023" + "content_disposition\030\002 \001(\t\022\025\n\rcache_contr" + "ol\030\003 \001(\t\022\030\n\020content_language\030\005 \001(\t\022\026\n\016me" + @@ -6832,11 +7018,12 @@ public google.events.cloud.storage.v1.Data.StorageObjectData getDefaultInstanceF "a\n\023customer_encryption\030\034 \001(\0132D.google.ev" + "ents.cloud.storage.v1.StorageObjectData." + "CustomerEncryption\022\022\n\nmedia_link\030d \001(\t\022\021" + - "\n\tself_link\030e \001(\t\032F\n\022CustomerEncryption\022" + - "\034\n\024encryption_algorithm\030\001 \001(\t\022\022\n\nkey_sha" + - "256\030\002 \001(\t\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022" + - "\r\n\005value\030\002 \001(\t:\0028\001B*\252\002\'Google.Events.Pro" + - "tobuf.Cloud.Storage.V1b\006proto3" + "\n\tself_link\030e \001(\t\022\014\n\004kind\030f \001(\t\032F\n\022Custo" + + "merEncryption\022\034\n\024encryption_algorithm\030\001 " + + "\001(\t\022\022\n\nkey_sha256\030\002 \001(\t\032/\n\rMetadataEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B*\252\002\'Goo" + + "gle.Events.Protobuf.Cloud.Storage.V1b\006pr" + + "oto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -6848,7 +7035,7 @@ public google.events.cloud.storage.v1.Data.StorageObjectData getDefaultInstanceF internal_static_google_events_cloud_storage_v1_StorageObjectData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_events_cloud_storage_v1_StorageObjectData_descriptor, - new java.lang.String[] { "ContentEncoding", "ContentDisposition", "CacheControl", "ContentLanguage", "Metageneration", "TimeDeleted", "ContentType", "Size", "TimeCreated", "Crc32C", "ComponentCount", "Md5Hash", "Etag", "Updated", "StorageClass", "KmsKeyName", "TimeStorageClassUpdated", "TemporaryHold", "RetentionExpirationTime", "Metadata", "EventBasedHold", "Name", "Id", "Bucket", "Generation", "CustomerEncryption", "MediaLink", "SelfLink", }); + new java.lang.String[] { "ContentEncoding", "ContentDisposition", "CacheControl", "ContentLanguage", "Metageneration", "TimeDeleted", "ContentType", "Size", "TimeCreated", "Crc32C", "ComponentCount", "Md5Hash", "Etag", "Updated", "StorageClass", "KmsKeyName", "TimeStorageClassUpdated", "TemporaryHold", "RetentionExpirationTime", "Metadata", "EventBasedHold", "Name", "Id", "Bucket", "Generation", "CustomerEncryption", "MediaLink", "SelfLink", "Kind", }); internal_static_google_events_cloud_storage_v1_StorageObjectData_CustomerEncryption_descriptor = internal_static_google_events_cloud_storage_v1_StorageObjectData_descriptor.getNestedTypes().get(0); internal_static_google_events_cloud_storage_v1_StorageObjectData_CustomerEncryption_fieldAccessorTable = new diff --git a/src/google/events/firebase/analytics/v1/Data.java b/src/google/events/firebase/analytics/v1/Data.java new file mode 100644 index 00000000..7e876315 --- /dev/null +++ b/src/google/events/firebase/analytics/v1/Data.java @@ -0,0 +1,14662 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/events/firebase/analytics/v1/data.proto + +package google.events.firebase.analytics.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 AnalyticsLogDataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.firebase.analytics.v1.AnalyticsLogData) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * User related dimensions.
+     * 
+ * + * .google.events.firebase.analytics.v1.UserDimensions user_dim = 1; + * @return Whether the userDim field is set. + */ + boolean hasUserDim(); + /** + *
+     * User related dimensions.
+     * 
+ * + * .google.events.firebase.analytics.v1.UserDimensions user_dim = 1; + * @return The userDim. + */ + google.events.firebase.analytics.v1.Data.UserDimensions getUserDim(); + /** + *
+     * User related dimensions.
+     * 
+ * + * .google.events.firebase.analytics.v1.UserDimensions user_dim = 1; + */ + google.events.firebase.analytics.v1.Data.UserDimensionsOrBuilder getUserDimOrBuilder(); + + /** + *
+     * A repeated record of event related dimensions.
+     * 
+ * + * repeated .google.events.firebase.analytics.v1.EventDimensions event_dim = 2; + */ + java.util.List + getEventDimList(); + /** + *
+     * A repeated record of event related dimensions.
+     * 
+ * + * repeated .google.events.firebase.analytics.v1.EventDimensions event_dim = 2; + */ + google.events.firebase.analytics.v1.Data.EventDimensions getEventDim(int index); + /** + *
+     * A repeated record of event related dimensions.
+     * 
+ * + * repeated .google.events.firebase.analytics.v1.EventDimensions event_dim = 2; + */ + int getEventDimCount(); + /** + *
+     * A repeated record of event related dimensions.
+     * 
+ * + * repeated .google.events.firebase.analytics.v1.EventDimensions event_dim = 2; + */ + java.util.List + getEventDimOrBuilderList(); + /** + *
+     * A repeated record of event related dimensions.
+     * 
+ * + * repeated .google.events.firebase.analytics.v1.EventDimensions event_dim = 2; + */ + google.events.firebase.analytics.v1.Data.EventDimensionsOrBuilder getEventDimOrBuilder( + int index); + } + /** + *
+   * The data within Firebase Analytics log events.
+   * 
+ * + * Protobuf type {@code google.events.firebase.analytics.v1.AnalyticsLogData} + */ + public static final class AnalyticsLogData extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.firebase.analytics.v1.AnalyticsLogData) + AnalyticsLogDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use AnalyticsLogData.newBuilder() to construct. + private AnalyticsLogData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AnalyticsLogData() { + eventDim_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AnalyticsLogData(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AnalyticsLogData( + 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.firebase.analytics.v1.Data.UserDimensions.Builder subBuilder = null; + if (userDim_ != null) { + subBuilder = userDim_.toBuilder(); + } + userDim_ = input.readMessage(google.events.firebase.analytics.v1.Data.UserDimensions.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(userDim_); + userDim_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + eventDim_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + eventDim_.add( + input.readMessage(google.events.firebase.analytics.v1.Data.EventDimensions.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + eventDim_ = java.util.Collections.unmodifiableList(eventDim_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_AnalyticsLogData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_AnalyticsLogData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.firebase.analytics.v1.Data.AnalyticsLogData.class, google.events.firebase.analytics.v1.Data.AnalyticsLogData.Builder.class); + } + + public static final int USER_DIM_FIELD_NUMBER = 1; + private google.events.firebase.analytics.v1.Data.UserDimensions userDim_; + /** + *
+     * User related dimensions.
+     * 
+ * + * .google.events.firebase.analytics.v1.UserDimensions user_dim = 1; + * @return Whether the userDim field is set. + */ + @java.lang.Override + public boolean hasUserDim() { + return userDim_ != null; + } + /** + *
+     * User related dimensions.
+     * 
+ * + * .google.events.firebase.analytics.v1.UserDimensions user_dim = 1; + * @return The userDim. + */ + @java.lang.Override + public google.events.firebase.analytics.v1.Data.UserDimensions getUserDim() { + return userDim_ == null ? google.events.firebase.analytics.v1.Data.UserDimensions.getDefaultInstance() : userDim_; + } + /** + *
+     * User related dimensions.
+     * 
+ * + * .google.events.firebase.analytics.v1.UserDimensions user_dim = 1; + */ + @java.lang.Override + public google.events.firebase.analytics.v1.Data.UserDimensionsOrBuilder getUserDimOrBuilder() { + return getUserDim(); + } + + public static final int EVENT_DIM_FIELD_NUMBER = 2; + private java.util.List eventDim_; + /** + *
+     * A repeated record of event related dimensions.
+     * 
+ * + * repeated .google.events.firebase.analytics.v1.EventDimensions event_dim = 2; + */ + @java.lang.Override + public java.util.List getEventDimList() { + return eventDim_; + } + /** + *
+     * A repeated record of event related dimensions.
+     * 
+ * + * repeated .google.events.firebase.analytics.v1.EventDimensions event_dim = 2; + */ + @java.lang.Override + public java.util.List + getEventDimOrBuilderList() { + return eventDim_; + } + /** + *
+     * A repeated record of event related dimensions.
+     * 
+ * + * repeated .google.events.firebase.analytics.v1.EventDimensions event_dim = 2; + */ + @java.lang.Override + public int getEventDimCount() { + return eventDim_.size(); + } + /** + *
+     * A repeated record of event related dimensions.
+     * 
+ * + * repeated .google.events.firebase.analytics.v1.EventDimensions event_dim = 2; + */ + @java.lang.Override + public google.events.firebase.analytics.v1.Data.EventDimensions getEventDim(int index) { + return eventDim_.get(index); + } + /** + *
+     * A repeated record of event related dimensions.
+     * 
+ * + * repeated .google.events.firebase.analytics.v1.EventDimensions event_dim = 2; + */ + @java.lang.Override + public google.events.firebase.analytics.v1.Data.EventDimensionsOrBuilder getEventDimOrBuilder( + int index) { + return eventDim_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (userDim_ != null) { + output.writeMessage(1, getUserDim()); + } + for (int i = 0; i < eventDim_.size(); i++) { + output.writeMessage(2, eventDim_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (userDim_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUserDim()); + } + for (int i = 0; i < eventDim_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, eventDim_.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.firebase.analytics.v1.Data.AnalyticsLogData)) { + return super.equals(obj); + } + google.events.firebase.analytics.v1.Data.AnalyticsLogData other = (google.events.firebase.analytics.v1.Data.AnalyticsLogData) obj; + + if (hasUserDim() != other.hasUserDim()) return false; + if (hasUserDim()) { + if (!getUserDim() + .equals(other.getUserDim())) return false; + } + if (!getEventDimList() + .equals(other.getEventDimList())) 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 (hasUserDim()) { + hash = (37 * hash) + USER_DIM_FIELD_NUMBER; + hash = (53 * hash) + getUserDim().hashCode(); + } + if (getEventDimCount() > 0) { + hash = (37 * hash) + EVENT_DIM_FIELD_NUMBER; + hash = (53 * hash) + getEventDimList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static google.events.firebase.analytics.v1.Data.AnalyticsLogData parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.analytics.v1.Data.AnalyticsLogData parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.firebase.analytics.v1.Data.AnalyticsLogData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.analytics.v1.Data.AnalyticsLogData 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.firebase.analytics.v1.Data.AnalyticsLogData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.analytics.v1.Data.AnalyticsLogData parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.firebase.analytics.v1.Data.AnalyticsLogData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.firebase.analytics.v1.Data.AnalyticsLogData 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.firebase.analytics.v1.Data.AnalyticsLogData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static google.events.firebase.analytics.v1.Data.AnalyticsLogData 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.firebase.analytics.v1.Data.AnalyticsLogData parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.firebase.analytics.v1.Data.AnalyticsLogData 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.firebase.analytics.v1.Data.AnalyticsLogData 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 within Firebase Analytics log events.
+     * 
+ * + * Protobuf type {@code google.events.firebase.analytics.v1.AnalyticsLogData} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.events.firebase.analytics.v1.AnalyticsLogData) + google.events.firebase.analytics.v1.Data.AnalyticsLogDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_AnalyticsLogData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_AnalyticsLogData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.firebase.analytics.v1.Data.AnalyticsLogData.class, google.events.firebase.analytics.v1.Data.AnalyticsLogData.Builder.class); + } + + // Construct using google.events.firebase.analytics.v1.Data.AnalyticsLogData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getEventDimFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (userDimBuilder_ == null) { + userDim_ = null; + } else { + userDim_ = null; + userDimBuilder_ = null; + } + if (eventDimBuilder_ == null) { + eventDim_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + eventDimBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_AnalyticsLogData_descriptor; + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.AnalyticsLogData getDefaultInstanceForType() { + return google.events.firebase.analytics.v1.Data.AnalyticsLogData.getDefaultInstance(); + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.AnalyticsLogData build() { + google.events.firebase.analytics.v1.Data.AnalyticsLogData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.AnalyticsLogData buildPartial() { + google.events.firebase.analytics.v1.Data.AnalyticsLogData result = new google.events.firebase.analytics.v1.Data.AnalyticsLogData(this); + int from_bitField0_ = bitField0_; + if (userDimBuilder_ == null) { + result.userDim_ = userDim_; + } else { + result.userDim_ = userDimBuilder_.build(); + } + if (eventDimBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + eventDim_ = java.util.Collections.unmodifiableList(eventDim_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.eventDim_ = eventDim_; + } else { + result.eventDim_ = eventDimBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.events.firebase.analytics.v1.Data.AnalyticsLogData) { + return mergeFrom((google.events.firebase.analytics.v1.Data.AnalyticsLogData)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(google.events.firebase.analytics.v1.Data.AnalyticsLogData other) { + if (other == google.events.firebase.analytics.v1.Data.AnalyticsLogData.getDefaultInstance()) return this; + if (other.hasUserDim()) { + mergeUserDim(other.getUserDim()); + } + if (eventDimBuilder_ == null) { + if (!other.eventDim_.isEmpty()) { + if (eventDim_.isEmpty()) { + eventDim_ = other.eventDim_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEventDimIsMutable(); + eventDim_.addAll(other.eventDim_); + } + onChanged(); + } + } else { + if (!other.eventDim_.isEmpty()) { + if (eventDimBuilder_.isEmpty()) { + eventDimBuilder_.dispose(); + eventDimBuilder_ = null; + eventDim_ = other.eventDim_; + bitField0_ = (bitField0_ & ~0x00000001); + eventDimBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEventDimFieldBuilder() : null; + } else { + eventDimBuilder_.addAllMessages(other.eventDim_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.events.firebase.analytics.v1.Data.AnalyticsLogData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.events.firebase.analytics.v1.Data.AnalyticsLogData) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private google.events.firebase.analytics.v1.Data.UserDimensions userDim_; + private com.google.protobuf.SingleFieldBuilderV3< + google.events.firebase.analytics.v1.Data.UserDimensions, google.events.firebase.analytics.v1.Data.UserDimensions.Builder, google.events.firebase.analytics.v1.Data.UserDimensionsOrBuilder> userDimBuilder_; + /** + *
+       * User related dimensions.
+       * 
+ * + * .google.events.firebase.analytics.v1.UserDimensions user_dim = 1; + * @return Whether the userDim field is set. + */ + public boolean hasUserDim() { + return userDimBuilder_ != null || userDim_ != null; + } + /** + *
+       * User related dimensions.
+       * 
+ * + * .google.events.firebase.analytics.v1.UserDimensions user_dim = 1; + * @return The userDim. + */ + public google.events.firebase.analytics.v1.Data.UserDimensions getUserDim() { + if (userDimBuilder_ == null) { + return userDim_ == null ? google.events.firebase.analytics.v1.Data.UserDimensions.getDefaultInstance() : userDim_; + } else { + return userDimBuilder_.getMessage(); + } + } + /** + *
+       * User related dimensions.
+       * 
+ * + * .google.events.firebase.analytics.v1.UserDimensions user_dim = 1; + */ + public Builder setUserDim(google.events.firebase.analytics.v1.Data.UserDimensions value) { + if (userDimBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userDim_ = value; + onChanged(); + } else { + userDimBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * User related dimensions.
+       * 
+ * + * .google.events.firebase.analytics.v1.UserDimensions user_dim = 1; + */ + public Builder setUserDim( + google.events.firebase.analytics.v1.Data.UserDimensions.Builder builderForValue) { + if (userDimBuilder_ == null) { + userDim_ = builderForValue.build(); + onChanged(); + } else { + userDimBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * User related dimensions.
+       * 
+ * + * .google.events.firebase.analytics.v1.UserDimensions user_dim = 1; + */ + public Builder mergeUserDim(google.events.firebase.analytics.v1.Data.UserDimensions value) { + if (userDimBuilder_ == null) { + if (userDim_ != null) { + userDim_ = + google.events.firebase.analytics.v1.Data.UserDimensions.newBuilder(userDim_).mergeFrom(value).buildPartial(); + } else { + userDim_ = value; + } + onChanged(); + } else { + userDimBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * User related dimensions.
+       * 
+ * + * .google.events.firebase.analytics.v1.UserDimensions user_dim = 1; + */ + public Builder clearUserDim() { + if (userDimBuilder_ == null) { + userDim_ = null; + onChanged(); + } else { + userDim_ = null; + userDimBuilder_ = null; + } + + return this; + } + /** + *
+       * User related dimensions.
+       * 
+ * + * .google.events.firebase.analytics.v1.UserDimensions user_dim = 1; + */ + public google.events.firebase.analytics.v1.Data.UserDimensions.Builder getUserDimBuilder() { + + onChanged(); + return getUserDimFieldBuilder().getBuilder(); + } + /** + *
+       * User related dimensions.
+       * 
+ * + * .google.events.firebase.analytics.v1.UserDimensions user_dim = 1; + */ + public google.events.firebase.analytics.v1.Data.UserDimensionsOrBuilder getUserDimOrBuilder() { + if (userDimBuilder_ != null) { + return userDimBuilder_.getMessageOrBuilder(); + } else { + return userDim_ == null ? + google.events.firebase.analytics.v1.Data.UserDimensions.getDefaultInstance() : userDim_; + } + } + /** + *
+       * User related dimensions.
+       * 
+ * + * .google.events.firebase.analytics.v1.UserDimensions user_dim = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + google.events.firebase.analytics.v1.Data.UserDimensions, google.events.firebase.analytics.v1.Data.UserDimensions.Builder, google.events.firebase.analytics.v1.Data.UserDimensionsOrBuilder> + getUserDimFieldBuilder() { + if (userDimBuilder_ == null) { + userDimBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + google.events.firebase.analytics.v1.Data.UserDimensions, google.events.firebase.analytics.v1.Data.UserDimensions.Builder, google.events.firebase.analytics.v1.Data.UserDimensionsOrBuilder>( + getUserDim(), + getParentForChildren(), + isClean()); + userDim_ = null; + } + return userDimBuilder_; + } + + private java.util.List eventDim_ = + java.util.Collections.emptyList(); + private void ensureEventDimIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + eventDim_ = new java.util.ArrayList(eventDim_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + google.events.firebase.analytics.v1.Data.EventDimensions, google.events.firebase.analytics.v1.Data.EventDimensions.Builder, google.events.firebase.analytics.v1.Data.EventDimensionsOrBuilder> eventDimBuilder_; + + /** + *
+       * A repeated record of event related dimensions.
+       * 
+ * + * repeated .google.events.firebase.analytics.v1.EventDimensions event_dim = 2; + */ + public java.util.List getEventDimList() { + if (eventDimBuilder_ == null) { + return java.util.Collections.unmodifiableList(eventDim_); + } else { + return eventDimBuilder_.getMessageList(); + } + } + /** + *
+       * A repeated record of event related dimensions.
+       * 
+ * + * repeated .google.events.firebase.analytics.v1.EventDimensions event_dim = 2; + */ + public int getEventDimCount() { + if (eventDimBuilder_ == null) { + return eventDim_.size(); + } else { + return eventDimBuilder_.getCount(); + } + } + /** + *
+       * A repeated record of event related dimensions.
+       * 
+ * + * repeated .google.events.firebase.analytics.v1.EventDimensions event_dim = 2; + */ + public google.events.firebase.analytics.v1.Data.EventDimensions getEventDim(int index) { + if (eventDimBuilder_ == null) { + return eventDim_.get(index); + } else { + return eventDimBuilder_.getMessage(index); + } + } + /** + *
+       * A repeated record of event related dimensions.
+       * 
+ * + * repeated .google.events.firebase.analytics.v1.EventDimensions event_dim = 2; + */ + public Builder setEventDim( + int index, google.events.firebase.analytics.v1.Data.EventDimensions value) { + if (eventDimBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventDimIsMutable(); + eventDim_.set(index, value); + onChanged(); + } else { + eventDimBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A repeated record of event related dimensions.
+       * 
+ * + * repeated .google.events.firebase.analytics.v1.EventDimensions event_dim = 2; + */ + public Builder setEventDim( + int index, google.events.firebase.analytics.v1.Data.EventDimensions.Builder builderForValue) { + if (eventDimBuilder_ == null) { + ensureEventDimIsMutable(); + eventDim_.set(index, builderForValue.build()); + onChanged(); + } else { + eventDimBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A repeated record of event related dimensions.
+       * 
+ * + * repeated .google.events.firebase.analytics.v1.EventDimensions event_dim = 2; + */ + public Builder addEventDim(google.events.firebase.analytics.v1.Data.EventDimensions value) { + if (eventDimBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventDimIsMutable(); + eventDim_.add(value); + onChanged(); + } else { + eventDimBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A repeated record of event related dimensions.
+       * 
+ * + * repeated .google.events.firebase.analytics.v1.EventDimensions event_dim = 2; + */ + public Builder addEventDim( + int index, google.events.firebase.analytics.v1.Data.EventDimensions value) { + if (eventDimBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventDimIsMutable(); + eventDim_.add(index, value); + onChanged(); + } else { + eventDimBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A repeated record of event related dimensions.
+       * 
+ * + * repeated .google.events.firebase.analytics.v1.EventDimensions event_dim = 2; + */ + public Builder addEventDim( + google.events.firebase.analytics.v1.Data.EventDimensions.Builder builderForValue) { + if (eventDimBuilder_ == null) { + ensureEventDimIsMutable(); + eventDim_.add(builderForValue.build()); + onChanged(); + } else { + eventDimBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A repeated record of event related dimensions.
+       * 
+ * + * repeated .google.events.firebase.analytics.v1.EventDimensions event_dim = 2; + */ + public Builder addEventDim( + int index, google.events.firebase.analytics.v1.Data.EventDimensions.Builder builderForValue) { + if (eventDimBuilder_ == null) { + ensureEventDimIsMutable(); + eventDim_.add(index, builderForValue.build()); + onChanged(); + } else { + eventDimBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A repeated record of event related dimensions.
+       * 
+ * + * repeated .google.events.firebase.analytics.v1.EventDimensions event_dim = 2; + */ + public Builder addAllEventDim( + java.lang.Iterable values) { + if (eventDimBuilder_ == null) { + ensureEventDimIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, eventDim_); + onChanged(); + } else { + eventDimBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A repeated record of event related dimensions.
+       * 
+ * + * repeated .google.events.firebase.analytics.v1.EventDimensions event_dim = 2; + */ + public Builder clearEventDim() { + if (eventDimBuilder_ == null) { + eventDim_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + eventDimBuilder_.clear(); + } + return this; + } + /** + *
+       * A repeated record of event related dimensions.
+       * 
+ * + * repeated .google.events.firebase.analytics.v1.EventDimensions event_dim = 2; + */ + public Builder removeEventDim(int index) { + if (eventDimBuilder_ == null) { + ensureEventDimIsMutable(); + eventDim_.remove(index); + onChanged(); + } else { + eventDimBuilder_.remove(index); + } + return this; + } + /** + *
+       * A repeated record of event related dimensions.
+       * 
+ * + * repeated .google.events.firebase.analytics.v1.EventDimensions event_dim = 2; + */ + public google.events.firebase.analytics.v1.Data.EventDimensions.Builder getEventDimBuilder( + int index) { + return getEventDimFieldBuilder().getBuilder(index); + } + /** + *
+       * A repeated record of event related dimensions.
+       * 
+ * + * repeated .google.events.firebase.analytics.v1.EventDimensions event_dim = 2; + */ + public google.events.firebase.analytics.v1.Data.EventDimensionsOrBuilder getEventDimOrBuilder( + int index) { + if (eventDimBuilder_ == null) { + return eventDim_.get(index); } else { + return eventDimBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A repeated record of event related dimensions.
+       * 
+ * + * repeated .google.events.firebase.analytics.v1.EventDimensions event_dim = 2; + */ + public java.util.List + getEventDimOrBuilderList() { + if (eventDimBuilder_ != null) { + return eventDimBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(eventDim_); + } + } + /** + *
+       * A repeated record of event related dimensions.
+       * 
+ * + * repeated .google.events.firebase.analytics.v1.EventDimensions event_dim = 2; + */ + public google.events.firebase.analytics.v1.Data.EventDimensions.Builder addEventDimBuilder() { + return getEventDimFieldBuilder().addBuilder( + google.events.firebase.analytics.v1.Data.EventDimensions.getDefaultInstance()); + } + /** + *
+       * A repeated record of event related dimensions.
+       * 
+ * + * repeated .google.events.firebase.analytics.v1.EventDimensions event_dim = 2; + */ + public google.events.firebase.analytics.v1.Data.EventDimensions.Builder addEventDimBuilder( + int index) { + return getEventDimFieldBuilder().addBuilder( + index, google.events.firebase.analytics.v1.Data.EventDimensions.getDefaultInstance()); + } + /** + *
+       * A repeated record of event related dimensions.
+       * 
+ * + * repeated .google.events.firebase.analytics.v1.EventDimensions event_dim = 2; + */ + public java.util.List + getEventDimBuilderList() { + return getEventDimFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + google.events.firebase.analytics.v1.Data.EventDimensions, google.events.firebase.analytics.v1.Data.EventDimensions.Builder, google.events.firebase.analytics.v1.Data.EventDimensionsOrBuilder> + getEventDimFieldBuilder() { + if (eventDimBuilder_ == null) { + eventDimBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + google.events.firebase.analytics.v1.Data.EventDimensions, google.events.firebase.analytics.v1.Data.EventDimensions.Builder, google.events.firebase.analytics.v1.Data.EventDimensionsOrBuilder>( + eventDim_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + eventDim_ = null; + } + return eventDimBuilder_; + } + @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.firebase.analytics.v1.AnalyticsLogData) + } + + // @@protoc_insertion_point(class_scope:google.events.firebase.analytics.v1.AnalyticsLogData) + private static final google.events.firebase.analytics.v1.Data.AnalyticsLogData DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new google.events.firebase.analytics.v1.Data.AnalyticsLogData(); + } + + public static google.events.firebase.analytics.v1.Data.AnalyticsLogData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnalyticsLogData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnalyticsLogData(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.AnalyticsLogData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UserDimensionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.firebase.analytics.v1.UserDimensions) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The user ID set via the setUserId API.
+     * 
+ * + * string user_id = 1; + * @return The userId. + */ + java.lang.String getUserId(); + /** + *
+     * The user ID set via the setUserId API.
+     * 
+ * + * string user_id = 1; + * @return The bytes for userId. + */ + com.google.protobuf.ByteString + getUserIdBytes(); + + /** + *
+     * The time (in microseconds) at which the user first opened the app.
+     * 
+ * + * int64 first_open_timestamp_micros = 2; + * @return The firstOpenTimestampMicros. + */ + long getFirstOpenTimestampMicros(); + + /** + *
+     * A repeated record of user properties set with the setUserProperty API.
+     * https://firebase.google.com/docs/analytics/android/properties
+     * 
+ * + * map<string, .google.events.firebase.analytics.v1.UserPropertyValue> user_properties = 3; + */ + int getUserPropertiesCount(); + /** + *
+     * A repeated record of user properties set with the setUserProperty API.
+     * https://firebase.google.com/docs/analytics/android/properties
+     * 
+ * + * map<string, .google.events.firebase.analytics.v1.UserPropertyValue> user_properties = 3; + */ + boolean containsUserProperties( + java.lang.String key); + /** + * Use {@link #getUserPropertiesMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getUserProperties(); + /** + *
+     * A repeated record of user properties set with the setUserProperty API.
+     * https://firebase.google.com/docs/analytics/android/properties
+     * 
+ * + * map<string, .google.events.firebase.analytics.v1.UserPropertyValue> user_properties = 3; + */ + java.util.Map + getUserPropertiesMap(); + /** + *
+     * A repeated record of user properties set with the setUserProperty API.
+     * https://firebase.google.com/docs/analytics/android/properties
+     * 
+ * + * map<string, .google.events.firebase.analytics.v1.UserPropertyValue> user_properties = 3; + */ + + google.events.firebase.analytics.v1.Data.UserPropertyValue getUserPropertiesOrDefault( + java.lang.String key, + google.events.firebase.analytics.v1.Data.UserPropertyValue defaultValue); + /** + *
+     * A repeated record of user properties set with the setUserProperty API.
+     * https://firebase.google.com/docs/analytics/android/properties
+     * 
+ * + * map<string, .google.events.firebase.analytics.v1.UserPropertyValue> user_properties = 3; + */ + + google.events.firebase.analytics.v1.Data.UserPropertyValue getUserPropertiesOrThrow( + java.lang.String key); + + /** + *
+     * Device information.
+     * 
+ * + * .google.events.firebase.analytics.v1.DeviceInfo device_info = 4; + * @return Whether the deviceInfo field is set. + */ + boolean hasDeviceInfo(); + /** + *
+     * Device information.
+     * 
+ * + * .google.events.firebase.analytics.v1.DeviceInfo device_info = 4; + * @return The deviceInfo. + */ + google.events.firebase.analytics.v1.Data.DeviceInfo getDeviceInfo(); + /** + *
+     * Device information.
+     * 
+ * + * .google.events.firebase.analytics.v1.DeviceInfo device_info = 4; + */ + google.events.firebase.analytics.v1.Data.DeviceInfoOrBuilder getDeviceInfoOrBuilder(); + + /** + *
+     * User's geographic information.
+     * 
+ * + * .google.events.firebase.analytics.v1.GeoInfo geo_info = 5; + * @return Whether the geoInfo field is set. + */ + boolean hasGeoInfo(); + /** + *
+     * User's geographic information.
+     * 
+ * + * .google.events.firebase.analytics.v1.GeoInfo geo_info = 5; + * @return The geoInfo. + */ + google.events.firebase.analytics.v1.Data.GeoInfo getGeoInfo(); + /** + *
+     * User's geographic information.
+     * 
+ * + * .google.events.firebase.analytics.v1.GeoInfo geo_info = 5; + */ + google.events.firebase.analytics.v1.Data.GeoInfoOrBuilder getGeoInfoOrBuilder(); + + /** + *
+     * App information.
+     * 
+ * + * .google.events.firebase.analytics.v1.AppInfo app_info = 6; + * @return Whether the appInfo field is set. + */ + boolean hasAppInfo(); + /** + *
+     * App information.
+     * 
+ * + * .google.events.firebase.analytics.v1.AppInfo app_info = 6; + * @return The appInfo. + */ + google.events.firebase.analytics.v1.Data.AppInfo getAppInfo(); + /** + *
+     * App information.
+     * 
+ * + * .google.events.firebase.analytics.v1.AppInfo app_info = 6; + */ + google.events.firebase.analytics.v1.Data.AppInfoOrBuilder getAppInfoOrBuilder(); + + /** + *
+     * Information about marketing campaign which acquired the user.
+     * 
+ * + * .google.events.firebase.analytics.v1.TrafficSource traffic_source = 7; + * @return Whether the trafficSource field is set. + */ + boolean hasTrafficSource(); + /** + *
+     * Information about marketing campaign which acquired the user.
+     * 
+ * + * .google.events.firebase.analytics.v1.TrafficSource traffic_source = 7; + * @return The trafficSource. + */ + google.events.firebase.analytics.v1.Data.TrafficSource getTrafficSource(); + /** + *
+     * Information about marketing campaign which acquired the user.
+     * 
+ * + * .google.events.firebase.analytics.v1.TrafficSource traffic_source = 7; + */ + google.events.firebase.analytics.v1.Data.TrafficSourceOrBuilder getTrafficSourceOrBuilder(); + + /** + *
+     * Information regarding the bundle in which these events were uploaded.
+     * 
+ * + * .google.events.firebase.analytics.v1.ExportBundleInfo bundle_info = 8; + * @return Whether the bundleInfo field is set. + */ + boolean hasBundleInfo(); + /** + *
+     * Information regarding the bundle in which these events were uploaded.
+     * 
+ * + * .google.events.firebase.analytics.v1.ExportBundleInfo bundle_info = 8; + * @return The bundleInfo. + */ + google.events.firebase.analytics.v1.Data.ExportBundleInfo getBundleInfo(); + /** + *
+     * Information regarding the bundle in which these events were uploaded.
+     * 
+ * + * .google.events.firebase.analytics.v1.ExportBundleInfo bundle_info = 8; + */ + google.events.firebase.analytics.v1.Data.ExportBundleInfoOrBuilder getBundleInfoOrBuilder(); + + /** + *
+     * Lifetime Value information about this user.
+     * 
+ * + * .google.events.firebase.analytics.v1.LtvInfo ltv_info = 9; + * @return Whether the ltvInfo field is set. + */ + boolean hasLtvInfo(); + /** + *
+     * Lifetime Value information about this user.
+     * 
+ * + * .google.events.firebase.analytics.v1.LtvInfo ltv_info = 9; + * @return The ltvInfo. + */ + google.events.firebase.analytics.v1.Data.LtvInfo getLtvInfo(); + /** + *
+     * Lifetime Value information about this user.
+     * 
+ * + * .google.events.firebase.analytics.v1.LtvInfo ltv_info = 9; + */ + google.events.firebase.analytics.v1.Data.LtvInfoOrBuilder getLtvInfoOrBuilder(); + } + /** + *
+   * Message containing information about the user associated with the event.
+   * 
+ * + * Protobuf type {@code google.events.firebase.analytics.v1.UserDimensions} + */ + public static final class UserDimensions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.firebase.analytics.v1.UserDimensions) + UserDimensionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserDimensions.newBuilder() to construct. + private UserDimensions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UserDimensions() { + userId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserDimensions(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserDimensions( + 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(); + + userId_ = s; + break; + } + case 16: { + + firstOpenTimestampMicros_ = input.readInt64(); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + userProperties_ = com.google.protobuf.MapField.newMapField( + UserPropertiesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + userProperties__ = input.readMessage( + UserPropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + userProperties_.getMutableMap().put( + userProperties__.getKey(), userProperties__.getValue()); + break; + } + case 34: { + google.events.firebase.analytics.v1.Data.DeviceInfo.Builder subBuilder = null; + if (deviceInfo_ != null) { + subBuilder = deviceInfo_.toBuilder(); + } + deviceInfo_ = input.readMessage(google.events.firebase.analytics.v1.Data.DeviceInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deviceInfo_); + deviceInfo_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + google.events.firebase.analytics.v1.Data.GeoInfo.Builder subBuilder = null; + if (geoInfo_ != null) { + subBuilder = geoInfo_.toBuilder(); + } + geoInfo_ = input.readMessage(google.events.firebase.analytics.v1.Data.GeoInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(geoInfo_); + geoInfo_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + google.events.firebase.analytics.v1.Data.AppInfo.Builder subBuilder = null; + if (appInfo_ != null) { + subBuilder = appInfo_.toBuilder(); + } + appInfo_ = input.readMessage(google.events.firebase.analytics.v1.Data.AppInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(appInfo_); + appInfo_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + google.events.firebase.analytics.v1.Data.TrafficSource.Builder subBuilder = null; + if (trafficSource_ != null) { + subBuilder = trafficSource_.toBuilder(); + } + trafficSource_ = input.readMessage(google.events.firebase.analytics.v1.Data.TrafficSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(trafficSource_); + trafficSource_ = subBuilder.buildPartial(); + } + + break; + } + case 66: { + google.events.firebase.analytics.v1.Data.ExportBundleInfo.Builder subBuilder = null; + if (bundleInfo_ != null) { + subBuilder = bundleInfo_.toBuilder(); + } + bundleInfo_ = input.readMessage(google.events.firebase.analytics.v1.Data.ExportBundleInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(bundleInfo_); + bundleInfo_ = subBuilder.buildPartial(); + } + + break; + } + case 74: { + google.events.firebase.analytics.v1.Data.LtvInfo.Builder subBuilder = null; + if (ltvInfo_ != null) { + subBuilder = ltvInfo_.toBuilder(); + } + ltvInfo_ = input.readMessage(google.events.firebase.analytics.v1.Data.LtvInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(ltvInfo_); + ltvInfo_ = subBuilder.buildPartial(); + } + + 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.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_UserDimensions_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 3: + return internalGetUserProperties(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_UserDimensions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.firebase.analytics.v1.Data.UserDimensions.class, google.events.firebase.analytics.v1.Data.UserDimensions.Builder.class); + } + + public static final int USER_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object userId_; + /** + *
+     * The user ID set via the setUserId API.
+     * 
+ * + * string user_id = 1; + * @return The userId. + */ + @java.lang.Override + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + 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(); + userId_ = s; + return s; + } + } + /** + *
+     * The user ID set via the setUserId API.
+     * 
+ * + * string user_id = 1; + * @return The bytes for userId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FIRST_OPEN_TIMESTAMP_MICROS_FIELD_NUMBER = 2; + private long firstOpenTimestampMicros_; + /** + *
+     * The time (in microseconds) at which the user first opened the app.
+     * 
+ * + * int64 first_open_timestamp_micros = 2; + * @return The firstOpenTimestampMicros. + */ + @java.lang.Override + public long getFirstOpenTimestampMicros() { + return firstOpenTimestampMicros_; + } + + public static final int USER_PROPERTIES_FIELD_NUMBER = 3; + private static final class UserPropertiesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, google.events.firebase.analytics.v1.Data.UserPropertyValue> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_UserDimensions_UserPropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + google.events.firebase.analytics.v1.Data.UserPropertyValue.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, google.events.firebase.analytics.v1.Data.UserPropertyValue> userProperties_; + private com.google.protobuf.MapField + internalGetUserProperties() { + if (userProperties_ == null) { + return com.google.protobuf.MapField.emptyMapField( + UserPropertiesDefaultEntryHolder.defaultEntry); + } + return userProperties_; + } + + public int getUserPropertiesCount() { + return internalGetUserProperties().getMap().size(); + } + /** + *
+     * A repeated record of user properties set with the setUserProperty API.
+     * https://firebase.google.com/docs/analytics/android/properties
+     * 
+ * + * map<string, .google.events.firebase.analytics.v1.UserPropertyValue> user_properties = 3; + */ + + @java.lang.Override + public boolean containsUserProperties( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetUserProperties().getMap().containsKey(key); + } + /** + * Use {@link #getUserPropertiesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getUserProperties() { + return getUserPropertiesMap(); + } + /** + *
+     * A repeated record of user properties set with the setUserProperty API.
+     * https://firebase.google.com/docs/analytics/android/properties
+     * 
+ * + * map<string, .google.events.firebase.analytics.v1.UserPropertyValue> user_properties = 3; + */ + @java.lang.Override + + public java.util.Map getUserPropertiesMap() { + return internalGetUserProperties().getMap(); + } + /** + *
+     * A repeated record of user properties set with the setUserProperty API.
+     * https://firebase.google.com/docs/analytics/android/properties
+     * 
+ * + * map<string, .google.events.firebase.analytics.v1.UserPropertyValue> user_properties = 3; + */ + @java.lang.Override + + public google.events.firebase.analytics.v1.Data.UserPropertyValue getUserPropertiesOrDefault( + java.lang.String key, + google.events.firebase.analytics.v1.Data.UserPropertyValue defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetUserProperties().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * A repeated record of user properties set with the setUserProperty API.
+     * https://firebase.google.com/docs/analytics/android/properties
+     * 
+ * + * map<string, .google.events.firebase.analytics.v1.UserPropertyValue> user_properties = 3; + */ + @java.lang.Override + + public google.events.firebase.analytics.v1.Data.UserPropertyValue getUserPropertiesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetUserProperties().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int DEVICE_INFO_FIELD_NUMBER = 4; + private google.events.firebase.analytics.v1.Data.DeviceInfo deviceInfo_; + /** + *
+     * Device information.
+     * 
+ * + * .google.events.firebase.analytics.v1.DeviceInfo device_info = 4; + * @return Whether the deviceInfo field is set. + */ + @java.lang.Override + public boolean hasDeviceInfo() { + return deviceInfo_ != null; + } + /** + *
+     * Device information.
+     * 
+ * + * .google.events.firebase.analytics.v1.DeviceInfo device_info = 4; + * @return The deviceInfo. + */ + @java.lang.Override + public google.events.firebase.analytics.v1.Data.DeviceInfo getDeviceInfo() { + return deviceInfo_ == null ? google.events.firebase.analytics.v1.Data.DeviceInfo.getDefaultInstance() : deviceInfo_; + } + /** + *
+     * Device information.
+     * 
+ * + * .google.events.firebase.analytics.v1.DeviceInfo device_info = 4; + */ + @java.lang.Override + public google.events.firebase.analytics.v1.Data.DeviceInfoOrBuilder getDeviceInfoOrBuilder() { + return getDeviceInfo(); + } + + public static final int GEO_INFO_FIELD_NUMBER = 5; + private google.events.firebase.analytics.v1.Data.GeoInfo geoInfo_; + /** + *
+     * User's geographic information.
+     * 
+ * + * .google.events.firebase.analytics.v1.GeoInfo geo_info = 5; + * @return Whether the geoInfo field is set. + */ + @java.lang.Override + public boolean hasGeoInfo() { + return geoInfo_ != null; + } + /** + *
+     * User's geographic information.
+     * 
+ * + * .google.events.firebase.analytics.v1.GeoInfo geo_info = 5; + * @return The geoInfo. + */ + @java.lang.Override + public google.events.firebase.analytics.v1.Data.GeoInfo getGeoInfo() { + return geoInfo_ == null ? google.events.firebase.analytics.v1.Data.GeoInfo.getDefaultInstance() : geoInfo_; + } + /** + *
+     * User's geographic information.
+     * 
+ * + * .google.events.firebase.analytics.v1.GeoInfo geo_info = 5; + */ + @java.lang.Override + public google.events.firebase.analytics.v1.Data.GeoInfoOrBuilder getGeoInfoOrBuilder() { + return getGeoInfo(); + } + + public static final int APP_INFO_FIELD_NUMBER = 6; + private google.events.firebase.analytics.v1.Data.AppInfo appInfo_; + /** + *
+     * App information.
+     * 
+ * + * .google.events.firebase.analytics.v1.AppInfo app_info = 6; + * @return Whether the appInfo field is set. + */ + @java.lang.Override + public boolean hasAppInfo() { + return appInfo_ != null; + } + /** + *
+     * App information.
+     * 
+ * + * .google.events.firebase.analytics.v1.AppInfo app_info = 6; + * @return The appInfo. + */ + @java.lang.Override + public google.events.firebase.analytics.v1.Data.AppInfo getAppInfo() { + return appInfo_ == null ? google.events.firebase.analytics.v1.Data.AppInfo.getDefaultInstance() : appInfo_; + } + /** + *
+     * App information.
+     * 
+ * + * .google.events.firebase.analytics.v1.AppInfo app_info = 6; + */ + @java.lang.Override + public google.events.firebase.analytics.v1.Data.AppInfoOrBuilder getAppInfoOrBuilder() { + return getAppInfo(); + } + + public static final int TRAFFIC_SOURCE_FIELD_NUMBER = 7; + private google.events.firebase.analytics.v1.Data.TrafficSource trafficSource_; + /** + *
+     * Information about marketing campaign which acquired the user.
+     * 
+ * + * .google.events.firebase.analytics.v1.TrafficSource traffic_source = 7; + * @return Whether the trafficSource field is set. + */ + @java.lang.Override + public boolean hasTrafficSource() { + return trafficSource_ != null; + } + /** + *
+     * Information about marketing campaign which acquired the user.
+     * 
+ * + * .google.events.firebase.analytics.v1.TrafficSource traffic_source = 7; + * @return The trafficSource. + */ + @java.lang.Override + public google.events.firebase.analytics.v1.Data.TrafficSource getTrafficSource() { + return trafficSource_ == null ? google.events.firebase.analytics.v1.Data.TrafficSource.getDefaultInstance() : trafficSource_; + } + /** + *
+     * Information about marketing campaign which acquired the user.
+     * 
+ * + * .google.events.firebase.analytics.v1.TrafficSource traffic_source = 7; + */ + @java.lang.Override + public google.events.firebase.analytics.v1.Data.TrafficSourceOrBuilder getTrafficSourceOrBuilder() { + return getTrafficSource(); + } + + public static final int BUNDLE_INFO_FIELD_NUMBER = 8; + private google.events.firebase.analytics.v1.Data.ExportBundleInfo bundleInfo_; + /** + *
+     * Information regarding the bundle in which these events were uploaded.
+     * 
+ * + * .google.events.firebase.analytics.v1.ExportBundleInfo bundle_info = 8; + * @return Whether the bundleInfo field is set. + */ + @java.lang.Override + public boolean hasBundleInfo() { + return bundleInfo_ != null; + } + /** + *
+     * Information regarding the bundle in which these events were uploaded.
+     * 
+ * + * .google.events.firebase.analytics.v1.ExportBundleInfo bundle_info = 8; + * @return The bundleInfo. + */ + @java.lang.Override + public google.events.firebase.analytics.v1.Data.ExportBundleInfo getBundleInfo() { + return bundleInfo_ == null ? google.events.firebase.analytics.v1.Data.ExportBundleInfo.getDefaultInstance() : bundleInfo_; + } + /** + *
+     * Information regarding the bundle in which these events were uploaded.
+     * 
+ * + * .google.events.firebase.analytics.v1.ExportBundleInfo bundle_info = 8; + */ + @java.lang.Override + public google.events.firebase.analytics.v1.Data.ExportBundleInfoOrBuilder getBundleInfoOrBuilder() { + return getBundleInfo(); + } + + public static final int LTV_INFO_FIELD_NUMBER = 9; + private google.events.firebase.analytics.v1.Data.LtvInfo ltvInfo_; + /** + *
+     * Lifetime Value information about this user.
+     * 
+ * + * .google.events.firebase.analytics.v1.LtvInfo ltv_info = 9; + * @return Whether the ltvInfo field is set. + */ + @java.lang.Override + public boolean hasLtvInfo() { + return ltvInfo_ != null; + } + /** + *
+     * Lifetime Value information about this user.
+     * 
+ * + * .google.events.firebase.analytics.v1.LtvInfo ltv_info = 9; + * @return The ltvInfo. + */ + @java.lang.Override + public google.events.firebase.analytics.v1.Data.LtvInfo getLtvInfo() { + return ltvInfo_ == null ? google.events.firebase.analytics.v1.Data.LtvInfo.getDefaultInstance() : ltvInfo_; + } + /** + *
+     * Lifetime Value information about this user.
+     * 
+ * + * .google.events.firebase.analytics.v1.LtvInfo ltv_info = 9; + */ + @java.lang.Override + public google.events.firebase.analytics.v1.Data.LtvInfoOrBuilder getLtvInfoOrBuilder() { + return getLtvInfo(); + } + + 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 (!getUserIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, userId_); + } + if (firstOpenTimestampMicros_ != 0L) { + output.writeInt64(2, firstOpenTimestampMicros_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetUserProperties(), + UserPropertiesDefaultEntryHolder.defaultEntry, + 3); + if (deviceInfo_ != null) { + output.writeMessage(4, getDeviceInfo()); + } + if (geoInfo_ != null) { + output.writeMessage(5, getGeoInfo()); + } + if (appInfo_ != null) { + output.writeMessage(6, getAppInfo()); + } + if (trafficSource_ != null) { + output.writeMessage(7, getTrafficSource()); + } + if (bundleInfo_ != null) { + output.writeMessage(8, getBundleInfo()); + } + if (ltvInfo_ != null) { + output.writeMessage(9, getLtvInfo()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getUserIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, userId_); + } + if (firstOpenTimestampMicros_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, firstOpenTimestampMicros_); + } + for (java.util.Map.Entry entry + : internalGetUserProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry + userProperties__ = UserPropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, userProperties__); + } + if (deviceInfo_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getDeviceInfo()); + } + if (geoInfo_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getGeoInfo()); + } + if (appInfo_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getAppInfo()); + } + if (trafficSource_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getTrafficSource()); + } + if (bundleInfo_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getBundleInfo()); + } + if (ltvInfo_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getLtvInfo()); + } + 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.firebase.analytics.v1.Data.UserDimensions)) { + return super.equals(obj); + } + google.events.firebase.analytics.v1.Data.UserDimensions other = (google.events.firebase.analytics.v1.Data.UserDimensions) obj; + + if (!getUserId() + .equals(other.getUserId())) return false; + if (getFirstOpenTimestampMicros() + != other.getFirstOpenTimestampMicros()) return false; + if (!internalGetUserProperties().equals( + other.internalGetUserProperties())) return false; + if (hasDeviceInfo() != other.hasDeviceInfo()) return false; + if (hasDeviceInfo()) { + if (!getDeviceInfo() + .equals(other.getDeviceInfo())) return false; + } + if (hasGeoInfo() != other.hasGeoInfo()) return false; + if (hasGeoInfo()) { + if (!getGeoInfo() + .equals(other.getGeoInfo())) return false; + } + if (hasAppInfo() != other.hasAppInfo()) return false; + if (hasAppInfo()) { + if (!getAppInfo() + .equals(other.getAppInfo())) return false; + } + if (hasTrafficSource() != other.hasTrafficSource()) return false; + if (hasTrafficSource()) { + if (!getTrafficSource() + .equals(other.getTrafficSource())) return false; + } + if (hasBundleInfo() != other.hasBundleInfo()) return false; + if (hasBundleInfo()) { + if (!getBundleInfo() + .equals(other.getBundleInfo())) return false; + } + if (hasLtvInfo() != other.hasLtvInfo()) return false; + if (hasLtvInfo()) { + if (!getLtvInfo() + .equals(other.getLtvInfo())) 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) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + getUserId().hashCode(); + hash = (37 * hash) + FIRST_OPEN_TIMESTAMP_MICROS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFirstOpenTimestampMicros()); + if (!internalGetUserProperties().getMap().isEmpty()) { + hash = (37 * hash) + USER_PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + internalGetUserProperties().hashCode(); + } + if (hasDeviceInfo()) { + hash = (37 * hash) + DEVICE_INFO_FIELD_NUMBER; + hash = (53 * hash) + getDeviceInfo().hashCode(); + } + if (hasGeoInfo()) { + hash = (37 * hash) + GEO_INFO_FIELD_NUMBER; + hash = (53 * hash) + getGeoInfo().hashCode(); + } + if (hasAppInfo()) { + hash = (37 * hash) + APP_INFO_FIELD_NUMBER; + hash = (53 * hash) + getAppInfo().hashCode(); + } + if (hasTrafficSource()) { + hash = (37 * hash) + TRAFFIC_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getTrafficSource().hashCode(); + } + if (hasBundleInfo()) { + hash = (37 * hash) + BUNDLE_INFO_FIELD_NUMBER; + hash = (53 * hash) + getBundleInfo().hashCode(); + } + if (hasLtvInfo()) { + hash = (37 * hash) + LTV_INFO_FIELD_NUMBER; + hash = (53 * hash) + getLtvInfo().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static google.events.firebase.analytics.v1.Data.UserDimensions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.analytics.v1.Data.UserDimensions parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.firebase.analytics.v1.Data.UserDimensions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.analytics.v1.Data.UserDimensions 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.firebase.analytics.v1.Data.UserDimensions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.analytics.v1.Data.UserDimensions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.firebase.analytics.v1.Data.UserDimensions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.firebase.analytics.v1.Data.UserDimensions 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.firebase.analytics.v1.Data.UserDimensions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static google.events.firebase.analytics.v1.Data.UserDimensions 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.firebase.analytics.v1.Data.UserDimensions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.firebase.analytics.v1.Data.UserDimensions 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.firebase.analytics.v1.Data.UserDimensions 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; + } + /** + *
+     * Message containing information about the user associated with the event.
+     * 
+ * + * Protobuf type {@code google.events.firebase.analytics.v1.UserDimensions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.events.firebase.analytics.v1.UserDimensions) + google.events.firebase.analytics.v1.Data.UserDimensionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_UserDimensions_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 3: + return internalGetUserProperties(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 3: + return internalGetMutableUserProperties(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_UserDimensions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.firebase.analytics.v1.Data.UserDimensions.class, google.events.firebase.analytics.v1.Data.UserDimensions.Builder.class); + } + + // Construct using google.events.firebase.analytics.v1.Data.UserDimensions.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + userId_ = ""; + + firstOpenTimestampMicros_ = 0L; + + internalGetMutableUserProperties().clear(); + if (deviceInfoBuilder_ == null) { + deviceInfo_ = null; + } else { + deviceInfo_ = null; + deviceInfoBuilder_ = null; + } + if (geoInfoBuilder_ == null) { + geoInfo_ = null; + } else { + geoInfo_ = null; + geoInfoBuilder_ = null; + } + if (appInfoBuilder_ == null) { + appInfo_ = null; + } else { + appInfo_ = null; + appInfoBuilder_ = null; + } + if (trafficSourceBuilder_ == null) { + trafficSource_ = null; + } else { + trafficSource_ = null; + trafficSourceBuilder_ = null; + } + if (bundleInfoBuilder_ == null) { + bundleInfo_ = null; + } else { + bundleInfo_ = null; + bundleInfoBuilder_ = null; + } + if (ltvInfoBuilder_ == null) { + ltvInfo_ = null; + } else { + ltvInfo_ = null; + ltvInfoBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_UserDimensions_descriptor; + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.UserDimensions getDefaultInstanceForType() { + return google.events.firebase.analytics.v1.Data.UserDimensions.getDefaultInstance(); + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.UserDimensions build() { + google.events.firebase.analytics.v1.Data.UserDimensions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.UserDimensions buildPartial() { + google.events.firebase.analytics.v1.Data.UserDimensions result = new google.events.firebase.analytics.v1.Data.UserDimensions(this); + int from_bitField0_ = bitField0_; + result.userId_ = userId_; + result.firstOpenTimestampMicros_ = firstOpenTimestampMicros_; + result.userProperties_ = internalGetUserProperties(); + result.userProperties_.makeImmutable(); + if (deviceInfoBuilder_ == null) { + result.deviceInfo_ = deviceInfo_; + } else { + result.deviceInfo_ = deviceInfoBuilder_.build(); + } + if (geoInfoBuilder_ == null) { + result.geoInfo_ = geoInfo_; + } else { + result.geoInfo_ = geoInfoBuilder_.build(); + } + if (appInfoBuilder_ == null) { + result.appInfo_ = appInfo_; + } else { + result.appInfo_ = appInfoBuilder_.build(); + } + if (trafficSourceBuilder_ == null) { + result.trafficSource_ = trafficSource_; + } else { + result.trafficSource_ = trafficSourceBuilder_.build(); + } + if (bundleInfoBuilder_ == null) { + result.bundleInfo_ = bundleInfo_; + } else { + result.bundleInfo_ = bundleInfoBuilder_.build(); + } + if (ltvInfoBuilder_ == null) { + result.ltvInfo_ = ltvInfo_; + } else { + result.ltvInfo_ = ltvInfoBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.events.firebase.analytics.v1.Data.UserDimensions) { + return mergeFrom((google.events.firebase.analytics.v1.Data.UserDimensions)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(google.events.firebase.analytics.v1.Data.UserDimensions other) { + if (other == google.events.firebase.analytics.v1.Data.UserDimensions.getDefaultInstance()) return this; + if (!other.getUserId().isEmpty()) { + userId_ = other.userId_; + onChanged(); + } + if (other.getFirstOpenTimestampMicros() != 0L) { + setFirstOpenTimestampMicros(other.getFirstOpenTimestampMicros()); + } + internalGetMutableUserProperties().mergeFrom( + other.internalGetUserProperties()); + if (other.hasDeviceInfo()) { + mergeDeviceInfo(other.getDeviceInfo()); + } + if (other.hasGeoInfo()) { + mergeGeoInfo(other.getGeoInfo()); + } + if (other.hasAppInfo()) { + mergeAppInfo(other.getAppInfo()); + } + if (other.hasTrafficSource()) { + mergeTrafficSource(other.getTrafficSource()); + } + if (other.hasBundleInfo()) { + mergeBundleInfo(other.getBundleInfo()); + } + if (other.hasLtvInfo()) { + mergeLtvInfo(other.getLtvInfo()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.events.firebase.analytics.v1.Data.UserDimensions parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.events.firebase.analytics.v1.Data.UserDimensions) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object userId_ = ""; + /** + *
+       * The user ID set via the setUserId API.
+       * 
+ * + * string user_id = 1; + * @return The userId. + */ + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The user ID set via the setUserId API.
+       * 
+ * + * string user_id = 1; + * @return The bytes for userId. + */ + public com.google.protobuf.ByteString + getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The user ID set via the setUserId API.
+       * 
+ * + * string user_id = 1; + * @param value The userId to set. + * @return This builder for chaining. + */ + public Builder setUserId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + userId_ = value; + onChanged(); + return this; + } + /** + *
+       * The user ID set via the setUserId API.
+       * 
+ * + * string user_id = 1; + * @return This builder for chaining. + */ + public Builder clearUserId() { + + userId_ = getDefaultInstance().getUserId(); + onChanged(); + return this; + } + /** + *
+       * The user ID set via the setUserId API.
+       * 
+ * + * string user_id = 1; + * @param value The bytes for userId to set. + * @return This builder for chaining. + */ + public Builder setUserIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + userId_ = value; + onChanged(); + return this; + } + + private long firstOpenTimestampMicros_ ; + /** + *
+       * The time (in microseconds) at which the user first opened the app.
+       * 
+ * + * int64 first_open_timestamp_micros = 2; + * @return The firstOpenTimestampMicros. + */ + @java.lang.Override + public long getFirstOpenTimestampMicros() { + return firstOpenTimestampMicros_; + } + /** + *
+       * The time (in microseconds) at which the user first opened the app.
+       * 
+ * + * int64 first_open_timestamp_micros = 2; + * @param value The firstOpenTimestampMicros to set. + * @return This builder for chaining. + */ + public Builder setFirstOpenTimestampMicros(long value) { + + firstOpenTimestampMicros_ = value; + onChanged(); + return this; + } + /** + *
+       * The time (in microseconds) at which the user first opened the app.
+       * 
+ * + * int64 first_open_timestamp_micros = 2; + * @return This builder for chaining. + */ + public Builder clearFirstOpenTimestampMicros() { + + firstOpenTimestampMicros_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, google.events.firebase.analytics.v1.Data.UserPropertyValue> userProperties_; + private com.google.protobuf.MapField + internalGetUserProperties() { + if (userProperties_ == null) { + return com.google.protobuf.MapField.emptyMapField( + UserPropertiesDefaultEntryHolder.defaultEntry); + } + return userProperties_; + } + private com.google.protobuf.MapField + internalGetMutableUserProperties() { + onChanged();; + if (userProperties_ == null) { + userProperties_ = com.google.protobuf.MapField.newMapField( + UserPropertiesDefaultEntryHolder.defaultEntry); + } + if (!userProperties_.isMutable()) { + userProperties_ = userProperties_.copy(); + } + return userProperties_; + } + + public int getUserPropertiesCount() { + return internalGetUserProperties().getMap().size(); + } + /** + *
+       * A repeated record of user properties set with the setUserProperty API.
+       * https://firebase.google.com/docs/analytics/android/properties
+       * 
+ * + * map<string, .google.events.firebase.analytics.v1.UserPropertyValue> user_properties = 3; + */ + + @java.lang.Override + public boolean containsUserProperties( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetUserProperties().getMap().containsKey(key); + } + /** + * Use {@link #getUserPropertiesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getUserProperties() { + return getUserPropertiesMap(); + } + /** + *
+       * A repeated record of user properties set with the setUserProperty API.
+       * https://firebase.google.com/docs/analytics/android/properties
+       * 
+ * + * map<string, .google.events.firebase.analytics.v1.UserPropertyValue> user_properties = 3; + */ + @java.lang.Override + + public java.util.Map getUserPropertiesMap() { + return internalGetUserProperties().getMap(); + } + /** + *
+       * A repeated record of user properties set with the setUserProperty API.
+       * https://firebase.google.com/docs/analytics/android/properties
+       * 
+ * + * map<string, .google.events.firebase.analytics.v1.UserPropertyValue> user_properties = 3; + */ + @java.lang.Override + + public google.events.firebase.analytics.v1.Data.UserPropertyValue getUserPropertiesOrDefault( + java.lang.String key, + google.events.firebase.analytics.v1.Data.UserPropertyValue defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetUserProperties().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * A repeated record of user properties set with the setUserProperty API.
+       * https://firebase.google.com/docs/analytics/android/properties
+       * 
+ * + * map<string, .google.events.firebase.analytics.v1.UserPropertyValue> user_properties = 3; + */ + @java.lang.Override + + public google.events.firebase.analytics.v1.Data.UserPropertyValue getUserPropertiesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetUserProperties().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearUserProperties() { + internalGetMutableUserProperties().getMutableMap() + .clear(); + return this; + } + /** + *
+       * A repeated record of user properties set with the setUserProperty API.
+       * https://firebase.google.com/docs/analytics/android/properties
+       * 
+ * + * map<string, .google.events.firebase.analytics.v1.UserPropertyValue> user_properties = 3; + */ + + public Builder removeUserProperties( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableUserProperties().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableUserProperties() { + return internalGetMutableUserProperties().getMutableMap(); + } + /** + *
+       * A repeated record of user properties set with the setUserProperty API.
+       * https://firebase.google.com/docs/analytics/android/properties
+       * 
+ * + * map<string, .google.events.firebase.analytics.v1.UserPropertyValue> user_properties = 3; + */ + public Builder putUserProperties( + java.lang.String key, + google.events.firebase.analytics.v1.Data.UserPropertyValue value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableUserProperties().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * A repeated record of user properties set with the setUserProperty API.
+       * https://firebase.google.com/docs/analytics/android/properties
+       * 
+ * + * map<string, .google.events.firebase.analytics.v1.UserPropertyValue> user_properties = 3; + */ + + public Builder putAllUserProperties( + java.util.Map values) { + internalGetMutableUserProperties().getMutableMap() + .putAll(values); + return this; + } + + private google.events.firebase.analytics.v1.Data.DeviceInfo deviceInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + google.events.firebase.analytics.v1.Data.DeviceInfo, google.events.firebase.analytics.v1.Data.DeviceInfo.Builder, google.events.firebase.analytics.v1.Data.DeviceInfoOrBuilder> deviceInfoBuilder_; + /** + *
+       * Device information.
+       * 
+ * + * .google.events.firebase.analytics.v1.DeviceInfo device_info = 4; + * @return Whether the deviceInfo field is set. + */ + public boolean hasDeviceInfo() { + return deviceInfoBuilder_ != null || deviceInfo_ != null; + } + /** + *
+       * Device information.
+       * 
+ * + * .google.events.firebase.analytics.v1.DeviceInfo device_info = 4; + * @return The deviceInfo. + */ + public google.events.firebase.analytics.v1.Data.DeviceInfo getDeviceInfo() { + if (deviceInfoBuilder_ == null) { + return deviceInfo_ == null ? google.events.firebase.analytics.v1.Data.DeviceInfo.getDefaultInstance() : deviceInfo_; + } else { + return deviceInfoBuilder_.getMessage(); + } + } + /** + *
+       * Device information.
+       * 
+ * + * .google.events.firebase.analytics.v1.DeviceInfo device_info = 4; + */ + public Builder setDeviceInfo(google.events.firebase.analytics.v1.Data.DeviceInfo value) { + if (deviceInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deviceInfo_ = value; + onChanged(); + } else { + deviceInfoBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Device information.
+       * 
+ * + * .google.events.firebase.analytics.v1.DeviceInfo device_info = 4; + */ + public Builder setDeviceInfo( + google.events.firebase.analytics.v1.Data.DeviceInfo.Builder builderForValue) { + if (deviceInfoBuilder_ == null) { + deviceInfo_ = builderForValue.build(); + onChanged(); + } else { + deviceInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Device information.
+       * 
+ * + * .google.events.firebase.analytics.v1.DeviceInfo device_info = 4; + */ + public Builder mergeDeviceInfo(google.events.firebase.analytics.v1.Data.DeviceInfo value) { + if (deviceInfoBuilder_ == null) { + if (deviceInfo_ != null) { + deviceInfo_ = + google.events.firebase.analytics.v1.Data.DeviceInfo.newBuilder(deviceInfo_).mergeFrom(value).buildPartial(); + } else { + deviceInfo_ = value; + } + onChanged(); + } else { + deviceInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Device information.
+       * 
+ * + * .google.events.firebase.analytics.v1.DeviceInfo device_info = 4; + */ + public Builder clearDeviceInfo() { + if (deviceInfoBuilder_ == null) { + deviceInfo_ = null; + onChanged(); + } else { + deviceInfo_ = null; + deviceInfoBuilder_ = null; + } + + return this; + } + /** + *
+       * Device information.
+       * 
+ * + * .google.events.firebase.analytics.v1.DeviceInfo device_info = 4; + */ + public google.events.firebase.analytics.v1.Data.DeviceInfo.Builder getDeviceInfoBuilder() { + + onChanged(); + return getDeviceInfoFieldBuilder().getBuilder(); + } + /** + *
+       * Device information.
+       * 
+ * + * .google.events.firebase.analytics.v1.DeviceInfo device_info = 4; + */ + public google.events.firebase.analytics.v1.Data.DeviceInfoOrBuilder getDeviceInfoOrBuilder() { + if (deviceInfoBuilder_ != null) { + return deviceInfoBuilder_.getMessageOrBuilder(); + } else { + return deviceInfo_ == null ? + google.events.firebase.analytics.v1.Data.DeviceInfo.getDefaultInstance() : deviceInfo_; + } + } + /** + *
+       * Device information.
+       * 
+ * + * .google.events.firebase.analytics.v1.DeviceInfo device_info = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + google.events.firebase.analytics.v1.Data.DeviceInfo, google.events.firebase.analytics.v1.Data.DeviceInfo.Builder, google.events.firebase.analytics.v1.Data.DeviceInfoOrBuilder> + getDeviceInfoFieldBuilder() { + if (deviceInfoBuilder_ == null) { + deviceInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + google.events.firebase.analytics.v1.Data.DeviceInfo, google.events.firebase.analytics.v1.Data.DeviceInfo.Builder, google.events.firebase.analytics.v1.Data.DeviceInfoOrBuilder>( + getDeviceInfo(), + getParentForChildren(), + isClean()); + deviceInfo_ = null; + } + return deviceInfoBuilder_; + } + + private google.events.firebase.analytics.v1.Data.GeoInfo geoInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + google.events.firebase.analytics.v1.Data.GeoInfo, google.events.firebase.analytics.v1.Data.GeoInfo.Builder, google.events.firebase.analytics.v1.Data.GeoInfoOrBuilder> geoInfoBuilder_; + /** + *
+       * User's geographic information.
+       * 
+ * + * .google.events.firebase.analytics.v1.GeoInfo geo_info = 5; + * @return Whether the geoInfo field is set. + */ + public boolean hasGeoInfo() { + return geoInfoBuilder_ != null || geoInfo_ != null; + } + /** + *
+       * User's geographic information.
+       * 
+ * + * .google.events.firebase.analytics.v1.GeoInfo geo_info = 5; + * @return The geoInfo. + */ + public google.events.firebase.analytics.v1.Data.GeoInfo getGeoInfo() { + if (geoInfoBuilder_ == null) { + return geoInfo_ == null ? google.events.firebase.analytics.v1.Data.GeoInfo.getDefaultInstance() : geoInfo_; + } else { + return geoInfoBuilder_.getMessage(); + } + } + /** + *
+       * User's geographic information.
+       * 
+ * + * .google.events.firebase.analytics.v1.GeoInfo geo_info = 5; + */ + public Builder setGeoInfo(google.events.firebase.analytics.v1.Data.GeoInfo value) { + if (geoInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + geoInfo_ = value; + onChanged(); + } else { + geoInfoBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * User's geographic information.
+       * 
+ * + * .google.events.firebase.analytics.v1.GeoInfo geo_info = 5; + */ + public Builder setGeoInfo( + google.events.firebase.analytics.v1.Data.GeoInfo.Builder builderForValue) { + if (geoInfoBuilder_ == null) { + geoInfo_ = builderForValue.build(); + onChanged(); + } else { + geoInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * User's geographic information.
+       * 
+ * + * .google.events.firebase.analytics.v1.GeoInfo geo_info = 5; + */ + public Builder mergeGeoInfo(google.events.firebase.analytics.v1.Data.GeoInfo value) { + if (geoInfoBuilder_ == null) { + if (geoInfo_ != null) { + geoInfo_ = + google.events.firebase.analytics.v1.Data.GeoInfo.newBuilder(geoInfo_).mergeFrom(value).buildPartial(); + } else { + geoInfo_ = value; + } + onChanged(); + } else { + geoInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * User's geographic information.
+       * 
+ * + * .google.events.firebase.analytics.v1.GeoInfo geo_info = 5; + */ + public Builder clearGeoInfo() { + if (geoInfoBuilder_ == null) { + geoInfo_ = null; + onChanged(); + } else { + geoInfo_ = null; + geoInfoBuilder_ = null; + } + + return this; + } + /** + *
+       * User's geographic information.
+       * 
+ * + * .google.events.firebase.analytics.v1.GeoInfo geo_info = 5; + */ + public google.events.firebase.analytics.v1.Data.GeoInfo.Builder getGeoInfoBuilder() { + + onChanged(); + return getGeoInfoFieldBuilder().getBuilder(); + } + /** + *
+       * User's geographic information.
+       * 
+ * + * .google.events.firebase.analytics.v1.GeoInfo geo_info = 5; + */ + public google.events.firebase.analytics.v1.Data.GeoInfoOrBuilder getGeoInfoOrBuilder() { + if (geoInfoBuilder_ != null) { + return geoInfoBuilder_.getMessageOrBuilder(); + } else { + return geoInfo_ == null ? + google.events.firebase.analytics.v1.Data.GeoInfo.getDefaultInstance() : geoInfo_; + } + } + /** + *
+       * User's geographic information.
+       * 
+ * + * .google.events.firebase.analytics.v1.GeoInfo geo_info = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + google.events.firebase.analytics.v1.Data.GeoInfo, google.events.firebase.analytics.v1.Data.GeoInfo.Builder, google.events.firebase.analytics.v1.Data.GeoInfoOrBuilder> + getGeoInfoFieldBuilder() { + if (geoInfoBuilder_ == null) { + geoInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + google.events.firebase.analytics.v1.Data.GeoInfo, google.events.firebase.analytics.v1.Data.GeoInfo.Builder, google.events.firebase.analytics.v1.Data.GeoInfoOrBuilder>( + getGeoInfo(), + getParentForChildren(), + isClean()); + geoInfo_ = null; + } + return geoInfoBuilder_; + } + + private google.events.firebase.analytics.v1.Data.AppInfo appInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + google.events.firebase.analytics.v1.Data.AppInfo, google.events.firebase.analytics.v1.Data.AppInfo.Builder, google.events.firebase.analytics.v1.Data.AppInfoOrBuilder> appInfoBuilder_; + /** + *
+       * App information.
+       * 
+ * + * .google.events.firebase.analytics.v1.AppInfo app_info = 6; + * @return Whether the appInfo field is set. + */ + public boolean hasAppInfo() { + return appInfoBuilder_ != null || appInfo_ != null; + } + /** + *
+       * App information.
+       * 
+ * + * .google.events.firebase.analytics.v1.AppInfo app_info = 6; + * @return The appInfo. + */ + public google.events.firebase.analytics.v1.Data.AppInfo getAppInfo() { + if (appInfoBuilder_ == null) { + return appInfo_ == null ? google.events.firebase.analytics.v1.Data.AppInfo.getDefaultInstance() : appInfo_; + } else { + return appInfoBuilder_.getMessage(); + } + } + /** + *
+       * App information.
+       * 
+ * + * .google.events.firebase.analytics.v1.AppInfo app_info = 6; + */ + public Builder setAppInfo(google.events.firebase.analytics.v1.Data.AppInfo value) { + if (appInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + appInfo_ = value; + onChanged(); + } else { + appInfoBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * App information.
+       * 
+ * + * .google.events.firebase.analytics.v1.AppInfo app_info = 6; + */ + public Builder setAppInfo( + google.events.firebase.analytics.v1.Data.AppInfo.Builder builderForValue) { + if (appInfoBuilder_ == null) { + appInfo_ = builderForValue.build(); + onChanged(); + } else { + appInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * App information.
+       * 
+ * + * .google.events.firebase.analytics.v1.AppInfo app_info = 6; + */ + public Builder mergeAppInfo(google.events.firebase.analytics.v1.Data.AppInfo value) { + if (appInfoBuilder_ == null) { + if (appInfo_ != null) { + appInfo_ = + google.events.firebase.analytics.v1.Data.AppInfo.newBuilder(appInfo_).mergeFrom(value).buildPartial(); + } else { + appInfo_ = value; + } + onChanged(); + } else { + appInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * App information.
+       * 
+ * + * .google.events.firebase.analytics.v1.AppInfo app_info = 6; + */ + public Builder clearAppInfo() { + if (appInfoBuilder_ == null) { + appInfo_ = null; + onChanged(); + } else { + appInfo_ = null; + appInfoBuilder_ = null; + } + + return this; + } + /** + *
+       * App information.
+       * 
+ * + * .google.events.firebase.analytics.v1.AppInfo app_info = 6; + */ + public google.events.firebase.analytics.v1.Data.AppInfo.Builder getAppInfoBuilder() { + + onChanged(); + return getAppInfoFieldBuilder().getBuilder(); + } + /** + *
+       * App information.
+       * 
+ * + * .google.events.firebase.analytics.v1.AppInfo app_info = 6; + */ + public google.events.firebase.analytics.v1.Data.AppInfoOrBuilder getAppInfoOrBuilder() { + if (appInfoBuilder_ != null) { + return appInfoBuilder_.getMessageOrBuilder(); + } else { + return appInfo_ == null ? + google.events.firebase.analytics.v1.Data.AppInfo.getDefaultInstance() : appInfo_; + } + } + /** + *
+       * App information.
+       * 
+ * + * .google.events.firebase.analytics.v1.AppInfo app_info = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + google.events.firebase.analytics.v1.Data.AppInfo, google.events.firebase.analytics.v1.Data.AppInfo.Builder, google.events.firebase.analytics.v1.Data.AppInfoOrBuilder> + getAppInfoFieldBuilder() { + if (appInfoBuilder_ == null) { + appInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + google.events.firebase.analytics.v1.Data.AppInfo, google.events.firebase.analytics.v1.Data.AppInfo.Builder, google.events.firebase.analytics.v1.Data.AppInfoOrBuilder>( + getAppInfo(), + getParentForChildren(), + isClean()); + appInfo_ = null; + } + return appInfoBuilder_; + } + + private google.events.firebase.analytics.v1.Data.TrafficSource trafficSource_; + private com.google.protobuf.SingleFieldBuilderV3< + google.events.firebase.analytics.v1.Data.TrafficSource, google.events.firebase.analytics.v1.Data.TrafficSource.Builder, google.events.firebase.analytics.v1.Data.TrafficSourceOrBuilder> trafficSourceBuilder_; + /** + *
+       * Information about marketing campaign which acquired the user.
+       * 
+ * + * .google.events.firebase.analytics.v1.TrafficSource traffic_source = 7; + * @return Whether the trafficSource field is set. + */ + public boolean hasTrafficSource() { + return trafficSourceBuilder_ != null || trafficSource_ != null; + } + /** + *
+       * Information about marketing campaign which acquired the user.
+       * 
+ * + * .google.events.firebase.analytics.v1.TrafficSource traffic_source = 7; + * @return The trafficSource. + */ + public google.events.firebase.analytics.v1.Data.TrafficSource getTrafficSource() { + if (trafficSourceBuilder_ == null) { + return trafficSource_ == null ? google.events.firebase.analytics.v1.Data.TrafficSource.getDefaultInstance() : trafficSource_; + } else { + return trafficSourceBuilder_.getMessage(); + } + } + /** + *
+       * Information about marketing campaign which acquired the user.
+       * 
+ * + * .google.events.firebase.analytics.v1.TrafficSource traffic_source = 7; + */ + public Builder setTrafficSource(google.events.firebase.analytics.v1.Data.TrafficSource value) { + if (trafficSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + trafficSource_ = value; + onChanged(); + } else { + trafficSourceBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Information about marketing campaign which acquired the user.
+       * 
+ * + * .google.events.firebase.analytics.v1.TrafficSource traffic_source = 7; + */ + public Builder setTrafficSource( + google.events.firebase.analytics.v1.Data.TrafficSource.Builder builderForValue) { + if (trafficSourceBuilder_ == null) { + trafficSource_ = builderForValue.build(); + onChanged(); + } else { + trafficSourceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Information about marketing campaign which acquired the user.
+       * 
+ * + * .google.events.firebase.analytics.v1.TrafficSource traffic_source = 7; + */ + public Builder mergeTrafficSource(google.events.firebase.analytics.v1.Data.TrafficSource value) { + if (trafficSourceBuilder_ == null) { + if (trafficSource_ != null) { + trafficSource_ = + google.events.firebase.analytics.v1.Data.TrafficSource.newBuilder(trafficSource_).mergeFrom(value).buildPartial(); + } else { + trafficSource_ = value; + } + onChanged(); + } else { + trafficSourceBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Information about marketing campaign which acquired the user.
+       * 
+ * + * .google.events.firebase.analytics.v1.TrafficSource traffic_source = 7; + */ + public Builder clearTrafficSource() { + if (trafficSourceBuilder_ == null) { + trafficSource_ = null; + onChanged(); + } else { + trafficSource_ = null; + trafficSourceBuilder_ = null; + } + + return this; + } + /** + *
+       * Information about marketing campaign which acquired the user.
+       * 
+ * + * .google.events.firebase.analytics.v1.TrafficSource traffic_source = 7; + */ + public google.events.firebase.analytics.v1.Data.TrafficSource.Builder getTrafficSourceBuilder() { + + onChanged(); + return getTrafficSourceFieldBuilder().getBuilder(); + } + /** + *
+       * Information about marketing campaign which acquired the user.
+       * 
+ * + * .google.events.firebase.analytics.v1.TrafficSource traffic_source = 7; + */ + public google.events.firebase.analytics.v1.Data.TrafficSourceOrBuilder getTrafficSourceOrBuilder() { + if (trafficSourceBuilder_ != null) { + return trafficSourceBuilder_.getMessageOrBuilder(); + } else { + return trafficSource_ == null ? + google.events.firebase.analytics.v1.Data.TrafficSource.getDefaultInstance() : trafficSource_; + } + } + /** + *
+       * Information about marketing campaign which acquired the user.
+       * 
+ * + * .google.events.firebase.analytics.v1.TrafficSource traffic_source = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + google.events.firebase.analytics.v1.Data.TrafficSource, google.events.firebase.analytics.v1.Data.TrafficSource.Builder, google.events.firebase.analytics.v1.Data.TrafficSourceOrBuilder> + getTrafficSourceFieldBuilder() { + if (trafficSourceBuilder_ == null) { + trafficSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + google.events.firebase.analytics.v1.Data.TrafficSource, google.events.firebase.analytics.v1.Data.TrafficSource.Builder, google.events.firebase.analytics.v1.Data.TrafficSourceOrBuilder>( + getTrafficSource(), + getParentForChildren(), + isClean()); + trafficSource_ = null; + } + return trafficSourceBuilder_; + } + + private google.events.firebase.analytics.v1.Data.ExportBundleInfo bundleInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + google.events.firebase.analytics.v1.Data.ExportBundleInfo, google.events.firebase.analytics.v1.Data.ExportBundleInfo.Builder, google.events.firebase.analytics.v1.Data.ExportBundleInfoOrBuilder> bundleInfoBuilder_; + /** + *
+       * Information regarding the bundle in which these events were uploaded.
+       * 
+ * + * .google.events.firebase.analytics.v1.ExportBundleInfo bundle_info = 8; + * @return Whether the bundleInfo field is set. + */ + public boolean hasBundleInfo() { + return bundleInfoBuilder_ != null || bundleInfo_ != null; + } + /** + *
+       * Information regarding the bundle in which these events were uploaded.
+       * 
+ * + * .google.events.firebase.analytics.v1.ExportBundleInfo bundle_info = 8; + * @return The bundleInfo. + */ + public google.events.firebase.analytics.v1.Data.ExportBundleInfo getBundleInfo() { + if (bundleInfoBuilder_ == null) { + return bundleInfo_ == null ? google.events.firebase.analytics.v1.Data.ExportBundleInfo.getDefaultInstance() : bundleInfo_; + } else { + return bundleInfoBuilder_.getMessage(); + } + } + /** + *
+       * Information regarding the bundle in which these events were uploaded.
+       * 
+ * + * .google.events.firebase.analytics.v1.ExportBundleInfo bundle_info = 8; + */ + public Builder setBundleInfo(google.events.firebase.analytics.v1.Data.ExportBundleInfo value) { + if (bundleInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + bundleInfo_ = value; + onChanged(); + } else { + bundleInfoBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Information regarding the bundle in which these events were uploaded.
+       * 
+ * + * .google.events.firebase.analytics.v1.ExportBundleInfo bundle_info = 8; + */ + public Builder setBundleInfo( + google.events.firebase.analytics.v1.Data.ExportBundleInfo.Builder builderForValue) { + if (bundleInfoBuilder_ == null) { + bundleInfo_ = builderForValue.build(); + onChanged(); + } else { + bundleInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Information regarding the bundle in which these events were uploaded.
+       * 
+ * + * .google.events.firebase.analytics.v1.ExportBundleInfo bundle_info = 8; + */ + public Builder mergeBundleInfo(google.events.firebase.analytics.v1.Data.ExportBundleInfo value) { + if (bundleInfoBuilder_ == null) { + if (bundleInfo_ != null) { + bundleInfo_ = + google.events.firebase.analytics.v1.Data.ExportBundleInfo.newBuilder(bundleInfo_).mergeFrom(value).buildPartial(); + } else { + bundleInfo_ = value; + } + onChanged(); + } else { + bundleInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Information regarding the bundle in which these events were uploaded.
+       * 
+ * + * .google.events.firebase.analytics.v1.ExportBundleInfo bundle_info = 8; + */ + public Builder clearBundleInfo() { + if (bundleInfoBuilder_ == null) { + bundleInfo_ = null; + onChanged(); + } else { + bundleInfo_ = null; + bundleInfoBuilder_ = null; + } + + return this; + } + /** + *
+       * Information regarding the bundle in which these events were uploaded.
+       * 
+ * + * .google.events.firebase.analytics.v1.ExportBundleInfo bundle_info = 8; + */ + public google.events.firebase.analytics.v1.Data.ExportBundleInfo.Builder getBundleInfoBuilder() { + + onChanged(); + return getBundleInfoFieldBuilder().getBuilder(); + } + /** + *
+       * Information regarding the bundle in which these events were uploaded.
+       * 
+ * + * .google.events.firebase.analytics.v1.ExportBundleInfo bundle_info = 8; + */ + public google.events.firebase.analytics.v1.Data.ExportBundleInfoOrBuilder getBundleInfoOrBuilder() { + if (bundleInfoBuilder_ != null) { + return bundleInfoBuilder_.getMessageOrBuilder(); + } else { + return bundleInfo_ == null ? + google.events.firebase.analytics.v1.Data.ExportBundleInfo.getDefaultInstance() : bundleInfo_; + } + } + /** + *
+       * Information regarding the bundle in which these events were uploaded.
+       * 
+ * + * .google.events.firebase.analytics.v1.ExportBundleInfo bundle_info = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + google.events.firebase.analytics.v1.Data.ExportBundleInfo, google.events.firebase.analytics.v1.Data.ExportBundleInfo.Builder, google.events.firebase.analytics.v1.Data.ExportBundleInfoOrBuilder> + getBundleInfoFieldBuilder() { + if (bundleInfoBuilder_ == null) { + bundleInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + google.events.firebase.analytics.v1.Data.ExportBundleInfo, google.events.firebase.analytics.v1.Data.ExportBundleInfo.Builder, google.events.firebase.analytics.v1.Data.ExportBundleInfoOrBuilder>( + getBundleInfo(), + getParentForChildren(), + isClean()); + bundleInfo_ = null; + } + return bundleInfoBuilder_; + } + + private google.events.firebase.analytics.v1.Data.LtvInfo ltvInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + google.events.firebase.analytics.v1.Data.LtvInfo, google.events.firebase.analytics.v1.Data.LtvInfo.Builder, google.events.firebase.analytics.v1.Data.LtvInfoOrBuilder> ltvInfoBuilder_; + /** + *
+       * Lifetime Value information about this user.
+       * 
+ * + * .google.events.firebase.analytics.v1.LtvInfo ltv_info = 9; + * @return Whether the ltvInfo field is set. + */ + public boolean hasLtvInfo() { + return ltvInfoBuilder_ != null || ltvInfo_ != null; + } + /** + *
+       * Lifetime Value information about this user.
+       * 
+ * + * .google.events.firebase.analytics.v1.LtvInfo ltv_info = 9; + * @return The ltvInfo. + */ + public google.events.firebase.analytics.v1.Data.LtvInfo getLtvInfo() { + if (ltvInfoBuilder_ == null) { + return ltvInfo_ == null ? google.events.firebase.analytics.v1.Data.LtvInfo.getDefaultInstance() : ltvInfo_; + } else { + return ltvInfoBuilder_.getMessage(); + } + } + /** + *
+       * Lifetime Value information about this user.
+       * 
+ * + * .google.events.firebase.analytics.v1.LtvInfo ltv_info = 9; + */ + public Builder setLtvInfo(google.events.firebase.analytics.v1.Data.LtvInfo value) { + if (ltvInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ltvInfo_ = value; + onChanged(); + } else { + ltvInfoBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Lifetime Value information about this user.
+       * 
+ * + * .google.events.firebase.analytics.v1.LtvInfo ltv_info = 9; + */ + public Builder setLtvInfo( + google.events.firebase.analytics.v1.Data.LtvInfo.Builder builderForValue) { + if (ltvInfoBuilder_ == null) { + ltvInfo_ = builderForValue.build(); + onChanged(); + } else { + ltvInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Lifetime Value information about this user.
+       * 
+ * + * .google.events.firebase.analytics.v1.LtvInfo ltv_info = 9; + */ + public Builder mergeLtvInfo(google.events.firebase.analytics.v1.Data.LtvInfo value) { + if (ltvInfoBuilder_ == null) { + if (ltvInfo_ != null) { + ltvInfo_ = + google.events.firebase.analytics.v1.Data.LtvInfo.newBuilder(ltvInfo_).mergeFrom(value).buildPartial(); + } else { + ltvInfo_ = value; + } + onChanged(); + } else { + ltvInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Lifetime Value information about this user.
+       * 
+ * + * .google.events.firebase.analytics.v1.LtvInfo ltv_info = 9; + */ + public Builder clearLtvInfo() { + if (ltvInfoBuilder_ == null) { + ltvInfo_ = null; + onChanged(); + } else { + ltvInfo_ = null; + ltvInfoBuilder_ = null; + } + + return this; + } + /** + *
+       * Lifetime Value information about this user.
+       * 
+ * + * .google.events.firebase.analytics.v1.LtvInfo ltv_info = 9; + */ + public google.events.firebase.analytics.v1.Data.LtvInfo.Builder getLtvInfoBuilder() { + + onChanged(); + return getLtvInfoFieldBuilder().getBuilder(); + } + /** + *
+       * Lifetime Value information about this user.
+       * 
+ * + * .google.events.firebase.analytics.v1.LtvInfo ltv_info = 9; + */ + public google.events.firebase.analytics.v1.Data.LtvInfoOrBuilder getLtvInfoOrBuilder() { + if (ltvInfoBuilder_ != null) { + return ltvInfoBuilder_.getMessageOrBuilder(); + } else { + return ltvInfo_ == null ? + google.events.firebase.analytics.v1.Data.LtvInfo.getDefaultInstance() : ltvInfo_; + } + } + /** + *
+       * Lifetime Value information about this user.
+       * 
+ * + * .google.events.firebase.analytics.v1.LtvInfo ltv_info = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + google.events.firebase.analytics.v1.Data.LtvInfo, google.events.firebase.analytics.v1.Data.LtvInfo.Builder, google.events.firebase.analytics.v1.Data.LtvInfoOrBuilder> + getLtvInfoFieldBuilder() { + if (ltvInfoBuilder_ == null) { + ltvInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + google.events.firebase.analytics.v1.Data.LtvInfo, google.events.firebase.analytics.v1.Data.LtvInfo.Builder, google.events.firebase.analytics.v1.Data.LtvInfoOrBuilder>( + getLtvInfo(), + getParentForChildren(), + isClean()); + ltvInfo_ = null; + } + return ltvInfoBuilder_; + } + @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.firebase.analytics.v1.UserDimensions) + } + + // @@protoc_insertion_point(class_scope:google.events.firebase.analytics.v1.UserDimensions) + private static final google.events.firebase.analytics.v1.Data.UserDimensions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new google.events.firebase.analytics.v1.Data.UserDimensions(); + } + + public static google.events.firebase.analytics.v1.Data.UserDimensions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserDimensions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserDimensions(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.UserDimensions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UserPropertyValueOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.firebase.analytics.v1.UserPropertyValue) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Last set value of user property.
+     * 
+ * + * .google.events.firebase.analytics.v1.AnalyticsValue value = 1; + * @return Whether the value field is set. + */ + boolean hasValue(); + /** + *
+     * Last set value of user property.
+     * 
+ * + * .google.events.firebase.analytics.v1.AnalyticsValue value = 1; + * @return The value. + */ + google.events.firebase.analytics.v1.Data.AnalyticsValue getValue(); + /** + *
+     * Last set value of user property.
+     * 
+ * + * .google.events.firebase.analytics.v1.AnalyticsValue value = 1; + */ + google.events.firebase.analytics.v1.Data.AnalyticsValueOrBuilder getValueOrBuilder(); + + /** + *
+     * UTC client time when user property was last set.
+     * 
+ * + * int64 set_timestamp_usec = 2; + * @return The setTimestampUsec. + */ + long getSetTimestampUsec(); + + /** + *
+     * Index for user property (one-based).
+     * 
+ * + * int32 index = 3; + * @return The index. + */ + int getIndex(); + } + /** + *
+   * Predefined (eg: LTV) or custom properties (eg: birthday) stored on client
+   * side and associated with subsequent HitBundles.
+   * 
+ * + * Protobuf type {@code google.events.firebase.analytics.v1.UserPropertyValue} + */ + public static final class UserPropertyValue extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.firebase.analytics.v1.UserPropertyValue) + UserPropertyValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserPropertyValue.newBuilder() to construct. + private UserPropertyValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UserPropertyValue() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserPropertyValue(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserPropertyValue( + 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.firebase.analytics.v1.Data.AnalyticsValue.Builder subBuilder = null; + if (value_ != null) { + subBuilder = value_.toBuilder(); + } + value_ = input.readMessage(google.events.firebase.analytics.v1.Data.AnalyticsValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(value_); + value_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + setTimestampUsec_ = input.readInt64(); + break; + } + case 24: { + + index_ = input.readInt32(); + 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.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_UserPropertyValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_UserPropertyValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.firebase.analytics.v1.Data.UserPropertyValue.class, google.events.firebase.analytics.v1.Data.UserPropertyValue.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + private google.events.firebase.analytics.v1.Data.AnalyticsValue value_; + /** + *
+     * Last set value of user property.
+     * 
+ * + * .google.events.firebase.analytics.v1.AnalyticsValue value = 1; + * @return Whether the value field is set. + */ + @java.lang.Override + public boolean hasValue() { + return value_ != null; + } + /** + *
+     * Last set value of user property.
+     * 
+ * + * .google.events.firebase.analytics.v1.AnalyticsValue value = 1; + * @return The value. + */ + @java.lang.Override + public google.events.firebase.analytics.v1.Data.AnalyticsValue getValue() { + return value_ == null ? google.events.firebase.analytics.v1.Data.AnalyticsValue.getDefaultInstance() : value_; + } + /** + *
+     * Last set value of user property.
+     * 
+ * + * .google.events.firebase.analytics.v1.AnalyticsValue value = 1; + */ + @java.lang.Override + public google.events.firebase.analytics.v1.Data.AnalyticsValueOrBuilder getValueOrBuilder() { + return getValue(); + } + + public static final int SET_TIMESTAMP_USEC_FIELD_NUMBER = 2; + private long setTimestampUsec_; + /** + *
+     * UTC client time when user property was last set.
+     * 
+ * + * int64 set_timestamp_usec = 2; + * @return The setTimestampUsec. + */ + @java.lang.Override + public long getSetTimestampUsec() { + return setTimestampUsec_; + } + + public static final int INDEX_FIELD_NUMBER = 3; + private int index_; + /** + *
+     * Index for user property (one-based).
+     * 
+ * + * int32 index = 3; + * @return The index. + */ + @java.lang.Override + public int getIndex() { + return index_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (value_ != null) { + output.writeMessage(1, getValue()); + } + if (setTimestampUsec_ != 0L) { + output.writeInt64(2, setTimestampUsec_); + } + if (index_ != 0) { + output.writeInt32(3, index_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (value_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getValue()); + } + if (setTimestampUsec_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, setTimestampUsec_); + } + if (index_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, index_); + } + 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.firebase.analytics.v1.Data.UserPropertyValue)) { + return super.equals(obj); + } + google.events.firebase.analytics.v1.Data.UserPropertyValue other = (google.events.firebase.analytics.v1.Data.UserPropertyValue) obj; + + if (hasValue() != other.hasValue()) return false; + if (hasValue()) { + if (!getValue() + .equals(other.getValue())) return false; + } + if (getSetTimestampUsec() + != other.getSetTimestampUsec()) return false; + if (getIndex() + != other.getIndex()) 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 (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + hash = (37 * hash) + SET_TIMESTAMP_USEC_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSetTimestampUsec()); + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + getIndex(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static google.events.firebase.analytics.v1.Data.UserPropertyValue parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.analytics.v1.Data.UserPropertyValue parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.firebase.analytics.v1.Data.UserPropertyValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.analytics.v1.Data.UserPropertyValue 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.firebase.analytics.v1.Data.UserPropertyValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.analytics.v1.Data.UserPropertyValue parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.firebase.analytics.v1.Data.UserPropertyValue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.firebase.analytics.v1.Data.UserPropertyValue 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.firebase.analytics.v1.Data.UserPropertyValue parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static google.events.firebase.analytics.v1.Data.UserPropertyValue 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.firebase.analytics.v1.Data.UserPropertyValue parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.firebase.analytics.v1.Data.UserPropertyValue 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.firebase.analytics.v1.Data.UserPropertyValue 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; + } + /** + *
+     * Predefined (eg: LTV) or custom properties (eg: birthday) stored on client
+     * side and associated with subsequent HitBundles.
+     * 
+ * + * Protobuf type {@code google.events.firebase.analytics.v1.UserPropertyValue} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.events.firebase.analytics.v1.UserPropertyValue) + google.events.firebase.analytics.v1.Data.UserPropertyValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_UserPropertyValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_UserPropertyValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.firebase.analytics.v1.Data.UserPropertyValue.class, google.events.firebase.analytics.v1.Data.UserPropertyValue.Builder.class); + } + + // Construct using google.events.firebase.analytics.v1.Data.UserPropertyValue.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (valueBuilder_ == null) { + value_ = null; + } else { + value_ = null; + valueBuilder_ = null; + } + setTimestampUsec_ = 0L; + + index_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_UserPropertyValue_descriptor; + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.UserPropertyValue getDefaultInstanceForType() { + return google.events.firebase.analytics.v1.Data.UserPropertyValue.getDefaultInstance(); + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.UserPropertyValue build() { + google.events.firebase.analytics.v1.Data.UserPropertyValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.UserPropertyValue buildPartial() { + google.events.firebase.analytics.v1.Data.UserPropertyValue result = new google.events.firebase.analytics.v1.Data.UserPropertyValue(this); + if (valueBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = valueBuilder_.build(); + } + result.setTimestampUsec_ = setTimestampUsec_; + result.index_ = index_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.events.firebase.analytics.v1.Data.UserPropertyValue) { + return mergeFrom((google.events.firebase.analytics.v1.Data.UserPropertyValue)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(google.events.firebase.analytics.v1.Data.UserPropertyValue other) { + if (other == google.events.firebase.analytics.v1.Data.UserPropertyValue.getDefaultInstance()) return this; + if (other.hasValue()) { + mergeValue(other.getValue()); + } + if (other.getSetTimestampUsec() != 0L) { + setSetTimestampUsec(other.getSetTimestampUsec()); + } + if (other.getIndex() != 0) { + setIndex(other.getIndex()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.events.firebase.analytics.v1.Data.UserPropertyValue parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.events.firebase.analytics.v1.Data.UserPropertyValue) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private google.events.firebase.analytics.v1.Data.AnalyticsValue value_; + private com.google.protobuf.SingleFieldBuilderV3< + google.events.firebase.analytics.v1.Data.AnalyticsValue, google.events.firebase.analytics.v1.Data.AnalyticsValue.Builder, google.events.firebase.analytics.v1.Data.AnalyticsValueOrBuilder> valueBuilder_; + /** + *
+       * Last set value of user property.
+       * 
+ * + * .google.events.firebase.analytics.v1.AnalyticsValue value = 1; + * @return Whether the value field is set. + */ + public boolean hasValue() { + return valueBuilder_ != null || value_ != null; + } + /** + *
+       * Last set value of user property.
+       * 
+ * + * .google.events.firebase.analytics.v1.AnalyticsValue value = 1; + * @return The value. + */ + public google.events.firebase.analytics.v1.Data.AnalyticsValue getValue() { + if (valueBuilder_ == null) { + return value_ == null ? google.events.firebase.analytics.v1.Data.AnalyticsValue.getDefaultInstance() : value_; + } else { + return valueBuilder_.getMessage(); + } + } + /** + *
+       * Last set value of user property.
+       * 
+ * + * .google.events.firebase.analytics.v1.AnalyticsValue value = 1; + */ + public Builder setValue(google.events.firebase.analytics.v1.Data.AnalyticsValue value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + valueBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Last set value of user property.
+       * 
+ * + * .google.events.firebase.analytics.v1.AnalyticsValue value = 1; + */ + public Builder setValue( + google.events.firebase.analytics.v1.Data.AnalyticsValue.Builder builderForValue) { + if (valueBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + valueBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Last set value of user property.
+       * 
+ * + * .google.events.firebase.analytics.v1.AnalyticsValue value = 1; + */ + public Builder mergeValue(google.events.firebase.analytics.v1.Data.AnalyticsValue value) { + if (valueBuilder_ == null) { + if (value_ != null) { + value_ = + google.events.firebase.analytics.v1.Data.AnalyticsValue.newBuilder(value_).mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + valueBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Last set value of user property.
+       * 
+ * + * .google.events.firebase.analytics.v1.AnalyticsValue value = 1; + */ + public Builder clearValue() { + if (valueBuilder_ == null) { + value_ = null; + onChanged(); + } else { + value_ = null; + valueBuilder_ = null; + } + + return this; + } + /** + *
+       * Last set value of user property.
+       * 
+ * + * .google.events.firebase.analytics.v1.AnalyticsValue value = 1; + */ + public google.events.firebase.analytics.v1.Data.AnalyticsValue.Builder getValueBuilder() { + + onChanged(); + return getValueFieldBuilder().getBuilder(); + } + /** + *
+       * Last set value of user property.
+       * 
+ * + * .google.events.firebase.analytics.v1.AnalyticsValue value = 1; + */ + public google.events.firebase.analytics.v1.Data.AnalyticsValueOrBuilder getValueOrBuilder() { + if (valueBuilder_ != null) { + return valueBuilder_.getMessageOrBuilder(); + } else { + return value_ == null ? + google.events.firebase.analytics.v1.Data.AnalyticsValue.getDefaultInstance() : value_; + } + } + /** + *
+       * Last set value of user property.
+       * 
+ * + * .google.events.firebase.analytics.v1.AnalyticsValue value = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + google.events.firebase.analytics.v1.Data.AnalyticsValue, google.events.firebase.analytics.v1.Data.AnalyticsValue.Builder, google.events.firebase.analytics.v1.Data.AnalyticsValueOrBuilder> + getValueFieldBuilder() { + if (valueBuilder_ == null) { + valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + google.events.firebase.analytics.v1.Data.AnalyticsValue, google.events.firebase.analytics.v1.Data.AnalyticsValue.Builder, google.events.firebase.analytics.v1.Data.AnalyticsValueOrBuilder>( + getValue(), + getParentForChildren(), + isClean()); + value_ = null; + } + return valueBuilder_; + } + + private long setTimestampUsec_ ; + /** + *
+       * UTC client time when user property was last set.
+       * 
+ * + * int64 set_timestamp_usec = 2; + * @return The setTimestampUsec. + */ + @java.lang.Override + public long getSetTimestampUsec() { + return setTimestampUsec_; + } + /** + *
+       * UTC client time when user property was last set.
+       * 
+ * + * int64 set_timestamp_usec = 2; + * @param value The setTimestampUsec to set. + * @return This builder for chaining. + */ + public Builder setSetTimestampUsec(long value) { + + setTimestampUsec_ = value; + onChanged(); + return this; + } + /** + *
+       * UTC client time when user property was last set.
+       * 
+ * + * int64 set_timestamp_usec = 2; + * @return This builder for chaining. + */ + public Builder clearSetTimestampUsec() { + + setTimestampUsec_ = 0L; + onChanged(); + return this; + } + + private int index_ ; + /** + *
+       * Index for user property (one-based).
+       * 
+ * + * int32 index = 3; + * @return The index. + */ + @java.lang.Override + public int getIndex() { + return index_; + } + /** + *
+       * Index for user property (one-based).
+       * 
+ * + * int32 index = 3; + * @param value The index to set. + * @return This builder for chaining. + */ + public Builder setIndex(int value) { + + index_ = value; + onChanged(); + return this; + } + /** + *
+       * Index for user property (one-based).
+       * 
+ * + * int32 index = 3; + * @return This builder for chaining. + */ + public Builder clearIndex() { + + index_ = 0; + 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.firebase.analytics.v1.UserPropertyValue) + } + + // @@protoc_insertion_point(class_scope:google.events.firebase.analytics.v1.UserPropertyValue) + private static final google.events.firebase.analytics.v1.Data.UserPropertyValue DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new google.events.firebase.analytics.v1.Data.UserPropertyValue(); + } + + public static google.events.firebase.analytics.v1.Data.UserPropertyValue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserPropertyValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserPropertyValue(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.UserPropertyValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AnalyticsValueOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.firebase.analytics.v1.AnalyticsValue) + com.google.protobuf.MessageOrBuilder { + + /** + * string string_value = 1; + * @return The stringValue. + */ + java.lang.String getStringValue(); + /** + * string string_value = 1; + * @return The bytes for stringValue. + */ + com.google.protobuf.ByteString + getStringValueBytes(); + + /** + * int64 int_value = 2; + * @return The intValue. + */ + long getIntValue(); + + /** + * float float_value = 3; + * @return The floatValue. + */ + float getFloatValue(); + + /** + * double double_value = 4; + * @return The doubleValue. + */ + double getDoubleValue(); + + public google.events.firebase.analytics.v1.Data.AnalyticsValue.ParamValueCase getParamValueCase(); + } + /** + *
+   * Value for Event Params and UserProperty can be of type string or int or
+   * float or double.
+   * 
+ * + * Protobuf type {@code google.events.firebase.analytics.v1.AnalyticsValue} + */ + public static final class AnalyticsValue extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.firebase.analytics.v1.AnalyticsValue) + AnalyticsValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use AnalyticsValue.newBuilder() to construct. + private AnalyticsValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AnalyticsValue() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AnalyticsValue(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AnalyticsValue( + 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(); + paramValueCase_ = 1; + paramValue_ = s; + break; + } + case 16: { + paramValueCase_ = 2; + paramValue_ = input.readInt64(); + break; + } + case 29: { + paramValueCase_ = 3; + paramValue_ = input.readFloat(); + break; + } + case 33: { + paramValueCase_ = 4; + paramValue_ = input.readDouble(); + 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.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_AnalyticsValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_AnalyticsValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.firebase.analytics.v1.Data.AnalyticsValue.class, google.events.firebase.analytics.v1.Data.AnalyticsValue.Builder.class); + } + + private int paramValueCase_ = 0; + private java.lang.Object paramValue_; + public enum ParamValueCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + STRING_VALUE(1), + INT_VALUE(2), + FLOAT_VALUE(3), + DOUBLE_VALUE(4), + PARAMVALUE_NOT_SET(0); + private final int value; + private ParamValueCase(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 ParamValueCase valueOf(int value) { + return forNumber(value); + } + + public static ParamValueCase forNumber(int value) { + switch (value) { + case 1: return STRING_VALUE; + case 2: return INT_VALUE; + case 3: return FLOAT_VALUE; + case 4: return DOUBLE_VALUE; + case 0: return PARAMVALUE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ParamValueCase + getParamValueCase() { + return ParamValueCase.forNumber( + paramValueCase_); + } + + public static final int STRING_VALUE_FIELD_NUMBER = 1; + /** + * string string_value = 1; + * @return The stringValue. + */ + public java.lang.String getStringValue() { + java.lang.Object ref = ""; + if (paramValueCase_ == 1) { + ref = paramValue_; + } + 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 (paramValueCase_ == 1) { + paramValue_ = s; + } + return s; + } + } + /** + * string string_value = 1; + * @return The bytes for stringValue. + */ + public com.google.protobuf.ByteString + getStringValueBytes() { + java.lang.Object ref = ""; + if (paramValueCase_ == 1) { + ref = paramValue_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (paramValueCase_ == 1) { + paramValue_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INT_VALUE_FIELD_NUMBER = 2; + /** + * int64 int_value = 2; + * @return The intValue. + */ + @java.lang.Override + public long getIntValue() { + if (paramValueCase_ == 2) { + return (java.lang.Long) paramValue_; + } + return 0L; + } + + public static final int FLOAT_VALUE_FIELD_NUMBER = 3; + /** + * float float_value = 3; + * @return The floatValue. + */ + @java.lang.Override + public float getFloatValue() { + if (paramValueCase_ == 3) { + return (java.lang.Float) paramValue_; + } + return 0F; + } + + public static final int DOUBLE_VALUE_FIELD_NUMBER = 4; + /** + * double double_value = 4; + * @return The doubleValue. + */ + @java.lang.Override + public double getDoubleValue() { + if (paramValueCase_ == 4) { + return (java.lang.Double) paramValue_; + } + return 0D; + } + + 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 (paramValueCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, paramValue_); + } + if (paramValueCase_ == 2) { + output.writeInt64( + 2, (long)((java.lang.Long) paramValue_)); + } + if (paramValueCase_ == 3) { + output.writeFloat( + 3, (float)((java.lang.Float) paramValue_)); + } + if (paramValueCase_ == 4) { + output.writeDouble( + 4, (double)((java.lang.Double) paramValue_)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (paramValueCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, paramValue_); + } + if (paramValueCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size( + 2, (long)((java.lang.Long) paramValue_)); + } + if (paramValueCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize( + 3, (float)((java.lang.Float) paramValue_)); + } + if (paramValueCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize( + 4, (double)((java.lang.Double) paramValue_)); + } + 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.firebase.analytics.v1.Data.AnalyticsValue)) { + return super.equals(obj); + } + google.events.firebase.analytics.v1.Data.AnalyticsValue other = (google.events.firebase.analytics.v1.Data.AnalyticsValue) obj; + + if (!getParamValueCase().equals(other.getParamValueCase())) return false; + switch (paramValueCase_) { + case 1: + if (!getStringValue() + .equals(other.getStringValue())) return false; + break; + case 2: + if (getIntValue() + != other.getIntValue()) return false; + break; + case 3: + if (java.lang.Float.floatToIntBits(getFloatValue()) + != java.lang.Float.floatToIntBits( + other.getFloatValue())) return false; + break; + case 4: + if (java.lang.Double.doubleToLongBits(getDoubleValue()) + != java.lang.Double.doubleToLongBits( + other.getDoubleValue())) 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 (paramValueCase_) { + case 1: + hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getStringValue().hashCode(); + break; + case 2: + hash = (37 * hash) + INT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIntValue()); + break; + case 3: + hash = (37 * hash) + FLOAT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getFloatValue()); + break; + case 4: + hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDoubleValue())); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static google.events.firebase.analytics.v1.Data.AnalyticsValue parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.analytics.v1.Data.AnalyticsValue parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.firebase.analytics.v1.Data.AnalyticsValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.analytics.v1.Data.AnalyticsValue 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.firebase.analytics.v1.Data.AnalyticsValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.analytics.v1.Data.AnalyticsValue parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.firebase.analytics.v1.Data.AnalyticsValue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.firebase.analytics.v1.Data.AnalyticsValue 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.firebase.analytics.v1.Data.AnalyticsValue parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static google.events.firebase.analytics.v1.Data.AnalyticsValue 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.firebase.analytics.v1.Data.AnalyticsValue parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.firebase.analytics.v1.Data.AnalyticsValue 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.firebase.analytics.v1.Data.AnalyticsValue 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; + } + /** + *
+     * Value for Event Params and UserProperty can be of type string or int or
+     * float or double.
+     * 
+ * + * Protobuf type {@code google.events.firebase.analytics.v1.AnalyticsValue} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.events.firebase.analytics.v1.AnalyticsValue) + google.events.firebase.analytics.v1.Data.AnalyticsValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_AnalyticsValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_AnalyticsValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.firebase.analytics.v1.Data.AnalyticsValue.class, google.events.firebase.analytics.v1.Data.AnalyticsValue.Builder.class); + } + + // Construct using google.events.firebase.analytics.v1.Data.AnalyticsValue.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + paramValueCase_ = 0; + paramValue_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_AnalyticsValue_descriptor; + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.AnalyticsValue getDefaultInstanceForType() { + return google.events.firebase.analytics.v1.Data.AnalyticsValue.getDefaultInstance(); + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.AnalyticsValue build() { + google.events.firebase.analytics.v1.Data.AnalyticsValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.AnalyticsValue buildPartial() { + google.events.firebase.analytics.v1.Data.AnalyticsValue result = new google.events.firebase.analytics.v1.Data.AnalyticsValue(this); + if (paramValueCase_ == 1) { + result.paramValue_ = paramValue_; + } + if (paramValueCase_ == 2) { + result.paramValue_ = paramValue_; + } + if (paramValueCase_ == 3) { + result.paramValue_ = paramValue_; + } + if (paramValueCase_ == 4) { + result.paramValue_ = paramValue_; + } + result.paramValueCase_ = paramValueCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.events.firebase.analytics.v1.Data.AnalyticsValue) { + return mergeFrom((google.events.firebase.analytics.v1.Data.AnalyticsValue)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(google.events.firebase.analytics.v1.Data.AnalyticsValue other) { + if (other == google.events.firebase.analytics.v1.Data.AnalyticsValue.getDefaultInstance()) return this; + switch (other.getParamValueCase()) { + case STRING_VALUE: { + paramValueCase_ = 1; + paramValue_ = other.paramValue_; + onChanged(); + break; + } + case INT_VALUE: { + setIntValue(other.getIntValue()); + break; + } + case FLOAT_VALUE: { + setFloatValue(other.getFloatValue()); + break; + } + case DOUBLE_VALUE: { + setDoubleValue(other.getDoubleValue()); + break; + } + case PARAMVALUE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.events.firebase.analytics.v1.Data.AnalyticsValue parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.events.firebase.analytics.v1.Data.AnalyticsValue) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int paramValueCase_ = 0; + private java.lang.Object paramValue_; + public ParamValueCase + getParamValueCase() { + return ParamValueCase.forNumber( + paramValueCase_); + } + + public Builder clearParamValue() { + paramValueCase_ = 0; + paramValue_ = null; + onChanged(); + return this; + } + + + /** + * string string_value = 1; + * @return The stringValue. + */ + @java.lang.Override + public java.lang.String getStringValue() { + java.lang.Object ref = ""; + if (paramValueCase_ == 1) { + ref = paramValue_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (paramValueCase_ == 1) { + paramValue_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string string_value = 1; + * @return The bytes for stringValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getStringValueBytes() { + java.lang.Object ref = ""; + if (paramValueCase_ == 1) { + ref = paramValue_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (paramValueCase_ == 1) { + paramValue_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string string_value = 1; + * @param value The stringValue to set. + * @return This builder for chaining. + */ + public Builder setStringValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + paramValueCase_ = 1; + paramValue_ = value; + onChanged(); + return this; + } + /** + * string string_value = 1; + * @return This builder for chaining. + */ + public Builder clearStringValue() { + if (paramValueCase_ == 1) { + paramValueCase_ = 0; + paramValue_ = null; + onChanged(); + } + return this; + } + /** + * string string_value = 1; + * @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); + paramValueCase_ = 1; + paramValue_ = value; + onChanged(); + return this; + } + + /** + * int64 int_value = 2; + * @return The intValue. + */ + public long getIntValue() { + if (paramValueCase_ == 2) { + return (java.lang.Long) paramValue_; + } + return 0L; + } + /** + * int64 int_value = 2; + * @param value The intValue to set. + * @return This builder for chaining. + */ + public Builder setIntValue(long value) { + paramValueCase_ = 2; + paramValue_ = value; + onChanged(); + return this; + } + /** + * int64 int_value = 2; + * @return This builder for chaining. + */ + public Builder clearIntValue() { + if (paramValueCase_ == 2) { + paramValueCase_ = 0; + paramValue_ = null; + onChanged(); + } + return this; + } + + /** + * float float_value = 3; + * @return The floatValue. + */ + public float getFloatValue() { + if (paramValueCase_ == 3) { + return (java.lang.Float) paramValue_; + } + return 0F; + } + /** + * float float_value = 3; + * @param value The floatValue to set. + * @return This builder for chaining. + */ + public Builder setFloatValue(float value) { + paramValueCase_ = 3; + paramValue_ = value; + onChanged(); + return this; + } + /** + * float float_value = 3; + * @return This builder for chaining. + */ + public Builder clearFloatValue() { + if (paramValueCase_ == 3) { + paramValueCase_ = 0; + paramValue_ = null; + onChanged(); + } + return this; + } + + /** + * double double_value = 4; + * @return The doubleValue. + */ + public double getDoubleValue() { + if (paramValueCase_ == 4) { + return (java.lang.Double) paramValue_; + } + return 0D; + } + /** + * double double_value = 4; + * @param value The doubleValue to set. + * @return This builder for chaining. + */ + public Builder setDoubleValue(double value) { + paramValueCase_ = 4; + paramValue_ = value; + onChanged(); + return this; + } + /** + * double double_value = 4; + * @return This builder for chaining. + */ + public Builder clearDoubleValue() { + if (paramValueCase_ == 4) { + paramValueCase_ = 0; + paramValue_ = null; + 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.firebase.analytics.v1.AnalyticsValue) + } + + // @@protoc_insertion_point(class_scope:google.events.firebase.analytics.v1.AnalyticsValue) + private static final google.events.firebase.analytics.v1.Data.AnalyticsValue DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new google.events.firebase.analytics.v1.Data.AnalyticsValue(); + } + + public static google.events.firebase.analytics.v1.Data.AnalyticsValue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnalyticsValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnalyticsValue(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.AnalyticsValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeviceInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.firebase.analytics.v1.DeviceInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Device category.
+     * Eg. tablet or mobile.
+     * 
+ * + * string device_category = 1; + * @return The deviceCategory. + */ + java.lang.String getDeviceCategory(); + /** + *
+     * Device category.
+     * Eg. tablet or mobile.
+     * 
+ * + * string device_category = 1; + * @return The bytes for deviceCategory. + */ + com.google.protobuf.ByteString + getDeviceCategoryBytes(); + + /** + *
+     * Device brand name.
+     * Eg. Samsung, HTC, etc.
+     * 
+ * + * string mobile_brand_name = 2; + * @return The mobileBrandName. + */ + java.lang.String getMobileBrandName(); + /** + *
+     * Device brand name.
+     * Eg. Samsung, HTC, etc.
+     * 
+ * + * string mobile_brand_name = 2; + * @return The bytes for mobileBrandName. + */ + com.google.protobuf.ByteString + getMobileBrandNameBytes(); + + /** + *
+     * Device model name.
+     * Eg. GT-I9192
+     * 
+ * + * string mobile_model_name = 3; + * @return The mobileModelName. + */ + java.lang.String getMobileModelName(); + /** + *
+     * Device model name.
+     * Eg. GT-I9192
+     * 
+ * + * string mobile_model_name = 3; + * @return The bytes for mobileModelName. + */ + com.google.protobuf.ByteString + getMobileModelNameBytes(); + + /** + *
+     * Device marketing name.
+     * Eg. Galaxy S4 Mini
+     * 
+ * + * string mobile_marketing_name = 4; + * @return The mobileMarketingName. + */ + java.lang.String getMobileMarketingName(); + /** + *
+     * Device marketing name.
+     * Eg. Galaxy S4 Mini
+     * 
+ * + * string mobile_marketing_name = 4; + * @return The bytes for mobileMarketingName. + */ + com.google.protobuf.ByteString + getMobileMarketingNameBytes(); + + /** + *
+     * Device model.
+     * Eg. GT-I9192
+     * 
+ * + * string device_model = 12; + * @return The deviceModel. + */ + java.lang.String getDeviceModel(); + /** + *
+     * Device model.
+     * Eg. GT-I9192
+     * 
+ * + * string device_model = 12; + * @return The bytes for deviceModel. + */ + com.google.protobuf.ByteString + getDeviceModelBytes(); + + /** + *
+     * Device OS version when data capture ended.
+     * Eg. 4.4.2
+     * 
+ * + * string platform_version = 6; + * @return The platformVersion. + */ + java.lang.String getPlatformVersion(); + /** + *
+     * Device OS version when data capture ended.
+     * Eg. 4.4.2
+     * 
+ * + * string platform_version = 6; + * @return The bytes for platformVersion. + */ + com.google.protobuf.ByteString + getPlatformVersionBytes(); + + /** + *
+     * Vendor specific device identifier. This is IDFV on iOS. Not used for
+     * Android.
+     * Example: "599F9C00-92DC-4B5C-9464-7971F01F8370"
+     * 
+ * + * string device_id = 7; + * @return The deviceId. + */ + java.lang.String getDeviceId(); + /** + *
+     * Vendor specific device identifier. This is IDFV on iOS. Not used for
+     * Android.
+     * Example: "599F9C00-92DC-4B5C-9464-7971F01F8370"
+     * 
+ * + * string device_id = 7; + * @return The bytes for deviceId. + */ + com.google.protobuf.ByteString + getDeviceIdBytes(); + + /** + *
+     * The type of the resettable_device_id is always IDFA on iOS and AdId
+     * on Android.
+     * Example: "71683BF9-FA3B-4B0D-9535-A1F05188BAF3"
+     * 
+ * + * string resettable_device_id = 8; + * @return The resettableDeviceId. + */ + java.lang.String getResettableDeviceId(); + /** + *
+     * The type of the resettable_device_id is always IDFA on iOS and AdId
+     * on Android.
+     * Example: "71683BF9-FA3B-4B0D-9535-A1F05188BAF3"
+     * 
+ * + * string resettable_device_id = 8; + * @return The bytes for resettableDeviceId. + */ + com.google.protobuf.ByteString + getResettableDeviceIdBytes(); + + /** + *
+     * The user language.
+     * Eg. "en-us", "en-za", "zh-tw", "jp"
+     * 
+ * + * string user_default_language = 9; + * @return The userDefaultLanguage. + */ + java.lang.String getUserDefaultLanguage(); + /** + *
+     * The user language.
+     * Eg. "en-us", "en-za", "zh-tw", "jp"
+     * 
+ * + * string user_default_language = 9; + * @return The bytes for userDefaultLanguage. + */ + com.google.protobuf.ByteString + getUserDefaultLanguageBytes(); + + /** + *
+     * The timezone of the device when data was uploaded as seconds skew from UTC.
+     * 
+ * + * int32 device_time_zone_offset_seconds = 10; + * @return The deviceTimeZoneOffsetSeconds. + */ + int getDeviceTimeZoneOffsetSeconds(); + + /** + *
+     * The device's Limit Ad Tracking setting.
+     * When true, we cannot use device_id for remarketing, demographics or
+     * influencing ads serving behaviour. However, we can use device_id for
+     * conversion tracking and campaign attribution.
+     * 
+ * + * bool limited_ad_tracking = 11; + * @return The limitedAdTracking. + */ + boolean getLimitedAdTracking(); + } + /** + *
+   * Message containing device informations.
+   * 
+ * + * Protobuf type {@code google.events.firebase.analytics.v1.DeviceInfo} + */ + public static final class DeviceInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.firebase.analytics.v1.DeviceInfo) + DeviceInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeviceInfo.newBuilder() to construct. + private DeviceInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeviceInfo() { + deviceCategory_ = ""; + mobileBrandName_ = ""; + mobileModelName_ = ""; + mobileMarketingName_ = ""; + deviceModel_ = ""; + platformVersion_ = ""; + deviceId_ = ""; + resettableDeviceId_ = ""; + userDefaultLanguage_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeviceInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeviceInfo( + 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(); + + deviceCategory_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + mobileBrandName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + mobileModelName_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + mobileMarketingName_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + platformVersion_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + deviceId_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + resettableDeviceId_ = s; + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + userDefaultLanguage_ = s; + break; + } + case 80: { + + deviceTimeZoneOffsetSeconds_ = input.readInt32(); + break; + } + case 88: { + + limitedAdTracking_ = input.readBool(); + break; + } + case 98: { + java.lang.String s = input.readStringRequireUtf8(); + + deviceModel_ = 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.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_DeviceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_DeviceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.firebase.analytics.v1.Data.DeviceInfo.class, google.events.firebase.analytics.v1.Data.DeviceInfo.Builder.class); + } + + public static final int DEVICE_CATEGORY_FIELD_NUMBER = 1; + private volatile java.lang.Object deviceCategory_; + /** + *
+     * Device category.
+     * Eg. tablet or mobile.
+     * 
+ * + * string device_category = 1; + * @return The deviceCategory. + */ + @java.lang.Override + public java.lang.String getDeviceCategory() { + java.lang.Object ref = deviceCategory_; + 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(); + deviceCategory_ = s; + return s; + } + } + /** + *
+     * Device category.
+     * Eg. tablet or mobile.
+     * 
+ * + * string device_category = 1; + * @return The bytes for deviceCategory. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDeviceCategoryBytes() { + java.lang.Object ref = deviceCategory_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deviceCategory_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MOBILE_BRAND_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object mobileBrandName_; + /** + *
+     * Device brand name.
+     * Eg. Samsung, HTC, etc.
+     * 
+ * + * string mobile_brand_name = 2; + * @return The mobileBrandName. + */ + @java.lang.Override + public java.lang.String getMobileBrandName() { + java.lang.Object ref = mobileBrandName_; + 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(); + mobileBrandName_ = s; + return s; + } + } + /** + *
+     * Device brand name.
+     * Eg. Samsung, HTC, etc.
+     * 
+ * + * string mobile_brand_name = 2; + * @return The bytes for mobileBrandName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMobileBrandNameBytes() { + java.lang.Object ref = mobileBrandName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + mobileBrandName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MOBILE_MODEL_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object mobileModelName_; + /** + *
+     * Device model name.
+     * Eg. GT-I9192
+     * 
+ * + * string mobile_model_name = 3; + * @return The mobileModelName. + */ + @java.lang.Override + public java.lang.String getMobileModelName() { + java.lang.Object ref = mobileModelName_; + 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(); + mobileModelName_ = s; + return s; + } + } + /** + *
+     * Device model name.
+     * Eg. GT-I9192
+     * 
+ * + * string mobile_model_name = 3; + * @return The bytes for mobileModelName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMobileModelNameBytes() { + java.lang.Object ref = mobileModelName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + mobileModelName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MOBILE_MARKETING_NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object mobileMarketingName_; + /** + *
+     * Device marketing name.
+     * Eg. Galaxy S4 Mini
+     * 
+ * + * string mobile_marketing_name = 4; + * @return The mobileMarketingName. + */ + @java.lang.Override + public java.lang.String getMobileMarketingName() { + java.lang.Object ref = mobileMarketingName_; + 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(); + mobileMarketingName_ = s; + return s; + } + } + /** + *
+     * Device marketing name.
+     * Eg. Galaxy S4 Mini
+     * 
+ * + * string mobile_marketing_name = 4; + * @return The bytes for mobileMarketingName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMobileMarketingNameBytes() { + java.lang.Object ref = mobileMarketingName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + mobileMarketingName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEVICE_MODEL_FIELD_NUMBER = 12; + private volatile java.lang.Object deviceModel_; + /** + *
+     * Device model.
+     * Eg. GT-I9192
+     * 
+ * + * string device_model = 12; + * @return The deviceModel. + */ + @java.lang.Override + public java.lang.String getDeviceModel() { + java.lang.Object ref = deviceModel_; + 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(); + deviceModel_ = s; + return s; + } + } + /** + *
+     * Device model.
+     * Eg. GT-I9192
+     * 
+ * + * string device_model = 12; + * @return The bytes for deviceModel. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDeviceModelBytes() { + java.lang.Object ref = deviceModel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deviceModel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PLATFORM_VERSION_FIELD_NUMBER = 6; + private volatile java.lang.Object platformVersion_; + /** + *
+     * Device OS version when data capture ended.
+     * Eg. 4.4.2
+     * 
+ * + * string platform_version = 6; + * @return The platformVersion. + */ + @java.lang.Override + public java.lang.String getPlatformVersion() { + java.lang.Object ref = platformVersion_; + 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(); + platformVersion_ = s; + return s; + } + } + /** + *
+     * Device OS version when data capture ended.
+     * Eg. 4.4.2
+     * 
+ * + * string platform_version = 6; + * @return The bytes for platformVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPlatformVersionBytes() { + java.lang.Object ref = platformVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + platformVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEVICE_ID_FIELD_NUMBER = 7; + private volatile java.lang.Object deviceId_; + /** + *
+     * Vendor specific device identifier. This is IDFV on iOS. Not used for
+     * Android.
+     * Example: "599F9C00-92DC-4B5C-9464-7971F01F8370"
+     * 
+ * + * string device_id = 7; + * @return The deviceId. + */ + @java.lang.Override + public java.lang.String getDeviceId() { + java.lang.Object ref = deviceId_; + 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(); + deviceId_ = s; + return s; + } + } + /** + *
+     * Vendor specific device identifier. This is IDFV on iOS. Not used for
+     * Android.
+     * Example: "599F9C00-92DC-4B5C-9464-7971F01F8370"
+     * 
+ * + * string device_id = 7; + * @return The bytes for deviceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDeviceIdBytes() { + java.lang.Object ref = deviceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deviceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESETTABLE_DEVICE_ID_FIELD_NUMBER = 8; + private volatile java.lang.Object resettableDeviceId_; + /** + *
+     * The type of the resettable_device_id is always IDFA on iOS and AdId
+     * on Android.
+     * Example: "71683BF9-FA3B-4B0D-9535-A1F05188BAF3"
+     * 
+ * + * string resettable_device_id = 8; + * @return The resettableDeviceId. + */ + @java.lang.Override + public java.lang.String getResettableDeviceId() { + java.lang.Object ref = resettableDeviceId_; + 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(); + resettableDeviceId_ = s; + return s; + } + } + /** + *
+     * The type of the resettable_device_id is always IDFA on iOS and AdId
+     * on Android.
+     * Example: "71683BF9-FA3B-4B0D-9535-A1F05188BAF3"
+     * 
+ * + * string resettable_device_id = 8; + * @return The bytes for resettableDeviceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getResettableDeviceIdBytes() { + java.lang.Object ref = resettableDeviceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resettableDeviceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_DEFAULT_LANGUAGE_FIELD_NUMBER = 9; + private volatile java.lang.Object userDefaultLanguage_; + /** + *
+     * The user language.
+     * Eg. "en-us", "en-za", "zh-tw", "jp"
+     * 
+ * + * string user_default_language = 9; + * @return The userDefaultLanguage. + */ + @java.lang.Override + public java.lang.String getUserDefaultLanguage() { + java.lang.Object ref = userDefaultLanguage_; + 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(); + userDefaultLanguage_ = s; + return s; + } + } + /** + *
+     * The user language.
+     * Eg. "en-us", "en-za", "zh-tw", "jp"
+     * 
+ * + * string user_default_language = 9; + * @return The bytes for userDefaultLanguage. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUserDefaultLanguageBytes() { + java.lang.Object ref = userDefaultLanguage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userDefaultLanguage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEVICE_TIME_ZONE_OFFSET_SECONDS_FIELD_NUMBER = 10; + private int deviceTimeZoneOffsetSeconds_; + /** + *
+     * The timezone of the device when data was uploaded as seconds skew from UTC.
+     * 
+ * + * int32 device_time_zone_offset_seconds = 10; + * @return The deviceTimeZoneOffsetSeconds. + */ + @java.lang.Override + public int getDeviceTimeZoneOffsetSeconds() { + return deviceTimeZoneOffsetSeconds_; + } + + public static final int LIMITED_AD_TRACKING_FIELD_NUMBER = 11; + private boolean limitedAdTracking_; + /** + *
+     * The device's Limit Ad Tracking setting.
+     * When true, we cannot use device_id for remarketing, demographics or
+     * influencing ads serving behaviour. However, we can use device_id for
+     * conversion tracking and campaign attribution.
+     * 
+ * + * bool limited_ad_tracking = 11; + * @return The limitedAdTracking. + */ + @java.lang.Override + public boolean getLimitedAdTracking() { + return limitedAdTracking_; + } + + 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 (!getDeviceCategoryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deviceCategory_); + } + if (!getMobileBrandNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, mobileBrandName_); + } + if (!getMobileModelNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mobileModelName_); + } + if (!getMobileMarketingNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, mobileMarketingName_); + } + if (!getPlatformVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, platformVersion_); + } + if (!getDeviceIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, deviceId_); + } + if (!getResettableDeviceIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, resettableDeviceId_); + } + if (!getUserDefaultLanguageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, userDefaultLanguage_); + } + if (deviceTimeZoneOffsetSeconds_ != 0) { + output.writeInt32(10, deviceTimeZoneOffsetSeconds_); + } + if (limitedAdTracking_ != false) { + output.writeBool(11, limitedAdTracking_); + } + if (!getDeviceModelBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, deviceModel_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDeviceCategoryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deviceCategory_); + } + if (!getMobileBrandNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mobileBrandName_); + } + if (!getMobileModelNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mobileModelName_); + } + if (!getMobileMarketingNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, mobileMarketingName_); + } + if (!getPlatformVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, platformVersion_); + } + if (!getDeviceIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, deviceId_); + } + if (!getResettableDeviceIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, resettableDeviceId_); + } + if (!getUserDefaultLanguageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, userDefaultLanguage_); + } + if (deviceTimeZoneOffsetSeconds_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(10, deviceTimeZoneOffsetSeconds_); + } + if (limitedAdTracking_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(11, limitedAdTracking_); + } + if (!getDeviceModelBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, deviceModel_); + } + 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.firebase.analytics.v1.Data.DeviceInfo)) { + return super.equals(obj); + } + google.events.firebase.analytics.v1.Data.DeviceInfo other = (google.events.firebase.analytics.v1.Data.DeviceInfo) obj; + + if (!getDeviceCategory() + .equals(other.getDeviceCategory())) return false; + if (!getMobileBrandName() + .equals(other.getMobileBrandName())) return false; + if (!getMobileModelName() + .equals(other.getMobileModelName())) return false; + if (!getMobileMarketingName() + .equals(other.getMobileMarketingName())) return false; + if (!getDeviceModel() + .equals(other.getDeviceModel())) return false; + if (!getPlatformVersion() + .equals(other.getPlatformVersion())) return false; + if (!getDeviceId() + .equals(other.getDeviceId())) return false; + if (!getResettableDeviceId() + .equals(other.getResettableDeviceId())) return false; + if (!getUserDefaultLanguage() + .equals(other.getUserDefaultLanguage())) return false; + if (getDeviceTimeZoneOffsetSeconds() + != other.getDeviceTimeZoneOffsetSeconds()) return false; + if (getLimitedAdTracking() + != other.getLimitedAdTracking()) 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) + DEVICE_CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + getDeviceCategory().hashCode(); + hash = (37 * hash) + MOBILE_BRAND_NAME_FIELD_NUMBER; + hash = (53 * hash) + getMobileBrandName().hashCode(); + hash = (37 * hash) + MOBILE_MODEL_NAME_FIELD_NUMBER; + hash = (53 * hash) + getMobileModelName().hashCode(); + hash = (37 * hash) + MOBILE_MARKETING_NAME_FIELD_NUMBER; + hash = (53 * hash) + getMobileMarketingName().hashCode(); + hash = (37 * hash) + DEVICE_MODEL_FIELD_NUMBER; + hash = (53 * hash) + getDeviceModel().hashCode(); + hash = (37 * hash) + PLATFORM_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getPlatformVersion().hashCode(); + hash = (37 * hash) + DEVICE_ID_FIELD_NUMBER; + hash = (53 * hash) + getDeviceId().hashCode(); + hash = (37 * hash) + RESETTABLE_DEVICE_ID_FIELD_NUMBER; + hash = (53 * hash) + getResettableDeviceId().hashCode(); + hash = (37 * hash) + USER_DEFAULT_LANGUAGE_FIELD_NUMBER; + hash = (53 * hash) + getUserDefaultLanguage().hashCode(); + hash = (37 * hash) + DEVICE_TIME_ZONE_OFFSET_SECONDS_FIELD_NUMBER; + hash = (53 * hash) + getDeviceTimeZoneOffsetSeconds(); + hash = (37 * hash) + LIMITED_AD_TRACKING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getLimitedAdTracking()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static google.events.firebase.analytics.v1.Data.DeviceInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.analytics.v1.Data.DeviceInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.firebase.analytics.v1.Data.DeviceInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.analytics.v1.Data.DeviceInfo 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.firebase.analytics.v1.Data.DeviceInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.analytics.v1.Data.DeviceInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.firebase.analytics.v1.Data.DeviceInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.firebase.analytics.v1.Data.DeviceInfo 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.firebase.analytics.v1.Data.DeviceInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static google.events.firebase.analytics.v1.Data.DeviceInfo 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.firebase.analytics.v1.Data.DeviceInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.firebase.analytics.v1.Data.DeviceInfo 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.firebase.analytics.v1.Data.DeviceInfo 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; + } + /** + *
+     * Message containing device informations.
+     * 
+ * + * Protobuf type {@code google.events.firebase.analytics.v1.DeviceInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.events.firebase.analytics.v1.DeviceInfo) + google.events.firebase.analytics.v1.Data.DeviceInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_DeviceInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_DeviceInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.firebase.analytics.v1.Data.DeviceInfo.class, google.events.firebase.analytics.v1.Data.DeviceInfo.Builder.class); + } + + // Construct using google.events.firebase.analytics.v1.Data.DeviceInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + deviceCategory_ = ""; + + mobileBrandName_ = ""; + + mobileModelName_ = ""; + + mobileMarketingName_ = ""; + + deviceModel_ = ""; + + platformVersion_ = ""; + + deviceId_ = ""; + + resettableDeviceId_ = ""; + + userDefaultLanguage_ = ""; + + deviceTimeZoneOffsetSeconds_ = 0; + + limitedAdTracking_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_DeviceInfo_descriptor; + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.DeviceInfo getDefaultInstanceForType() { + return google.events.firebase.analytics.v1.Data.DeviceInfo.getDefaultInstance(); + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.DeviceInfo build() { + google.events.firebase.analytics.v1.Data.DeviceInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.DeviceInfo buildPartial() { + google.events.firebase.analytics.v1.Data.DeviceInfo result = new google.events.firebase.analytics.v1.Data.DeviceInfo(this); + result.deviceCategory_ = deviceCategory_; + result.mobileBrandName_ = mobileBrandName_; + result.mobileModelName_ = mobileModelName_; + result.mobileMarketingName_ = mobileMarketingName_; + result.deviceModel_ = deviceModel_; + result.platformVersion_ = platformVersion_; + result.deviceId_ = deviceId_; + result.resettableDeviceId_ = resettableDeviceId_; + result.userDefaultLanguage_ = userDefaultLanguage_; + result.deviceTimeZoneOffsetSeconds_ = deviceTimeZoneOffsetSeconds_; + result.limitedAdTracking_ = limitedAdTracking_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.events.firebase.analytics.v1.Data.DeviceInfo) { + return mergeFrom((google.events.firebase.analytics.v1.Data.DeviceInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(google.events.firebase.analytics.v1.Data.DeviceInfo other) { + if (other == google.events.firebase.analytics.v1.Data.DeviceInfo.getDefaultInstance()) return this; + if (!other.getDeviceCategory().isEmpty()) { + deviceCategory_ = other.deviceCategory_; + onChanged(); + } + if (!other.getMobileBrandName().isEmpty()) { + mobileBrandName_ = other.mobileBrandName_; + onChanged(); + } + if (!other.getMobileModelName().isEmpty()) { + mobileModelName_ = other.mobileModelName_; + onChanged(); + } + if (!other.getMobileMarketingName().isEmpty()) { + mobileMarketingName_ = other.mobileMarketingName_; + onChanged(); + } + if (!other.getDeviceModel().isEmpty()) { + deviceModel_ = other.deviceModel_; + onChanged(); + } + if (!other.getPlatformVersion().isEmpty()) { + platformVersion_ = other.platformVersion_; + onChanged(); + } + if (!other.getDeviceId().isEmpty()) { + deviceId_ = other.deviceId_; + onChanged(); + } + if (!other.getResettableDeviceId().isEmpty()) { + resettableDeviceId_ = other.resettableDeviceId_; + onChanged(); + } + if (!other.getUserDefaultLanguage().isEmpty()) { + userDefaultLanguage_ = other.userDefaultLanguage_; + onChanged(); + } + if (other.getDeviceTimeZoneOffsetSeconds() != 0) { + setDeviceTimeZoneOffsetSeconds(other.getDeviceTimeZoneOffsetSeconds()); + } + if (other.getLimitedAdTracking() != false) { + setLimitedAdTracking(other.getLimitedAdTracking()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.events.firebase.analytics.v1.Data.DeviceInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.events.firebase.analytics.v1.Data.DeviceInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object deviceCategory_ = ""; + /** + *
+       * Device category.
+       * Eg. tablet or mobile.
+       * 
+ * + * string device_category = 1; + * @return The deviceCategory. + */ + public java.lang.String getDeviceCategory() { + java.lang.Object ref = deviceCategory_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deviceCategory_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Device category.
+       * Eg. tablet or mobile.
+       * 
+ * + * string device_category = 1; + * @return The bytes for deviceCategory. + */ + public com.google.protobuf.ByteString + getDeviceCategoryBytes() { + java.lang.Object ref = deviceCategory_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deviceCategory_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Device category.
+       * Eg. tablet or mobile.
+       * 
+ * + * string device_category = 1; + * @param value The deviceCategory to set. + * @return This builder for chaining. + */ + public Builder setDeviceCategory( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + deviceCategory_ = value; + onChanged(); + return this; + } + /** + *
+       * Device category.
+       * Eg. tablet or mobile.
+       * 
+ * + * string device_category = 1; + * @return This builder for chaining. + */ + public Builder clearDeviceCategory() { + + deviceCategory_ = getDefaultInstance().getDeviceCategory(); + onChanged(); + return this; + } + /** + *
+       * Device category.
+       * Eg. tablet or mobile.
+       * 
+ * + * string device_category = 1; + * @param value The bytes for deviceCategory to set. + * @return This builder for chaining. + */ + public Builder setDeviceCategoryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + deviceCategory_ = value; + onChanged(); + return this; + } + + private java.lang.Object mobileBrandName_ = ""; + /** + *
+       * Device brand name.
+       * Eg. Samsung, HTC, etc.
+       * 
+ * + * string mobile_brand_name = 2; + * @return The mobileBrandName. + */ + public java.lang.String getMobileBrandName() { + java.lang.Object ref = mobileBrandName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mobileBrandName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Device brand name.
+       * Eg. Samsung, HTC, etc.
+       * 
+ * + * string mobile_brand_name = 2; + * @return The bytes for mobileBrandName. + */ + public com.google.protobuf.ByteString + getMobileBrandNameBytes() { + java.lang.Object ref = mobileBrandName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + mobileBrandName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Device brand name.
+       * Eg. Samsung, HTC, etc.
+       * 
+ * + * string mobile_brand_name = 2; + * @param value The mobileBrandName to set. + * @return This builder for chaining. + */ + public Builder setMobileBrandName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + mobileBrandName_ = value; + onChanged(); + return this; + } + /** + *
+       * Device brand name.
+       * Eg. Samsung, HTC, etc.
+       * 
+ * + * string mobile_brand_name = 2; + * @return This builder for chaining. + */ + public Builder clearMobileBrandName() { + + mobileBrandName_ = getDefaultInstance().getMobileBrandName(); + onChanged(); + return this; + } + /** + *
+       * Device brand name.
+       * Eg. Samsung, HTC, etc.
+       * 
+ * + * string mobile_brand_name = 2; + * @param value The bytes for mobileBrandName to set. + * @return This builder for chaining. + */ + public Builder setMobileBrandNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + mobileBrandName_ = value; + onChanged(); + return this; + } + + private java.lang.Object mobileModelName_ = ""; + /** + *
+       * Device model name.
+       * Eg. GT-I9192
+       * 
+ * + * string mobile_model_name = 3; + * @return The mobileModelName. + */ + public java.lang.String getMobileModelName() { + java.lang.Object ref = mobileModelName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mobileModelName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Device model name.
+       * Eg. GT-I9192
+       * 
+ * + * string mobile_model_name = 3; + * @return The bytes for mobileModelName. + */ + public com.google.protobuf.ByteString + getMobileModelNameBytes() { + java.lang.Object ref = mobileModelName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + mobileModelName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Device model name.
+       * Eg. GT-I9192
+       * 
+ * + * string mobile_model_name = 3; + * @param value The mobileModelName to set. + * @return This builder for chaining. + */ + public Builder setMobileModelName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + mobileModelName_ = value; + onChanged(); + return this; + } + /** + *
+       * Device model name.
+       * Eg. GT-I9192
+       * 
+ * + * string mobile_model_name = 3; + * @return This builder for chaining. + */ + public Builder clearMobileModelName() { + + mobileModelName_ = getDefaultInstance().getMobileModelName(); + onChanged(); + return this; + } + /** + *
+       * Device model name.
+       * Eg. GT-I9192
+       * 
+ * + * string mobile_model_name = 3; + * @param value The bytes for mobileModelName to set. + * @return This builder for chaining. + */ + public Builder setMobileModelNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + mobileModelName_ = value; + onChanged(); + return this; + } + + private java.lang.Object mobileMarketingName_ = ""; + /** + *
+       * Device marketing name.
+       * Eg. Galaxy S4 Mini
+       * 
+ * + * string mobile_marketing_name = 4; + * @return The mobileMarketingName. + */ + public java.lang.String getMobileMarketingName() { + java.lang.Object ref = mobileMarketingName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mobileMarketingName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Device marketing name.
+       * Eg. Galaxy S4 Mini
+       * 
+ * + * string mobile_marketing_name = 4; + * @return The bytes for mobileMarketingName. + */ + public com.google.protobuf.ByteString + getMobileMarketingNameBytes() { + java.lang.Object ref = mobileMarketingName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + mobileMarketingName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Device marketing name.
+       * Eg. Galaxy S4 Mini
+       * 
+ * + * string mobile_marketing_name = 4; + * @param value The mobileMarketingName to set. + * @return This builder for chaining. + */ + public Builder setMobileMarketingName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + mobileMarketingName_ = value; + onChanged(); + return this; + } + /** + *
+       * Device marketing name.
+       * Eg. Galaxy S4 Mini
+       * 
+ * + * string mobile_marketing_name = 4; + * @return This builder for chaining. + */ + public Builder clearMobileMarketingName() { + + mobileMarketingName_ = getDefaultInstance().getMobileMarketingName(); + onChanged(); + return this; + } + /** + *
+       * Device marketing name.
+       * Eg. Galaxy S4 Mini
+       * 
+ * + * string mobile_marketing_name = 4; + * @param value The bytes for mobileMarketingName to set. + * @return This builder for chaining. + */ + public Builder setMobileMarketingNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + mobileMarketingName_ = value; + onChanged(); + return this; + } + + private java.lang.Object deviceModel_ = ""; + /** + *
+       * Device model.
+       * Eg. GT-I9192
+       * 
+ * + * string device_model = 12; + * @return The deviceModel. + */ + public java.lang.String getDeviceModel() { + java.lang.Object ref = deviceModel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deviceModel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Device model.
+       * Eg. GT-I9192
+       * 
+ * + * string device_model = 12; + * @return The bytes for deviceModel. + */ + public com.google.protobuf.ByteString + getDeviceModelBytes() { + java.lang.Object ref = deviceModel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deviceModel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Device model.
+       * Eg. GT-I9192
+       * 
+ * + * string device_model = 12; + * @param value The deviceModel to set. + * @return This builder for chaining. + */ + public Builder setDeviceModel( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + deviceModel_ = value; + onChanged(); + return this; + } + /** + *
+       * Device model.
+       * Eg. GT-I9192
+       * 
+ * + * string device_model = 12; + * @return This builder for chaining. + */ + public Builder clearDeviceModel() { + + deviceModel_ = getDefaultInstance().getDeviceModel(); + onChanged(); + return this; + } + /** + *
+       * Device model.
+       * Eg. GT-I9192
+       * 
+ * + * string device_model = 12; + * @param value The bytes for deviceModel to set. + * @return This builder for chaining. + */ + public Builder setDeviceModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + deviceModel_ = value; + onChanged(); + return this; + } + + private java.lang.Object platformVersion_ = ""; + /** + *
+       * Device OS version when data capture ended.
+       * Eg. 4.4.2
+       * 
+ * + * string platform_version = 6; + * @return The platformVersion. + */ + public java.lang.String getPlatformVersion() { + java.lang.Object ref = platformVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + platformVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Device OS version when data capture ended.
+       * Eg. 4.4.2
+       * 
+ * + * string platform_version = 6; + * @return The bytes for platformVersion. + */ + public com.google.protobuf.ByteString + getPlatformVersionBytes() { + java.lang.Object ref = platformVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + platformVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Device OS version when data capture ended.
+       * Eg. 4.4.2
+       * 
+ * + * string platform_version = 6; + * @param value The platformVersion to set. + * @return This builder for chaining. + */ + public Builder setPlatformVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + platformVersion_ = value; + onChanged(); + return this; + } + /** + *
+       * Device OS version when data capture ended.
+       * Eg. 4.4.2
+       * 
+ * + * string platform_version = 6; + * @return This builder for chaining. + */ + public Builder clearPlatformVersion() { + + platformVersion_ = getDefaultInstance().getPlatformVersion(); + onChanged(); + return this; + } + /** + *
+       * Device OS version when data capture ended.
+       * Eg. 4.4.2
+       * 
+ * + * string platform_version = 6; + * @param value The bytes for platformVersion to set. + * @return This builder for chaining. + */ + public Builder setPlatformVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + platformVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object deviceId_ = ""; + /** + *
+       * Vendor specific device identifier. This is IDFV on iOS. Not used for
+       * Android.
+       * Example: "599F9C00-92DC-4B5C-9464-7971F01F8370"
+       * 
+ * + * string device_id = 7; + * @return The deviceId. + */ + public java.lang.String getDeviceId() { + java.lang.Object ref = deviceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deviceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Vendor specific device identifier. This is IDFV on iOS. Not used for
+       * Android.
+       * Example: "599F9C00-92DC-4B5C-9464-7971F01F8370"
+       * 
+ * + * string device_id = 7; + * @return The bytes for deviceId. + */ + public com.google.protobuf.ByteString + getDeviceIdBytes() { + java.lang.Object ref = deviceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deviceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Vendor specific device identifier. This is IDFV on iOS. Not used for
+       * Android.
+       * Example: "599F9C00-92DC-4B5C-9464-7971F01F8370"
+       * 
+ * + * string device_id = 7; + * @param value The deviceId to set. + * @return This builder for chaining. + */ + public Builder setDeviceId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + deviceId_ = value; + onChanged(); + return this; + } + /** + *
+       * Vendor specific device identifier. This is IDFV on iOS. Not used for
+       * Android.
+       * Example: "599F9C00-92DC-4B5C-9464-7971F01F8370"
+       * 
+ * + * string device_id = 7; + * @return This builder for chaining. + */ + public Builder clearDeviceId() { + + deviceId_ = getDefaultInstance().getDeviceId(); + onChanged(); + return this; + } + /** + *
+       * Vendor specific device identifier. This is IDFV on iOS. Not used for
+       * Android.
+       * Example: "599F9C00-92DC-4B5C-9464-7971F01F8370"
+       * 
+ * + * string device_id = 7; + * @param value The bytes for deviceId to set. + * @return This builder for chaining. + */ + public Builder setDeviceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + deviceId_ = value; + onChanged(); + return this; + } + + private java.lang.Object resettableDeviceId_ = ""; + /** + *
+       * The type of the resettable_device_id is always IDFA on iOS and AdId
+       * on Android.
+       * Example: "71683BF9-FA3B-4B0D-9535-A1F05188BAF3"
+       * 
+ * + * string resettable_device_id = 8; + * @return The resettableDeviceId. + */ + public java.lang.String getResettableDeviceId() { + java.lang.Object ref = resettableDeviceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resettableDeviceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The type of the resettable_device_id is always IDFA on iOS and AdId
+       * on Android.
+       * Example: "71683BF9-FA3B-4B0D-9535-A1F05188BAF3"
+       * 
+ * + * string resettable_device_id = 8; + * @return The bytes for resettableDeviceId. + */ + public com.google.protobuf.ByteString + getResettableDeviceIdBytes() { + java.lang.Object ref = resettableDeviceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resettableDeviceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The type of the resettable_device_id is always IDFA on iOS and AdId
+       * on Android.
+       * Example: "71683BF9-FA3B-4B0D-9535-A1F05188BAF3"
+       * 
+ * + * string resettable_device_id = 8; + * @param value The resettableDeviceId to set. + * @return This builder for chaining. + */ + public Builder setResettableDeviceId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resettableDeviceId_ = value; + onChanged(); + return this; + } + /** + *
+       * The type of the resettable_device_id is always IDFA on iOS and AdId
+       * on Android.
+       * Example: "71683BF9-FA3B-4B0D-9535-A1F05188BAF3"
+       * 
+ * + * string resettable_device_id = 8; + * @return This builder for chaining. + */ + public Builder clearResettableDeviceId() { + + resettableDeviceId_ = getDefaultInstance().getResettableDeviceId(); + onChanged(); + return this; + } + /** + *
+       * The type of the resettable_device_id is always IDFA on iOS and AdId
+       * on Android.
+       * Example: "71683BF9-FA3B-4B0D-9535-A1F05188BAF3"
+       * 
+ * + * string resettable_device_id = 8; + * @param value The bytes for resettableDeviceId to set. + * @return This builder for chaining. + */ + public Builder setResettableDeviceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resettableDeviceId_ = value; + onChanged(); + return this; + } + + private java.lang.Object userDefaultLanguage_ = ""; + /** + *
+       * The user language.
+       * Eg. "en-us", "en-za", "zh-tw", "jp"
+       * 
+ * + * string user_default_language = 9; + * @return The userDefaultLanguage. + */ + public java.lang.String getUserDefaultLanguage() { + java.lang.Object ref = userDefaultLanguage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userDefaultLanguage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The user language.
+       * Eg. "en-us", "en-za", "zh-tw", "jp"
+       * 
+ * + * string user_default_language = 9; + * @return The bytes for userDefaultLanguage. + */ + public com.google.protobuf.ByteString + getUserDefaultLanguageBytes() { + java.lang.Object ref = userDefaultLanguage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userDefaultLanguage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The user language.
+       * Eg. "en-us", "en-za", "zh-tw", "jp"
+       * 
+ * + * string user_default_language = 9; + * @param value The userDefaultLanguage to set. + * @return This builder for chaining. + */ + public Builder setUserDefaultLanguage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + userDefaultLanguage_ = value; + onChanged(); + return this; + } + /** + *
+       * The user language.
+       * Eg. "en-us", "en-za", "zh-tw", "jp"
+       * 
+ * + * string user_default_language = 9; + * @return This builder for chaining. + */ + public Builder clearUserDefaultLanguage() { + + userDefaultLanguage_ = getDefaultInstance().getUserDefaultLanguage(); + onChanged(); + return this; + } + /** + *
+       * The user language.
+       * Eg. "en-us", "en-za", "zh-tw", "jp"
+       * 
+ * + * string user_default_language = 9; + * @param value The bytes for userDefaultLanguage to set. + * @return This builder for chaining. + */ + public Builder setUserDefaultLanguageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + userDefaultLanguage_ = value; + onChanged(); + return this; + } + + private int deviceTimeZoneOffsetSeconds_ ; + /** + *
+       * The timezone of the device when data was uploaded as seconds skew from UTC.
+       * 
+ * + * int32 device_time_zone_offset_seconds = 10; + * @return The deviceTimeZoneOffsetSeconds. + */ + @java.lang.Override + public int getDeviceTimeZoneOffsetSeconds() { + return deviceTimeZoneOffsetSeconds_; + } + /** + *
+       * The timezone of the device when data was uploaded as seconds skew from UTC.
+       * 
+ * + * int32 device_time_zone_offset_seconds = 10; + * @param value The deviceTimeZoneOffsetSeconds to set. + * @return This builder for chaining. + */ + public Builder setDeviceTimeZoneOffsetSeconds(int value) { + + deviceTimeZoneOffsetSeconds_ = value; + onChanged(); + return this; + } + /** + *
+       * The timezone of the device when data was uploaded as seconds skew from UTC.
+       * 
+ * + * int32 device_time_zone_offset_seconds = 10; + * @return This builder for chaining. + */ + public Builder clearDeviceTimeZoneOffsetSeconds() { + + deviceTimeZoneOffsetSeconds_ = 0; + onChanged(); + return this; + } + + private boolean limitedAdTracking_ ; + /** + *
+       * The device's Limit Ad Tracking setting.
+       * When true, we cannot use device_id for remarketing, demographics or
+       * influencing ads serving behaviour. However, we can use device_id for
+       * conversion tracking and campaign attribution.
+       * 
+ * + * bool limited_ad_tracking = 11; + * @return The limitedAdTracking. + */ + @java.lang.Override + public boolean getLimitedAdTracking() { + return limitedAdTracking_; + } + /** + *
+       * The device's Limit Ad Tracking setting.
+       * When true, we cannot use device_id for remarketing, demographics or
+       * influencing ads serving behaviour. However, we can use device_id for
+       * conversion tracking and campaign attribution.
+       * 
+ * + * bool limited_ad_tracking = 11; + * @param value The limitedAdTracking to set. + * @return This builder for chaining. + */ + public Builder setLimitedAdTracking(boolean value) { + + limitedAdTracking_ = value; + onChanged(); + return this; + } + /** + *
+       * The device's Limit Ad Tracking setting.
+       * When true, we cannot use device_id for remarketing, demographics or
+       * influencing ads serving behaviour. However, we can use device_id for
+       * conversion tracking and campaign attribution.
+       * 
+ * + * bool limited_ad_tracking = 11; + * @return This builder for chaining. + */ + public Builder clearLimitedAdTracking() { + + limitedAdTracking_ = 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.firebase.analytics.v1.DeviceInfo) + } + + // @@protoc_insertion_point(class_scope:google.events.firebase.analytics.v1.DeviceInfo) + private static final google.events.firebase.analytics.v1.Data.DeviceInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new google.events.firebase.analytics.v1.Data.DeviceInfo(); + } + + public static google.events.firebase.analytics.v1.Data.DeviceInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeviceInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeviceInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.DeviceInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AppInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.firebase.analytics.v1.AppInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The app's version name
+     * Examples: "1.0", "4.3.1.1.213361", "2.3 (1824253)", "v1.8b22p6"
+     * 
+ * + * string app_version = 1; + * @return The appVersion. + */ + java.lang.String getAppVersion(); + /** + *
+     * The app's version name
+     * Examples: "1.0", "4.3.1.1.213361", "2.3 (1824253)", "v1.8b22p6"
+     * 
+ * + * string app_version = 1; + * @return The bytes for appVersion. + */ + com.google.protobuf.ByteString + getAppVersionBytes(); + + /** + *
+     * Unique id for this instance of the app.
+     * Example: "71683BF9FA3B4B0D9535A1F05188BAF3"
+     * 
+ * + * string app_instance_id = 2; + * @return The appInstanceId. + */ + java.lang.String getAppInstanceId(); + /** + *
+     * Unique id for this instance of the app.
+     * Example: "71683BF9FA3B4B0D9535A1F05188BAF3"
+     * 
+ * + * string app_instance_id = 2; + * @return The bytes for appInstanceId. + */ + com.google.protobuf.ByteString + getAppInstanceIdBytes(); + + /** + *
+     * The identifier of the store that installed the app.
+     * Eg. "com.sec.android.app.samsungapps", "com.amazon.venezia",
+     * "com.nokia.nstore"
+     * 
+ * + * string app_store = 3; + * @return The appStore. + */ + java.lang.String getAppStore(); + /** + *
+     * The identifier of the store that installed the app.
+     * Eg. "com.sec.android.app.samsungapps", "com.amazon.venezia",
+     * "com.nokia.nstore"
+     * 
+ * + * string app_store = 3; + * @return The bytes for appStore. + */ + com.google.protobuf.ByteString + getAppStoreBytes(); + + /** + *
+     * The app platform.
+     * Eg "ANDROID", "IOS".
+     * 
+ * + * string app_platform = 4; + * @return The appPlatform. + */ + java.lang.String getAppPlatform(); + /** + *
+     * The app platform.
+     * Eg "ANDROID", "IOS".
+     * 
+ * + * string app_platform = 4; + * @return The bytes for appPlatform. + */ + com.google.protobuf.ByteString + getAppPlatformBytes(); + + /** + *
+     * Unique application identifier within an app store.
+     * 
+ * + * string app_id = 5; + * @return The appId. + */ + java.lang.String getAppId(); + /** + *
+     * Unique application identifier within an app store.
+     * 
+ * + * string app_id = 5; + * @return The bytes for appId. + */ + com.google.protobuf.ByteString + getAppIdBytes(); + } + /** + *
+   * Message which contains App Information.
+   * 
+ * + * Protobuf type {@code google.events.firebase.analytics.v1.AppInfo} + */ + public static final class AppInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.firebase.analytics.v1.AppInfo) + AppInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use AppInfo.newBuilder() to construct. + private AppInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AppInfo() { + appVersion_ = ""; + appInstanceId_ = ""; + appStore_ = ""; + appPlatform_ = ""; + appId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AppInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AppInfo( + 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(); + + appVersion_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + appInstanceId_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + appStore_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + appPlatform_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + appId_ = 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.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_AppInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_AppInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.firebase.analytics.v1.Data.AppInfo.class, google.events.firebase.analytics.v1.Data.AppInfo.Builder.class); + } + + public static final int APP_VERSION_FIELD_NUMBER = 1; + private volatile java.lang.Object appVersion_; + /** + *
+     * The app's version name
+     * Examples: "1.0", "4.3.1.1.213361", "2.3 (1824253)", "v1.8b22p6"
+     * 
+ * + * string app_version = 1; + * @return The appVersion. + */ + @java.lang.Override + public java.lang.String getAppVersion() { + java.lang.Object ref = appVersion_; + 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(); + appVersion_ = s; + return s; + } + } + /** + *
+     * The app's version name
+     * Examples: "1.0", "4.3.1.1.213361", "2.3 (1824253)", "v1.8b22p6"
+     * 
+ * + * string app_version = 1; + * @return The bytes for appVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAppVersionBytes() { + java.lang.Object ref = appVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + appVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APP_INSTANCE_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object appInstanceId_; + /** + *
+     * Unique id for this instance of the app.
+     * Example: "71683BF9FA3B4B0D9535A1F05188BAF3"
+     * 
+ * + * string app_instance_id = 2; + * @return The appInstanceId. + */ + @java.lang.Override + public java.lang.String getAppInstanceId() { + java.lang.Object ref = appInstanceId_; + 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(); + appInstanceId_ = s; + return s; + } + } + /** + *
+     * Unique id for this instance of the app.
+     * Example: "71683BF9FA3B4B0D9535A1F05188BAF3"
+     * 
+ * + * string app_instance_id = 2; + * @return The bytes for appInstanceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAppInstanceIdBytes() { + java.lang.Object ref = appInstanceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + appInstanceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APP_STORE_FIELD_NUMBER = 3; + private volatile java.lang.Object appStore_; + /** + *
+     * The identifier of the store that installed the app.
+     * Eg. "com.sec.android.app.samsungapps", "com.amazon.venezia",
+     * "com.nokia.nstore"
+     * 
+ * + * string app_store = 3; + * @return The appStore. + */ + @java.lang.Override + public java.lang.String getAppStore() { + java.lang.Object ref = appStore_; + 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(); + appStore_ = s; + return s; + } + } + /** + *
+     * The identifier of the store that installed the app.
+     * Eg. "com.sec.android.app.samsungapps", "com.amazon.venezia",
+     * "com.nokia.nstore"
+     * 
+ * + * string app_store = 3; + * @return The bytes for appStore. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAppStoreBytes() { + java.lang.Object ref = appStore_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + appStore_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APP_PLATFORM_FIELD_NUMBER = 4; + private volatile java.lang.Object appPlatform_; + /** + *
+     * The app platform.
+     * Eg "ANDROID", "IOS".
+     * 
+ * + * string app_platform = 4; + * @return The appPlatform. + */ + @java.lang.Override + public java.lang.String getAppPlatform() { + java.lang.Object ref = appPlatform_; + 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(); + appPlatform_ = s; + return s; + } + } + /** + *
+     * The app platform.
+     * Eg "ANDROID", "IOS".
+     * 
+ * + * string app_platform = 4; + * @return The bytes for appPlatform. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAppPlatformBytes() { + java.lang.Object ref = appPlatform_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + appPlatform_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APP_ID_FIELD_NUMBER = 5; + private volatile java.lang.Object appId_; + /** + *
+     * Unique application identifier within an app store.
+     * 
+ * + * string app_id = 5; + * @return The appId. + */ + @java.lang.Override + public java.lang.String getAppId() { + java.lang.Object ref = appId_; + 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(); + appId_ = s; + return s; + } + } + /** + *
+     * Unique application identifier within an app store.
+     * 
+ * + * string app_id = 5; + * @return The bytes for appId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAppIdBytes() { + java.lang.Object ref = appId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + appId_ = 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 (!getAppVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, appVersion_); + } + if (!getAppInstanceIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, appInstanceId_); + } + if (!getAppStoreBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, appStore_); + } + if (!getAppPlatformBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, appPlatform_); + } + if (!getAppIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, appId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getAppVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, appVersion_); + } + if (!getAppInstanceIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, appInstanceId_); + } + if (!getAppStoreBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, appStore_); + } + if (!getAppPlatformBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, appPlatform_); + } + if (!getAppIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, appId_); + } + 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.firebase.analytics.v1.Data.AppInfo)) { + return super.equals(obj); + } + google.events.firebase.analytics.v1.Data.AppInfo other = (google.events.firebase.analytics.v1.Data.AppInfo) obj; + + if (!getAppVersion() + .equals(other.getAppVersion())) return false; + if (!getAppInstanceId() + .equals(other.getAppInstanceId())) return false; + if (!getAppStore() + .equals(other.getAppStore())) return false; + if (!getAppPlatform() + .equals(other.getAppPlatform())) return false; + if (!getAppId() + .equals(other.getAppId())) 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) + APP_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getAppVersion().hashCode(); + hash = (37 * hash) + APP_INSTANCE_ID_FIELD_NUMBER; + hash = (53 * hash) + getAppInstanceId().hashCode(); + hash = (37 * hash) + APP_STORE_FIELD_NUMBER; + hash = (53 * hash) + getAppStore().hashCode(); + hash = (37 * hash) + APP_PLATFORM_FIELD_NUMBER; + hash = (53 * hash) + getAppPlatform().hashCode(); + hash = (37 * hash) + APP_ID_FIELD_NUMBER; + hash = (53 * hash) + getAppId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static google.events.firebase.analytics.v1.Data.AppInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.analytics.v1.Data.AppInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.firebase.analytics.v1.Data.AppInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.analytics.v1.Data.AppInfo 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.firebase.analytics.v1.Data.AppInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.analytics.v1.Data.AppInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.firebase.analytics.v1.Data.AppInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.firebase.analytics.v1.Data.AppInfo 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.firebase.analytics.v1.Data.AppInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static google.events.firebase.analytics.v1.Data.AppInfo 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.firebase.analytics.v1.Data.AppInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.firebase.analytics.v1.Data.AppInfo 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.firebase.analytics.v1.Data.AppInfo 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; + } + /** + *
+     * Message which contains App Information.
+     * 
+ * + * Protobuf type {@code google.events.firebase.analytics.v1.AppInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.events.firebase.analytics.v1.AppInfo) + google.events.firebase.analytics.v1.Data.AppInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_AppInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_AppInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.firebase.analytics.v1.Data.AppInfo.class, google.events.firebase.analytics.v1.Data.AppInfo.Builder.class); + } + + // Construct using google.events.firebase.analytics.v1.Data.AppInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + appVersion_ = ""; + + appInstanceId_ = ""; + + appStore_ = ""; + + appPlatform_ = ""; + + appId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_AppInfo_descriptor; + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.AppInfo getDefaultInstanceForType() { + return google.events.firebase.analytics.v1.Data.AppInfo.getDefaultInstance(); + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.AppInfo build() { + google.events.firebase.analytics.v1.Data.AppInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.AppInfo buildPartial() { + google.events.firebase.analytics.v1.Data.AppInfo result = new google.events.firebase.analytics.v1.Data.AppInfo(this); + result.appVersion_ = appVersion_; + result.appInstanceId_ = appInstanceId_; + result.appStore_ = appStore_; + result.appPlatform_ = appPlatform_; + result.appId_ = appId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.events.firebase.analytics.v1.Data.AppInfo) { + return mergeFrom((google.events.firebase.analytics.v1.Data.AppInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(google.events.firebase.analytics.v1.Data.AppInfo other) { + if (other == google.events.firebase.analytics.v1.Data.AppInfo.getDefaultInstance()) return this; + if (!other.getAppVersion().isEmpty()) { + appVersion_ = other.appVersion_; + onChanged(); + } + if (!other.getAppInstanceId().isEmpty()) { + appInstanceId_ = other.appInstanceId_; + onChanged(); + } + if (!other.getAppStore().isEmpty()) { + appStore_ = other.appStore_; + onChanged(); + } + if (!other.getAppPlatform().isEmpty()) { + appPlatform_ = other.appPlatform_; + onChanged(); + } + if (!other.getAppId().isEmpty()) { + appId_ = other.appId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.events.firebase.analytics.v1.Data.AppInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.events.firebase.analytics.v1.Data.AppInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object appVersion_ = ""; + /** + *
+       * The app's version name
+       * Examples: "1.0", "4.3.1.1.213361", "2.3 (1824253)", "v1.8b22p6"
+       * 
+ * + * string app_version = 1; + * @return The appVersion. + */ + public java.lang.String getAppVersion() { + java.lang.Object ref = appVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The app's version name
+       * Examples: "1.0", "4.3.1.1.213361", "2.3 (1824253)", "v1.8b22p6"
+       * 
+ * + * string app_version = 1; + * @return The bytes for appVersion. + */ + public com.google.protobuf.ByteString + getAppVersionBytes() { + java.lang.Object ref = appVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + appVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The app's version name
+       * Examples: "1.0", "4.3.1.1.213361", "2.3 (1824253)", "v1.8b22p6"
+       * 
+ * + * string app_version = 1; + * @param value The appVersion to set. + * @return This builder for chaining. + */ + public Builder setAppVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + appVersion_ = value; + onChanged(); + return this; + } + /** + *
+       * The app's version name
+       * Examples: "1.0", "4.3.1.1.213361", "2.3 (1824253)", "v1.8b22p6"
+       * 
+ * + * string app_version = 1; + * @return This builder for chaining. + */ + public Builder clearAppVersion() { + + appVersion_ = getDefaultInstance().getAppVersion(); + onChanged(); + return this; + } + /** + *
+       * The app's version name
+       * Examples: "1.0", "4.3.1.1.213361", "2.3 (1824253)", "v1.8b22p6"
+       * 
+ * + * string app_version = 1; + * @param value The bytes for appVersion to set. + * @return This builder for chaining. + */ + public Builder setAppVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + appVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object appInstanceId_ = ""; + /** + *
+       * Unique id for this instance of the app.
+       * Example: "71683BF9FA3B4B0D9535A1F05188BAF3"
+       * 
+ * + * string app_instance_id = 2; + * @return The appInstanceId. + */ + public java.lang.String getAppInstanceId() { + java.lang.Object ref = appInstanceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appInstanceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique id for this instance of the app.
+       * Example: "71683BF9FA3B4B0D9535A1F05188BAF3"
+       * 
+ * + * string app_instance_id = 2; + * @return The bytes for appInstanceId. + */ + public com.google.protobuf.ByteString + getAppInstanceIdBytes() { + java.lang.Object ref = appInstanceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + appInstanceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique id for this instance of the app.
+       * Example: "71683BF9FA3B4B0D9535A1F05188BAF3"
+       * 
+ * + * string app_instance_id = 2; + * @param value The appInstanceId to set. + * @return This builder for chaining. + */ + public Builder setAppInstanceId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + appInstanceId_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique id for this instance of the app.
+       * Example: "71683BF9FA3B4B0D9535A1F05188BAF3"
+       * 
+ * + * string app_instance_id = 2; + * @return This builder for chaining. + */ + public Builder clearAppInstanceId() { + + appInstanceId_ = getDefaultInstance().getAppInstanceId(); + onChanged(); + return this; + } + /** + *
+       * Unique id for this instance of the app.
+       * Example: "71683BF9FA3B4B0D9535A1F05188BAF3"
+       * 
+ * + * string app_instance_id = 2; + * @param value The bytes for appInstanceId to set. + * @return This builder for chaining. + */ + public Builder setAppInstanceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + appInstanceId_ = value; + onChanged(); + return this; + } + + private java.lang.Object appStore_ = ""; + /** + *
+       * The identifier of the store that installed the app.
+       * Eg. "com.sec.android.app.samsungapps", "com.amazon.venezia",
+       * "com.nokia.nstore"
+       * 
+ * + * string app_store = 3; + * @return The appStore. + */ + public java.lang.String getAppStore() { + java.lang.Object ref = appStore_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appStore_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The identifier of the store that installed the app.
+       * Eg. "com.sec.android.app.samsungapps", "com.amazon.venezia",
+       * "com.nokia.nstore"
+       * 
+ * + * string app_store = 3; + * @return The bytes for appStore. + */ + public com.google.protobuf.ByteString + getAppStoreBytes() { + java.lang.Object ref = appStore_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + appStore_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The identifier of the store that installed the app.
+       * Eg. "com.sec.android.app.samsungapps", "com.amazon.venezia",
+       * "com.nokia.nstore"
+       * 
+ * + * string app_store = 3; + * @param value The appStore to set. + * @return This builder for chaining. + */ + public Builder setAppStore( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + appStore_ = value; + onChanged(); + return this; + } + /** + *
+       * The identifier of the store that installed the app.
+       * Eg. "com.sec.android.app.samsungapps", "com.amazon.venezia",
+       * "com.nokia.nstore"
+       * 
+ * + * string app_store = 3; + * @return This builder for chaining. + */ + public Builder clearAppStore() { + + appStore_ = getDefaultInstance().getAppStore(); + onChanged(); + return this; + } + /** + *
+       * The identifier of the store that installed the app.
+       * Eg. "com.sec.android.app.samsungapps", "com.amazon.venezia",
+       * "com.nokia.nstore"
+       * 
+ * + * string app_store = 3; + * @param value The bytes for appStore to set. + * @return This builder for chaining. + */ + public Builder setAppStoreBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + appStore_ = value; + onChanged(); + return this; + } + + private java.lang.Object appPlatform_ = ""; + /** + *
+       * The app platform.
+       * Eg "ANDROID", "IOS".
+       * 
+ * + * string app_platform = 4; + * @return The appPlatform. + */ + public java.lang.String getAppPlatform() { + java.lang.Object ref = appPlatform_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appPlatform_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The app platform.
+       * Eg "ANDROID", "IOS".
+       * 
+ * + * string app_platform = 4; + * @return The bytes for appPlatform. + */ + public com.google.protobuf.ByteString + getAppPlatformBytes() { + java.lang.Object ref = appPlatform_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + appPlatform_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The app platform.
+       * Eg "ANDROID", "IOS".
+       * 
+ * + * string app_platform = 4; + * @param value The appPlatform to set. + * @return This builder for chaining. + */ + public Builder setAppPlatform( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + appPlatform_ = value; + onChanged(); + return this; + } + /** + *
+       * The app platform.
+       * Eg "ANDROID", "IOS".
+       * 
+ * + * string app_platform = 4; + * @return This builder for chaining. + */ + public Builder clearAppPlatform() { + + appPlatform_ = getDefaultInstance().getAppPlatform(); + onChanged(); + return this; + } + /** + *
+       * The app platform.
+       * Eg "ANDROID", "IOS".
+       * 
+ * + * string app_platform = 4; + * @param value The bytes for appPlatform to set. + * @return This builder for chaining. + */ + public Builder setAppPlatformBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + appPlatform_ = value; + onChanged(); + return this; + } + + private java.lang.Object appId_ = ""; + /** + *
+       * Unique application identifier within an app store.
+       * 
+ * + * string app_id = 5; + * @return The appId. + */ + public java.lang.String getAppId() { + java.lang.Object ref = appId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique application identifier within an app store.
+       * 
+ * + * string app_id = 5; + * @return The bytes for appId. + */ + public com.google.protobuf.ByteString + getAppIdBytes() { + java.lang.Object ref = appId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + appId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique application identifier within an app store.
+       * 
+ * + * string app_id = 5; + * @param value The appId to set. + * @return This builder for chaining. + */ + public Builder setAppId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + appId_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique application identifier within an app store.
+       * 
+ * + * string app_id = 5; + * @return This builder for chaining. + */ + public Builder clearAppId() { + + appId_ = getDefaultInstance().getAppId(); + onChanged(); + return this; + } + /** + *
+       * Unique application identifier within an app store.
+       * 
+ * + * string app_id = 5; + * @param value The bytes for appId to set. + * @return This builder for chaining. + */ + public Builder setAppIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + appId_ = 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.firebase.analytics.v1.AppInfo) + } + + // @@protoc_insertion_point(class_scope:google.events.firebase.analytics.v1.AppInfo) + private static final google.events.firebase.analytics.v1.Data.AppInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new google.events.firebase.analytics.v1.Data.AppInfo(); + } + + public static google.events.firebase.analytics.v1.Data.AppInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AppInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AppInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.AppInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GeoInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.firebase.analytics.v1.GeoInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The geographic continent.
+     * Eg. Americas
+     * 
+ * + * string continent = 1; + * @return The continent. + */ + java.lang.String getContinent(); + /** + *
+     * The geographic continent.
+     * Eg. Americas
+     * 
+ * + * string continent = 1; + * @return The bytes for continent. + */ + com.google.protobuf.ByteString + getContinentBytes(); + + /** + *
+     * The geographic country.
+     * Eg. Brazil
+     * 
+ * + * string country = 2; + * @return The country. + */ + java.lang.String getCountry(); + /** + *
+     * The geographic country.
+     * Eg. Brazil
+     * 
+ * + * string country = 2; + * @return The bytes for country. + */ + com.google.protobuf.ByteString + getCountryBytes(); + + /** + *
+     * The geographic region.
+     * Eg. State of Sao Paulo
+     * 
+ * + * string region = 3; + * @return The region. + */ + java.lang.String getRegion(); + /** + *
+     * The geographic region.
+     * Eg. State of Sao Paulo
+     * 
+ * + * string region = 3; + * @return The bytes for region. + */ + com.google.protobuf.ByteString + getRegionBytes(); + + /** + *
+     * The geographic city.
+     * Eg. Sao Paulo
+     * 
+ * + * string city = 4; + * @return The city. + */ + java.lang.String getCity(); + /** + *
+     * The geographic city.
+     * Eg. Sao Paulo
+     * 
+ * + * string city = 4; + * @return The bytes for city. + */ + com.google.protobuf.ByteString + getCityBytes(); + } + /** + *
+   * User's geographic informaiton.
+   * 
+ * + * Protobuf type {@code google.events.firebase.analytics.v1.GeoInfo} + */ + public static final class GeoInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.firebase.analytics.v1.GeoInfo) + GeoInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use GeoInfo.newBuilder() to construct. + private GeoInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GeoInfo() { + continent_ = ""; + country_ = ""; + region_ = ""; + city_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GeoInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GeoInfo( + 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(); + + continent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + country_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + region_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + city_ = 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.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_GeoInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_GeoInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.firebase.analytics.v1.Data.GeoInfo.class, google.events.firebase.analytics.v1.Data.GeoInfo.Builder.class); + } + + public static final int CONTINENT_FIELD_NUMBER = 1; + private volatile java.lang.Object continent_; + /** + *
+     * The geographic continent.
+     * Eg. Americas
+     * 
+ * + * string continent = 1; + * @return The continent. + */ + @java.lang.Override + public java.lang.String getContinent() { + java.lang.Object ref = continent_; + 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(); + continent_ = s; + return s; + } + } + /** + *
+     * The geographic continent.
+     * Eg. Americas
+     * 
+ * + * string continent = 1; + * @return The bytes for continent. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getContinentBytes() { + java.lang.Object ref = continent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + continent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COUNTRY_FIELD_NUMBER = 2; + private volatile java.lang.Object country_; + /** + *
+     * The geographic country.
+     * Eg. Brazil
+     * 
+ * + * string country = 2; + * @return The country. + */ + @java.lang.Override + public java.lang.String getCountry() { + java.lang.Object ref = country_; + 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(); + country_ = s; + return s; + } + } + /** + *
+     * The geographic country.
+     * Eg. Brazil
+     * 
+ * + * string country = 2; + * @return The bytes for country. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCountryBytes() { + java.lang.Object ref = country_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + country_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 3; + private volatile java.lang.Object region_; + /** + *
+     * The geographic region.
+     * Eg. State of Sao Paulo
+     * 
+ * + * string region = 3; + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + /** + *
+     * The geographic region.
+     * Eg. State of Sao Paulo
+     * 
+ * + * string region = 3; + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CITY_FIELD_NUMBER = 4; + private volatile java.lang.Object city_; + /** + *
+     * The geographic city.
+     * Eg. Sao Paulo
+     * 
+ * + * string city = 4; + * @return The city. + */ + @java.lang.Override + public java.lang.String getCity() { + java.lang.Object ref = city_; + 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(); + city_ = s; + return s; + } + } + /** + *
+     * The geographic city.
+     * Eg. Sao Paulo
+     * 
+ * + * string city = 4; + * @return The bytes for city. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCityBytes() { + java.lang.Object ref = city_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + city_ = 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 (!getContinentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, continent_); + } + if (!getCountryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, country_); + } + if (!getRegionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, region_); + } + if (!getCityBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, city_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getContinentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, continent_); + } + if (!getCountryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, country_); + } + if (!getRegionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); + } + if (!getCityBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, city_); + } + 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.firebase.analytics.v1.Data.GeoInfo)) { + return super.equals(obj); + } + google.events.firebase.analytics.v1.Data.GeoInfo other = (google.events.firebase.analytics.v1.Data.GeoInfo) obj; + + if (!getContinent() + .equals(other.getContinent())) return false; + if (!getCountry() + .equals(other.getCountry())) return false; + if (!getRegion() + .equals(other.getRegion())) return false; + if (!getCity() + .equals(other.getCity())) 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) + CONTINENT_FIELD_NUMBER; + hash = (53 * hash) + getContinent().hashCode(); + hash = (37 * hash) + COUNTRY_FIELD_NUMBER; + hash = (53 * hash) + getCountry().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + hash = (37 * hash) + CITY_FIELD_NUMBER; + hash = (53 * hash) + getCity().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static google.events.firebase.analytics.v1.Data.GeoInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.analytics.v1.Data.GeoInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.firebase.analytics.v1.Data.GeoInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.analytics.v1.Data.GeoInfo 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.firebase.analytics.v1.Data.GeoInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.analytics.v1.Data.GeoInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.firebase.analytics.v1.Data.GeoInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.firebase.analytics.v1.Data.GeoInfo 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.firebase.analytics.v1.Data.GeoInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static google.events.firebase.analytics.v1.Data.GeoInfo 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.firebase.analytics.v1.Data.GeoInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.firebase.analytics.v1.Data.GeoInfo 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.firebase.analytics.v1.Data.GeoInfo 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; + } + /** + *
+     * User's geographic informaiton.
+     * 
+ * + * Protobuf type {@code google.events.firebase.analytics.v1.GeoInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.events.firebase.analytics.v1.GeoInfo) + google.events.firebase.analytics.v1.Data.GeoInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_GeoInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_GeoInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.firebase.analytics.v1.Data.GeoInfo.class, google.events.firebase.analytics.v1.Data.GeoInfo.Builder.class); + } + + // Construct using google.events.firebase.analytics.v1.Data.GeoInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + continent_ = ""; + + country_ = ""; + + region_ = ""; + + city_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_GeoInfo_descriptor; + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.GeoInfo getDefaultInstanceForType() { + return google.events.firebase.analytics.v1.Data.GeoInfo.getDefaultInstance(); + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.GeoInfo build() { + google.events.firebase.analytics.v1.Data.GeoInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.GeoInfo buildPartial() { + google.events.firebase.analytics.v1.Data.GeoInfo result = new google.events.firebase.analytics.v1.Data.GeoInfo(this); + result.continent_ = continent_; + result.country_ = country_; + result.region_ = region_; + result.city_ = city_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.events.firebase.analytics.v1.Data.GeoInfo) { + return mergeFrom((google.events.firebase.analytics.v1.Data.GeoInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(google.events.firebase.analytics.v1.Data.GeoInfo other) { + if (other == google.events.firebase.analytics.v1.Data.GeoInfo.getDefaultInstance()) return this; + if (!other.getContinent().isEmpty()) { + continent_ = other.continent_; + onChanged(); + } + if (!other.getCountry().isEmpty()) { + country_ = other.country_; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + onChanged(); + } + if (!other.getCity().isEmpty()) { + city_ = other.city_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.events.firebase.analytics.v1.Data.GeoInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.events.firebase.analytics.v1.Data.GeoInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object continent_ = ""; + /** + *
+       * The geographic continent.
+       * Eg. Americas
+       * 
+ * + * string continent = 1; + * @return The continent. + */ + public java.lang.String getContinent() { + java.lang.Object ref = continent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + continent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The geographic continent.
+       * Eg. Americas
+       * 
+ * + * string continent = 1; + * @return The bytes for continent. + */ + public com.google.protobuf.ByteString + getContinentBytes() { + java.lang.Object ref = continent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + continent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The geographic continent.
+       * Eg. Americas
+       * 
+ * + * string continent = 1; + * @param value The continent to set. + * @return This builder for chaining. + */ + public Builder setContinent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + continent_ = value; + onChanged(); + return this; + } + /** + *
+       * The geographic continent.
+       * Eg. Americas
+       * 
+ * + * string continent = 1; + * @return This builder for chaining. + */ + public Builder clearContinent() { + + continent_ = getDefaultInstance().getContinent(); + onChanged(); + return this; + } + /** + *
+       * The geographic continent.
+       * Eg. Americas
+       * 
+ * + * string continent = 1; + * @param value The bytes for continent to set. + * @return This builder for chaining. + */ + public Builder setContinentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + continent_ = value; + onChanged(); + return this; + } + + private java.lang.Object country_ = ""; + /** + *
+       * The geographic country.
+       * Eg. Brazil
+       * 
+ * + * string country = 2; + * @return The country. + */ + public java.lang.String getCountry() { + java.lang.Object ref = country_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + country_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The geographic country.
+       * Eg. Brazil
+       * 
+ * + * string country = 2; + * @return The bytes for country. + */ + public com.google.protobuf.ByteString + getCountryBytes() { + java.lang.Object ref = country_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + country_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The geographic country.
+       * Eg. Brazil
+       * 
+ * + * string country = 2; + * @param value The country to set. + * @return This builder for chaining. + */ + public Builder setCountry( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + country_ = value; + onChanged(); + return this; + } + /** + *
+       * The geographic country.
+       * Eg. Brazil
+       * 
+ * + * string country = 2; + * @return This builder for chaining. + */ + public Builder clearCountry() { + + country_ = getDefaultInstance().getCountry(); + onChanged(); + return this; + } + /** + *
+       * The geographic country.
+       * Eg. Brazil
+       * 
+ * + * string country = 2; + * @param value The bytes for country to set. + * @return This builder for chaining. + */ + public Builder setCountryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + country_ = value; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + /** + *
+       * The geographic region.
+       * Eg. State of Sao Paulo
+       * 
+ * + * string region = 3; + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The geographic region.
+       * Eg. State of Sao Paulo
+       * 
+ * + * string region = 3; + * @return The bytes for region. + */ + public com.google.protobuf.ByteString + getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The geographic region.
+       * Eg. State of Sao Paulo
+       * 
+ * + * string region = 3; + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + region_ = value; + onChanged(); + return this; + } + /** + *
+       * The geographic region.
+       * Eg. State of Sao Paulo
+       * 
+ * + * string region = 3; + * @return This builder for chaining. + */ + public Builder clearRegion() { + + region_ = getDefaultInstance().getRegion(); + onChanged(); + return this; + } + /** + *
+       * The geographic region.
+       * Eg. State of Sao Paulo
+       * 
+ * + * string region = 3; + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + region_ = value; + onChanged(); + return this; + } + + private java.lang.Object city_ = ""; + /** + *
+       * The geographic city.
+       * Eg. Sao Paulo
+       * 
+ * + * string city = 4; + * @return The city. + */ + public java.lang.String getCity() { + java.lang.Object ref = city_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + city_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The geographic city.
+       * Eg. Sao Paulo
+       * 
+ * + * string city = 4; + * @return The bytes for city. + */ + public com.google.protobuf.ByteString + getCityBytes() { + java.lang.Object ref = city_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + city_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The geographic city.
+       * Eg. Sao Paulo
+       * 
+ * + * string city = 4; + * @param value The city to set. + * @return This builder for chaining. + */ + public Builder setCity( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + city_ = value; + onChanged(); + return this; + } + /** + *
+       * The geographic city.
+       * Eg. Sao Paulo
+       * 
+ * + * string city = 4; + * @return This builder for chaining. + */ + public Builder clearCity() { + + city_ = getDefaultInstance().getCity(); + onChanged(); + return this; + } + /** + *
+       * The geographic city.
+       * Eg. Sao Paulo
+       * 
+ * + * string city = 4; + * @param value The bytes for city to set. + * @return This builder for chaining. + */ + public Builder setCityBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + city_ = 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.firebase.analytics.v1.GeoInfo) + } + + // @@protoc_insertion_point(class_scope:google.events.firebase.analytics.v1.GeoInfo) + private static final google.events.firebase.analytics.v1.Data.GeoInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new google.events.firebase.analytics.v1.Data.GeoInfo(); + } + + public static google.events.firebase.analytics.v1.Data.GeoInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GeoInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GeoInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.GeoInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TrafficSourceOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.firebase.analytics.v1.TrafficSource) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The name of the campaign which acquired the user.
+     * 
+ * + * string user_acquired_campaign = 2; + * @return The userAcquiredCampaign. + */ + java.lang.String getUserAcquiredCampaign(); + /** + *
+     * The name of the campaign which acquired the user.
+     * 
+ * + * string user_acquired_campaign = 2; + * @return The bytes for userAcquiredCampaign. + */ + com.google.protobuf.ByteString + getUserAcquiredCampaignBytes(); + + /** + *
+     * The name of the network which acquired the user.
+     * 
+ * + * string user_acquired_source = 3; + * @return The userAcquiredSource. + */ + java.lang.String getUserAcquiredSource(); + /** + *
+     * The name of the network which acquired the user.
+     * 
+ * + * string user_acquired_source = 3; + * @return The bytes for userAcquiredSource. + */ + com.google.protobuf.ByteString + getUserAcquiredSourceBytes(); + + /** + *
+     * The name of the medium which acquired the user.
+     * 
+ * + * string user_acquired_medium = 4; + * @return The userAcquiredMedium. + */ + java.lang.String getUserAcquiredMedium(); + /** + *
+     * The name of the medium which acquired the user.
+     * 
+ * + * string user_acquired_medium = 4; + * @return The bytes for userAcquiredMedium. + */ + com.google.protobuf.ByteString + getUserAcquiredMediumBytes(); + } + /** + *
+   * Mesage containing marketing campaign information which acquired the user.
+   * 
+ * + * Protobuf type {@code google.events.firebase.analytics.v1.TrafficSource} + */ + public static final class TrafficSource extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.firebase.analytics.v1.TrafficSource) + TrafficSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrafficSource.newBuilder() to construct. + private TrafficSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TrafficSource() { + userAcquiredCampaign_ = ""; + userAcquiredSource_ = ""; + userAcquiredMedium_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TrafficSource(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TrafficSource( + 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 18: { + java.lang.String s = input.readStringRequireUtf8(); + + userAcquiredCampaign_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + userAcquiredSource_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + userAcquiredMedium_ = 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.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_TrafficSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_TrafficSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.firebase.analytics.v1.Data.TrafficSource.class, google.events.firebase.analytics.v1.Data.TrafficSource.Builder.class); + } + + public static final int USER_ACQUIRED_CAMPAIGN_FIELD_NUMBER = 2; + private volatile java.lang.Object userAcquiredCampaign_; + /** + *
+     * The name of the campaign which acquired the user.
+     * 
+ * + * string user_acquired_campaign = 2; + * @return The userAcquiredCampaign. + */ + @java.lang.Override + public java.lang.String getUserAcquiredCampaign() { + java.lang.Object ref = userAcquiredCampaign_; + 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(); + userAcquiredCampaign_ = s; + return s; + } + } + /** + *
+     * The name of the campaign which acquired the user.
+     * 
+ * + * string user_acquired_campaign = 2; + * @return The bytes for userAcquiredCampaign. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUserAcquiredCampaignBytes() { + java.lang.Object ref = userAcquiredCampaign_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userAcquiredCampaign_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_ACQUIRED_SOURCE_FIELD_NUMBER = 3; + private volatile java.lang.Object userAcquiredSource_; + /** + *
+     * The name of the network which acquired the user.
+     * 
+ * + * string user_acquired_source = 3; + * @return The userAcquiredSource. + */ + @java.lang.Override + public java.lang.String getUserAcquiredSource() { + java.lang.Object ref = userAcquiredSource_; + 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(); + userAcquiredSource_ = s; + return s; + } + } + /** + *
+     * The name of the network which acquired the user.
+     * 
+ * + * string user_acquired_source = 3; + * @return The bytes for userAcquiredSource. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUserAcquiredSourceBytes() { + java.lang.Object ref = userAcquiredSource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userAcquiredSource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_ACQUIRED_MEDIUM_FIELD_NUMBER = 4; + private volatile java.lang.Object userAcquiredMedium_; + /** + *
+     * The name of the medium which acquired the user.
+     * 
+ * + * string user_acquired_medium = 4; + * @return The userAcquiredMedium. + */ + @java.lang.Override + public java.lang.String getUserAcquiredMedium() { + java.lang.Object ref = userAcquiredMedium_; + 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(); + userAcquiredMedium_ = s; + return s; + } + } + /** + *
+     * The name of the medium which acquired the user.
+     * 
+ * + * string user_acquired_medium = 4; + * @return The bytes for userAcquiredMedium. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUserAcquiredMediumBytes() { + java.lang.Object ref = userAcquiredMedium_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userAcquiredMedium_ = 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 (!getUserAcquiredCampaignBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, userAcquiredCampaign_); + } + if (!getUserAcquiredSourceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, userAcquiredSource_); + } + if (!getUserAcquiredMediumBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, userAcquiredMedium_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getUserAcquiredCampaignBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, userAcquiredCampaign_); + } + if (!getUserAcquiredSourceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, userAcquiredSource_); + } + if (!getUserAcquiredMediumBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, userAcquiredMedium_); + } + 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.firebase.analytics.v1.Data.TrafficSource)) { + return super.equals(obj); + } + google.events.firebase.analytics.v1.Data.TrafficSource other = (google.events.firebase.analytics.v1.Data.TrafficSource) obj; + + if (!getUserAcquiredCampaign() + .equals(other.getUserAcquiredCampaign())) return false; + if (!getUserAcquiredSource() + .equals(other.getUserAcquiredSource())) return false; + if (!getUserAcquiredMedium() + .equals(other.getUserAcquiredMedium())) 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) + USER_ACQUIRED_CAMPAIGN_FIELD_NUMBER; + hash = (53 * hash) + getUserAcquiredCampaign().hashCode(); + hash = (37 * hash) + USER_ACQUIRED_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getUserAcquiredSource().hashCode(); + hash = (37 * hash) + USER_ACQUIRED_MEDIUM_FIELD_NUMBER; + hash = (53 * hash) + getUserAcquiredMedium().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static google.events.firebase.analytics.v1.Data.TrafficSource parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.analytics.v1.Data.TrafficSource parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.firebase.analytics.v1.Data.TrafficSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.analytics.v1.Data.TrafficSource 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.firebase.analytics.v1.Data.TrafficSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.analytics.v1.Data.TrafficSource parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.firebase.analytics.v1.Data.TrafficSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.firebase.analytics.v1.Data.TrafficSource 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.firebase.analytics.v1.Data.TrafficSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static google.events.firebase.analytics.v1.Data.TrafficSource 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.firebase.analytics.v1.Data.TrafficSource parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.firebase.analytics.v1.Data.TrafficSource 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.firebase.analytics.v1.Data.TrafficSource 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; + } + /** + *
+     * Mesage containing marketing campaign information which acquired the user.
+     * 
+ * + * Protobuf type {@code google.events.firebase.analytics.v1.TrafficSource} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.events.firebase.analytics.v1.TrafficSource) + google.events.firebase.analytics.v1.Data.TrafficSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_TrafficSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_TrafficSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.firebase.analytics.v1.Data.TrafficSource.class, google.events.firebase.analytics.v1.Data.TrafficSource.Builder.class); + } + + // Construct using google.events.firebase.analytics.v1.Data.TrafficSource.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + userAcquiredCampaign_ = ""; + + userAcquiredSource_ = ""; + + userAcquiredMedium_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_TrafficSource_descriptor; + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.TrafficSource getDefaultInstanceForType() { + return google.events.firebase.analytics.v1.Data.TrafficSource.getDefaultInstance(); + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.TrafficSource build() { + google.events.firebase.analytics.v1.Data.TrafficSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.TrafficSource buildPartial() { + google.events.firebase.analytics.v1.Data.TrafficSource result = new google.events.firebase.analytics.v1.Data.TrafficSource(this); + result.userAcquiredCampaign_ = userAcquiredCampaign_; + result.userAcquiredSource_ = userAcquiredSource_; + result.userAcquiredMedium_ = userAcquiredMedium_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.events.firebase.analytics.v1.Data.TrafficSource) { + return mergeFrom((google.events.firebase.analytics.v1.Data.TrafficSource)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(google.events.firebase.analytics.v1.Data.TrafficSource other) { + if (other == google.events.firebase.analytics.v1.Data.TrafficSource.getDefaultInstance()) return this; + if (!other.getUserAcquiredCampaign().isEmpty()) { + userAcquiredCampaign_ = other.userAcquiredCampaign_; + onChanged(); + } + if (!other.getUserAcquiredSource().isEmpty()) { + userAcquiredSource_ = other.userAcquiredSource_; + onChanged(); + } + if (!other.getUserAcquiredMedium().isEmpty()) { + userAcquiredMedium_ = other.userAcquiredMedium_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.events.firebase.analytics.v1.Data.TrafficSource parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.events.firebase.analytics.v1.Data.TrafficSource) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object userAcquiredCampaign_ = ""; + /** + *
+       * The name of the campaign which acquired the user.
+       * 
+ * + * string user_acquired_campaign = 2; + * @return The userAcquiredCampaign. + */ + public java.lang.String getUserAcquiredCampaign() { + java.lang.Object ref = userAcquiredCampaign_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userAcquiredCampaign_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The name of the campaign which acquired the user.
+       * 
+ * + * string user_acquired_campaign = 2; + * @return The bytes for userAcquiredCampaign. + */ + public com.google.protobuf.ByteString + getUserAcquiredCampaignBytes() { + java.lang.Object ref = userAcquiredCampaign_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userAcquiredCampaign_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The name of the campaign which acquired the user.
+       * 
+ * + * string user_acquired_campaign = 2; + * @param value The userAcquiredCampaign to set. + * @return This builder for chaining. + */ + public Builder setUserAcquiredCampaign( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + userAcquiredCampaign_ = value; + onChanged(); + return this; + } + /** + *
+       * The name of the campaign which acquired the user.
+       * 
+ * + * string user_acquired_campaign = 2; + * @return This builder for chaining. + */ + public Builder clearUserAcquiredCampaign() { + + userAcquiredCampaign_ = getDefaultInstance().getUserAcquiredCampaign(); + onChanged(); + return this; + } + /** + *
+       * The name of the campaign which acquired the user.
+       * 
+ * + * string user_acquired_campaign = 2; + * @param value The bytes for userAcquiredCampaign to set. + * @return This builder for chaining. + */ + public Builder setUserAcquiredCampaignBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + userAcquiredCampaign_ = value; + onChanged(); + return this; + } + + private java.lang.Object userAcquiredSource_ = ""; + /** + *
+       * The name of the network which acquired the user.
+       * 
+ * + * string user_acquired_source = 3; + * @return The userAcquiredSource. + */ + public java.lang.String getUserAcquiredSource() { + java.lang.Object ref = userAcquiredSource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userAcquiredSource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The name of the network which acquired the user.
+       * 
+ * + * string user_acquired_source = 3; + * @return The bytes for userAcquiredSource. + */ + public com.google.protobuf.ByteString + getUserAcquiredSourceBytes() { + java.lang.Object ref = userAcquiredSource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userAcquiredSource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The name of the network which acquired the user.
+       * 
+ * + * string user_acquired_source = 3; + * @param value The userAcquiredSource to set. + * @return This builder for chaining. + */ + public Builder setUserAcquiredSource( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + userAcquiredSource_ = value; + onChanged(); + return this; + } + /** + *
+       * The name of the network which acquired the user.
+       * 
+ * + * string user_acquired_source = 3; + * @return This builder for chaining. + */ + public Builder clearUserAcquiredSource() { + + userAcquiredSource_ = getDefaultInstance().getUserAcquiredSource(); + onChanged(); + return this; + } + /** + *
+       * The name of the network which acquired the user.
+       * 
+ * + * string user_acquired_source = 3; + * @param value The bytes for userAcquiredSource to set. + * @return This builder for chaining. + */ + public Builder setUserAcquiredSourceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + userAcquiredSource_ = value; + onChanged(); + return this; + } + + private java.lang.Object userAcquiredMedium_ = ""; + /** + *
+       * The name of the medium which acquired the user.
+       * 
+ * + * string user_acquired_medium = 4; + * @return The userAcquiredMedium. + */ + public java.lang.String getUserAcquiredMedium() { + java.lang.Object ref = userAcquiredMedium_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userAcquiredMedium_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The name of the medium which acquired the user.
+       * 
+ * + * string user_acquired_medium = 4; + * @return The bytes for userAcquiredMedium. + */ + public com.google.protobuf.ByteString + getUserAcquiredMediumBytes() { + java.lang.Object ref = userAcquiredMedium_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userAcquiredMedium_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The name of the medium which acquired the user.
+       * 
+ * + * string user_acquired_medium = 4; + * @param value The userAcquiredMedium to set. + * @return This builder for chaining. + */ + public Builder setUserAcquiredMedium( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + userAcquiredMedium_ = value; + onChanged(); + return this; + } + /** + *
+       * The name of the medium which acquired the user.
+       * 
+ * + * string user_acquired_medium = 4; + * @return This builder for chaining. + */ + public Builder clearUserAcquiredMedium() { + + userAcquiredMedium_ = getDefaultInstance().getUserAcquiredMedium(); + onChanged(); + return this; + } + /** + *
+       * The name of the medium which acquired the user.
+       * 
+ * + * string user_acquired_medium = 4; + * @param value The bytes for userAcquiredMedium to set. + * @return This builder for chaining. + */ + public Builder setUserAcquiredMediumBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + userAcquiredMedium_ = 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.firebase.analytics.v1.TrafficSource) + } + + // @@protoc_insertion_point(class_scope:google.events.firebase.analytics.v1.TrafficSource) + private static final google.events.firebase.analytics.v1.Data.TrafficSource DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new google.events.firebase.analytics.v1.Data.TrafficSource(); + } + + public static google.events.firebase.analytics.v1.Data.TrafficSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrafficSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TrafficSource(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.TrafficSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExportBundleInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.firebase.analytics.v1.ExportBundleInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Monotonically increasing index for each bundle set by SDK.
+     * 
+ * + * int32 bundle_sequence_id = 1; + * @return The bundleSequenceId. + */ + int getBundleSequenceId(); + + /** + *
+     * Timestamp offset between collection time and upload time.
+     * 
+ * + * int64 server_timestamp_offset_micros = 2; + * @return The serverTimestampOffsetMicros. + */ + long getServerTimestampOffsetMicros(); + } + /** + *
+   * Message containing information regarding the bundle in which these
+   * events were uploaded.
+   * 
+ * + * Protobuf type {@code google.events.firebase.analytics.v1.ExportBundleInfo} + */ + public static final class ExportBundleInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.firebase.analytics.v1.ExportBundleInfo) + ExportBundleInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExportBundleInfo.newBuilder() to construct. + private ExportBundleInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExportBundleInfo() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ExportBundleInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExportBundleInfo( + 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: { + + bundleSequenceId_ = input.readInt32(); + break; + } + case 16: { + + serverTimestampOffsetMicros_ = input.readInt64(); + 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.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_ExportBundleInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_ExportBundleInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.firebase.analytics.v1.Data.ExportBundleInfo.class, google.events.firebase.analytics.v1.Data.ExportBundleInfo.Builder.class); + } + + public static final int BUNDLE_SEQUENCE_ID_FIELD_NUMBER = 1; + private int bundleSequenceId_; + /** + *
+     * Monotonically increasing index for each bundle set by SDK.
+     * 
+ * + * int32 bundle_sequence_id = 1; + * @return The bundleSequenceId. + */ + @java.lang.Override + public int getBundleSequenceId() { + return bundleSequenceId_; + } + + public static final int SERVER_TIMESTAMP_OFFSET_MICROS_FIELD_NUMBER = 2; + private long serverTimestampOffsetMicros_; + /** + *
+     * Timestamp offset between collection time and upload time.
+     * 
+ * + * int64 server_timestamp_offset_micros = 2; + * @return The serverTimestampOffsetMicros. + */ + @java.lang.Override + public long getServerTimestampOffsetMicros() { + return serverTimestampOffsetMicros_; + } + + 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 (bundleSequenceId_ != 0) { + output.writeInt32(1, bundleSequenceId_); + } + if (serverTimestampOffsetMicros_ != 0L) { + output.writeInt64(2, serverTimestampOffsetMicros_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (bundleSequenceId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, bundleSequenceId_); + } + if (serverTimestampOffsetMicros_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, serverTimestampOffsetMicros_); + } + 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.firebase.analytics.v1.Data.ExportBundleInfo)) { + return super.equals(obj); + } + google.events.firebase.analytics.v1.Data.ExportBundleInfo other = (google.events.firebase.analytics.v1.Data.ExportBundleInfo) obj; + + if (getBundleSequenceId() + != other.getBundleSequenceId()) return false; + if (getServerTimestampOffsetMicros() + != other.getServerTimestampOffsetMicros()) 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) + BUNDLE_SEQUENCE_ID_FIELD_NUMBER; + hash = (53 * hash) + getBundleSequenceId(); + hash = (37 * hash) + SERVER_TIMESTAMP_OFFSET_MICROS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getServerTimestampOffsetMicros()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static google.events.firebase.analytics.v1.Data.ExportBundleInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.analytics.v1.Data.ExportBundleInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.firebase.analytics.v1.Data.ExportBundleInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.analytics.v1.Data.ExportBundleInfo 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.firebase.analytics.v1.Data.ExportBundleInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.analytics.v1.Data.ExportBundleInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.firebase.analytics.v1.Data.ExportBundleInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.firebase.analytics.v1.Data.ExportBundleInfo 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.firebase.analytics.v1.Data.ExportBundleInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static google.events.firebase.analytics.v1.Data.ExportBundleInfo 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.firebase.analytics.v1.Data.ExportBundleInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.firebase.analytics.v1.Data.ExportBundleInfo 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.firebase.analytics.v1.Data.ExportBundleInfo 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; + } + /** + *
+     * Message containing information regarding the bundle in which these
+     * events were uploaded.
+     * 
+ * + * Protobuf type {@code google.events.firebase.analytics.v1.ExportBundleInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.events.firebase.analytics.v1.ExportBundleInfo) + google.events.firebase.analytics.v1.Data.ExportBundleInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_ExportBundleInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_ExportBundleInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.firebase.analytics.v1.Data.ExportBundleInfo.class, google.events.firebase.analytics.v1.Data.ExportBundleInfo.Builder.class); + } + + // Construct using google.events.firebase.analytics.v1.Data.ExportBundleInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bundleSequenceId_ = 0; + + serverTimestampOffsetMicros_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_ExportBundleInfo_descriptor; + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.ExportBundleInfo getDefaultInstanceForType() { + return google.events.firebase.analytics.v1.Data.ExportBundleInfo.getDefaultInstance(); + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.ExportBundleInfo build() { + google.events.firebase.analytics.v1.Data.ExportBundleInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.ExportBundleInfo buildPartial() { + google.events.firebase.analytics.v1.Data.ExportBundleInfo result = new google.events.firebase.analytics.v1.Data.ExportBundleInfo(this); + result.bundleSequenceId_ = bundleSequenceId_; + result.serverTimestampOffsetMicros_ = serverTimestampOffsetMicros_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.events.firebase.analytics.v1.Data.ExportBundleInfo) { + return mergeFrom((google.events.firebase.analytics.v1.Data.ExportBundleInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(google.events.firebase.analytics.v1.Data.ExportBundleInfo other) { + if (other == google.events.firebase.analytics.v1.Data.ExportBundleInfo.getDefaultInstance()) return this; + if (other.getBundleSequenceId() != 0) { + setBundleSequenceId(other.getBundleSequenceId()); + } + if (other.getServerTimestampOffsetMicros() != 0L) { + setServerTimestampOffsetMicros(other.getServerTimestampOffsetMicros()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.events.firebase.analytics.v1.Data.ExportBundleInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.events.firebase.analytics.v1.Data.ExportBundleInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bundleSequenceId_ ; + /** + *
+       * Monotonically increasing index for each bundle set by SDK.
+       * 
+ * + * int32 bundle_sequence_id = 1; + * @return The bundleSequenceId. + */ + @java.lang.Override + public int getBundleSequenceId() { + return bundleSequenceId_; + } + /** + *
+       * Monotonically increasing index for each bundle set by SDK.
+       * 
+ * + * int32 bundle_sequence_id = 1; + * @param value The bundleSequenceId to set. + * @return This builder for chaining. + */ + public Builder setBundleSequenceId(int value) { + + bundleSequenceId_ = value; + onChanged(); + return this; + } + /** + *
+       * Monotonically increasing index for each bundle set by SDK.
+       * 
+ * + * int32 bundle_sequence_id = 1; + * @return This builder for chaining. + */ + public Builder clearBundleSequenceId() { + + bundleSequenceId_ = 0; + onChanged(); + return this; + } + + private long serverTimestampOffsetMicros_ ; + /** + *
+       * Timestamp offset between collection time and upload time.
+       * 
+ * + * int64 server_timestamp_offset_micros = 2; + * @return The serverTimestampOffsetMicros. + */ + @java.lang.Override + public long getServerTimestampOffsetMicros() { + return serverTimestampOffsetMicros_; + } + /** + *
+       * Timestamp offset between collection time and upload time.
+       * 
+ * + * int64 server_timestamp_offset_micros = 2; + * @param value The serverTimestampOffsetMicros to set. + * @return This builder for chaining. + */ + public Builder setServerTimestampOffsetMicros(long value) { + + serverTimestampOffsetMicros_ = value; + onChanged(); + return this; + } + /** + *
+       * Timestamp offset between collection time and upload time.
+       * 
+ * + * int64 server_timestamp_offset_micros = 2; + * @return This builder for chaining. + */ + public Builder clearServerTimestampOffsetMicros() { + + serverTimestampOffsetMicros_ = 0L; + 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.firebase.analytics.v1.ExportBundleInfo) + } + + // @@protoc_insertion_point(class_scope:google.events.firebase.analytics.v1.ExportBundleInfo) + private static final google.events.firebase.analytics.v1.Data.ExportBundleInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new google.events.firebase.analytics.v1.Data.ExportBundleInfo(); + } + + public static google.events.firebase.analytics.v1.Data.ExportBundleInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportBundleInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExportBundleInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.ExportBundleInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LtvInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.firebase.analytics.v1.LtvInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The Lifetime Value revenue of this user.
+     * 
+ * + * double revenue = 1; + * @return The revenue. + */ + double getRevenue(); + + /** + *
+     * The currency corresponding to the revenue.
+     * 
+ * + * string currency = 2; + * @return The currency. + */ + java.lang.String getCurrency(); + /** + *
+     * The currency corresponding to the revenue.
+     * 
+ * + * string currency = 2; + * @return The bytes for currency. + */ + com.google.protobuf.ByteString + getCurrencyBytes(); + } + /** + *
+   * Lifetime Value information about this user.
+   * 
+ * + * Protobuf type {@code google.events.firebase.analytics.v1.LtvInfo} + */ + public static final class LtvInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.firebase.analytics.v1.LtvInfo) + LtvInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use LtvInfo.newBuilder() to construct. + private LtvInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LtvInfo() { + currency_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LtvInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LtvInfo( + 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 9: { + + revenue_ = input.readDouble(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + currency_ = 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.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_LtvInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_LtvInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.firebase.analytics.v1.Data.LtvInfo.class, google.events.firebase.analytics.v1.Data.LtvInfo.Builder.class); + } + + public static final int REVENUE_FIELD_NUMBER = 1; + private double revenue_; + /** + *
+     * The Lifetime Value revenue of this user.
+     * 
+ * + * double revenue = 1; + * @return The revenue. + */ + @java.lang.Override + public double getRevenue() { + return revenue_; + } + + public static final int CURRENCY_FIELD_NUMBER = 2; + private volatile java.lang.Object currency_; + /** + *
+     * The currency corresponding to the revenue.
+     * 
+ * + * string currency = 2; + * @return The currency. + */ + @java.lang.Override + public java.lang.String getCurrency() { + java.lang.Object ref = currency_; + 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(); + currency_ = s; + return s; + } + } + /** + *
+     * The currency corresponding to the revenue.
+     * 
+ * + * string currency = 2; + * @return The bytes for currency. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCurrencyBytes() { + java.lang.Object ref = currency_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currency_ = 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 (revenue_ != 0D) { + output.writeDouble(1, revenue_); + } + if (!getCurrencyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, currency_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (revenue_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, revenue_); + } + if (!getCurrencyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, currency_); + } + 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.firebase.analytics.v1.Data.LtvInfo)) { + return super.equals(obj); + } + google.events.firebase.analytics.v1.Data.LtvInfo other = (google.events.firebase.analytics.v1.Data.LtvInfo) obj; + + if (java.lang.Double.doubleToLongBits(getRevenue()) + != java.lang.Double.doubleToLongBits( + other.getRevenue())) return false; + if (!getCurrency() + .equals(other.getCurrency())) 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) + REVENUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getRevenue())); + hash = (37 * hash) + CURRENCY_FIELD_NUMBER; + hash = (53 * hash) + getCurrency().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static google.events.firebase.analytics.v1.Data.LtvInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.analytics.v1.Data.LtvInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.firebase.analytics.v1.Data.LtvInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.analytics.v1.Data.LtvInfo 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.firebase.analytics.v1.Data.LtvInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.analytics.v1.Data.LtvInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.firebase.analytics.v1.Data.LtvInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.firebase.analytics.v1.Data.LtvInfo 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.firebase.analytics.v1.Data.LtvInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static google.events.firebase.analytics.v1.Data.LtvInfo 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.firebase.analytics.v1.Data.LtvInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.firebase.analytics.v1.Data.LtvInfo 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.firebase.analytics.v1.Data.LtvInfo 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; + } + /** + *
+     * Lifetime Value information about this user.
+     * 
+ * + * Protobuf type {@code google.events.firebase.analytics.v1.LtvInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.events.firebase.analytics.v1.LtvInfo) + google.events.firebase.analytics.v1.Data.LtvInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_LtvInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_LtvInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.firebase.analytics.v1.Data.LtvInfo.class, google.events.firebase.analytics.v1.Data.LtvInfo.Builder.class); + } + + // Construct using google.events.firebase.analytics.v1.Data.LtvInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + revenue_ = 0D; + + currency_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_LtvInfo_descriptor; + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.LtvInfo getDefaultInstanceForType() { + return google.events.firebase.analytics.v1.Data.LtvInfo.getDefaultInstance(); + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.LtvInfo build() { + google.events.firebase.analytics.v1.Data.LtvInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.LtvInfo buildPartial() { + google.events.firebase.analytics.v1.Data.LtvInfo result = new google.events.firebase.analytics.v1.Data.LtvInfo(this); + result.revenue_ = revenue_; + result.currency_ = currency_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.events.firebase.analytics.v1.Data.LtvInfo) { + return mergeFrom((google.events.firebase.analytics.v1.Data.LtvInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(google.events.firebase.analytics.v1.Data.LtvInfo other) { + if (other == google.events.firebase.analytics.v1.Data.LtvInfo.getDefaultInstance()) return this; + if (other.getRevenue() != 0D) { + setRevenue(other.getRevenue()); + } + if (!other.getCurrency().isEmpty()) { + currency_ = other.currency_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.events.firebase.analytics.v1.Data.LtvInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.events.firebase.analytics.v1.Data.LtvInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private double revenue_ ; + /** + *
+       * The Lifetime Value revenue of this user.
+       * 
+ * + * double revenue = 1; + * @return The revenue. + */ + @java.lang.Override + public double getRevenue() { + return revenue_; + } + /** + *
+       * The Lifetime Value revenue of this user.
+       * 
+ * + * double revenue = 1; + * @param value The revenue to set. + * @return This builder for chaining. + */ + public Builder setRevenue(double value) { + + revenue_ = value; + onChanged(); + return this; + } + /** + *
+       * The Lifetime Value revenue of this user.
+       * 
+ * + * double revenue = 1; + * @return This builder for chaining. + */ + public Builder clearRevenue() { + + revenue_ = 0D; + onChanged(); + return this; + } + + private java.lang.Object currency_ = ""; + /** + *
+       * The currency corresponding to the revenue.
+       * 
+ * + * string currency = 2; + * @return The currency. + */ + public java.lang.String getCurrency() { + java.lang.Object ref = currency_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currency_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The currency corresponding to the revenue.
+       * 
+ * + * string currency = 2; + * @return The bytes for currency. + */ + public com.google.protobuf.ByteString + getCurrencyBytes() { + java.lang.Object ref = currency_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currency_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The currency corresponding to the revenue.
+       * 
+ * + * string currency = 2; + * @param value The currency to set. + * @return This builder for chaining. + */ + public Builder setCurrency( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + currency_ = value; + onChanged(); + return this; + } + /** + *
+       * The currency corresponding to the revenue.
+       * 
+ * + * string currency = 2; + * @return This builder for chaining. + */ + public Builder clearCurrency() { + + currency_ = getDefaultInstance().getCurrency(); + onChanged(); + return this; + } + /** + *
+       * The currency corresponding to the revenue.
+       * 
+ * + * string currency = 2; + * @param value The bytes for currency to set. + * @return This builder for chaining. + */ + public Builder setCurrencyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + currency_ = 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.firebase.analytics.v1.LtvInfo) + } + + // @@protoc_insertion_point(class_scope:google.events.firebase.analytics.v1.LtvInfo) + private static final google.events.firebase.analytics.v1.Data.LtvInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new google.events.firebase.analytics.v1.Data.LtvInfo(); + } + + public static google.events.firebase.analytics.v1.Data.LtvInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LtvInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LtvInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.LtvInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EventDimensionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.firebase.analytics.v1.EventDimensions) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The date on which this event was logged.
+     * (YYYYMMDD format in the registered timezone of your app.)
+     * 
+ * + * string date = 6; + * @return The date. + */ + java.lang.String getDate(); + /** + *
+     * The date on which this event was logged.
+     * (YYYYMMDD format in the registered timezone of your app.)
+     * 
+ * + * string date = 6; + * @return The bytes for date. + */ + com.google.protobuf.ByteString + getDateBytes(); + + /** + *
+     * The name of this event.
+     * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+     * The name of this event.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * A repeated record of the parameters associated with this event.
+     * 
+ * + * map<string, .google.events.firebase.analytics.v1.AnalyticsValue> params = 2; + */ + int getParamsCount(); + /** + *
+     * A repeated record of the parameters associated with this event.
+     * 
+ * + * map<string, .google.events.firebase.analytics.v1.AnalyticsValue> params = 2; + */ + boolean containsParams( + java.lang.String key); + /** + * Use {@link #getParamsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getParams(); + /** + *
+     * A repeated record of the parameters associated with this event.
+     * 
+ * + * map<string, .google.events.firebase.analytics.v1.AnalyticsValue> params = 2; + */ + java.util.Map + getParamsMap(); + /** + *
+     * A repeated record of the parameters associated with this event.
+     * 
+ * + * map<string, .google.events.firebase.analytics.v1.AnalyticsValue> params = 2; + */ + + google.events.firebase.analytics.v1.Data.AnalyticsValue getParamsOrDefault( + java.lang.String key, + google.events.firebase.analytics.v1.Data.AnalyticsValue defaultValue); + /** + *
+     * A repeated record of the parameters associated with this event.
+     * 
+ * + * map<string, .google.events.firebase.analytics.v1.AnalyticsValue> params = 2; + */ + + google.events.firebase.analytics.v1.Data.AnalyticsValue getParamsOrThrow( + java.lang.String key); + + /** + *
+     * UTC client time when the event happened.
+     * 
+ * + * int64 timestamp_micros = 4; + * @return The timestampMicros. + */ + long getTimestampMicros(); + + /** + *
+     * UTC client time when the previous event happened.
+     * 
+ * + * int64 previous_timestamp_micros = 5; + * @return The previousTimestampMicros. + */ + long getPreviousTimestampMicros(); + + /** + *
+     * Value param in USD.
+     * 
+ * + * double value_in_usd = 7; + * @return The valueInUsd. + */ + double getValueInUsd(); + } + /** + *
+   * Message containing information pertaining to the event.
+   * 
+ * + * Protobuf type {@code google.events.firebase.analytics.v1.EventDimensions} + */ + public static final class EventDimensions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.firebase.analytics.v1.EventDimensions) + EventDimensionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use EventDimensions.newBuilder() to construct. + private EventDimensions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EventDimensions() { + date_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new EventDimensions(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private EventDimensions( + 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)) { + params_ = com.google.protobuf.MapField.newMapField( + ParamsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + params__ = input.readMessage( + ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + params_.getMutableMap().put( + params__.getKey(), params__.getValue()); + break; + } + case 32: { + + timestampMicros_ = input.readInt64(); + break; + } + case 40: { + + previousTimestampMicros_ = input.readInt64(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + date_ = s; + break; + } + case 57: { + + valueInUsd_ = input.readDouble(); + 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.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_EventDimensions_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetParams(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_EventDimensions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.firebase.analytics.v1.Data.EventDimensions.class, google.events.firebase.analytics.v1.Data.EventDimensions.Builder.class); + } + + public static final int DATE_FIELD_NUMBER = 6; + private volatile java.lang.Object date_; + /** + *
+     * The date on which this event was logged.
+     * (YYYYMMDD format in the registered timezone of your app.)
+     * 
+ * + * string date = 6; + * @return The date. + */ + @java.lang.Override + public java.lang.String getDate() { + java.lang.Object ref = date_; + 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(); + date_ = s; + return s; + } + } + /** + *
+     * The date on which this event was logged.
+     * (YYYYMMDD format in the registered timezone of your app.)
+     * 
+ * + * string date = 6; + * @return The bytes for date. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDateBytes() { + java.lang.Object ref = date_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + date_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+     * The name of this event.
+     * 
+ * + * 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 name of this event.
+     * 
+ * + * 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 PARAMS_FIELD_NUMBER = 2; + private static final class ParamsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, google.events.firebase.analytics.v1.Data.AnalyticsValue> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_EventDimensions_ParamsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + google.events.firebase.analytics.v1.Data.AnalyticsValue.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, google.events.firebase.analytics.v1.Data.AnalyticsValue> params_; + private com.google.protobuf.MapField + internalGetParams() { + if (params_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParamsDefaultEntryHolder.defaultEntry); + } + return params_; + } + + public int getParamsCount() { + return internalGetParams().getMap().size(); + } + /** + *
+     * A repeated record of the parameters associated with this event.
+     * 
+ * + * map<string, .google.events.firebase.analytics.v1.AnalyticsValue> params = 2; + */ + + @java.lang.Override + public boolean containsParams( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetParams().getMap().containsKey(key); + } + /** + * Use {@link #getParamsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getParams() { + return getParamsMap(); + } + /** + *
+     * A repeated record of the parameters associated with this event.
+     * 
+ * + * map<string, .google.events.firebase.analytics.v1.AnalyticsValue> params = 2; + */ + @java.lang.Override + + public java.util.Map getParamsMap() { + return internalGetParams().getMap(); + } + /** + *
+     * A repeated record of the parameters associated with this event.
+     * 
+ * + * map<string, .google.events.firebase.analytics.v1.AnalyticsValue> params = 2; + */ + @java.lang.Override + + public google.events.firebase.analytics.v1.Data.AnalyticsValue getParamsOrDefault( + java.lang.String key, + google.events.firebase.analytics.v1.Data.AnalyticsValue defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParams().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * A repeated record of the parameters associated with this event.
+     * 
+ * + * map<string, .google.events.firebase.analytics.v1.AnalyticsValue> params = 2; + */ + @java.lang.Override + + public google.events.firebase.analytics.v1.Data.AnalyticsValue getParamsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParams().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int TIMESTAMP_MICROS_FIELD_NUMBER = 4; + private long timestampMicros_; + /** + *
+     * UTC client time when the event happened.
+     * 
+ * + * int64 timestamp_micros = 4; + * @return The timestampMicros. + */ + @java.lang.Override + public long getTimestampMicros() { + return timestampMicros_; + } + + public static final int PREVIOUS_TIMESTAMP_MICROS_FIELD_NUMBER = 5; + private long previousTimestampMicros_; + /** + *
+     * UTC client time when the previous event happened.
+     * 
+ * + * int64 previous_timestamp_micros = 5; + * @return The previousTimestampMicros. + */ + @java.lang.Override + public long getPreviousTimestampMicros() { + return previousTimestampMicros_; + } + + public static final int VALUE_IN_USD_FIELD_NUMBER = 7; + private double valueInUsd_; + /** + *
+     * Value param in USD.
+     * 
+ * + * double value_in_usd = 7; + * @return The valueInUsd. + */ + @java.lang.Override + public double getValueInUsd() { + return valueInUsd_; + } + + 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, + internalGetParams(), + ParamsDefaultEntryHolder.defaultEntry, + 2); + if (timestampMicros_ != 0L) { + output.writeInt64(4, timestampMicros_); + } + if (previousTimestampMicros_ != 0L) { + output.writeInt64(5, previousTimestampMicros_); + } + if (!getDateBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, date_); + } + if (valueInUsd_ != 0D) { + output.writeDouble(7, valueInUsd_); + } + 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 entry + : internalGetParams().getMap().entrySet()) { + com.google.protobuf.MapEntry + params__ = ParamsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, params__); + } + if (timestampMicros_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, timestampMicros_); + } + if (previousTimestampMicros_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, previousTimestampMicros_); + } + if (!getDateBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, date_); + } + if (valueInUsd_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(7, valueInUsd_); + } + 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.firebase.analytics.v1.Data.EventDimensions)) { + return super.equals(obj); + } + google.events.firebase.analytics.v1.Data.EventDimensions other = (google.events.firebase.analytics.v1.Data.EventDimensions) obj; + + if (!getDate() + .equals(other.getDate())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!internalGetParams().equals( + other.internalGetParams())) return false; + if (getTimestampMicros() + != other.getTimestampMicros()) return false; + if (getPreviousTimestampMicros() + != other.getPreviousTimestampMicros()) return false; + if (java.lang.Double.doubleToLongBits(getValueInUsd()) + != java.lang.Double.doubleToLongBits( + other.getValueInUsd())) 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) + DATE_FIELD_NUMBER; + hash = (53 * hash) + getDate().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (!internalGetParams().getMap().isEmpty()) { + hash = (37 * hash) + PARAMS_FIELD_NUMBER; + hash = (53 * hash) + internalGetParams().hashCode(); + } + hash = (37 * hash) + TIMESTAMP_MICROS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTimestampMicros()); + hash = (37 * hash) + PREVIOUS_TIMESTAMP_MICROS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPreviousTimestampMicros()); + hash = (37 * hash) + VALUE_IN_USD_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getValueInUsd())); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static google.events.firebase.analytics.v1.Data.EventDimensions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.analytics.v1.Data.EventDimensions parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.firebase.analytics.v1.Data.EventDimensions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.analytics.v1.Data.EventDimensions 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.firebase.analytics.v1.Data.EventDimensions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.analytics.v1.Data.EventDimensions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.firebase.analytics.v1.Data.EventDimensions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.firebase.analytics.v1.Data.EventDimensions 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.firebase.analytics.v1.Data.EventDimensions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static google.events.firebase.analytics.v1.Data.EventDimensions 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.firebase.analytics.v1.Data.EventDimensions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.firebase.analytics.v1.Data.EventDimensions 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.firebase.analytics.v1.Data.EventDimensions 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; + } + /** + *
+     * Message containing information pertaining to the event.
+     * 
+ * + * Protobuf type {@code google.events.firebase.analytics.v1.EventDimensions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.events.firebase.analytics.v1.EventDimensions) + google.events.firebase.analytics.v1.Data.EventDimensionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_EventDimensions_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetParams(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 2: + return internalGetMutableParams(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_EventDimensions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.firebase.analytics.v1.Data.EventDimensions.class, google.events.firebase.analytics.v1.Data.EventDimensions.Builder.class); + } + + // Construct using google.events.firebase.analytics.v1.Data.EventDimensions.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + date_ = ""; + + name_ = ""; + + internalGetMutableParams().clear(); + timestampMicros_ = 0L; + + previousTimestampMicros_ = 0L; + + valueInUsd_ = 0D; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.events.firebase.analytics.v1.Data.internal_static_google_events_firebase_analytics_v1_EventDimensions_descriptor; + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.EventDimensions getDefaultInstanceForType() { + return google.events.firebase.analytics.v1.Data.EventDimensions.getDefaultInstance(); + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.EventDimensions build() { + google.events.firebase.analytics.v1.Data.EventDimensions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.EventDimensions buildPartial() { + google.events.firebase.analytics.v1.Data.EventDimensions result = new google.events.firebase.analytics.v1.Data.EventDimensions(this); + int from_bitField0_ = bitField0_; + result.date_ = date_; + result.name_ = name_; + result.params_ = internalGetParams(); + result.params_.makeImmutable(); + result.timestampMicros_ = timestampMicros_; + result.previousTimestampMicros_ = previousTimestampMicros_; + result.valueInUsd_ = valueInUsd_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.events.firebase.analytics.v1.Data.EventDimensions) { + return mergeFrom((google.events.firebase.analytics.v1.Data.EventDimensions)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(google.events.firebase.analytics.v1.Data.EventDimensions other) { + if (other == google.events.firebase.analytics.v1.Data.EventDimensions.getDefaultInstance()) return this; + if (!other.getDate().isEmpty()) { + date_ = other.date_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + internalGetMutableParams().mergeFrom( + other.internalGetParams()); + if (other.getTimestampMicros() != 0L) { + setTimestampMicros(other.getTimestampMicros()); + } + if (other.getPreviousTimestampMicros() != 0L) { + setPreviousTimestampMicros(other.getPreviousTimestampMicros()); + } + if (other.getValueInUsd() != 0D) { + setValueInUsd(other.getValueInUsd()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.events.firebase.analytics.v1.Data.EventDimensions parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.events.firebase.analytics.v1.Data.EventDimensions) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object date_ = ""; + /** + *
+       * The date on which this event was logged.
+       * (YYYYMMDD format in the registered timezone of your app.)
+       * 
+ * + * string date = 6; + * @return The date. + */ + public java.lang.String getDate() { + java.lang.Object ref = date_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + date_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The date on which this event was logged.
+       * (YYYYMMDD format in the registered timezone of your app.)
+       * 
+ * + * string date = 6; + * @return The bytes for date. + */ + public com.google.protobuf.ByteString + getDateBytes() { + java.lang.Object ref = date_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + date_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The date on which this event was logged.
+       * (YYYYMMDD format in the registered timezone of your app.)
+       * 
+ * + * string date = 6; + * @param value The date to set. + * @return This builder for chaining. + */ + public Builder setDate( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + date_ = value; + onChanged(); + return this; + } + /** + *
+       * The date on which this event was logged.
+       * (YYYYMMDD format in the registered timezone of your app.)
+       * 
+ * + * string date = 6; + * @return This builder for chaining. + */ + public Builder clearDate() { + + date_ = getDefaultInstance().getDate(); + onChanged(); + return this; + } + /** + *
+       * The date on which this event was logged.
+       * (YYYYMMDD format in the registered timezone of your app.)
+       * 
+ * + * string date = 6; + * @param value The bytes for date to set. + * @return This builder for chaining. + */ + public Builder setDateBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + date_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * The name of this event.
+       * 
+ * + * 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 name of this event.
+       * 
+ * + * 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 name of this event.
+       * 
+ * + * 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 name of this event.
+       * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * The name of this event.
+       * 
+ * + * 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.firebase.analytics.v1.Data.AnalyticsValue> params_; + private com.google.protobuf.MapField + internalGetParams() { + if (params_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParamsDefaultEntryHolder.defaultEntry); + } + return params_; + } + private com.google.protobuf.MapField + internalGetMutableParams() { + onChanged();; + if (params_ == null) { + params_ = com.google.protobuf.MapField.newMapField( + ParamsDefaultEntryHolder.defaultEntry); + } + if (!params_.isMutable()) { + params_ = params_.copy(); + } + return params_; + } + + public int getParamsCount() { + return internalGetParams().getMap().size(); + } + /** + *
+       * A repeated record of the parameters associated with this event.
+       * 
+ * + * map<string, .google.events.firebase.analytics.v1.AnalyticsValue> params = 2; + */ + + @java.lang.Override + public boolean containsParams( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetParams().getMap().containsKey(key); + } + /** + * Use {@link #getParamsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getParams() { + return getParamsMap(); + } + /** + *
+       * A repeated record of the parameters associated with this event.
+       * 
+ * + * map<string, .google.events.firebase.analytics.v1.AnalyticsValue> params = 2; + */ + @java.lang.Override + + public java.util.Map getParamsMap() { + return internalGetParams().getMap(); + } + /** + *
+       * A repeated record of the parameters associated with this event.
+       * 
+ * + * map<string, .google.events.firebase.analytics.v1.AnalyticsValue> params = 2; + */ + @java.lang.Override + + public google.events.firebase.analytics.v1.Data.AnalyticsValue getParamsOrDefault( + java.lang.String key, + google.events.firebase.analytics.v1.Data.AnalyticsValue defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParams().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * A repeated record of the parameters associated with this event.
+       * 
+ * + * map<string, .google.events.firebase.analytics.v1.AnalyticsValue> params = 2; + */ + @java.lang.Override + + public google.events.firebase.analytics.v1.Data.AnalyticsValue getParamsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParams().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearParams() { + internalGetMutableParams().getMutableMap() + .clear(); + return this; + } + /** + *
+       * A repeated record of the parameters associated with this event.
+       * 
+ * + * map<string, .google.events.firebase.analytics.v1.AnalyticsValue> params = 2; + */ + + public Builder removeParams( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableParams().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableParams() { + return internalGetMutableParams().getMutableMap(); + } + /** + *
+       * A repeated record of the parameters associated with this event.
+       * 
+ * + * map<string, .google.events.firebase.analytics.v1.AnalyticsValue> params = 2; + */ + public Builder putParams( + java.lang.String key, + google.events.firebase.analytics.v1.Data.AnalyticsValue value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableParams().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * A repeated record of the parameters associated with this event.
+       * 
+ * + * map<string, .google.events.firebase.analytics.v1.AnalyticsValue> params = 2; + */ + + public Builder putAllParams( + java.util.Map values) { + internalGetMutableParams().getMutableMap() + .putAll(values); + return this; + } + + private long timestampMicros_ ; + /** + *
+       * UTC client time when the event happened.
+       * 
+ * + * int64 timestamp_micros = 4; + * @return The timestampMicros. + */ + @java.lang.Override + public long getTimestampMicros() { + return timestampMicros_; + } + /** + *
+       * UTC client time when the event happened.
+       * 
+ * + * int64 timestamp_micros = 4; + * @param value The timestampMicros to set. + * @return This builder for chaining. + */ + public Builder setTimestampMicros(long value) { + + timestampMicros_ = value; + onChanged(); + return this; + } + /** + *
+       * UTC client time when the event happened.
+       * 
+ * + * int64 timestamp_micros = 4; + * @return This builder for chaining. + */ + public Builder clearTimestampMicros() { + + timestampMicros_ = 0L; + onChanged(); + return this; + } + + private long previousTimestampMicros_ ; + /** + *
+       * UTC client time when the previous event happened.
+       * 
+ * + * int64 previous_timestamp_micros = 5; + * @return The previousTimestampMicros. + */ + @java.lang.Override + public long getPreviousTimestampMicros() { + return previousTimestampMicros_; + } + /** + *
+       * UTC client time when the previous event happened.
+       * 
+ * + * int64 previous_timestamp_micros = 5; + * @param value The previousTimestampMicros to set. + * @return This builder for chaining. + */ + public Builder setPreviousTimestampMicros(long value) { + + previousTimestampMicros_ = value; + onChanged(); + return this; + } + /** + *
+       * UTC client time when the previous event happened.
+       * 
+ * + * int64 previous_timestamp_micros = 5; + * @return This builder for chaining. + */ + public Builder clearPreviousTimestampMicros() { + + previousTimestampMicros_ = 0L; + onChanged(); + return this; + } + + private double valueInUsd_ ; + /** + *
+       * Value param in USD.
+       * 
+ * + * double value_in_usd = 7; + * @return The valueInUsd. + */ + @java.lang.Override + public double getValueInUsd() { + return valueInUsd_; + } + /** + *
+       * Value param in USD.
+       * 
+ * + * double value_in_usd = 7; + * @param value The valueInUsd to set. + * @return This builder for chaining. + */ + public Builder setValueInUsd(double value) { + + valueInUsd_ = value; + onChanged(); + return this; + } + /** + *
+       * Value param in USD.
+       * 
+ * + * double value_in_usd = 7; + * @return This builder for chaining. + */ + public Builder clearValueInUsd() { + + valueInUsd_ = 0D; + 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.firebase.analytics.v1.EventDimensions) + } + + // @@protoc_insertion_point(class_scope:google.events.firebase.analytics.v1.EventDimensions) + private static final google.events.firebase.analytics.v1.Data.EventDimensions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new google.events.firebase.analytics.v1.Data.EventDimensions(); + } + + public static google.events.firebase.analytics.v1.Data.EventDimensions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventDimensions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventDimensions(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public google.events.firebase.analytics.v1.Data.EventDimensions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_firebase_analytics_v1_AnalyticsLogData_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_firebase_analytics_v1_AnalyticsLogData_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_firebase_analytics_v1_UserDimensions_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_firebase_analytics_v1_UserDimensions_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_firebase_analytics_v1_UserDimensions_UserPropertiesEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_firebase_analytics_v1_UserDimensions_UserPropertiesEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_firebase_analytics_v1_UserPropertyValue_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_firebase_analytics_v1_UserPropertyValue_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_firebase_analytics_v1_AnalyticsValue_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_firebase_analytics_v1_AnalyticsValue_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_firebase_analytics_v1_DeviceInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_firebase_analytics_v1_DeviceInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_firebase_analytics_v1_AppInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_firebase_analytics_v1_AppInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_firebase_analytics_v1_GeoInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_firebase_analytics_v1_GeoInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_firebase_analytics_v1_TrafficSource_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_firebase_analytics_v1_TrafficSource_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_firebase_analytics_v1_ExportBundleInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_firebase_analytics_v1_ExportBundleInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_firebase_analytics_v1_LtvInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_firebase_analytics_v1_LtvInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_firebase_analytics_v1_EventDimensions_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_firebase_analytics_v1_EventDimensions_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_firebase_analytics_v1_EventDimensions_ParamsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_firebase_analytics_v1_EventDimensions_ParamsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n.google/events/firebase/analytics/v1/da" + + "ta.proto\022#google.events.firebase.analyti" + + "cs.v1\"\242\001\n\020AnalyticsLogData\022E\n\010user_dim\030\001" + + " \001(\01323.google.events.firebase.analytics." + + "v1.UserDimensions\022G\n\tevent_dim\030\002 \003(\01324.g" + + "oogle.events.firebase.analytics.v1.Event" + + "Dimensions\"\265\005\n\016UserDimensions\022\017\n\007user_id" + + "\030\001 \001(\t\022#\n\033first_open_timestamp_micros\030\002 " + + "\001(\003\022`\n\017user_properties\030\003 \003(\0132G.google.ev" + + "ents.firebase.analytics.v1.UserDimension" + + "s.UserPropertiesEntry\022D\n\013device_info\030\004 \001" + + "(\0132/.google.events.firebase.analytics.v1" + + ".DeviceInfo\022>\n\010geo_info\030\005 \001(\0132,.google.e" + + "vents.firebase.analytics.v1.GeoInfo\022>\n\010a" + + "pp_info\030\006 \001(\0132,.google.events.firebase.a" + + "nalytics.v1.AppInfo\022J\n\016traffic_source\030\007 " + + "\001(\01322.google.events.firebase.analytics.v" + + "1.TrafficSource\022J\n\013bundle_info\030\010 \001(\01325.g" + + "oogle.events.firebase.analytics.v1.Expor" + + "tBundleInfo\022>\n\010ltv_info\030\t \001(\0132,.google.e" + + "vents.firebase.analytics.v1.LtvInfo\032m\n\023U" + + "serPropertiesEntry\022\013\n\003key\030\001 \001(\t\022E\n\005value" + + "\030\002 \001(\01326.google.events.firebase.analytic" + + "s.v1.UserPropertyValue:\0028\001\"\202\001\n\021UserPrope" + + "rtyValue\022B\n\005value\030\001 \001(\01323.google.events." + + "firebase.analytics.v1.AnalyticsValue\022\032\n\022" + + "set_timestamp_usec\030\002 \001(\003\022\r\n\005index\030\003 \001(\005\"" + + "{\n\016AnalyticsValue\022\026\n\014string_value\030\001 \001(\tH" + + "\000\022\023\n\tint_value\030\002 \001(\003H\000\022\025\n\013float_value\030\003 " + + "\001(\002H\000\022\026\n\014double_value\030\004 \001(\001H\000B\r\n\013param_v" + + "alue\"\300\002\n\nDeviceInfo\022\027\n\017device_category\030\001" + + " \001(\t\022\031\n\021mobile_brand_name\030\002 \001(\t\022\031\n\021mobil" + + "e_model_name\030\003 \001(\t\022\035\n\025mobile_marketing_n" + + "ame\030\004 \001(\t\022\024\n\014device_model\030\014 \001(\t\022\030\n\020platf" + + "orm_version\030\006 \001(\t\022\021\n\tdevice_id\030\007 \001(\t\022\034\n\024" + + "resettable_device_id\030\010 \001(\t\022\035\n\025user_defau" + + "lt_language\030\t \001(\t\022\'\n\037device_time_zone_of" + + "fset_seconds\030\n \001(\005\022\033\n\023limited_ad_trackin" + + "g\030\013 \001(\010\"p\n\007AppInfo\022\023\n\013app_version\030\001 \001(\t\022" + + "\027\n\017app_instance_id\030\002 \001(\t\022\021\n\tapp_store\030\003 " + + "\001(\t\022\024\n\014app_platform\030\004 \001(\t\022\016\n\006app_id\030\005 \001(" + + "\t\"K\n\007GeoInfo\022\021\n\tcontinent\030\001 \001(\t\022\017\n\007count" + + "ry\030\002 \001(\t\022\016\n\006region\030\003 \001(\t\022\014\n\004city\030\004 \001(\t\"k" + + "\n\rTrafficSource\022\036\n\026user_acquired_campaig" + + "n\030\002 \001(\t\022\034\n\024user_acquired_source\030\003 \001(\t\022\034\n" + + "\024user_acquired_medium\030\004 \001(\t\"V\n\020ExportBun" + + "dleInfo\022\032\n\022bundle_sequence_id\030\001 \001(\005\022&\n\036s" + + "erver_timestamp_offset_micros\030\002 \001(\003\",\n\007L" + + "tvInfo\022\017\n\007revenue\030\001 \001(\001\022\020\n\010currency\030\002 \001(" + + "\t\"\266\002\n\017EventDimensions\022\014\n\004date\030\006 \001(\t\022\014\n\004n" + + "ame\030\001 \001(\t\022P\n\006params\030\002 \003(\0132@.google.event" + + "s.firebase.analytics.v1.EventDimensions." + + "ParamsEntry\022\030\n\020timestamp_micros\030\004 \001(\003\022!\n" + + "\031previous_timestamp_micros\030\005 \001(\003\022\024\n\014valu" + + "e_in_usd\030\007 \001(\001\032b\n\013ParamsEntry\022\013\n\003key\030\001 \001" + + "(\t\022B\n\005value\030\002 \001(\01323.google.events.fireba" + + "se.analytics.v1.AnalyticsValue:\0028\001B/\252\002,G" + + "oogle.Events.Protobuf.Firebase.Analytics" + + ".V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_events_firebase_analytics_v1_AnalyticsLogData_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_events_firebase_analytics_v1_AnalyticsLogData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_firebase_analytics_v1_AnalyticsLogData_descriptor, + new java.lang.String[] { "UserDim", "EventDim", }); + internal_static_google_events_firebase_analytics_v1_UserDimensions_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_events_firebase_analytics_v1_UserDimensions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_firebase_analytics_v1_UserDimensions_descriptor, + new java.lang.String[] { "UserId", "FirstOpenTimestampMicros", "UserProperties", "DeviceInfo", "GeoInfo", "AppInfo", "TrafficSource", "BundleInfo", "LtvInfo", }); + internal_static_google_events_firebase_analytics_v1_UserDimensions_UserPropertiesEntry_descriptor = + internal_static_google_events_firebase_analytics_v1_UserDimensions_descriptor.getNestedTypes().get(0); + internal_static_google_events_firebase_analytics_v1_UserDimensions_UserPropertiesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_firebase_analytics_v1_UserDimensions_UserPropertiesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_events_firebase_analytics_v1_UserPropertyValue_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_events_firebase_analytics_v1_UserPropertyValue_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_firebase_analytics_v1_UserPropertyValue_descriptor, + new java.lang.String[] { "Value", "SetTimestampUsec", "Index", }); + internal_static_google_events_firebase_analytics_v1_AnalyticsValue_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_events_firebase_analytics_v1_AnalyticsValue_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_firebase_analytics_v1_AnalyticsValue_descriptor, + new java.lang.String[] { "StringValue", "IntValue", "FloatValue", "DoubleValue", "ParamValue", }); + internal_static_google_events_firebase_analytics_v1_DeviceInfo_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_events_firebase_analytics_v1_DeviceInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_firebase_analytics_v1_DeviceInfo_descriptor, + new java.lang.String[] { "DeviceCategory", "MobileBrandName", "MobileModelName", "MobileMarketingName", "DeviceModel", "PlatformVersion", "DeviceId", "ResettableDeviceId", "UserDefaultLanguage", "DeviceTimeZoneOffsetSeconds", "LimitedAdTracking", }); + internal_static_google_events_firebase_analytics_v1_AppInfo_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_events_firebase_analytics_v1_AppInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_firebase_analytics_v1_AppInfo_descriptor, + new java.lang.String[] { "AppVersion", "AppInstanceId", "AppStore", "AppPlatform", "AppId", }); + internal_static_google_events_firebase_analytics_v1_GeoInfo_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_events_firebase_analytics_v1_GeoInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_firebase_analytics_v1_GeoInfo_descriptor, + new java.lang.String[] { "Continent", "Country", "Region", "City", }); + internal_static_google_events_firebase_analytics_v1_TrafficSource_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_events_firebase_analytics_v1_TrafficSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_firebase_analytics_v1_TrafficSource_descriptor, + new java.lang.String[] { "UserAcquiredCampaign", "UserAcquiredSource", "UserAcquiredMedium", }); + internal_static_google_events_firebase_analytics_v1_ExportBundleInfo_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_events_firebase_analytics_v1_ExportBundleInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_firebase_analytics_v1_ExportBundleInfo_descriptor, + new java.lang.String[] { "BundleSequenceId", "ServerTimestampOffsetMicros", }); + internal_static_google_events_firebase_analytics_v1_LtvInfo_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_events_firebase_analytics_v1_LtvInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_firebase_analytics_v1_LtvInfo_descriptor, + new java.lang.String[] { "Revenue", "Currency", }); + internal_static_google_events_firebase_analytics_v1_EventDimensions_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_events_firebase_analytics_v1_EventDimensions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_firebase_analytics_v1_EventDimensions_descriptor, + new java.lang.String[] { "Date", "Name", "Params", "TimestampMicros", "PreviousTimestampMicros", "ValueInUsd", }); + internal_static_google_events_firebase_analytics_v1_EventDimensions_ParamsEntry_descriptor = + internal_static_google_events_firebase_analytics_v1_EventDimensions_descriptor.getNestedTypes().get(0); + internal_static_google_events_firebase_analytics_v1_EventDimensions_ParamsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_firebase_analytics_v1_EventDimensions_ParamsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/google/events/firebase/auth/v1/Data.java b/src/google/events/firebase/auth/v1/Data.java new file mode 100644 index 00000000..99a5e508 --- /dev/null +++ b/src/google/events/firebase/auth/v1/Data.java @@ -0,0 +1,4964 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/events/firebase/auth/v1/data.proto + +package google.events.firebase.auth.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 AuthEventDataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.firebase.auth.v1.AuthEventData) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The user identifier in the Firebase app.
+     * 
+ * + * string uid = 1; + * @return The uid. + */ + java.lang.String getUid(); + /** + *
+     * The user identifier in the Firebase app.
+     * 
+ * + * string uid = 1; + * @return The bytes for uid. + */ + com.google.protobuf.ByteString + getUidBytes(); + + /** + *
+     * The user's primary email, if set.
+     * 
+ * + * string email = 2; + * @return The email. + */ + java.lang.String getEmail(); + /** + *
+     * The user's primary email, if set.
+     * 
+ * + * string email = 2; + * @return The bytes for email. + */ + com.google.protobuf.ByteString + getEmailBytes(); + + /** + *
+     * Whether or not the user's primary email is verified.
+     * 
+ * + * bool email_verified = 3; + * @return The emailVerified. + */ + boolean getEmailVerified(); + + /** + *
+     * The user's display name.
+     * 
+ * + * string display_name = 4; + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + *
+     * The user's display name.
+     * 
+ * + * string display_name = 4; + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString + getDisplayNameBytes(); + + /** + *
+     * The user's photo URL.
+     * 
+ * + * string photo_URL = 5; + * @return The photoURL. + */ + java.lang.String getPhotoURL(); + /** + *
+     * The user's photo URL.
+     * 
+ * + * string photo_URL = 5; + * @return The bytes for photoURL. + */ + com.google.protobuf.ByteString + getPhotoURLBytes(); + + /** + *
+     * Whether the user is disabled.
+     * 
+ * + * bool disabled = 6; + * @return The disabled. + */ + boolean getDisabled(); + + /** + *
+     * Additional metadata about the user.
+     * 
+ * + * .google.events.firebase.auth.v1.UserMetadata metadata = 7; + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + /** + *
+     * Additional metadata about the user.
+     * 
+ * + * .google.events.firebase.auth.v1.UserMetadata metadata = 7; + * @return The metadata. + */ + google.events.firebase.auth.v1.Data.UserMetadata getMetadata(); + /** + *
+     * Additional metadata about the user.
+     * 
+ * + * .google.events.firebase.auth.v1.UserMetadata metadata = 7; + */ + google.events.firebase.auth.v1.Data.UserMetadataOrBuilder getMetadataOrBuilder(); + + /** + *
+     * User's info at the providers
+     * 
+ * + * repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8; + */ + java.util.List + getProviderDataList(); + /** + *
+     * User's info at the providers
+     * 
+ * + * repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8; + */ + google.events.firebase.auth.v1.Data.UserInfo getProviderData(int index); + /** + *
+     * User's info at the providers
+     * 
+ * + * repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8; + */ + int getProviderDataCount(); + /** + *
+     * User's info at the providers
+     * 
+ * + * repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8; + */ + java.util.List + getProviderDataOrBuilderList(); + /** + *
+     * User's info at the providers
+     * 
+ * + * repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8; + */ + google.events.firebase.auth.v1.Data.UserInfoOrBuilder getProviderDataOrBuilder( + int index); + + /** + *
+     * The user's phone number.
+     * 
+ * + * string phone_number = 9; + * @return The phoneNumber. + */ + java.lang.String getPhoneNumber(); + /** + *
+     * The user's phone number.
+     * 
+ * + * string phone_number = 9; + * @return The bytes for phoneNumber. + */ + com.google.protobuf.ByteString + getPhoneNumberBytes(); + + /** + *
+     * User's custom claims, typically used to define user roles and propagated
+     * to an authenticated user's ID token.
+     * 
+ * + * .google.protobuf.Struct custom_claims = 10; + * @return Whether the customClaims field is set. + */ + boolean hasCustomClaims(); + /** + *
+     * User's custom claims, typically used to define user roles and propagated
+     * to an authenticated user's ID token.
+     * 
+ * + * .google.protobuf.Struct custom_claims = 10; + * @return The customClaims. + */ + com.google.protobuf.Struct getCustomClaims(); + /** + *
+     * User's custom claims, typically used to define user roles and propagated
+     * to an authenticated user's ID token.
+     * 
+ * + * .google.protobuf.Struct custom_claims = 10; + */ + com.google.protobuf.StructOrBuilder getCustomClaimsOrBuilder(); + } + /** + *
+   * The data within all Firebase Auth events
+   * 
+ * + * Protobuf type {@code google.events.firebase.auth.v1.AuthEventData} + */ + public static final class AuthEventData extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.firebase.auth.v1.AuthEventData) + AuthEventDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use AuthEventData.newBuilder() to construct. + private AuthEventData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AuthEventData() { + uid_ = ""; + email_ = ""; + displayName_ = ""; + photoURL_ = ""; + providerData_ = java.util.Collections.emptyList(); + phoneNumber_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AuthEventData(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AuthEventData( + 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(); + + uid_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + email_ = s; + break; + } + case 24: { + + emailVerified_ = input.readBool(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + photoURL_ = s; + break; + } + case 48: { + + disabled_ = input.readBool(); + break; + } + case 58: { + google.events.firebase.auth.v1.Data.UserMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(google.events.firebase.auth.v1.Data.UserMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + providerData_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + providerData_.add( + input.readMessage(google.events.firebase.auth.v1.Data.UserInfo.parser(), extensionRegistry)); + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + phoneNumber_ = s; + break; + } + case 82: { + com.google.protobuf.Struct.Builder subBuilder = null; + if (customClaims_ != null) { + subBuilder = customClaims_.toBuilder(); + } + customClaims_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customClaims_); + customClaims_ = subBuilder.buildPartial(); + } + + 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)) { + providerData_ = java.util.Collections.unmodifiableList(providerData_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.firebase.auth.v1.Data.internal_static_google_events_firebase_auth_v1_AuthEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.firebase.auth.v1.Data.internal_static_google_events_firebase_auth_v1_AuthEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.firebase.auth.v1.Data.AuthEventData.class, google.events.firebase.auth.v1.Data.AuthEventData.Builder.class); + } + + public static final int UID_FIELD_NUMBER = 1; + private volatile java.lang.Object uid_; + /** + *
+     * The user identifier in the Firebase app.
+     * 
+ * + * string uid = 1; + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + 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(); + uid_ = s; + return s; + } + } + /** + *
+     * The user identifier in the Firebase app.
+     * 
+ * + * string uid = 1; + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EMAIL_FIELD_NUMBER = 2; + private volatile java.lang.Object email_; + /** + *
+     * The user's primary email, if set.
+     * 
+ * + * string email = 2; + * @return The email. + */ + @java.lang.Override + public java.lang.String getEmail() { + java.lang.Object ref = email_; + 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(); + email_ = s; + return s; + } + } + /** + *
+     * The user's primary email, if set.
+     * 
+ * + * string email = 2; + * @return The bytes for email. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEmailBytes() { + java.lang.Object ref = email_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EMAIL_VERIFIED_FIELD_NUMBER = 3; + private boolean emailVerified_; + /** + *
+     * Whether or not the user's primary email is verified.
+     * 
+ * + * bool email_verified = 3; + * @return The emailVerified. + */ + @java.lang.Override + public boolean getEmailVerified() { + return emailVerified_; + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object displayName_; + /** + *
+     * The user's display name.
+     * 
+ * + * string display_name = 4; + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + /** + *
+     * The user's display name.
+     * 
+ * + * string display_name = 4; + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PHOTO_URL_FIELD_NUMBER = 5; + private volatile java.lang.Object photoURL_; + /** + *
+     * The user's photo URL.
+     * 
+ * + * string photo_URL = 5; + * @return The photoURL. + */ + @java.lang.Override + public java.lang.String getPhotoURL() { + java.lang.Object ref = photoURL_; + 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(); + photoURL_ = s; + return s; + } + } + /** + *
+     * The user's photo URL.
+     * 
+ * + * string photo_URL = 5; + * @return The bytes for photoURL. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPhotoURLBytes() { + java.lang.Object ref = photoURL_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + photoURL_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISABLED_FIELD_NUMBER = 6; + private boolean disabled_; + /** + *
+     * Whether the user is disabled.
+     * 
+ * + * bool disabled = 6; + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + + public static final int METADATA_FIELD_NUMBER = 7; + private google.events.firebase.auth.v1.Data.UserMetadata metadata_; + /** + *
+     * Additional metadata about the user.
+     * 
+ * + * .google.events.firebase.auth.v1.UserMetadata metadata = 7; + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return metadata_ != null; + } + /** + *
+     * Additional metadata about the user.
+     * 
+ * + * .google.events.firebase.auth.v1.UserMetadata metadata = 7; + * @return The metadata. + */ + @java.lang.Override + public google.events.firebase.auth.v1.Data.UserMetadata getMetadata() { + return metadata_ == null ? google.events.firebase.auth.v1.Data.UserMetadata.getDefaultInstance() : metadata_; + } + /** + *
+     * Additional metadata about the user.
+     * 
+ * + * .google.events.firebase.auth.v1.UserMetadata metadata = 7; + */ + @java.lang.Override + public google.events.firebase.auth.v1.Data.UserMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int PROVIDER_DATA_FIELD_NUMBER = 8; + private java.util.List providerData_; + /** + *
+     * User's info at the providers
+     * 
+ * + * repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8; + */ + @java.lang.Override + public java.util.List getProviderDataList() { + return providerData_; + } + /** + *
+     * User's info at the providers
+     * 
+ * + * repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8; + */ + @java.lang.Override + public java.util.List + getProviderDataOrBuilderList() { + return providerData_; + } + /** + *
+     * User's info at the providers
+     * 
+ * + * repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8; + */ + @java.lang.Override + public int getProviderDataCount() { + return providerData_.size(); + } + /** + *
+     * User's info at the providers
+     * 
+ * + * repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8; + */ + @java.lang.Override + public google.events.firebase.auth.v1.Data.UserInfo getProviderData(int index) { + return providerData_.get(index); + } + /** + *
+     * User's info at the providers
+     * 
+ * + * repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8; + */ + @java.lang.Override + public google.events.firebase.auth.v1.Data.UserInfoOrBuilder getProviderDataOrBuilder( + int index) { + return providerData_.get(index); + } + + public static final int PHONE_NUMBER_FIELD_NUMBER = 9; + private volatile java.lang.Object phoneNumber_; + /** + *
+     * The user's phone number.
+     * 
+ * + * string phone_number = 9; + * @return The phoneNumber. + */ + @java.lang.Override + public java.lang.String getPhoneNumber() { + java.lang.Object ref = phoneNumber_; + 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(); + phoneNumber_ = s; + return s; + } + } + /** + *
+     * The user's phone number.
+     * 
+ * + * string phone_number = 9; + * @return The bytes for phoneNumber. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPhoneNumberBytes() { + java.lang.Object ref = phoneNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + phoneNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_CLAIMS_FIELD_NUMBER = 10; + private com.google.protobuf.Struct customClaims_; + /** + *
+     * User's custom claims, typically used to define user roles and propagated
+     * to an authenticated user's ID token.
+     * 
+ * + * .google.protobuf.Struct custom_claims = 10; + * @return Whether the customClaims field is set. + */ + @java.lang.Override + public boolean hasCustomClaims() { + return customClaims_ != null; + } + /** + *
+     * User's custom claims, typically used to define user roles and propagated
+     * to an authenticated user's ID token.
+     * 
+ * + * .google.protobuf.Struct custom_claims = 10; + * @return The customClaims. + */ + @java.lang.Override + public com.google.protobuf.Struct getCustomClaims() { + return customClaims_ == null ? com.google.protobuf.Struct.getDefaultInstance() : customClaims_; + } + /** + *
+     * User's custom claims, typically used to define user roles and propagated
+     * to an authenticated user's ID token.
+     * 
+ * + * .google.protobuf.Struct custom_claims = 10; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getCustomClaimsOrBuilder() { + return getCustomClaims(); + } + + 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 (!getUidBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uid_); + } + if (!getEmailBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, email_); + } + if (emailVerified_ != false) { + output.writeBool(3, emailVerified_); + } + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, displayName_); + } + if (!getPhotoURLBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, photoURL_); + } + if (disabled_ != false) { + output.writeBool(6, disabled_); + } + if (metadata_ != null) { + output.writeMessage(7, getMetadata()); + } + for (int i = 0; i < providerData_.size(); i++) { + output.writeMessage(8, providerData_.get(i)); + } + if (!getPhoneNumberBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, phoneNumber_); + } + if (customClaims_ != null) { + output.writeMessage(10, getCustomClaims()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getUidBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uid_); + } + if (!getEmailBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, email_); + } + if (emailVerified_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, emailVerified_); + } + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, displayName_); + } + if (!getPhotoURLBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, photoURL_); + } + if (disabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, disabled_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getMetadata()); + } + for (int i = 0; i < providerData_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, providerData_.get(i)); + } + if (!getPhoneNumberBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, phoneNumber_); + } + if (customClaims_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getCustomClaims()); + } + 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.firebase.auth.v1.Data.AuthEventData)) { + return super.equals(obj); + } + google.events.firebase.auth.v1.Data.AuthEventData other = (google.events.firebase.auth.v1.Data.AuthEventData) obj; + + if (!getUid() + .equals(other.getUid())) return false; + if (!getEmail() + .equals(other.getEmail())) return false; + if (getEmailVerified() + != other.getEmailVerified()) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getPhotoURL() + .equals(other.getPhotoURL())) return false; + if (getDisabled() + != other.getDisabled()) return false; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } + if (!getProviderDataList() + .equals(other.getProviderDataList())) return false; + if (!getPhoneNumber() + .equals(other.getPhoneNumber())) return false; + if (hasCustomClaims() != other.hasCustomClaims()) return false; + if (hasCustomClaims()) { + if (!getCustomClaims() + .equals(other.getCustomClaims())) 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) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (37 * hash) + EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getEmail().hashCode(); + hash = (37 * hash) + EMAIL_VERIFIED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEmailVerified()); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + PHOTO_URL_FIELD_NUMBER; + hash = (53 * hash) + getPhotoURL().hashCode(); + hash = (37 * hash) + DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisabled()); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (getProviderDataCount() > 0) { + hash = (37 * hash) + PROVIDER_DATA_FIELD_NUMBER; + hash = (53 * hash) + getProviderDataList().hashCode(); + } + hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getPhoneNumber().hashCode(); + if (hasCustomClaims()) { + hash = (37 * hash) + CUSTOM_CLAIMS_FIELD_NUMBER; + hash = (53 * hash) + getCustomClaims().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static google.events.firebase.auth.v1.Data.AuthEventData parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.auth.v1.Data.AuthEventData parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.firebase.auth.v1.Data.AuthEventData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.auth.v1.Data.AuthEventData 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.firebase.auth.v1.Data.AuthEventData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.auth.v1.Data.AuthEventData parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.firebase.auth.v1.Data.AuthEventData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.firebase.auth.v1.Data.AuthEventData 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.firebase.auth.v1.Data.AuthEventData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static google.events.firebase.auth.v1.Data.AuthEventData 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.firebase.auth.v1.Data.AuthEventData parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.firebase.auth.v1.Data.AuthEventData 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.firebase.auth.v1.Data.AuthEventData 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 within all Firebase Auth events
+     * 
+ * + * Protobuf type {@code google.events.firebase.auth.v1.AuthEventData} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.events.firebase.auth.v1.AuthEventData) + google.events.firebase.auth.v1.Data.AuthEventDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.firebase.auth.v1.Data.internal_static_google_events_firebase_auth_v1_AuthEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.firebase.auth.v1.Data.internal_static_google_events_firebase_auth_v1_AuthEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.firebase.auth.v1.Data.AuthEventData.class, google.events.firebase.auth.v1.Data.AuthEventData.Builder.class); + } + + // Construct using google.events.firebase.auth.v1.Data.AuthEventData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getProviderDataFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + uid_ = ""; + + email_ = ""; + + emailVerified_ = false; + + displayName_ = ""; + + photoURL_ = ""; + + disabled_ = false; + + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + if (providerDataBuilder_ == null) { + providerData_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + providerDataBuilder_.clear(); + } + phoneNumber_ = ""; + + if (customClaimsBuilder_ == null) { + customClaims_ = null; + } else { + customClaims_ = null; + customClaimsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.events.firebase.auth.v1.Data.internal_static_google_events_firebase_auth_v1_AuthEventData_descriptor; + } + + @java.lang.Override + public google.events.firebase.auth.v1.Data.AuthEventData getDefaultInstanceForType() { + return google.events.firebase.auth.v1.Data.AuthEventData.getDefaultInstance(); + } + + @java.lang.Override + public google.events.firebase.auth.v1.Data.AuthEventData build() { + google.events.firebase.auth.v1.Data.AuthEventData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public google.events.firebase.auth.v1.Data.AuthEventData buildPartial() { + google.events.firebase.auth.v1.Data.AuthEventData result = new google.events.firebase.auth.v1.Data.AuthEventData(this); + int from_bitField0_ = bitField0_; + result.uid_ = uid_; + result.email_ = email_; + result.emailVerified_ = emailVerified_; + result.displayName_ = displayName_; + result.photoURL_ = photoURL_; + result.disabled_ = disabled_; + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (providerDataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + providerData_ = java.util.Collections.unmodifiableList(providerData_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.providerData_ = providerData_; + } else { + result.providerData_ = providerDataBuilder_.build(); + } + result.phoneNumber_ = phoneNumber_; + if (customClaimsBuilder_ == null) { + result.customClaims_ = customClaims_; + } else { + result.customClaims_ = customClaimsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.events.firebase.auth.v1.Data.AuthEventData) { + return mergeFrom((google.events.firebase.auth.v1.Data.AuthEventData)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(google.events.firebase.auth.v1.Data.AuthEventData other) { + if (other == google.events.firebase.auth.v1.Data.AuthEventData.getDefaultInstance()) return this; + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + onChanged(); + } + if (!other.getEmail().isEmpty()) { + email_ = other.email_; + onChanged(); + } + if (other.getEmailVerified() != false) { + setEmailVerified(other.getEmailVerified()); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getPhotoURL().isEmpty()) { + photoURL_ = other.photoURL_; + onChanged(); + } + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (providerDataBuilder_ == null) { + if (!other.providerData_.isEmpty()) { + if (providerData_.isEmpty()) { + providerData_ = other.providerData_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureProviderDataIsMutable(); + providerData_.addAll(other.providerData_); + } + onChanged(); + } + } else { + if (!other.providerData_.isEmpty()) { + if (providerDataBuilder_.isEmpty()) { + providerDataBuilder_.dispose(); + providerDataBuilder_ = null; + providerData_ = other.providerData_; + bitField0_ = (bitField0_ & ~0x00000001); + providerDataBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getProviderDataFieldBuilder() : null; + } else { + providerDataBuilder_.addAllMessages(other.providerData_); + } + } + } + if (!other.getPhoneNumber().isEmpty()) { + phoneNumber_ = other.phoneNumber_; + onChanged(); + } + if (other.hasCustomClaims()) { + mergeCustomClaims(other.getCustomClaims()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.events.firebase.auth.v1.Data.AuthEventData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.events.firebase.auth.v1.Data.AuthEventData) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object uid_ = ""; + /** + *
+       * The user identifier in the Firebase app.
+       * 
+ * + * string uid = 1; + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The user identifier in the Firebase app.
+       * 
+ * + * string uid = 1; + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString + getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The user identifier in the Firebase app.
+       * 
+ * + * string uid = 1; + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uid_ = value; + onChanged(); + return this; + } + /** + *
+       * The user identifier in the Firebase app.
+       * 
+ * + * string uid = 1; + * @return This builder for chaining. + */ + public Builder clearUid() { + + uid_ = getDefaultInstance().getUid(); + onChanged(); + return this; + } + /** + *
+       * The user identifier in the Firebase app.
+       * 
+ * + * string uid = 1; + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uid_ = value; + onChanged(); + return this; + } + + private java.lang.Object email_ = ""; + /** + *
+       * The user's primary email, if set.
+       * 
+ * + * string email = 2; + * @return The email. + */ + public java.lang.String getEmail() { + java.lang.Object ref = email_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + email_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The user's primary email, if set.
+       * 
+ * + * string email = 2; + * @return The bytes for email. + */ + public com.google.protobuf.ByteString + getEmailBytes() { + java.lang.Object ref = email_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The user's primary email, if set.
+       * 
+ * + * string email = 2; + * @param value The email to set. + * @return This builder for chaining. + */ + public Builder setEmail( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + email_ = value; + onChanged(); + return this; + } + /** + *
+       * The user's primary email, if set.
+       * 
+ * + * string email = 2; + * @return This builder for chaining. + */ + public Builder clearEmail() { + + email_ = getDefaultInstance().getEmail(); + onChanged(); + return this; + } + /** + *
+       * The user's primary email, if set.
+       * 
+ * + * string email = 2; + * @param value The bytes for email to set. + * @return This builder for chaining. + */ + public Builder setEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + email_ = value; + onChanged(); + return this; + } + + private boolean emailVerified_ ; + /** + *
+       * Whether or not the user's primary email is verified.
+       * 
+ * + * bool email_verified = 3; + * @return The emailVerified. + */ + @java.lang.Override + public boolean getEmailVerified() { + return emailVerified_; + } + /** + *
+       * Whether or not the user's primary email is verified.
+       * 
+ * + * bool email_verified = 3; + * @param value The emailVerified to set. + * @return This builder for chaining. + */ + public Builder setEmailVerified(boolean value) { + + emailVerified_ = value; + onChanged(); + return this; + } + /** + *
+       * Whether or not the user's primary email is verified.
+       * 
+ * + * bool email_verified = 3; + * @return This builder for chaining. + */ + public Builder clearEmailVerified() { + + emailVerified_ = false; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + *
+       * The user's display name.
+       * 
+ * + * string display_name = 4; + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The user's display name.
+       * 
+ * + * string display_name = 4; + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The user's display name.
+       * 
+ * + * string display_name = 4; + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + *
+       * The user's display name.
+       * 
+ * + * string display_name = 4; + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + *
+       * The user's display name.
+       * 
+ * + * string display_name = 4; + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private java.lang.Object photoURL_ = ""; + /** + *
+       * The user's photo URL.
+       * 
+ * + * string photo_URL = 5; + * @return The photoURL. + */ + public java.lang.String getPhotoURL() { + java.lang.Object ref = photoURL_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + photoURL_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The user's photo URL.
+       * 
+ * + * string photo_URL = 5; + * @return The bytes for photoURL. + */ + public com.google.protobuf.ByteString + getPhotoURLBytes() { + java.lang.Object ref = photoURL_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + photoURL_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The user's photo URL.
+       * 
+ * + * string photo_URL = 5; + * @param value The photoURL to set. + * @return This builder for chaining. + */ + public Builder setPhotoURL( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + photoURL_ = value; + onChanged(); + return this; + } + /** + *
+       * The user's photo URL.
+       * 
+ * + * string photo_URL = 5; + * @return This builder for chaining. + */ + public Builder clearPhotoURL() { + + photoURL_ = getDefaultInstance().getPhotoURL(); + onChanged(); + return this; + } + /** + *
+       * The user's photo URL.
+       * 
+ * + * string photo_URL = 5; + * @param value The bytes for photoURL to set. + * @return This builder for chaining. + */ + public Builder setPhotoURLBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + photoURL_ = value; + onChanged(); + return this; + } + + private boolean disabled_ ; + /** + *
+       * Whether the user is disabled.
+       * 
+ * + * bool disabled = 6; + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + /** + *
+       * Whether the user is disabled.
+       * 
+ * + * bool disabled = 6; + * @param value The disabled to set. + * @return This builder for chaining. + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + onChanged(); + return this; + } + /** + *
+       * Whether the user is disabled.
+       * 
+ * + * bool disabled = 6; + * @return This builder for chaining. + */ + public Builder clearDisabled() { + + disabled_ = false; + onChanged(); + return this; + } + + private google.events.firebase.auth.v1.Data.UserMetadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + google.events.firebase.auth.v1.Data.UserMetadata, google.events.firebase.auth.v1.Data.UserMetadata.Builder, google.events.firebase.auth.v1.Data.UserMetadataOrBuilder> metadataBuilder_; + /** + *
+       * Additional metadata about the user.
+       * 
+ * + * .google.events.firebase.auth.v1.UserMetadata metadata = 7; + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + *
+       * Additional metadata about the user.
+       * 
+ * + * .google.events.firebase.auth.v1.UserMetadata metadata = 7; + * @return The metadata. + */ + public google.events.firebase.auth.v1.Data.UserMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? google.events.firebase.auth.v1.Data.UserMetadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Additional metadata about the user.
+       * 
+ * + * .google.events.firebase.auth.v1.UserMetadata metadata = 7; + */ + public Builder setMetadata(google.events.firebase.auth.v1.Data.UserMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Additional metadata about the user.
+       * 
+ * + * .google.events.firebase.auth.v1.UserMetadata metadata = 7; + */ + public Builder setMetadata( + google.events.firebase.auth.v1.Data.UserMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Additional metadata about the user.
+       * 
+ * + * .google.events.firebase.auth.v1.UserMetadata metadata = 7; + */ + public Builder mergeMetadata(google.events.firebase.auth.v1.Data.UserMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + google.events.firebase.auth.v1.Data.UserMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Additional metadata about the user.
+       * 
+ * + * .google.events.firebase.auth.v1.UserMetadata metadata = 7; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Additional metadata about the user.
+       * 
+ * + * .google.events.firebase.auth.v1.UserMetadata metadata = 7; + */ + public google.events.firebase.auth.v1.Data.UserMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Additional metadata about the user.
+       * 
+ * + * .google.events.firebase.auth.v1.UserMetadata metadata = 7; + */ + public google.events.firebase.auth.v1.Data.UserMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + google.events.firebase.auth.v1.Data.UserMetadata.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Additional metadata about the user.
+       * 
+ * + * .google.events.firebase.auth.v1.UserMetadata metadata = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + google.events.firebase.auth.v1.Data.UserMetadata, google.events.firebase.auth.v1.Data.UserMetadata.Builder, google.events.firebase.auth.v1.Data.UserMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + google.events.firebase.auth.v1.Data.UserMetadata, google.events.firebase.auth.v1.Data.UserMetadata.Builder, google.events.firebase.auth.v1.Data.UserMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.util.List providerData_ = + java.util.Collections.emptyList(); + private void ensureProviderDataIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + providerData_ = new java.util.ArrayList(providerData_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + google.events.firebase.auth.v1.Data.UserInfo, google.events.firebase.auth.v1.Data.UserInfo.Builder, google.events.firebase.auth.v1.Data.UserInfoOrBuilder> providerDataBuilder_; + + /** + *
+       * User's info at the providers
+       * 
+ * + * repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8; + */ + public java.util.List getProviderDataList() { + if (providerDataBuilder_ == null) { + return java.util.Collections.unmodifiableList(providerData_); + } else { + return providerDataBuilder_.getMessageList(); + } + } + /** + *
+       * User's info at the providers
+       * 
+ * + * repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8; + */ + public int getProviderDataCount() { + if (providerDataBuilder_ == null) { + return providerData_.size(); + } else { + return providerDataBuilder_.getCount(); + } + } + /** + *
+       * User's info at the providers
+       * 
+ * + * repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8; + */ + public google.events.firebase.auth.v1.Data.UserInfo getProviderData(int index) { + if (providerDataBuilder_ == null) { + return providerData_.get(index); + } else { + return providerDataBuilder_.getMessage(index); + } + } + /** + *
+       * User's info at the providers
+       * 
+ * + * repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8; + */ + public Builder setProviderData( + int index, google.events.firebase.auth.v1.Data.UserInfo value) { + if (providerDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProviderDataIsMutable(); + providerData_.set(index, value); + onChanged(); + } else { + providerDataBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * User's info at the providers
+       * 
+ * + * repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8; + */ + public Builder setProviderData( + int index, google.events.firebase.auth.v1.Data.UserInfo.Builder builderForValue) { + if (providerDataBuilder_ == null) { + ensureProviderDataIsMutable(); + providerData_.set(index, builderForValue.build()); + onChanged(); + } else { + providerDataBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * User's info at the providers
+       * 
+ * + * repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8; + */ + public Builder addProviderData(google.events.firebase.auth.v1.Data.UserInfo value) { + if (providerDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProviderDataIsMutable(); + providerData_.add(value); + onChanged(); + } else { + providerDataBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * User's info at the providers
+       * 
+ * + * repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8; + */ + public Builder addProviderData( + int index, google.events.firebase.auth.v1.Data.UserInfo value) { + if (providerDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProviderDataIsMutable(); + providerData_.add(index, value); + onChanged(); + } else { + providerDataBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * User's info at the providers
+       * 
+ * + * repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8; + */ + public Builder addProviderData( + google.events.firebase.auth.v1.Data.UserInfo.Builder builderForValue) { + if (providerDataBuilder_ == null) { + ensureProviderDataIsMutable(); + providerData_.add(builderForValue.build()); + onChanged(); + } else { + providerDataBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * User's info at the providers
+       * 
+ * + * repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8; + */ + public Builder addProviderData( + int index, google.events.firebase.auth.v1.Data.UserInfo.Builder builderForValue) { + if (providerDataBuilder_ == null) { + ensureProviderDataIsMutable(); + providerData_.add(index, builderForValue.build()); + onChanged(); + } else { + providerDataBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * User's info at the providers
+       * 
+ * + * repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8; + */ + public Builder addAllProviderData( + java.lang.Iterable values) { + if (providerDataBuilder_ == null) { + ensureProviderDataIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, providerData_); + onChanged(); + } else { + providerDataBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * User's info at the providers
+       * 
+ * + * repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8; + */ + public Builder clearProviderData() { + if (providerDataBuilder_ == null) { + providerData_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + providerDataBuilder_.clear(); + } + return this; + } + /** + *
+       * User's info at the providers
+       * 
+ * + * repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8; + */ + public Builder removeProviderData(int index) { + if (providerDataBuilder_ == null) { + ensureProviderDataIsMutable(); + providerData_.remove(index); + onChanged(); + } else { + providerDataBuilder_.remove(index); + } + return this; + } + /** + *
+       * User's info at the providers
+       * 
+ * + * repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8; + */ + public google.events.firebase.auth.v1.Data.UserInfo.Builder getProviderDataBuilder( + int index) { + return getProviderDataFieldBuilder().getBuilder(index); + } + /** + *
+       * User's info at the providers
+       * 
+ * + * repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8; + */ + public google.events.firebase.auth.v1.Data.UserInfoOrBuilder getProviderDataOrBuilder( + int index) { + if (providerDataBuilder_ == null) { + return providerData_.get(index); } else { + return providerDataBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * User's info at the providers
+       * 
+ * + * repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8; + */ + public java.util.List + getProviderDataOrBuilderList() { + if (providerDataBuilder_ != null) { + return providerDataBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(providerData_); + } + } + /** + *
+       * User's info at the providers
+       * 
+ * + * repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8; + */ + public google.events.firebase.auth.v1.Data.UserInfo.Builder addProviderDataBuilder() { + return getProviderDataFieldBuilder().addBuilder( + google.events.firebase.auth.v1.Data.UserInfo.getDefaultInstance()); + } + /** + *
+       * User's info at the providers
+       * 
+ * + * repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8; + */ + public google.events.firebase.auth.v1.Data.UserInfo.Builder addProviderDataBuilder( + int index) { + return getProviderDataFieldBuilder().addBuilder( + index, google.events.firebase.auth.v1.Data.UserInfo.getDefaultInstance()); + } + /** + *
+       * User's info at the providers
+       * 
+ * + * repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8; + */ + public java.util.List + getProviderDataBuilderList() { + return getProviderDataFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + google.events.firebase.auth.v1.Data.UserInfo, google.events.firebase.auth.v1.Data.UserInfo.Builder, google.events.firebase.auth.v1.Data.UserInfoOrBuilder> + getProviderDataFieldBuilder() { + if (providerDataBuilder_ == null) { + providerDataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + google.events.firebase.auth.v1.Data.UserInfo, google.events.firebase.auth.v1.Data.UserInfo.Builder, google.events.firebase.auth.v1.Data.UserInfoOrBuilder>( + providerData_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + providerData_ = null; + } + return providerDataBuilder_; + } + + private java.lang.Object phoneNumber_ = ""; + /** + *
+       * The user's phone number.
+       * 
+ * + * string phone_number = 9; + * @return The phoneNumber. + */ + public java.lang.String getPhoneNumber() { + java.lang.Object ref = phoneNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phoneNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The user's phone number.
+       * 
+ * + * string phone_number = 9; + * @return The bytes for phoneNumber. + */ + public com.google.protobuf.ByteString + getPhoneNumberBytes() { + java.lang.Object ref = phoneNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + phoneNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The user's phone number.
+       * 
+ * + * string phone_number = 9; + * @param value The phoneNumber to set. + * @return This builder for chaining. + */ + public Builder setPhoneNumber( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + phoneNumber_ = value; + onChanged(); + return this; + } + /** + *
+       * The user's phone number.
+       * 
+ * + * string phone_number = 9; + * @return This builder for chaining. + */ + public Builder clearPhoneNumber() { + + phoneNumber_ = getDefaultInstance().getPhoneNumber(); + onChanged(); + return this; + } + /** + *
+       * The user's phone number.
+       * 
+ * + * string phone_number = 9; + * @param value The bytes for phoneNumber to set. + * @return This builder for chaining. + */ + public Builder setPhoneNumberBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + phoneNumber_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Struct customClaims_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> customClaimsBuilder_; + /** + *
+       * User's custom claims, typically used to define user roles and propagated
+       * to an authenticated user's ID token.
+       * 
+ * + * .google.protobuf.Struct custom_claims = 10; + * @return Whether the customClaims field is set. + */ + public boolean hasCustomClaims() { + return customClaimsBuilder_ != null || customClaims_ != null; + } + /** + *
+       * User's custom claims, typically used to define user roles and propagated
+       * to an authenticated user's ID token.
+       * 
+ * + * .google.protobuf.Struct custom_claims = 10; + * @return The customClaims. + */ + public com.google.protobuf.Struct getCustomClaims() { + if (customClaimsBuilder_ == null) { + return customClaims_ == null ? com.google.protobuf.Struct.getDefaultInstance() : customClaims_; + } else { + return customClaimsBuilder_.getMessage(); + } + } + /** + *
+       * User's custom claims, typically used to define user roles and propagated
+       * to an authenticated user's ID token.
+       * 
+ * + * .google.protobuf.Struct custom_claims = 10; + */ + public Builder setCustomClaims(com.google.protobuf.Struct value) { + if (customClaimsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customClaims_ = value; + onChanged(); + } else { + customClaimsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * User's custom claims, typically used to define user roles and propagated
+       * to an authenticated user's ID token.
+       * 
+ * + * .google.protobuf.Struct custom_claims = 10; + */ + public Builder setCustomClaims( + com.google.protobuf.Struct.Builder builderForValue) { + if (customClaimsBuilder_ == null) { + customClaims_ = builderForValue.build(); + onChanged(); + } else { + customClaimsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * User's custom claims, typically used to define user roles and propagated
+       * to an authenticated user's ID token.
+       * 
+ * + * .google.protobuf.Struct custom_claims = 10; + */ + public Builder mergeCustomClaims(com.google.protobuf.Struct value) { + if (customClaimsBuilder_ == null) { + if (customClaims_ != null) { + customClaims_ = + com.google.protobuf.Struct.newBuilder(customClaims_).mergeFrom(value).buildPartial(); + } else { + customClaims_ = value; + } + onChanged(); + } else { + customClaimsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * User's custom claims, typically used to define user roles and propagated
+       * to an authenticated user's ID token.
+       * 
+ * + * .google.protobuf.Struct custom_claims = 10; + */ + public Builder clearCustomClaims() { + if (customClaimsBuilder_ == null) { + customClaims_ = null; + onChanged(); + } else { + customClaims_ = null; + customClaimsBuilder_ = null; + } + + return this; + } + /** + *
+       * User's custom claims, typically used to define user roles and propagated
+       * to an authenticated user's ID token.
+       * 
+ * + * .google.protobuf.Struct custom_claims = 10; + */ + public com.google.protobuf.Struct.Builder getCustomClaimsBuilder() { + + onChanged(); + return getCustomClaimsFieldBuilder().getBuilder(); + } + /** + *
+       * User's custom claims, typically used to define user roles and propagated
+       * to an authenticated user's ID token.
+       * 
+ * + * .google.protobuf.Struct custom_claims = 10; + */ + public com.google.protobuf.StructOrBuilder getCustomClaimsOrBuilder() { + if (customClaimsBuilder_ != null) { + return customClaimsBuilder_.getMessageOrBuilder(); + } else { + return customClaims_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : customClaims_; + } + } + /** + *
+       * User's custom claims, typically used to define user roles and propagated
+       * to an authenticated user's ID token.
+       * 
+ * + * .google.protobuf.Struct custom_claims = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getCustomClaimsFieldBuilder() { + if (customClaimsBuilder_ == null) { + customClaimsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getCustomClaims(), + getParentForChildren(), + isClean()); + customClaims_ = null; + } + return customClaimsBuilder_; + } + @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.firebase.auth.v1.AuthEventData) + } + + // @@protoc_insertion_point(class_scope:google.events.firebase.auth.v1.AuthEventData) + private static final google.events.firebase.auth.v1.Data.AuthEventData DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new google.events.firebase.auth.v1.Data.AuthEventData(); + } + + public static google.events.firebase.auth.v1.Data.AuthEventData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthEventData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AuthEventData(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public google.events.firebase.auth.v1.Data.AuthEventData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UserMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.firebase.auth.v1.UserMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The date the user was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 1; + * @return Whether the createdAt field is set. + */ + boolean hasCreatedAt(); + /** + *
+     * The date the user was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 1; + * @return The createdAt. + */ + com.google.protobuf.Timestamp getCreatedAt(); + /** + *
+     * The date the user was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 1; + */ + com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); + + /** + *
+     * The date the user last signed in.
+     * 
+ * + * .google.protobuf.Timestamp last_signed_in_at = 2; + * @return Whether the lastSignedInAt field is set. + */ + boolean hasLastSignedInAt(); + /** + *
+     * The date the user last signed in.
+     * 
+ * + * .google.protobuf.Timestamp last_signed_in_at = 2; + * @return The lastSignedInAt. + */ + com.google.protobuf.Timestamp getLastSignedInAt(); + /** + *
+     * The date the user last signed in.
+     * 
+ * + * .google.protobuf.Timestamp last_signed_in_at = 2; + */ + com.google.protobuf.TimestampOrBuilder getLastSignedInAtOrBuilder(); + } + /** + *
+   * Additional metadata about the user.
+   * 
+ * + * Protobuf type {@code google.events.firebase.auth.v1.UserMetadata} + */ + public static final class UserMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.firebase.auth.v1.UserMetadata) + UserMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserMetadata.newBuilder() to construct. + private UserMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UserMetadata() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserMetadata( + 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: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createdAt_ != null) { + subBuilder = createdAt_.toBuilder(); + } + createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createdAt_); + createdAt_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastSignedInAt_ != null) { + subBuilder = lastSignedInAt_.toBuilder(); + } + lastSignedInAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastSignedInAt_); + lastSignedInAt_ = subBuilder.buildPartial(); + } + + 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.firebase.auth.v1.Data.internal_static_google_events_firebase_auth_v1_UserMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.firebase.auth.v1.Data.internal_static_google_events_firebase_auth_v1_UserMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.firebase.auth.v1.Data.UserMetadata.class, google.events.firebase.auth.v1.Data.UserMetadata.Builder.class); + } + + public static final int CREATED_AT_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createdAt_; + /** + *
+     * The date the user was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 1; + * @return Whether the createdAt field is set. + */ + @java.lang.Override + public boolean hasCreatedAt() { + return createdAt_ != null; + } + /** + *
+     * The date the user was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 1; + * @return The createdAt. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreatedAt() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + /** + *
+     * The date the user was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + return getCreatedAt(); + } + + public static final int LAST_SIGNED_IN_AT_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp lastSignedInAt_; + /** + *
+     * The date the user last signed in.
+     * 
+ * + * .google.protobuf.Timestamp last_signed_in_at = 2; + * @return Whether the lastSignedInAt field is set. + */ + @java.lang.Override + public boolean hasLastSignedInAt() { + return lastSignedInAt_ != null; + } + /** + *
+     * The date the user last signed in.
+     * 
+ * + * .google.protobuf.Timestamp last_signed_in_at = 2; + * @return The lastSignedInAt. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getLastSignedInAt() { + return lastSignedInAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastSignedInAt_; + } + /** + *
+     * The date the user last signed in.
+     * 
+ * + * .google.protobuf.Timestamp last_signed_in_at = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLastSignedInAtOrBuilder() { + return getLastSignedInAt(); + } + + 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 (createdAt_ != null) { + output.writeMessage(1, getCreatedAt()); + } + if (lastSignedInAt_ != null) { + output.writeMessage(2, getLastSignedInAt()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (createdAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreatedAt()); + } + if (lastSignedInAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getLastSignedInAt()); + } + 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.firebase.auth.v1.Data.UserMetadata)) { + return super.equals(obj); + } + google.events.firebase.auth.v1.Data.UserMetadata other = (google.events.firebase.auth.v1.Data.UserMetadata) obj; + + if (hasCreatedAt() != other.hasCreatedAt()) return false; + if (hasCreatedAt()) { + if (!getCreatedAt() + .equals(other.getCreatedAt())) return false; + } + if (hasLastSignedInAt() != other.hasLastSignedInAt()) return false; + if (hasLastSignedInAt()) { + if (!getLastSignedInAt() + .equals(other.getLastSignedInAt())) 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 (hasCreatedAt()) { + hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; + hash = (53 * hash) + getCreatedAt().hashCode(); + } + if (hasLastSignedInAt()) { + hash = (37 * hash) + LAST_SIGNED_IN_AT_FIELD_NUMBER; + hash = (53 * hash) + getLastSignedInAt().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static google.events.firebase.auth.v1.Data.UserMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.auth.v1.Data.UserMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.firebase.auth.v1.Data.UserMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.auth.v1.Data.UserMetadata 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.firebase.auth.v1.Data.UserMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.auth.v1.Data.UserMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.firebase.auth.v1.Data.UserMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.firebase.auth.v1.Data.UserMetadata 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.firebase.auth.v1.Data.UserMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static google.events.firebase.auth.v1.Data.UserMetadata 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.firebase.auth.v1.Data.UserMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.firebase.auth.v1.Data.UserMetadata 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.firebase.auth.v1.Data.UserMetadata 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; + } + /** + *
+     * Additional metadata about the user.
+     * 
+ * + * Protobuf type {@code google.events.firebase.auth.v1.UserMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.events.firebase.auth.v1.UserMetadata) + google.events.firebase.auth.v1.Data.UserMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.firebase.auth.v1.Data.internal_static_google_events_firebase_auth_v1_UserMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.firebase.auth.v1.Data.internal_static_google_events_firebase_auth_v1_UserMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.firebase.auth.v1.Data.UserMetadata.class, google.events.firebase.auth.v1.Data.UserMetadata.Builder.class); + } + + // Construct using google.events.firebase.auth.v1.Data.UserMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (createdAtBuilder_ == null) { + createdAt_ = null; + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + if (lastSignedInAtBuilder_ == null) { + lastSignedInAt_ = null; + } else { + lastSignedInAt_ = null; + lastSignedInAtBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.events.firebase.auth.v1.Data.internal_static_google_events_firebase_auth_v1_UserMetadata_descriptor; + } + + @java.lang.Override + public google.events.firebase.auth.v1.Data.UserMetadata getDefaultInstanceForType() { + return google.events.firebase.auth.v1.Data.UserMetadata.getDefaultInstance(); + } + + @java.lang.Override + public google.events.firebase.auth.v1.Data.UserMetadata build() { + google.events.firebase.auth.v1.Data.UserMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public google.events.firebase.auth.v1.Data.UserMetadata buildPartial() { + google.events.firebase.auth.v1.Data.UserMetadata result = new google.events.firebase.auth.v1.Data.UserMetadata(this); + if (createdAtBuilder_ == null) { + result.createdAt_ = createdAt_; + } else { + result.createdAt_ = createdAtBuilder_.build(); + } + if (lastSignedInAtBuilder_ == null) { + result.lastSignedInAt_ = lastSignedInAt_; + } else { + result.lastSignedInAt_ = lastSignedInAtBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.events.firebase.auth.v1.Data.UserMetadata) { + return mergeFrom((google.events.firebase.auth.v1.Data.UserMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(google.events.firebase.auth.v1.Data.UserMetadata other) { + if (other == google.events.firebase.auth.v1.Data.UserMetadata.getDefaultInstance()) return this; + if (other.hasCreatedAt()) { + mergeCreatedAt(other.getCreatedAt()); + } + if (other.hasLastSignedInAt()) { + mergeLastSignedInAt(other.getLastSignedInAt()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.events.firebase.auth.v1.Data.UserMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.events.firebase.auth.v1.Data.UserMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Timestamp createdAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; + /** + *
+       * The date the user was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 1; + * @return Whether the createdAt field is set. + */ + public boolean hasCreatedAt() { + return createdAtBuilder_ != null || createdAt_ != null; + } + /** + *
+       * The date the user was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 1; + * @return The createdAt. + */ + public com.google.protobuf.Timestamp getCreatedAt() { + if (createdAtBuilder_ == null) { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } else { + return createdAtBuilder_.getMessage(); + } + } + /** + *
+       * The date the user was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 1; + */ + public Builder setCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createdAt_ = value; + onChanged(); + } else { + createdAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The date the user was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 1; + */ + public Builder setCreatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createdAtBuilder_ == null) { + createdAt_ = builderForValue.build(); + onChanged(); + } else { + createdAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The date the user was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 1; + */ + public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (createdAt_ != null) { + createdAt_ = + com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); + } else { + createdAt_ = value; + } + onChanged(); + } else { + createdAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The date the user was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 1; + */ + public Builder clearCreatedAt() { + if (createdAtBuilder_ == null) { + createdAt_ = null; + onChanged(); + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + + return this; + } + /** + *
+       * The date the user was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 1; + */ + public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { + + onChanged(); + return getCreatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * The date the user was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 1; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + if (createdAtBuilder_ != null) { + return createdAtBuilder_.getMessageOrBuilder(); + } else { + return createdAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + } + /** + *
+       * The date the user was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreatedAtFieldBuilder() { + if (createdAtBuilder_ == null) { + createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreatedAt(), + getParentForChildren(), + isClean()); + createdAt_ = null; + } + return createdAtBuilder_; + } + + private com.google.protobuf.Timestamp lastSignedInAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastSignedInAtBuilder_; + /** + *
+       * The date the user last signed in.
+       * 
+ * + * .google.protobuf.Timestamp last_signed_in_at = 2; + * @return Whether the lastSignedInAt field is set. + */ + public boolean hasLastSignedInAt() { + return lastSignedInAtBuilder_ != null || lastSignedInAt_ != null; + } + /** + *
+       * The date the user last signed in.
+       * 
+ * + * .google.protobuf.Timestamp last_signed_in_at = 2; + * @return The lastSignedInAt. + */ + public com.google.protobuf.Timestamp getLastSignedInAt() { + if (lastSignedInAtBuilder_ == null) { + return lastSignedInAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastSignedInAt_; + } else { + return lastSignedInAtBuilder_.getMessage(); + } + } + /** + *
+       * The date the user last signed in.
+       * 
+ * + * .google.protobuf.Timestamp last_signed_in_at = 2; + */ + public Builder setLastSignedInAt(com.google.protobuf.Timestamp value) { + if (lastSignedInAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastSignedInAt_ = value; + onChanged(); + } else { + lastSignedInAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The date the user last signed in.
+       * 
+ * + * .google.protobuf.Timestamp last_signed_in_at = 2; + */ + public Builder setLastSignedInAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (lastSignedInAtBuilder_ == null) { + lastSignedInAt_ = builderForValue.build(); + onChanged(); + } else { + lastSignedInAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The date the user last signed in.
+       * 
+ * + * .google.protobuf.Timestamp last_signed_in_at = 2; + */ + public Builder mergeLastSignedInAt(com.google.protobuf.Timestamp value) { + if (lastSignedInAtBuilder_ == null) { + if (lastSignedInAt_ != null) { + lastSignedInAt_ = + com.google.protobuf.Timestamp.newBuilder(lastSignedInAt_).mergeFrom(value).buildPartial(); + } else { + lastSignedInAt_ = value; + } + onChanged(); + } else { + lastSignedInAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The date the user last signed in.
+       * 
+ * + * .google.protobuf.Timestamp last_signed_in_at = 2; + */ + public Builder clearLastSignedInAt() { + if (lastSignedInAtBuilder_ == null) { + lastSignedInAt_ = null; + onChanged(); + } else { + lastSignedInAt_ = null; + lastSignedInAtBuilder_ = null; + } + + return this; + } + /** + *
+       * The date the user last signed in.
+       * 
+ * + * .google.protobuf.Timestamp last_signed_in_at = 2; + */ + public com.google.protobuf.Timestamp.Builder getLastSignedInAtBuilder() { + + onChanged(); + return getLastSignedInAtFieldBuilder().getBuilder(); + } + /** + *
+       * The date the user last signed in.
+       * 
+ * + * .google.protobuf.Timestamp last_signed_in_at = 2; + */ + public com.google.protobuf.TimestampOrBuilder getLastSignedInAtOrBuilder() { + if (lastSignedInAtBuilder_ != null) { + return lastSignedInAtBuilder_.getMessageOrBuilder(); + } else { + return lastSignedInAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : lastSignedInAt_; + } + } + /** + *
+       * The date the user last signed in.
+       * 
+ * + * .google.protobuf.Timestamp last_signed_in_at = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getLastSignedInAtFieldBuilder() { + if (lastSignedInAtBuilder_ == null) { + lastSignedInAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getLastSignedInAt(), + getParentForChildren(), + isClean()); + lastSignedInAt_ = null; + } + return lastSignedInAtBuilder_; + } + @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.firebase.auth.v1.UserMetadata) + } + + // @@protoc_insertion_point(class_scope:google.events.firebase.auth.v1.UserMetadata) + private static final google.events.firebase.auth.v1.Data.UserMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new google.events.firebase.auth.v1.Data.UserMetadata(); + } + + public static google.events.firebase.auth.v1.Data.UserMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public google.events.firebase.auth.v1.Data.UserMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UserInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.firebase.auth.v1.UserInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The user identifier for the linked provider.
+     * 
+ * + * string uid = 1; + * @return The uid. + */ + java.lang.String getUid(); + /** + *
+     * The user identifier for the linked provider.
+     * 
+ * + * string uid = 1; + * @return The bytes for uid. + */ + com.google.protobuf.ByteString + getUidBytes(); + + /** + *
+     * The email for the linked provider.
+     * 
+ * + * string email = 2; + * @return The email. + */ + java.lang.String getEmail(); + /** + *
+     * The email for the linked provider.
+     * 
+ * + * string email = 2; + * @return The bytes for email. + */ + com.google.protobuf.ByteString + getEmailBytes(); + + /** + *
+     * The display name for the linked provider.
+     * 
+ * + * string display_name = 3; + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + *
+     * The display name for the linked provider.
+     * 
+ * + * string display_name = 3; + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString + getDisplayNameBytes(); + + /** + *
+     * The photo URL for the linked provider.
+     * 
+ * + * string photo_URL = 4; + * @return The photoURL. + */ + java.lang.String getPhotoURL(); + /** + *
+     * The photo URL for the linked provider.
+     * 
+ * + * string photo_URL = 4; + * @return The bytes for photoURL. + */ + com.google.protobuf.ByteString + getPhotoURLBytes(); + + /** + *
+     * The linked provider ID (e.g. "google.com" for the Google provider).
+     * 
+ * + * string provider_id = 5; + * @return The providerId. + */ + java.lang.String getProviderId(); + /** + *
+     * The linked provider ID (e.g. "google.com" for the Google provider).
+     * 
+ * + * string provider_id = 5; + * @return The bytes for providerId. + */ + com.google.protobuf.ByteString + getProviderIdBytes(); + } + /** + *
+   * User's info at the identity provider
+   * 
+ * + * Protobuf type {@code google.events.firebase.auth.v1.UserInfo} + */ + public static final class UserInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.firebase.auth.v1.UserInfo) + UserInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserInfo.newBuilder() to construct. + private UserInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UserInfo() { + uid_ = ""; + email_ = ""; + displayName_ = ""; + photoURL_ = ""; + providerId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UserInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserInfo( + 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(); + + uid_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + email_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + photoURL_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + providerId_ = 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.firebase.auth.v1.Data.internal_static_google_events_firebase_auth_v1_UserInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.firebase.auth.v1.Data.internal_static_google_events_firebase_auth_v1_UserInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.firebase.auth.v1.Data.UserInfo.class, google.events.firebase.auth.v1.Data.UserInfo.Builder.class); + } + + public static final int UID_FIELD_NUMBER = 1; + private volatile java.lang.Object uid_; + /** + *
+     * The user identifier for the linked provider.
+     * 
+ * + * string uid = 1; + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + 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(); + uid_ = s; + return s; + } + } + /** + *
+     * The user identifier for the linked provider.
+     * 
+ * + * string uid = 1; + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EMAIL_FIELD_NUMBER = 2; + private volatile java.lang.Object email_; + /** + *
+     * The email for the linked provider.
+     * 
+ * + * string email = 2; + * @return The email. + */ + @java.lang.Override + public java.lang.String getEmail() { + java.lang.Object ref = email_; + 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(); + email_ = s; + return s; + } + } + /** + *
+     * The email for the linked provider.
+     * 
+ * + * string email = 2; + * @return The bytes for email. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEmailBytes() { + java.lang.Object ref = email_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object displayName_; + /** + *
+     * The display name for the linked provider.
+     * 
+ * + * string display_name = 3; + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + /** + *
+     * The display name for the linked provider.
+     * 
+ * + * string display_name = 3; + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PHOTO_URL_FIELD_NUMBER = 4; + private volatile java.lang.Object photoURL_; + /** + *
+     * The photo URL for the linked provider.
+     * 
+ * + * string photo_URL = 4; + * @return The photoURL. + */ + @java.lang.Override + public java.lang.String getPhotoURL() { + java.lang.Object ref = photoURL_; + 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(); + photoURL_ = s; + return s; + } + } + /** + *
+     * The photo URL for the linked provider.
+     * 
+ * + * string photo_URL = 4; + * @return The bytes for photoURL. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPhotoURLBytes() { + java.lang.Object ref = photoURL_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + photoURL_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROVIDER_ID_FIELD_NUMBER = 5; + private volatile java.lang.Object providerId_; + /** + *
+     * The linked provider ID (e.g. "google.com" for the Google provider).
+     * 
+ * + * string provider_id = 5; + * @return The providerId. + */ + @java.lang.Override + public java.lang.String getProviderId() { + java.lang.Object ref = providerId_; + 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(); + providerId_ = s; + return s; + } + } + /** + *
+     * The linked provider ID (e.g. "google.com" for the Google provider).
+     * 
+ * + * string provider_id = 5; + * @return The bytes for providerId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getProviderIdBytes() { + java.lang.Object ref = providerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + providerId_ = 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 (!getUidBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uid_); + } + if (!getEmailBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, email_); + } + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); + } + if (!getPhotoURLBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, photoURL_); + } + if (!getProviderIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, providerId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getUidBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uid_); + } + if (!getEmailBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, email_); + } + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); + } + if (!getPhotoURLBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, photoURL_); + } + if (!getProviderIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, providerId_); + } + 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.firebase.auth.v1.Data.UserInfo)) { + return super.equals(obj); + } + google.events.firebase.auth.v1.Data.UserInfo other = (google.events.firebase.auth.v1.Data.UserInfo) obj; + + if (!getUid() + .equals(other.getUid())) return false; + if (!getEmail() + .equals(other.getEmail())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getPhotoURL() + .equals(other.getPhotoURL())) return false; + if (!getProviderId() + .equals(other.getProviderId())) 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) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (37 * hash) + EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getEmail().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + PHOTO_URL_FIELD_NUMBER; + hash = (53 * hash) + getPhotoURL().hashCode(); + hash = (37 * hash) + PROVIDER_ID_FIELD_NUMBER; + hash = (53 * hash) + getProviderId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static google.events.firebase.auth.v1.Data.UserInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.auth.v1.Data.UserInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.firebase.auth.v1.Data.UserInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.auth.v1.Data.UserInfo 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.firebase.auth.v1.Data.UserInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.auth.v1.Data.UserInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.firebase.auth.v1.Data.UserInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.firebase.auth.v1.Data.UserInfo 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.firebase.auth.v1.Data.UserInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static google.events.firebase.auth.v1.Data.UserInfo 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.firebase.auth.v1.Data.UserInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.firebase.auth.v1.Data.UserInfo 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.firebase.auth.v1.Data.UserInfo 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; + } + /** + *
+     * User's info at the identity provider
+     * 
+ * + * Protobuf type {@code google.events.firebase.auth.v1.UserInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.events.firebase.auth.v1.UserInfo) + google.events.firebase.auth.v1.Data.UserInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.firebase.auth.v1.Data.internal_static_google_events_firebase_auth_v1_UserInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.firebase.auth.v1.Data.internal_static_google_events_firebase_auth_v1_UserInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.firebase.auth.v1.Data.UserInfo.class, google.events.firebase.auth.v1.Data.UserInfo.Builder.class); + } + + // Construct using google.events.firebase.auth.v1.Data.UserInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + uid_ = ""; + + email_ = ""; + + displayName_ = ""; + + photoURL_ = ""; + + providerId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.events.firebase.auth.v1.Data.internal_static_google_events_firebase_auth_v1_UserInfo_descriptor; + } + + @java.lang.Override + public google.events.firebase.auth.v1.Data.UserInfo getDefaultInstanceForType() { + return google.events.firebase.auth.v1.Data.UserInfo.getDefaultInstance(); + } + + @java.lang.Override + public google.events.firebase.auth.v1.Data.UserInfo build() { + google.events.firebase.auth.v1.Data.UserInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public google.events.firebase.auth.v1.Data.UserInfo buildPartial() { + google.events.firebase.auth.v1.Data.UserInfo result = new google.events.firebase.auth.v1.Data.UserInfo(this); + result.uid_ = uid_; + result.email_ = email_; + result.displayName_ = displayName_; + result.photoURL_ = photoURL_; + result.providerId_ = providerId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.events.firebase.auth.v1.Data.UserInfo) { + return mergeFrom((google.events.firebase.auth.v1.Data.UserInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(google.events.firebase.auth.v1.Data.UserInfo other) { + if (other == google.events.firebase.auth.v1.Data.UserInfo.getDefaultInstance()) return this; + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + onChanged(); + } + if (!other.getEmail().isEmpty()) { + email_ = other.email_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getPhotoURL().isEmpty()) { + photoURL_ = other.photoURL_; + onChanged(); + } + if (!other.getProviderId().isEmpty()) { + providerId_ = other.providerId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.events.firebase.auth.v1.Data.UserInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.events.firebase.auth.v1.Data.UserInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object uid_ = ""; + /** + *
+       * The user identifier for the linked provider.
+       * 
+ * + * string uid = 1; + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The user identifier for the linked provider.
+       * 
+ * + * string uid = 1; + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString + getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The user identifier for the linked provider.
+       * 
+ * + * string uid = 1; + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uid_ = value; + onChanged(); + return this; + } + /** + *
+       * The user identifier for the linked provider.
+       * 
+ * + * string uid = 1; + * @return This builder for chaining. + */ + public Builder clearUid() { + + uid_ = getDefaultInstance().getUid(); + onChanged(); + return this; + } + /** + *
+       * The user identifier for the linked provider.
+       * 
+ * + * string uid = 1; + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uid_ = value; + onChanged(); + return this; + } + + private java.lang.Object email_ = ""; + /** + *
+       * The email for the linked provider.
+       * 
+ * + * string email = 2; + * @return The email. + */ + public java.lang.String getEmail() { + java.lang.Object ref = email_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + email_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The email for the linked provider.
+       * 
+ * + * string email = 2; + * @return The bytes for email. + */ + public com.google.protobuf.ByteString + getEmailBytes() { + java.lang.Object ref = email_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The email for the linked provider.
+       * 
+ * + * string email = 2; + * @param value The email to set. + * @return This builder for chaining. + */ + public Builder setEmail( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + email_ = value; + onChanged(); + return this; + } + /** + *
+       * The email for the linked provider.
+       * 
+ * + * string email = 2; + * @return This builder for chaining. + */ + public Builder clearEmail() { + + email_ = getDefaultInstance().getEmail(); + onChanged(); + return this; + } + /** + *
+       * The email for the linked provider.
+       * 
+ * + * string email = 2; + * @param value The bytes for email to set. + * @return This builder for chaining. + */ + public Builder setEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + email_ = value; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + *
+       * The display name for the linked provider.
+       * 
+ * + * string display_name = 3; + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The display name for the linked provider.
+       * 
+ * + * string display_name = 3; + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The display name for the linked provider.
+       * 
+ * + * string display_name = 3; + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + *
+       * The display name for the linked provider.
+       * 
+ * + * string display_name = 3; + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + *
+       * The display name for the linked provider.
+       * 
+ * + * string display_name = 3; + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private java.lang.Object photoURL_ = ""; + /** + *
+       * The photo URL for the linked provider.
+       * 
+ * + * string photo_URL = 4; + * @return The photoURL. + */ + public java.lang.String getPhotoURL() { + java.lang.Object ref = photoURL_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + photoURL_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The photo URL for the linked provider.
+       * 
+ * + * string photo_URL = 4; + * @return The bytes for photoURL. + */ + public com.google.protobuf.ByteString + getPhotoURLBytes() { + java.lang.Object ref = photoURL_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + photoURL_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The photo URL for the linked provider.
+       * 
+ * + * string photo_URL = 4; + * @param value The photoURL to set. + * @return This builder for chaining. + */ + public Builder setPhotoURL( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + photoURL_ = value; + onChanged(); + return this; + } + /** + *
+       * The photo URL for the linked provider.
+       * 
+ * + * string photo_URL = 4; + * @return This builder for chaining. + */ + public Builder clearPhotoURL() { + + photoURL_ = getDefaultInstance().getPhotoURL(); + onChanged(); + return this; + } + /** + *
+       * The photo URL for the linked provider.
+       * 
+ * + * string photo_URL = 4; + * @param value The bytes for photoURL to set. + * @return This builder for chaining. + */ + public Builder setPhotoURLBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + photoURL_ = value; + onChanged(); + return this; + } + + private java.lang.Object providerId_ = ""; + /** + *
+       * The linked provider ID (e.g. "google.com" for the Google provider).
+       * 
+ * + * string provider_id = 5; + * @return The providerId. + */ + public java.lang.String getProviderId() { + java.lang.Object ref = providerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + providerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The linked provider ID (e.g. "google.com" for the Google provider).
+       * 
+ * + * string provider_id = 5; + * @return The bytes for providerId. + */ + public com.google.protobuf.ByteString + getProviderIdBytes() { + java.lang.Object ref = providerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + providerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The linked provider ID (e.g. "google.com" for the Google provider).
+       * 
+ * + * string provider_id = 5; + * @param value The providerId to set. + * @return This builder for chaining. + */ + public Builder setProviderId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + providerId_ = value; + onChanged(); + return this; + } + /** + *
+       * The linked provider ID (e.g. "google.com" for the Google provider).
+       * 
+ * + * string provider_id = 5; + * @return This builder for chaining. + */ + public Builder clearProviderId() { + + providerId_ = getDefaultInstance().getProviderId(); + onChanged(); + return this; + } + /** + *
+       * The linked provider ID (e.g. "google.com" for the Google provider).
+       * 
+ * + * string provider_id = 5; + * @param value The bytes for providerId to set. + * @return This builder for chaining. + */ + public Builder setProviderIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + providerId_ = 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.firebase.auth.v1.UserInfo) + } + + // @@protoc_insertion_point(class_scope:google.events.firebase.auth.v1.UserInfo) + private static final google.events.firebase.auth.v1.Data.UserInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new google.events.firebase.auth.v1.Data.UserInfo(); + } + + public static google.events.firebase.auth.v1.Data.UserInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public google.events.firebase.auth.v1.Data.UserInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_firebase_auth_v1_AuthEventData_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_firebase_auth_v1_AuthEventData_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_firebase_auth_v1_UserMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_firebase_auth_v1_UserMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_firebase_auth_v1_UserInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_firebase_auth_v1_UserInfo_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n)google/events/firebase/auth/v1/data.pr" + + "oto\022\036google.events.firebase.auth.v1\032\034goo" + + "gle/protobuf/struct.proto\032\037google/protob" + + "uf/timestamp.proto\"\305\002\n\rAuthEventData\022\013\n\003" + + "uid\030\001 \001(\t\022\r\n\005email\030\002 \001(\t\022\026\n\016email_verifi" + + "ed\030\003 \001(\010\022\024\n\014display_name\030\004 \001(\t\022\021\n\tphoto_" + + "URL\030\005 \001(\t\022\020\n\010disabled\030\006 \001(\010\022>\n\010metadata\030" + + "\007 \001(\0132,.google.events.firebase.auth.v1.U" + + "serMetadata\022?\n\rprovider_data\030\010 \003(\0132(.goo" + + "gle.events.firebase.auth.v1.UserInfo\022\024\n\014" + + "phone_number\030\t \001(\t\022.\n\rcustom_claims\030\n \001(" + + "\0132\027.google.protobuf.Struct\"u\n\014UserMetada" + + "ta\022.\n\ncreated_at\030\001 \001(\0132\032.google.protobuf" + + ".Timestamp\0225\n\021last_signed_in_at\030\002 \001(\0132\032." + + "google.protobuf.Timestamp\"d\n\010UserInfo\022\013\n" + + "\003uid\030\001 \001(\t\022\r\n\005email\030\002 \001(\t\022\024\n\014display_nam" + + "e\030\003 \001(\t\022\021\n\tphoto_URL\030\004 \001(\t\022\023\n\013provider_i" + + "d\030\005 \001(\tB*\252\002\'Google.Events.Protobuf.Fireb" + + "ase.Auth.V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_events_firebase_auth_v1_AuthEventData_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_events_firebase_auth_v1_AuthEventData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_firebase_auth_v1_AuthEventData_descriptor, + new java.lang.String[] { "Uid", "Email", "EmailVerified", "DisplayName", "PhotoURL", "Disabled", "Metadata", "ProviderData", "PhoneNumber", "CustomClaims", }); + internal_static_google_events_firebase_auth_v1_UserMetadata_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_events_firebase_auth_v1_UserMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_firebase_auth_v1_UserMetadata_descriptor, + new java.lang.String[] { "CreatedAt", "LastSignedInAt", }); + internal_static_google_events_firebase_auth_v1_UserInfo_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_events_firebase_auth_v1_UserInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_firebase_auth_v1_UserInfo_descriptor, + new java.lang.String[] { "Uid", "Email", "DisplayName", "PhotoURL", "ProviderId", }); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/google/events/firebase/database/v1/Data.java b/src/google/events/firebase/database/v1/Data.java new file mode 100644 index 00000000..d7d5add6 --- /dev/null +++ b/src/google/events/firebase/database/v1/Data.java @@ -0,0 +1,1006 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/events/firebase/database/v1/data.proto + +package google.events.firebase.database.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 ReferenceEventDataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.firebase.database.v1.ReferenceEventData) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The original data for the reference.
+     * 
+ * + * .google.protobuf.Value data = 1; + * @return Whether the data field is set. + */ + boolean hasData(); + /** + *
+     * The original data for the reference.
+     * 
+ * + * .google.protobuf.Value data = 1; + * @return The data. + */ + com.google.protobuf.Value getData(); + /** + *
+     * The original data for the reference.
+     * 
+ * + * .google.protobuf.Value data = 1; + */ + com.google.protobuf.ValueOrBuilder getDataOrBuilder(); + + /** + *
+     * The change in the reference data.
+     * 
+ * + * .google.protobuf.Value delta = 2; + * @return Whether the delta field is set. + */ + boolean hasDelta(); + /** + *
+     * The change in the reference data.
+     * 
+ * + * .google.protobuf.Value delta = 2; + * @return The delta. + */ + com.google.protobuf.Value getDelta(); + /** + *
+     * The change in the reference data.
+     * 
+ * + * .google.protobuf.Value delta = 2; + */ + com.google.protobuf.ValueOrBuilder getDeltaOrBuilder(); + } + /** + *
+   * The data within all Firebase Real Time Database reference events.
+   * 
+ * + * Protobuf type {@code google.events.firebase.database.v1.ReferenceEventData} + */ + public static final class ReferenceEventData extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.firebase.database.v1.ReferenceEventData) + ReferenceEventDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReferenceEventData.newBuilder() to construct. + private ReferenceEventData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ReferenceEventData() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ReferenceEventData(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ReferenceEventData( + 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: { + 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; + } + 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.firebase.database.v1.Data.internal_static_google_events_firebase_database_v1_ReferenceEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.firebase.database.v1.Data.internal_static_google_events_firebase_database_v1_ReferenceEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.firebase.database.v1.Data.ReferenceEventData.class, google.events.firebase.database.v1.Data.ReferenceEventData.Builder.class); + } + + public static final int DATA_FIELD_NUMBER = 1; + private com.google.protobuf.Value data_; + /** + *
+     * The original data for the reference.
+     * 
+ * + * .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 reference.
+     * 
+ * + * .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 reference.
+     * 
+ * + * .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 reference 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 reference 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 reference data.
+     * 
+ * + * .google.protobuf.Value delta = 2; + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getDeltaOrBuilder() { + return getDelta(); + } + + 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_ != null) { + output.writeMessage(1, getData()); + } + if (delta_ != null) { + output.writeMessage(2, getDelta()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (data_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getData()); + } + if (delta_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDelta()); + } + 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.firebase.database.v1.Data.ReferenceEventData)) { + return super.equals(obj); + } + google.events.firebase.database.v1.Data.ReferenceEventData other = (google.events.firebase.database.v1.Data.ReferenceEventData) obj; + + if (hasData() != other.hasData()) return false; + if (hasData()) { + if (!getData() + .equals(other.getData())) return false; + } + if (hasDelta() != other.hasDelta()) return false; + if (hasDelta()) { + if (!getDelta() + .equals(other.getDelta())) 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 (hasData()) { + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + } + if (hasDelta()) { + hash = (37 * hash) + DELTA_FIELD_NUMBER; + hash = (53 * hash) + getDelta().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static google.events.firebase.database.v1.Data.ReferenceEventData parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.database.v1.Data.ReferenceEventData parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.firebase.database.v1.Data.ReferenceEventData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.database.v1.Data.ReferenceEventData 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.firebase.database.v1.Data.ReferenceEventData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.database.v1.Data.ReferenceEventData parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.firebase.database.v1.Data.ReferenceEventData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.firebase.database.v1.Data.ReferenceEventData 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.firebase.database.v1.Data.ReferenceEventData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static google.events.firebase.database.v1.Data.ReferenceEventData 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.firebase.database.v1.Data.ReferenceEventData parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.firebase.database.v1.Data.ReferenceEventData 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.firebase.database.v1.Data.ReferenceEventData 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 within all Firebase Real Time Database reference events.
+     * 
+ * + * Protobuf type {@code google.events.firebase.database.v1.ReferenceEventData} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.events.firebase.database.v1.ReferenceEventData) + google.events.firebase.database.v1.Data.ReferenceEventDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.firebase.database.v1.Data.internal_static_google_events_firebase_database_v1_ReferenceEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.firebase.database.v1.Data.internal_static_google_events_firebase_database_v1_ReferenceEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.firebase.database.v1.Data.ReferenceEventData.class, google.events.firebase.database.v1.Data.ReferenceEventData.Builder.class); + } + + // Construct using google.events.firebase.database.v1.Data.ReferenceEventData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (dataBuilder_ == null) { + data_ = null; + } else { + data_ = null; + dataBuilder_ = null; + } + if (deltaBuilder_ == null) { + delta_ = null; + } else { + delta_ = null; + deltaBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.events.firebase.database.v1.Data.internal_static_google_events_firebase_database_v1_ReferenceEventData_descriptor; + } + + @java.lang.Override + public google.events.firebase.database.v1.Data.ReferenceEventData getDefaultInstanceForType() { + return google.events.firebase.database.v1.Data.ReferenceEventData.getDefaultInstance(); + } + + @java.lang.Override + public google.events.firebase.database.v1.Data.ReferenceEventData build() { + google.events.firebase.database.v1.Data.ReferenceEventData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public google.events.firebase.database.v1.Data.ReferenceEventData buildPartial() { + google.events.firebase.database.v1.Data.ReferenceEventData result = new google.events.firebase.database.v1.Data.ReferenceEventData(this); + if (dataBuilder_ == null) { + result.data_ = data_; + } else { + result.data_ = dataBuilder_.build(); + } + if (deltaBuilder_ == null) { + result.delta_ = delta_; + } else { + result.delta_ = deltaBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.events.firebase.database.v1.Data.ReferenceEventData) { + return mergeFrom((google.events.firebase.database.v1.Data.ReferenceEventData)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(google.events.firebase.database.v1.Data.ReferenceEventData other) { + if (other == google.events.firebase.database.v1.Data.ReferenceEventData.getDefaultInstance()) return this; + if (other.hasData()) { + mergeData(other.getData()); + } + if (other.hasDelta()) { + mergeDelta(other.getDelta()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.events.firebase.database.v1.Data.ReferenceEventData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.events.firebase.database.v1.Data.ReferenceEventData) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Value data_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> dataBuilder_; + /** + *
+       * The original data for the reference.
+       * 
+ * + * .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 reference.
+       * 
+ * + * .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 reference.
+       * 
+ * + * .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 reference.
+       * 
+ * + * .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 reference.
+       * 
+ * + * .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 reference.
+       * 
+ * + * .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 reference.
+       * 
+ * + * .google.protobuf.Value data = 1; + */ + public com.google.protobuf.Value.Builder getDataBuilder() { + + onChanged(); + return getDataFieldBuilder().getBuilder(); + } + /** + *
+       * The original data for the reference.
+       * 
+ * + * .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 reference.
+       * 
+ * + * .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 reference 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 reference 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 reference 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 reference 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 reference 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 reference 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 reference data.
+       * 
+ * + * .google.protobuf.Value delta = 2; + */ + public com.google.protobuf.Value.Builder getDeltaBuilder() { + + onChanged(); + return getDeltaFieldBuilder().getBuilder(); + } + /** + *
+       * The change in the reference 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 reference 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_; + } + @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.firebase.database.v1.ReferenceEventData) + } + + // @@protoc_insertion_point(class_scope:google.events.firebase.database.v1.ReferenceEventData) + private static final google.events.firebase.database.v1.Data.ReferenceEventData DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new google.events.firebase.database.v1.Data.ReferenceEventData(); + } + + public static google.events.firebase.database.v1.Data.ReferenceEventData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReferenceEventData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReferenceEventData(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public google.events.firebase.database.v1.Data.ReferenceEventData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_firebase_database_v1_ReferenceEventData_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_firebase_database_v1_ReferenceEventData_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n-google/events/firebase/database/v1/dat" + + "a.proto\022\"google.events.firebase.database" + + ".v1\032\034google/protobuf/struct.proto\"a\n\022Ref" + + "erenceEventData\022$\n\004data\030\001 \001(\0132\026.google.p" + + "rotobuf.Value\022%\n\005delta\030\002 \001(\0132\026.google.pr" + + "otobuf.ValueB.\252\002+Google.Events.Protobuf." + + "Firebase.Database.V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.StructProto.getDescriptor(), + }); + internal_static_google_events_firebase_database_v1_ReferenceEventData_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_events_firebase_database_v1_ReferenceEventData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_firebase_database_v1_ReferenceEventData_descriptor, + new java.lang.String[] { "Data", "Delta", }); + com.google.protobuf.StructProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/google/events/firebase/remoteconfig/v1/Data.java b/src/google/events/firebase/remoteconfig/v1/Data.java new file mode 100644 index 00000000..bd793bc1 --- /dev/null +++ b/src/google/events/firebase/remoteconfig/v1/Data.java @@ -0,0 +1,3006 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/events/firebase/remoteconfig/v1/data.proto + +package google.events.firebase.remoteconfig.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); + } + /** + *
+   * What type of update was associated with the Remote Config template version.
+   * 
+ * + * Protobuf enum {@code google.events.firebase.remoteconfig.v1.RemoteConfigUpdateOrigin} + */ + public enum RemoteConfigUpdateOrigin + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Catch-all for unrecognized values.
+     * 
+ * + * REMOTE_CONFIG_UPDATE_ORIGIN_UNSPECIFIED = 0; + */ + REMOTE_CONFIG_UPDATE_ORIGIN_UNSPECIFIED(0), + /** + *
+     * The update came from the Firebase UI.
+     * 
+ * + * CONSOLE = 1; + */ + CONSOLE(1), + /** + *
+     * The update came from the Remote Config REST API.
+     * 
+ * + * REST_API = 2; + */ + REST_API(2), + /** + *
+     * The update came from the Firebase Admin Node SDK.
+     * 
+ * + * ADMIN_SDK_NODE = 3; + */ + ADMIN_SDK_NODE(3), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Catch-all for unrecognized values.
+     * 
+ * + * REMOTE_CONFIG_UPDATE_ORIGIN_UNSPECIFIED = 0; + */ + public static final int REMOTE_CONFIG_UPDATE_ORIGIN_UNSPECIFIED_VALUE = 0; + /** + *
+     * The update came from the Firebase UI.
+     * 
+ * + * CONSOLE = 1; + */ + public static final int CONSOLE_VALUE = 1; + /** + *
+     * The update came from the Remote Config REST API.
+     * 
+ * + * REST_API = 2; + */ + public static final int REST_API_VALUE = 2; + /** + *
+     * The update came from the Firebase Admin Node SDK.
+     * 
+ * + * ADMIN_SDK_NODE = 3; + */ + public static final int ADMIN_SDK_NODE_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RemoteConfigUpdateOrigin valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static RemoteConfigUpdateOrigin forNumber(int value) { + switch (value) { + case 0: return REMOTE_CONFIG_UPDATE_ORIGIN_UNSPECIFIED; + case 1: return CONSOLE; + case 2: return REST_API; + case 3: return ADMIN_SDK_NODE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + RemoteConfigUpdateOrigin> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RemoteConfigUpdateOrigin findValueByNumber(int number) { + return RemoteConfigUpdateOrigin.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return google.events.firebase.remoteconfig.v1.Data.getDescriptor().getEnumTypes().get(0); + } + + private static final RemoteConfigUpdateOrigin[] VALUES = values(); + + public static RemoteConfigUpdateOrigin valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private RemoteConfigUpdateOrigin(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.events.firebase.remoteconfig.v1.RemoteConfigUpdateOrigin) + } + + /** + *
+   * Where the Remote Config update action originated.
+   * 
+ * + * Protobuf enum {@code google.events.firebase.remoteconfig.v1.RemoteConfigUpdateType} + */ + public enum RemoteConfigUpdateType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Catch-all for unrecognized enum values.
+     * 
+ * + * REMOTE_CONFIG_UPDATE_TYPE_UNSPECIFIED = 0; + */ + REMOTE_CONFIG_UPDATE_TYPE_UNSPECIFIED(0), + /** + *
+     * A regular incremental update.
+     * 
+ * + * INCREMENTAL_UPDATE = 1; + */ + INCREMENTAL_UPDATE(1), + /** + *
+     * A forced update.
+     * The ETag was specified as "*" in an UpdateRemoteConfigRequest
+     * request or the "Force Update" button was pressed on the console.
+     * 
+ * + * FORCED_UPDATE = 2; + */ + FORCED_UPDATE(2), + /** + *
+     * A rollback to a previous Remote Config template.
+     * 
+ * + * ROLLBACK = 3; + */ + ROLLBACK(3), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Catch-all for unrecognized enum values.
+     * 
+ * + * REMOTE_CONFIG_UPDATE_TYPE_UNSPECIFIED = 0; + */ + public static final int REMOTE_CONFIG_UPDATE_TYPE_UNSPECIFIED_VALUE = 0; + /** + *
+     * A regular incremental update.
+     * 
+ * + * INCREMENTAL_UPDATE = 1; + */ + public static final int INCREMENTAL_UPDATE_VALUE = 1; + /** + *
+     * A forced update.
+     * The ETag was specified as "*" in an UpdateRemoteConfigRequest
+     * request or the "Force Update" button was pressed on the console.
+     * 
+ * + * FORCED_UPDATE = 2; + */ + public static final int FORCED_UPDATE_VALUE = 2; + /** + *
+     * A rollback to a previous Remote Config template.
+     * 
+ * + * ROLLBACK = 3; + */ + public static final int ROLLBACK_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RemoteConfigUpdateType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static RemoteConfigUpdateType forNumber(int value) { + switch (value) { + case 0: return REMOTE_CONFIG_UPDATE_TYPE_UNSPECIFIED; + case 1: return INCREMENTAL_UPDATE; + case 2: return FORCED_UPDATE; + case 3: return ROLLBACK; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + RemoteConfigUpdateType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RemoteConfigUpdateType findValueByNumber(int number) { + return RemoteConfigUpdateType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return google.events.firebase.remoteconfig.v1.Data.getDescriptor().getEnumTypes().get(1); + } + + private static final RemoteConfigUpdateType[] VALUES = values(); + + public static RemoteConfigUpdateType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private RemoteConfigUpdateType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.events.firebase.remoteconfig.v1.RemoteConfigUpdateType) + } + + public interface RemoteConfigEventDataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.firebase.remoteconfig.v1.RemoteConfigEventData) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The version number of the version's corresponding Remote Config template.
+     * 
+ * + * int64 version_number = 1; + * @return The versionNumber. + */ + long getVersionNumber(); + + /** + *
+     * When the Remote Config template was written to the Remote Config server.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + *
+     * When the Remote Config template was written to the Remote Config server.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + *
+     * When the Remote Config template was written to the Remote Config server.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + *
+     *  Aggregation of all metadata fields about the account that performed the update.
+     * 
+ * + * .google.events.firebase.remoteconfig.v1.RemoteConfigUser update_user = 3; + * @return Whether the updateUser field is set. + */ + boolean hasUpdateUser(); + /** + *
+     *  Aggregation of all metadata fields about the account that performed the update.
+     * 
+ * + * .google.events.firebase.remoteconfig.v1.RemoteConfigUser update_user = 3; + * @return The updateUser. + */ + google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser getUpdateUser(); + /** + *
+     *  Aggregation of all metadata fields about the account that performed the update.
+     * 
+ * + * .google.events.firebase.remoteconfig.v1.RemoteConfigUser update_user = 3; + */ + google.events.firebase.remoteconfig.v1.Data.RemoteConfigUserOrBuilder getUpdateUserOrBuilder(); + + /** + *
+     * The user-provided description of the corresponding Remote Config template.
+     * 
+ * + * string description = 4; + * @return The description. + */ + java.lang.String getDescription(); + /** + *
+     * The user-provided description of the corresponding Remote Config template.
+     * 
+ * + * string description = 4; + * @return The bytes for description. + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + + /** + *
+     * Where the update action originated.
+     * 
+ * + * .google.events.firebase.remoteconfig.v1.RemoteConfigUpdateOrigin update_origin = 5; + * @return The enum numeric value on the wire for updateOrigin. + */ + int getUpdateOriginValue(); + /** + *
+     * Where the update action originated.
+     * 
+ * + * .google.events.firebase.remoteconfig.v1.RemoteConfigUpdateOrigin update_origin = 5; + * @return The updateOrigin. + */ + google.events.firebase.remoteconfig.v1.Data.RemoteConfigUpdateOrigin getUpdateOrigin(); + + /** + *
+     * What type of update was made.
+     * 
+ * + * .google.events.firebase.remoteconfig.v1.RemoteConfigUpdateType update_type = 6; + * @return The enum numeric value on the wire for updateType. + */ + int getUpdateTypeValue(); + /** + *
+     * What type of update was made.
+     * 
+ * + * .google.events.firebase.remoteconfig.v1.RemoteConfigUpdateType update_type = 6; + * @return The updateType. + */ + google.events.firebase.remoteconfig.v1.Data.RemoteConfigUpdateType getUpdateType(); + + /** + *
+     * Only present if this version is the result of a rollback, and will be the
+     * version number of the Remote Config template that was rolled-back to.
+     * 
+ * + * int64 rollback_source = 7; + * @return The rollbackSource. + */ + long getRollbackSource(); + } + /** + *
+   * The data within all Firebase Remote Config events.
+   * 
+ * + * Protobuf type {@code google.events.firebase.remoteconfig.v1.RemoteConfigEventData} + */ + public static final class RemoteConfigEventData extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.firebase.remoteconfig.v1.RemoteConfigEventData) + RemoteConfigEventDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use RemoteConfigEventData.newBuilder() to construct. + private RemoteConfigEventData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RemoteConfigEventData() { + description_ = ""; + updateOrigin_ = 0; + updateType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RemoteConfigEventData(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RemoteConfigEventData( + 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: { + + versionNumber_ = input.readInt64(); + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser.Builder subBuilder = null; + if (updateUser_ != null) { + subBuilder = updateUser_.toBuilder(); + } + updateUser_ = input.readMessage(google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateUser_); + updateUser_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 40: { + int rawValue = input.readEnum(); + + updateOrigin_ = rawValue; + break; + } + case 48: { + int rawValue = input.readEnum(); + + updateType_ = rawValue; + break; + } + case 56: { + + rollbackSource_ = input.readInt64(); + 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.firebase.remoteconfig.v1.Data.internal_static_google_events_firebase_remoteconfig_v1_RemoteConfigEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.firebase.remoteconfig.v1.Data.internal_static_google_events_firebase_remoteconfig_v1_RemoteConfigEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.firebase.remoteconfig.v1.Data.RemoteConfigEventData.class, google.events.firebase.remoteconfig.v1.Data.RemoteConfigEventData.Builder.class); + } + + public static final int VERSION_NUMBER_FIELD_NUMBER = 1; + private long versionNumber_; + /** + *
+     * The version number of the version's corresponding Remote Config template.
+     * 
+ * + * int64 version_number = 1; + * @return The versionNumber. + */ + @java.lang.Override + public long getVersionNumber() { + return versionNumber_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp updateTime_; + /** + *
+     * When the Remote Config template was written to the Remote Config server.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + *
+     * When the Remote Config template was written to the Remote Config server.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + *
+     * When the Remote Config template was written to the Remote Config server.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int UPDATE_USER_FIELD_NUMBER = 3; + private google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser updateUser_; + /** + *
+     *  Aggregation of all metadata fields about the account that performed the update.
+     * 
+ * + * .google.events.firebase.remoteconfig.v1.RemoteConfigUser update_user = 3; + * @return Whether the updateUser field is set. + */ + @java.lang.Override + public boolean hasUpdateUser() { + return updateUser_ != null; + } + /** + *
+     *  Aggregation of all metadata fields about the account that performed the update.
+     * 
+ * + * .google.events.firebase.remoteconfig.v1.RemoteConfigUser update_user = 3; + * @return The updateUser. + */ + @java.lang.Override + public google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser getUpdateUser() { + return updateUser_ == null ? google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser.getDefaultInstance() : updateUser_; + } + /** + *
+     *  Aggregation of all metadata fields about the account that performed the update.
+     * 
+ * + * .google.events.firebase.remoteconfig.v1.RemoteConfigUser update_user = 3; + */ + @java.lang.Override + public google.events.firebase.remoteconfig.v1.Data.RemoteConfigUserOrBuilder getUpdateUserOrBuilder() { + return getUpdateUser(); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 4; + private volatile java.lang.Object description_; + /** + *
+     * The user-provided description of the corresponding Remote Config template.
+     * 
+ * + * string description = 4; + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + *
+     * The user-provided description of the corresponding Remote Config template.
+     * 
+ * + * string description = 4; + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UPDATE_ORIGIN_FIELD_NUMBER = 5; + private int updateOrigin_; + /** + *
+     * Where the update action originated.
+     * 
+ * + * .google.events.firebase.remoteconfig.v1.RemoteConfigUpdateOrigin update_origin = 5; + * @return The enum numeric value on the wire for updateOrigin. + */ + @java.lang.Override public int getUpdateOriginValue() { + return updateOrigin_; + } + /** + *
+     * Where the update action originated.
+     * 
+ * + * .google.events.firebase.remoteconfig.v1.RemoteConfigUpdateOrigin update_origin = 5; + * @return The updateOrigin. + */ + @java.lang.Override public google.events.firebase.remoteconfig.v1.Data.RemoteConfigUpdateOrigin getUpdateOrigin() { + @SuppressWarnings("deprecation") + google.events.firebase.remoteconfig.v1.Data.RemoteConfigUpdateOrigin result = google.events.firebase.remoteconfig.v1.Data.RemoteConfigUpdateOrigin.valueOf(updateOrigin_); + return result == null ? google.events.firebase.remoteconfig.v1.Data.RemoteConfigUpdateOrigin.UNRECOGNIZED : result; + } + + public static final int UPDATE_TYPE_FIELD_NUMBER = 6; + private int updateType_; + /** + *
+     * What type of update was made.
+     * 
+ * + * .google.events.firebase.remoteconfig.v1.RemoteConfigUpdateType update_type = 6; + * @return The enum numeric value on the wire for updateType. + */ + @java.lang.Override public int getUpdateTypeValue() { + return updateType_; + } + /** + *
+     * What type of update was made.
+     * 
+ * + * .google.events.firebase.remoteconfig.v1.RemoteConfigUpdateType update_type = 6; + * @return The updateType. + */ + @java.lang.Override public google.events.firebase.remoteconfig.v1.Data.RemoteConfigUpdateType getUpdateType() { + @SuppressWarnings("deprecation") + google.events.firebase.remoteconfig.v1.Data.RemoteConfigUpdateType result = google.events.firebase.remoteconfig.v1.Data.RemoteConfigUpdateType.valueOf(updateType_); + return result == null ? google.events.firebase.remoteconfig.v1.Data.RemoteConfigUpdateType.UNRECOGNIZED : result; + } + + public static final int ROLLBACK_SOURCE_FIELD_NUMBER = 7; + private long rollbackSource_; + /** + *
+     * Only present if this version is the result of a rollback, and will be the
+     * version number of the Remote Config template that was rolled-back to.
+     * 
+ * + * int64 rollback_source = 7; + * @return The rollbackSource. + */ + @java.lang.Override + public long getRollbackSource() { + return rollbackSource_; + } + + 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 (versionNumber_ != 0L) { + output.writeInt64(1, versionNumber_); + } + if (updateTime_ != null) { + output.writeMessage(2, getUpdateTime()); + } + if (updateUser_ != null) { + output.writeMessage(3, getUpdateUser()); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); + } + if (updateOrigin_ != google.events.firebase.remoteconfig.v1.Data.RemoteConfigUpdateOrigin.REMOTE_CONFIG_UPDATE_ORIGIN_UNSPECIFIED.getNumber()) { + output.writeEnum(5, updateOrigin_); + } + if (updateType_ != google.events.firebase.remoteconfig.v1.Data.RemoteConfigUpdateType.REMOTE_CONFIG_UPDATE_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(6, updateType_); + } + if (rollbackSource_ != 0L) { + output.writeInt64(7, rollbackSource_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (versionNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, versionNumber_); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateTime()); + } + if (updateUser_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateUser()); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); + } + if (updateOrigin_ != google.events.firebase.remoteconfig.v1.Data.RemoteConfigUpdateOrigin.REMOTE_CONFIG_UPDATE_ORIGIN_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, updateOrigin_); + } + if (updateType_ != google.events.firebase.remoteconfig.v1.Data.RemoteConfigUpdateType.REMOTE_CONFIG_UPDATE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, updateType_); + } + if (rollbackSource_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, rollbackSource_); + } + 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.firebase.remoteconfig.v1.Data.RemoteConfigEventData)) { + return super.equals(obj); + } + google.events.firebase.remoteconfig.v1.Data.RemoteConfigEventData other = (google.events.firebase.remoteconfig.v1.Data.RemoteConfigEventData) obj; + + if (getVersionNumber() + != other.getVersionNumber()) return false; + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (hasUpdateUser() != other.hasUpdateUser()) return false; + if (hasUpdateUser()) { + if (!getUpdateUser() + .equals(other.getUpdateUser())) return false; + } + if (!getDescription() + .equals(other.getDescription())) return false; + if (updateOrigin_ != other.updateOrigin_) return false; + if (updateType_ != other.updateType_) return false; + if (getRollbackSource() + != other.getRollbackSource()) 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) + VERSION_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getVersionNumber()); + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasUpdateUser()) { + hash = (37 * hash) + UPDATE_USER_FIELD_NUMBER; + hash = (53 * hash) + getUpdateUser().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + UPDATE_ORIGIN_FIELD_NUMBER; + hash = (53 * hash) + updateOrigin_; + hash = (37 * hash) + UPDATE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + updateType_; + hash = (37 * hash) + ROLLBACK_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRollbackSource()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static google.events.firebase.remoteconfig.v1.Data.RemoteConfigEventData parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.remoteconfig.v1.Data.RemoteConfigEventData parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.firebase.remoteconfig.v1.Data.RemoteConfigEventData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.remoteconfig.v1.Data.RemoteConfigEventData 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.firebase.remoteconfig.v1.Data.RemoteConfigEventData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.remoteconfig.v1.Data.RemoteConfigEventData parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.firebase.remoteconfig.v1.Data.RemoteConfigEventData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.firebase.remoteconfig.v1.Data.RemoteConfigEventData 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.firebase.remoteconfig.v1.Data.RemoteConfigEventData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static google.events.firebase.remoteconfig.v1.Data.RemoteConfigEventData 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.firebase.remoteconfig.v1.Data.RemoteConfigEventData parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.firebase.remoteconfig.v1.Data.RemoteConfigEventData 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.firebase.remoteconfig.v1.Data.RemoteConfigEventData 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 within all Firebase Remote Config events.
+     * 
+ * + * Protobuf type {@code google.events.firebase.remoteconfig.v1.RemoteConfigEventData} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.events.firebase.remoteconfig.v1.RemoteConfigEventData) + google.events.firebase.remoteconfig.v1.Data.RemoteConfigEventDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.firebase.remoteconfig.v1.Data.internal_static_google_events_firebase_remoteconfig_v1_RemoteConfigEventData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.firebase.remoteconfig.v1.Data.internal_static_google_events_firebase_remoteconfig_v1_RemoteConfigEventData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.firebase.remoteconfig.v1.Data.RemoteConfigEventData.class, google.events.firebase.remoteconfig.v1.Data.RemoteConfigEventData.Builder.class); + } + + // Construct using google.events.firebase.remoteconfig.v1.Data.RemoteConfigEventData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + versionNumber_ = 0L; + + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + if (updateUserBuilder_ == null) { + updateUser_ = null; + } else { + updateUser_ = null; + updateUserBuilder_ = null; + } + description_ = ""; + + updateOrigin_ = 0; + + updateType_ = 0; + + rollbackSource_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.events.firebase.remoteconfig.v1.Data.internal_static_google_events_firebase_remoteconfig_v1_RemoteConfigEventData_descriptor; + } + + @java.lang.Override + public google.events.firebase.remoteconfig.v1.Data.RemoteConfigEventData getDefaultInstanceForType() { + return google.events.firebase.remoteconfig.v1.Data.RemoteConfigEventData.getDefaultInstance(); + } + + @java.lang.Override + public google.events.firebase.remoteconfig.v1.Data.RemoteConfigEventData build() { + google.events.firebase.remoteconfig.v1.Data.RemoteConfigEventData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public google.events.firebase.remoteconfig.v1.Data.RemoteConfigEventData buildPartial() { + google.events.firebase.remoteconfig.v1.Data.RemoteConfigEventData result = new google.events.firebase.remoteconfig.v1.Data.RemoteConfigEventData(this); + result.versionNumber_ = versionNumber_; + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + if (updateUserBuilder_ == null) { + result.updateUser_ = updateUser_; + } else { + result.updateUser_ = updateUserBuilder_.build(); + } + result.description_ = description_; + result.updateOrigin_ = updateOrigin_; + result.updateType_ = updateType_; + result.rollbackSource_ = rollbackSource_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.events.firebase.remoteconfig.v1.Data.RemoteConfigEventData) { + return mergeFrom((google.events.firebase.remoteconfig.v1.Data.RemoteConfigEventData)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(google.events.firebase.remoteconfig.v1.Data.RemoteConfigEventData other) { + if (other == google.events.firebase.remoteconfig.v1.Data.RemoteConfigEventData.getDefaultInstance()) return this; + if (other.getVersionNumber() != 0L) { + setVersionNumber(other.getVersionNumber()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasUpdateUser()) { + mergeUpdateUser(other.getUpdateUser()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.updateOrigin_ != 0) { + setUpdateOriginValue(other.getUpdateOriginValue()); + } + if (other.updateType_ != 0) { + setUpdateTypeValue(other.getUpdateTypeValue()); + } + if (other.getRollbackSource() != 0L) { + setRollbackSource(other.getRollbackSource()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.events.firebase.remoteconfig.v1.Data.RemoteConfigEventData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.events.firebase.remoteconfig.v1.Data.RemoteConfigEventData) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long versionNumber_ ; + /** + *
+       * The version number of the version's corresponding Remote Config template.
+       * 
+ * + * int64 version_number = 1; + * @return The versionNumber. + */ + @java.lang.Override + public long getVersionNumber() { + return versionNumber_; + } + /** + *
+       * The version number of the version's corresponding Remote Config template.
+       * 
+ * + * int64 version_number = 1; + * @param value The versionNumber to set. + * @return This builder for chaining. + */ + public Builder setVersionNumber(long value) { + + versionNumber_ = value; + onChanged(); + return this; + } + /** + *
+       * The version number of the version's corresponding Remote Config template.
+       * 
+ * + * int64 version_number = 1; + * @return This builder for chaining. + */ + public Builder clearVersionNumber() { + + versionNumber_ = 0L; + onChanged(); + return this; + } + + 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_; + /** + *
+       * When the Remote Config template was written to the Remote Config server.
+       * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return updateTimeBuilder_ != null || updateTime_ != null; + } + /** + *
+       * When the Remote Config template was written to the Remote Config server.
+       * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * @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(); + } + } + /** + *
+       * When the Remote Config template was written to the Remote Config server.
+       * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + 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; + } + /** + *
+       * When the Remote Config template was written to the Remote Config server.
+       * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * When the Remote Config template was written to the Remote Config server.
+       * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + 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; + } + /** + *
+       * When the Remote Config template was written to the Remote Config server.
+       * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + *
+       * When the Remote Config template was written to the Remote Config server.
+       * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + *
+       * When the Remote Config template was written to the Remote Config server.
+       * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + } + /** + *
+       * When the Remote Config template was written to the Remote Config server.
+       * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + 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_; + } + + private google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser updateUser_; + private com.google.protobuf.SingleFieldBuilderV3< + google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser, google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser.Builder, google.events.firebase.remoteconfig.v1.Data.RemoteConfigUserOrBuilder> updateUserBuilder_; + /** + *
+       *  Aggregation of all metadata fields about the account that performed the update.
+       * 
+ * + * .google.events.firebase.remoteconfig.v1.RemoteConfigUser update_user = 3; + * @return Whether the updateUser field is set. + */ + public boolean hasUpdateUser() { + return updateUserBuilder_ != null || updateUser_ != null; + } + /** + *
+       *  Aggregation of all metadata fields about the account that performed the update.
+       * 
+ * + * .google.events.firebase.remoteconfig.v1.RemoteConfigUser update_user = 3; + * @return The updateUser. + */ + public google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser getUpdateUser() { + if (updateUserBuilder_ == null) { + return updateUser_ == null ? google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser.getDefaultInstance() : updateUser_; + } else { + return updateUserBuilder_.getMessage(); + } + } + /** + *
+       *  Aggregation of all metadata fields about the account that performed the update.
+       * 
+ * + * .google.events.firebase.remoteconfig.v1.RemoteConfigUser update_user = 3; + */ + public Builder setUpdateUser(google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser value) { + if (updateUserBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateUser_ = value; + onChanged(); + } else { + updateUserBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *  Aggregation of all metadata fields about the account that performed the update.
+       * 
+ * + * .google.events.firebase.remoteconfig.v1.RemoteConfigUser update_user = 3; + */ + public Builder setUpdateUser( + google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser.Builder builderForValue) { + if (updateUserBuilder_ == null) { + updateUser_ = builderForValue.build(); + onChanged(); + } else { + updateUserBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *  Aggregation of all metadata fields about the account that performed the update.
+       * 
+ * + * .google.events.firebase.remoteconfig.v1.RemoteConfigUser update_user = 3; + */ + public Builder mergeUpdateUser(google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser value) { + if (updateUserBuilder_ == null) { + if (updateUser_ != null) { + updateUser_ = + google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser.newBuilder(updateUser_).mergeFrom(value).buildPartial(); + } else { + updateUser_ = value; + } + onChanged(); + } else { + updateUserBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *  Aggregation of all metadata fields about the account that performed the update.
+       * 
+ * + * .google.events.firebase.remoteconfig.v1.RemoteConfigUser update_user = 3; + */ + public Builder clearUpdateUser() { + if (updateUserBuilder_ == null) { + updateUser_ = null; + onChanged(); + } else { + updateUser_ = null; + updateUserBuilder_ = null; + } + + return this; + } + /** + *
+       *  Aggregation of all metadata fields about the account that performed the update.
+       * 
+ * + * .google.events.firebase.remoteconfig.v1.RemoteConfigUser update_user = 3; + */ + public google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser.Builder getUpdateUserBuilder() { + + onChanged(); + return getUpdateUserFieldBuilder().getBuilder(); + } + /** + *
+       *  Aggregation of all metadata fields about the account that performed the update.
+       * 
+ * + * .google.events.firebase.remoteconfig.v1.RemoteConfigUser update_user = 3; + */ + public google.events.firebase.remoteconfig.v1.Data.RemoteConfigUserOrBuilder getUpdateUserOrBuilder() { + if (updateUserBuilder_ != null) { + return updateUserBuilder_.getMessageOrBuilder(); + } else { + return updateUser_ == null ? + google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser.getDefaultInstance() : updateUser_; + } + } + /** + *
+       *  Aggregation of all metadata fields about the account that performed the update.
+       * 
+ * + * .google.events.firebase.remoteconfig.v1.RemoteConfigUser update_user = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser, google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser.Builder, google.events.firebase.remoteconfig.v1.Data.RemoteConfigUserOrBuilder> + getUpdateUserFieldBuilder() { + if (updateUserBuilder_ == null) { + updateUserBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser, google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser.Builder, google.events.firebase.remoteconfig.v1.Data.RemoteConfigUserOrBuilder>( + getUpdateUser(), + getParentForChildren(), + isClean()); + updateUser_ = null; + } + return updateUserBuilder_; + } + + private java.lang.Object description_ = ""; + /** + *
+       * The user-provided description of the corresponding Remote Config template.
+       * 
+ * + * string description = 4; + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The user-provided description of the corresponding Remote Config template.
+       * 
+ * + * string description = 4; + * @return The bytes for description. + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The user-provided description of the corresponding Remote Config template.
+       * 
+ * + * string description = 4; + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + *
+       * The user-provided description of the corresponding Remote Config template.
+       * 
+ * + * string description = 4; + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + *
+       * The user-provided description of the corresponding Remote Config template.
+       * 
+ * + * string description = 4; + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private int updateOrigin_ = 0; + /** + *
+       * Where the update action originated.
+       * 
+ * + * .google.events.firebase.remoteconfig.v1.RemoteConfigUpdateOrigin update_origin = 5; + * @return The enum numeric value on the wire for updateOrigin. + */ + @java.lang.Override public int getUpdateOriginValue() { + return updateOrigin_; + } + /** + *
+       * Where the update action originated.
+       * 
+ * + * .google.events.firebase.remoteconfig.v1.RemoteConfigUpdateOrigin update_origin = 5; + * @param value The enum numeric value on the wire for updateOrigin to set. + * @return This builder for chaining. + */ + public Builder setUpdateOriginValue(int value) { + + updateOrigin_ = value; + onChanged(); + return this; + } + /** + *
+       * Where the update action originated.
+       * 
+ * + * .google.events.firebase.remoteconfig.v1.RemoteConfigUpdateOrigin update_origin = 5; + * @return The updateOrigin. + */ + @java.lang.Override + public google.events.firebase.remoteconfig.v1.Data.RemoteConfigUpdateOrigin getUpdateOrigin() { + @SuppressWarnings("deprecation") + google.events.firebase.remoteconfig.v1.Data.RemoteConfigUpdateOrigin result = google.events.firebase.remoteconfig.v1.Data.RemoteConfigUpdateOrigin.valueOf(updateOrigin_); + return result == null ? google.events.firebase.remoteconfig.v1.Data.RemoteConfigUpdateOrigin.UNRECOGNIZED : result; + } + /** + *
+       * Where the update action originated.
+       * 
+ * + * .google.events.firebase.remoteconfig.v1.RemoteConfigUpdateOrigin update_origin = 5; + * @param value The updateOrigin to set. + * @return This builder for chaining. + */ + public Builder setUpdateOrigin(google.events.firebase.remoteconfig.v1.Data.RemoteConfigUpdateOrigin value) { + if (value == null) { + throw new NullPointerException(); + } + + updateOrigin_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Where the update action originated.
+       * 
+ * + * .google.events.firebase.remoteconfig.v1.RemoteConfigUpdateOrigin update_origin = 5; + * @return This builder for chaining. + */ + public Builder clearUpdateOrigin() { + + updateOrigin_ = 0; + onChanged(); + return this; + } + + private int updateType_ = 0; + /** + *
+       * What type of update was made.
+       * 
+ * + * .google.events.firebase.remoteconfig.v1.RemoteConfigUpdateType update_type = 6; + * @return The enum numeric value on the wire for updateType. + */ + @java.lang.Override public int getUpdateTypeValue() { + return updateType_; + } + /** + *
+       * What type of update was made.
+       * 
+ * + * .google.events.firebase.remoteconfig.v1.RemoteConfigUpdateType update_type = 6; + * @param value The enum numeric value on the wire for updateType to set. + * @return This builder for chaining. + */ + public Builder setUpdateTypeValue(int value) { + + updateType_ = value; + onChanged(); + return this; + } + /** + *
+       * What type of update was made.
+       * 
+ * + * .google.events.firebase.remoteconfig.v1.RemoteConfigUpdateType update_type = 6; + * @return The updateType. + */ + @java.lang.Override + public google.events.firebase.remoteconfig.v1.Data.RemoteConfigUpdateType getUpdateType() { + @SuppressWarnings("deprecation") + google.events.firebase.remoteconfig.v1.Data.RemoteConfigUpdateType result = google.events.firebase.remoteconfig.v1.Data.RemoteConfigUpdateType.valueOf(updateType_); + return result == null ? google.events.firebase.remoteconfig.v1.Data.RemoteConfigUpdateType.UNRECOGNIZED : result; + } + /** + *
+       * What type of update was made.
+       * 
+ * + * .google.events.firebase.remoteconfig.v1.RemoteConfigUpdateType update_type = 6; + * @param value The updateType to set. + * @return This builder for chaining. + */ + public Builder setUpdateType(google.events.firebase.remoteconfig.v1.Data.RemoteConfigUpdateType value) { + if (value == null) { + throw new NullPointerException(); + } + + updateType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * What type of update was made.
+       * 
+ * + * .google.events.firebase.remoteconfig.v1.RemoteConfigUpdateType update_type = 6; + * @return This builder for chaining. + */ + public Builder clearUpdateType() { + + updateType_ = 0; + onChanged(); + return this; + } + + private long rollbackSource_ ; + /** + *
+       * Only present if this version is the result of a rollback, and will be the
+       * version number of the Remote Config template that was rolled-back to.
+       * 
+ * + * int64 rollback_source = 7; + * @return The rollbackSource. + */ + @java.lang.Override + public long getRollbackSource() { + return rollbackSource_; + } + /** + *
+       * Only present if this version is the result of a rollback, and will be the
+       * version number of the Remote Config template that was rolled-back to.
+       * 
+ * + * int64 rollback_source = 7; + * @param value The rollbackSource to set. + * @return This builder for chaining. + */ + public Builder setRollbackSource(long value) { + + rollbackSource_ = value; + onChanged(); + return this; + } + /** + *
+       * Only present if this version is the result of a rollback, and will be the
+       * version number of the Remote Config template that was rolled-back to.
+       * 
+ * + * int64 rollback_source = 7; + * @return This builder for chaining. + */ + public Builder clearRollbackSource() { + + rollbackSource_ = 0L; + 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.firebase.remoteconfig.v1.RemoteConfigEventData) + } + + // @@protoc_insertion_point(class_scope:google.events.firebase.remoteconfig.v1.RemoteConfigEventData) + private static final google.events.firebase.remoteconfig.v1.Data.RemoteConfigEventData DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new google.events.firebase.remoteconfig.v1.Data.RemoteConfigEventData(); + } + + public static google.events.firebase.remoteconfig.v1.Data.RemoteConfigEventData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RemoteConfigEventData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RemoteConfigEventData(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public google.events.firebase.remoteconfig.v1.Data.RemoteConfigEventData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RemoteConfigUserOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.events.firebase.remoteconfig.v1.RemoteConfigUser) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Display name.
+     * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+     * Display name.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * Email address.
+     * 
+ * + * string email = 2; + * @return The email. + */ + java.lang.String getEmail(); + /** + *
+     * Email address.
+     * 
+ * + * string email = 2; + * @return The bytes for email. + */ + com.google.protobuf.ByteString + getEmailBytes(); + + /** + *
+     * Image URL.
+     * 
+ * + * string image_url = 3; + * @return The imageUrl. + */ + java.lang.String getImageUrl(); + /** + *
+     * Image URL.
+     * 
+ * + * string image_url = 3; + * @return The bytes for imageUrl. + */ + com.google.protobuf.ByteString + getImageUrlBytes(); + } + /** + *
+   * All the fields associated with the person/service account
+   * that wrote a Remote Config template.
+   * 
+ * + * Protobuf type {@code google.events.firebase.remoteconfig.v1.RemoteConfigUser} + */ + public static final class RemoteConfigUser extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.events.firebase.remoteconfig.v1.RemoteConfigUser) + RemoteConfigUserOrBuilder { + private static final long serialVersionUID = 0L; + // Use RemoteConfigUser.newBuilder() to construct. + private RemoteConfigUser(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RemoteConfigUser() { + name_ = ""; + email_ = ""; + imageUrl_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RemoteConfigUser(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RemoteConfigUser( + 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(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + email_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + imageUrl_ = 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.firebase.remoteconfig.v1.Data.internal_static_google_events_firebase_remoteconfig_v1_RemoteConfigUser_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.firebase.remoteconfig.v1.Data.internal_static_google_events_firebase_remoteconfig_v1_RemoteConfigUser_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser.class, google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+     * Display name.
+     * 
+ * + * 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; + } + } + /** + *
+     * Display name.
+     * 
+ * + * 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 EMAIL_FIELD_NUMBER = 2; + private volatile java.lang.Object email_; + /** + *
+     * Email address.
+     * 
+ * + * string email = 2; + * @return The email. + */ + @java.lang.Override + public java.lang.String getEmail() { + java.lang.Object ref = email_; + 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(); + email_ = s; + return s; + } + } + /** + *
+     * Email address.
+     * 
+ * + * string email = 2; + * @return The bytes for email. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEmailBytes() { + java.lang.Object ref = email_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IMAGE_URL_FIELD_NUMBER = 3; + private volatile java.lang.Object imageUrl_; + /** + *
+     * Image URL.
+     * 
+ * + * string image_url = 3; + * @return The imageUrl. + */ + @java.lang.Override + public java.lang.String getImageUrl() { + java.lang.Object ref = imageUrl_; + 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(); + imageUrl_ = s; + return s; + } + } + /** + *
+     * Image URL.
+     * 
+ * + * string image_url = 3; + * @return The bytes for imageUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getImageUrlBytes() { + java.lang.Object ref = imageUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + imageUrl_ = 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getEmailBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, email_); + } + if (!getImageUrlBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, imageUrl_); + } + 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_); + } + if (!getEmailBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, email_); + } + if (!getImageUrlBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, imageUrl_); + } + 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.firebase.remoteconfig.v1.Data.RemoteConfigUser)) { + return super.equals(obj); + } + google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser other = (google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getEmail() + .equals(other.getEmail())) return false; + if (!getImageUrl() + .equals(other.getImageUrl())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getEmail().hashCode(); + hash = (37 * hash) + IMAGE_URL_FIELD_NUMBER; + hash = (53 * hash) + getImageUrl().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser 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.firebase.remoteconfig.v1.Data.RemoteConfigUser parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser 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.firebase.remoteconfig.v1.Data.RemoteConfigUser parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser 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.firebase.remoteconfig.v1.Data.RemoteConfigUser parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser 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.firebase.remoteconfig.v1.Data.RemoteConfigUser 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; + } + /** + *
+     * All the fields associated with the person/service account
+     * that wrote a Remote Config template.
+     * 
+ * + * Protobuf type {@code google.events.firebase.remoteconfig.v1.RemoteConfigUser} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.events.firebase.remoteconfig.v1.RemoteConfigUser) + google.events.firebase.remoteconfig.v1.Data.RemoteConfigUserOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return google.events.firebase.remoteconfig.v1.Data.internal_static_google_events_firebase_remoteconfig_v1_RemoteConfigUser_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return google.events.firebase.remoteconfig.v1.Data.internal_static_google_events_firebase_remoteconfig_v1_RemoteConfigUser_fieldAccessorTable + .ensureFieldAccessorsInitialized( + google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser.class, google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser.Builder.class); + } + + // Construct using google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + email_ = ""; + + imageUrl_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return google.events.firebase.remoteconfig.v1.Data.internal_static_google_events_firebase_remoteconfig_v1_RemoteConfigUser_descriptor; + } + + @java.lang.Override + public google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser getDefaultInstanceForType() { + return google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser.getDefaultInstance(); + } + + @java.lang.Override + public google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser build() { + google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser buildPartial() { + google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser result = new google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser(this); + result.name_ = name_; + result.email_ = email_; + result.imageUrl_ = imageUrl_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser) { + return mergeFrom((google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser other) { + if (other == google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getEmail().isEmpty()) { + email_ = other.email_; + onChanged(); + } + if (!other.getImageUrl().isEmpty()) { + imageUrl_ = other.imageUrl_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * Display name.
+       * 
+ * + * 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; + } + } + /** + *
+       * Display name.
+       * 
+ * + * 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; + } + } + /** + *
+       * Display name.
+       * 
+ * + * 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; + } + /** + *
+       * Display name.
+       * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * Display name.
+       * 
+ * + * 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 java.lang.Object email_ = ""; + /** + *
+       * Email address.
+       * 
+ * + * string email = 2; + * @return The email. + */ + public java.lang.String getEmail() { + java.lang.Object ref = email_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + email_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Email address.
+       * 
+ * + * string email = 2; + * @return The bytes for email. + */ + public com.google.protobuf.ByteString + getEmailBytes() { + java.lang.Object ref = email_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Email address.
+       * 
+ * + * string email = 2; + * @param value The email to set. + * @return This builder for chaining. + */ + public Builder setEmail( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + email_ = value; + onChanged(); + return this; + } + /** + *
+       * Email address.
+       * 
+ * + * string email = 2; + * @return This builder for chaining. + */ + public Builder clearEmail() { + + email_ = getDefaultInstance().getEmail(); + onChanged(); + return this; + } + /** + *
+       * Email address.
+       * 
+ * + * string email = 2; + * @param value The bytes for email to set. + * @return This builder for chaining. + */ + public Builder setEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + email_ = value; + onChanged(); + return this; + } + + private java.lang.Object imageUrl_ = ""; + /** + *
+       * Image URL.
+       * 
+ * + * string image_url = 3; + * @return The imageUrl. + */ + public java.lang.String getImageUrl() { + java.lang.Object ref = imageUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Image URL.
+       * 
+ * + * string image_url = 3; + * @return The bytes for imageUrl. + */ + public com.google.protobuf.ByteString + getImageUrlBytes() { + java.lang.Object ref = imageUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + imageUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Image URL.
+       * 
+ * + * string image_url = 3; + * @param value The imageUrl to set. + * @return This builder for chaining. + */ + public Builder setImageUrl( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + imageUrl_ = value; + onChanged(); + return this; + } + /** + *
+       * Image URL.
+       * 
+ * + * string image_url = 3; + * @return This builder for chaining. + */ + public Builder clearImageUrl() { + + imageUrl_ = getDefaultInstance().getImageUrl(); + onChanged(); + return this; + } + /** + *
+       * Image URL.
+       * 
+ * + * string image_url = 3; + * @param value The bytes for imageUrl to set. + * @return This builder for chaining. + */ + public Builder setImageUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + imageUrl_ = 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.firebase.remoteconfig.v1.RemoteConfigUser) + } + + // @@protoc_insertion_point(class_scope:google.events.firebase.remoteconfig.v1.RemoteConfigUser) + private static final google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser(); + } + + public static google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RemoteConfigUser parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RemoteConfigUser(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public google.events.firebase.remoteconfig.v1.Data.RemoteConfigUser getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_firebase_remoteconfig_v1_RemoteConfigEventData_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_firebase_remoteconfig_v1_RemoteConfigEventData_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_events_firebase_remoteconfig_v1_RemoteConfigUser_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_events_firebase_remoteconfig_v1_RemoteConfigUser_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n1google/events/firebase/remoteconfig/v1" + + "/data.proto\022&google.events.firebase.remo" + + "teconfig.v1\032\037google/protobuf/timestamp.p" + + "roto\"\213\003\n\025RemoteConfigEventData\022\026\n\016versio" + + "n_number\030\001 \001(\003\022/\n\013update_time\030\002 \001(\0132\032.go" + + "ogle.protobuf.Timestamp\022M\n\013update_user\030\003" + + " \001(\01328.google.events.firebase.remoteconf" + + "ig.v1.RemoteConfigUser\022\023\n\013description\030\004 " + + "\001(\t\022W\n\rupdate_origin\030\005 \001(\0162@.google.even" + + "ts.firebase.remoteconfig.v1.RemoteConfig" + + "UpdateOrigin\022S\n\013update_type\030\006 \001(\0162>.goog" + + "le.events.firebase.remoteconfig.v1.Remot" + + "eConfigUpdateType\022\027\n\017rollback_source\030\007 \001" + + "(\003\"B\n\020RemoteConfigUser\022\014\n\004name\030\001 \001(\t\022\r\n\005" + + "email\030\002 \001(\t\022\021\n\timage_url\030\003 \001(\t*v\n\030Remote" + + "ConfigUpdateOrigin\022+\n\'REMOTE_CONFIG_UPDA" + + "TE_ORIGIN_UNSPECIFIED\020\000\022\013\n\007CONSOLE\020\001\022\014\n\010" + + "REST_API\020\002\022\022\n\016ADMIN_SDK_NODE\020\003*|\n\026Remote" + + "ConfigUpdateType\022)\n%REMOTE_CONFIG_UPDATE" + + "_TYPE_UNSPECIFIED\020\000\022\026\n\022INCREMENTAL_UPDAT" + + "E\020\001\022\021\n\rFORCED_UPDATE\020\002\022\014\n\010ROLLBACK\020\003B2\252\002" + + "/Google.Events.Protobuf.Firebase.RemoteC" + + "onfig.V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_events_firebase_remoteconfig_v1_RemoteConfigEventData_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_events_firebase_remoteconfig_v1_RemoteConfigEventData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_firebase_remoteconfig_v1_RemoteConfigEventData_descriptor, + new java.lang.String[] { "VersionNumber", "UpdateTime", "UpdateUser", "Description", "UpdateOrigin", "UpdateType", "RollbackSource", }); + internal_static_google_events_firebase_remoteconfig_v1_RemoteConfigUser_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_events_firebase_remoteconfig_v1_RemoteConfigUser_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_events_firebase_remoteconfig_v1_RemoteConfigUser_descriptor, + new java.lang.String[] { "Name", "Email", "ImageUrl", }); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/google/events/firebase/v1/Data.java b/src/google/events/firebase/v1/Data.java deleted file mode 100644 index 29b76fd4..00000000 --- a/src/google/events/firebase/v1/Data.java +++ /dev/null @@ -1,1500 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/events/firebase/v1/data.proto - -package google.events.firebase.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 DocumentEventDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.events.firebase.v1.DocumentEventData) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * 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 - getWildcards(); - /** - *
-     * 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 - getWildcardsMap(); - /** - *
-     * 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 - wildcards__ = input.readMessage( - WildcardsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - wildcards_.getMutableMap().put( - wildcards__.getKey(), wildcards__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return google.events.firebase.v1.Data.internal_static_google_events_firebase_v1_DocumentEventData_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 3: - return internalGetWildcards(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return google.events.firebase.v1.Data.internal_static_google_events_firebase_v1_DocumentEventData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - google.events.firebase.v1.Data.DocumentEventData.class, google.events.firebase.v1.Data.DocumentEventData.Builder.class); - } - - public static final int DATA_FIELD_NUMBER = 1; - private com.google.protobuf.Value data_; - /** - *
-     * 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 - .newDefaultInstance( - google.events.firebase.v1.Data.internal_static_google_events_firebase_v1_DocumentEventData_WildcardsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> wildcards_; - private com.google.protobuf.MapField - internalGetWildcards() { - if (wildcards_ == null) { - return com.google.protobuf.MapField.emptyMapField( - WildcardsDefaultEntryHolder.defaultEntry); - } - return wildcards_; - } - - public int getWildcardsCount() { - return internalGetWildcards().getMap().size(); - } - /** - *
-     * 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 getWildcards() { - return getWildcardsMap(); - } - /** - *
-     * 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 getWildcardsMap() { - return internalGetWildcards().getMap(); - } - /** - *
-     * 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 map = - internalGetWildcards().getMap(); - return map.containsKey(key) ? map.get(key) : 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.Override - - public java.lang.String getWildcardsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetWildcards().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (data_ != null) { - output.writeMessage(1, getData()); - } - if (delta_ != null) { - output.writeMessage(2, getDelta()); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetWildcards(), - WildcardsDefaultEntryHolder.defaultEntry, - 3); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (data_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getData()); - } - if (delta_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDelta()); - } - for (java.util.Map.Entry entry - : internalGetWildcards().getMap().entrySet()) { - com.google.protobuf.MapEntry - wildcards__ = WildcardsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, wildcards__); - } - 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.firebase.v1.Data.DocumentEventData)) { - return super.equals(obj); - } - google.events.firebase.v1.Data.DocumentEventData other = (google.events.firebase.v1.Data.DocumentEventData) obj; - - if (hasData() != other.hasData()) return false; - if (hasData()) { - if (!getData() - .equals(other.getData())) return false; - } - if (hasDelta() != other.hasDelta()) return false; - if (hasDelta()) { - if (!getDelta() - .equals(other.getDelta())) return false; - } - if (!internalGetWildcards().equals( - other.internalGetWildcards())) 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 (hasData()) { - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - } - if (hasDelta()) { - hash = (37 * hash) + DELTA_FIELD_NUMBER; - hash = (53 * hash) + getDelta().hashCode(); - } - if (!internalGetWildcards().getMap().isEmpty()) { - hash = (37 * hash) + WILDCARDS_FIELD_NUMBER; - hash = (53 * hash) + internalGetWildcards().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static google.events.firebase.v1.Data.DocumentEventData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static google.events.firebase.v1.Data.DocumentEventData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static google.events.firebase.v1.Data.DocumentEventData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static google.events.firebase.v1.Data.DocumentEventData 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.firebase.v1.Data.DocumentEventData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static google.events.firebase.v1.Data.DocumentEventData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static google.events.firebase.v1.Data.DocumentEventData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static google.events.firebase.v1.Data.DocumentEventData 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.firebase.v1.Data.DocumentEventData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static google.events.firebase.v1.Data.DocumentEventData 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.firebase.v1.Data.DocumentEventData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static google.events.firebase.v1.Data.DocumentEventData 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.firebase.v1.Data.DocumentEventData 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 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 implements - // @@protoc_insertion_point(builder_implements:google.events.firebase.v1.DocumentEventData) - google.events.firebase.v1.Data.DocumentEventDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return google.events.firebase.v1.Data.internal_static_google_events_firebase_v1_DocumentEventData_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 3: - return internalGetWildcards(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 3: - return internalGetMutableWildcards(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return google.events.firebase.v1.Data.internal_static_google_events_firebase_v1_DocumentEventData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - google.events.firebase.v1.Data.DocumentEventData.class, google.events.firebase.v1.Data.DocumentEventData.Builder.class); - } - - // Construct using google.events.firebase.v1.Data.DocumentEventData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (dataBuilder_ == null) { - data_ = null; - } else { - data_ = null; - dataBuilder_ = null; - } - if (deltaBuilder_ == null) { - delta_ = null; - } else { - delta_ = null; - deltaBuilder_ = null; - } - internalGetMutableWildcards().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return google.events.firebase.v1.Data.internal_static_google_events_firebase_v1_DocumentEventData_descriptor; - } - - @java.lang.Override - public google.events.firebase.v1.Data.DocumentEventData getDefaultInstanceForType() { - return google.events.firebase.v1.Data.DocumentEventData.getDefaultInstance(); - } - - @java.lang.Override - public google.events.firebase.v1.Data.DocumentEventData build() { - google.events.firebase.v1.Data.DocumentEventData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public google.events.firebase.v1.Data.DocumentEventData buildPartial() { - google.events.firebase.v1.Data.DocumentEventData result = new google.events.firebase.v1.Data.DocumentEventData(this); - int from_bitField0_ = bitField0_; - if (dataBuilder_ == null) { - result.data_ = data_; - } else { - result.data_ = dataBuilder_.build(); - } - if (deltaBuilder_ == null) { - result.delta_ = delta_; - } else { - result.delta_ = deltaBuilder_.build(); - } - result.wildcards_ = internalGetWildcards(); - result.wildcards_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof google.events.firebase.v1.Data.DocumentEventData) { - return mergeFrom((google.events.firebase.v1.Data.DocumentEventData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(google.events.firebase.v1.Data.DocumentEventData other) { - if (other == google.events.firebase.v1.Data.DocumentEventData.getDefaultInstance()) return this; - if (other.hasData()) { - mergeData(other.getData()); - } - if (other.hasDelta()) { - mergeDelta(other.getDelta()); - } - internalGetMutableWildcards().mergeFrom( - other.internalGetWildcards()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - google.events.firebase.v1.Data.DocumentEventData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (google.events.firebase.v1.Data.DocumentEventData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.Value data_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> dataBuilder_; - /** - *
-       * 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 - internalGetWildcards() { - if (wildcards_ == null) { - return com.google.protobuf.MapField.emptyMapField( - WildcardsDefaultEntryHolder.defaultEntry); - } - return wildcards_; - } - private com.google.protobuf.MapField - internalGetMutableWildcards() { - onChanged();; - if (wildcards_ == null) { - wildcards_ = com.google.protobuf.MapField.newMapField( - WildcardsDefaultEntryHolder.defaultEntry); - } - if (!wildcards_.isMutable()) { - wildcards_ = wildcards_.copy(); - } - return wildcards_; - } - - public int getWildcardsCount() { - return internalGetWildcards().getMap().size(); - } - /** - *
-       * 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 getWildcards() { - return getWildcardsMap(); - } - /** - *
-       * 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 getWildcardsMap() { - return internalGetWildcards().getMap(); - } - /** - *
-       * 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 map = - internalGetWildcards().getMap(); - return map.containsKey(key) ? map.get(key) : 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.Override - - public java.lang.String getWildcardsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetWildcards().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearWildcards() { - internalGetMutableWildcards().getMutableMap() - .clear(); - 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 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 - getMutableWildcards() { - return internalGetMutableWildcards().getMutableMap(); - } - /** - *
-       * 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 values) { - internalGetMutableWildcards().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.events.firebase.v1.DocumentEventData) - } - - // @@protoc_insertion_point(class_scope:google.events.firebase.v1.DocumentEventData) - private static final google.events.firebase.v1.Data.DocumentEventData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new google.events.firebase.v1.Data.DocumentEventData(); - } - - public static google.events.firebase.v1.Data.DocumentEventData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentEventData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DocumentEventData(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public google.events.firebase.v1.Data.DocumentEventData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_events_firebase_v1_DocumentEventData_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_events_firebase_v1_DocumentEventData_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_events_firebase_v1_DocumentEventData_WildcardsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_events_firebase_v1_DocumentEventData_WildcardsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n$google/events/firebase/v1/data.proto\022\031" + - "google.events.firebase.v1\032\034google/protob" + - "uf/struct.proto\"\342\001\n\021DocumentEventData\022$\n" + - "\004data\030\001 \001(\0132\026.google.protobuf.Value\022%\n\005d" + - "elta\030\002 \001(\0132\026.google.protobuf.Value\022N\n\twi" + - "ldcards\030\003 \003(\0132;.google.events.firebase.v" + - "1.DocumentEventData.WildcardsEntry\0320\n\016Wi" + - "ldcardsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + - ":\0028\001B%\252\002\"Google.Events.Protobuf.Firebase" + - ".V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.StructProto.getDescriptor(), - }); - internal_static_google_events_firebase_v1_DocumentEventData_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_events_firebase_v1_DocumentEventData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_events_firebase_v1_DocumentEventData_descriptor, - new java.lang.String[] { "Data", "Delta", "Wildcards", }); - internal_static_google_events_firebase_v1_DocumentEventData_WildcardsEntry_descriptor = - internal_static_google_events_firebase_v1_DocumentEventData_descriptor.getNestedTypes().get(0); - internal_static_google_events_firebase_v1_DocumentEventData_WildcardsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_events_firebase_v1_DocumentEventData_WildcardsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.google.protobuf.StructProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -}