Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-analyticsdata</artifactId>
<version>v1beta-rev20241117-2.0.0</version>
<version>v1beta-rev20260909-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-analyticsdata:v1beta-rev20241117-2.0.0'
implementation 'com.google.apis:google-api-services-analyticsdata:v1beta-rev20260909-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.analyticsdata.v1beta.model;

/**
* Define the truncated date range from start_date to end_date.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Google Analytics Data API. For a detailed explanation
* see:
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class DataTruncationDateRange extends com.google.api.client.json.GenericJson {

/**
* The end date in the format YYYY-MM-DD (inclusive).
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String endDate;

/**
* The start date in the format YYYY-MM-DD (inclusive).
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String startDate;

/**
* The end date in the format YYYY-MM-DD (inclusive).
* @return value or {@code null} for none
*/
public java.lang.String getEndDate() {
return endDate;
}

/**
* The end date in the format YYYY-MM-DD (inclusive).
* @param endDate endDate or {@code null} for none
*/
public DataTruncationDateRange setEndDate(java.lang.String endDate) {
this.endDate = endDate;
return this;
}

/**
* The start date in the format YYYY-MM-DD (inclusive).
* @return value or {@code null} for none
*/
public java.lang.String getStartDate() {
return startDate;
}

/**
* The start date in the format YYYY-MM-DD (inclusive).
* @param startDate startDate or {@code null} for none
*/
public DataTruncationDateRange setStartDate(java.lang.String startDate) {
this.startDate = startDate;
return this;
}

@Override
public DataTruncationDateRange set(String fieldName, Object value) {
return (DataTruncationDateRange) super.set(fieldName, value);
}

@Override
public DataTruncationDateRange clone() {
return (DataTruncationDateRange) super.clone();
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.analyticsdata.v1beta.model;

/**
* Describes a reason for data truncation in the report.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Google Analytics Data API. For a detailed explanation
* see:
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class DataTruncationReason extends com.google.api.client.json.GenericJson {

/**
* The data truncation date in the format YYYY-MM-DD. Indicates data before this date is
* truncated.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String dataTruncationDate;

/**
* The truncated date ranges.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<DataTruncationDateRange> dataTruncationDateRanges;

static {
// hack to force ProGuard to consider DataTruncationDateRange used, since otherwise it would be stripped out
// see https://github.com/google/google-api-java-client/issues/543
com.google.api.client.util.Data.nullOf(DataTruncationDateRange.class);
}

/**
* A descriptive message explaining the data truncation.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String dataTruncationMessage;

/**
* The type of data truncation.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String dataTruncationType;

/**
* The data truncation date in the format YYYY-MM-DD. Indicates data before this date is
* truncated.
* @return value or {@code null} for none
*/
public java.lang.String getDataTruncationDate() {
return dataTruncationDate;
}

/**
* The data truncation date in the format YYYY-MM-DD. Indicates data before this date is
* truncated.
* @param dataTruncationDate dataTruncationDate or {@code null} for none
*/
public DataTruncationReason setDataTruncationDate(java.lang.String dataTruncationDate) {
this.dataTruncationDate = dataTruncationDate;
return this;
}

/**
* The truncated date ranges.
* @return value or {@code null} for none
*/
public java.util.List<DataTruncationDateRange> getDataTruncationDateRanges() {
return dataTruncationDateRanges;
}

/**
* The truncated date ranges.
* @param dataTruncationDateRanges dataTruncationDateRanges or {@code null} for none
*/
public DataTruncationReason setDataTruncationDateRanges(java.util.List<DataTruncationDateRange> dataTruncationDateRanges) {
this.dataTruncationDateRanges = dataTruncationDateRanges;
return this;
}

/**
* A descriptive message explaining the data truncation.
* @return value or {@code null} for none
*/
public java.lang.String getDataTruncationMessage() {
return dataTruncationMessage;
}

/**
* A descriptive message explaining the data truncation.
* @param dataTruncationMessage dataTruncationMessage or {@code null} for none
*/
public DataTruncationReason setDataTruncationMessage(java.lang.String dataTruncationMessage) {
this.dataTruncationMessage = dataTruncationMessage;
return this;
}

/**
* The type of data truncation.
* @return value or {@code null} for none
*/
public java.lang.String getDataTruncationType() {
return dataTruncationType;
}

/**
* The type of data truncation.
* @param dataTruncationType dataTruncationType or {@code null} for none
*/
public DataTruncationReason setDataTruncationType(java.lang.String dataTruncationType) {
this.dataTruncationType = dataTruncationType;
return this;
}

@Override
public DataTruncationReason set(String fieldName, Object value) {
return (DataTruncationReason) super.set(fieldName, value);
}

@Override
public DataTruncationReason clone() {
return (DataTruncationReason) super.clone();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,19 @@ public final class ResponseMetaData extends com.google.api.client.json.GenericJs
@com.google.api.client.util.Key
private java.lang.Boolean dataLossFromOtherRow;

/**
* If set, indicate there is data truncation in the report.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<DataTruncationReason> dataTruncationReasons;

static {
// hack to force ProGuard to consider DataTruncationReason used, since otherwise it would be stripped out
// see https://github.com/google/google-api-java-client/issues/543
com.google.api.client.util.Data.nullOf(DataTruncationReason.class);
}

/**
* If empty reason is specified, the report is empty for this reason.
* The value may be {@code null}.
Expand Down Expand Up @@ -160,6 +173,23 @@ public ResponseMetaData setDataLossFromOtherRow(java.lang.Boolean dataLossFromOt
return this;
}

/**
* If set, indicate there is data truncation in the report.
* @return value or {@code null} for none
*/
public java.util.List<DataTruncationReason> getDataTruncationReasons() {
return dataTruncationReasons;
}

/**
* If set, indicate there is data truncation in the report.
* @param dataTruncationReasons dataTruncationReasons or {@code null} for none
*/
public ResponseMetaData setDataTruncationReasons(java.util.List<DataTruncationReason> dataTruncationReasons) {
this.dataTruncationReasons = dataTruncationReasons;
return this;
}

/**
* If empty reason is specified, the report is empty for this reason.
* @return value or {@code null} for none
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<groupId>com.google.apis</groupId>
<artifactId>google-api-services-analyticsdata</artifactId>
<version>v1beta-rev20241117-2.0.0</version>
<name>Google Analytics Data API v1beta-rev20241117-2.0.0</name>
<version>v1beta-rev20260909-2.0.0</version>
<name>Google Analytics Data API v1beta-rev20260909-2.0.0</name>
<packaging>jar</packaging>

<inceptionYear>2011</inceptionYear>
Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-analyticsdata/v1beta/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-analyticsdata</artifactId>
<version>v1beta-rev20241117-2.0.0</version>
<version>v1beta-rev20260909-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-analyticsdata:v1beta-rev20241117-2.0.0'
implementation 'com.google.apis:google-api-services-analyticsdata:v1beta-rev20260909-2.0.0'
}
```

Expand Down
Loading