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

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

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v10/services/google_ads_service.proto

package com.google.ads.googleads.v10.services;

/**
 * 
 * Response message for [GoogleAdsService.SearchStream][google.ads.googleads.v10.services.GoogleAdsService.SearchStream].
 * 
* * Protobuf type {@code google.ads.googleads.v10.services.SearchGoogleAdsStreamResponse} */ public final class SearchGoogleAdsStreamResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v10.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.services.GoogleAdsServiceProto.internal_static_google_ads_googleads_v10_services_SearchGoogleAdsStreamResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.services.GoogleAdsServiceProto.internal_static_google_ads_googleads_v10_services_SearchGoogleAdsStreamResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.services.SearchGoogleAdsStreamResponse.class, com.google.ads.googleads.v10.services.SearchGoogleAdsStreamResponse.Builder.class); } public static final int RESULTS_FIELD_NUMBER = 1; private java.util.List results_; /** *
   * The list of rows that matched the query.
   * 
* * repeated .google.ads.googleads.v10.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.v10.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.v10.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.v10.services.GoogleAdsRow results = 1; */ @java.lang.Override public com.google.ads.googleads.v10.services.GoogleAdsRow getResults(int index) { return results_.get(index); } /** *
   * The list of rows that matched the query.
   * 
* * repeated .google.ads.googleads.v10.services.GoogleAdsRow results = 1; */ @java.lang.Override public com.google.ads.googleads.v10.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 fieldMask_ != null; } /** *
   * 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 getFieldMask(); } public static final int SUMMARY_ROW_FIELD_NUMBER = 3; private com.google.ads.googleads.v10.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.v10.services.GoogleAdsRow summary_row = 3; * @return Whether the summaryRow field is set. */ @java.lang.Override public boolean hasSummaryRow() { return summaryRow_ != null; } /** *
   * 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.v10.services.GoogleAdsRow summary_row = 3; * @return The summaryRow. */ @java.lang.Override public com.google.ads.googleads.v10.services.GoogleAdsRow getSummaryRow() { return summaryRow_ == null ? com.google.ads.googleads.v10.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.v10.services.GoogleAdsRow summary_row = 3; */ @java.lang.Override public com.google.ads.googleads.v10.services.GoogleAdsRowOrBuilder getSummaryRowOrBuilder() { return getSummaryRow(); } public static final int REQUEST_ID_FIELD_NUMBER = 4; 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; } } 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 (fieldMask_ != null) { output.writeMessage(2, getFieldMask()); } if (summaryRow_ != null) { output.writeMessage(3, getSummaryRow()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); } 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 (fieldMask_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getFieldMask()); } if (summaryRow_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getSummaryRow()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); } 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.v10.services.SearchGoogleAdsStreamResponse)) { return super.equals(obj); } com.google.ads.googleads.v10.services.SearchGoogleAdsStreamResponse other = (com.google.ads.googleads.v10.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 (!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 = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v10.services.SearchGoogleAdsStreamResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.services.SearchGoogleAdsStreamResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.services.SearchGoogleAdsStreamResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.services.GoogleAdsService.SearchStream].
   * 
* * Protobuf type {@code google.ads.googleads.v10.services.SearchGoogleAdsStreamResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.services.SearchGoogleAdsStreamResponse) com.google.ads.googleads.v10.services.SearchGoogleAdsStreamResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v10.services.GoogleAdsServiceProto.internal_static_google_ads_googleads_v10_services_SearchGoogleAdsStreamResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v10.services.GoogleAdsServiceProto.internal_static_google_ads_googleads_v10_services_SearchGoogleAdsStreamResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v10.services.SearchGoogleAdsStreamResponse.class, com.google.ads.googleads.v10.services.SearchGoogleAdsStreamResponse.Builder.class); } // Construct using com.google.ads.googleads.v10.services.SearchGoogleAdsStreamResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); } else { results_ = null; resultsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (fieldMaskBuilder_ == null) { fieldMask_ = null; } else { fieldMask_ = null; fieldMaskBuilder_ = null; } if (summaryRowBuilder_ == null) { summaryRow_ = null; } else { summaryRow_ = null; summaryRowBuilder_ = null; } requestId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v10.services.GoogleAdsServiceProto.internal_static_google_ads_googleads_v10_services_SearchGoogleAdsStreamResponse_descriptor; } @java.lang.Override public com.google.ads.googleads.v10.services.SearchGoogleAdsStreamResponse getDefaultInstanceForType() { return com.google.ads.googleads.v10.services.SearchGoogleAdsStreamResponse.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v10.services.SearchGoogleAdsStreamResponse build() { com.google.ads.googleads.v10.services.SearchGoogleAdsStreamResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v10.services.SearchGoogleAdsStreamResponse buildPartial() { com.google.ads.googleads.v10.services.SearchGoogleAdsStreamResponse result = new com.google.ads.googleads.v10.services.SearchGoogleAdsStreamResponse(this); int from_bitField0_ = bitField0_; if (resultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { results_ = java.util.Collections.unmodifiableList(results_); bitField0_ = (bitField0_ & ~0x00000001); } result.results_ = results_; } else { result.results_ = resultsBuilder_.build(); } if (fieldMaskBuilder_ == null) { result.fieldMask_ = fieldMask_; } else { result.fieldMask_ = fieldMaskBuilder_.build(); } if (summaryRowBuilder_ == null) { result.summaryRow_ = summaryRow_; } else { result.summaryRow_ = summaryRowBuilder_.build(); } result.requestId_ = requestId_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v10.services.SearchGoogleAdsStreamResponse) { return mergeFrom((com.google.ads.googleads.v10.services.SearchGoogleAdsStreamResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v10.services.SearchGoogleAdsStreamResponse other) { if (other == com.google.ads.googleads.v10.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_; onChanged(); } 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.v10.services.GoogleAdsRow m = input.readMessage( com.google.ads.googleads.v10.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); break; } // case 18 case 26: { input.readMessage( getSummaryRowFieldBuilder().getBuilder(), extensionRegistry); break; } // case 26 case 34: { requestId_ = input.readStringRequireUtf8(); break; } // case 34 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.v10.services.GoogleAdsRow, com.google.ads.googleads.v10.services.GoogleAdsRow.Builder, com.google.ads.googleads.v10.services.GoogleAdsRowOrBuilder> resultsBuilder_; /** *
     * The list of rows that matched the query.
     * 
* * repeated .google.ads.googleads.v10.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.v10.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.v10.services.GoogleAdsRow results = 1; */ public com.google.ads.googleads.v10.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.v10.services.GoogleAdsRow results = 1; */ public Builder setResults( int index, com.google.ads.googleads.v10.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.v10.services.GoogleAdsRow results = 1; */ public Builder setResults( int index, com.google.ads.googleads.v10.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.v10.services.GoogleAdsRow results = 1; */ public Builder addResults(com.google.ads.googleads.v10.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.v10.services.GoogleAdsRow results = 1; */ public Builder addResults( int index, com.google.ads.googleads.v10.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.v10.services.GoogleAdsRow results = 1; */ public Builder addResults( com.google.ads.googleads.v10.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.v10.services.GoogleAdsRow results = 1; */ public Builder addResults( int index, com.google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.services.GoogleAdsRow results = 1; */ public com.google.ads.googleads.v10.services.GoogleAdsRow.Builder getResultsBuilder( int index) { return getResultsFieldBuilder().getBuilder(index); } /** *
     * The list of rows that matched the query.
     * 
* * repeated .google.ads.googleads.v10.services.GoogleAdsRow results = 1; */ public com.google.ads.googleads.v10.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.v10.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.v10.services.GoogleAdsRow results = 1; */ public com.google.ads.googleads.v10.services.GoogleAdsRow.Builder addResultsBuilder() { return getResultsFieldBuilder().addBuilder( com.google.ads.googleads.v10.services.GoogleAdsRow.getDefaultInstance()); } /** *
     * The list of rows that matched the query.
     * 
* * repeated .google.ads.googleads.v10.services.GoogleAdsRow results = 1; */ public com.google.ads.googleads.v10.services.GoogleAdsRow.Builder addResultsBuilder( int index) { return getResultsFieldBuilder().addBuilder( index, com.google.ads.googleads.v10.services.GoogleAdsRow.getDefaultInstance()); } /** *
     * The list of rows that matched the query.
     * 
* * repeated .google.ads.googleads.v10.services.GoogleAdsRow results = 1; */ public java.util.List getResultsBuilderList() { return getResultsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.services.GoogleAdsRow, com.google.ads.googleads.v10.services.GoogleAdsRow.Builder, com.google.ads.googleads.v10.services.GoogleAdsRowOrBuilder> getResultsFieldBuilder() { if (resultsBuilder_ == null) { resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v10.services.GoogleAdsRow, com.google.ads.googleads.v10.services.GoogleAdsRow.Builder, com.google.ads.googleads.v10.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 fieldMaskBuilder_ != null || fieldMask_ != null; } /** *
     * 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; onChanged(); } else { fieldMaskBuilder_.setMessage(value); } 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(); onChanged(); } else { fieldMaskBuilder_.setMessage(builderForValue.build()); } 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 (fieldMask_ != null) { fieldMask_ = com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); } else { fieldMask_ = value; } onChanged(); } else { fieldMaskBuilder_.mergeFrom(value); } return this; } /** *
     * FieldMask that represents what fields were requested by the user.
     * 
* * .google.protobuf.FieldMask field_mask = 2; */ public Builder clearFieldMask() { if (fieldMaskBuilder_ == null) { fieldMask_ = null; onChanged(); } else { fieldMask_ = null; fieldMaskBuilder_ = null; } 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() { 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.v10.services.GoogleAdsRow summaryRow_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.services.GoogleAdsRow, com.google.ads.googleads.v10.services.GoogleAdsRow.Builder, com.google.ads.googleads.v10.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.v10.services.GoogleAdsRow summary_row = 3; * @return Whether the summaryRow field is set. */ public boolean hasSummaryRow() { return summaryRowBuilder_ != null || summaryRow_ != null; } /** *
     * 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.v10.services.GoogleAdsRow summary_row = 3; * @return The summaryRow. */ public com.google.ads.googleads.v10.services.GoogleAdsRow getSummaryRow() { if (summaryRowBuilder_ == null) { return summaryRow_ == null ? com.google.ads.googleads.v10.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.v10.services.GoogleAdsRow summary_row = 3; */ public Builder setSummaryRow(com.google.ads.googleads.v10.services.GoogleAdsRow value) { if (summaryRowBuilder_ == null) { if (value == null) { throw new NullPointerException(); } summaryRow_ = value; onChanged(); } else { summaryRowBuilder_.setMessage(value); } 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.v10.services.GoogleAdsRow summary_row = 3; */ public Builder setSummaryRow( com.google.ads.googleads.v10.services.GoogleAdsRow.Builder builderForValue) { if (summaryRowBuilder_ == null) { summaryRow_ = builderForValue.build(); onChanged(); } else { summaryRowBuilder_.setMessage(builderForValue.build()); } 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.v10.services.GoogleAdsRow summary_row = 3; */ public Builder mergeSummaryRow(com.google.ads.googleads.v10.services.GoogleAdsRow value) { if (summaryRowBuilder_ == null) { if (summaryRow_ != null) { summaryRow_ = com.google.ads.googleads.v10.services.GoogleAdsRow.newBuilder(summaryRow_).mergeFrom(value).buildPartial(); } else { summaryRow_ = value; } onChanged(); } else { summaryRowBuilder_.mergeFrom(value); } 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.v10.services.GoogleAdsRow summary_row = 3; */ public Builder clearSummaryRow() { if (summaryRowBuilder_ == null) { summaryRow_ = null; onChanged(); } else { summaryRow_ = null; summaryRowBuilder_ = null; } 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.v10.services.GoogleAdsRow summary_row = 3; */ public com.google.ads.googleads.v10.services.GoogleAdsRow.Builder getSummaryRowBuilder() { 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.v10.services.GoogleAdsRow summary_row = 3; */ public com.google.ads.googleads.v10.services.GoogleAdsRowOrBuilder getSummaryRowOrBuilder() { if (summaryRowBuilder_ != null) { return summaryRowBuilder_.getMessageOrBuilder(); } else { return summaryRow_ == null ? com.google.ads.googleads.v10.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.v10.services.GoogleAdsRow summary_row = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.services.GoogleAdsRow, com.google.ads.googleads.v10.services.GoogleAdsRow.Builder, com.google.ads.googleads.v10.services.GoogleAdsRowOrBuilder> getSummaryRowFieldBuilder() { if (summaryRowBuilder_ == null) { summaryRowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v10.services.GoogleAdsRow, com.google.ads.googleads.v10.services.GoogleAdsRow.Builder, com.google.ads.googleads.v10.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; 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(); 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; 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.v10.services.SearchGoogleAdsStreamResponse) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v10.services.SearchGoogleAdsStreamResponse) private static final com.google.ads.googleads.v10.services.SearchGoogleAdsStreamResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v10.services.SearchGoogleAdsStreamResponse(); } public static com.google.ads.googleads.v10.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.v10.services.SearchGoogleAdsStreamResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy