Package api

Class Testspec.TestSpec

  • All Implemented Interfaces:
    Testspec.TestSpecOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
    Enclosing class:
    Testspec

    public static final class Testspec.TestSpec
    extends com.google.protobuf.GeneratedMessageV3
    implements Testspec.TestSpecOrBuilder
     Defines a test case for the Armada test suite.
     Defined as a proto message to enable unmarshalling oneof fields.
     
    Protobuf type api.TestSpec
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getJobsList

        public List<SubmitOuterClass.JobSubmitRequestItem> getJobsList()
         Jobs to submit.
         The n jobs herein are copied BatchSize times to produce n*BatchSize jobs.
         A batch of n*BatchSize such jobs are submitted in each API call.
         NumBatches such batches are submitted in total.
         
        repeated .api.JobSubmitRequestItem jobs = 1;
        Specified by:
        getJobsList in interface Testspec.TestSpecOrBuilder
      • getJobsCount

        public int getJobsCount()
         Jobs to submit.
         The n jobs herein are copied BatchSize times to produce n*BatchSize jobs.
         A batch of n*BatchSize such jobs are submitted in each API call.
         NumBatches such batches are submitted in total.
         
        repeated .api.JobSubmitRequestItem jobs = 1;
        Specified by:
        getJobsCount in interface Testspec.TestSpecOrBuilder
      • getJobs

        public SubmitOuterClass.JobSubmitRequestItem getJobs​(int index)
         Jobs to submit.
         The n jobs herein are copied BatchSize times to produce n*BatchSize jobs.
         A batch of n*BatchSize such jobs are submitted in each API call.
         NumBatches such batches are submitted in total.
         
        repeated .api.JobSubmitRequestItem jobs = 1;
        Specified by:
        getJobs in interface Testspec.TestSpecOrBuilder
      • getExpectedEventsCount

        public int getExpectedEventsCount()
         Events expected in response to submitting each job.
         
        repeated .api.EventMessage expected_events = 2;
        Specified by:
        getExpectedEventsCount in interface Testspec.TestSpecOrBuilder
      • getQueueBytes

        public com.google.protobuf.ByteString getQueueBytes()
         Queue to submit jobs to.
         
        string queue = 3;
        Specified by:
        getQueueBytes in interface Testspec.TestSpecOrBuilder
        Returns:
        The bytes for queue.
      • getJobSetIdBytes

        public com.google.protobuf.ByteString getJobSetIdBytes()
         Job set to submit jobs to.
         
        string job_set_id = 4;
        Specified by:
        getJobSetIdBytes in interface Testspec.TestSpecOrBuilder
        Returns:
        The bytes for jobSetId.
      • getNumBatches

        public int getNumBatches()
         Number of batches of jobs to submit.
         If 0, will submit forever.
         
        uint32 num_batches = 5;
        Specified by:
        getNumBatches in interface Testspec.TestSpecOrBuilder
        Returns:
        The numBatches.
      • getBatchSize

        public int getBatchSize()
         Number of copies of the provided jobs to submit per batch.
         
        uint32 batch_size = 6;
        Specified by:
        getBatchSize in interface Testspec.TestSpecOrBuilder
        Returns:
        The batchSize.
      • hasInterval

        public boolean hasInterval()
         Time between batches.
         If 0, jobs are submitted as quickly as possible.
         
        .google.protobuf.Duration interval = 7;
        Specified by:
        hasInterval in interface Testspec.TestSpecOrBuilder
        Returns:
        Whether the interval field is set.
      • getInterval

        public com.google.protobuf.Duration getInterval()
         Time between batches.
         If 0, jobs are submitted as quickly as possible.
         
        .google.protobuf.Duration interval = 7;
        Specified by:
        getInterval in interface Testspec.TestSpecOrBuilder
        Returns:
        The interval.
      • getIntervalOrBuilder

        public com.google.protobuf.DurationOrBuilder getIntervalOrBuilder()
         Time between batches.
         If 0, jobs are submitted as quickly as possible.
         
        .google.protobuf.Duration interval = 7;
        Specified by:
        getIntervalOrBuilder in interface Testspec.TestSpecOrBuilder
      • hasTimeout

        public boolean hasTimeout()
         Number of seconds to wait for jobs to finish.
         
        .google.protobuf.Duration timeout = 8;
        Specified by:
        hasTimeout in interface Testspec.TestSpecOrBuilder
        Returns:
        Whether the timeout field is set.
      • getTimeout

        public com.google.protobuf.Duration getTimeout()
         Number of seconds to wait for jobs to finish.
         
        .google.protobuf.Duration timeout = 8;
        Specified by:
        getTimeout in interface Testspec.TestSpecOrBuilder
        Returns:
        The timeout.
      • getTimeoutOrBuilder

        public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()
         Number of seconds to wait for jobs to finish.
         
        .google.protobuf.Duration timeout = 8;
        Specified by:
        getTimeoutOrBuilder in interface Testspec.TestSpecOrBuilder
      • getCancelValue

        public int getCancelValue()
        .api.TestSpec.Cancel cancel = 9;
        Specified by:
        getCancelValue in interface Testspec.TestSpecOrBuilder
        Returns:
        The enum numeric value on the wire for cancel.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Test name. Defaults to the filename if not provided.
         
        string name = 10;
        Specified by:
        getNameBytes in interface Testspec.TestSpecOrBuilder
        Returns:
        The bytes for name.
      • getRandomClientId

        public boolean getRandomClientId()
         Randomize clientId if not provided
         
        bool random_client_id = 11;
        Specified by:
        getRandomClientId in interface Testspec.TestSpecOrBuilder
        Returns:
        The randomClientId.
      • getGetLogs

        public boolean getGetLogs()
         Toggle should testsuite scrape Armada Job (pod) logs
         
        bool get_logs = 12;
        Specified by:
        getGetLogs in interface Testspec.TestSpecOrBuilder
        Returns:
        The getLogs.
      • getEnvironment

        public String getEnvironment()
         Value of the environment label set on exported Prometheus metrics.
         
        string environment = 13;
        Specified by:
        getEnvironment in interface Testspec.TestSpecOrBuilder
        Returns:
        The environment.
      • getEnvironmentBytes

        public com.google.protobuf.ByteString getEnvironmentBytes()
         Value of the environment label set on exported Prometheus metrics.
         
        string environment = 13;
        Specified by:
        getEnvironmentBytes in interface Testspec.TestSpecOrBuilder
        Returns:
        The bytes for environment.
      • getTarget

        public String getTarget()
         Value of the target label set on exported Prometheus metrics.
         
        string target = 14;
        Specified by:
        getTarget in interface Testspec.TestSpecOrBuilder
        Returns:
        The target.
      • getTargetBytes

        public com.google.protobuf.ByteString getTargetBytes()
         Value of the target label set on exported Prometheus metrics.
         
        string target = 14;
        Specified by:
        getTargetBytes in interface Testspec.TestSpecOrBuilder
        Returns:
        The bytes for target.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Testspec.TestSpec parseFrom​(ByteBuffer data)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Testspec.TestSpec parseFrom​(ByteBuffer data,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Testspec.TestSpec parseFrom​(com.google.protobuf.ByteString data)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Testspec.TestSpec parseFrom​(com.google.protobuf.ByteString data,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Testspec.TestSpec parseFrom​(byte[] data)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Testspec.TestSpec parseFrom​(byte[] data,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Testspec.TestSpec parseFrom​(com.google.protobuf.CodedInputStream input,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws IOException
        Throws:
        IOException
      • newBuilderForType

        public Testspec.TestSpec.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Testspec.TestSpec.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Testspec.TestSpec.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<Testspec.TestSpec> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public Testspec.TestSpec getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder