Skip to content
This repository was archived by the owner on Sep 19, 2023. It is now read-only.

Commit 9377be6

Browse files
build: migrate analytics to the Java microgenerator (#64)
Committer: @miraleung PiperOrigin-RevId: 346120301 Source-Author: Google APIs <noreply@google.com> Source-Date: Mon Dec 7 10:13:54 2020 -0800 Source-Repo: googleapis/googleapis Source-Sha: 70c794b04230f5dafd612300d409dfd7df98ebca Source-Link: googleapis/googleapis@70c794b
1 parent ac31ff0 commit 9377be6

5 files changed

Lines changed: 82 additions & 31 deletions

File tree

protos/google/analytics/admin/v1alpha/resources.proto

Lines changed: 45 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,12 @@ message Account {
144144
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
145145

146146
// Output only. Time when this account was originally created.
147-
google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
147+
google.protobuf.Timestamp create_time = 2
148+
[(google.api.field_behavior) = OUTPUT_ONLY];
148149

149150
// Output only. Time when account payload fields were last updated.
150-
google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
151+
google.protobuf.Timestamp update_time = 3
152+
[(google.api.field_behavior) = OUTPUT_ONLY];
151153

152154
// Required. Human-readable display name for this account.
153155
string display_name = 4 [(google.api.field_behavior) = REQUIRED];
@@ -177,10 +179,12 @@ message Property {
177179
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
178180

179181
// Output only. Time when the entity was originally created.
180-
google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
182+
google.protobuf.Timestamp create_time = 3
183+
[(google.api.field_behavior) = OUTPUT_ONLY];
181184

182185
// Output only. Time when entity payload fields were last updated.
183-
google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
186+
google.protobuf.Timestamp update_time = 4
187+
[(google.api.field_behavior) = OUTPUT_ONLY];
184188

185189
// Immutable. Resource name of this property's logical parent.
186190
//
@@ -216,8 +220,9 @@ message Property {
216220
// Examples: "USD", "EUR", "JPY"
217221
string currency_code = 8;
218222

219-
// Output only. Indicates whether this Property is soft-deleted or not. Deleted properties
220-
// are excluded from List results unless specifically requested.
223+
// Output only. Indicates whether this Property is soft-deleted or not.
224+
// Deleted properties are excluded from List results unless specifically
225+
// requested.
221226
bool deleted = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
222227
}
223228

@@ -238,10 +243,12 @@ message AndroidAppDataStream {
238243
string firebase_app_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
239244

240245
// Output only. Time when this stream was originally created.
241-
google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
246+
google.protobuf.Timestamp create_time = 3
247+
[(google.api.field_behavior) = OUTPUT_ONLY];
242248

243249
// Output only. Time when stream payload fields were last updated.
244-
google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
250+
google.protobuf.Timestamp update_time = 4
251+
[(google.api.field_behavior) = OUTPUT_ONLY];
245252

246253
// Immutable. The package name for the app being measured.
247254
// Example: "com.example.myandroidapp"
@@ -270,10 +277,12 @@ message IosAppDataStream {
270277
string firebase_app_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
271278

272279
// Output only. Time when this stream was originally created.
273-
google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
280+
google.protobuf.Timestamp create_time = 3
281+
[(google.api.field_behavior) = OUTPUT_ONLY];
274282

275283
// Output only. Time when stream payload fields were last updated.
276-
google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
284+
google.protobuf.Timestamp update_time = 4
285+
[(google.api.field_behavior) = OUTPUT_ONLY];
277286

278287
// Required. Immutable. The Apple App Store Bundle ID for the app
279288
// Example: "com.example.myiosapp"
@@ -309,10 +318,12 @@ message WebDataStream {
309318
string firebase_app_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
310319

311320
// Output only. Time when this stream was originally created.
312-
google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
321+
google.protobuf.Timestamp create_time = 4
322+
[(google.api.field_behavior) = OUTPUT_ONLY];
313323

314324
// Output only. Time when stream payload fields were last updated.
315-
google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
325+
google.protobuf.Timestamp update_time = 5
326+
[(google.api.field_behavior) = OUTPUT_ONLY];
316327

317328
// Immutable. Domain name of the web app being measured, or empty.
318329
// Example: "http://www.google.com", "https://www.google.com"
@@ -400,8 +411,8 @@ message EnhancedMeasurementSettings {
400411
// whether they are respected.
401412
bool stream_enabled = 2;
402413

403-
// Output only. If enabled, capture a page view event each time a page loads or the
404-
// website changes the browser history state.
414+
// Output only. If enabled, capture a page view event each time a page loads
415+
// or the website changes the browser history state.
405416
bool page_views_enabled = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
406417

407418
// If enabled, capture scroll events each time a visitor gets to the bottom of
@@ -473,17 +484,18 @@ message FirebaseLink {
473484
// Output only. Example format: properties/1234/firebaseLinks/5678
474485
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
475486

476-
// Immutable. Firebase project resource name. When creating a FirebaseLink, you may
477-
// provide this resource name using either a project number or project ID.
478-
// Once this resource has been created, returned FirebaseLinks will always
487+
// Immutable. Firebase project resource name. When creating a FirebaseLink,
488+
// you may provide this resource name using either a project number or project
489+
// ID. Once this resource has been created, returned FirebaseLinks will always
479490
// have a project_name that contains a project number.
480491
//
481492
// Format: 'projects/{project number}'
482493
// Example: 'projects/1234'
483494
string project = 2 [(google.api.field_behavior) = IMMUTABLE];
484495

485496
// Output only. Time when this FirebaseLink was originally created.
486-
google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
497+
google.protobuf.Timestamp create_time = 3
498+
[(google.api.field_behavior) = OUTPUT_ONLY];
487499

488500
// Maximum user access to the GA4 property allowed to admins of
489501
// the linked Firebase project.
@@ -498,9 +510,12 @@ message GlobalSiteTag {
498510
pattern: "properties/{property}/globalSiteTag"
499511
};
500512

501-
// Immutable. JavaScript code snippet to be pasted as the first item into the head tag of
502-
// every webpage to measure.
513+
// Immutable. JavaScript code snippet to be pasted as the first item into the
514+
// head tag of every webpage to measure.
503515
string snippet = 1 [(google.api.field_behavior) = IMMUTABLE];
516+
517+
// The resource name of this tag.
518+
string name = 2;
504519
}
505520

506521
// A link between an GA4 property and a Google Ads account.
@@ -510,7 +525,8 @@ message GoogleAdsLink {
510525
pattern: "properties/{property}/googleAdsLinks/{google_ads_link}"
511526
};
512527

513-
// Output only. Format: properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
528+
// Output only. Format:
529+
// properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
514530
//
515531
// Note: googleAdsLinkId is not the Google Ads customer ID.
516532
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
@@ -535,10 +551,12 @@ message GoogleAdsLink {
535551
string email_address = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
536552

537553
// Output only. Time when this link was originally created.
538-
google.protobuf.Timestamp create_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
554+
google.protobuf.Timestamp create_time = 7
555+
[(google.api.field_behavior) = OUTPUT_ONLY];
539556

540557
// Output only. Time when this link was last updated.
541-
google.protobuf.Timestamp update_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
558+
google.protobuf.Timestamp update_time = 8
559+
[(google.api.field_behavior) = OUTPUT_ONLY];
542560
}
543561

544562
// A resource message representing data sharing settings of a Google Analytics
@@ -591,8 +609,8 @@ message AccountSummary {
591609
// Format: accounts/{account_id}
592610
// Example: "accounts/1000"
593611
string account = 2 [(google.api.resource_reference) = {
594-
type: "analyticsadmin.googleapis.com/Account"
595-
}];
612+
type: "analyticsadmin.googleapis.com/Account"
613+
}];
596614

597615
// Display name for the account referred to in this account summary.
598616
string display_name = 3;
@@ -607,8 +625,8 @@ message PropertySummary {
607625
// Format: properties/{property_id}
608626
// Example: "properties/1000"
609627
string property = 1 [(google.api.resource_reference) = {
610-
type: "analyticsadmin.googleapis.com/Property"
611-
}];
628+
type: "analyticsadmin.googleapis.com/Property"
629+
}];
612630

613631
// Display name for the property referred to in this account summary.
614632
string display_name = 2;

protos/protos.d.ts

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protos/protos.js

Lines changed: 24 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protos/protos.json

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

synth.metadata

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/nodejs-analytics-admin.git",
7-
"sha": "d232226aee74ebb3b7de88f132d3fd8b6fcdeab5"
7+
"sha": "ac31ff0c0086b0b9ff2c21ddeb832c03299477a7"
88
}
99
},
1010
{
1111
"git": {
1212
"name": "googleapis",
1313
"remote": "https://github.com/googleapis/googleapis.git",
14-
"sha": "d189e871205fea665a9648f7c4676f027495ccaf",
15-
"internalRef": "345596855"
14+
"sha": "70c794b04230f5dafd612300d409dfd7df98ebca",
15+
"internalRef": "346120301"
1616
}
1717
},
1818
{

0 commit comments

Comments
 (0)