@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }
@java.lang.Override public com.google.monitoring.v3.Aggregation buildPartial() { com.google.monitoring.v3.Aggregation result = new com.google.monitoring.v3.Aggregation(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (alignmentPeriodBuilder_ == null) { result.alignmentPeriod_ = alignmentPeriod_; } else { result.alignmentPeriod_ = alignmentPeriodBuilder_.build(); } result.perSeriesAligner_ = perSeriesAligner_; result.crossSeriesReducer_ = crossSeriesReducer_; if (((bitField0_ & 0x00000008) == 0x00000008)) { groupByFields_ = groupByFields_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.groupByFields_ = groupByFields_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (alignmentPeriod_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAlignmentPeriod()); } if (perSeriesAligner_ != com.google.monitoring.v3.Aggregation.Aligner.ALIGN_NONE.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, perSeriesAligner_); } if (crossSeriesReducer_ != com.google.monitoring.v3.Aggregation.Reducer.REDUCE_NONE.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, crossSeriesReducer_); } { int dataSize = 0; for (int i = 0; i < groupByFields_.size(); i++) { dataSize += computeStringSizeNoTag(groupByFields_.getRaw(i)); } size += dataSize; size += 1 * getGroupByFieldsList().size(); } size += unknownFields.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.monitoring.v3.Aggregation)) { return super.equals(obj); } com.google.monitoring.v3.Aggregation other = (com.google.monitoring.v3.Aggregation) obj; boolean result = true; result = result && (hasAlignmentPeriod() == other.hasAlignmentPeriod()); if (hasAlignmentPeriod()) { result = result && getAlignmentPeriod().equals(other.getAlignmentPeriod()); } result = result && perSeriesAligner_ == other.perSeriesAligner_; result = result && crossSeriesReducer_ == other.crossSeriesReducer_; result = result && getGroupByFieldsList().equals(other.getGroupByFieldsList()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasAlignmentPeriod()) { hash = (37 * hash) + ALIGNMENT_PERIOD_FIELD_NUMBER; hash = (53 * hash) + getAlignmentPeriod().hashCode(); } hash = (37 * hash) + PER_SERIES_ALIGNER_FIELD_NUMBER; hash = (53 * hash) + perSeriesAligner_; hash = (37 * hash) + CROSS_SERIES_REDUCER_FIELD_NUMBER; hash = (53 * hash) + crossSeriesReducer_; if (getGroupByFieldsCount() > 0) { hash = (37 * hash) + GROUP_BY_FIELDS_FIELD_NUMBER; hash = (53 * hash) + getGroupByFieldsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(com.google.monitoring.v3.Aggregation other) { if (other == com.google.monitoring.v3.Aggregation.getDefaultInstance()) return this; if (other.hasAlignmentPeriod()) { mergeAlignmentPeriod(other.getAlignmentPeriod()); } if (other.perSeriesAligner_ != 0) { setPerSeriesAlignerValue(other.getPerSeriesAlignerValue()); } if (other.crossSeriesReducer_ != 0) { setCrossSeriesReducerValue(other.getCrossSeriesReducerValue()); } if (!other.groupByFields_.isEmpty()) { if (groupByFields_.isEmpty()) { groupByFields_ = other.groupByFields_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureGroupByFieldsIsMutable(); groupByFields_.addAll(other.groupByFields_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasAlignmentPeriod()) { hash = (37 * hash) + ALIGNMENT_PERIOD_FIELD_NUMBER; hash = (53 * hash) + getAlignmentPeriod().hashCode(); } hash = (37 * hash) + PER_SERIES_ALIGNER_FIELD_NUMBER; hash = (53 * hash) + perSeriesAligner_; hash = (37 * hash) + CROSS_SERIES_REDUCER_FIELD_NUMBER; hash = (53 * hash) + crossSeriesReducer_; if (getGroupByFieldsCount() > 0) { hash = (37 * hash) + GROUP_BY_FIELDS_FIELD_NUMBER; hash = (53 * hash) + getGroupByFieldsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public com.google.monitoring.v3.Aggregation getDefaultInstanceForType() { return com.google.monitoring.v3.Aggregation.getDefaultInstance(); }
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.monitoring.v3.Aggregation.getDescriptor().getEnumTypes().get(0); }
/** * * * <pre> * The alignment period for per-[time series][google.monitoring.v3.TimeSeries] * alignment. If present, `alignmentPeriod` must be at least 60 * seconds. After per-time series alignment, each time series will * contain data points only on the period boundaries. If * `perSeriesAligner` is not specified or equals `ALIGN_NONE`, then * this field is ignored. If `perSeriesAligner` is specified and * does not equal `ALIGN_NONE`, then this field must be defined; * otherwise an error is returned. * </pre> * * <code>.google.protobuf.Duration alignment_period = 1;</code> */ public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() { return getAlignmentPeriod(); }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.monitoring.v3.ListTimeSeriesRequest)) { return super.equals(obj); } com.google.monitoring.v3.ListTimeSeriesRequest other = (com.google.monitoring.v3.ListTimeSeriesRequest) obj; boolean result = true; result = result && getName().equals(other.getName()); result = result && getFilter().equals(other.getFilter()); result = result && (hasInterval() == other.hasInterval()); if (hasInterval()) { result = result && getInterval().equals(other.getInterval()); } result = result && (hasAggregation() == other.hasAggregation()); if (hasAggregation()) { result = result && getAggregation().equals(other.getAggregation()); } result = result && getOrderBy().equals(other.getOrderBy()); result = result && view_ == other.view_; result = result && (getPageSize() == other.getPageSize()); result = result && getPageToken().equals(other.getPageToken()); result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(com.google.monitoring.v3.Aggregation other) { if (other == com.google.monitoring.v3.Aggregation.getDefaultInstance()) return this; if (other.hasAlignmentPeriod()) { mergeAlignmentPeriod(other.getAlignmentPeriod()); } if (other.perSeriesAligner_ != 0) { setPerSeriesAlignerValue(other.getPerSeriesAlignerValue()); } if (other.crossSeriesReducer_ != 0) { setCrossSeriesReducerValue(other.getCrossSeriesReducerValue()); } if (!other.groupByFields_.isEmpty()) { if (groupByFields_.isEmpty()) { groupByFields_ = other.groupByFields_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureGroupByFieldsIsMutable(); groupByFields_.addAll(other.groupByFields_); } onChanged(); } onChanged(); return this; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.monitoring.v3.Aggregation)) { return super.equals(obj); } com.google.monitoring.v3.Aggregation other = (com.google.monitoring.v3.Aggregation) obj; boolean result = true; result = result && (hasAlignmentPeriod() == other.hasAlignmentPeriod()); if (hasAlignmentPeriod()) { result = result && getAlignmentPeriod() .equals(other.getAlignmentPeriod()); } result = result && perSeriesAligner_ == other.perSeriesAligner_; result = result && crossSeriesReducer_ == other.crossSeriesReducer_; result = result && getGroupByFieldsList() .equals(other.getGroupByFieldsList()); return result; }
/** * * * <pre> * By default, the raw time series data is returned. * Use this field to combine multiple time series for different * views of the data. * </pre> * * <code>.google.monitoring.v3.Aggregation aggregation = 5;</code> */ public com.google.monitoring.v3.Aggregation getAggregation() { return aggregation_ == null ? com.google.monitoring.v3.Aggregation.getDefaultInstance() : aggregation_; } /**
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.monitoring.v3.Aggregation.getDescriptor().getEnumTypes().get(1); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (alignmentPeriod_ != null) { output.writeMessage(1, getAlignmentPeriod()); } if (perSeriesAligner_ != com.google.monitoring.v3.Aggregation.Aligner.ALIGN_NONE.getNumber()) { output.writeEnum(2, perSeriesAligner_); } if (crossSeriesReducer_ != com.google.monitoring.v3.Aggregation.Reducer.REDUCE_NONE.getNumber()) { output.writeEnum(4, crossSeriesReducer_); } for (int i = 0; i < groupByFields_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, groupByFields_.getRaw(i)); } unknownFields.writeTo(output); }
if (hasAggregation()) { result = result && getAggregation() .equals(other.getAggregation());
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (alignmentPeriod_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getAlignmentPeriod()); } if (perSeriesAligner_ != com.google.monitoring.v3.Aggregation.Aligner.ALIGN_NONE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, perSeriesAligner_); } if (crossSeriesReducer_ != com.google.monitoring.v3.Aggregation.Reducer.REDUCE_NONE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, crossSeriesReducer_); } { int dataSize = 0; for (int i = 0; i < groupByFields_.size(); i++) { dataSize += computeStringSizeNoTag(groupByFields_.getRaw(i)); } size += dataSize; size += 1 * getGroupByFieldsList().size(); } memoizedSize = size; return size; }
/** * * * <pre> * By default, the raw time series data is returned. * Use this field to combine multiple time series for different * views of the data. * </pre> * * <code>.google.monitoring.v3.Aggregation aggregation = 5;</code> */ public com.google.monitoring.v3.Aggregation getAggregation() { if (aggregationBuilder_ == null) { return aggregation_ == null ? com.google.monitoring.v3.Aggregation.getDefaultInstance() : aggregation_; } else { return aggregationBuilder_.getMessage(); } } /**
/** * * * <pre> * By default, the raw time series data is returned. * Use this field to combine multiple time series for different * views of the data. * </pre> * * <code>.google.monitoring.v3.Aggregation aggregation = 5;</code> */ public Builder mergeAggregation(com.google.monitoring.v3.Aggregation value) { if (aggregationBuilder_ == null) { if (aggregation_ != null) { aggregation_ = com.google.monitoring.v3.Aggregation.newBuilder(aggregation_) .mergeFrom(value) .buildPartial(); } else { aggregation_ = value; } onChanged(); } else { aggregationBuilder_.mergeFrom(value); } return this; } /**