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

yandex.cloud.api.loadtesting.agent.v1.TestOuterClass Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yandex/cloud/loadtesting/agent/v1/test.proto

package yandex.cloud.api.loadtesting.agent.v1;

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

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * 
   * Ammo type for generators: phantom.ammo_type,
   * ammo.type in pandora.config_content.pool
   * 
* * Protobuf enum {@code yandex.cloud.loadtesting.agent.v1.AmmoType} */ public enum AmmoType implements com.google.protobuf.ProtocolMessageEnum { /** * AMMO_TYPE_UNSPECIFIED = 0; */ AMMO_TYPE_UNSPECIFIED(0), /** * HTTP_JSON = 1; */ HTTP_JSON(1), /** * RAW = 2; */ RAW(2), /** * URI = 3; */ URI(3), /** * URIPOST = 4; */ URIPOST(4), /** * PHANTOM = 5; */ PHANTOM(5), /** * ACCESS = 6; */ ACCESS(6), UNRECOGNIZED(-1), ; /** * AMMO_TYPE_UNSPECIFIED = 0; */ public static final int AMMO_TYPE_UNSPECIFIED_VALUE = 0; /** * HTTP_JSON = 1; */ public static final int HTTP_JSON_VALUE = 1; /** * RAW = 2; */ public static final int RAW_VALUE = 2; /** * URI = 3; */ public static final int URI_VALUE = 3; /** * URIPOST = 4; */ public static final int URIPOST_VALUE = 4; /** * PHANTOM = 5; */ public static final int PHANTOM_VALUE = 5; /** * ACCESS = 6; */ public static final int ACCESS_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 AmmoType 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 AmmoType forNumber(int value) { switch (value) { case 0: return AMMO_TYPE_UNSPECIFIED; case 1: return HTTP_JSON; case 2: return RAW; case 3: return URI; case 4: return URIPOST; case 5: return PHANTOM; case 6: return ACCESS; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< AmmoType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public AmmoType findValueByNumber(int number) { return AmmoType.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.loadtesting.agent.v1.TestOuterClass.getDescriptor().getEnumTypes().get(0); } private static final AmmoType[] VALUES = values(); public static AmmoType 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 AmmoType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.loadtesting.agent.v1.AmmoType) } /** *
   * Load type: phantom.load_profile.load_type,
   * 
* * Protobuf enum {@code yandex.cloud.loadtesting.agent.v1.LoadType} */ public enum LoadType implements com.google.protobuf.ProtocolMessageEnum { /** * LOAD_TYPE_UNSPECIFIED = 0; */ LOAD_TYPE_UNSPECIFIED(0), /** * RPS = 1; */ RPS(1), /** * INSTANCES = 2; */ INSTANCES(2), /** * STPD_FILE = 3; */ STPD_FILE(3), UNRECOGNIZED(-1), ; /** * LOAD_TYPE_UNSPECIFIED = 0; */ public static final int LOAD_TYPE_UNSPECIFIED_VALUE = 0; /** * RPS = 1; */ public static final int RPS_VALUE = 1; /** * INSTANCES = 2; */ public static final int INSTANCES_VALUE = 2; /** * STPD_FILE = 3; */ public static final int STPD_FILE_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 LoadType 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 LoadType forNumber(int value) { switch (value) { case 0: return LOAD_TYPE_UNSPECIFIED; case 1: return RPS; case 2: return INSTANCES; case 3: return STPD_FILE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< LoadType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public LoadType findValueByNumber(int number) { return LoadType.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.loadtesting.agent.v1.TestOuterClass.getDescriptor().getEnumTypes().get(1); } private static final LoadType[] VALUES = values(); public static LoadType 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 LoadType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.loadtesting.agent.v1.LoadType) } /** *
   * Schedule type: phantom.load_profile.schedule,
   * rps.schedule.type in pandora.config_content.pool
   * 
* * Protobuf enum {@code yandex.cloud.loadtesting.agent.v1.ScheduleType} */ public enum ScheduleType implements com.google.protobuf.ProtocolMessageEnum { /** * SCHEDULE_TYPE_UNSPECIFIED = 0; */ SCHEDULE_TYPE_UNSPECIFIED(0), /** * ONCE = 1; */ ONCE(1), /** * CONST = 2; */ CONST(2), /** * LINE = 3; */ LINE(3), /** * STEP = 4; */ STEP(4), UNRECOGNIZED(-1), ; /** * SCHEDULE_TYPE_UNSPECIFIED = 0; */ public static final int SCHEDULE_TYPE_UNSPECIFIED_VALUE = 0; /** * ONCE = 1; */ public static final int ONCE_VALUE = 1; /** * CONST = 2; */ public static final int CONST_VALUE = 2; /** * LINE = 3; */ public static final int LINE_VALUE = 3; /** * STEP = 4; */ public static final int STEP_VALUE = 4; 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 ScheduleType 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 ScheduleType forNumber(int value) { switch (value) { case 0: return SCHEDULE_TYPE_UNSPECIFIED; case 1: return ONCE; case 2: return CONST; case 3: return LINE; case 4: return STEP; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< ScheduleType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ScheduleType findValueByNumber(int number) { return ScheduleType.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.loadtesting.agent.v1.TestOuterClass.getDescriptor().getEnumTypes().get(2); } private static final ScheduleType[] VALUES = values(); public static ScheduleType 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 ScheduleType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.loadtesting.agent.v1.ScheduleType) } public interface TestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.loadtesting.agent.v1.Test) com.google.protobuf.MessageOrBuilder { /** * string id = 1; * @return The id. */ java.lang.String getId(); /** * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** * string folder_id = 2; * @return The folderId. */ java.lang.String getFolderId(); /** * string folder_id = 2; * @return The bytes for folderId. */ com.google.protobuf.ByteString getFolderIdBytes(); /** * string name = 3; * @return The name. */ java.lang.String getName(); /** * string name = 3; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * string description = 4; * @return The description. */ java.lang.String getDescription(); /** * string description = 4; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** * map<string, string> labels = 5; */ int getLabelsCount(); /** * map<string, string> labels = 5; */ boolean containsLabels( java.lang.String key); /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); /** * map<string, string> labels = 5; */ java.util.Map getLabelsMap(); /** * map<string, string> labels = 5; */ java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue); /** * map<string, string> labels = 5; */ java.lang.String getLabelsOrThrow( java.lang.String key); /** * .google.protobuf.Timestamp created_at = 6; * @return Whether the createdAt field is set. */ boolean hasCreatedAt(); /** * .google.protobuf.Timestamp created_at = 6; * @return The createdAt. */ com.google.protobuf.Timestamp getCreatedAt(); /** * .google.protobuf.Timestamp created_at = 6; */ com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); /** * .google.protobuf.Timestamp started_at = 7; * @return Whether the startedAt field is set. */ boolean hasStartedAt(); /** * .google.protobuf.Timestamp started_at = 7; * @return The startedAt. */ com.google.protobuf.Timestamp getStartedAt(); /** * .google.protobuf.Timestamp started_at = 7; */ com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder(); /** * .google.protobuf.Timestamp finished_at = 8; * @return Whether the finishedAt field is set. */ boolean hasFinishedAt(); /** * .google.protobuf.Timestamp finished_at = 8; * @return The finishedAt. */ com.google.protobuf.Timestamp getFinishedAt(); /** * .google.protobuf.Timestamp finished_at = 8; */ com.google.protobuf.TimestampOrBuilder getFinishedAtOrBuilder(); /** * .google.protobuf.Timestamp updated_at = 9; * @return Whether the updatedAt field is set. */ boolean hasUpdatedAt(); /** * .google.protobuf.Timestamp updated_at = 9; * @return The updatedAt. */ com.google.protobuf.Timestamp getUpdatedAt(); /** * .google.protobuf.Timestamp updated_at = 9; */ com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder(); /** * .yandex.cloud.loadtesting.agent.v1.Test.Generator generator = 10; * @return The enum numeric value on the wire for generator. */ int getGeneratorValue(); /** * .yandex.cloud.loadtesting.agent.v1.Test.Generator generator = 10; * @return The generator. */ yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test.Generator getGenerator(); /** *
     * AgentInstance ID where Test is running.
     * 
* * string agent_instance_id = 11; * @return The agentInstanceId. */ java.lang.String getAgentInstanceId(); /** *
     * AgentInstance ID where Test is running.
     * 
* * string agent_instance_id = 11; * @return The bytes for agentInstanceId. */ com.google.protobuf.ByteString getAgentInstanceIdBytes(); /** *
     * Target VM.
     * 
* * string target_address = 12; * @return The targetAddress. */ java.lang.String getTargetAddress(); /** *
     * Target VM.
     * 
* * string target_address = 12; * @return The bytes for targetAddress. */ com.google.protobuf.ByteString getTargetAddressBytes(); /** * int64 target_port = 13; * @return The targetPort. */ long getTargetPort(); /** *
     * Version of object under test.
     * 
* * string target_version = 14; * @return The targetVersion. */ java.lang.String getTargetVersion(); /** *
     * Version of object under test.
     * 
* * string target_version = 14; * @return The bytes for targetVersion. */ com.google.protobuf.ByteString getTargetVersionBytes(); /** *
     * Test details
     * 
* * string config = 15; * @return The config. */ java.lang.String getConfig(); /** *
     * Test details
     * 
* * string config = 15; * @return The bytes for config. */ com.google.protobuf.ByteString getConfigBytes(); /** * string ammo_urls = 16; * @return Whether the ammoUrls field is set. */ boolean hasAmmoUrls(); /** * string ammo_urls = 16; * @return The ammoUrls. */ java.lang.String getAmmoUrls(); /** * string ammo_urls = 16; * @return The bytes for ammoUrls. */ com.google.protobuf.ByteString getAmmoUrlsBytes(); /** * string ammo_id = 17; * @return Whether the ammoId field is set. */ boolean hasAmmoId(); /** * string ammo_id = 17; * @return The ammoId. */ java.lang.String getAmmoId(); /** * string ammo_id = 17; * @return The bytes for ammoId. */ com.google.protobuf.ByteString getAmmoIdBytes(); /** * repeated string cases = 18; * @return A list containing the cases. */ java.util.List getCasesList(); /** * repeated string cases = 18; * @return The count of cases. */ int getCasesCount(); /** * repeated string cases = 18; * @param index The index of the element to return. * @return The cases at the given index. */ java.lang.String getCases(int index); /** * repeated string cases = 18; * @param index The index of the value to return. * @return The bytes of the cases at the given index. */ com.google.protobuf.ByteString getCasesBytes(int index); /** * .yandex.cloud.loadtesting.agent.v1.Test.Status status = 19; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** * .yandex.cloud.loadtesting.agent.v1.Test.Status status = 19; * @return The status. */ yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test.Status getStatus(); /** * repeated string errors = 20; * @return A list containing the errors. */ java.util.List getErrorsList(); /** * repeated string errors = 20; * @return The count of errors. */ int getErrorsCount(); /** * repeated string errors = 20; * @param index The index of the element to return. * @return The errors at the given index. */ java.lang.String getErrors(int index); /** * repeated string errors = 20; * @param index The index of the value to return. * @return The bytes of the errors at the given index. */ com.google.protobuf.ByteString getErrorsBytes(int index); /** * bool favorite = 21; * @return The favorite. */ boolean getFavorite(); public yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test.AmmoCase getAmmoCase(); } /** * Protobuf type {@code yandex.cloud.loadtesting.agent.v1.Test} */ public static final class Test extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.loadtesting.agent.v1.Test) TestOrBuilder { private static final long serialVersionUID = 0L; // Use Test.newBuilder() to construct. private Test(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Test() { id_ = ""; folderId_ = ""; name_ = ""; description_ = ""; generator_ = 0; agentInstanceId_ = ""; targetAddress_ = ""; targetVersion_ = ""; config_ = ""; cases_ = com.google.protobuf.LazyStringArrayList.EMPTY; status_ = 0; errors_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Test(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Test( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; 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 10: { java.lang.String s = input.readStringRequireUtf8(); id_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); folderId_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 42: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); labels_.getMutableMap().put( labels__.getKey(), labels__.getValue()); break; } case 50: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (createdAt_ != null) { subBuilder = createdAt_.toBuilder(); } createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(createdAt_); createdAt_ = subBuilder.buildPartial(); } break; } case 58: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (startedAt_ != null) { subBuilder = startedAt_.toBuilder(); } startedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(startedAt_); startedAt_ = subBuilder.buildPartial(); } break; } case 66: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (finishedAt_ != null) { subBuilder = finishedAt_.toBuilder(); } finishedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(finishedAt_); finishedAt_ = subBuilder.buildPartial(); } break; } case 74: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (updatedAt_ != null) { subBuilder = updatedAt_.toBuilder(); } updatedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(updatedAt_); updatedAt_ = subBuilder.buildPartial(); } break; } case 80: { int rawValue = input.readEnum(); generator_ = rawValue; break; } case 90: { java.lang.String s = input.readStringRequireUtf8(); agentInstanceId_ = s; break; } case 98: { java.lang.String s = input.readStringRequireUtf8(); targetAddress_ = s; break; } case 104: { targetPort_ = input.readInt64(); break; } case 114: { java.lang.String s = input.readStringRequireUtf8(); targetVersion_ = s; break; } case 122: { java.lang.String s = input.readStringRequireUtf8(); config_ = s; break; } case 130: { java.lang.String s = input.readStringRequireUtf8(); ammoCase_ = 16; ammo_ = s; break; } case 138: { java.lang.String s = input.readStringRequireUtf8(); ammoCase_ = 17; ammo_ = s; break; } case 146: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) != 0)) { cases_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } cases_.add(s); break; } case 152: { int rawValue = input.readEnum(); status_ = rawValue; break; } case 162: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000004) != 0)) { errors_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000004; } errors_.add(s); break; } case 168: { favorite_ = input.readBool(); 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 { if (((mutable_bitField0_ & 0x00000002) != 0)) { cases_ = cases_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000004) != 0)) { errors_ = errors_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.internal_static_yandex_cloud_loadtesting_agent_v1_Test_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.internal_static_yandex_cloud_loadtesting_agent_v1_Test_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test.class, yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test.Builder.class); } /** * Protobuf enum {@code yandex.cloud.loadtesting.agent.v1.Test.Status} */ public enum Status implements com.google.protobuf.ProtocolMessageEnum { /** * STATUS_UNSPECIFIED = 0; */ STATUS_UNSPECIFIED(0), /** * CREATED = 1; */ CREATED(1), /** * INITIATED = 2; */ INITIATED(2), /** * PREPARING = 3; */ PREPARING(3), /** * RUNNING = 4; */ RUNNING(4), /** * FINISHING = 5; */ FINISHING(5), /** * DONE = 6; */ DONE(6), /** * POST_PROCESSING = 7; */ POST_PROCESSING(7), /** * FAILED = 8; */ FAILED(8), /** * STOPPING = 9; */ STOPPING(9), /** * STOPPED = 10; */ STOPPED(10), /** * AUTOSTOPPED = 11; */ AUTOSTOPPED(11), /** * WAITING = 12; */ WAITING(12), /** * DELETING = 13; */ DELETING(13), UNRECOGNIZED(-1), ; /** * STATUS_UNSPECIFIED = 0; */ public static final int STATUS_UNSPECIFIED_VALUE = 0; /** * CREATED = 1; */ public static final int CREATED_VALUE = 1; /** * INITIATED = 2; */ public static final int INITIATED_VALUE = 2; /** * PREPARING = 3; */ public static final int PREPARING_VALUE = 3; /** * RUNNING = 4; */ public static final int RUNNING_VALUE = 4; /** * FINISHING = 5; */ public static final int FINISHING_VALUE = 5; /** * DONE = 6; */ public static final int DONE_VALUE = 6; /** * POST_PROCESSING = 7; */ public static final int POST_PROCESSING_VALUE = 7; /** * FAILED = 8; */ public static final int FAILED_VALUE = 8; /** * STOPPING = 9; */ public static final int STOPPING_VALUE = 9; /** * STOPPED = 10; */ public static final int STOPPED_VALUE = 10; /** * AUTOSTOPPED = 11; */ public static final int AUTOSTOPPED_VALUE = 11; /** * WAITING = 12; */ public static final int WAITING_VALUE = 12; /** * DELETING = 13; */ public static final int DELETING_VALUE = 13; 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 Status 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 Status forNumber(int value) { switch (value) { case 0: return STATUS_UNSPECIFIED; case 1: return CREATED; case 2: return INITIATED; case 3: return PREPARING; case 4: return RUNNING; case 5: return FINISHING; case 6: return DONE; case 7: return POST_PROCESSING; case 8: return FAILED; case 9: return STOPPING; case 10: return STOPPED; case 11: return AUTOSTOPPED; case 12: return WAITING; case 13: return DELETING; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Status> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Status findValueByNumber(int number) { return Status.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.loadtesting.agent.v1.TestOuterClass.Test.getDescriptor().getEnumTypes().get(0); } private static final Status[] VALUES = values(); public static Status 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 Status(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.loadtesting.agent.v1.Test.Status) } /** * Protobuf enum {@code yandex.cloud.loadtesting.agent.v1.Test.Generator} */ public enum Generator implements com.google.protobuf.ProtocolMessageEnum { /** * GENERATOR_UNSPECIFIED = 0; */ GENERATOR_UNSPECIFIED(0), /** * PANDORA = 1; */ PANDORA(1), /** * PHANTOM = 2; */ PHANTOM(2), /** * JMETER = 3; */ JMETER(3), UNRECOGNIZED(-1), ; /** * GENERATOR_UNSPECIFIED = 0; */ public static final int GENERATOR_UNSPECIFIED_VALUE = 0; /** * PANDORA = 1; */ public static final int PANDORA_VALUE = 1; /** * PHANTOM = 2; */ public static final int PHANTOM_VALUE = 2; /** * JMETER = 3; */ public static final int JMETER_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 Generator 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 Generator forNumber(int value) { switch (value) { case 0: return GENERATOR_UNSPECIFIED; case 1: return PANDORA; case 2: return PHANTOM; case 3: return JMETER; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Generator> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Generator findValueByNumber(int number) { return Generator.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.loadtesting.agent.v1.TestOuterClass.Test.getDescriptor().getEnumTypes().get(1); } private static final Generator[] VALUES = values(); public static Generator 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 Generator(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.loadtesting.agent.v1.Test.Generator) } private int ammoCase_ = 0; private java.lang.Object ammo_; public enum AmmoCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { AMMO_URLS(16), AMMO_ID(17), AMMO_NOT_SET(0); private final int value; private AmmoCase(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 AmmoCase valueOf(int value) { return forNumber(value); } public static AmmoCase forNumber(int value) { switch (value) { case 16: return AMMO_URLS; case 17: return AMMO_ID; case 0: return AMMO_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public AmmoCase getAmmoCase() { return AmmoCase.forNumber( ammoCase_); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** * string id = 1; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; } } /** * string id = 1; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FOLDER_ID_FIELD_NUMBER = 2; private volatile java.lang.Object folderId_; /** * string folder_id = 2; * @return The folderId. */ @java.lang.Override public java.lang.String getFolderId() { java.lang.Object ref = folderId_; 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(); folderId_ = s; return s; } } /** * string folder_id = 2; * @return The bytes for folderId. */ @java.lang.Override public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = folderId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); folderId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 3; private volatile java.lang.Object name_; /** * string name = 3; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** * string name = 3; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 4; private volatile java.lang.Object description_; /** * string description = 4; * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; 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(); description_ = s; return s; } } /** * string description = 4; * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LABELS_FIELD_NUMBER = 5; private static final class LabelsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.internal_static_yandex_cloud_loadtesting_agent_v1_Test_LabelsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** * map<string, string> labels = 5; */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** * map<string, string> labels = 5; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** * map<string, string> labels = 5; */ @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> labels = 5; */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int CREATED_AT_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp createdAt_; /** * .google.protobuf.Timestamp created_at = 6; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** * .google.protobuf.Timestamp created_at = 6; * @return The createdAt. */ @java.lang.Override public com.google.protobuf.Timestamp getCreatedAt() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } /** * .google.protobuf.Timestamp created_at = 6; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return getCreatedAt(); } public static final int STARTED_AT_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp startedAt_; /** * .google.protobuf.Timestamp started_at = 7; * @return Whether the startedAt field is set. */ @java.lang.Override public boolean hasStartedAt() { return startedAt_ != null; } /** * .google.protobuf.Timestamp started_at = 7; * @return The startedAt. */ @java.lang.Override public com.google.protobuf.Timestamp getStartedAt() { return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; } /** * .google.protobuf.Timestamp started_at = 7; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { return getStartedAt(); } public static final int FINISHED_AT_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp finishedAt_; /** * .google.protobuf.Timestamp finished_at = 8; * @return Whether the finishedAt field is set. */ @java.lang.Override public boolean hasFinishedAt() { return finishedAt_ != null; } /** * .google.protobuf.Timestamp finished_at = 8; * @return The finishedAt. */ @java.lang.Override public com.google.protobuf.Timestamp getFinishedAt() { return finishedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : finishedAt_; } /** * .google.protobuf.Timestamp finished_at = 8; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getFinishedAtOrBuilder() { return getFinishedAt(); } public static final int UPDATED_AT_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp updatedAt_; /** * .google.protobuf.Timestamp updated_at = 9; * @return Whether the updatedAt field is set. */ @java.lang.Override public boolean hasUpdatedAt() { return updatedAt_ != null; } /** * .google.protobuf.Timestamp updated_at = 9; * @return The updatedAt. */ @java.lang.Override public com.google.protobuf.Timestamp getUpdatedAt() { return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; } /** * .google.protobuf.Timestamp updated_at = 9; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { return getUpdatedAt(); } public static final int GENERATOR_FIELD_NUMBER = 10; private int generator_; /** * .yandex.cloud.loadtesting.agent.v1.Test.Generator generator = 10; * @return The enum numeric value on the wire for generator. */ @java.lang.Override public int getGeneratorValue() { return generator_; } /** * .yandex.cloud.loadtesting.agent.v1.Test.Generator generator = 10; * @return The generator. */ @java.lang.Override public yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test.Generator getGenerator() { @SuppressWarnings("deprecation") yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test.Generator result = yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test.Generator.valueOf(generator_); return result == null ? yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test.Generator.UNRECOGNIZED : result; } public static final int AGENT_INSTANCE_ID_FIELD_NUMBER = 11; private volatile java.lang.Object agentInstanceId_; /** *
     * AgentInstance ID where Test is running.
     * 
* * string agent_instance_id = 11; * @return The agentInstanceId. */ @java.lang.Override public java.lang.String getAgentInstanceId() { java.lang.Object ref = agentInstanceId_; 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(); agentInstanceId_ = s; return s; } } /** *
     * AgentInstance ID where Test is running.
     * 
* * string agent_instance_id = 11; * @return The bytes for agentInstanceId. */ @java.lang.Override public com.google.protobuf.ByteString getAgentInstanceIdBytes() { java.lang.Object ref = agentInstanceId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); agentInstanceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TARGET_ADDRESS_FIELD_NUMBER = 12; private volatile java.lang.Object targetAddress_; /** *
     * Target VM.
     * 
* * string target_address = 12; * @return The targetAddress. */ @java.lang.Override public java.lang.String getTargetAddress() { java.lang.Object ref = targetAddress_; 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(); targetAddress_ = s; return s; } } /** *
     * Target VM.
     * 
* * string target_address = 12; * @return The bytes for targetAddress. */ @java.lang.Override public com.google.protobuf.ByteString getTargetAddressBytes() { java.lang.Object ref = targetAddress_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); targetAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TARGET_PORT_FIELD_NUMBER = 13; private long targetPort_; /** * int64 target_port = 13; * @return The targetPort. */ @java.lang.Override public long getTargetPort() { return targetPort_; } public static final int TARGET_VERSION_FIELD_NUMBER = 14; private volatile java.lang.Object targetVersion_; /** *
     * Version of object under test.
     * 
* * string target_version = 14; * @return The targetVersion. */ @java.lang.Override public java.lang.String getTargetVersion() { java.lang.Object ref = targetVersion_; 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(); targetVersion_ = s; return s; } } /** *
     * Version of object under test.
     * 
* * string target_version = 14; * @return The bytes for targetVersion. */ @java.lang.Override public com.google.protobuf.ByteString getTargetVersionBytes() { java.lang.Object ref = targetVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); targetVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONFIG_FIELD_NUMBER = 15; private volatile java.lang.Object config_; /** *
     * Test details
     * 
* * string config = 15; * @return The config. */ @java.lang.Override public java.lang.String getConfig() { java.lang.Object ref = config_; 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(); config_ = s; return s; } } /** *
     * Test details
     * 
* * string config = 15; * @return The bytes for config. */ @java.lang.Override public com.google.protobuf.ByteString getConfigBytes() { java.lang.Object ref = config_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); config_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int AMMO_URLS_FIELD_NUMBER = 16; /** * string ammo_urls = 16; * @return Whether the ammoUrls field is set. */ public boolean hasAmmoUrls() { return ammoCase_ == 16; } /** * string ammo_urls = 16; * @return The ammoUrls. */ public java.lang.String getAmmoUrls() { java.lang.Object ref = ""; if (ammoCase_ == 16) { ref = ammo_; } 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 (ammoCase_ == 16) { ammo_ = s; } return s; } } /** * string ammo_urls = 16; * @return The bytes for ammoUrls. */ public com.google.protobuf.ByteString getAmmoUrlsBytes() { java.lang.Object ref = ""; if (ammoCase_ == 16) { ref = ammo_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (ammoCase_ == 16) { ammo_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int AMMO_ID_FIELD_NUMBER = 17; /** * string ammo_id = 17; * @return Whether the ammoId field is set. */ public boolean hasAmmoId() { return ammoCase_ == 17; } /** * string ammo_id = 17; * @return The ammoId. */ public java.lang.String getAmmoId() { java.lang.Object ref = ""; if (ammoCase_ == 17) { ref = ammo_; } 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 (ammoCase_ == 17) { ammo_ = s; } return s; } } /** * string ammo_id = 17; * @return The bytes for ammoId. */ public com.google.protobuf.ByteString getAmmoIdBytes() { java.lang.Object ref = ""; if (ammoCase_ == 17) { ref = ammo_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (ammoCase_ == 17) { ammo_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CASES_FIELD_NUMBER = 18; private com.google.protobuf.LazyStringList cases_; /** * repeated string cases = 18; * @return A list containing the cases. */ public com.google.protobuf.ProtocolStringList getCasesList() { return cases_; } /** * repeated string cases = 18; * @return The count of cases. */ public int getCasesCount() { return cases_.size(); } /** * repeated string cases = 18; * @param index The index of the element to return. * @return The cases at the given index. */ public java.lang.String getCases(int index) { return cases_.get(index); } /** * repeated string cases = 18; * @param index The index of the value to return. * @return The bytes of the cases at the given index. */ public com.google.protobuf.ByteString getCasesBytes(int index) { return cases_.getByteString(index); } public static final int STATUS_FIELD_NUMBER = 19; private int status_; /** * .yandex.cloud.loadtesting.agent.v1.Test.Status status = 19; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .yandex.cloud.loadtesting.agent.v1.Test.Status status = 19; * @return The status. */ @java.lang.Override public yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test.Status getStatus() { @SuppressWarnings("deprecation") yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test.Status result = yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test.Status.valueOf(status_); return result == null ? yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test.Status.UNRECOGNIZED : result; } public static final int ERRORS_FIELD_NUMBER = 20; private com.google.protobuf.LazyStringList errors_; /** * repeated string errors = 20; * @return A list containing the errors. */ public com.google.protobuf.ProtocolStringList getErrorsList() { return errors_; } /** * repeated string errors = 20; * @return The count of errors. */ public int getErrorsCount() { return errors_.size(); } /** * repeated string errors = 20; * @param index The index of the element to return. * @return The errors at the given index. */ public java.lang.String getErrors(int index) { return errors_.get(index); } /** * repeated string errors = 20; * @param index The index of the value to return. * @return The bytes of the errors at the given index. */ public com.google.protobuf.ByteString getErrorsBytes(int index) { return errors_.getByteString(index); } public static final int FAVORITE_FIELD_NUMBER = 21; private boolean favorite_; /** * bool favorite = 21; * @return The favorite. */ @java.lang.Override public boolean getFavorite() { return favorite_; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, folderId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); if (createdAt_ != null) { output.writeMessage(6, getCreatedAt()); } if (startedAt_ != null) { output.writeMessage(7, getStartedAt()); } if (finishedAt_ != null) { output.writeMessage(8, getFinishedAt()); } if (updatedAt_ != null) { output.writeMessage(9, getUpdatedAt()); } if (generator_ != yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test.Generator.GENERATOR_UNSPECIFIED.getNumber()) { output.writeEnum(10, generator_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agentInstanceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, agentInstanceId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, targetAddress_); } if (targetPort_ != 0L) { output.writeInt64(13, targetPort_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, targetVersion_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(config_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, config_); } if (ammoCase_ == 16) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, ammo_); } if (ammoCase_ == 17) { com.google.protobuf.GeneratedMessageV3.writeString(output, 17, ammo_); } for (int i = 0; i < cases_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 18, cases_.getRaw(i)); } if (status_ != yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test.Status.STATUS_UNSPECIFIED.getNumber()) { output.writeEnum(19, status_); } for (int i = 0; i < errors_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 20, errors_.getRaw(i)); } if (favorite_ != false) { output.writeBool(21, favorite_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, folderId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); } for (java.util.Map.Entry entry : internalGetLabels().getMap().entrySet()) { com.google.protobuf.MapEntry labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, labels__); } if (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getCreatedAt()); } if (startedAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getStartedAt()); } if (finishedAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getFinishedAt()); } if (updatedAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getUpdatedAt()); } if (generator_ != yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test.Generator.GENERATOR_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(10, generator_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agentInstanceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, agentInstanceId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetAddress_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, targetAddress_); } if (targetPort_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(13, targetPort_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, targetVersion_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(config_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, config_); } if (ammoCase_ == 16) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, ammo_); } if (ammoCase_ == 17) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, ammo_); } { int dataSize = 0; for (int i = 0; i < cases_.size(); i++) { dataSize += computeStringSizeNoTag(cases_.getRaw(i)); } size += dataSize; size += 2 * getCasesList().size(); } if (status_ != yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test.Status.STATUS_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(19, status_); } { int dataSize = 0; for (int i = 0; i < errors_.size(); i++) { dataSize += computeStringSizeNoTag(errors_.getRaw(i)); } size += dataSize; size += 2 * getErrorsList().size(); } if (favorite_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(21, favorite_); } 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.loadtesting.agent.v1.TestOuterClass.Test)) { return super.equals(obj); } yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test other = (yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test) obj; if (!getId() .equals(other.getId())) return false; if (!getFolderId() .equals(other.getFolderId())) return false; if (!getName() .equals(other.getName())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!internalGetLabels().equals( other.internalGetLabels())) return false; if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) return false; } if (hasStartedAt() != other.hasStartedAt()) return false; if (hasStartedAt()) { if (!getStartedAt() .equals(other.getStartedAt())) return false; } if (hasFinishedAt() != other.hasFinishedAt()) return false; if (hasFinishedAt()) { if (!getFinishedAt() .equals(other.getFinishedAt())) return false; } if (hasUpdatedAt() != other.hasUpdatedAt()) return false; if (hasUpdatedAt()) { if (!getUpdatedAt() .equals(other.getUpdatedAt())) return false; } if (generator_ != other.generator_) return false; if (!getAgentInstanceId() .equals(other.getAgentInstanceId())) return false; if (!getTargetAddress() .equals(other.getTargetAddress())) return false; if (getTargetPort() != other.getTargetPort()) return false; if (!getTargetVersion() .equals(other.getTargetVersion())) return false; if (!getConfig() .equals(other.getConfig())) return false; if (!getCasesList() .equals(other.getCasesList())) return false; if (status_ != other.status_) return false; if (!getErrorsList() .equals(other.getErrorsList())) return false; if (getFavorite() != other.getFavorite()) return false; if (!getAmmoCase().equals(other.getAmmoCase())) return false; switch (ammoCase_) { case 16: if (!getAmmoUrls() .equals(other.getAmmoUrls())) return false; break; case 17: if (!getAmmoId() .equals(other.getAmmoId())) 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) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER; hash = (53 * hash) + getFolderId().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().hashCode(); } if (hasStartedAt()) { hash = (37 * hash) + STARTED_AT_FIELD_NUMBER; hash = (53 * hash) + getStartedAt().hashCode(); } if (hasFinishedAt()) { hash = (37 * hash) + FINISHED_AT_FIELD_NUMBER; hash = (53 * hash) + getFinishedAt().hashCode(); } if (hasUpdatedAt()) { hash = (37 * hash) + UPDATED_AT_FIELD_NUMBER; hash = (53 * hash) + getUpdatedAt().hashCode(); } hash = (37 * hash) + GENERATOR_FIELD_NUMBER; hash = (53 * hash) + generator_; hash = (37 * hash) + AGENT_INSTANCE_ID_FIELD_NUMBER; hash = (53 * hash) + getAgentInstanceId().hashCode(); hash = (37 * hash) + TARGET_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getTargetAddress().hashCode(); hash = (37 * hash) + TARGET_PORT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTargetPort()); hash = (37 * hash) + TARGET_VERSION_FIELD_NUMBER; hash = (53 * hash) + getTargetVersion().hashCode(); hash = (37 * hash) + CONFIG_FIELD_NUMBER; hash = (53 * hash) + getConfig().hashCode(); if (getCasesCount() > 0) { hash = (37 * hash) + CASES_FIELD_NUMBER; hash = (53 * hash) + getCasesList().hashCode(); } hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; if (getErrorsCount() > 0) { hash = (37 * hash) + ERRORS_FIELD_NUMBER; hash = (53 * hash) + getErrorsList().hashCode(); } hash = (37 * hash) + FAVORITE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getFavorite()); switch (ammoCase_) { case 16: hash = (37 * hash) + AMMO_URLS_FIELD_NUMBER; hash = (53 * hash) + getAmmoUrls().hashCode(); break; case 17: hash = (37 * hash) + AMMO_ID_FIELD_NUMBER; hash = (53 * hash) + getAmmoId().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test 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.loadtesting.agent.v1.TestOuterClass.Test parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test 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.loadtesting.agent.v1.TestOuterClass.Test parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test 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.loadtesting.agent.v1.TestOuterClass.Test parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test 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.loadtesting.agent.v1.TestOuterClass.Test parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test 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.loadtesting.agent.v1.TestOuterClass.Test 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 yandex.cloud.loadtesting.agent.v1.Test} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.loadtesting.agent.v1.Test) yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.TestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.internal_static_yandex_cloud_loadtesting_agent_v1_Test_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 5: return internalGetMutableLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.internal_static_yandex_cloud_loadtesting_agent_v1_Test_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test.class, yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test.Builder.class); } // Construct using yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test.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(); id_ = ""; folderId_ = ""; name_ = ""; description_ = ""; internalGetMutableLabels().clear(); if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } if (startedAtBuilder_ == null) { startedAt_ = null; } else { startedAt_ = null; startedAtBuilder_ = null; } if (finishedAtBuilder_ == null) { finishedAt_ = null; } else { finishedAt_ = null; finishedAtBuilder_ = null; } if (updatedAtBuilder_ == null) { updatedAt_ = null; } else { updatedAt_ = null; updatedAtBuilder_ = null; } generator_ = 0; agentInstanceId_ = ""; targetAddress_ = ""; targetPort_ = 0L; targetVersion_ = ""; config_ = ""; cases_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); status_ = 0; errors_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); favorite_ = false; ammoCase_ = 0; ammo_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.internal_static_yandex_cloud_loadtesting_agent_v1_Test_descriptor; } @java.lang.Override public yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test getDefaultInstanceForType() { return yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test build() { yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test buildPartial() { yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test result = new yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.folderId_ = folderId_; result.name_ = name_; result.description_ = description_; result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.build(); } if (startedAtBuilder_ == null) { result.startedAt_ = startedAt_; } else { result.startedAt_ = startedAtBuilder_.build(); } if (finishedAtBuilder_ == null) { result.finishedAt_ = finishedAt_; } else { result.finishedAt_ = finishedAtBuilder_.build(); } if (updatedAtBuilder_ == null) { result.updatedAt_ = updatedAt_; } else { result.updatedAt_ = updatedAtBuilder_.build(); } result.generator_ = generator_; result.agentInstanceId_ = agentInstanceId_; result.targetAddress_ = targetAddress_; result.targetPort_ = targetPort_; result.targetVersion_ = targetVersion_; result.config_ = config_; if (ammoCase_ == 16) { result.ammo_ = ammo_; } if (ammoCase_ == 17) { result.ammo_ = ammo_; } if (((bitField0_ & 0x00000002) != 0)) { cases_ = cases_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.cases_ = cases_; result.status_ = status_; if (((bitField0_ & 0x00000004) != 0)) { errors_ = errors_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); } result.errors_ = errors_; result.favorite_ = favorite_; result.ammoCase_ = ammoCase_; 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.loadtesting.agent.v1.TestOuterClass.Test) { return mergeFrom((yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test other) { if (other == yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getFolderId().isEmpty()) { folderId_ = other.folderId_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } internalGetMutableLabels().mergeFrom( other.internalGetLabels()); if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } if (other.hasStartedAt()) { mergeStartedAt(other.getStartedAt()); } if (other.hasFinishedAt()) { mergeFinishedAt(other.getFinishedAt()); } if (other.hasUpdatedAt()) { mergeUpdatedAt(other.getUpdatedAt()); } if (other.generator_ != 0) { setGeneratorValue(other.getGeneratorValue()); } if (!other.getAgentInstanceId().isEmpty()) { agentInstanceId_ = other.agentInstanceId_; onChanged(); } if (!other.getTargetAddress().isEmpty()) { targetAddress_ = other.targetAddress_; onChanged(); } if (other.getTargetPort() != 0L) { setTargetPort(other.getTargetPort()); } if (!other.getTargetVersion().isEmpty()) { targetVersion_ = other.targetVersion_; onChanged(); } if (!other.getConfig().isEmpty()) { config_ = other.config_; onChanged(); } if (!other.cases_.isEmpty()) { if (cases_.isEmpty()) { cases_ = other.cases_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureCasesIsMutable(); cases_.addAll(other.cases_); } onChanged(); } if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } if (!other.errors_.isEmpty()) { if (errors_.isEmpty()) { errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureErrorsIsMutable(); errors_.addAll(other.errors_); } onChanged(); } if (other.getFavorite() != false) { setFavorite(other.getFavorite()); } switch (other.getAmmoCase()) { case AMMO_URLS: { ammoCase_ = 16; ammo_ = other.ammo_; onChanged(); break; } case AMMO_ID: { ammoCase_ = 17; ammo_ = other.ammo_; onChanged(); break; } case AMMO_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.loadtesting.agent.v1.TestOuterClass.Test parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int ammoCase_ = 0; private java.lang.Object ammo_; public AmmoCase getAmmoCase() { return AmmoCase.forNumber( ammoCase_); } public Builder clearAmmo() { ammoCase_ = 0; ammo_ = null; onChanged(); return this; } private int bitField0_; private java.lang.Object id_ = ""; /** * string id = 1; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** * string id = 1; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** * string id = 1; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private java.lang.Object folderId_ = ""; /** * string folder_id = 2; * @return The folderId. */ public java.lang.String getFolderId() { java.lang.Object ref = folderId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); folderId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string folder_id = 2; * @return The bytes for folderId. */ public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = folderId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); folderId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string folder_id = 2; * @param value The folderId to set. * @return This builder for chaining. */ public Builder setFolderId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } folderId_ = value; onChanged(); return this; } /** * string folder_id = 2; * @return This builder for chaining. */ public Builder clearFolderId() { folderId_ = getDefaultInstance().getFolderId(); onChanged(); return this; } /** * string folder_id = 2; * @param value The bytes for folderId to set. * @return This builder for chaining. */ public Builder setFolderIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); folderId_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** * string name = 3; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 3; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string name = 3; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * string name = 3; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 3; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** * string description = 4; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** * string description = 4; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string description = 4; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** * string description = 4; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** * string description = 4; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } private com.google.protobuf.MapField internalGetMutableLabels() { onChanged();; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** * map<string, string> labels = 5; */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** * map<string, string> labels = 5; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** * map<string, string> labels = 5; */ @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> labels = 5; */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLabels() { internalGetMutableLabels().getMutableMap() .clear(); return this; } /** * map<string, string> labels = 5; */ public Builder removeLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** * map<string, string> labels = 5; */ public Builder putLabels( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap() .put(key, value); return this; } /** * map<string, string> labels = 5; */ public Builder putAllLabels( java.util.Map values) { internalGetMutableLabels().getMutableMap() .putAll(values); return this; } private com.google.protobuf.Timestamp createdAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; /** * .google.protobuf.Timestamp created_at = 6; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** * .google.protobuf.Timestamp created_at = 6; * @return The createdAt. */ public com.google.protobuf.Timestamp getCreatedAt() { if (createdAtBuilder_ == null) { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } else { return createdAtBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp created_at = 6; */ public Builder setCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createdAt_ = value; onChanged(); } else { createdAtBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp created_at = 6; */ public Builder setCreatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (createdAtBuilder_ == null) { createdAt_ = builderForValue.build(); onChanged(); } else { createdAtBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp created_at = 6; */ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (createdAt_ != null) { createdAt_ = com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); } else { createdAt_ = value; } onChanged(); } else { createdAtBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp created_at = 6; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp created_at = 6; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp created_at = 6; */ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { if (createdAtBuilder_ != null) { return createdAtBuilder_.getMessageOrBuilder(); } else { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } } /** * .google.protobuf.Timestamp created_at = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreatedAtFieldBuilder() { if (createdAtBuilder_ == null) { createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreatedAt(), getParentForChildren(), isClean()); createdAt_ = null; } return createdAtBuilder_; } private com.google.protobuf.Timestamp startedAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startedAtBuilder_; /** * .google.protobuf.Timestamp started_at = 7; * @return Whether the startedAt field is set. */ public boolean hasStartedAt() { return startedAtBuilder_ != null || startedAt_ != null; } /** * .google.protobuf.Timestamp started_at = 7; * @return The startedAt. */ public com.google.protobuf.Timestamp getStartedAt() { if (startedAtBuilder_ == null) { return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; } else { return startedAtBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp started_at = 7; */ public Builder setStartedAt(com.google.protobuf.Timestamp value) { if (startedAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } startedAt_ = value; onChanged(); } else { startedAtBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp started_at = 7; */ public Builder setStartedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (startedAtBuilder_ == null) { startedAt_ = builderForValue.build(); onChanged(); } else { startedAtBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp started_at = 7; */ public Builder mergeStartedAt(com.google.protobuf.Timestamp value) { if (startedAtBuilder_ == null) { if (startedAt_ != null) { startedAt_ = com.google.protobuf.Timestamp.newBuilder(startedAt_).mergeFrom(value).buildPartial(); } else { startedAt_ = value; } onChanged(); } else { startedAtBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp started_at = 7; */ public Builder clearStartedAt() { if (startedAtBuilder_ == null) { startedAt_ = null; onChanged(); } else { startedAt_ = null; startedAtBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp started_at = 7; */ public com.google.protobuf.Timestamp.Builder getStartedAtBuilder() { onChanged(); return getStartedAtFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp started_at = 7; */ public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { if (startedAtBuilder_ != null) { return startedAtBuilder_.getMessageOrBuilder(); } else { return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; } } /** * .google.protobuf.Timestamp started_at = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartedAtFieldBuilder() { if (startedAtBuilder_ == null) { startedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getStartedAt(), getParentForChildren(), isClean()); startedAt_ = null; } return startedAtBuilder_; } private com.google.protobuf.Timestamp finishedAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> finishedAtBuilder_; /** * .google.protobuf.Timestamp finished_at = 8; * @return Whether the finishedAt field is set. */ public boolean hasFinishedAt() { return finishedAtBuilder_ != null || finishedAt_ != null; } /** * .google.protobuf.Timestamp finished_at = 8; * @return The finishedAt. */ public com.google.protobuf.Timestamp getFinishedAt() { if (finishedAtBuilder_ == null) { return finishedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : finishedAt_; } else { return finishedAtBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp finished_at = 8; */ public Builder setFinishedAt(com.google.protobuf.Timestamp value) { if (finishedAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } finishedAt_ = value; onChanged(); } else { finishedAtBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp finished_at = 8; */ public Builder setFinishedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (finishedAtBuilder_ == null) { finishedAt_ = builderForValue.build(); onChanged(); } else { finishedAtBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp finished_at = 8; */ public Builder mergeFinishedAt(com.google.protobuf.Timestamp value) { if (finishedAtBuilder_ == null) { if (finishedAt_ != null) { finishedAt_ = com.google.protobuf.Timestamp.newBuilder(finishedAt_).mergeFrom(value).buildPartial(); } else { finishedAt_ = value; } onChanged(); } else { finishedAtBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp finished_at = 8; */ public Builder clearFinishedAt() { if (finishedAtBuilder_ == null) { finishedAt_ = null; onChanged(); } else { finishedAt_ = null; finishedAtBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp finished_at = 8; */ public com.google.protobuf.Timestamp.Builder getFinishedAtBuilder() { onChanged(); return getFinishedAtFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp finished_at = 8; */ public com.google.protobuf.TimestampOrBuilder getFinishedAtOrBuilder() { if (finishedAtBuilder_ != null) { return finishedAtBuilder_.getMessageOrBuilder(); } else { return finishedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : finishedAt_; } } /** * .google.protobuf.Timestamp finished_at = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getFinishedAtFieldBuilder() { if (finishedAtBuilder_ == null) { finishedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getFinishedAt(), getParentForChildren(), isClean()); finishedAt_ = null; } return finishedAtBuilder_; } private com.google.protobuf.Timestamp updatedAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updatedAtBuilder_; /** * .google.protobuf.Timestamp updated_at = 9; * @return Whether the updatedAt field is set. */ public boolean hasUpdatedAt() { return updatedAtBuilder_ != null || updatedAt_ != null; } /** * .google.protobuf.Timestamp updated_at = 9; * @return The updatedAt. */ public com.google.protobuf.Timestamp getUpdatedAt() { if (updatedAtBuilder_ == null) { return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; } else { return updatedAtBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp updated_at = 9; */ public Builder setUpdatedAt(com.google.protobuf.Timestamp value) { if (updatedAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } updatedAt_ = value; onChanged(); } else { updatedAtBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp updated_at = 9; */ public Builder setUpdatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (updatedAtBuilder_ == null) { updatedAt_ = builderForValue.build(); onChanged(); } else { updatedAtBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp updated_at = 9; */ public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) { if (updatedAtBuilder_ == null) { if (updatedAt_ != null) { updatedAt_ = com.google.protobuf.Timestamp.newBuilder(updatedAt_).mergeFrom(value).buildPartial(); } else { updatedAt_ = value; } onChanged(); } else { updatedAtBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp updated_at = 9; */ public Builder clearUpdatedAt() { if (updatedAtBuilder_ == null) { updatedAt_ = null; onChanged(); } else { updatedAt_ = null; updatedAtBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp updated_at = 9; */ public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() { onChanged(); return getUpdatedAtFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp updated_at = 9; */ public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { if (updatedAtBuilder_ != null) { return updatedAtBuilder_.getMessageOrBuilder(); } else { return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; } } /** * .google.protobuf.Timestamp updated_at = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdatedAtFieldBuilder() { if (updatedAtBuilder_ == null) { updatedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getUpdatedAt(), getParentForChildren(), isClean()); updatedAt_ = null; } return updatedAtBuilder_; } private int generator_ = 0; /** * .yandex.cloud.loadtesting.agent.v1.Test.Generator generator = 10; * @return The enum numeric value on the wire for generator. */ @java.lang.Override public int getGeneratorValue() { return generator_; } /** * .yandex.cloud.loadtesting.agent.v1.Test.Generator generator = 10; * @param value The enum numeric value on the wire for generator to set. * @return This builder for chaining. */ public Builder setGeneratorValue(int value) { generator_ = value; onChanged(); return this; } /** * .yandex.cloud.loadtesting.agent.v1.Test.Generator generator = 10; * @return The generator. */ @java.lang.Override public yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test.Generator getGenerator() { @SuppressWarnings("deprecation") yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test.Generator result = yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test.Generator.valueOf(generator_); return result == null ? yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test.Generator.UNRECOGNIZED : result; } /** * .yandex.cloud.loadtesting.agent.v1.Test.Generator generator = 10; * @param value The generator to set. * @return This builder for chaining. */ public Builder setGenerator(yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test.Generator value) { if (value == null) { throw new NullPointerException(); } generator_ = value.getNumber(); onChanged(); return this; } /** * .yandex.cloud.loadtesting.agent.v1.Test.Generator generator = 10; * @return This builder for chaining. */ public Builder clearGenerator() { generator_ = 0; onChanged(); return this; } private java.lang.Object agentInstanceId_ = ""; /** *
       * AgentInstance ID where Test is running.
       * 
* * string agent_instance_id = 11; * @return The agentInstanceId. */ public java.lang.String getAgentInstanceId() { java.lang.Object ref = agentInstanceId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); agentInstanceId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * AgentInstance ID where Test is running.
       * 
* * string agent_instance_id = 11; * @return The bytes for agentInstanceId. */ public com.google.protobuf.ByteString getAgentInstanceIdBytes() { java.lang.Object ref = agentInstanceId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); agentInstanceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * AgentInstance ID where Test is running.
       * 
* * string agent_instance_id = 11; * @param value The agentInstanceId to set. * @return This builder for chaining. */ public Builder setAgentInstanceId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } agentInstanceId_ = value; onChanged(); return this; } /** *
       * AgentInstance ID where Test is running.
       * 
* * string agent_instance_id = 11; * @return This builder for chaining. */ public Builder clearAgentInstanceId() { agentInstanceId_ = getDefaultInstance().getAgentInstanceId(); onChanged(); return this; } /** *
       * AgentInstance ID where Test is running.
       * 
* * string agent_instance_id = 11; * @param value The bytes for agentInstanceId to set. * @return This builder for chaining. */ public Builder setAgentInstanceIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); agentInstanceId_ = value; onChanged(); return this; } private java.lang.Object targetAddress_ = ""; /** *
       * Target VM.
       * 
* * string target_address = 12; * @return The targetAddress. */ public java.lang.String getTargetAddress() { java.lang.Object ref = targetAddress_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetAddress_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Target VM.
       * 
* * string target_address = 12; * @return The bytes for targetAddress. */ public com.google.protobuf.ByteString getTargetAddressBytes() { java.lang.Object ref = targetAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); targetAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Target VM.
       * 
* * string target_address = 12; * @param value The targetAddress to set. * @return This builder for chaining. */ public Builder setTargetAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } targetAddress_ = value; onChanged(); return this; } /** *
       * Target VM.
       * 
* * string target_address = 12; * @return This builder for chaining. */ public Builder clearTargetAddress() { targetAddress_ = getDefaultInstance().getTargetAddress(); onChanged(); return this; } /** *
       * Target VM.
       * 
* * string target_address = 12; * @param value The bytes for targetAddress to set. * @return This builder for chaining. */ public Builder setTargetAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); targetAddress_ = value; onChanged(); return this; } private long targetPort_ ; /** * int64 target_port = 13; * @return The targetPort. */ @java.lang.Override public long getTargetPort() { return targetPort_; } /** * int64 target_port = 13; * @param value The targetPort to set. * @return This builder for chaining. */ public Builder setTargetPort(long value) { targetPort_ = value; onChanged(); return this; } /** * int64 target_port = 13; * @return This builder for chaining. */ public Builder clearTargetPort() { targetPort_ = 0L; onChanged(); return this; } private java.lang.Object targetVersion_ = ""; /** *
       * Version of object under test.
       * 
* * string target_version = 14; * @return The targetVersion. */ public java.lang.String getTargetVersion() { java.lang.Object ref = targetVersion_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetVersion_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Version of object under test.
       * 
* * string target_version = 14; * @return The bytes for targetVersion. */ public com.google.protobuf.ByteString getTargetVersionBytes() { java.lang.Object ref = targetVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); targetVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Version of object under test.
       * 
* * string target_version = 14; * @param value The targetVersion to set. * @return This builder for chaining. */ public Builder setTargetVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } targetVersion_ = value; onChanged(); return this; } /** *
       * Version of object under test.
       * 
* * string target_version = 14; * @return This builder for chaining. */ public Builder clearTargetVersion() { targetVersion_ = getDefaultInstance().getTargetVersion(); onChanged(); return this; } /** *
       * Version of object under test.
       * 
* * string target_version = 14; * @param value The bytes for targetVersion to set. * @return This builder for chaining. */ public Builder setTargetVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); targetVersion_ = value; onChanged(); return this; } private java.lang.Object config_ = ""; /** *
       * Test details
       * 
* * string config = 15; * @return The config. */ public java.lang.String getConfig() { java.lang.Object ref = config_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); config_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Test details
       * 
* * string config = 15; * @return The bytes for config. */ public com.google.protobuf.ByteString getConfigBytes() { java.lang.Object ref = config_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); config_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Test details
       * 
* * string config = 15; * @param value The config to set. * @return This builder for chaining. */ public Builder setConfig( java.lang.String value) { if (value == null) { throw new NullPointerException(); } config_ = value; onChanged(); return this; } /** *
       * Test details
       * 
* * string config = 15; * @return This builder for chaining. */ public Builder clearConfig() { config_ = getDefaultInstance().getConfig(); onChanged(); return this; } /** *
       * Test details
       * 
* * string config = 15; * @param value The bytes for config to set. * @return This builder for chaining. */ public Builder setConfigBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); config_ = value; onChanged(); return this; } /** * string ammo_urls = 16; * @return Whether the ammoUrls field is set. */ @java.lang.Override public boolean hasAmmoUrls() { return ammoCase_ == 16; } /** * string ammo_urls = 16; * @return The ammoUrls. */ @java.lang.Override public java.lang.String getAmmoUrls() { java.lang.Object ref = ""; if (ammoCase_ == 16) { ref = ammo_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (ammoCase_ == 16) { ammo_ = s; } return s; } else { return (java.lang.String) ref; } } /** * string ammo_urls = 16; * @return The bytes for ammoUrls. */ @java.lang.Override public com.google.protobuf.ByteString getAmmoUrlsBytes() { java.lang.Object ref = ""; if (ammoCase_ == 16) { ref = ammo_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (ammoCase_ == 16) { ammo_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string ammo_urls = 16; * @param value The ammoUrls to set. * @return This builder for chaining. */ public Builder setAmmoUrls( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ammoCase_ = 16; ammo_ = value; onChanged(); return this; } /** * string ammo_urls = 16; * @return This builder for chaining. */ public Builder clearAmmoUrls() { if (ammoCase_ == 16) { ammoCase_ = 0; ammo_ = null; onChanged(); } return this; } /** * string ammo_urls = 16; * @param value The bytes for ammoUrls to set. * @return This builder for chaining. */ public Builder setAmmoUrlsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ammoCase_ = 16; ammo_ = value; onChanged(); return this; } /** * string ammo_id = 17; * @return Whether the ammoId field is set. */ @java.lang.Override public boolean hasAmmoId() { return ammoCase_ == 17; } /** * string ammo_id = 17; * @return The ammoId. */ @java.lang.Override public java.lang.String getAmmoId() { java.lang.Object ref = ""; if (ammoCase_ == 17) { ref = ammo_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (ammoCase_ == 17) { ammo_ = s; } return s; } else { return (java.lang.String) ref; } } /** * string ammo_id = 17; * @return The bytes for ammoId. */ @java.lang.Override public com.google.protobuf.ByteString getAmmoIdBytes() { java.lang.Object ref = ""; if (ammoCase_ == 17) { ref = ammo_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (ammoCase_ == 17) { ammo_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string ammo_id = 17; * @param value The ammoId to set. * @return This builder for chaining. */ public Builder setAmmoId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ammoCase_ = 17; ammo_ = value; onChanged(); return this; } /** * string ammo_id = 17; * @return This builder for chaining. */ public Builder clearAmmoId() { if (ammoCase_ == 17) { ammoCase_ = 0; ammo_ = null; onChanged(); } return this; } /** * string ammo_id = 17; * @param value The bytes for ammoId to set. * @return This builder for chaining. */ public Builder setAmmoIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ammoCase_ = 17; ammo_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList cases_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureCasesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { cases_ = new com.google.protobuf.LazyStringArrayList(cases_); bitField0_ |= 0x00000002; } } /** * repeated string cases = 18; * @return A list containing the cases. */ public com.google.protobuf.ProtocolStringList getCasesList() { return cases_.getUnmodifiableView(); } /** * repeated string cases = 18; * @return The count of cases. */ public int getCasesCount() { return cases_.size(); } /** * repeated string cases = 18; * @param index The index of the element to return. * @return The cases at the given index. */ public java.lang.String getCases(int index) { return cases_.get(index); } /** * repeated string cases = 18; * @param index The index of the value to return. * @return The bytes of the cases at the given index. */ public com.google.protobuf.ByteString getCasesBytes(int index) { return cases_.getByteString(index); } /** * repeated string cases = 18; * @param index The index to set the value at. * @param value The cases to set. * @return This builder for chaining. */ public Builder setCases( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCasesIsMutable(); cases_.set(index, value); onChanged(); return this; } /** * repeated string cases = 18; * @param value The cases to add. * @return This builder for chaining. */ public Builder addCases( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCasesIsMutable(); cases_.add(value); onChanged(); return this; } /** * repeated string cases = 18; * @param values The cases to add. * @return This builder for chaining. */ public Builder addAllCases( java.lang.Iterable values) { ensureCasesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, cases_); onChanged(); return this; } /** * repeated string cases = 18; * @return This builder for chaining. */ public Builder clearCases() { cases_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * repeated string cases = 18; * @param value The bytes of the cases to add. * @return This builder for chaining. */ public Builder addCasesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureCasesIsMutable(); cases_.add(value); onChanged(); return this; } private int status_ = 0; /** * .yandex.cloud.loadtesting.agent.v1.Test.Status status = 19; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .yandex.cloud.loadtesting.agent.v1.Test.Status status = 19; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { status_ = value; onChanged(); return this; } /** * .yandex.cloud.loadtesting.agent.v1.Test.Status status = 19; * @return The status. */ @java.lang.Override public yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test.Status getStatus() { @SuppressWarnings("deprecation") yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test.Status result = yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test.Status.valueOf(status_); return result == null ? yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test.Status.UNRECOGNIZED : result; } /** * .yandex.cloud.loadtesting.agent.v1.Test.Status status = 19; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test.Status value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** * .yandex.cloud.loadtesting.agent.v1.Test.Status status = 19; * @return This builder for chaining. */ public Builder clearStatus() { status_ = 0; onChanged(); return this; } private com.google.protobuf.LazyStringList errors_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureErrorsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { errors_ = new com.google.protobuf.LazyStringArrayList(errors_); bitField0_ |= 0x00000004; } } /** * repeated string errors = 20; * @return A list containing the errors. */ public com.google.protobuf.ProtocolStringList getErrorsList() { return errors_.getUnmodifiableView(); } /** * repeated string errors = 20; * @return The count of errors. */ public int getErrorsCount() { return errors_.size(); } /** * repeated string errors = 20; * @param index The index of the element to return. * @return The errors at the given index. */ public java.lang.String getErrors(int index) { return errors_.get(index); } /** * repeated string errors = 20; * @param index The index of the value to return. * @return The bytes of the errors at the given index. */ public com.google.protobuf.ByteString getErrorsBytes(int index) { return errors_.getByteString(index); } /** * repeated string errors = 20; * @param index The index to set the value at. * @param value The errors to set. * @return This builder for chaining. */ public Builder setErrors( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureErrorsIsMutable(); errors_.set(index, value); onChanged(); return this; } /** * repeated string errors = 20; * @param value The errors to add. * @return This builder for chaining. */ public Builder addErrors( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureErrorsIsMutable(); errors_.add(value); onChanged(); return this; } /** * repeated string errors = 20; * @param values The errors to add. * @return This builder for chaining. */ public Builder addAllErrors( java.lang.Iterable values) { ensureErrorsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, errors_); onChanged(); return this; } /** * repeated string errors = 20; * @return This builder for chaining. */ public Builder clearErrors() { errors_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * repeated string errors = 20; * @param value The bytes of the errors to add. * @return This builder for chaining. */ public Builder addErrorsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureErrorsIsMutable(); errors_.add(value); onChanged(); return this; } private boolean favorite_ ; /** * bool favorite = 21; * @return The favorite. */ @java.lang.Override public boolean getFavorite() { return favorite_; } /** * bool favorite = 21; * @param value The favorite to set. * @return This builder for chaining. */ public Builder setFavorite(boolean value) { favorite_ = value; onChanged(); return this; } /** * bool favorite = 21; * @return This builder for chaining. */ public Builder clearFavorite() { favorite_ = 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:yandex.cloud.loadtesting.agent.v1.Test) } // @@protoc_insertion_point(class_scope:yandex.cloud.loadtesting.agent.v1.Test) private static final yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test(); } public static yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Test getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Test parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Test(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.loadtesting.agent.v1.TestOuterClass.Test getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LoadScheduleOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.loadtesting.agent.v1.LoadSchedule) com.google.protobuf.MessageOrBuilder { /** * .yandex.cloud.loadtesting.agent.v1.ScheduleType type = 1; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** * .yandex.cloud.loadtesting.agent.v1.ScheduleType type = 1; * @return The type. */ yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.ScheduleType getType(); /** *
     * times for pandora
     * 
* * int64 instances = 2; * @return The instances. */ long getInstances(); /** * string duration = 3; * @return The duration. */ java.lang.String getDuration(); /** * string duration = 3; * @return The bytes for duration. */ com.google.protobuf.ByteString getDurationBytes(); /** * int64 rps_from = 4; * @return The rpsFrom. */ long getRpsFrom(); /** * int64 rps_to = 5; * @return The rpsTo. */ long getRpsTo(); /** * int64 step = 6; * @return The step. */ long getStep(); /** * int64 ops = 7; * @return The ops. */ long getOps(); /** * string stpd_path = 8; * @return The stpdPath. */ java.lang.String getStpdPath(); /** * string stpd_path = 8; * @return The bytes for stpdPath. */ com.google.protobuf.ByteString getStpdPathBytes(); } /** *
   *  Load schedule string:
   * {duration: 180s, type: line, from: 1, to: 10000} for pandora,
   * step(25, 5, 5, 60) for phantom.
   * 
* * Protobuf type {@code yandex.cloud.loadtesting.agent.v1.LoadSchedule} */ public static final class LoadSchedule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.loadtesting.agent.v1.LoadSchedule) LoadScheduleOrBuilder { private static final long serialVersionUID = 0L; // Use LoadSchedule.newBuilder() to construct. private LoadSchedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LoadSchedule() { type_ = 0; duration_ = ""; stpdPath_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LoadSchedule(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LoadSchedule( 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: { int rawValue = input.readEnum(); type_ = rawValue; break; } case 16: { instances_ = input.readInt64(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); duration_ = s; break; } case 32: { rpsFrom_ = input.readInt64(); break; } case 40: { rpsTo_ = input.readInt64(); break; } case 48: { step_ = input.readInt64(); break; } case 56: { ops_ = input.readInt64(); break; } case 66: { java.lang.String s = input.readStringRequireUtf8(); stpdPath_ = s; 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.loadtesting.agent.v1.TestOuterClass.internal_static_yandex_cloud_loadtesting_agent_v1_LoadSchedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.internal_static_yandex_cloud_loadtesting_agent_v1_LoadSchedule_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule.class, yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** * .yandex.cloud.loadtesting.agent.v1.ScheduleType type = 1; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * .yandex.cloud.loadtesting.agent.v1.ScheduleType type = 1; * @return The type. */ @java.lang.Override public yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.ScheduleType getType() { @SuppressWarnings("deprecation") yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.ScheduleType result = yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.ScheduleType.valueOf(type_); return result == null ? yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.ScheduleType.UNRECOGNIZED : result; } public static final int INSTANCES_FIELD_NUMBER = 2; private long instances_; /** *
     * times for pandora
     * 
* * int64 instances = 2; * @return The instances. */ @java.lang.Override public long getInstances() { return instances_; } public static final int DURATION_FIELD_NUMBER = 3; private volatile java.lang.Object duration_; /** * string duration = 3; * @return The duration. */ @java.lang.Override public java.lang.String getDuration() { java.lang.Object ref = duration_; 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(); duration_ = s; return s; } } /** * string duration = 3; * @return The bytes for duration. */ @java.lang.Override public com.google.protobuf.ByteString getDurationBytes() { java.lang.Object ref = duration_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); duration_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RPS_FROM_FIELD_NUMBER = 4; private long rpsFrom_; /** * int64 rps_from = 4; * @return The rpsFrom. */ @java.lang.Override public long getRpsFrom() { return rpsFrom_; } public static final int RPS_TO_FIELD_NUMBER = 5; private long rpsTo_; /** * int64 rps_to = 5; * @return The rpsTo. */ @java.lang.Override public long getRpsTo() { return rpsTo_; } public static final int STEP_FIELD_NUMBER = 6; private long step_; /** * int64 step = 6; * @return The step. */ @java.lang.Override public long getStep() { return step_; } public static final int OPS_FIELD_NUMBER = 7; private long ops_; /** * int64 ops = 7; * @return The ops. */ @java.lang.Override public long getOps() { return ops_; } public static final int STPD_PATH_FIELD_NUMBER = 8; private volatile java.lang.Object stpdPath_; /** * string stpd_path = 8; * @return The stpdPath. */ @java.lang.Override public java.lang.String getStpdPath() { java.lang.Object ref = stpdPath_; 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(); stpdPath_ = s; return s; } } /** * string stpd_path = 8; * @return The bytes for stpdPath. */ @java.lang.Override public com.google.protobuf.ByteString getStpdPathBytes() { java.lang.Object ref = stpdPath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); stpdPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.ScheduleType.SCHEDULE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, type_); } if (instances_ != 0L) { output.writeInt64(2, instances_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(duration_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, duration_); } if (rpsFrom_ != 0L) { output.writeInt64(4, rpsFrom_); } if (rpsTo_ != 0L) { output.writeInt64(5, rpsTo_); } if (step_ != 0L) { output.writeInt64(6, step_); } if (ops_ != 0L) { output.writeInt64(7, ops_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stpdPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, stpdPath_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.ScheduleType.SCHEDULE_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (instances_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, instances_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(duration_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, duration_); } if (rpsFrom_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, rpsFrom_); } if (rpsTo_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, rpsTo_); } if (step_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, step_); } if (ops_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, ops_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stpdPath_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, stpdPath_); } 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.loadtesting.agent.v1.TestOuterClass.LoadSchedule)) { return super.equals(obj); } yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule other = (yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule) obj; if (type_ != other.type_) return false; if (getInstances() != other.getInstances()) return false; if (!getDuration() .equals(other.getDuration())) return false; if (getRpsFrom() != other.getRpsFrom()) return false; if (getRpsTo() != other.getRpsTo()) return false; if (getStep() != other.getStep()) return false; if (getOps() != other.getOps()) return false; if (!getStpdPath() .equals(other.getStpdPath())) return false; 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) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + INSTANCES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInstances()); hash = (37 * hash) + DURATION_FIELD_NUMBER; hash = (53 * hash) + getDuration().hashCode(); hash = (37 * hash) + RPS_FROM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRpsFrom()); hash = (37 * hash) + RPS_TO_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRpsTo()); hash = (37 * hash) + STEP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStep()); hash = (37 * hash) + OPS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOps()); hash = (37 * hash) + STPD_PATH_FIELD_NUMBER; hash = (53 * hash) + getStpdPath().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule 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.loadtesting.agent.v1.TestOuterClass.LoadSchedule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule 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.loadtesting.agent.v1.TestOuterClass.LoadSchedule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule 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.loadtesting.agent.v1.TestOuterClass.LoadSchedule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule 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.loadtesting.agent.v1.TestOuterClass.LoadSchedule parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule 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.loadtesting.agent.v1.TestOuterClass.LoadSchedule 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; } /** *
     *  Load schedule string:
     * {duration: 180s, type: line, from: 1, to: 10000} for pandora,
     * step(25, 5, 5, 60) for phantom.
     * 
* * Protobuf type {@code yandex.cloud.loadtesting.agent.v1.LoadSchedule} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.loadtesting.agent.v1.LoadSchedule) yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadScheduleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.internal_static_yandex_cloud_loadtesting_agent_v1_LoadSchedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.internal_static_yandex_cloud_loadtesting_agent_v1_LoadSchedule_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule.class, yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule.Builder.class); } // Construct using yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule.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(); type_ = 0; instances_ = 0L; duration_ = ""; rpsFrom_ = 0L; rpsTo_ = 0L; step_ = 0L; ops_ = 0L; stpdPath_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.internal_static_yandex_cloud_loadtesting_agent_v1_LoadSchedule_descriptor; } @java.lang.Override public yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule getDefaultInstanceForType() { return yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule build() { yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule buildPartial() { yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule result = new yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule(this); result.type_ = type_; result.instances_ = instances_; result.duration_ = duration_; result.rpsFrom_ = rpsFrom_; result.rpsTo_ = rpsTo_; result.step_ = step_; result.ops_ = ops_; result.stpdPath_ = stpdPath_; 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.loadtesting.agent.v1.TestOuterClass.LoadSchedule) { return mergeFrom((yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule other) { if (other == yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.getInstances() != 0L) { setInstances(other.getInstances()); } if (!other.getDuration().isEmpty()) { duration_ = other.duration_; onChanged(); } if (other.getRpsFrom() != 0L) { setRpsFrom(other.getRpsFrom()); } if (other.getRpsTo() != 0L) { setRpsTo(other.getRpsTo()); } if (other.getStep() != 0L) { setStep(other.getStep()); } if (other.getOps() != 0L) { setOps(other.getOps()); } if (!other.getStpdPath().isEmpty()) { stpdPath_ = other.stpdPath_; onChanged(); } 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.loadtesting.agent.v1.TestOuterClass.LoadSchedule parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int type_ = 0; /** * .yandex.cloud.loadtesting.agent.v1.ScheduleType type = 1; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * .yandex.cloud.loadtesting.agent.v1.ScheduleType type = 1; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /** * .yandex.cloud.loadtesting.agent.v1.ScheduleType type = 1; * @return The type. */ @java.lang.Override public yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.ScheduleType getType() { @SuppressWarnings("deprecation") yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.ScheduleType result = yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.ScheduleType.valueOf(type_); return result == null ? yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.ScheduleType.UNRECOGNIZED : result; } /** * .yandex.cloud.loadtesting.agent.v1.ScheduleType type = 1; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.ScheduleType value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /** * .yandex.cloud.loadtesting.agent.v1.ScheduleType type = 1; * @return This builder for chaining. */ public Builder clearType() { type_ = 0; onChanged(); return this; } private long instances_ ; /** *
       * times for pandora
       * 
* * int64 instances = 2; * @return The instances. */ @java.lang.Override public long getInstances() { return instances_; } /** *
       * times for pandora
       * 
* * int64 instances = 2; * @param value The instances to set. * @return This builder for chaining. */ public Builder setInstances(long value) { instances_ = value; onChanged(); return this; } /** *
       * times for pandora
       * 
* * int64 instances = 2; * @return This builder for chaining. */ public Builder clearInstances() { instances_ = 0L; onChanged(); return this; } private java.lang.Object duration_ = ""; /** * string duration = 3; * @return The duration. */ public java.lang.String getDuration() { java.lang.Object ref = duration_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); duration_ = s; return s; } else { return (java.lang.String) ref; } } /** * string duration = 3; * @return The bytes for duration. */ public com.google.protobuf.ByteString getDurationBytes() { java.lang.Object ref = duration_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); duration_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string duration = 3; * @param value The duration to set. * @return This builder for chaining. */ public Builder setDuration( java.lang.String value) { if (value == null) { throw new NullPointerException(); } duration_ = value; onChanged(); return this; } /** * string duration = 3; * @return This builder for chaining. */ public Builder clearDuration() { duration_ = getDefaultInstance().getDuration(); onChanged(); return this; } /** * string duration = 3; * @param value The bytes for duration to set. * @return This builder for chaining. */ public Builder setDurationBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); duration_ = value; onChanged(); return this; } private long rpsFrom_ ; /** * int64 rps_from = 4; * @return The rpsFrom. */ @java.lang.Override public long getRpsFrom() { return rpsFrom_; } /** * int64 rps_from = 4; * @param value The rpsFrom to set. * @return This builder for chaining. */ public Builder setRpsFrom(long value) { rpsFrom_ = value; onChanged(); return this; } /** * int64 rps_from = 4; * @return This builder for chaining. */ public Builder clearRpsFrom() { rpsFrom_ = 0L; onChanged(); return this; } private long rpsTo_ ; /** * int64 rps_to = 5; * @return The rpsTo. */ @java.lang.Override public long getRpsTo() { return rpsTo_; } /** * int64 rps_to = 5; * @param value The rpsTo to set. * @return This builder for chaining. */ public Builder setRpsTo(long value) { rpsTo_ = value; onChanged(); return this; } /** * int64 rps_to = 5; * @return This builder for chaining. */ public Builder clearRpsTo() { rpsTo_ = 0L; onChanged(); return this; } private long step_ ; /** * int64 step = 6; * @return The step. */ @java.lang.Override public long getStep() { return step_; } /** * int64 step = 6; * @param value The step to set. * @return This builder for chaining. */ public Builder setStep(long value) { step_ = value; onChanged(); return this; } /** * int64 step = 6; * @return This builder for chaining. */ public Builder clearStep() { step_ = 0L; onChanged(); return this; } private long ops_ ; /** * int64 ops = 7; * @return The ops. */ @java.lang.Override public long getOps() { return ops_; } /** * int64 ops = 7; * @param value The ops to set. * @return This builder for chaining. */ public Builder setOps(long value) { ops_ = value; onChanged(); return this; } /** * int64 ops = 7; * @return This builder for chaining. */ public Builder clearOps() { ops_ = 0L; onChanged(); return this; } private java.lang.Object stpdPath_ = ""; /** * string stpd_path = 8; * @return The stpdPath. */ public java.lang.String getStpdPath() { java.lang.Object ref = stpdPath_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stpdPath_ = s; return s; } else { return (java.lang.String) ref; } } /** * string stpd_path = 8; * @return The bytes for stpdPath. */ public com.google.protobuf.ByteString getStpdPathBytes() { java.lang.Object ref = stpdPath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); stpdPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string stpd_path = 8; * @param value The stpdPath to set. * @return This builder for chaining. */ public Builder setStpdPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } stpdPath_ = value; onChanged(); return this; } /** * string stpd_path = 8; * @return This builder for chaining. */ public Builder clearStpdPath() { stpdPath_ = getDefaultInstance().getStpdPath(); onChanged(); return this; } /** * string stpd_path = 8; * @param value The bytes for stpdPath to set. * @return This builder for chaining. */ public Builder setStpdPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); stpdPath_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.loadtesting.agent.v1.LoadSchedule) } // @@protoc_insertion_point(class_scope:yandex.cloud.loadtesting.agent.v1.LoadSchedule) private static final yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule(); } public static yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LoadSchedule parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LoadSchedule(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.loadtesting.agent.v1.TestOuterClass.LoadSchedule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ScheduleOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.loadtesting.agent.v1.Schedule) com.google.protobuf.MessageOrBuilder { /** * .yandex.cloud.loadtesting.agent.v1.LoadType load_type = 1; * @return The enum numeric value on the wire for loadType. */ int getLoadTypeValue(); /** * .yandex.cloud.loadtesting.agent.v1.LoadType load_type = 1; * @return The loadType. */ yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadType getLoadType(); /** * repeated .yandex.cloud.loadtesting.agent.v1.LoadSchedule load_schedule = 2; */ java.util.List getLoadScheduleList(); /** * repeated .yandex.cloud.loadtesting.agent.v1.LoadSchedule load_schedule = 2; */ yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule getLoadSchedule(int index); /** * repeated .yandex.cloud.loadtesting.agent.v1.LoadSchedule load_schedule = 2; */ int getLoadScheduleCount(); /** * repeated .yandex.cloud.loadtesting.agent.v1.LoadSchedule load_schedule = 2; */ java.util.List getLoadScheduleOrBuilderList(); /** * repeated .yandex.cloud.loadtesting.agent.v1.LoadSchedule load_schedule = 2; */ yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadScheduleOrBuilder getLoadScheduleOrBuilder( int index); /** * repeated string load_profile = 3; * @return A list containing the loadProfile. */ java.util.List getLoadProfileList(); /** * repeated string load_profile = 3; * @return The count of loadProfile. */ int getLoadProfileCount(); /** * repeated string load_profile = 3; * @param index The index of the element to return. * @return The loadProfile at the given index. */ java.lang.String getLoadProfile(int index); /** * repeated string load_profile = 3; * @param index The index of the value to return. * @return The bytes of the loadProfile at the given index. */ com.google.protobuf.ByteString getLoadProfileBytes(int index); } /** *
   * Load profile in general: phantom.load_profile, pool schedule for pandora
   * 
* * Protobuf type {@code yandex.cloud.loadtesting.agent.v1.Schedule} */ public static final class Schedule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.loadtesting.agent.v1.Schedule) ScheduleOrBuilder { private static final long serialVersionUID = 0L; // Use Schedule.newBuilder() to construct. private Schedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Schedule() { loadType_ = 0; loadSchedule_ = java.util.Collections.emptyList(); loadProfile_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Schedule(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Schedule( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; 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: { int rawValue = input.readEnum(); loadType_ = rawValue; break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { loadSchedule_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } loadSchedule_.add( input.readMessage(yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule.parser(), extensionRegistry)); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) != 0)) { loadProfile_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } loadProfile_.add(s); 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { loadSchedule_ = java.util.Collections.unmodifiableList(loadSchedule_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { loadProfile_ = loadProfile_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.internal_static_yandex_cloud_loadtesting_agent_v1_Schedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.internal_static_yandex_cloud_loadtesting_agent_v1_Schedule_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Schedule.class, yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Schedule.Builder.class); } public static final int LOAD_TYPE_FIELD_NUMBER = 1; private int loadType_; /** * .yandex.cloud.loadtesting.agent.v1.LoadType load_type = 1; * @return The enum numeric value on the wire for loadType. */ @java.lang.Override public int getLoadTypeValue() { return loadType_; } /** * .yandex.cloud.loadtesting.agent.v1.LoadType load_type = 1; * @return The loadType. */ @java.lang.Override public yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadType getLoadType() { @SuppressWarnings("deprecation") yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadType result = yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadType.valueOf(loadType_); return result == null ? yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadType.UNRECOGNIZED : result; } public static final int LOAD_SCHEDULE_FIELD_NUMBER = 2; private java.util.List loadSchedule_; /** * repeated .yandex.cloud.loadtesting.agent.v1.LoadSchedule load_schedule = 2; */ @java.lang.Override public java.util.List getLoadScheduleList() { return loadSchedule_; } /** * repeated .yandex.cloud.loadtesting.agent.v1.LoadSchedule load_schedule = 2; */ @java.lang.Override public java.util.List getLoadScheduleOrBuilderList() { return loadSchedule_; } /** * repeated .yandex.cloud.loadtesting.agent.v1.LoadSchedule load_schedule = 2; */ @java.lang.Override public int getLoadScheduleCount() { return loadSchedule_.size(); } /** * repeated .yandex.cloud.loadtesting.agent.v1.LoadSchedule load_schedule = 2; */ @java.lang.Override public yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule getLoadSchedule(int index) { return loadSchedule_.get(index); } /** * repeated .yandex.cloud.loadtesting.agent.v1.LoadSchedule load_schedule = 2; */ @java.lang.Override public yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadScheduleOrBuilder getLoadScheduleOrBuilder( int index) { return loadSchedule_.get(index); } public static final int LOAD_PROFILE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList loadProfile_; /** * repeated string load_profile = 3; * @return A list containing the loadProfile. */ public com.google.protobuf.ProtocolStringList getLoadProfileList() { return loadProfile_; } /** * repeated string load_profile = 3; * @return The count of loadProfile. */ public int getLoadProfileCount() { return loadProfile_.size(); } /** * repeated string load_profile = 3; * @param index The index of the element to return. * @return The loadProfile at the given index. */ public java.lang.String getLoadProfile(int index) { return loadProfile_.get(index); } /** * repeated string load_profile = 3; * @param index The index of the value to return. * @return The bytes of the loadProfile at the given index. */ public com.google.protobuf.ByteString getLoadProfileBytes(int index) { return loadProfile_.getByteString(index); } 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 (loadType_ != yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadType.LOAD_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, loadType_); } for (int i = 0; i < loadSchedule_.size(); i++) { output.writeMessage(2, loadSchedule_.get(i)); } for (int i = 0; i < loadProfile_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, loadProfile_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (loadType_ != yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadType.LOAD_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, loadType_); } for (int i = 0; i < loadSchedule_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, loadSchedule_.get(i)); } { int dataSize = 0; for (int i = 0; i < loadProfile_.size(); i++) { dataSize += computeStringSizeNoTag(loadProfile_.getRaw(i)); } size += dataSize; size += 1 * getLoadProfileList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Schedule)) { return super.equals(obj); } yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Schedule other = (yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Schedule) obj; if (loadType_ != other.loadType_) return false; if (!getLoadScheduleList() .equals(other.getLoadScheduleList())) return false; if (!getLoadProfileList() .equals(other.getLoadProfileList())) return false; 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) + LOAD_TYPE_FIELD_NUMBER; hash = (53 * hash) + loadType_; if (getLoadScheduleCount() > 0) { hash = (37 * hash) + LOAD_SCHEDULE_FIELD_NUMBER; hash = (53 * hash) + getLoadScheduleList().hashCode(); } if (getLoadProfileCount() > 0) { hash = (37 * hash) + LOAD_PROFILE_FIELD_NUMBER; hash = (53 * hash) + getLoadProfileList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Schedule parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Schedule 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.loadtesting.agent.v1.TestOuterClass.Schedule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Schedule 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.loadtesting.agent.v1.TestOuterClass.Schedule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Schedule parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Schedule parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Schedule 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.loadtesting.agent.v1.TestOuterClass.Schedule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Schedule 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.loadtesting.agent.v1.TestOuterClass.Schedule parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Schedule 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.loadtesting.agent.v1.TestOuterClass.Schedule 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; } /** *
     * Load profile in general: phantom.load_profile, pool schedule for pandora
     * 
* * Protobuf type {@code yandex.cloud.loadtesting.agent.v1.Schedule} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.loadtesting.agent.v1.Schedule) yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.ScheduleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.internal_static_yandex_cloud_loadtesting_agent_v1_Schedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.internal_static_yandex_cloud_loadtesting_agent_v1_Schedule_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Schedule.class, yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Schedule.Builder.class); } // Construct using yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Schedule.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getLoadScheduleFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); loadType_ = 0; if (loadScheduleBuilder_ == null) { loadSchedule_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { loadScheduleBuilder_.clear(); } loadProfile_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.internal_static_yandex_cloud_loadtesting_agent_v1_Schedule_descriptor; } @java.lang.Override public yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Schedule getDefaultInstanceForType() { return yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Schedule.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Schedule build() { yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Schedule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Schedule buildPartial() { yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Schedule result = new yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Schedule(this); int from_bitField0_ = bitField0_; result.loadType_ = loadType_; if (loadScheduleBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { loadSchedule_ = java.util.Collections.unmodifiableList(loadSchedule_); bitField0_ = (bitField0_ & ~0x00000001); } result.loadSchedule_ = loadSchedule_; } else { result.loadSchedule_ = loadScheduleBuilder_.build(); } if (((bitField0_ & 0x00000002) != 0)) { loadProfile_ = loadProfile_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.loadProfile_ = loadProfile_; 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.loadtesting.agent.v1.TestOuterClass.Schedule) { return mergeFrom((yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Schedule)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Schedule other) { if (other == yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Schedule.getDefaultInstance()) return this; if (other.loadType_ != 0) { setLoadTypeValue(other.getLoadTypeValue()); } if (loadScheduleBuilder_ == null) { if (!other.loadSchedule_.isEmpty()) { if (loadSchedule_.isEmpty()) { loadSchedule_ = other.loadSchedule_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureLoadScheduleIsMutable(); loadSchedule_.addAll(other.loadSchedule_); } onChanged(); } } else { if (!other.loadSchedule_.isEmpty()) { if (loadScheduleBuilder_.isEmpty()) { loadScheduleBuilder_.dispose(); loadScheduleBuilder_ = null; loadSchedule_ = other.loadSchedule_; bitField0_ = (bitField0_ & ~0x00000001); loadScheduleBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLoadScheduleFieldBuilder() : null; } else { loadScheduleBuilder_.addAllMessages(other.loadSchedule_); } } } if (!other.loadProfile_.isEmpty()) { if (loadProfile_.isEmpty()) { loadProfile_ = other.loadProfile_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureLoadProfileIsMutable(); loadProfile_.addAll(other.loadProfile_); } onChanged(); } 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.loadtesting.agent.v1.TestOuterClass.Schedule parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Schedule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int loadType_ = 0; /** * .yandex.cloud.loadtesting.agent.v1.LoadType load_type = 1; * @return The enum numeric value on the wire for loadType. */ @java.lang.Override public int getLoadTypeValue() { return loadType_; } /** * .yandex.cloud.loadtesting.agent.v1.LoadType load_type = 1; * @param value The enum numeric value on the wire for loadType to set. * @return This builder for chaining. */ public Builder setLoadTypeValue(int value) { loadType_ = value; onChanged(); return this; } /** * .yandex.cloud.loadtesting.agent.v1.LoadType load_type = 1; * @return The loadType. */ @java.lang.Override public yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadType getLoadType() { @SuppressWarnings("deprecation") yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadType result = yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadType.valueOf(loadType_); return result == null ? yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadType.UNRECOGNIZED : result; } /** * .yandex.cloud.loadtesting.agent.v1.LoadType load_type = 1; * @param value The loadType to set. * @return This builder for chaining. */ public Builder setLoadType(yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadType value) { if (value == null) { throw new NullPointerException(); } loadType_ = value.getNumber(); onChanged(); return this; } /** * .yandex.cloud.loadtesting.agent.v1.LoadType load_type = 1; * @return This builder for chaining. */ public Builder clearLoadType() { loadType_ = 0; onChanged(); return this; } private java.util.List loadSchedule_ = java.util.Collections.emptyList(); private void ensureLoadScheduleIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { loadSchedule_ = new java.util.ArrayList(loadSchedule_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule, yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule.Builder, yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadScheduleOrBuilder> loadScheduleBuilder_; /** * repeated .yandex.cloud.loadtesting.agent.v1.LoadSchedule load_schedule = 2; */ public java.util.List getLoadScheduleList() { if (loadScheduleBuilder_ == null) { return java.util.Collections.unmodifiableList(loadSchedule_); } else { return loadScheduleBuilder_.getMessageList(); } } /** * repeated .yandex.cloud.loadtesting.agent.v1.LoadSchedule load_schedule = 2; */ public int getLoadScheduleCount() { if (loadScheduleBuilder_ == null) { return loadSchedule_.size(); } else { return loadScheduleBuilder_.getCount(); } } /** * repeated .yandex.cloud.loadtesting.agent.v1.LoadSchedule load_schedule = 2; */ public yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule getLoadSchedule(int index) { if (loadScheduleBuilder_ == null) { return loadSchedule_.get(index); } else { return loadScheduleBuilder_.getMessage(index); } } /** * repeated .yandex.cloud.loadtesting.agent.v1.LoadSchedule load_schedule = 2; */ public Builder setLoadSchedule( int index, yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule value) { if (loadScheduleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLoadScheduleIsMutable(); loadSchedule_.set(index, value); onChanged(); } else { loadScheduleBuilder_.setMessage(index, value); } return this; } /** * repeated .yandex.cloud.loadtesting.agent.v1.LoadSchedule load_schedule = 2; */ public Builder setLoadSchedule( int index, yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule.Builder builderForValue) { if (loadScheduleBuilder_ == null) { ensureLoadScheduleIsMutable(); loadSchedule_.set(index, builderForValue.build()); onChanged(); } else { loadScheduleBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .yandex.cloud.loadtesting.agent.v1.LoadSchedule load_schedule = 2; */ public Builder addLoadSchedule(yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule value) { if (loadScheduleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLoadScheduleIsMutable(); loadSchedule_.add(value); onChanged(); } else { loadScheduleBuilder_.addMessage(value); } return this; } /** * repeated .yandex.cloud.loadtesting.agent.v1.LoadSchedule load_schedule = 2; */ public Builder addLoadSchedule( int index, yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule value) { if (loadScheduleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLoadScheduleIsMutable(); loadSchedule_.add(index, value); onChanged(); } else { loadScheduleBuilder_.addMessage(index, value); } return this; } /** * repeated .yandex.cloud.loadtesting.agent.v1.LoadSchedule load_schedule = 2; */ public Builder addLoadSchedule( yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule.Builder builderForValue) { if (loadScheduleBuilder_ == null) { ensureLoadScheduleIsMutable(); loadSchedule_.add(builderForValue.build()); onChanged(); } else { loadScheduleBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .yandex.cloud.loadtesting.agent.v1.LoadSchedule load_schedule = 2; */ public Builder addLoadSchedule( int index, yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule.Builder builderForValue) { if (loadScheduleBuilder_ == null) { ensureLoadScheduleIsMutable(); loadSchedule_.add(index, builderForValue.build()); onChanged(); } else { loadScheduleBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .yandex.cloud.loadtesting.agent.v1.LoadSchedule load_schedule = 2; */ public Builder addAllLoadSchedule( java.lang.Iterable values) { if (loadScheduleBuilder_ == null) { ensureLoadScheduleIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, loadSchedule_); onChanged(); } else { loadScheduleBuilder_.addAllMessages(values); } return this; } /** * repeated .yandex.cloud.loadtesting.agent.v1.LoadSchedule load_schedule = 2; */ public Builder clearLoadSchedule() { if (loadScheduleBuilder_ == null) { loadSchedule_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { loadScheduleBuilder_.clear(); } return this; } /** * repeated .yandex.cloud.loadtesting.agent.v1.LoadSchedule load_schedule = 2; */ public Builder removeLoadSchedule(int index) { if (loadScheduleBuilder_ == null) { ensureLoadScheduleIsMutable(); loadSchedule_.remove(index); onChanged(); } else { loadScheduleBuilder_.remove(index); } return this; } /** * repeated .yandex.cloud.loadtesting.agent.v1.LoadSchedule load_schedule = 2; */ public yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule.Builder getLoadScheduleBuilder( int index) { return getLoadScheduleFieldBuilder().getBuilder(index); } /** * repeated .yandex.cloud.loadtesting.agent.v1.LoadSchedule load_schedule = 2; */ public yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadScheduleOrBuilder getLoadScheduleOrBuilder( int index) { if (loadScheduleBuilder_ == null) { return loadSchedule_.get(index); } else { return loadScheduleBuilder_.getMessageOrBuilder(index); } } /** * repeated .yandex.cloud.loadtesting.agent.v1.LoadSchedule load_schedule = 2; */ public java.util.List getLoadScheduleOrBuilderList() { if (loadScheduleBuilder_ != null) { return loadScheduleBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(loadSchedule_); } } /** * repeated .yandex.cloud.loadtesting.agent.v1.LoadSchedule load_schedule = 2; */ public yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule.Builder addLoadScheduleBuilder() { return getLoadScheduleFieldBuilder().addBuilder( yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule.getDefaultInstance()); } /** * repeated .yandex.cloud.loadtesting.agent.v1.LoadSchedule load_schedule = 2; */ public yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule.Builder addLoadScheduleBuilder( int index) { return getLoadScheduleFieldBuilder().addBuilder( index, yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule.getDefaultInstance()); } /** * repeated .yandex.cloud.loadtesting.agent.v1.LoadSchedule load_schedule = 2; */ public java.util.List getLoadScheduleBuilderList() { return getLoadScheduleFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule, yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule.Builder, yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadScheduleOrBuilder> getLoadScheduleFieldBuilder() { if (loadScheduleBuilder_ == null) { loadScheduleBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule, yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadSchedule.Builder, yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.LoadScheduleOrBuilder>( loadSchedule_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); loadSchedule_ = null; } return loadScheduleBuilder_; } private com.google.protobuf.LazyStringList loadProfile_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLoadProfileIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { loadProfile_ = new com.google.protobuf.LazyStringArrayList(loadProfile_); bitField0_ |= 0x00000002; } } /** * repeated string load_profile = 3; * @return A list containing the loadProfile. */ public com.google.protobuf.ProtocolStringList getLoadProfileList() { return loadProfile_.getUnmodifiableView(); } /** * repeated string load_profile = 3; * @return The count of loadProfile. */ public int getLoadProfileCount() { return loadProfile_.size(); } /** * repeated string load_profile = 3; * @param index The index of the element to return. * @return The loadProfile at the given index. */ public java.lang.String getLoadProfile(int index) { return loadProfile_.get(index); } /** * repeated string load_profile = 3; * @param index The index of the value to return. * @return The bytes of the loadProfile at the given index. */ public com.google.protobuf.ByteString getLoadProfileBytes(int index) { return loadProfile_.getByteString(index); } /** * repeated string load_profile = 3; * @param index The index to set the value at. * @param value The loadProfile to set. * @return This builder for chaining. */ public Builder setLoadProfile( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureLoadProfileIsMutable(); loadProfile_.set(index, value); onChanged(); return this; } /** * repeated string load_profile = 3; * @param value The loadProfile to add. * @return This builder for chaining. */ public Builder addLoadProfile( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureLoadProfileIsMutable(); loadProfile_.add(value); onChanged(); return this; } /** * repeated string load_profile = 3; * @param values The loadProfile to add. * @return This builder for chaining. */ public Builder addAllLoadProfile( java.lang.Iterable values) { ensureLoadProfileIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, loadProfile_); onChanged(); return this; } /** * repeated string load_profile = 3; * @return This builder for chaining. */ public Builder clearLoadProfile() { loadProfile_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * repeated string load_profile = 3; * @param value The bytes of the loadProfile to add. * @return This builder for chaining. */ public Builder addLoadProfileBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureLoadProfileIsMutable(); loadProfile_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.loadtesting.agent.v1.Schedule) } // @@protoc_insertion_point(class_scope:yandex.cloud.loadtesting.agent.v1.Schedule) private static final yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Schedule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Schedule(); } public static yandex.cloud.api.loadtesting.agent.v1.TestOuterClass.Schedule getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Schedule parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Schedule(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.loadtesting.agent.v1.TestOuterClass.Schedule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_loadtesting_agent_v1_Test_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_loadtesting_agent_v1_Test_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_loadtesting_agent_v1_Test_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_loadtesting_agent_v1_Test_LabelsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_loadtesting_agent_v1_LoadSchedule_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_loadtesting_agent_v1_LoadSchedule_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_loadtesting_agent_v1_Schedule_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_loadtesting_agent_v1_Schedule_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/loadtesting/agent/v1/test" + ".proto\022!yandex.cloud.loadtesting.agent.v" + "1\032\037google/protobuf/timestamp.proto\"\376\007\n\004T" + "est\022\n\n\002id\030\001 \001(\t\022\021\n\tfolder_id\030\002 \001(\t\022\014\n\004na" + "me\030\003 \001(\t\022\023\n\013description\030\004 \001(\t\022C\n\006labels\030" + "\005 \003(\01323.yandex.cloud.loadtesting.agent.v" + "1.Test.LabelsEntry\022.\n\ncreated_at\030\006 \001(\0132\032" + ".google.protobuf.Timestamp\022.\n\nstarted_at" + "\030\007 \001(\0132\032.google.protobuf.Timestamp\022/\n\013fi" + "nished_at\030\010 \001(\0132\032.google.protobuf.Timest" + "amp\022.\n\nupdated_at\030\t \001(\0132\032.google.protobu" + "f.Timestamp\022D\n\tgenerator\030\n \001(\01621.yandex." + "cloud.loadtesting.agent.v1.Test.Generato" + "r\022\031\n\021agent_instance_id\030\013 \001(\t\022\026\n\016target_a" + "ddress\030\014 \001(\t\022\023\n\013target_port\030\r \001(\003\022\026\n\016tar" + "get_version\030\016 \001(\t\022\016\n\006config\030\017 \001(\t\022\023\n\tamm" + "o_urls\030\020 \001(\tH\000\022\021\n\007ammo_id\030\021 \001(\tH\000\022\r\n\005cas" + "es\030\022 \003(\t\022>\n\006status\030\023 \001(\0162..yandex.cloud." + "loadtesting.agent.v1.Test.Status\022\016\n\006erro" + "rs\030\024 \003(\t\022\020\n\010favorite\030\025 \001(\010\032-\n\013LabelsEntr" + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\331\001\n\006St" + "atus\022\026\n\022STATUS_UNSPECIFIED\020\000\022\013\n\007CREATED\020" + "\001\022\r\n\tINITIATED\020\002\022\r\n\tPREPARING\020\003\022\013\n\007RUNNI" + "NG\020\004\022\r\n\tFINISHING\020\005\022\010\n\004DONE\020\006\022\023\n\017POST_PR" + "OCESSING\020\007\022\n\n\006FAILED\020\010\022\014\n\010STOPPING\020\t\022\013\n\007" + "STOPPED\020\n\022\017\n\013AUTOSTOPPED\020\013\022\013\n\007WAITING\020\014\022" + "\014\n\010DELETING\020\r\"L\n\tGenerator\022\031\n\025GENERATOR_" + "UNSPECIFIED\020\000\022\013\n\007PANDORA\020\001\022\013\n\007PHANTOM\020\002\022" + "\n\n\006JMETER\020\003B\006\n\004ammo\"\302\001\n\014LoadSchedule\022=\n\004" + "type\030\001 \001(\0162/.yandex.cloud.loadtesting.ag" + "ent.v1.ScheduleType\022\021\n\tinstances\030\002 \001(\003\022\020" + "\n\010duration\030\003 \001(\t\022\020\n\010rps_from\030\004 \001(\003\022\016\n\006rp" + "s_to\030\005 \001(\003\022\014\n\004step\030\006 \001(\003\022\013\n\003ops\030\007 \001(\003\022\021\n" + "\tstpd_path\030\010 \001(\t\"\250\001\n\010Schedule\022>\n\tload_ty" + "pe\030\001 \001(\0162+.yandex.cloud.loadtesting.agen" + "t.v1.LoadType\022F\n\rload_schedule\030\002 \003(\0132/.y" + "andex.cloud.loadtesting.agent.v1.LoadSch" + "edule\022\024\n\014load_profile\030\003 \003(\t*l\n\010AmmoType\022" + "\031\n\025AMMO_TYPE_UNSPECIFIED\020\000\022\r\n\tHTTP_JSON\020" + "\001\022\007\n\003RAW\020\002\022\007\n\003URI\020\003\022\013\n\007URIPOST\020\004\022\013\n\007PHAN" + "TOM\020\005\022\n\n\006ACCESS\020\006*L\n\010LoadType\022\031\n\025LOAD_TY" + "PE_UNSPECIFIED\020\000\022\007\n\003RPS\020\001\022\r\n\tINSTANCES\020\002" + "\022\r\n\tSTPD_FILE\020\003*V\n\014ScheduleType\022\035\n\031SCHED" + "ULE_TYPE_UNSPECIFIED\020\000\022\010\n\004ONCE\020\001\022\t\n\005CONS" + "T\020\002\022\010\n\004LINE\020\003\022\010\n\004STEP\020\004Bt\n%yandex.cloud." + "api.loadtesting.agent.v1ZKgithub.com/yan" + "dex-cloud/go-genproto/yandex/cloud/loadt" + "esting/agent/v1;agentb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_yandex_cloud_loadtesting_agent_v1_Test_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_loadtesting_agent_v1_Test_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_loadtesting_agent_v1_Test_descriptor, new java.lang.String[] { "Id", "FolderId", "Name", "Description", "Labels", "CreatedAt", "StartedAt", "FinishedAt", "UpdatedAt", "Generator", "AgentInstanceId", "TargetAddress", "TargetPort", "TargetVersion", "Config", "AmmoUrls", "AmmoId", "Cases", "Status", "Errors", "Favorite", "Ammo", }); internal_static_yandex_cloud_loadtesting_agent_v1_Test_LabelsEntry_descriptor = internal_static_yandex_cloud_loadtesting_agent_v1_Test_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_loadtesting_agent_v1_Test_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_loadtesting_agent_v1_Test_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_loadtesting_agent_v1_LoadSchedule_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_loadtesting_agent_v1_LoadSchedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_loadtesting_agent_v1_LoadSchedule_descriptor, new java.lang.String[] { "Type", "Instances", "Duration", "RpsFrom", "RpsTo", "Step", "Ops", "StpdPath", }); internal_static_yandex_cloud_loadtesting_agent_v1_Schedule_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_yandex_cloud_loadtesting_agent_v1_Schedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_loadtesting_agent_v1_Schedule_descriptor, new java.lang.String[] { "LoadType", "LoadSchedule", "LoadProfile", }); com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy