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

yandex.cloud.api.monitoring.v3.DownsamplingOuterClass Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yandex/cloud/monitoring/v3/downsampling.proto

package yandex.cloud.api.monitoring.v3;

public final class DownsamplingOuterClass {
  private DownsamplingOuterClass() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface DownsamplingOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.monitoring.v3.Downsampling)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * Maximum number of points to be returned.
     * 
* * int64 max_points = 1; * @return Whether the maxPoints field is set. */ boolean hasMaxPoints(); /** *
     * Maximum number of points to be returned.
     * 
* * int64 max_points = 1; * @return The maxPoints. */ long getMaxPoints(); /** *
     * Time interval (grid) for downsampling in milliseconds.
     * Points in the specified range are aggregated into one time point.
     * 
* * int64 grid_interval = 2; * @return Whether the gridInterval field is set. */ boolean hasGridInterval(); /** *
     * Time interval (grid) for downsampling in milliseconds.
     * Points in the specified range are aggregated into one time point.
     * 
* * int64 grid_interval = 2; * @return The gridInterval. */ long getGridInterval(); /** *
     * Disable downsampling.
     * 
* * bool disabled = 3; * @return Whether the disabled field is set. */ boolean hasDisabled(); /** *
     * Disable downsampling.
     * 
* * bool disabled = 3; * @return The disabled. */ boolean getDisabled(); /** *
     * Function that is used for downsampling.
     * 
* * .yandex.cloud.monitoring.v3.Downsampling.GridAggregation grid_aggregation = 4; * @return The enum numeric value on the wire for gridAggregation. */ int getGridAggregationValue(); /** *
     * Function that is used for downsampling.
     * 
* * .yandex.cloud.monitoring.v3.Downsampling.GridAggregation grid_aggregation = 4; * @return The gridAggregation. */ yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling.GridAggregation getGridAggregation(); /** *
     * Parameters for filling gaps in data.
     * 
* * .yandex.cloud.monitoring.v3.Downsampling.GapFilling gap_filling = 5; * @return The enum numeric value on the wire for gapFilling. */ int getGapFillingValue(); /** *
     * Parameters for filling gaps in data.
     * 
* * .yandex.cloud.monitoring.v3.Downsampling.GapFilling gap_filling = 5; * @return The gapFilling. */ yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling.GapFilling getGapFilling(); public yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling.ModeCase getModeCase(); } /** *
   * List of available aggregate functions for downsampling.
   * 
* * Protobuf type {@code yandex.cloud.monitoring.v3.Downsampling} */ public static final class Downsampling extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.monitoring.v3.Downsampling) DownsamplingOrBuilder { private static final long serialVersionUID = 0L; // Use Downsampling.newBuilder() to construct. private Downsampling(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Downsampling() { gridAggregation_ = 0; gapFilling_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Downsampling(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Downsampling( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { mode_ = input.readInt64(); modeCase_ = 1; break; } case 16: { mode_ = input.readInt64(); modeCase_ = 2; break; } case 24: { mode_ = input.readBool(); modeCase_ = 3; break; } case 32: { int rawValue = input.readEnum(); gridAggregation_ = rawValue; break; } case 40: { int rawValue = input.readEnum(); gapFilling_ = rawValue; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.internal_static_yandex_cloud_monitoring_v3_Downsampling_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.internal_static_yandex_cloud_monitoring_v3_Downsampling_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling.class, yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling.Builder.class); } /** *
     * List of available aggregate functions for downsampling.
     * 
* * Protobuf enum {@code yandex.cloud.monitoring.v3.Downsampling.GridAggregation} */ public enum GridAggregation implements com.google.protobuf.ProtocolMessageEnum { /** * GRID_AGGREGATION_UNSPECIFIED = 0; */ GRID_AGGREGATION_UNSPECIFIED(0), /** *
       * Max value.
       * 
* * GRID_AGGREGATION_MAX = 1; */ GRID_AGGREGATION_MAX(1), /** *
       * Min value.
       * 
* * GRID_AGGREGATION_MIN = 2; */ GRID_AGGREGATION_MIN(2), /** *
       * Sum of values.
       * 
* * GRID_AGGREGATION_SUM = 3; */ GRID_AGGREGATION_SUM(3), /** *
       * Average value.
       * 
* * GRID_AGGREGATION_AVG = 4; */ GRID_AGGREGATION_AVG(4), /** *
       * Last value.
       * 
* * GRID_AGGREGATION_LAST = 5; */ GRID_AGGREGATION_LAST(5), /** *
       * Total count of points.
       * 
* * GRID_AGGREGATION_COUNT = 6; */ GRID_AGGREGATION_COUNT(6), UNRECOGNIZED(-1), ; /** * GRID_AGGREGATION_UNSPECIFIED = 0; */ public static final int GRID_AGGREGATION_UNSPECIFIED_VALUE = 0; /** *
       * Max value.
       * 
* * GRID_AGGREGATION_MAX = 1; */ public static final int GRID_AGGREGATION_MAX_VALUE = 1; /** *
       * Min value.
       * 
* * GRID_AGGREGATION_MIN = 2; */ public static final int GRID_AGGREGATION_MIN_VALUE = 2; /** *
       * Sum of values.
       * 
* * GRID_AGGREGATION_SUM = 3; */ public static final int GRID_AGGREGATION_SUM_VALUE = 3; /** *
       * Average value.
       * 
* * GRID_AGGREGATION_AVG = 4; */ public static final int GRID_AGGREGATION_AVG_VALUE = 4; /** *
       * Last value.
       * 
* * GRID_AGGREGATION_LAST = 5; */ public static final int GRID_AGGREGATION_LAST_VALUE = 5; /** *
       * Total count of points.
       * 
* * GRID_AGGREGATION_COUNT = 6; */ public static final int GRID_AGGREGATION_COUNT_VALUE = 6; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static GridAggregation valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static GridAggregation forNumber(int value) { switch (value) { case 0: return GRID_AGGREGATION_UNSPECIFIED; case 1: return GRID_AGGREGATION_MAX; case 2: return GRID_AGGREGATION_MIN; case 3: return GRID_AGGREGATION_SUM; case 4: return GRID_AGGREGATION_AVG; case 5: return GRID_AGGREGATION_LAST; case 6: return GRID_AGGREGATION_COUNT; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< GridAggregation> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public GridAggregation findValueByNumber(int number) { return GridAggregation.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling.getDescriptor().getEnumTypes().get(0); } private static final GridAggregation[] VALUES = values(); public static GridAggregation valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private GridAggregation(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.monitoring.v3.Downsampling.GridAggregation) } /** *
     * List of available gap filling policy for downsampling.
     * 
* * Protobuf enum {@code yandex.cloud.monitoring.v3.Downsampling.GapFilling} */ public enum GapFilling implements com.google.protobuf.ProtocolMessageEnum { /** * GAP_FILLING_UNSPECIFIED = 0; */ GAP_FILLING_UNSPECIFIED(0), /** *
       * Returns `null` as a metric value and `timestamp` as a time series value.
       * 
* * GAP_FILLING_NULL = 1; */ GAP_FILLING_NULL(1), /** *
       * Returns no value and no timestamp.
       * 
* * GAP_FILLING_NONE = 2; */ GAP_FILLING_NONE(2), /** *
       * Returns the value from the previous time interval.
       * 
* * GAP_FILLING_PREVIOUS = 3; */ GAP_FILLING_PREVIOUS(3), UNRECOGNIZED(-1), ; /** * GAP_FILLING_UNSPECIFIED = 0; */ public static final int GAP_FILLING_UNSPECIFIED_VALUE = 0; /** *
       * Returns `null` as a metric value and `timestamp` as a time series value.
       * 
* * GAP_FILLING_NULL = 1; */ public static final int GAP_FILLING_NULL_VALUE = 1; /** *
       * Returns no value and no timestamp.
       * 
* * GAP_FILLING_NONE = 2; */ public static final int GAP_FILLING_NONE_VALUE = 2; /** *
       * Returns the value from the previous time interval.
       * 
* * GAP_FILLING_PREVIOUS = 3; */ public static final int GAP_FILLING_PREVIOUS_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static GapFilling valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static GapFilling forNumber(int value) { switch (value) { case 0: return GAP_FILLING_UNSPECIFIED; case 1: return GAP_FILLING_NULL; case 2: return GAP_FILLING_NONE; case 3: return GAP_FILLING_PREVIOUS; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< GapFilling> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public GapFilling findValueByNumber(int number) { return GapFilling.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling.getDescriptor().getEnumTypes().get(1); } private static final GapFilling[] VALUES = values(); public static GapFilling valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private GapFilling(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.monitoring.v3.Downsampling.GapFilling) } private int modeCase_ = 0; private java.lang.Object mode_; public enum ModeCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { MAX_POINTS(1), GRID_INTERVAL(2), DISABLED(3), MODE_NOT_SET(0); private final int value; private ModeCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ModeCase valueOf(int value) { return forNumber(value); } public static ModeCase forNumber(int value) { switch (value) { case 1: return MAX_POINTS; case 2: return GRID_INTERVAL; case 3: return DISABLED; case 0: return MODE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ModeCase getModeCase() { return ModeCase.forNumber( modeCase_); } public static final int MAX_POINTS_FIELD_NUMBER = 1; /** *
     * Maximum number of points to be returned.
     * 
* * int64 max_points = 1; * @return Whether the maxPoints field is set. */ @java.lang.Override public boolean hasMaxPoints() { return modeCase_ == 1; } /** *
     * Maximum number of points to be returned.
     * 
* * int64 max_points = 1; * @return The maxPoints. */ @java.lang.Override public long getMaxPoints() { if (modeCase_ == 1) { return (java.lang.Long) mode_; } return 0L; } public static final int GRID_INTERVAL_FIELD_NUMBER = 2; /** *
     * Time interval (grid) for downsampling in milliseconds.
     * Points in the specified range are aggregated into one time point.
     * 
* * int64 grid_interval = 2; * @return Whether the gridInterval field is set. */ @java.lang.Override public boolean hasGridInterval() { return modeCase_ == 2; } /** *
     * Time interval (grid) for downsampling in milliseconds.
     * Points in the specified range are aggregated into one time point.
     * 
* * int64 grid_interval = 2; * @return The gridInterval. */ @java.lang.Override public long getGridInterval() { if (modeCase_ == 2) { return (java.lang.Long) mode_; } return 0L; } public static final int DISABLED_FIELD_NUMBER = 3; /** *
     * Disable downsampling.
     * 
* * bool disabled = 3; * @return Whether the disabled field is set. */ @java.lang.Override public boolean hasDisabled() { return modeCase_ == 3; } /** *
     * Disable downsampling.
     * 
* * bool disabled = 3; * @return The disabled. */ @java.lang.Override public boolean getDisabled() { if (modeCase_ == 3) { return (java.lang.Boolean) mode_; } return false; } public static final int GRID_AGGREGATION_FIELD_NUMBER = 4; private int gridAggregation_; /** *
     * Function that is used for downsampling.
     * 
* * .yandex.cloud.monitoring.v3.Downsampling.GridAggregation grid_aggregation = 4; * @return The enum numeric value on the wire for gridAggregation. */ @java.lang.Override public int getGridAggregationValue() { return gridAggregation_; } /** *
     * Function that is used for downsampling.
     * 
* * .yandex.cloud.monitoring.v3.Downsampling.GridAggregation grid_aggregation = 4; * @return The gridAggregation. */ @java.lang.Override public yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling.GridAggregation getGridAggregation() { @SuppressWarnings("deprecation") yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling.GridAggregation result = yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling.GridAggregation.valueOf(gridAggregation_); return result == null ? yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling.GridAggregation.UNRECOGNIZED : result; } public static final int GAP_FILLING_FIELD_NUMBER = 5; private int gapFilling_; /** *
     * Parameters for filling gaps in data.
     * 
* * .yandex.cloud.monitoring.v3.Downsampling.GapFilling gap_filling = 5; * @return The enum numeric value on the wire for gapFilling. */ @java.lang.Override public int getGapFillingValue() { return gapFilling_; } /** *
     * Parameters for filling gaps in data.
     * 
* * .yandex.cloud.monitoring.v3.Downsampling.GapFilling gap_filling = 5; * @return The gapFilling. */ @java.lang.Override public yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling.GapFilling getGapFilling() { @SuppressWarnings("deprecation") yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling.GapFilling result = yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling.GapFilling.valueOf(gapFilling_); return result == null ? yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling.GapFilling.UNRECOGNIZED : result; } 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 { if (modeCase_ == 1) { output.writeInt64( 1, (long)((java.lang.Long) mode_)); } if (modeCase_ == 2) { output.writeInt64( 2, (long)((java.lang.Long) mode_)); } if (modeCase_ == 3) { output.writeBool( 3, (boolean)((java.lang.Boolean) mode_)); } if (gridAggregation_ != yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling.GridAggregation.GRID_AGGREGATION_UNSPECIFIED.getNumber()) { output.writeEnum(4, gridAggregation_); } if (gapFilling_ != yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling.GapFilling.GAP_FILLING_UNSPECIFIED.getNumber()) { output.writeEnum(5, gapFilling_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (modeCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 1, (long)((java.lang.Long) mode_)); } if (modeCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 2, (long)((java.lang.Long) mode_)); } if (modeCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeBoolSize( 3, (boolean)((java.lang.Boolean) mode_)); } if (gridAggregation_ != yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling.GridAggregation.GRID_AGGREGATION_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, gridAggregation_); } if (gapFilling_ != yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling.GapFilling.GAP_FILLING_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, gapFilling_); } 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 yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling)) { return super.equals(obj); } yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling other = (yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling) obj; if (gridAggregation_ != other.gridAggregation_) return false; if (gapFilling_ != other.gapFilling_) return false; if (!getModeCase().equals(other.getModeCase())) return false; switch (modeCase_) { case 1: if (getMaxPoints() != other.getMaxPoints()) return false; break; case 2: if (getGridInterval() != other.getGridInterval()) return false; break; case 3: if (getDisabled() != other.getDisabled()) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + GRID_AGGREGATION_FIELD_NUMBER; hash = (53 * hash) + gridAggregation_; hash = (37 * hash) + GAP_FILLING_FIELD_NUMBER; hash = (53 * hash) + gapFilling_; switch (modeCase_) { case 1: hash = (37 * hash) + MAX_POINTS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxPoints()); break; case 2: hash = (37 * hash) + GRID_INTERVAL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getGridInterval()); break; case 3: hash = (37 * hash) + DISABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDisabled()); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling 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 yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling 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 yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling 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(yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling 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; } /** *
     * List of available aggregate functions for downsampling.
     * 
* * Protobuf type {@code yandex.cloud.monitoring.v3.Downsampling} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.monitoring.v3.Downsampling) yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.DownsamplingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.internal_static_yandex_cloud_monitoring_v3_Downsampling_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.internal_static_yandex_cloud_monitoring_v3_Downsampling_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling.class, yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling.Builder.class); } // Construct using yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); gridAggregation_ = 0; gapFilling_ = 0; modeCase_ = 0; mode_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.internal_static_yandex_cloud_monitoring_v3_Downsampling_descriptor; } @java.lang.Override public yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling getDefaultInstanceForType() { return yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling build() { yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling buildPartial() { yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling result = new yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling(this); if (modeCase_ == 1) { result.mode_ = mode_; } if (modeCase_ == 2) { result.mode_ = mode_; } if (modeCase_ == 3) { result.mode_ = mode_; } result.gridAggregation_ = gridAggregation_; result.gapFilling_ = gapFilling_; result.modeCase_ = modeCase_; 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 yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling) { return mergeFrom((yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling other) { if (other == yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling.getDefaultInstance()) return this; if (other.gridAggregation_ != 0) { setGridAggregationValue(other.getGridAggregationValue()); } if (other.gapFilling_ != 0) { setGapFillingValue(other.getGapFillingValue()); } switch (other.getModeCase()) { case MAX_POINTS: { setMaxPoints(other.getMaxPoints()); break; } case GRID_INTERVAL: { setGridInterval(other.getGridInterval()); break; } case DISABLED: { setDisabled(other.getDisabled()); break; } case MODE_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); 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 { yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int modeCase_ = 0; private java.lang.Object mode_; public ModeCase getModeCase() { return ModeCase.forNumber( modeCase_); } public Builder clearMode() { modeCase_ = 0; mode_ = null; onChanged(); return this; } /** *
       * Maximum number of points to be returned.
       * 
* * int64 max_points = 1; * @return Whether the maxPoints field is set. */ public boolean hasMaxPoints() { return modeCase_ == 1; } /** *
       * Maximum number of points to be returned.
       * 
* * int64 max_points = 1; * @return The maxPoints. */ public long getMaxPoints() { if (modeCase_ == 1) { return (java.lang.Long) mode_; } return 0L; } /** *
       * Maximum number of points to be returned.
       * 
* * int64 max_points = 1; * @param value The maxPoints to set. * @return This builder for chaining. */ public Builder setMaxPoints(long value) { modeCase_ = 1; mode_ = value; onChanged(); return this; } /** *
       * Maximum number of points to be returned.
       * 
* * int64 max_points = 1; * @return This builder for chaining. */ public Builder clearMaxPoints() { if (modeCase_ == 1) { modeCase_ = 0; mode_ = null; onChanged(); } return this; } /** *
       * Time interval (grid) for downsampling in milliseconds.
       * Points in the specified range are aggregated into one time point.
       * 
* * int64 grid_interval = 2; * @return Whether the gridInterval field is set. */ public boolean hasGridInterval() { return modeCase_ == 2; } /** *
       * Time interval (grid) for downsampling in milliseconds.
       * Points in the specified range are aggregated into one time point.
       * 
* * int64 grid_interval = 2; * @return The gridInterval. */ public long getGridInterval() { if (modeCase_ == 2) { return (java.lang.Long) mode_; } return 0L; } /** *
       * Time interval (grid) for downsampling in milliseconds.
       * Points in the specified range are aggregated into one time point.
       * 
* * int64 grid_interval = 2; * @param value The gridInterval to set. * @return This builder for chaining. */ public Builder setGridInterval(long value) { modeCase_ = 2; mode_ = value; onChanged(); return this; } /** *
       * Time interval (grid) for downsampling in milliseconds.
       * Points in the specified range are aggregated into one time point.
       * 
* * int64 grid_interval = 2; * @return This builder for chaining. */ public Builder clearGridInterval() { if (modeCase_ == 2) { modeCase_ = 0; mode_ = null; onChanged(); } return this; } /** *
       * Disable downsampling.
       * 
* * bool disabled = 3; * @return Whether the disabled field is set. */ public boolean hasDisabled() { return modeCase_ == 3; } /** *
       * Disable downsampling.
       * 
* * bool disabled = 3; * @return The disabled. */ public boolean getDisabled() { if (modeCase_ == 3) { return (java.lang.Boolean) mode_; } return false; } /** *
       * Disable downsampling.
       * 
* * bool disabled = 3; * @param value The disabled to set. * @return This builder for chaining. */ public Builder setDisabled(boolean value) { modeCase_ = 3; mode_ = value; onChanged(); return this; } /** *
       * Disable downsampling.
       * 
* * bool disabled = 3; * @return This builder for chaining. */ public Builder clearDisabled() { if (modeCase_ == 3) { modeCase_ = 0; mode_ = null; onChanged(); } return this; } private int gridAggregation_ = 0; /** *
       * Function that is used for downsampling.
       * 
* * .yandex.cloud.monitoring.v3.Downsampling.GridAggregation grid_aggregation = 4; * @return The enum numeric value on the wire for gridAggregation. */ @java.lang.Override public int getGridAggregationValue() { return gridAggregation_; } /** *
       * Function that is used for downsampling.
       * 
* * .yandex.cloud.monitoring.v3.Downsampling.GridAggregation grid_aggregation = 4; * @param value The enum numeric value on the wire for gridAggregation to set. * @return This builder for chaining. */ public Builder setGridAggregationValue(int value) { gridAggregation_ = value; onChanged(); return this; } /** *
       * Function that is used for downsampling.
       * 
* * .yandex.cloud.monitoring.v3.Downsampling.GridAggregation grid_aggregation = 4; * @return The gridAggregation. */ @java.lang.Override public yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling.GridAggregation getGridAggregation() { @SuppressWarnings("deprecation") yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling.GridAggregation result = yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling.GridAggregation.valueOf(gridAggregation_); return result == null ? yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling.GridAggregation.UNRECOGNIZED : result; } /** *
       * Function that is used for downsampling.
       * 
* * .yandex.cloud.monitoring.v3.Downsampling.GridAggregation grid_aggregation = 4; * @param value The gridAggregation to set. * @return This builder for chaining. */ public Builder setGridAggregation(yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling.GridAggregation value) { if (value == null) { throw new NullPointerException(); } gridAggregation_ = value.getNumber(); onChanged(); return this; } /** *
       * Function that is used for downsampling.
       * 
* * .yandex.cloud.monitoring.v3.Downsampling.GridAggregation grid_aggregation = 4; * @return This builder for chaining. */ public Builder clearGridAggregation() { gridAggregation_ = 0; onChanged(); return this; } private int gapFilling_ = 0; /** *
       * Parameters for filling gaps in data.
       * 
* * .yandex.cloud.monitoring.v3.Downsampling.GapFilling gap_filling = 5; * @return The enum numeric value on the wire for gapFilling. */ @java.lang.Override public int getGapFillingValue() { return gapFilling_; } /** *
       * Parameters for filling gaps in data.
       * 
* * .yandex.cloud.monitoring.v3.Downsampling.GapFilling gap_filling = 5; * @param value The enum numeric value on the wire for gapFilling to set. * @return This builder for chaining. */ public Builder setGapFillingValue(int value) { gapFilling_ = value; onChanged(); return this; } /** *
       * Parameters for filling gaps in data.
       * 
* * .yandex.cloud.monitoring.v3.Downsampling.GapFilling gap_filling = 5; * @return The gapFilling. */ @java.lang.Override public yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling.GapFilling getGapFilling() { @SuppressWarnings("deprecation") yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling.GapFilling result = yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling.GapFilling.valueOf(gapFilling_); return result == null ? yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling.GapFilling.UNRECOGNIZED : result; } /** *
       * Parameters for filling gaps in data.
       * 
* * .yandex.cloud.monitoring.v3.Downsampling.GapFilling gap_filling = 5; * @param value The gapFilling to set. * @return This builder for chaining. */ public Builder setGapFilling(yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling.GapFilling value) { if (value == null) { throw new NullPointerException(); } gapFilling_ = value.getNumber(); onChanged(); return this; } /** *
       * Parameters for filling gaps in data.
       * 
* * .yandex.cloud.monitoring.v3.Downsampling.GapFilling gap_filling = 5; * @return This builder for chaining. */ public Builder clearGapFilling() { gapFilling_ = 0; 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:yandex.cloud.monitoring.v3.Downsampling) } // @@protoc_insertion_point(class_scope:yandex.cloud.monitoring.v3.Downsampling) private static final yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling(); } public static yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Downsampling parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Downsampling(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.monitoring.v3.DownsamplingOuterClass.Downsampling getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_monitoring_v3_Downsampling_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_monitoring_v3_Downsampling_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n-yandex/cloud/monitoring/v3/downsamplin" + "g.proto\022\032yandex.cloud.monitoring.v3\"\275\004\n\014" + "Downsampling\022\024\n\nmax_points\030\001 \001(\003H\000\022\027\n\rgr" + "id_interval\030\002 \001(\003H\000\022\022\n\010disabled\030\003 \001(\010H\000\022" + "R\n\020grid_aggregation\030\004 \001(\01628.yandex.cloud" + ".monitoring.v3.Downsampling.GridAggregat" + "ion\022H\n\013gap_filling\030\005 \001(\01623.yandex.cloud." + "monitoring.v3.Downsampling.GapFilling\"\322\001" + "\n\017GridAggregation\022 \n\034GRID_AGGREGATION_UN" + "SPECIFIED\020\000\022\030\n\024GRID_AGGREGATION_MAX\020\001\022\030\n" + "\024GRID_AGGREGATION_MIN\020\002\022\030\n\024GRID_AGGREGAT" + "ION_SUM\020\003\022\030\n\024GRID_AGGREGATION_AVG\020\004\022\031\n\025G" + "RID_AGGREGATION_LAST\020\005\022\032\n\026GRID_AGGREGATI" + "ON_COUNT\020\006\"o\n\nGapFilling\022\033\n\027GAP_FILLING_" + "UNSPECIFIED\020\000\022\024\n\020GAP_FILLING_NULL\020\001\022\024\n\020G" + "AP_FILLING_NONE\020\002\022\030\n\024GAP_FILLING_PREVIOU" + "S\020\003B\006\n\004modeBk\n\036yandex.cloud.api.monitori" + "ng.v3ZIgithub.com/yandex-cloud/go-genpro" + "to/yandex/cloud/monitoring/v3;monitoring" + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_yandex_cloud_monitoring_v3_Downsampling_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_monitoring_v3_Downsampling_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_monitoring_v3_Downsampling_descriptor, new java.lang.String[] { "MaxPoints", "GridInterval", "Disabled", "GridAggregation", "GapFilling", "Mode", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy