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

com.google.apphosting.base.protos.CommonPb Maven / Gradle / Ivy

There is a newer version: 2.0.32
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: common.proto

package com.google.apphosting.base.protos;

public final class CommonPb {
  private CommonPb() {}
  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 ProfilerSettingsOrBuilder extends
      // @@protoc_insertion_point(interface_extends:java.apphosting.ProfilerSettings)
      com.google.protobuf.MessageOrBuilder {

    /**
     * required .java.apphosting.ProfilerSettings.Type type = 1;
     * @return Whether the type field is set.
     */
    boolean hasType();
    /**
     * required .java.apphosting.ProfilerSettings.Type type = 1;
     * @return The type.
     */
    com.google.apphosting.base.protos.CommonPb.ProfilerSettings.Type getType();

    /**
     * 
     * The number of times per second that the sampler should fire.
     * 
* * optional int32 sampling_rate = 2; * @return Whether the samplingRate field is set. */ boolean hasSamplingRate(); /** *
     * The number of times per second that the sampler should fire.
     * 
* * optional int32 sampling_rate = 2; * @return The samplingRate. */ int getSamplingRate(); /** *
     * Inverse of the probability that this request was selected for
     * profiling (i.e. 10 if this request was chosen with probability of
     * 0.1).
     * 
* * optional int32 inverse_request_probability = 3 [default = 1]; * @return Whether the inverseRequestProbability field is set. */ boolean hasInverseRequestProbability(); /** *
     * Inverse of the probability that this request was selected for
     * profiling (i.e. 10 if this request was chosen with probability of
     * 0.1).
     * 
* * optional int32 inverse_request_probability = 3 [default = 1]; * @return The inverseRequestProbability. */ int getInverseRequestProbability(); } /** * Protobuf type {@code java.apphosting.ProfilerSettings} */ public static final class ProfilerSettings extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:java.apphosting.ProfilerSettings) ProfilerSettingsOrBuilder { private static final long serialVersionUID = 0L; // Use ProfilerSettings.newBuilder() to construct. private ProfilerSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ProfilerSettings() { type_ = 1; inverseRequestProbability_ = 1; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ProfilerSettings(); } @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.apphosting.base.protos.CommonPb.internal_static_java_apphosting_ProfilerSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.base.protos.CommonPb.internal_static_java_apphosting_ProfilerSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.base.protos.CommonPb.ProfilerSettings.class, com.google.apphosting.base.protos.CommonPb.ProfilerSettings.Builder.class); } /** * Protobuf enum {@code java.apphosting.ProfilerSettings.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * PROCESS_CPU = 1; */ PROCESS_CPU(1), /** * THREAD_CPU = 2; */ THREAD_CPU(2), /** * THREAD_WALLCLOCK = 3; */ THREAD_WALLCLOCK(3), ; /** * PROCESS_CPU = 1; */ public static final int PROCESS_CPU_VALUE = 1; /** * THREAD_CPU = 2; */ public static final int THREAD_CPU_VALUE = 2; /** * THREAD_WALLCLOCK = 3; */ public static final int THREAD_WALLCLOCK_VALUE = 3; public final int getNumber() { 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 Type 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 Type forNumber(int value) { switch (value) { case 1: return PROCESS_CPU; case 2: return THREAD_CPU; case 3: return THREAD_WALLCLOCK; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Type> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Type findValueByNumber(int number) { return Type.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 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 com.google.apphosting.base.protos.CommonPb.ProfilerSettings.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private Type(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:java.apphosting.ProfilerSettings.Type) } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private int type_ = 1; /** * required .java.apphosting.ProfilerSettings.Type type = 1; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** * required .java.apphosting.ProfilerSettings.Type type = 1; * @return The type. */ @java.lang.Override public com.google.apphosting.base.protos.CommonPb.ProfilerSettings.Type getType() { com.google.apphosting.base.protos.CommonPb.ProfilerSettings.Type result = com.google.apphosting.base.protos.CommonPb.ProfilerSettings.Type.forNumber(type_); return result == null ? com.google.apphosting.base.protos.CommonPb.ProfilerSettings.Type.PROCESS_CPU : result; } public static final int SAMPLING_RATE_FIELD_NUMBER = 2; private int samplingRate_ = 0; /** *
     * The number of times per second that the sampler should fire.
     * 
* * optional int32 sampling_rate = 2; * @return Whether the samplingRate field is set. */ @java.lang.Override public boolean hasSamplingRate() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * The number of times per second that the sampler should fire.
     * 
* * optional int32 sampling_rate = 2; * @return The samplingRate. */ @java.lang.Override public int getSamplingRate() { return samplingRate_; } public static final int INVERSE_REQUEST_PROBABILITY_FIELD_NUMBER = 3; private int inverseRequestProbability_ = 1; /** *
     * Inverse of the probability that this request was selected for
     * profiling (i.e. 10 if this request was chosen with probability of
     * 0.1).
     * 
* * optional int32 inverse_request_probability = 3 [default = 1]; * @return Whether the inverseRequestProbability field is set. */ @java.lang.Override public boolean hasInverseRequestProbability() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Inverse of the probability that this request was selected for
     * profiling (i.e. 10 if this request was chosen with probability of
     * 0.1).
     * 
* * optional int32 inverse_request_probability = 3 [default = 1]; * @return The inverseRequestProbability. */ @java.lang.Override public int getInverseRequestProbability() { return inverseRequestProbability_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasType()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeEnum(1, type_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(2, samplingRate_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeInt32(3, inverseRequestProbability_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, samplingRate_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, inverseRequestProbability_); } 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.apphosting.base.protos.CommonPb.ProfilerSettings)) { return super.equals(obj); } com.google.apphosting.base.protos.CommonPb.ProfilerSettings other = (com.google.apphosting.base.protos.CommonPb.ProfilerSettings) obj; if (hasType() != other.hasType()) return false; if (hasType()) { if (type_ != other.type_) return false; } if (hasSamplingRate() != other.hasSamplingRate()) return false; if (hasSamplingRate()) { if (getSamplingRate() != other.getSamplingRate()) return false; } if (hasInverseRequestProbability() != other.hasInverseRequestProbability()) return false; if (hasInverseRequestProbability()) { if (getInverseRequestProbability() != other.getInverseRequestProbability()) 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 (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; } if (hasSamplingRate()) { hash = (37 * hash) + SAMPLING_RATE_FIELD_NUMBER; hash = (53 * hash) + getSamplingRate(); } if (hasInverseRequestProbability()) { hash = (37 * hash) + INVERSE_REQUEST_PROBABILITY_FIELD_NUMBER; hash = (53 * hash) + getInverseRequestProbability(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.base.protos.CommonPb.ProfilerSettings parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.base.protos.CommonPb.ProfilerSettings parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.base.protos.CommonPb.ProfilerSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.base.protos.CommonPb.ProfilerSettings 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.apphosting.base.protos.CommonPb.ProfilerSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.base.protos.CommonPb.ProfilerSettings parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.apphosting.base.protos.CommonPb.ProfilerSettings parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.base.protos.CommonPb.ProfilerSettings 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.apphosting.base.protos.CommonPb.ProfilerSettings parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.base.protos.CommonPb.ProfilerSettings 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.apphosting.base.protos.CommonPb.ProfilerSettings parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.base.protos.CommonPb.ProfilerSettings 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.apphosting.base.protos.CommonPb.ProfilerSettings 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; } /** * Protobuf type {@code java.apphosting.ProfilerSettings} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:java.apphosting.ProfilerSettings) com.google.apphosting.base.protos.CommonPb.ProfilerSettingsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.base.protos.CommonPb.internal_static_java_apphosting_ProfilerSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.base.protos.CommonPb.internal_static_java_apphosting_ProfilerSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.base.protos.CommonPb.ProfilerSettings.class, com.google.apphosting.base.protos.CommonPb.ProfilerSettings.Builder.class); } // Construct using com.google.apphosting.base.protos.CommonPb.ProfilerSettings.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; type_ = 1; samplingRate_ = 0; inverseRequestProbability_ = 1; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.base.protos.CommonPb.internal_static_java_apphosting_ProfilerSettings_descriptor; } @java.lang.Override public com.google.apphosting.base.protos.CommonPb.ProfilerSettings getDefaultInstanceForType() { return com.google.apphosting.base.protos.CommonPb.ProfilerSettings.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.base.protos.CommonPb.ProfilerSettings build() { com.google.apphosting.base.protos.CommonPb.ProfilerSettings result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.base.protos.CommonPb.ProfilerSettings buildPartial() { com.google.apphosting.base.protos.CommonPb.ProfilerSettings result = new com.google.apphosting.base.protos.CommonPb.ProfilerSettings(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.apphosting.base.protos.CommonPb.ProfilerSettings result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.type_ = type_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.samplingRate_ = samplingRate_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.inverseRequestProbability_ = inverseRequestProbability_; to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.apphosting.base.protos.CommonPb.ProfilerSettings) { return mergeFrom((com.google.apphosting.base.protos.CommonPb.ProfilerSettings)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.base.protos.CommonPb.ProfilerSettings other) { if (other == com.google.apphosting.base.protos.CommonPb.ProfilerSettings.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasSamplingRate()) { setSamplingRate(other.getSamplingRate()); } if (other.hasInverseRequestProbability()) { setInverseRequestProbability(other.getInverseRequestProbability()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasType()) { return false; } 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 8: { int tmpRaw = input.readEnum(); com.google.apphosting.base.protos.CommonPb.ProfilerSettings.Type tmpValue = com.google.apphosting.base.protos.CommonPb.ProfilerSettings.Type.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(1, tmpRaw); } else { type_ = tmpRaw; bitField0_ |= 0x00000001; } break; } // case 8 case 16: { samplingRate_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { inverseRequestProbability_ = input.readInt32(); bitField0_ |= 0x00000004; break; } // case 24 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 int type_ = 1; /** * required .java.apphosting.ProfilerSettings.Type type = 1; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** * required .java.apphosting.ProfilerSettings.Type type = 1; * @return The type. */ @java.lang.Override public com.google.apphosting.base.protos.CommonPb.ProfilerSettings.Type getType() { com.google.apphosting.base.protos.CommonPb.ProfilerSettings.Type result = com.google.apphosting.base.protos.CommonPb.ProfilerSettings.Type.forNumber(type_); return result == null ? com.google.apphosting.base.protos.CommonPb.ProfilerSettings.Type.PROCESS_CPU : result; } /** * required .java.apphosting.ProfilerSettings.Type type = 1; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(com.google.apphosting.base.protos.CommonPb.ProfilerSettings.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; } /** * required .java.apphosting.ProfilerSettings.Type type = 1; * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 1; onChanged(); return this; } private int samplingRate_ ; /** *
       * The number of times per second that the sampler should fire.
       * 
* * optional int32 sampling_rate = 2; * @return Whether the samplingRate field is set. */ @java.lang.Override public boolean hasSamplingRate() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * The number of times per second that the sampler should fire.
       * 
* * optional int32 sampling_rate = 2; * @return The samplingRate. */ @java.lang.Override public int getSamplingRate() { return samplingRate_; } /** *
       * The number of times per second that the sampler should fire.
       * 
* * optional int32 sampling_rate = 2; * @param value The samplingRate to set. * @return This builder for chaining. */ public Builder setSamplingRate(int value) { samplingRate_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * The number of times per second that the sampler should fire.
       * 
* * optional int32 sampling_rate = 2; * @return This builder for chaining. */ public Builder clearSamplingRate() { bitField0_ = (bitField0_ & ~0x00000002); samplingRate_ = 0; onChanged(); return this; } private int inverseRequestProbability_ = 1; /** *
       * Inverse of the probability that this request was selected for
       * profiling (i.e. 10 if this request was chosen with probability of
       * 0.1).
       * 
* * optional int32 inverse_request_probability = 3 [default = 1]; * @return Whether the inverseRequestProbability field is set. */ @java.lang.Override public boolean hasInverseRequestProbability() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * Inverse of the probability that this request was selected for
       * profiling (i.e. 10 if this request was chosen with probability of
       * 0.1).
       * 
* * optional int32 inverse_request_probability = 3 [default = 1]; * @return The inverseRequestProbability. */ @java.lang.Override public int getInverseRequestProbability() { return inverseRequestProbability_; } /** *
       * Inverse of the probability that this request was selected for
       * profiling (i.e. 10 if this request was chosen with probability of
       * 0.1).
       * 
* * optional int32 inverse_request_probability = 3 [default = 1]; * @param value The inverseRequestProbability to set. * @return This builder for chaining. */ public Builder setInverseRequestProbability(int value) { inverseRequestProbability_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Inverse of the probability that this request was selected for
       * profiling (i.e. 10 if this request was chosen with probability of
       * 0.1).
       * 
* * optional int32 inverse_request_probability = 3 [default = 1]; * @return This builder for chaining. */ public Builder clearInverseRequestProbability() { bitField0_ = (bitField0_ & ~0x00000004); inverseRequestProbability_ = 1; 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:java.apphosting.ProfilerSettings) } // @@protoc_insertion_point(class_scope:java.apphosting.ProfilerSettings) private static final com.google.apphosting.base.protos.CommonPb.ProfilerSettings DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.base.protos.CommonPb.ProfilerSettings(); } public static com.google.apphosting.base.protos.CommonPb.ProfilerSettings getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ProfilerSettings 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.apphosting.base.protos.CommonPb.ProfilerSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_java_apphosting_ProfilerSettings_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_java_apphosting_ProfilerSettings_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\014common.proto\022\017java.apphosting\"\306\001\n\020Prof" + "ilerSettings\0224\n\004type\030\001 \002(\0162&.java.apphos" + "ting.ProfilerSettings.Type\022\025\n\rsampling_r" + "ate\030\002 \001(\005\022&\n\033inverse_request_probability" + "\030\003 \001(\005:\0011\"=\n\004Type\022\017\n\013PROCESS_CPU\020\001\022\016\n\nTH" + "READ_CPU\020\002\022\024\n\020THREAD_WALLCLOCK\020\003B0\n!com." + "google.apphosting.base.protosB\010CommonPb\370" + "\001\001" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_java_apphosting_ProfilerSettings_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_java_apphosting_ProfilerSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_java_apphosting_ProfilerSettings_descriptor, new java.lang.String[] { "Type", "SamplingRate", "InverseRequestProbability", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy