diff options
-rw-r--r-- | __init__.py | 0 | ||||
-rw-r--r-- | proto/TestSuiteResultMessage.proto | 50 | ||||
-rw-r--r-- | proto/TestSuiteResultMessage_pb2.py | 176 | ||||
-rw-r--r-- | proto/__init__.py | 0 | ||||
-rwxr-xr-x | script/build-java.sh | 19 | ||||
-rw-r--r-- | src/main/java/com/android/vts/proto/TestSuiteResultMessageProto.java | 2872 |
6 files changed, 3117 insertions, 0 deletions
diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/__init__.py diff --git a/proto/TestSuiteResultMessage.proto b/proto/TestSuiteResultMessage.proto new file mode 100644 index 0000000..51add84 --- /dev/null +++ b/proto/TestSuiteResultMessage.proto @@ -0,0 +1,50 @@ +// Copyright 2018 The Android Open Source Project +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto2"; + +package android.vts; +option java_package = "com.android.vts.proto"; +option java_outer_classname = "TestSuiteResultMessageProto"; +option java_multiple_files = false; + + +// To specify the test results which are uploaded to vts dashboard. +message TestSuiteResultMessage { + // oauth2.0 access token + optional string access_token = 1; + + // test suite build info + required string branch = 11; + required string target = 12; + required string build_id = 13; + + // attributes of Result tag + optional string suite_plan = 21; + optional string suite_version = 22; + optional string suite_build_number = 23; + optional int64 start_time = 24; + optional int64 end_time = 25; + optional string host_name = 26; + + // attributes of Build tag + optional string build_system_fingerprint = 31; + optional string build_vendor_fingerprint = 32; + + // attributes of Summary tag + optional int32 passed_test_case_count = 41; + optional int32 failed_test_case_count = 42; + optional int32 modules_done = 43; + optional int32 modules_total = 44; +} diff --git a/proto/TestSuiteResultMessage_pb2.py b/proto/TestSuiteResultMessage_pb2.py new file mode 100644 index 0000000..3d69dba --- /dev/null +++ b/proto/TestSuiteResultMessage_pb2.py @@ -0,0 +1,176 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: TestSuiteResultMessage.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='TestSuiteResultMessage.proto', + package='android.vts', + syntax='proto2', + serialized_pb=_b('\n\x1cTestSuiteResultMessage.proto\x12\x0b\x61ndroid.vts\"\x91\x03\n\x16TestSuiteResultMessage\x12\x14\n\x0c\x61\x63\x63\x65ss_token\x18\x01 \x01(\t\x12\x0e\n\x06\x62ranch\x18\x0b \x02(\t\x12\x0e\n\x06target\x18\x0c \x02(\t\x12\x10\n\x08\x62uild_id\x18\r \x02(\t\x12\x12\n\nsuite_plan\x18\x15 \x01(\t\x12\x15\n\rsuite_version\x18\x16 \x01(\t\x12\x1a\n\x12suite_build_number\x18\x17 \x01(\t\x12\x12\n\nstart_time\x18\x18 \x01(\x03\x12\x10\n\x08\x65nd_time\x18\x19 \x01(\x03\x12\x11\n\thost_name\x18\x1a \x01(\t\x12 \n\x18\x62uild_system_fingerprint\x18\x1f \x01(\t\x12 \n\x18\x62uild_vendor_fingerprint\x18 \x01(\t\x12\x1e\n\x16passed_test_case_count\x18) \x01(\x05\x12\x1e\n\x16\x66\x61iled_test_case_count\x18* \x01(\x05\x12\x14\n\x0cmodules_done\x18+ \x01(\x05\x12\x15\n\rmodules_total\x18, \x01(\x05\x42\x36\n\x15\x63om.android.vts.protoB\x1bTestSuiteResultMessageProtoP\x00') +) +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + + + + +_TESTSUITERESULTMESSAGE = _descriptor.Descriptor( + name='TestSuiteResultMessage', + full_name='android.vts.TestSuiteResultMessage', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='access_token', full_name='android.vts.TestSuiteResultMessage.access_token', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='branch', full_name='android.vts.TestSuiteResultMessage.branch', index=1, + number=11, type=9, cpp_type=9, label=2, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='target', full_name='android.vts.TestSuiteResultMessage.target', index=2, + number=12, type=9, cpp_type=9, label=2, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='build_id', full_name='android.vts.TestSuiteResultMessage.build_id', index=3, + number=13, type=9, cpp_type=9, label=2, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='suite_plan', full_name='android.vts.TestSuiteResultMessage.suite_plan', index=4, + number=21, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='suite_version', full_name='android.vts.TestSuiteResultMessage.suite_version', index=5, + number=22, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='suite_build_number', full_name='android.vts.TestSuiteResultMessage.suite_build_number', index=6, + number=23, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='start_time', full_name='android.vts.TestSuiteResultMessage.start_time', index=7, + number=24, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='end_time', full_name='android.vts.TestSuiteResultMessage.end_time', index=8, + number=25, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='host_name', full_name='android.vts.TestSuiteResultMessage.host_name', index=9, + number=26, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='build_system_fingerprint', full_name='android.vts.TestSuiteResultMessage.build_system_fingerprint', index=10, + number=31, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='build_vendor_fingerprint', full_name='android.vts.TestSuiteResultMessage.build_vendor_fingerprint', index=11, + number=32, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='passed_test_case_count', full_name='android.vts.TestSuiteResultMessage.passed_test_case_count', index=12, + number=41, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='failed_test_case_count', full_name='android.vts.TestSuiteResultMessage.failed_test_case_count', index=13, + number=42, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='modules_done', full_name='android.vts.TestSuiteResultMessage.modules_done', index=14, + number=43, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='modules_total', full_name='android.vts.TestSuiteResultMessage.modules_total', index=15, + number=44, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=46, + serialized_end=447, +) + +DESCRIPTOR.message_types_by_name['TestSuiteResultMessage'] = _TESTSUITERESULTMESSAGE + +TestSuiteResultMessage = _reflection.GeneratedProtocolMessageType('TestSuiteResultMessage', (_message.Message,), dict( + DESCRIPTOR = _TESTSUITERESULTMESSAGE, + __module__ = 'TestSuiteResultMessage_pb2' + # @@protoc_insertion_point(class_scope:android.vts.TestSuiteResultMessage) + )) +_sym_db.RegisterMessage(TestSuiteResultMessage) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\025com.android.vts.protoB\033TestSuiteResultMessageProtoP\000')) +# @@protoc_insertion_point(module_scope) diff --git a/proto/__init__.py b/proto/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/proto/__init__.py diff --git a/script/build-java.sh b/script/build-java.sh new file mode 100755 index 0000000..9b82c97 --- /dev/null +++ b/script/build-java.sh @@ -0,0 +1,19 @@ +#!/bin/bash +# +# Copyright 2018 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +pushd ${ANDROID_BUILD_TOP}/test +protoc --proto_path=vti/dashboard --java_out=vti/dashboard/src/main/java vti/dashboard/proto/TestSuiteResultMessage.proto +popd diff --git a/src/main/java/com/android/vts/proto/TestSuiteResultMessageProto.java b/src/main/java/com/android/vts/proto/TestSuiteResultMessageProto.java new file mode 100644 index 0000000..3d4cdd0 --- /dev/null +++ b/src/main/java/com/android/vts/proto/TestSuiteResultMessageProto.java @@ -0,0 +1,2872 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: proto/TestSuiteResultMessage.proto + +package com.android.vts.proto; + +public final class TestSuiteResultMessageProto { + private TestSuiteResultMessageProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface TestSuiteResultMessageOrBuilder extends + // @@protoc_insertion_point(interface_extends:android.vts.TestSuiteResultMessage) + com.google.protobuf.MessageOrBuilder { + + /** + * <pre> + * oauth2.0 access token + * </pre> + * + * <code>optional string access_token = 1;</code> + */ + boolean hasAccessToken(); + /** + * <pre> + * oauth2.0 access token + * </pre> + * + * <code>optional string access_token = 1;</code> + */ + java.lang.String getAccessToken(); + /** + * <pre> + * oauth2.0 access token + * </pre> + * + * <code>optional string access_token = 1;</code> + */ + com.google.protobuf.ByteString + getAccessTokenBytes(); + + /** + * <pre> + * test suite build info + * </pre> + * + * <code>required string branch = 11;</code> + */ + boolean hasBranch(); + /** + * <pre> + * test suite build info + * </pre> + * + * <code>required string branch = 11;</code> + */ + java.lang.String getBranch(); + /** + * <pre> + * test suite build info + * </pre> + * + * <code>required string branch = 11;</code> + */ + com.google.protobuf.ByteString + getBranchBytes(); + + /** + * <code>required string target = 12;</code> + */ + boolean hasTarget(); + /** + * <code>required string target = 12;</code> + */ + java.lang.String getTarget(); + /** + * <code>required string target = 12;</code> + */ + com.google.protobuf.ByteString + getTargetBytes(); + + /** + * <code>required string build_id = 13;</code> + */ + boolean hasBuildId(); + /** + * <code>required string build_id = 13;</code> + */ + java.lang.String getBuildId(); + /** + * <code>required string build_id = 13;</code> + */ + com.google.protobuf.ByteString + getBuildIdBytes(); + + /** + * <pre> + * attributes of Result tag + * </pre> + * + * <code>optional string suite_plan = 21;</code> + */ + boolean hasSuitePlan(); + /** + * <pre> + * attributes of Result tag + * </pre> + * + * <code>optional string suite_plan = 21;</code> + */ + java.lang.String getSuitePlan(); + /** + * <pre> + * attributes of Result tag + * </pre> + * + * <code>optional string suite_plan = 21;</code> + */ + com.google.protobuf.ByteString + getSuitePlanBytes(); + + /** + * <code>optional string suite_version = 22;</code> + */ + boolean hasSuiteVersion(); + /** + * <code>optional string suite_version = 22;</code> + */ + java.lang.String getSuiteVersion(); + /** + * <code>optional string suite_version = 22;</code> + */ + com.google.protobuf.ByteString + getSuiteVersionBytes(); + + /** + * <code>optional string suite_build_number = 23;</code> + */ + boolean hasSuiteBuildNumber(); + /** + * <code>optional string suite_build_number = 23;</code> + */ + java.lang.String getSuiteBuildNumber(); + /** + * <code>optional string suite_build_number = 23;</code> + */ + com.google.protobuf.ByteString + getSuiteBuildNumberBytes(); + + /** + * <code>optional int64 start_time = 24;</code> + */ + boolean hasStartTime(); + /** + * <code>optional int64 start_time = 24;</code> + */ + long getStartTime(); + + /** + * <code>optional int64 end_time = 25;</code> + */ + boolean hasEndTime(); + /** + * <code>optional int64 end_time = 25;</code> + */ + long getEndTime(); + + /** + * <code>optional string host_name = 26;</code> + */ + boolean hasHostName(); + /** + * <code>optional string host_name = 26;</code> + */ + java.lang.String getHostName(); + /** + * <code>optional string host_name = 26;</code> + */ + com.google.protobuf.ByteString + getHostNameBytes(); + + /** + * <pre> + * attributes of Build tag + * </pre> + * + * <code>optional string build_system_fingerprint = 31;</code> + */ + boolean hasBuildSystemFingerprint(); + /** + * <pre> + * attributes of Build tag + * </pre> + * + * <code>optional string build_system_fingerprint = 31;</code> + */ + java.lang.String getBuildSystemFingerprint(); + /** + * <pre> + * attributes of Build tag + * </pre> + * + * <code>optional string build_system_fingerprint = 31;</code> + */ + com.google.protobuf.ByteString + getBuildSystemFingerprintBytes(); + + /** + * <code>optional string build_vendor_fingerprint = 32;</code> + */ + boolean hasBuildVendorFingerprint(); + /** + * <code>optional string build_vendor_fingerprint = 32;</code> + */ + java.lang.String getBuildVendorFingerprint(); + /** + * <code>optional string build_vendor_fingerprint = 32;</code> + */ + com.google.protobuf.ByteString + getBuildVendorFingerprintBytes(); + + /** + * <pre> + * attributes of Summary tag + * </pre> + * + * <code>optional int32 passed_test_case_count = 41;</code> + */ + boolean hasPassedTestCaseCount(); + /** + * <pre> + * attributes of Summary tag + * </pre> + * + * <code>optional int32 passed_test_case_count = 41;</code> + */ + int getPassedTestCaseCount(); + + /** + * <code>optional int32 failed_test_case_count = 42;</code> + */ + boolean hasFailedTestCaseCount(); + /** + * <code>optional int32 failed_test_case_count = 42;</code> + */ + int getFailedTestCaseCount(); + + /** + * <code>optional int32 modules_done = 43;</code> + */ + boolean hasModulesDone(); + /** + * <code>optional int32 modules_done = 43;</code> + */ + int getModulesDone(); + + /** + * <code>optional int32 modules_total = 44;</code> + */ + boolean hasModulesTotal(); + /** + * <code>optional int32 modules_total = 44;</code> + */ + int getModulesTotal(); + } + /** + * <pre> + * To specify the test results which are uploaded to vts dashboard. + * </pre> + * + * Protobuf type {@code android.vts.TestSuiteResultMessage} + */ + public static final class TestSuiteResultMessage extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:android.vts.TestSuiteResultMessage) + TestSuiteResultMessageOrBuilder { + // Use TestSuiteResultMessage.newBuilder() to construct. + private TestSuiteResultMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + super(builder); + } + private TestSuiteResultMessage() { + accessToken_ = ""; + branch_ = ""; + target_ = ""; + buildId_ = ""; + suitePlan_ = ""; + suiteVersion_ = ""; + suiteBuildNumber_ = ""; + startTime_ = 0L; + endTime_ = 0L; + hostName_ = ""; + buildSystemFingerprint_ = ""; + buildVendorFingerprint_ = ""; + passedTestCaseCount_ = 0; + failedTestCaseCount_ = 0; + modulesDone_ = 0; + modulesTotal_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TestSuiteResultMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + accessToken_ = bs; + break; + } + case 90: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + branch_ = bs; + break; + } + case 98: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000004; + target_ = bs; + break; + } + case 106: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000008; + buildId_ = bs; + break; + } + case 170: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000010; + suitePlan_ = bs; + break; + } + case 178: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000020; + suiteVersion_ = bs; + break; + } + case 186: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000040; + suiteBuildNumber_ = bs; + break; + } + case 192: { + bitField0_ |= 0x00000080; + startTime_ = input.readInt64(); + break; + } + case 200: { + bitField0_ |= 0x00000100; + endTime_ = input.readInt64(); + break; + } + case 210: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000200; + hostName_ = bs; + break; + } + case 250: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000400; + buildSystemFingerprint_ = bs; + break; + } + case 258: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000800; + buildVendorFingerprint_ = bs; + break; + } + case 328: { + bitField0_ |= 0x00001000; + passedTestCaseCount_ = input.readInt32(); + break; + } + case 336: { + bitField0_ |= 0x00002000; + failedTestCaseCount_ = input.readInt32(); + break; + } + case 344: { + bitField0_ |= 0x00004000; + modulesDone_ = input.readInt32(); + break; + } + case 352: { + bitField0_ |= 0x00008000; + modulesTotal_ = input.readInt32(); + 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 com.android.vts.proto.TestSuiteResultMessageProto.internal_static_android_vts_TestSuiteResultMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.android.vts.proto.TestSuiteResultMessageProto.internal_static_android_vts_TestSuiteResultMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.class, com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder.class); + } + + private int bitField0_; + public static final int ACCESS_TOKEN_FIELD_NUMBER = 1; + private volatile java.lang.Object accessToken_; + /** + * <pre> + * oauth2.0 access token + * </pre> + * + * <code>optional string access_token = 1;</code> + */ + public boolean hasAccessToken() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * <pre> + * oauth2.0 access token + * </pre> + * + * <code>optional string access_token = 1;</code> + */ + public java.lang.String getAccessToken() { + java.lang.Object ref = accessToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + accessToken_ = s; + } + return s; + } + } + /** + * <pre> + * oauth2.0 access token + * </pre> + * + * <code>optional string access_token = 1;</code> + */ + public com.google.protobuf.ByteString + getAccessTokenBytes() { + java.lang.Object ref = accessToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + accessToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BRANCH_FIELD_NUMBER = 11; + private volatile java.lang.Object branch_; + /** + * <pre> + * test suite build info + * </pre> + * + * <code>required string branch = 11;</code> + */ + public boolean hasBranch() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * <pre> + * test suite build info + * </pre> + * + * <code>required string branch = 11;</code> + */ + public java.lang.String getBranch() { + java.lang.Object ref = branch_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + branch_ = s; + } + return s; + } + } + /** + * <pre> + * test suite build info + * </pre> + * + * <code>required string branch = 11;</code> + */ + public com.google.protobuf.ByteString + getBranchBytes() { + java.lang.Object ref = branch_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + branch_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_FIELD_NUMBER = 12; + private volatile java.lang.Object target_; + /** + * <code>required string target = 12;</code> + */ + public boolean hasTarget() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * <code>required string target = 12;</code> + */ + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + target_ = s; + } + return s; + } + } + /** + * <code>required string target = 12;</code> + */ + public com.google.protobuf.ByteString + getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BUILD_ID_FIELD_NUMBER = 13; + private volatile java.lang.Object buildId_; + /** + * <code>required string build_id = 13;</code> + */ + public boolean hasBuildId() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * <code>required string build_id = 13;</code> + */ + public java.lang.String getBuildId() { + java.lang.Object ref = buildId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + buildId_ = s; + } + return s; + } + } + /** + * <code>required string build_id = 13;</code> + */ + public com.google.protobuf.ByteString + getBuildIdBytes() { + java.lang.Object ref = buildId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + buildId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUITE_PLAN_FIELD_NUMBER = 21; + private volatile java.lang.Object suitePlan_; + /** + * <pre> + * attributes of Result tag + * </pre> + * + * <code>optional string suite_plan = 21;</code> + */ + public boolean hasSuitePlan() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * <pre> + * attributes of Result tag + * </pre> + * + * <code>optional string suite_plan = 21;</code> + */ + public java.lang.String getSuitePlan() { + java.lang.Object ref = suitePlan_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + suitePlan_ = s; + } + return s; + } + } + /** + * <pre> + * attributes of Result tag + * </pre> + * + * <code>optional string suite_plan = 21;</code> + */ + public com.google.protobuf.ByteString + getSuitePlanBytes() { + java.lang.Object ref = suitePlan_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + suitePlan_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUITE_VERSION_FIELD_NUMBER = 22; + private volatile java.lang.Object suiteVersion_; + /** + * <code>optional string suite_version = 22;</code> + */ + public boolean hasSuiteVersion() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * <code>optional string suite_version = 22;</code> + */ + public java.lang.String getSuiteVersion() { + java.lang.Object ref = suiteVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + suiteVersion_ = s; + } + return s; + } + } + /** + * <code>optional string suite_version = 22;</code> + */ + public com.google.protobuf.ByteString + getSuiteVersionBytes() { + java.lang.Object ref = suiteVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + suiteVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUITE_BUILD_NUMBER_FIELD_NUMBER = 23; + private volatile java.lang.Object suiteBuildNumber_; + /** + * <code>optional string suite_build_number = 23;</code> + */ + public boolean hasSuiteBuildNumber() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * <code>optional string suite_build_number = 23;</code> + */ + public java.lang.String getSuiteBuildNumber() { + java.lang.Object ref = suiteBuildNumber_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + suiteBuildNumber_ = s; + } + return s; + } + } + /** + * <code>optional string suite_build_number = 23;</code> + */ + public com.google.protobuf.ByteString + getSuiteBuildNumberBytes() { + java.lang.Object ref = suiteBuildNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + suiteBuildNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int START_TIME_FIELD_NUMBER = 24; + private long startTime_; + /** + * <code>optional int64 start_time = 24;</code> + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + * <code>optional int64 start_time = 24;</code> + */ + public long getStartTime() { + return startTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 25; + private long endTime_; + /** + * <code>optional int64 end_time = 25;</code> + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } + /** + * <code>optional int64 end_time = 25;</code> + */ + public long getEndTime() { + return endTime_; + } + + public static final int HOST_NAME_FIELD_NUMBER = 26; + private volatile java.lang.Object hostName_; + /** + * <code>optional string host_name = 26;</code> + */ + public boolean hasHostName() { + return ((bitField0_ & 0x00000200) == 0x00000200); + } + /** + * <code>optional string host_name = 26;</code> + */ + public java.lang.String getHostName() { + java.lang.Object ref = hostName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + hostName_ = s; + } + return s; + } + } + /** + * <code>optional string host_name = 26;</code> + */ + public com.google.protobuf.ByteString + getHostNameBytes() { + java.lang.Object ref = hostName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + hostName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BUILD_SYSTEM_FINGERPRINT_FIELD_NUMBER = 31; + private volatile java.lang.Object buildSystemFingerprint_; + /** + * <pre> + * attributes of Build tag + * </pre> + * + * <code>optional string build_system_fingerprint = 31;</code> + */ + public boolean hasBuildSystemFingerprint() { + return ((bitField0_ & 0x00000400) == 0x00000400); + } + /** + * <pre> + * attributes of Build tag + * </pre> + * + * <code>optional string build_system_fingerprint = 31;</code> + */ + public java.lang.String getBuildSystemFingerprint() { + java.lang.Object ref = buildSystemFingerprint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + buildSystemFingerprint_ = s; + } + return s; + } + } + /** + * <pre> + * attributes of Build tag + * </pre> + * + * <code>optional string build_system_fingerprint = 31;</code> + */ + public com.google.protobuf.ByteString + getBuildSystemFingerprintBytes() { + java.lang.Object ref = buildSystemFingerprint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + buildSystemFingerprint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BUILD_VENDOR_FINGERPRINT_FIELD_NUMBER = 32; + private volatile java.lang.Object buildVendorFingerprint_; + /** + * <code>optional string build_vendor_fingerprint = 32;</code> + */ + public boolean hasBuildVendorFingerprint() { + return ((bitField0_ & 0x00000800) == 0x00000800); + } + /** + * <code>optional string build_vendor_fingerprint = 32;</code> + */ + public java.lang.String getBuildVendorFingerprint() { + java.lang.Object ref = buildVendorFingerprint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + buildVendorFingerprint_ = s; + } + return s; + } + } + /** + * <code>optional string build_vendor_fingerprint = 32;</code> + */ + public com.google.protobuf.ByteString + getBuildVendorFingerprintBytes() { + java.lang.Object ref = buildVendorFingerprint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + buildVendorFingerprint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PASSED_TEST_CASE_COUNT_FIELD_NUMBER = 41; + private int passedTestCaseCount_; + /** + * <pre> + * attributes of Summary tag + * </pre> + * + * <code>optional int32 passed_test_case_count = 41;</code> + */ + public boolean hasPassedTestCaseCount() { + return ((bitField0_ & 0x00001000) == 0x00001000); + } + /** + * <pre> + * attributes of Summary tag + * </pre> + * + * <code>optional int32 passed_test_case_count = 41;</code> + */ + public int getPassedTestCaseCount() { + return passedTestCaseCount_; + } + + public static final int FAILED_TEST_CASE_COUNT_FIELD_NUMBER = 42; + private int failedTestCaseCount_; + /** + * <code>optional int32 failed_test_case_count = 42;</code> + */ + public boolean hasFailedTestCaseCount() { + return ((bitField0_ & 0x00002000) == 0x00002000); + } + /** + * <code>optional int32 failed_test_case_count = 42;</code> + */ + public int getFailedTestCaseCount() { + return failedTestCaseCount_; + } + + public static final int MODULES_DONE_FIELD_NUMBER = 43; + private int modulesDone_; + /** + * <code>optional int32 modules_done = 43;</code> + */ + public boolean hasModulesDone() { + return ((bitField0_ & 0x00004000) == 0x00004000); + } + /** + * <code>optional int32 modules_done = 43;</code> + */ + public int getModulesDone() { + return modulesDone_; + } + + public static final int MODULES_TOTAL_FIELD_NUMBER = 44; + private int modulesTotal_; + /** + * <code>optional int32 modules_total = 44;</code> + */ + public boolean hasModulesTotal() { + return ((bitField0_ & 0x00008000) == 0x00008000); + } + /** + * <code>optional int32 modules_total = 44;</code> + */ + public int getModulesTotal() { + return modulesTotal_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasBranch()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasTarget()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasBuildId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accessToken_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, branch_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, target_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, buildId_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 21, suitePlan_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 22, suiteVersion_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 23, suiteBuildNumber_); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + output.writeInt64(24, startTime_); + } + if (((bitField0_ & 0x00000100) == 0x00000100)) { + output.writeInt64(25, endTime_); + } + if (((bitField0_ & 0x00000200) == 0x00000200)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 26, hostName_); + } + if (((bitField0_ & 0x00000400) == 0x00000400)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 31, buildSystemFingerprint_); + } + if (((bitField0_ & 0x00000800) == 0x00000800)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 32, buildVendorFingerprint_); + } + if (((bitField0_ & 0x00001000) == 0x00001000)) { + output.writeInt32(41, passedTestCaseCount_); + } + if (((bitField0_ & 0x00002000) == 0x00002000)) { + output.writeInt32(42, failedTestCaseCount_); + } + if (((bitField0_ & 0x00004000) == 0x00004000)) { + output.writeInt32(43, modulesDone_); + } + if (((bitField0_ & 0x00008000) == 0x00008000)) { + output.writeInt32(44, modulesTotal_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, accessToken_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, branch_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, target_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, buildId_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, suitePlan_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, suiteVersion_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, suiteBuildNumber_); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(24, startTime_); + } + if (((bitField0_ & 0x00000100) == 0x00000100)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(25, endTime_); + } + if (((bitField0_ & 0x00000200) == 0x00000200)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, hostName_); + } + if (((bitField0_ & 0x00000400) == 0x00000400)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(31, buildSystemFingerprint_); + } + if (((bitField0_ & 0x00000800) == 0x00000800)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(32, buildVendorFingerprint_); + } + if (((bitField0_ & 0x00001000) == 0x00001000)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(41, passedTestCaseCount_); + } + if (((bitField0_ & 0x00002000) == 0x00002000)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(42, failedTestCaseCount_); + } + if (((bitField0_ & 0x00004000) == 0x00004000)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(43, modulesDone_); + } + if (((bitField0_ & 0x00008000) == 0x00008000)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(44, modulesTotal_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage)) { + return super.equals(obj); + } + com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage other = (com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage) obj; + + boolean result = true; + result = result && (hasAccessToken() == other.hasAccessToken()); + if (hasAccessToken()) { + result = result && getAccessToken() + .equals(other.getAccessToken()); + } + result = result && (hasBranch() == other.hasBranch()); + if (hasBranch()) { + result = result && getBranch() + .equals(other.getBranch()); + } + result = result && (hasTarget() == other.hasTarget()); + if (hasTarget()) { + result = result && getTarget() + .equals(other.getTarget()); + } + result = result && (hasBuildId() == other.hasBuildId()); + if (hasBuildId()) { + result = result && getBuildId() + .equals(other.getBuildId()); + } + result = result && (hasSuitePlan() == other.hasSuitePlan()); + if (hasSuitePlan()) { + result = result && getSuitePlan() + .equals(other.getSuitePlan()); + } + result = result && (hasSuiteVersion() == other.hasSuiteVersion()); + if (hasSuiteVersion()) { + result = result && getSuiteVersion() + .equals(other.getSuiteVersion()); + } + result = result && (hasSuiteBuildNumber() == other.hasSuiteBuildNumber()); + if (hasSuiteBuildNumber()) { + result = result && getSuiteBuildNumber() + .equals(other.getSuiteBuildNumber()); + } + result = result && (hasStartTime() == other.hasStartTime()); + if (hasStartTime()) { + result = result && (getStartTime() + == other.getStartTime()); + } + result = result && (hasEndTime() == other.hasEndTime()); + if (hasEndTime()) { + result = result && (getEndTime() + == other.getEndTime()); + } + result = result && (hasHostName() == other.hasHostName()); + if (hasHostName()) { + result = result && getHostName() + .equals(other.getHostName()); + } + result = result && (hasBuildSystemFingerprint() == other.hasBuildSystemFingerprint()); + if (hasBuildSystemFingerprint()) { + result = result && getBuildSystemFingerprint() + .equals(other.getBuildSystemFingerprint()); + } + result = result && (hasBuildVendorFingerprint() == other.hasBuildVendorFingerprint()); + if (hasBuildVendorFingerprint()) { + result = result && getBuildVendorFingerprint() + .equals(other.getBuildVendorFingerprint()); + } + result = result && (hasPassedTestCaseCount() == other.hasPassedTestCaseCount()); + if (hasPassedTestCaseCount()) { + result = result && (getPassedTestCaseCount() + == other.getPassedTestCaseCount()); + } + result = result && (hasFailedTestCaseCount() == other.hasFailedTestCaseCount()); + if (hasFailedTestCaseCount()) { + result = result && (getFailedTestCaseCount() + == other.getFailedTestCaseCount()); + } + result = result && (hasModulesDone() == other.hasModulesDone()); + if (hasModulesDone()) { + result = result && (getModulesDone() + == other.getModulesDone()); + } + result = result && (hasModulesTotal() == other.hasModulesTotal()); + if (hasModulesTotal()) { + result = result && (getModulesTotal() + == other.getModulesTotal()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasAccessToken()) { + hash = (37 * hash) + ACCESS_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getAccessToken().hashCode(); + } + if (hasBranch()) { + hash = (37 * hash) + BRANCH_FIELD_NUMBER; + hash = (53 * hash) + getBranch().hashCode(); + } + if (hasTarget()) { + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + getTarget().hashCode(); + } + if (hasBuildId()) { + hash = (37 * hash) + BUILD_ID_FIELD_NUMBER; + hash = (53 * hash) + getBuildId().hashCode(); + } + if (hasSuitePlan()) { + hash = (37 * hash) + SUITE_PLAN_FIELD_NUMBER; + hash = (53 * hash) + getSuitePlan().hashCode(); + } + if (hasSuiteVersion()) { + hash = (37 * hash) + SUITE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getSuiteVersion().hashCode(); + } + if (hasSuiteBuildNumber()) { + hash = (37 * hash) + SUITE_BUILD_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getSuiteBuildNumber().hashCode(); + } + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStartTime()); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getEndTime()); + } + if (hasHostName()) { + hash = (37 * hash) + HOST_NAME_FIELD_NUMBER; + hash = (53 * hash) + getHostName().hashCode(); + } + if (hasBuildSystemFingerprint()) { + hash = (37 * hash) + BUILD_SYSTEM_FINGERPRINT_FIELD_NUMBER; + hash = (53 * hash) + getBuildSystemFingerprint().hashCode(); + } + if (hasBuildVendorFingerprint()) { + hash = (37 * hash) + BUILD_VENDOR_FINGERPRINT_FIELD_NUMBER; + hash = (53 * hash) + getBuildVendorFingerprint().hashCode(); + } + if (hasPassedTestCaseCount()) { + hash = (37 * hash) + PASSED_TEST_CASE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getPassedTestCaseCount(); + } + if (hasFailedTestCaseCount()) { + hash = (37 * hash) + FAILED_TEST_CASE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getFailedTestCaseCount(); + } + if (hasModulesDone()) { + hash = (37 * hash) + MODULES_DONE_FIELD_NUMBER; + hash = (53 * hash) + getModulesDone(); + } + if (hasModulesTotal()) { + hash = (37 * hash) + MODULES_TOTAL_FIELD_NUMBER; + hash = (53 * hash) + getModulesTotal(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + * <pre> + * To specify the test results which are uploaded to vts dashboard. + * </pre> + * + * Protobuf type {@code android.vts.TestSuiteResultMessage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:android.vts.TestSuiteResultMessage) + com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.android.vts.proto.TestSuiteResultMessageProto.internal_static_android_vts_TestSuiteResultMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.android.vts.proto.TestSuiteResultMessageProto.internal_static_android_vts_TestSuiteResultMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.class, com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder.class); + } + + // Construct using com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + accessToken_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + branch_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + target_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + buildId_ = ""; + bitField0_ = (bitField0_ & ~0x00000008); + suitePlan_ = ""; + bitField0_ = (bitField0_ & ~0x00000010); + suiteVersion_ = ""; + bitField0_ = (bitField0_ & ~0x00000020); + suiteBuildNumber_ = ""; + bitField0_ = (bitField0_ & ~0x00000040); + startTime_ = 0L; + bitField0_ = (bitField0_ & ~0x00000080); + endTime_ = 0L; + bitField0_ = (bitField0_ & ~0x00000100); + hostName_ = ""; + bitField0_ = (bitField0_ & ~0x00000200); + buildSystemFingerprint_ = ""; + bitField0_ = (bitField0_ & ~0x00000400); + buildVendorFingerprint_ = ""; + bitField0_ = (bitField0_ & ~0x00000800); + passedTestCaseCount_ = 0; + bitField0_ = (bitField0_ & ~0x00001000); + failedTestCaseCount_ = 0; + bitField0_ = (bitField0_ & ~0x00002000); + modulesDone_ = 0; + bitField0_ = (bitField0_ & ~0x00004000); + modulesTotal_ = 0; + bitField0_ = (bitField0_ & ~0x00008000); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.android.vts.proto.TestSuiteResultMessageProto.internal_static_android_vts_TestSuiteResultMessage_descriptor; + } + + public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage getDefaultInstanceForType() { + return com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.getDefaultInstance(); + } + + public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage build() { + com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage buildPartial() { + com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage result = new com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.accessToken_ = accessToken_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.branch_ = branch_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.target_ = target_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.buildId_ = buildId_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.suitePlan_ = suitePlan_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000020; + } + result.suiteVersion_ = suiteVersion_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000040; + } + result.suiteBuildNumber_ = suiteBuildNumber_; + if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + to_bitField0_ |= 0x00000080; + } + result.startTime_ = startTime_; + if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + to_bitField0_ |= 0x00000100; + } + result.endTime_ = endTime_; + if (((from_bitField0_ & 0x00000200) == 0x00000200)) { + to_bitField0_ |= 0x00000200; + } + result.hostName_ = hostName_; + if (((from_bitField0_ & 0x00000400) == 0x00000400)) { + to_bitField0_ |= 0x00000400; + } + result.buildSystemFingerprint_ = buildSystemFingerprint_; + if (((from_bitField0_ & 0x00000800) == 0x00000800)) { + to_bitField0_ |= 0x00000800; + } + result.buildVendorFingerprint_ = buildVendorFingerprint_; + if (((from_bitField0_ & 0x00001000) == 0x00001000)) { + to_bitField0_ |= 0x00001000; + } + result.passedTestCaseCount_ = passedTestCaseCount_; + if (((from_bitField0_ & 0x00002000) == 0x00002000)) { + to_bitField0_ |= 0x00002000; + } + result.failedTestCaseCount_ = failedTestCaseCount_; + if (((from_bitField0_ & 0x00004000) == 0x00004000)) { + to_bitField0_ |= 0x00004000; + } + result.modulesDone_ = modulesDone_; + if (((from_bitField0_ & 0x00008000) == 0x00008000)) { + to_bitField0_ |= 0x00008000; + } + result.modulesTotal_ = modulesTotal_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage) { + return mergeFrom((com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage other) { + if (other == com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.getDefaultInstance()) return this; + if (other.hasAccessToken()) { + bitField0_ |= 0x00000001; + accessToken_ = other.accessToken_; + onChanged(); + } + if (other.hasBranch()) { + bitField0_ |= 0x00000002; + branch_ = other.branch_; + onChanged(); + } + if (other.hasTarget()) { + bitField0_ |= 0x00000004; + target_ = other.target_; + onChanged(); + } + if (other.hasBuildId()) { + bitField0_ |= 0x00000008; + buildId_ = other.buildId_; + onChanged(); + } + if (other.hasSuitePlan()) { + bitField0_ |= 0x00000010; + suitePlan_ = other.suitePlan_; + onChanged(); + } + if (other.hasSuiteVersion()) { + bitField0_ |= 0x00000020; + suiteVersion_ = other.suiteVersion_; + onChanged(); + } + if (other.hasSuiteBuildNumber()) { + bitField0_ |= 0x00000040; + suiteBuildNumber_ = other.suiteBuildNumber_; + onChanged(); + } + if (other.hasStartTime()) { + setStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + setEndTime(other.getEndTime()); + } + if (other.hasHostName()) { + bitField0_ |= 0x00000200; + hostName_ = other.hostName_; + onChanged(); + } + if (other.hasBuildSystemFingerprint()) { + bitField0_ |= 0x00000400; + buildSystemFingerprint_ = other.buildSystemFingerprint_; + onChanged(); + } + if (other.hasBuildVendorFingerprint()) { + bitField0_ |= 0x00000800; + buildVendorFingerprint_ = other.buildVendorFingerprint_; + onChanged(); + } + if (other.hasPassedTestCaseCount()) { + setPassedTestCaseCount(other.getPassedTestCaseCount()); + } + if (other.hasFailedTestCaseCount()) { + setFailedTestCaseCount(other.getFailedTestCaseCount()); + } + if (other.hasModulesDone()) { + setModulesDone(other.getModulesDone()); + } + if (other.hasModulesTotal()) { + setModulesTotal(other.getModulesTotal()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + if (!hasBranch()) { + return false; + } + if (!hasTarget()) { + return false; + } + if (!hasBuildId()) { + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object accessToken_ = ""; + /** + * <pre> + * oauth2.0 access token + * </pre> + * + * <code>optional string access_token = 1;</code> + */ + public boolean hasAccessToken() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * <pre> + * oauth2.0 access token + * </pre> + * + * <code>optional string access_token = 1;</code> + */ + public java.lang.String getAccessToken() { + java.lang.Object ref = accessToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + accessToken_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * <pre> + * oauth2.0 access token + * </pre> + * + * <code>optional string access_token = 1;</code> + */ + public com.google.protobuf.ByteString + getAccessTokenBytes() { + java.lang.Object ref = accessToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + accessToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * <pre> + * oauth2.0 access token + * </pre> + * + * <code>optional string access_token = 1;</code> + */ + public Builder setAccessToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + accessToken_ = value; + onChanged(); + return this; + } + /** + * <pre> + * oauth2.0 access token + * </pre> + * + * <code>optional string access_token = 1;</code> + */ + public Builder clearAccessToken() { + bitField0_ = (bitField0_ & ~0x00000001); + accessToken_ = getDefaultInstance().getAccessToken(); + onChanged(); + return this; + } + /** + * <pre> + * oauth2.0 access token + * </pre> + * + * <code>optional string access_token = 1;</code> + */ + public Builder setAccessTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + accessToken_ = value; + onChanged(); + return this; + } + + private java.lang.Object branch_ = ""; + /** + * <pre> + * test suite build info + * </pre> + * + * <code>required string branch = 11;</code> + */ + public boolean hasBranch() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * <pre> + * test suite build info + * </pre> + * + * <code>required string branch = 11;</code> + */ + public java.lang.String getBranch() { + java.lang.Object ref = branch_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + branch_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * <pre> + * test suite build info + * </pre> + * + * <code>required string branch = 11;</code> + */ + public com.google.protobuf.ByteString + getBranchBytes() { + java.lang.Object ref = branch_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + branch_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * <pre> + * test suite build info + * </pre> + * + * <code>required string branch = 11;</code> + */ + public Builder setBranch( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + branch_ = value; + onChanged(); + return this; + } + /** + * <pre> + * test suite build info + * </pre> + * + * <code>required string branch = 11;</code> + */ + public Builder clearBranch() { + bitField0_ = (bitField0_ & ~0x00000002); + branch_ = getDefaultInstance().getBranch(); + onChanged(); + return this; + } + /** + * <pre> + * test suite build info + * </pre> + * + * <code>required string branch = 11;</code> + */ + public Builder setBranchBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + branch_ = value; + onChanged(); + return this; + } + + private java.lang.Object target_ = ""; + /** + * <code>required string target = 12;</code> + */ + public boolean hasTarget() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * <code>required string target = 12;</code> + */ + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + target_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * <code>required string target = 12;</code> + */ + public com.google.protobuf.ByteString + getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * <code>required string target = 12;</code> + */ + public Builder setTarget( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + target_ = value; + onChanged(); + return this; + } + /** + * <code>required string target = 12;</code> + */ + public Builder clearTarget() { + bitField0_ = (bitField0_ & ~0x00000004); + target_ = getDefaultInstance().getTarget(); + onChanged(); + return this; + } + /** + * <code>required string target = 12;</code> + */ + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + target_ = value; + onChanged(); + return this; + } + + private java.lang.Object buildId_ = ""; + /** + * <code>required string build_id = 13;</code> + */ + public boolean hasBuildId() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * <code>required string build_id = 13;</code> + */ + public java.lang.String getBuildId() { + java.lang.Object ref = buildId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + buildId_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * <code>required string build_id = 13;</code> + */ + public com.google.protobuf.ByteString + getBuildIdBytes() { + java.lang.Object ref = buildId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + buildId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * <code>required string build_id = 13;</code> + */ + public Builder setBuildId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + buildId_ = value; + onChanged(); + return this; + } + /** + * <code>required string build_id = 13;</code> + */ + public Builder clearBuildId() { + bitField0_ = (bitField0_ & ~0x00000008); + buildId_ = getDefaultInstance().getBuildId(); + onChanged(); + return this; + } + /** + * <code>required string build_id = 13;</code> + */ + public Builder setBuildIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + buildId_ = value; + onChanged(); + return this; + } + + private java.lang.Object suitePlan_ = ""; + /** + * <pre> + * attributes of Result tag + * </pre> + * + * <code>optional string suite_plan = 21;</code> + */ + public boolean hasSuitePlan() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * <pre> + * attributes of Result tag + * </pre> + * + * <code>optional string suite_plan = 21;</code> + */ + public java.lang.String getSuitePlan() { + java.lang.Object ref = suitePlan_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + suitePlan_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * <pre> + * attributes of Result tag + * </pre> + * + * <code>optional string suite_plan = 21;</code> + */ + public com.google.protobuf.ByteString + getSuitePlanBytes() { + java.lang.Object ref = suitePlan_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + suitePlan_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * <pre> + * attributes of Result tag + * </pre> + * + * <code>optional string suite_plan = 21;</code> + */ + public Builder setSuitePlan( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + suitePlan_ = value; + onChanged(); + return this; + } + /** + * <pre> + * attributes of Result tag + * </pre> + * + * <code>optional string suite_plan = 21;</code> + */ + public Builder clearSuitePlan() { + bitField0_ = (bitField0_ & ~0x00000010); + suitePlan_ = getDefaultInstance().getSuitePlan(); + onChanged(); + return this; + } + /** + * <pre> + * attributes of Result tag + * </pre> + * + * <code>optional string suite_plan = 21;</code> + */ + public Builder setSuitePlanBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + suitePlan_ = value; + onChanged(); + return this; + } + + private java.lang.Object suiteVersion_ = ""; + /** + * <code>optional string suite_version = 22;</code> + */ + public boolean hasSuiteVersion() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * <code>optional string suite_version = 22;</code> + */ + public java.lang.String getSuiteVersion() { + java.lang.Object ref = suiteVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + suiteVersion_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * <code>optional string suite_version = 22;</code> + */ + public com.google.protobuf.ByteString + getSuiteVersionBytes() { + java.lang.Object ref = suiteVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + suiteVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * <code>optional string suite_version = 22;</code> + */ + public Builder setSuiteVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + suiteVersion_ = value; + onChanged(); + return this; + } + /** + * <code>optional string suite_version = 22;</code> + */ + public Builder clearSuiteVersion() { + bitField0_ = (bitField0_ & ~0x00000020); + suiteVersion_ = getDefaultInstance().getSuiteVersion(); + onChanged(); + return this; + } + /** + * <code>optional string suite_version = 22;</code> + */ + public Builder setSuiteVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + suiteVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object suiteBuildNumber_ = ""; + /** + * <code>optional string suite_build_number = 23;</code> + */ + public boolean hasSuiteBuildNumber() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * <code>optional string suite_build_number = 23;</code> + */ + public java.lang.String getSuiteBuildNumber() { + java.lang.Object ref = suiteBuildNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + suiteBuildNumber_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * <code>optional string suite_build_number = 23;</code> + */ + public com.google.protobuf.ByteString + getSuiteBuildNumberBytes() { + java.lang.Object ref = suiteBuildNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + suiteBuildNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * <code>optional string suite_build_number = 23;</code> + */ + public Builder setSuiteBuildNumber( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + suiteBuildNumber_ = value; + onChanged(); + return this; + } + /** + * <code>optional string suite_build_number = 23;</code> + */ + public Builder clearSuiteBuildNumber() { + bitField0_ = (bitField0_ & ~0x00000040); + suiteBuildNumber_ = getDefaultInstance().getSuiteBuildNumber(); + onChanged(); + return this; + } + /** + * <code>optional string suite_build_number = 23;</code> + */ + public Builder setSuiteBuildNumberBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + suiteBuildNumber_ = value; + onChanged(); + return this; + } + + private long startTime_ ; + /** + * <code>optional int64 start_time = 24;</code> + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + * <code>optional int64 start_time = 24;</code> + */ + public long getStartTime() { + return startTime_; + } + /** + * <code>optional int64 start_time = 24;</code> + */ + public Builder setStartTime(long value) { + bitField0_ |= 0x00000080; + startTime_ = value; + onChanged(); + return this; + } + /** + * <code>optional int64 start_time = 24;</code> + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000080); + startTime_ = 0L; + onChanged(); + return this; + } + + private long endTime_ ; + /** + * <code>optional int64 end_time = 25;</code> + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } + /** + * <code>optional int64 end_time = 25;</code> + */ + public long getEndTime() { + return endTime_; + } + /** + * <code>optional int64 end_time = 25;</code> + */ + public Builder setEndTime(long value) { + bitField0_ |= 0x00000100; + endTime_ = value; + onChanged(); + return this; + } + /** + * <code>optional int64 end_time = 25;</code> + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000100); + endTime_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object hostName_ = ""; + /** + * <code>optional string host_name = 26;</code> + */ + public boolean hasHostName() { + return ((bitField0_ & 0x00000200) == 0x00000200); + } + /** + * <code>optional string host_name = 26;</code> + */ + public java.lang.String getHostName() { + java.lang.Object ref = hostName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + hostName_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * <code>optional string host_name = 26;</code> + */ + public com.google.protobuf.ByteString + getHostNameBytes() { + java.lang.Object ref = hostName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + hostName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * <code>optional string host_name = 26;</code> + */ + public Builder setHostName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + hostName_ = value; + onChanged(); + return this; + } + /** + * <code>optional string host_name = 26;</code> + */ + public Builder clearHostName() { + bitField0_ = (bitField0_ & ~0x00000200); + hostName_ = getDefaultInstance().getHostName(); + onChanged(); + return this; + } + /** + * <code>optional string host_name = 26;</code> + */ + public Builder setHostNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + hostName_ = value; + onChanged(); + return this; + } + + private java.lang.Object buildSystemFingerprint_ = ""; + /** + * <pre> + * attributes of Build tag + * </pre> + * + * <code>optional string build_system_fingerprint = 31;</code> + */ + public boolean hasBuildSystemFingerprint() { + return ((bitField0_ & 0x00000400) == 0x00000400); + } + /** + * <pre> + * attributes of Build tag + * </pre> + * + * <code>optional string build_system_fingerprint = 31;</code> + */ + public java.lang.String getBuildSystemFingerprint() { + java.lang.Object ref = buildSystemFingerprint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + buildSystemFingerprint_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * <pre> + * attributes of Build tag + * </pre> + * + * <code>optional string build_system_fingerprint = 31;</code> + */ + public com.google.protobuf.ByteString + getBuildSystemFingerprintBytes() { + java.lang.Object ref = buildSystemFingerprint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + buildSystemFingerprint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * <pre> + * attributes of Build tag + * </pre> + * + * <code>optional string build_system_fingerprint = 31;</code> + */ + public Builder setBuildSystemFingerprint( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + buildSystemFingerprint_ = value; + onChanged(); + return this; + } + /** + * <pre> + * attributes of Build tag + * </pre> + * + * <code>optional string build_system_fingerprint = 31;</code> + */ + public Builder clearBuildSystemFingerprint() { + bitField0_ = (bitField0_ & ~0x00000400); + buildSystemFingerprint_ = getDefaultInstance().getBuildSystemFingerprint(); + onChanged(); + return this; + } + /** + * <pre> + * attributes of Build tag + * </pre> + * + * <code>optional string build_system_fingerprint = 31;</code> + */ + public Builder setBuildSystemFingerprintBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + buildSystemFingerprint_ = value; + onChanged(); + return this; + } + + private java.lang.Object buildVendorFingerprint_ = ""; + /** + * <code>optional string build_vendor_fingerprint = 32;</code> + */ + public boolean hasBuildVendorFingerprint() { + return ((bitField0_ & 0x00000800) == 0x00000800); + } + /** + * <code>optional string build_vendor_fingerprint = 32;</code> + */ + public java.lang.String getBuildVendorFingerprint() { + java.lang.Object ref = buildVendorFingerprint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + buildVendorFingerprint_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * <code>optional string build_vendor_fingerprint = 32;</code> + */ + public com.google.protobuf.ByteString + getBuildVendorFingerprintBytes() { + java.lang.Object ref = buildVendorFingerprint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + buildVendorFingerprint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * <code>optional string build_vendor_fingerprint = 32;</code> + */ + public Builder setBuildVendorFingerprint( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; + buildVendorFingerprint_ = value; + onChanged(); + return this; + } + /** + * <code>optional string build_vendor_fingerprint = 32;</code> + */ + public Builder clearBuildVendorFingerprint() { + bitField0_ = (bitField0_ & ~0x00000800); + buildVendorFingerprint_ = getDefaultInstance().getBuildVendorFingerprint(); + onChanged(); + return this; + } + /** + * <code>optional string build_vendor_fingerprint = 32;</code> + */ + public Builder setBuildVendorFingerprintBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; + buildVendorFingerprint_ = value; + onChanged(); + return this; + } + + private int passedTestCaseCount_ ; + /** + * <pre> + * attributes of Summary tag + * </pre> + * + * <code>optional int32 passed_test_case_count = 41;</code> + */ + public boolean hasPassedTestCaseCount() { + return ((bitField0_ & 0x00001000) == 0x00001000); + } + /** + * <pre> + * attributes of Summary tag + * </pre> + * + * <code>optional int32 passed_test_case_count = 41;</code> + */ + public int getPassedTestCaseCount() { + return passedTestCaseCount_; + } + /** + * <pre> + * attributes of Summary tag + * </pre> + * + * <code>optional int32 passed_test_case_count = 41;</code> + */ + public Builder setPassedTestCaseCount(int value) { + bitField0_ |= 0x00001000; + passedTestCaseCount_ = value; + onChanged(); + return this; + } + /** + * <pre> + * attributes of Summary tag + * </pre> + * + * <code>optional int32 passed_test_case_count = 41;</code> + */ + public Builder clearPassedTestCaseCount() { + bitField0_ = (bitField0_ & ~0x00001000); + passedTestCaseCount_ = 0; + onChanged(); + return this; + } + + private int failedTestCaseCount_ ; + /** + * <code>optional int32 failed_test_case_count = 42;</code> + */ + public boolean hasFailedTestCaseCount() { + return ((bitField0_ & 0x00002000) == 0x00002000); + } + /** + * <code>optional int32 failed_test_case_count = 42;</code> + */ + public int getFailedTestCaseCount() { + return failedTestCaseCount_; + } + /** + * <code>optional int32 failed_test_case_count = 42;</code> + */ + public Builder setFailedTestCaseCount(int value) { + bitField0_ |= 0x00002000; + failedTestCaseCount_ = value; + onChanged(); + return this; + } + /** + * <code>optional int32 failed_test_case_count = 42;</code> + */ + public Builder clearFailedTestCaseCount() { + bitField0_ = (bitField0_ & ~0x00002000); + failedTestCaseCount_ = 0; + onChanged(); + return this; + } + + private int modulesDone_ ; + /** + * <code>optional int32 modules_done = 43;</code> + */ + public boolean hasModulesDone() { + return ((bitField0_ & 0x00004000) == 0x00004000); + } + /** + * <code>optional int32 modules_done = 43;</code> + */ + public int getModulesDone() { + return modulesDone_; + } + /** + * <code>optional int32 modules_done = 43;</code> + */ + public Builder setModulesDone(int value) { + bitField0_ |= 0x00004000; + modulesDone_ = value; + onChanged(); + return this; + } + /** + * <code>optional int32 modules_done = 43;</code> + */ + public Builder clearModulesDone() { + bitField0_ = (bitField0_ & ~0x00004000); + modulesDone_ = 0; + onChanged(); + return this; + } + + private int modulesTotal_ ; + /** + * <code>optional int32 modules_total = 44;</code> + */ + public boolean hasModulesTotal() { + return ((bitField0_ & 0x00008000) == 0x00008000); + } + /** + * <code>optional int32 modules_total = 44;</code> + */ + public int getModulesTotal() { + return modulesTotal_; + } + /** + * <code>optional int32 modules_total = 44;</code> + */ + public Builder setModulesTotal(int value) { + bitField0_ |= 0x00008000; + modulesTotal_ = value; + onChanged(); + return this; + } + /** + * <code>optional int32 modules_total = 44;</code> + */ + public Builder clearModulesTotal() { + bitField0_ = (bitField0_ & ~0x00008000); + modulesTotal_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:android.vts.TestSuiteResultMessage) + } + + // @@protoc_insertion_point(class_scope:android.vts.TestSuiteResultMessage) + private static final com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage(); + } + + public static com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser<TestSuiteResultMessage> + PARSER = new com.google.protobuf.AbstractParser<TestSuiteResultMessage>() { + public TestSuiteResultMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TestSuiteResultMessage(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser<TestSuiteResultMessage> parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser<TestSuiteResultMessage> getParserForType() { + return PARSER; + } + + public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_android_vts_TestSuiteResultMessage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_android_vts_TestSuiteResultMessage_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\"proto/TestSuiteResultMessage.proto\022\013an" + + "droid.vts\"\221\003\n\026TestSuiteResultMessage\022\024\n\014" + + "access_token\030\001 \001(\t\022\016\n\006branch\030\013 \002(\t\022\016\n\006ta" + + "rget\030\014 \002(\t\022\020\n\010build_id\030\r \002(\t\022\022\n\nsuite_pl" + + "an\030\025 \001(\t\022\025\n\rsuite_version\030\026 \001(\t\022\032\n\022suite" + + "_build_number\030\027 \001(\t\022\022\n\nstart_time\030\030 \001(\003\022" + + "\020\n\010end_time\030\031 \001(\003\022\021\n\thost_name\030\032 \001(\t\022 \n\030" + + "build_system_fingerprint\030\037 \001(\t\022 \n\030build_" + + "vendor_fingerprint\030 \001(\t\022\036\n\026passed_test_" + + "case_count\030) \001(\005\022\036\n\026failed_test_case_cou", + "nt\030* \001(\005\022\024\n\014modules_done\030+ \001(\005\022\025\n\rmodule" + + "s_total\030, \001(\005B6\n\025com.android.vts.protoB\033" + + "TestSuiteResultMessageProtoP\000" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_android_vts_TestSuiteResultMessage_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_android_vts_TestSuiteResultMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_android_vts_TestSuiteResultMessage_descriptor, + new java.lang.String[] { "AccessToken", "Branch", "Target", "BuildId", "SuitePlan", "SuiteVersion", "SuiteBuildNumber", "StartTime", "EndTime", "HostName", "BuildSystemFingerprint", "BuildVendorFingerprint", "PassedTestCaseCount", "FailedTestCaseCount", "ModulesDone", "ModulesTotal", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} |