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

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

There is a newer version: 2.0.31
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: clone-controller.proto

package com.google.apphosting.base.protos;

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

    /**
     * required string security_ticket = 1;
     * @return Whether the securityTicket field is set.
     */
    boolean hasSecurityTicket();
    /**
     * required string security_ticket = 1;
     * @return The securityTicket.
     */
    java.lang.String getSecurityTicket();
    /**
     * required string security_ticket = 1;
     * @return The bytes for securityTicket.
     */
    com.google.protobuf.ByteString
        getSecurityTicketBytes();

    /**
     * 
     * There are two deadlines: soft and hard.
     * Users should have a chance to clean up after the soft deadline,
     * but their code should be forcibly stopped at the hard deadline.
     * 
* * required bool hard = 2; * @return Whether the hard field is set. */ boolean hasHard(); /** *
     * There are two deadlines: soft and hard.
     * Users should have a chance to clean up after the soft deadline,
     * but their code should be forcibly stopped at the hard deadline.
     * 
* * required bool hard = 2; * @return The hard. */ boolean getHard(); } /** * Protobuf type {@code apphosting.DeadlineInfo} */ public static final class DeadlineInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting.DeadlineInfo) DeadlineInfoOrBuilder { private static final long serialVersionUID = 0L; // Use DeadlineInfo.newBuilder() to construct. private DeadlineInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeadlineInfo() { securityTicket_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DeadlineInfo(); } @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.ModelClonePb.internal_static_apphosting_DeadlineInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.base.protos.ModelClonePb.internal_static_apphosting_DeadlineInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.base.protos.ModelClonePb.DeadlineInfo.class, com.google.apphosting.base.protos.ModelClonePb.DeadlineInfo.Builder.class); } private int bitField0_; public static final int SECURITY_TICKET_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object securityTicket_ = ""; /** * required string security_ticket = 1; * @return Whether the securityTicket field is set. */ @java.lang.Override public boolean hasSecurityTicket() { return ((bitField0_ & 0x00000001) != 0); } /** * required string security_ticket = 1; * @return The securityTicket. */ @java.lang.Override public java.lang.String getSecurityTicket() { java.lang.Object ref = securityTicket_; 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(); if (bs.isValidUtf8()) { securityTicket_ = s; } return s; } } /** * required string security_ticket = 1; * @return The bytes for securityTicket. */ @java.lang.Override public com.google.protobuf.ByteString getSecurityTicketBytes() { java.lang.Object ref = securityTicket_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); securityTicket_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HARD_FIELD_NUMBER = 2; private boolean hard_ = false; /** *
     * There are two deadlines: soft and hard.
     * Users should have a chance to clean up after the soft deadline,
     * but their code should be forcibly stopped at the hard deadline.
     * 
* * required bool hard = 2; * @return Whether the hard field is set. */ @java.lang.Override public boolean hasHard() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * There are two deadlines: soft and hard.
     * Users should have a chance to clean up after the soft deadline,
     * but their code should be forcibly stopped at the hard deadline.
     * 
* * required bool hard = 2; * @return The hard. */ @java.lang.Override public boolean getHard() { return hard_; } 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 (!hasSecurityTicket()) { memoizedIsInitialized = 0; return false; } if (!hasHard()) { 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)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, securityTicket_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(2, hard_); } 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.GeneratedMessageV3.computeStringSize(1, securityTicket_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, hard_); } 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.ModelClonePb.DeadlineInfo)) { return super.equals(obj); } com.google.apphosting.base.protos.ModelClonePb.DeadlineInfo other = (com.google.apphosting.base.protos.ModelClonePb.DeadlineInfo) obj; if (hasSecurityTicket() != other.hasSecurityTicket()) return false; if (hasSecurityTicket()) { if (!getSecurityTicket() .equals(other.getSecurityTicket())) return false; } if (hasHard() != other.hasHard()) return false; if (hasHard()) { if (getHard() != other.getHard()) 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 (hasSecurityTicket()) { hash = (37 * hash) + SECURITY_TICKET_FIELD_NUMBER; hash = (53 * hash) + getSecurityTicket().hashCode(); } if (hasHard()) { hash = (37 * hash) + HARD_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getHard()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.base.protos.ModelClonePb.DeadlineInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.base.protos.ModelClonePb.DeadlineInfo 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.ModelClonePb.DeadlineInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.base.protos.ModelClonePb.DeadlineInfo 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.ModelClonePb.DeadlineInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.base.protos.ModelClonePb.DeadlineInfo 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.ModelClonePb.DeadlineInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.base.protos.ModelClonePb.DeadlineInfo 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.ModelClonePb.DeadlineInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.base.protos.ModelClonePb.DeadlineInfo 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.ModelClonePb.DeadlineInfo 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.ModelClonePb.DeadlineInfo 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.ModelClonePb.DeadlineInfo 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 apphosting.DeadlineInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting.DeadlineInfo) com.google.apphosting.base.protos.ModelClonePb.DeadlineInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.base.protos.ModelClonePb.internal_static_apphosting_DeadlineInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.base.protos.ModelClonePb.internal_static_apphosting_DeadlineInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.base.protos.ModelClonePb.DeadlineInfo.class, com.google.apphosting.base.protos.ModelClonePb.DeadlineInfo.Builder.class); } // Construct using com.google.apphosting.base.protos.ModelClonePb.DeadlineInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; securityTicket_ = ""; hard_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.base.protos.ModelClonePb.internal_static_apphosting_DeadlineInfo_descriptor; } @java.lang.Override public com.google.apphosting.base.protos.ModelClonePb.DeadlineInfo getDefaultInstanceForType() { return com.google.apphosting.base.protos.ModelClonePb.DeadlineInfo.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.base.protos.ModelClonePb.DeadlineInfo build() { com.google.apphosting.base.protos.ModelClonePb.DeadlineInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.base.protos.ModelClonePb.DeadlineInfo buildPartial() { com.google.apphosting.base.protos.ModelClonePb.DeadlineInfo result = new com.google.apphosting.base.protos.ModelClonePb.DeadlineInfo(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.apphosting.base.protos.ModelClonePb.DeadlineInfo result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.securityTicket_ = securityTicket_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.hard_ = hard_; to_bitField0_ |= 0x00000002; } 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.ModelClonePb.DeadlineInfo) { return mergeFrom((com.google.apphosting.base.protos.ModelClonePb.DeadlineInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.base.protos.ModelClonePb.DeadlineInfo other) { if (other == com.google.apphosting.base.protos.ModelClonePb.DeadlineInfo.getDefaultInstance()) return this; if (other.hasSecurityTicket()) { securityTicket_ = other.securityTicket_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasHard()) { setHard(other.getHard()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (!hasSecurityTicket()) { return false; } if (!hasHard()) { 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 10: { securityTicket_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { hard_ = input.readBool(); bitField0_ |= 0x00000002; break; } // case 16 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.lang.Object securityTicket_ = ""; /** * required string security_ticket = 1; * @return Whether the securityTicket field is set. */ public boolean hasSecurityTicket() { return ((bitField0_ & 0x00000001) != 0); } /** * required string security_ticket = 1; * @return The securityTicket. */ public java.lang.String getSecurityTicket() { java.lang.Object ref = securityTicket_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { securityTicket_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string security_ticket = 1; * @return The bytes for securityTicket. */ public com.google.protobuf.ByteString getSecurityTicketBytes() { java.lang.Object ref = securityTicket_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); securityTicket_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string security_ticket = 1; * @param value The securityTicket to set. * @return This builder for chaining. */ public Builder setSecurityTicket( java.lang.String value) { if (value == null) { throw new NullPointerException(); } securityTicket_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * required string security_ticket = 1; * @return This builder for chaining. */ public Builder clearSecurityTicket() { securityTicket_ = getDefaultInstance().getSecurityTicket(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * required string security_ticket = 1; * @param value The bytes for securityTicket to set. * @return This builder for chaining. */ public Builder setSecurityTicketBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } securityTicket_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private boolean hard_ ; /** *
       * There are two deadlines: soft and hard.
       * Users should have a chance to clean up after the soft deadline,
       * but their code should be forcibly stopped at the hard deadline.
       * 
* * required bool hard = 2; * @return Whether the hard field is set. */ @java.lang.Override public boolean hasHard() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * There are two deadlines: soft and hard.
       * Users should have a chance to clean up after the soft deadline,
       * but their code should be forcibly stopped at the hard deadline.
       * 
* * required bool hard = 2; * @return The hard. */ @java.lang.Override public boolean getHard() { return hard_; } /** *
       * There are two deadlines: soft and hard.
       * Users should have a chance to clean up after the soft deadline,
       * but their code should be forcibly stopped at the hard deadline.
       * 
* * required bool hard = 2; * @param value The hard to set. * @return This builder for chaining. */ public Builder setHard(boolean value) { hard_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * There are two deadlines: soft and hard.
       * Users should have a chance to clean up after the soft deadline,
       * but their code should be forcibly stopped at the hard deadline.
       * 
* * required bool hard = 2; * @return This builder for chaining. */ public Builder clearHard() { bitField0_ = (bitField0_ & ~0x00000002); hard_ = false; 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:apphosting.DeadlineInfo) } // @@protoc_insertion_point(class_scope:apphosting.DeadlineInfo) private static final com.google.apphosting.base.protos.ModelClonePb.DeadlineInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.base.protos.ModelClonePb.DeadlineInfo(); } public static com.google.apphosting.base.protos.ModelClonePb.DeadlineInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeadlineInfo 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.ModelClonePb.DeadlineInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PerformanceDataRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:apphosting.PerformanceDataRequest) com.google.protobuf.MessageOrBuilder { /** * optional .java.apphosting.PerformanceData.Type type = 1 [default = PERIODIC_SAMPLE]; * @return Whether the type field is set. */ boolean hasType(); /** * optional .java.apphosting.PerformanceData.Type type = 1 [default = PERIODIC_SAMPLE]; * @return The type. */ com.google.apphosting.base.protos.ClonePb.PerformanceData.Type getType(); } /** * Protobuf type {@code apphosting.PerformanceDataRequest} */ public static final class PerformanceDataRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:apphosting.PerformanceDataRequest) PerformanceDataRequestOrBuilder { private static final long serialVersionUID = 0L; // Use PerformanceDataRequest.newBuilder() to construct. private PerformanceDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PerformanceDataRequest() { type_ = 2; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PerformanceDataRequest(); } @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.ModelClonePb.internal_static_apphosting_PerformanceDataRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.base.protos.ModelClonePb.internal_static_apphosting_PerformanceDataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.base.protos.ModelClonePb.PerformanceDataRequest.class, com.google.apphosting.base.protos.ModelClonePb.PerformanceDataRequest.Builder.class); } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private int type_ = 2; /** * optional .java.apphosting.PerformanceData.Type type = 1 [default = PERIODIC_SAMPLE]; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .java.apphosting.PerformanceData.Type type = 1 [default = PERIODIC_SAMPLE]; * @return The type. */ @java.lang.Override public com.google.apphosting.base.protos.ClonePb.PerformanceData.Type getType() { com.google.apphosting.base.protos.ClonePb.PerformanceData.Type result = com.google.apphosting.base.protos.ClonePb.PerformanceData.Type.forNumber(type_); return result == null ? com.google.apphosting.base.protos.ClonePb.PerformanceData.Type.PERIODIC_SAMPLE : 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 (((bitField0_ & 0x00000001) != 0)) { output.writeEnum(1, type_); } 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_); } 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.ModelClonePb.PerformanceDataRequest)) { return super.equals(obj); } com.google.apphosting.base.protos.ModelClonePb.PerformanceDataRequest other = (com.google.apphosting.base.protos.ModelClonePb.PerformanceDataRequest) obj; if (hasType() != other.hasType()) return false; if (hasType()) { if (type_ != other.type_) 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_; } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.apphosting.base.protos.ModelClonePb.PerformanceDataRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.base.protos.ModelClonePb.PerformanceDataRequest 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.ModelClonePb.PerformanceDataRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.base.protos.ModelClonePb.PerformanceDataRequest 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.ModelClonePb.PerformanceDataRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.apphosting.base.protos.ModelClonePb.PerformanceDataRequest 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.ModelClonePb.PerformanceDataRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.apphosting.base.protos.ModelClonePb.PerformanceDataRequest 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.ModelClonePb.PerformanceDataRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.apphosting.base.protos.ModelClonePb.PerformanceDataRequest 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.ModelClonePb.PerformanceDataRequest 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.ModelClonePb.PerformanceDataRequest 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.ModelClonePb.PerformanceDataRequest 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 apphosting.PerformanceDataRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:apphosting.PerformanceDataRequest) com.google.apphosting.base.protos.ModelClonePb.PerformanceDataRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.apphosting.base.protos.ModelClonePb.internal_static_apphosting_PerformanceDataRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.apphosting.base.protos.ModelClonePb.internal_static_apphosting_PerformanceDataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.apphosting.base.protos.ModelClonePb.PerformanceDataRequest.class, com.google.apphosting.base.protos.ModelClonePb.PerformanceDataRequest.Builder.class); } // Construct using com.google.apphosting.base.protos.ModelClonePb.PerformanceDataRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; type_ = 2; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.apphosting.base.protos.ModelClonePb.internal_static_apphosting_PerformanceDataRequest_descriptor; } @java.lang.Override public com.google.apphosting.base.protos.ModelClonePb.PerformanceDataRequest getDefaultInstanceForType() { return com.google.apphosting.base.protos.ModelClonePb.PerformanceDataRequest.getDefaultInstance(); } @java.lang.Override public com.google.apphosting.base.protos.ModelClonePb.PerformanceDataRequest build() { com.google.apphosting.base.protos.ModelClonePb.PerformanceDataRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.apphosting.base.protos.ModelClonePb.PerformanceDataRequest buildPartial() { com.google.apphosting.base.protos.ModelClonePb.PerformanceDataRequest result = new com.google.apphosting.base.protos.ModelClonePb.PerformanceDataRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.apphosting.base.protos.ModelClonePb.PerformanceDataRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.type_ = type_; to_bitField0_ |= 0x00000001; } 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.ModelClonePb.PerformanceDataRequest) { return mergeFrom((com.google.apphosting.base.protos.ModelClonePb.PerformanceDataRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.apphosting.base.protos.ModelClonePb.PerformanceDataRequest other) { if (other == com.google.apphosting.base.protos.ModelClonePb.PerformanceDataRequest.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } 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 8: { int tmpRaw = input.readEnum(); com.google.apphosting.base.protos.ClonePb.PerformanceData.Type tmpValue = com.google.apphosting.base.protos.ClonePb.PerformanceData.Type.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(1, tmpRaw); } else { type_ = tmpRaw; bitField0_ |= 0x00000001; } break; } // case 8 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_ = 2; /** * optional .java.apphosting.PerformanceData.Type type = 1 [default = PERIODIC_SAMPLE]; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .java.apphosting.PerformanceData.Type type = 1 [default = PERIODIC_SAMPLE]; * @return The type. */ @java.lang.Override public com.google.apphosting.base.protos.ClonePb.PerformanceData.Type getType() { com.google.apphosting.base.protos.ClonePb.PerformanceData.Type result = com.google.apphosting.base.protos.ClonePb.PerformanceData.Type.forNumber(type_); return result == null ? com.google.apphosting.base.protos.ClonePb.PerformanceData.Type.PERIODIC_SAMPLE : result; } /** * optional .java.apphosting.PerformanceData.Type type = 1 [default = PERIODIC_SAMPLE]; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(com.google.apphosting.base.protos.ClonePb.PerformanceData.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; } /** * optional .java.apphosting.PerformanceData.Type type = 1 [default = PERIODIC_SAMPLE]; * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 2; 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:apphosting.PerformanceDataRequest) } // @@protoc_insertion_point(class_scope:apphosting.PerformanceDataRequest) private static final com.google.apphosting.base.protos.ModelClonePb.PerformanceDataRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.apphosting.base.protos.ModelClonePb.PerformanceDataRequest(); } public static com.google.apphosting.base.protos.ModelClonePb.PerformanceDataRequest getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PerformanceDataRequest 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.ModelClonePb.PerformanceDataRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_DeadlineInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_DeadlineInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_apphosting_PerformanceDataRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_apphosting_PerformanceDataRequest_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\026clone-controller.proto\022\napphosting\032\013cl" + "one.proto\032\023empty-message.proto\"5\n\014Deadli" + "neInfo\022\027\n\017security_ticket\030\001 \002(\t\022\014\n\004hard\030" + "\002 \002(\010\"^\n\026PerformanceDataRequest\022D\n\004type\030" + "\001 \001(\0162%.java.apphosting.PerformanceData." + "Type:\017PERIODIC_SAMPLE2\317\002\n\017CloneControlle" + "r\022F\n\016WaitForSandbox\022\030.apphosting.EmptyMe" + "ssage\032\030.apphosting.EmptyMessage\"\000\022P\n\022App" + "lyCloneSettings\022\036.java.apphosting.CloneS" + "ettings\032\030.apphosting.EmptyMessage\"\000\022D\n\014S" + "endDeadline\022\030.apphosting.DeadlineInfo\032\030." + "apphosting.EmptyMessage\"\000\022\\\n\022GetPerforma" + "nceData\022\".apphosting.PerformanceDataRequ" + "est\032 .java.apphosting.PerformanceData\"\000B" + "1\n!com.google.apphosting.base.protosB\014Mo" + "delClonePb" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.apphosting.base.protos.ClonePb.getDescriptor(), com.google.apphosting.base.protos.EmptyMessageOuterClass.getDescriptor(), }); internal_static_apphosting_DeadlineInfo_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_apphosting_DeadlineInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_DeadlineInfo_descriptor, new java.lang.String[] { "SecurityTicket", "Hard", }); internal_static_apphosting_PerformanceDataRequest_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_apphosting_PerformanceDataRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_apphosting_PerformanceDataRequest_descriptor, new java.lang.String[] { "Type", }); com.google.apphosting.base.protos.ClonePb.getDescriptor(); com.google.apphosting.base.protos.EmptyMessageOuterClass.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy