All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.ads.googleads.v17.services.SearchGoogleAdsStreamResponse Maven / Gradle / Ivy

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.SearchStream][google.ads.googleads.v17.services.GoogleAdsService.SearchStream].
 * 
* * Protobuf type {@code google.ads.googleads.v17.services.SearchGoogleAdsStreamResponse} */ public final class SearchGoogleAdsStreamResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v17.services.SearchGoogleAdsStreamResponse) SearchGoogleAdsStreamResponseOrBuilder { private static final long serialVersionUID = 0L; // Use SearchGoogleAdsStreamResponse.newBuilder() to construct. private SearchGoogleAdsStreamResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SearchGoogleAdsStreamResponse() { results_ = java.util.Collections.emptyList(); requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SearchGoogleAdsStreamResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.services.GoogleAdsServiceProto.internal_static_google_ads_googleads_v17_services_SearchGoogleAdsStreamResponse_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_SearchGoogleAdsStreamResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.services.SearchGoogleAdsStreamResponse.class, com.google.ads.googleads.v17.services.SearchGoogleAdsStreamResponse.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 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 FIELD_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask fieldMask_; /** *
   * FieldMask that represents what fields were requested by the user.
   * 
* * .google.protobuf.FieldMask field_mask = 2; * @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 = 2; * @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 = 2; */ @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 = 3; 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 = 3; * @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 = 3; * @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 = 3; */ @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 REQUEST_ID_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** *
   * The unique id of the request that is used for debugging purposes.
   * 
* * string request_id = 4; * @return The requestId. */ @java.lang.Override public java.lang.String getRequestId() { java.lang.Object ref = requestId_; 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(); requestId_ = s; return s; } } /** *
   * The unique id of the request that is used for debugging purposes.
   * 
* * string request_id = 4; * @return The bytes for requestId. */ @java.lang.Override public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); requestId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int QUERY_RESOURCE_CONSUMPTION_FIELD_NUMBER = 6; private long queryResourceConsumption_ = 0L; /** *
   * The amount of resources consumed to serve the query.
   * query_resource_consumption for the Summary row and non-Summary responses
   * are returned separately in their respective rows.
   * query_resource_consumption for non-Summary responses is returned in the
   * final batch of results.
   * 
* * int64 query_resource_consumption = 6; * @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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getFieldMask()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getSummaryRow()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); } if (queryResourceConsumption_ != 0L) { output.writeInt64(6, 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 (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getFieldMask()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getSummaryRow()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); } if (queryResourceConsumption_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, 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.SearchGoogleAdsStreamResponse)) { return super.equals(obj); } com.google.ads.googleads.v17.services.SearchGoogleAdsStreamResponse other = (com.google.ads.googleads.v17.services.SearchGoogleAdsStreamResponse) obj; if (!getResultsList() .equals(other.getResultsList())) 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 (!getRequestId() .equals(other.getRequestId())) 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(); } 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) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().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.SearchGoogleAdsStreamResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.SearchGoogleAdsStreamResponse 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.SearchGoogleAdsStreamResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.SearchGoogleAdsStreamResponse 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.SearchGoogleAdsStreamResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.SearchGoogleAdsStreamResponse 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.SearchGoogleAdsStreamResponse 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.SearchGoogleAdsStreamResponse 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.SearchGoogleAdsStreamResponse 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.SearchGoogleAdsStreamResponse 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.SearchGoogleAdsStreamResponse 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.SearchGoogleAdsStreamResponse 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.SearchGoogleAdsStreamResponse 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.SearchStream][google.ads.googleads.v17.services.GoogleAdsService.SearchStream].
   * 
* * Protobuf type {@code google.ads.googleads.v17.services.SearchGoogleAdsStreamResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.services.SearchGoogleAdsStreamResponse) com.google.ads.googleads.v17.services.SearchGoogleAdsStreamResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.services.GoogleAdsServiceProto.internal_static_google_ads_googleads_v17_services_SearchGoogleAdsStreamResponse_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_SearchGoogleAdsStreamResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.services.SearchGoogleAdsStreamResponse.class, com.google.ads.googleads.v17.services.SearchGoogleAdsStreamResponse.Builder.class); } // Construct using com.google.ads.googleads.v17.services.SearchGoogleAdsStreamResponse.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); fieldMask_ = null; if (fieldMaskBuilder_ != null) { fieldMaskBuilder_.dispose(); fieldMaskBuilder_ = null; } summaryRow_ = null; if (summaryRowBuilder_ != null) { summaryRowBuilder_.dispose(); summaryRowBuilder_ = null; } requestId_ = ""; 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_SearchGoogleAdsStreamResponse_descriptor; } @java.lang.Override public com.google.ads.googleads.v17.services.SearchGoogleAdsStreamResponse getDefaultInstanceForType() { return com.google.ads.googleads.v17.services.SearchGoogleAdsStreamResponse.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v17.services.SearchGoogleAdsStreamResponse build() { com.google.ads.googleads.v17.services.SearchGoogleAdsStreamResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v17.services.SearchGoogleAdsStreamResponse buildPartial() { com.google.ads.googleads.v17.services.SearchGoogleAdsStreamResponse result = new com.google.ads.googleads.v17.services.SearchGoogleAdsStreamResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.ads.googleads.v17.services.SearchGoogleAdsStreamResponse 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.SearchGoogleAdsStreamResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.fieldMask_ = fieldMaskBuilder_ == null ? fieldMask_ : fieldMaskBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.summaryRow_ = summaryRowBuilder_ == null ? summaryRow_ : summaryRowBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.requestId_ = requestId_; } if (((from_bitField0_ & 0x00000010) != 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.SearchGoogleAdsStreamResponse) { return mergeFrom((com.google.ads.googleads.v17.services.SearchGoogleAdsStreamResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v17.services.SearchGoogleAdsStreamResponse other) { if (other == com.google.ads.googleads.v17.services.SearchGoogleAdsStreamResponse.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.hasFieldMask()) { mergeFieldMask(other.getFieldMask()); } if (other.hasSummaryRow()) { mergeSummaryRow(other.getSummaryRow()); } if (!other.getRequestId().isEmpty()) { requestId_ = other.requestId_; bitField0_ |= 0x00000008; onChanged(); } 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: { input.readMessage( getFieldMaskFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getSummaryRowFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { requestId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 48: { queryResourceConsumption_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 48 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 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 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 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 = 2; * @return Whether the fieldMask field is set. */ public boolean hasFieldMask() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * FieldMask that represents what fields were requested by the user.
     * 
* * .google.protobuf.FieldMask field_mask = 2; * @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 = 2; */ public Builder setFieldMask(com.google.protobuf.FieldMask value) { if (fieldMaskBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fieldMask_ = value; } else { fieldMaskBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * FieldMask that represents what fields were requested by the user.
     * 
* * .google.protobuf.FieldMask field_mask = 2; */ public Builder setFieldMask( com.google.protobuf.FieldMask.Builder builderForValue) { if (fieldMaskBuilder_ == null) { fieldMask_ = builderForValue.build(); } else { fieldMaskBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * FieldMask that represents what fields were requested by the user.
     * 
* * .google.protobuf.FieldMask field_mask = 2; */ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { if (fieldMaskBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && fieldMask_ != null && fieldMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getFieldMaskBuilder().mergeFrom(value); } else { fieldMask_ = value; } } else { fieldMaskBuilder_.mergeFrom(value); } if (fieldMask_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     * FieldMask that represents what fields were requested by the user.
     * 
* * .google.protobuf.FieldMask field_mask = 2; */ public Builder clearFieldMask() { bitField0_ = (bitField0_ & ~0x00000002); 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 = 2; */ public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { bitField0_ |= 0x00000002; onChanged(); return getFieldMaskFieldBuilder().getBuilder(); } /** *
     * FieldMask that represents what fields were requested by the user.
     * 
* * .google.protobuf.FieldMask field_mask = 2; */ 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 = 2; */ 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 = 3; * @return Whether the summaryRow field is set. */ public boolean hasSummaryRow() { return ((bitField0_ & 0x00000004) != 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 = 3; * @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 = 3; */ 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_ |= 0x00000004; 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 = 3; */ public Builder setSummaryRow( com.google.ads.googleads.v17.services.GoogleAdsRow.Builder builderForValue) { if (summaryRowBuilder_ == null) { summaryRow_ = builderForValue.build(); } else { summaryRowBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; 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 = 3; */ public Builder mergeSummaryRow(com.google.ads.googleads.v17.services.GoogleAdsRow value) { if (summaryRowBuilder_ == null) { if (((bitField0_ & 0x00000004) != 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_ |= 0x00000004; 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 = 3; */ public Builder clearSummaryRow() { bitField0_ = (bitField0_ & ~0x00000004); 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 = 3; */ public com.google.ads.googleads.v17.services.GoogleAdsRow.Builder getSummaryRowBuilder() { bitField0_ |= 0x00000004; 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 = 3; */ 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 = 3; */ 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 java.lang.Object requestId_ = ""; /** *
     * The unique id of the request that is used for debugging purposes.
     * 
* * string request_id = 4; * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The unique id of the request that is used for debugging purposes.
     * 
* * string request_id = 4; * @return The bytes for requestId. */ public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); requestId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The unique id of the request that is used for debugging purposes.
     * 
* * string request_id = 4; * @param value The requestId to set. * @return This builder for chaining. */ public Builder setRequestId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * The unique id of the request that is used for debugging purposes.
     * 
* * string request_id = 4; * @return This builder for chaining. */ public Builder clearRequestId() { requestId_ = getDefaultInstance().getRequestId(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
     * The unique id of the request that is used for debugging purposes.
     * 
* * string request_id = 4; * @param value The bytes for requestId to set. * @return This builder for chaining. */ public Builder setRequestIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private long queryResourceConsumption_ ; /** *
     * The amount of resources consumed to serve the query.
     * query_resource_consumption for the Summary row and non-Summary responses
     * are returned separately in their respective rows.
     * query_resource_consumption for non-Summary responses is returned in the
     * final batch of results.
     * 
* * int64 query_resource_consumption = 6; * @return The queryResourceConsumption. */ @java.lang.Override public long getQueryResourceConsumption() { return queryResourceConsumption_; } /** *
     * The amount of resources consumed to serve the query.
     * query_resource_consumption for the Summary row and non-Summary responses
     * are returned separately in their respective rows.
     * query_resource_consumption for non-Summary responses is returned in the
     * final batch of results.
     * 
* * int64 query_resource_consumption = 6; * @param value The queryResourceConsumption to set. * @return This builder for chaining. */ public Builder setQueryResourceConsumption(long value) { queryResourceConsumption_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * The amount of resources consumed to serve the query.
     * query_resource_consumption for the Summary row and non-Summary responses
     * are returned separately in their respective rows.
     * query_resource_consumption for non-Summary responses is returned in the
     * final batch of results.
     * 
* * int64 query_resource_consumption = 6; * @return This builder for chaining. */ public Builder clearQueryResourceConsumption() { bitField0_ = (bitField0_ & ~0x00000010); 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.SearchGoogleAdsStreamResponse) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v17.services.SearchGoogleAdsStreamResponse) private static final com.google.ads.googleads.v17.services.SearchGoogleAdsStreamResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v17.services.SearchGoogleAdsStreamResponse(); } public static com.google.ads.googleads.v17.services.SearchGoogleAdsStreamResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SearchGoogleAdsStreamResponse 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.SearchGoogleAdsStreamResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy