com.google.ads.googleads.v17.services.SearchGoogleAdsResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v17 Show documentation
Show all versions of google-ads-stubs-v17 Show documentation
Stubs for GAAPI version google-ads-stubs-v17
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v17/services/google_ads_service.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.services;
/**
*
* Response message for
* [GoogleAdsService.Search][google.ads.googleads.v17.services.GoogleAdsService.Search].
*
*
* Protobuf type {@code google.ads.googleads.v17.services.SearchGoogleAdsResponse}
*/
public final class SearchGoogleAdsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.services.SearchGoogleAdsResponse)
SearchGoogleAdsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use SearchGoogleAdsResponse.newBuilder() to construct.
private SearchGoogleAdsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SearchGoogleAdsResponse() {
results_ = java.util.Collections.emptyList();
nextPageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SearchGoogleAdsResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.services.GoogleAdsServiceProto.internal_static_google_ads_googleads_v17_services_SearchGoogleAdsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.services.GoogleAdsServiceProto.internal_static_google_ads_googleads_v17_services_SearchGoogleAdsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.services.SearchGoogleAdsResponse.class, com.google.ads.googleads.v17.services.SearchGoogleAdsResponse.Builder.class);
}
private int bitField0_;
public static final int RESULTS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List results_;
/**
*
* The list of rows that matched the query.
*
*
* repeated .google.ads.googleads.v17.services.GoogleAdsRow results = 1;
*/
@java.lang.Override
public java.util.List getResultsList() {
return results_;
}
/**
*
* The list of rows that matched the query.
*
*
* repeated .google.ads.googleads.v17.services.GoogleAdsRow results = 1;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v17.services.GoogleAdsRowOrBuilder>
getResultsOrBuilderList() {
return results_;
}
/**
*
* The list of rows that matched the query.
*
*
* repeated .google.ads.googleads.v17.services.GoogleAdsRow results = 1;
*/
@java.lang.Override
public int getResultsCount() {
return results_.size();
}
/**
*
* The list of rows that matched the query.
*
*
* repeated .google.ads.googleads.v17.services.GoogleAdsRow results = 1;
*/
@java.lang.Override
public com.google.ads.googleads.v17.services.GoogleAdsRow getResults(int index) {
return results_.get(index);
}
/**
*
* The list of rows that matched the query.
*
*
* repeated .google.ads.googleads.v17.services.GoogleAdsRow results = 1;
*/
@java.lang.Override
public com.google.ads.googleads.v17.services.GoogleAdsRowOrBuilder getResultsOrBuilder(
int index) {
return results_.get(index);
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object nextPageToken_ = "";
/**
*
* Pagination token used to retrieve the next page of results.
* Pass the content of this string as the `page_token` attribute of
* the next request. `next_page_token` is not returned for the last
* page.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
@java.lang.Override
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
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();
nextPageToken_ = s;
return s;
}
}
/**
*
* Pagination token used to retrieve the next page of results.
* Pass the content of this string as the `page_token` attribute of
* the next request. `next_page_token` is not returned for the last
* page.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nextPageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TOTAL_RESULTS_COUNT_FIELD_NUMBER = 3;
private long totalResultsCount_ = 0L;
/**
*
* Total number of results that match the query ignoring the LIMIT
* clause.
*
*
* int64 total_results_count = 3;
* @return The totalResultsCount.
*/
@java.lang.Override
public long getTotalResultsCount() {
return totalResultsCount_;
}
public static final int FIELD_MASK_FIELD_NUMBER = 5;
private com.google.protobuf.FieldMask fieldMask_;
/**
*
* FieldMask that represents what fields were requested by the user.
*
*
* .google.protobuf.FieldMask field_mask = 5;
* @return Whether the fieldMask field is set.
*/
@java.lang.Override
public boolean hasFieldMask() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* FieldMask that represents what fields were requested by the user.
*
*
* .google.protobuf.FieldMask field_mask = 5;
* @return The fieldMask.
*/
@java.lang.Override
public com.google.protobuf.FieldMask getFieldMask() {
return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_;
}
/**
*
* FieldMask that represents what fields were requested by the user.
*
*
* .google.protobuf.FieldMask field_mask = 5;
*/
@java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_;
}
public static final int SUMMARY_ROW_FIELD_NUMBER = 6;
private com.google.ads.googleads.v17.services.GoogleAdsRow summaryRow_;
/**
*
* Summary row that contains summary of metrics in results.
* Summary of metrics means aggregation of metrics across all results,
* here aggregation could be sum, average, rate, etc.
*
*
* .google.ads.googleads.v17.services.GoogleAdsRow summary_row = 6;
* @return Whether the summaryRow field is set.
*/
@java.lang.Override
public boolean hasSummaryRow() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Summary row that contains summary of metrics in results.
* Summary of metrics means aggregation of metrics across all results,
* here aggregation could be sum, average, rate, etc.
*
*
* .google.ads.googleads.v17.services.GoogleAdsRow summary_row = 6;
* @return The summaryRow.
*/
@java.lang.Override
public com.google.ads.googleads.v17.services.GoogleAdsRow getSummaryRow() {
return summaryRow_ == null ? com.google.ads.googleads.v17.services.GoogleAdsRow.getDefaultInstance() : summaryRow_;
}
/**
*
* Summary row that contains summary of metrics in results.
* Summary of metrics means aggregation of metrics across all results,
* here aggregation could be sum, average, rate, etc.
*
*
* .google.ads.googleads.v17.services.GoogleAdsRow summary_row = 6;
*/
@java.lang.Override
public com.google.ads.googleads.v17.services.GoogleAdsRowOrBuilder getSummaryRowOrBuilder() {
return summaryRow_ == null ? com.google.ads.googleads.v17.services.GoogleAdsRow.getDefaultInstance() : summaryRow_;
}
public static final int QUERY_RESOURCE_CONSUMPTION_FIELD_NUMBER = 8;
private long queryResourceConsumption_ = 0L;
/**
*
* The amount of resources consumed to serve the query.
*
*
* int64 query_resource_consumption = 8;
* @return The queryResourceConsumption.
*/
@java.lang.Override
public long getQueryResourceConsumption() {
return queryResourceConsumption_;
}
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 < results_.size(); i++) {
output.writeMessage(1, results_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
}
if (totalResultsCount_ != 0L) {
output.writeInt64(3, totalResultsCount_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(5, getFieldMask());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(6, getSummaryRow());
}
if (queryResourceConsumption_ != 0L) {
output.writeInt64(8, queryResourceConsumption_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < results_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, results_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
}
if (totalResultsCount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, totalResultsCount_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getFieldMask());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getSummaryRow());
}
if (queryResourceConsumption_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, queryResourceConsumption_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v17.services.SearchGoogleAdsResponse)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.services.SearchGoogleAdsResponse other = (com.google.ads.googleads.v17.services.SearchGoogleAdsResponse) obj;
if (!getResultsList()
.equals(other.getResultsList())) return false;
if (!getNextPageToken()
.equals(other.getNextPageToken())) return false;
if (getTotalResultsCount()
!= other.getTotalResultsCount()) return false;
if (hasFieldMask() != other.hasFieldMask()) return false;
if (hasFieldMask()) {
if (!getFieldMask()
.equals(other.getFieldMask())) return false;
}
if (hasSummaryRow() != other.hasSummaryRow()) return false;
if (hasSummaryRow()) {
if (!getSummaryRow()
.equals(other.getSummaryRow())) return false;
}
if (getQueryResourceConsumption()
!= other.getQueryResourceConsumption()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getResultsCount() > 0) {
hash = (37 * hash) + RESULTS_FIELD_NUMBER;
hash = (53 * hash) + getResultsList().hashCode();
}
hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getNextPageToken().hashCode();
hash = (37 * hash) + TOTAL_RESULTS_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalResultsCount());
if (hasFieldMask()) {
hash = (37 * hash) + FIELD_MASK_FIELD_NUMBER;
hash = (53 * hash) + getFieldMask().hashCode();
}
if (hasSummaryRow()) {
hash = (37 * hash) + SUMMARY_ROW_FIELD_NUMBER;
hash = (53 * hash) + getSummaryRow().hashCode();
}
hash = (37 * hash) + QUERY_RESOURCE_CONSUMPTION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getQueryResourceConsumption());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.services.SearchGoogleAdsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.services.SearchGoogleAdsResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.services.SearchGoogleAdsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.services.SearchGoogleAdsResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.services.SearchGoogleAdsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.services.SearchGoogleAdsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.services.SearchGoogleAdsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.services.SearchGoogleAdsResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v17.services.SearchGoogleAdsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.services.SearchGoogleAdsResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v17.services.SearchGoogleAdsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.services.SearchGoogleAdsResponse 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(com.google.ads.googleads.v17.services.SearchGoogleAdsResponse 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;
}
/**
*
* Response message for
* [GoogleAdsService.Search][google.ads.googleads.v17.services.GoogleAdsService.Search].
*
*
* Protobuf type {@code google.ads.googleads.v17.services.SearchGoogleAdsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.services.SearchGoogleAdsResponse)
com.google.ads.googleads.v17.services.SearchGoogleAdsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.services.GoogleAdsServiceProto.internal_static_google_ads_googleads_v17_services_SearchGoogleAdsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.services.GoogleAdsServiceProto.internal_static_google_ads_googleads_v17_services_SearchGoogleAdsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.services.SearchGoogleAdsResponse.class, com.google.ads.googleads.v17.services.SearchGoogleAdsResponse.Builder.class);
}
// Construct using com.google.ads.googleads.v17.services.SearchGoogleAdsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getResultsFieldBuilder();
getFieldMaskFieldBuilder();
getSummaryRowFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (resultsBuilder_ == null) {
results_ = java.util.Collections.emptyList();
} else {
results_ = null;
resultsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
nextPageToken_ = "";
totalResultsCount_ = 0L;
fieldMask_ = null;
if (fieldMaskBuilder_ != null) {
fieldMaskBuilder_.dispose();
fieldMaskBuilder_ = null;
}
summaryRow_ = null;
if (summaryRowBuilder_ != null) {
summaryRowBuilder_.dispose();
summaryRowBuilder_ = null;
}
queryResourceConsumption_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.services.GoogleAdsServiceProto.internal_static_google_ads_googleads_v17_services_SearchGoogleAdsResponse_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.services.SearchGoogleAdsResponse getDefaultInstanceForType() {
return com.google.ads.googleads.v17.services.SearchGoogleAdsResponse.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.services.SearchGoogleAdsResponse build() {
com.google.ads.googleads.v17.services.SearchGoogleAdsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.services.SearchGoogleAdsResponse buildPartial() {
com.google.ads.googleads.v17.services.SearchGoogleAdsResponse result = new com.google.ads.googleads.v17.services.SearchGoogleAdsResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.ads.googleads.v17.services.SearchGoogleAdsResponse result) {
if (resultsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
results_ = java.util.Collections.unmodifiableList(results_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.results_ = results_;
} else {
result.results_ = resultsBuilder_.build();
}
}
private void buildPartial0(com.google.ads.googleads.v17.services.SearchGoogleAdsResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.nextPageToken_ = nextPageToken_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.totalResultsCount_ = totalResultsCount_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.fieldMask_ = fieldMaskBuilder_ == null
? fieldMask_
: fieldMaskBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.summaryRow_ = summaryRowBuilder_ == null
? summaryRow_
: summaryRowBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.queryResourceConsumption_ = queryResourceConsumption_;
}
result.bitField0_ |= to_bitField0_;
}
@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 com.google.ads.googleads.v17.services.SearchGoogleAdsResponse) {
return mergeFrom((com.google.ads.googleads.v17.services.SearchGoogleAdsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.services.SearchGoogleAdsResponse other) {
if (other == com.google.ads.googleads.v17.services.SearchGoogleAdsResponse.getDefaultInstance()) return this;
if (resultsBuilder_ == null) {
if (!other.results_.isEmpty()) {
if (results_.isEmpty()) {
results_ = other.results_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureResultsIsMutable();
results_.addAll(other.results_);
}
onChanged();
}
} else {
if (!other.results_.isEmpty()) {
if (resultsBuilder_.isEmpty()) {
resultsBuilder_.dispose();
resultsBuilder_ = null;
results_ = other.results_;
bitField0_ = (bitField0_ & ~0x00000001);
resultsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getResultsFieldBuilder() : null;
} else {
resultsBuilder_.addAllMessages(other.results_);
}
}
}
if (!other.getNextPageToken().isEmpty()) {
nextPageToken_ = other.nextPageToken_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.getTotalResultsCount() != 0L) {
setTotalResultsCount(other.getTotalResultsCount());
}
if (other.hasFieldMask()) {
mergeFieldMask(other.getFieldMask());
}
if (other.hasSummaryRow()) {
mergeSummaryRow(other.getSummaryRow());
}
if (other.getQueryResourceConsumption() != 0L) {
setQueryResourceConsumption(other.getQueryResourceConsumption());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.ads.googleads.v17.services.GoogleAdsRow m =
input.readMessage(
com.google.ads.googleads.v17.services.GoogleAdsRow.parser(),
extensionRegistry);
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
results_.add(m);
} else {
resultsBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
nextPageToken_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
totalResultsCount_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 42: {
input.readMessage(
getFieldMaskFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 42
case 50: {
input.readMessage(
getSummaryRowFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 50
case 64: {
queryResourceConsumption_ = input.readInt64();
bitField0_ |= 0x00000020;
break;
} // case 64
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List results_ =
java.util.Collections.emptyList();
private void ensureResultsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
results_ = new java.util.ArrayList(results_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.services.GoogleAdsRow, com.google.ads.googleads.v17.services.GoogleAdsRow.Builder, com.google.ads.googleads.v17.services.GoogleAdsRowOrBuilder> resultsBuilder_;
/**
*
* The list of rows that matched the query.
*
*
* repeated .google.ads.googleads.v17.services.GoogleAdsRow results = 1;
*/
public java.util.List getResultsList() {
if (resultsBuilder_ == null) {
return java.util.Collections.unmodifiableList(results_);
} else {
return resultsBuilder_.getMessageList();
}
}
/**
*
* The list of rows that matched the query.
*
*
* repeated .google.ads.googleads.v17.services.GoogleAdsRow results = 1;
*/
public int getResultsCount() {
if (resultsBuilder_ == null) {
return results_.size();
} else {
return resultsBuilder_.getCount();
}
}
/**
*
* The list of rows that matched the query.
*
*
* repeated .google.ads.googleads.v17.services.GoogleAdsRow results = 1;
*/
public com.google.ads.googleads.v17.services.GoogleAdsRow getResults(int index) {
if (resultsBuilder_ == null) {
return results_.get(index);
} else {
return resultsBuilder_.getMessage(index);
}
}
/**
*
* The list of rows that matched the query.
*
*
* repeated .google.ads.googleads.v17.services.GoogleAdsRow results = 1;
*/
public Builder setResults(
int index, com.google.ads.googleads.v17.services.GoogleAdsRow value) {
if (resultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultsIsMutable();
results_.set(index, value);
onChanged();
} else {
resultsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The list of rows that matched the query.
*
*
* repeated .google.ads.googleads.v17.services.GoogleAdsRow results = 1;
*/
public Builder setResults(
int index, com.google.ads.googleads.v17.services.GoogleAdsRow.Builder builderForValue) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
results_.set(index, builderForValue.build());
onChanged();
} else {
resultsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The list of rows that matched the query.
*
*
* repeated .google.ads.googleads.v17.services.GoogleAdsRow results = 1;
*/
public Builder addResults(com.google.ads.googleads.v17.services.GoogleAdsRow value) {
if (resultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultsIsMutable();
results_.add(value);
onChanged();
} else {
resultsBuilder_.addMessage(value);
}
return this;
}
/**
*
* The list of rows that matched the query.
*
*
* repeated .google.ads.googleads.v17.services.GoogleAdsRow results = 1;
*/
public Builder addResults(
int index, com.google.ads.googleads.v17.services.GoogleAdsRow value) {
if (resultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultsIsMutable();
results_.add(index, value);
onChanged();
} else {
resultsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The list of rows that matched the query.
*
*
* repeated .google.ads.googleads.v17.services.GoogleAdsRow results = 1;
*/
public Builder addResults(
com.google.ads.googleads.v17.services.GoogleAdsRow.Builder builderForValue) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
results_.add(builderForValue.build());
onChanged();
} else {
resultsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The list of rows that matched the query.
*
*
* repeated .google.ads.googleads.v17.services.GoogleAdsRow results = 1;
*/
public Builder addResults(
int index, com.google.ads.googleads.v17.services.GoogleAdsRow.Builder builderForValue) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
results_.add(index, builderForValue.build());
onChanged();
} else {
resultsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The list of rows that matched the query.
*
*
* repeated .google.ads.googleads.v17.services.GoogleAdsRow results = 1;
*/
public Builder addAllResults(
java.lang.Iterable extends com.google.ads.googleads.v17.services.GoogleAdsRow> values) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, results_);
onChanged();
} else {
resultsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The list of rows that matched the query.
*
*
* repeated .google.ads.googleads.v17.services.GoogleAdsRow results = 1;
*/
public Builder clearResults() {
if (resultsBuilder_ == null) {
results_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
resultsBuilder_.clear();
}
return this;
}
/**
*
* The list of rows that matched the query.
*
*
* repeated .google.ads.googleads.v17.services.GoogleAdsRow results = 1;
*/
public Builder removeResults(int index) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
results_.remove(index);
onChanged();
} else {
resultsBuilder_.remove(index);
}
return this;
}
/**
*
* The list of rows that matched the query.
*
*
* repeated .google.ads.googleads.v17.services.GoogleAdsRow results = 1;
*/
public com.google.ads.googleads.v17.services.GoogleAdsRow.Builder getResultsBuilder(
int index) {
return getResultsFieldBuilder().getBuilder(index);
}
/**
*
* The list of rows that matched the query.
*
*
* repeated .google.ads.googleads.v17.services.GoogleAdsRow results = 1;
*/
public com.google.ads.googleads.v17.services.GoogleAdsRowOrBuilder getResultsOrBuilder(
int index) {
if (resultsBuilder_ == null) {
return results_.get(index); } else {
return resultsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The list of rows that matched the query.
*
*
* repeated .google.ads.googleads.v17.services.GoogleAdsRow results = 1;
*/
public java.util.List extends com.google.ads.googleads.v17.services.GoogleAdsRowOrBuilder>
getResultsOrBuilderList() {
if (resultsBuilder_ != null) {
return resultsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(results_);
}
}
/**
*
* The list of rows that matched the query.
*
*
* repeated .google.ads.googleads.v17.services.GoogleAdsRow results = 1;
*/
public com.google.ads.googleads.v17.services.GoogleAdsRow.Builder addResultsBuilder() {
return getResultsFieldBuilder().addBuilder(
com.google.ads.googleads.v17.services.GoogleAdsRow.getDefaultInstance());
}
/**
*
* The list of rows that matched the query.
*
*
* repeated .google.ads.googleads.v17.services.GoogleAdsRow results = 1;
*/
public com.google.ads.googleads.v17.services.GoogleAdsRow.Builder addResultsBuilder(
int index) {
return getResultsFieldBuilder().addBuilder(
index, com.google.ads.googleads.v17.services.GoogleAdsRow.getDefaultInstance());
}
/**
*
* The list of rows that matched the query.
*
*
* repeated .google.ads.googleads.v17.services.GoogleAdsRow results = 1;
*/
public java.util.List
getResultsBuilderList() {
return getResultsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.services.GoogleAdsRow, com.google.ads.googleads.v17.services.GoogleAdsRow.Builder, com.google.ads.googleads.v17.services.GoogleAdsRowOrBuilder>
getResultsFieldBuilder() {
if (resultsBuilder_ == null) {
resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.services.GoogleAdsRow, com.google.ads.googleads.v17.services.GoogleAdsRow.Builder, com.google.ads.googleads.v17.services.GoogleAdsRowOrBuilder>(
results_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
results_ = null;
}
return resultsBuilder_;
}
private java.lang.Object nextPageToken_ = "";
/**
*
* Pagination token used to retrieve the next page of results.
* Pass the content of this string as the `page_token` attribute of
* the next request. `next_page_token` is not returned for the last
* page.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nextPageToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Pagination token used to retrieve the next page of results.
* Pass the content of this string as the `page_token` attribute of
* the next request. `next_page_token` is not returned for the last
* page.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
public com.google.protobuf.ByteString
getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nextPageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Pagination token used to retrieve the next page of results.
* Pass the content of this string as the `page_token` attribute of
* the next request. `next_page_token` is not returned for the last
* page.
*
*
* string next_page_token = 2;
* @param value The nextPageToken to set.
* @return This builder for chaining.
*/
public Builder setNextPageToken(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
nextPageToken_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Pagination token used to retrieve the next page of results.
* Pass the content of this string as the `page_token` attribute of
* the next request. `next_page_token` is not returned for the last
* page.
*
*
* string next_page_token = 2;
* @return This builder for chaining.
*/
public Builder clearNextPageToken() {
nextPageToken_ = getDefaultInstance().getNextPageToken();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Pagination token used to retrieve the next page of results.
* Pass the content of this string as the `page_token` attribute of
* the next request. `next_page_token` is not returned for the last
* page.
*
*
* string next_page_token = 2;
* @param value The bytes for nextPageToken to set.
* @return This builder for chaining.
*/
public Builder setNextPageTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
nextPageToken_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private long totalResultsCount_ ;
/**
*
* Total number of results that match the query ignoring the LIMIT
* clause.
*
*
* int64 total_results_count = 3;
* @return The totalResultsCount.
*/
@java.lang.Override
public long getTotalResultsCount() {
return totalResultsCount_;
}
/**
*
* Total number of results that match the query ignoring the LIMIT
* clause.
*
*
* int64 total_results_count = 3;
* @param value The totalResultsCount to set.
* @return This builder for chaining.
*/
public Builder setTotalResultsCount(long value) {
totalResultsCount_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Total number of results that match the query ignoring the LIMIT
* clause.
*
*
* int64 total_results_count = 3;
* @return This builder for chaining.
*/
public Builder clearTotalResultsCount() {
bitField0_ = (bitField0_ & ~0x00000004);
totalResultsCount_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.FieldMask fieldMask_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> fieldMaskBuilder_;
/**
*
* FieldMask that represents what fields were requested by the user.
*
*
* .google.protobuf.FieldMask field_mask = 5;
* @return Whether the fieldMask field is set.
*/
public boolean hasFieldMask() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* FieldMask that represents what fields were requested by the user.
*
*
* .google.protobuf.FieldMask field_mask = 5;
* @return The fieldMask.
*/
public com.google.protobuf.FieldMask getFieldMask() {
if (fieldMaskBuilder_ == null) {
return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_;
} else {
return fieldMaskBuilder_.getMessage();
}
}
/**
*
* FieldMask that represents what fields were requested by the user.
*
*
* .google.protobuf.FieldMask field_mask = 5;
*/
public Builder setFieldMask(com.google.protobuf.FieldMask value) {
if (fieldMaskBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fieldMask_ = value;
} else {
fieldMaskBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* FieldMask that represents what fields were requested by the user.
*
*
* .google.protobuf.FieldMask field_mask = 5;
*/
public Builder setFieldMask(
com.google.protobuf.FieldMask.Builder builderForValue) {
if (fieldMaskBuilder_ == null) {
fieldMask_ = builderForValue.build();
} else {
fieldMaskBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* FieldMask that represents what fields were requested by the user.
*
*
* .google.protobuf.FieldMask field_mask = 5;
*/
public Builder mergeFieldMask(com.google.protobuf.FieldMask value) {
if (fieldMaskBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
fieldMask_ != null &&
fieldMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
getFieldMaskBuilder().mergeFrom(value);
} else {
fieldMask_ = value;
}
} else {
fieldMaskBuilder_.mergeFrom(value);
}
if (fieldMask_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
* FieldMask that represents what fields were requested by the user.
*
*
* .google.protobuf.FieldMask field_mask = 5;
*/
public Builder clearFieldMask() {
bitField0_ = (bitField0_ & ~0x00000008);
fieldMask_ = null;
if (fieldMaskBuilder_ != null) {
fieldMaskBuilder_.dispose();
fieldMaskBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* FieldMask that represents what fields were requested by the user.
*
*
* .google.protobuf.FieldMask field_mask = 5;
*/
public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getFieldMaskFieldBuilder().getBuilder();
}
/**
*
* FieldMask that represents what fields were requested by the user.
*
*
* .google.protobuf.FieldMask field_mask = 5;
*/
public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() {
if (fieldMaskBuilder_ != null) {
return fieldMaskBuilder_.getMessageOrBuilder();
} else {
return fieldMask_ == null ?
com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_;
}
}
/**
*
* FieldMask that represents what fields were requested by the user.
*
*
* .google.protobuf.FieldMask field_mask = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>
getFieldMaskFieldBuilder() {
if (fieldMaskBuilder_ == null) {
fieldMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
getFieldMask(),
getParentForChildren(),
isClean());
fieldMask_ = null;
}
return fieldMaskBuilder_;
}
private com.google.ads.googleads.v17.services.GoogleAdsRow summaryRow_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.services.GoogleAdsRow, com.google.ads.googleads.v17.services.GoogleAdsRow.Builder, com.google.ads.googleads.v17.services.GoogleAdsRowOrBuilder> summaryRowBuilder_;
/**
*
* Summary row that contains summary of metrics in results.
* Summary of metrics means aggregation of metrics across all results,
* here aggregation could be sum, average, rate, etc.
*
*
* .google.ads.googleads.v17.services.GoogleAdsRow summary_row = 6;
* @return Whether the summaryRow field is set.
*/
public boolean hasSummaryRow() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Summary row that contains summary of metrics in results.
* Summary of metrics means aggregation of metrics across all results,
* here aggregation could be sum, average, rate, etc.
*
*
* .google.ads.googleads.v17.services.GoogleAdsRow summary_row = 6;
* @return The summaryRow.
*/
public com.google.ads.googleads.v17.services.GoogleAdsRow getSummaryRow() {
if (summaryRowBuilder_ == null) {
return summaryRow_ == null ? com.google.ads.googleads.v17.services.GoogleAdsRow.getDefaultInstance() : summaryRow_;
} else {
return summaryRowBuilder_.getMessage();
}
}
/**
*
* Summary row that contains summary of metrics in results.
* Summary of metrics means aggregation of metrics across all results,
* here aggregation could be sum, average, rate, etc.
*
*
* .google.ads.googleads.v17.services.GoogleAdsRow summary_row = 6;
*/
public Builder setSummaryRow(com.google.ads.googleads.v17.services.GoogleAdsRow value) {
if (summaryRowBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
summaryRow_ = value;
} else {
summaryRowBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Summary row that contains summary of metrics in results.
* Summary of metrics means aggregation of metrics across all results,
* here aggregation could be sum, average, rate, etc.
*
*
* .google.ads.googleads.v17.services.GoogleAdsRow summary_row = 6;
*/
public Builder setSummaryRow(
com.google.ads.googleads.v17.services.GoogleAdsRow.Builder builderForValue) {
if (summaryRowBuilder_ == null) {
summaryRow_ = builderForValue.build();
} else {
summaryRowBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Summary row that contains summary of metrics in results.
* Summary of metrics means aggregation of metrics across all results,
* here aggregation could be sum, average, rate, etc.
*
*
* .google.ads.googleads.v17.services.GoogleAdsRow summary_row = 6;
*/
public Builder mergeSummaryRow(com.google.ads.googleads.v17.services.GoogleAdsRow value) {
if (summaryRowBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
summaryRow_ != null &&
summaryRow_ != com.google.ads.googleads.v17.services.GoogleAdsRow.getDefaultInstance()) {
getSummaryRowBuilder().mergeFrom(value);
} else {
summaryRow_ = value;
}
} else {
summaryRowBuilder_.mergeFrom(value);
}
if (summaryRow_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
*
* Summary row that contains summary of metrics in results.
* Summary of metrics means aggregation of metrics across all results,
* here aggregation could be sum, average, rate, etc.
*
*
* .google.ads.googleads.v17.services.GoogleAdsRow summary_row = 6;
*/
public Builder clearSummaryRow() {
bitField0_ = (bitField0_ & ~0x00000010);
summaryRow_ = null;
if (summaryRowBuilder_ != null) {
summaryRowBuilder_.dispose();
summaryRowBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Summary row that contains summary of metrics in results.
* Summary of metrics means aggregation of metrics across all results,
* here aggregation could be sum, average, rate, etc.
*
*
* .google.ads.googleads.v17.services.GoogleAdsRow summary_row = 6;
*/
public com.google.ads.googleads.v17.services.GoogleAdsRow.Builder getSummaryRowBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getSummaryRowFieldBuilder().getBuilder();
}
/**
*
* Summary row that contains summary of metrics in results.
* Summary of metrics means aggregation of metrics across all results,
* here aggregation could be sum, average, rate, etc.
*
*
* .google.ads.googleads.v17.services.GoogleAdsRow summary_row = 6;
*/
public com.google.ads.googleads.v17.services.GoogleAdsRowOrBuilder getSummaryRowOrBuilder() {
if (summaryRowBuilder_ != null) {
return summaryRowBuilder_.getMessageOrBuilder();
} else {
return summaryRow_ == null ?
com.google.ads.googleads.v17.services.GoogleAdsRow.getDefaultInstance() : summaryRow_;
}
}
/**
*
* Summary row that contains summary of metrics in results.
* Summary of metrics means aggregation of metrics across all results,
* here aggregation could be sum, average, rate, etc.
*
*
* .google.ads.googleads.v17.services.GoogleAdsRow summary_row = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.services.GoogleAdsRow, com.google.ads.googleads.v17.services.GoogleAdsRow.Builder, com.google.ads.googleads.v17.services.GoogleAdsRowOrBuilder>
getSummaryRowFieldBuilder() {
if (summaryRowBuilder_ == null) {
summaryRowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.services.GoogleAdsRow, com.google.ads.googleads.v17.services.GoogleAdsRow.Builder, com.google.ads.googleads.v17.services.GoogleAdsRowOrBuilder>(
getSummaryRow(),
getParentForChildren(),
isClean());
summaryRow_ = null;
}
return summaryRowBuilder_;
}
private long queryResourceConsumption_ ;
/**
*
* The amount of resources consumed to serve the query.
*
*
* int64 query_resource_consumption = 8;
* @return The queryResourceConsumption.
*/
@java.lang.Override
public long getQueryResourceConsumption() {
return queryResourceConsumption_;
}
/**
*
* The amount of resources consumed to serve the query.
*
*
* int64 query_resource_consumption = 8;
* @param value The queryResourceConsumption to set.
* @return This builder for chaining.
*/
public Builder setQueryResourceConsumption(long value) {
queryResourceConsumption_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* The amount of resources consumed to serve the query.
*
*
* int64 query_resource_consumption = 8;
* @return This builder for chaining.
*/
public Builder clearQueryResourceConsumption() {
bitField0_ = (bitField0_ & ~0x00000020);
queryResourceConsumption_ = 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.ads.googleads.v17.services.SearchGoogleAdsResponse)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.services.SearchGoogleAdsResponse)
private static final com.google.ads.googleads.v17.services.SearchGoogleAdsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.services.SearchGoogleAdsResponse();
}
public static com.google.ads.googleads.v17.services.SearchGoogleAdsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SearchGoogleAdsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.ads.googleads.v17.services.SearchGoogleAdsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy